@apolitical/component-library 8.1.2 → 8.2.0-bht.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import re, { memo as qt, useRef as Se, useEffect as fe, useState as se, useMemo as en, forwardRef as fo, Children as Ss, createContext as xt, useContext as Ne, useCallback as Re, lazy as wr, useReducer as Un, Suspense as sd, Fragment as Kr, useLayoutEffect as Zm, Component as Ym } from "react";
1
+ import re, { memo as qt, useRef as Se, useEffect as fe, useState as se, useMemo as en, forwardRef as fo, Children as Ss, createContext as xt, useContext as Ne, useCallback as $e, lazy as wr, useReducer as Un, Suspense as sd, Fragment as Kr, useLayoutEffect as Zm, Component as Ym } from "react";
2
2
  import { useIntl as ce, FormattedMessage as lt, IntlProvider as Gm, createIntl as Qm } from "react-intl";
3
- import Rt from "lodash.clonedeep";
3
+ import $t from "lodash.clonedeep";
4
4
  import Jm from "lodash.set";
5
5
  import od from "react-dom";
6
6
  import tn from "markdown-to-jsx";
7
7
  import { QueryClient as Xm, QueryClientProvider as eh, useMutation as rt, useQueryClient as mo, useInfiniteQuery as ho, useQuery as th } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools as nh } from "@tanstack/react-query-devtools";
9
- import Ri from "posthog-js";
9
+ import $i from "posthog-js";
10
10
  import { CookiesProvider as rh, useCookies as ld } from "react-cookie";
11
11
  import mr from "truncate";
12
12
  import Ki from "lodash.isequal";
@@ -132,57 +132,57 @@ var hl;
132
132
  function ch() {
133
133
  return hl || (hl = 1, process.env.NODE_ENV !== "production" && function() {
134
134
  var e = re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, f = "@@iterator";
135
- function b(R) {
136
- if (R === null || typeof R != "object")
135
+ function b($) {
136
+ if ($ === null || typeof $ != "object")
137
137
  return null;
138
- var le = v && R[v] || R[f];
138
+ var le = v && $[v] || $[f];
139
139
  return typeof le == "function" ? le : null;
140
140
  }
141
141
  var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
142
- function y(R) {
142
+ function y($) {
143
143
  {
144
144
  for (var le = arguments.length, he = new Array(le > 1 ? le - 1 : 0), Fe = 1; Fe < le; Fe++)
145
145
  he[Fe - 1] = arguments[Fe];
146
- w("error", R, he);
146
+ w("error", $, he);
147
147
  }
148
148
  }
149
- function w(R, le, he) {
149
+ function w($, le, he) {
150
150
  {
151
151
  var Fe = g.ReactDebugCurrentFrame, ze = Fe.getStackAddendum();
152
152
  ze !== "" && (le += "%s", he = he.concat([ze]));
153
- var Ye = he.map(function($e) {
154
- return String($e);
153
+ var Ye = he.map(function(Re) {
154
+ return String(Re);
155
155
  });
156
- Ye.unshift("Warning: " + le), Function.prototype.apply.call(console[R], console, Ye);
156
+ Ye.unshift("Warning: " + le), Function.prototype.apply.call(console[$], console, Ye);
157
157
  }
158
158
  }
159
159
  var _ = !1, C = !1, E = !1, B = !1, j = !1, N;
160
160
  N = Symbol.for("react.module.reference");
161
- function L(R) {
162
- return !!(typeof R == "string" || typeof R == "function" || R === r || R === a || j || R === i || R === l || R === d || B || R === p || _ || C || E || typeof R == "object" && R !== null && (R.$$typeof === h || R.$$typeof === m || R.$$typeof === s || R.$$typeof === o || R.$$typeof === u || // This needs to include all possible module reference object
161
+ function L($) {
162
+ return !!(typeof $ == "string" || typeof $ == "function" || $ === r || $ === a || j || $ === i || $ === l || $ === d || B || $ === p || _ || C || E || typeof $ == "object" && $ !== null && ($.$$typeof === h || $.$$typeof === m || $.$$typeof === s || $.$$typeof === o || $.$$typeof === u || // This needs to include all possible module reference object
163
163
  // types supported by any Flight configuration anywhere since
164
164
  // we don't know which Flight build this will end up being used
165
165
  // with.
166
- R.$$typeof === N || R.getModuleId !== void 0));
166
+ $.$$typeof === N || $.getModuleId !== void 0));
167
167
  }
168
- function P(R, le, he) {
169
- var Fe = R.displayName;
168
+ function P($, le, he) {
169
+ var Fe = $.displayName;
170
170
  if (Fe)
171
171
  return Fe;
172
172
  var ze = le.displayName || le.name || "";
173
173
  return ze !== "" ? he + "(" + ze + ")" : he;
174
174
  }
175
- function A(R) {
176
- return R.displayName || "Context";
175
+ function A($) {
176
+ return $.displayName || "Context";
177
177
  }
178
- function k(R) {
179
- if (R == null)
178
+ function k($) {
179
+ if ($ == null)
180
180
  return null;
181
- if (typeof R.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof R == "function")
182
- return R.displayName || R.name || null;
183
- if (typeof R == "string")
184
- return R;
185
- switch (R) {
181
+ if (typeof $.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof $ == "function")
182
+ return $.displayName || $.name || null;
183
+ if (typeof $ == "string")
184
+ return $;
185
+ switch ($) {
186
186
  case r:
187
187
  return "Fragment";
188
188
  case n:
@@ -196,23 +196,23 @@ function ch() {
196
196
  case d:
197
197
  return "SuspenseList";
198
198
  }
199
- if (typeof R == "object")
200
- switch (R.$$typeof) {
199
+ if (typeof $ == "object")
200
+ switch ($.$$typeof) {
201
201
  case o:
202
- var le = R;
202
+ var le = $;
203
203
  return A(le) + ".Consumer";
204
204
  case s:
205
- var he = R;
205
+ var he = $;
206
206
  return A(he._context) + ".Provider";
207
207
  case u:
208
- return P(R, R.render, "ForwardRef");
208
+ return P($, $.render, "ForwardRef");
209
209
  case m:
210
- var Fe = R.displayName || null;
211
- return Fe !== null ? Fe : k(R.type) || "Memo";
210
+ var Fe = $.displayName || null;
211
+ return Fe !== null ? Fe : k($.type) || "Memo";
212
212
  case h: {
213
- var ze = R, Ye = ze._payload, $e = ze._init;
213
+ var ze = $, Ye = ze._payload, Re = ze._init;
214
214
  try {
215
- return k($e(Ye));
215
+ return k(Re(Ye));
216
216
  } catch {
217
217
  return null;
218
218
  }
@@ -228,53 +228,53 @@ function ch() {
228
228
  {
229
229
  if (M === 0) {
230
230
  V = console.log, W = console.info, ie = console.warn, te = console.error, D = console.group, Z = console.groupCollapsed, z = console.groupEnd;
231
- var R = {
231
+ var $ = {
232
232
  configurable: !0,
233
233
  enumerable: !0,
234
234
  value: F,
235
235
  writable: !0
236
236
  };
237
237
  Object.defineProperties(console, {
238
- info: R,
239
- log: R,
240
- warn: R,
241
- error: R,
242
- group: R,
243
- groupCollapsed: R,
244
- groupEnd: R
238
+ info: $,
239
+ log: $,
240
+ warn: $,
241
+ error: $,
242
+ group: $,
243
+ groupCollapsed: $,
244
+ groupEnd: $
245
245
  });
246
246
  }
247
247
  M++;
248
248
  }
249
249
  }
250
- function $() {
250
+ function R() {
251
251
  {
252
252
  if (M--, M === 0) {
253
- var R = {
253
+ var $ = {
254
254
  configurable: !0,
255
255
  enumerable: !0,
256
256
  writable: !0
257
257
  };
258
258
  Object.defineProperties(console, {
259
- log: T({}, R, {
259
+ log: T({}, $, {
260
260
  value: V
261
261
  }),
262
- info: T({}, R, {
262
+ info: T({}, $, {
263
263
  value: W
264
264
  }),
265
- warn: T({}, R, {
265
+ warn: T({}, $, {
266
266
  value: ie
267
267
  }),
268
- error: T({}, R, {
268
+ error: T({}, $, {
269
269
  value: te
270
270
  }),
271
- group: T({}, R, {
271
+ group: T({}, $, {
272
272
  value: D
273
273
  }),
274
- groupCollapsed: T({}, R, {
274
+ groupCollapsed: T({}, $, {
275
275
  value: Z
276
276
  }),
277
- groupEnd: T({}, R, {
277
+ groupEnd: T({}, $, {
278
278
  value: z
279
279
  })
280
280
  });
@@ -283,7 +283,7 @@ function ch() {
283
283
  }
284
284
  }
285
285
  var O = g.ReactCurrentDispatcher, q;
286
- function J(R, le, he) {
286
+ function J($, le, he) {
287
287
  {
288
288
  if (q === void 0)
289
289
  try {
@@ -293,7 +293,7 @@ function ch() {
293
293
  q = Fe && Fe[1] || "";
294
294
  }
295
295
  return `
296
- ` + q + R;
296
+ ` + q + $;
297
297
  }
298
298
  }
299
299
  var U = !1, ee;
@@ -301,11 +301,11 @@ function ch() {
301
301
  var me = typeof WeakMap == "function" ? WeakMap : Map;
302
302
  ee = new me();
303
303
  }
304
- function Q(R, le) {
305
- if (!R || U)
304
+ function Q($, le) {
305
+ if (!$ || U)
306
306
  return "";
307
307
  {
308
- var he = ee.get(R);
308
+ var he = ee.get($);
309
309
  if (he !== void 0)
310
310
  return he;
311
311
  }
@@ -317,27 +317,27 @@ function ch() {
317
317
  Ye = O.current, O.current = null, S();
318
318
  try {
319
319
  if (le) {
320
- var $e = function() {
320
+ var Re = function() {
321
321
  throw Error();
322
322
  };
323
- if (Object.defineProperty($e.prototype, "props", {
323
+ if (Object.defineProperty(Re.prototype, "props", {
324
324
  set: function() {
325
325
  throw Error();
326
326
  }
327
327
  }), typeof Reflect == "object" && Reflect.construct) {
328
328
  try {
329
- Reflect.construct($e, []);
329
+ Reflect.construct(Re, []);
330
330
  } catch (an) {
331
331
  Fe = an;
332
332
  }
333
- Reflect.construct(R, [], $e);
333
+ Reflect.construct($, [], Re);
334
334
  } else {
335
335
  try {
336
- $e.call();
336
+ Re.call();
337
337
  } catch (an) {
338
338
  Fe = an;
339
339
  }
340
- R.call($e.prototype);
340
+ $.call(Re.prototype);
341
341
  }
342
342
  } else {
343
343
  try {
@@ -345,7 +345,7 @@ function ch() {
345
345
  } catch (an) {
346
346
  Fe = an;
347
347
  }
348
- R();
348
+ $();
349
349
  }
350
350
  } catch (an) {
351
351
  if (an && Fe && typeof an.stack == "string") {
@@ -360,46 +360,46 @@ function ch() {
360
360
  if (it--, ot--, ot < 0 || Me[it] !== pt[ot]) {
361
361
  var Nt = `
362
362
  ` + Me[it].replace(" at new ", " at ");
363
- return R.displayName && Nt.includes("<anonymous>") && (Nt = Nt.replace("<anonymous>", R.displayName)), typeof R == "function" && ee.set(R, Nt), Nt;
363
+ return $.displayName && Nt.includes("<anonymous>") && (Nt = Nt.replace("<anonymous>", $.displayName)), typeof $ == "function" && ee.set($, Nt), Nt;
364
364
  }
365
365
  while (it >= 1 && ot >= 0);
366
366
  break;
367
367
  }
368
368
  }
369
369
  } finally {
370
- U = !1, O.current = Ye, $(), Error.prepareStackTrace = ze;
370
+ U = !1, O.current = Ye, R(), Error.prepareStackTrace = ze;
371
371
  }
372
- var Qn = R ? R.displayName || R.name : "", fl = Qn ? J(Qn) : "";
373
- return typeof R == "function" && ee.set(R, fl), fl;
372
+ var Qn = $ ? $.displayName || $.name : "", fl = Qn ? J(Qn) : "";
373
+ return typeof $ == "function" && ee.set($, fl), fl;
374
374
  }
375
- function ye(R, le, he) {
376
- return Q(R, !1);
375
+ function ye($, le, he) {
376
+ return Q($, !1);
377
377
  }
378
- function pe(R) {
379
- var le = R.prototype;
378
+ function pe($) {
379
+ var le = $.prototype;
380
380
  return !!(le && le.isReactComponent);
381
381
  }
382
- function we(R, le, he) {
383
- if (R == null)
382
+ function we($, le, he) {
383
+ if ($ == null)
384
384
  return "";
385
- if (typeof R == "function")
386
- return Q(R, pe(R));
387
- if (typeof R == "string")
388
- return J(R);
389
- switch (R) {
385
+ if (typeof $ == "function")
386
+ return Q($, pe($));
387
+ if (typeof $ == "string")
388
+ return J($);
389
+ switch ($) {
390
390
  case l:
391
391
  return J("Suspense");
392
392
  case d:
393
393
  return J("SuspenseList");
394
394
  }
395
- if (typeof R == "object")
396
- switch (R.$$typeof) {
395
+ if (typeof $ == "object")
396
+ switch ($.$$typeof) {
397
397
  case u:
398
- return ye(R.render);
398
+ return ye($.render);
399
399
  case m:
400
- return we(R.type, le, he);
400
+ return we($.type, le, he);
401
401
  case h: {
402
- var Fe = R, ze = Fe._payload, Ye = Fe._init;
402
+ var Fe = $, ze = Fe._payload, Ye = Fe._init;
403
403
  try {
404
404
  return we(Ye(ze), le, he);
405
405
  } catch {
@@ -409,55 +409,55 @@ function ch() {
409
409
  return "";
410
410
  }
411
411
  var Ae = Object.prototype.hasOwnProperty, _e = {}, Ve = g.ReactDebugCurrentFrame;
412
- function Ze(R) {
413
- if (R) {
414
- var le = R._owner, he = we(R.type, R._source, le ? le.type : null);
412
+ function Ze($) {
413
+ if ($) {
414
+ var le = $._owner, he = we($.type, $._source, le ? le.type : null);
415
415
  Ve.setExtraStackFrame(he);
416
416
  } else
417
417
  Ve.setExtraStackFrame(null);
418
418
  }
419
- function Ge(R, le, he, Fe, ze) {
419
+ function Ge($, le, he, Fe, ze) {
420
420
  {
421
421
  var Ye = Function.call.bind(Ae);
422
- for (var $e in R)
423
- if (Ye(R, $e)) {
422
+ for (var Re in $)
423
+ if (Ye($, Re)) {
424
424
  var Me = void 0;
425
425
  try {
426
- if (typeof R[$e] != "function") {
427
- var pt = Error((Fe || "React class") + ": " + he + " type `" + $e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof R[$e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
426
+ if (typeof $[Re] != "function") {
427
+ var pt = Error((Fe || "React class") + ": " + he + " type `" + Re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof $[Re] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
428
428
  throw pt.name = "Invariant Violation", pt;
429
429
  }
430
- Me = R[$e](le, $e, Fe, he, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
430
+ Me = $[Re](le, Re, Fe, he, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
431
431
  } catch (it) {
432
432
  Me = it;
433
433
  }
434
- Me && !(Me instanceof Error) && (Ze(ze), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Fe || "React class", he, $e, typeof Me), Ze(null)), Me instanceof Error && !(Me.message in _e) && (_e[Me.message] = !0, Ze(ze), y("Failed %s type: %s", he, Me.message), Ze(null));
434
+ Me && !(Me instanceof Error) && (Ze(ze), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Fe || "React class", he, Re, typeof Me), Ze(null)), Me instanceof Error && !(Me.message in _e) && (_e[Me.message] = !0, Ze(ze), y("Failed %s type: %s", he, Me.message), Ze(null));
435
435
  }
436
436
  }
437
437
  }
438
438
  var Qe = Array.isArray;
439
- function je(R) {
440
- return Qe(R);
439
+ function je($) {
440
+ return Qe($);
441
441
  }
442
- function Ie(R) {
442
+ function Ie($) {
443
443
  {
444
- var le = typeof Symbol == "function" && Symbol.toStringTag, he = le && R[Symbol.toStringTag] || R.constructor.name || "Object";
444
+ var le = typeof Symbol == "function" && Symbol.toStringTag, he = le && $[Symbol.toStringTag] || $.constructor.name || "Object";
445
445
  return he;
446
446
  }
447
447
  }
448
- function Ee(R) {
448
+ function Ee($) {
449
449
  try {
450
- return Y(R), !1;
450
+ return Y($), !1;
451
451
  } catch {
452
452
  return !0;
453
453
  }
454
454
  }
455
- function Y(R) {
456
- return "" + R;
455
+ function Y($) {
456
+ return "" + $;
457
457
  }
458
- function ae(R) {
459
- if (Ee(R))
460
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(R)), Y(R);
458
+ function ae($) {
459
+ if (Ee($))
460
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie($)), Y($);
461
461
  }
462
462
  var xe = g.ReactCurrentOwner, oe = {
463
463
  key: !0,
@@ -466,59 +466,59 @@ function ch() {
466
466
  __source: !0
467
467
  }, de, ve, Be;
468
468
  Be = {};
469
- function He(R) {
470
- if (Ae.call(R, "ref")) {
471
- var le = Object.getOwnPropertyDescriptor(R, "ref").get;
469
+ function He($) {
470
+ if (Ae.call($, "ref")) {
471
+ var le = Object.getOwnPropertyDescriptor($, "ref").get;
472
472
  if (le && le.isReactWarning)
473
473
  return !1;
474
474
  }
475
- return R.ref !== void 0;
475
+ return $.ref !== void 0;
476
476
  }
477
- function Ot(R) {
478
- if (Ae.call(R, "key")) {
479
- var le = Object.getOwnPropertyDescriptor(R, "key").get;
477
+ function Ot($) {
478
+ if (Ae.call($, "key")) {
479
+ var le = Object.getOwnPropertyDescriptor($, "key").get;
480
480
  if (le && le.isReactWarning)
481
481
  return !1;
482
482
  }
483
- return R.key !== void 0;
483
+ return $.key !== void 0;
484
484
  }
485
- function Dt(R, le) {
486
- if (typeof R.ref == "string" && xe.current && le && xe.current.stateNode !== le) {
485
+ function Dt($, le) {
486
+ if (typeof $.ref == "string" && xe.current && le && xe.current.stateNode !== le) {
487
487
  var he = k(xe.current.type);
488
- Be[he] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(xe.current.type), R.ref), Be[he] = !0);
488
+ Be[he] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(xe.current.type), $.ref), Be[he] = !0);
489
489
  }
490
490
  }
491
- function st(R, le) {
491
+ function st($, le) {
492
492
  {
493
493
  var he = function() {
494
494
  de || (de = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", le));
495
495
  };
496
- he.isReactWarning = !0, Object.defineProperty(R, "key", {
496
+ he.isReactWarning = !0, Object.defineProperty($, "key", {
497
497
  get: he,
498
498
  configurable: !0
499
499
  });
500
500
  }
501
501
  }
502
- function Yt(R, le) {
502
+ function Yt($, le) {
503
503
  {
504
504
  var he = function() {
505
505
  ve || (ve = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", le));
506
506
  };
507
- he.isReactWarning = !0, Object.defineProperty(R, "ref", {
507
+ he.isReactWarning = !0, Object.defineProperty($, "ref", {
508
508
  get: he,
509
509
  configurable: !0
510
510
  });
511
511
  }
512
512
  }
513
- var Tt = function(R, le, he, Fe, ze, Ye, $e) {
513
+ var Tt = function($, le, he, Fe, ze, Ye, Re) {
514
514
  var Me = {
515
515
  // This tag allows us to uniquely identify this as a React Element
516
516
  $$typeof: t,
517
517
  // Built-in properties that belong on the element
518
- type: R,
518
+ type: $,
519
519
  key: le,
520
520
  ref: he,
521
- props: $e,
521
+ props: Re,
522
522
  // Record the component responsible for creating this element.
523
523
  _owner: Ye
524
524
  };
@@ -539,53 +539,53 @@ function ch() {
539
539
  value: ze
540
540
  }), Object.freeze && (Object.freeze(Me.props), Object.freeze(Me)), Me;
541
541
  };
542
- function ka(R, le, he, Fe, ze) {
542
+ function ka($, le, he, Fe, ze) {
543
543
  {
544
- var Ye, $e = {}, Me = null, pt = null;
544
+ var Ye, Re = {}, Me = null, pt = null;
545
545
  he !== void 0 && (ae(he), Me = "" + he), Ot(le) && (ae(le.key), Me = "" + le.key), He(le) && (pt = le.ref, Dt(le, ze));
546
546
  for (Ye in le)
547
- Ae.call(le, Ye) && !oe.hasOwnProperty(Ye) && ($e[Ye] = le[Ye]);
548
- if (R && R.defaultProps) {
549
- var it = R.defaultProps;
547
+ Ae.call(le, Ye) && !oe.hasOwnProperty(Ye) && (Re[Ye] = le[Ye]);
548
+ if ($ && $.defaultProps) {
549
+ var it = $.defaultProps;
550
550
  for (Ye in it)
551
- $e[Ye] === void 0 && ($e[Ye] = it[Ye]);
551
+ Re[Ye] === void 0 && (Re[Ye] = it[Ye]);
552
552
  }
553
553
  if (Me || pt) {
554
- var ot = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
555
- Me && st($e, ot), pt && Yt($e, ot);
554
+ var ot = typeof $ == "function" ? $.displayName || $.name || "Unknown" : $;
555
+ Me && st(Re, ot), pt && Yt(Re, ot);
556
556
  }
557
- return Tt(R, Me, pt, ze, Fe, xe.current, $e);
557
+ return Tt($, Me, pt, ze, Fe, xe.current, Re);
558
558
  }
559
559
  }
560
560
  var _r = g.ReactCurrentOwner, mi = g.ReactDebugCurrentFrame;
561
- function Gn(R) {
562
- if (R) {
563
- var le = R._owner, he = we(R.type, R._source, le ? le.type : null);
561
+ function Gn($) {
562
+ if ($) {
563
+ var le = $._owner, he = we($.type, $._source, le ? le.type : null);
564
564
  mi.setExtraStackFrame(he);
565
565
  } else
566
566
  mi.setExtraStackFrame(null);
567
567
  }
568
568
  var Aa;
569
569
  Aa = !1;
570
- function Fa(R) {
571
- return typeof R == "object" && R !== null && R.$$typeof === t;
570
+ function Fa($) {
571
+ return typeof $ == "object" && $ !== null && $.$$typeof === t;
572
572
  }
573
573
  function ol() {
574
574
  {
575
575
  if (_r.current) {
576
- var R = k(_r.current.type);
577
- if (R)
576
+ var $ = k(_r.current.type);
577
+ if ($)
578
578
  return `
579
579
 
580
- Check the render method of \`` + R + "`.";
580
+ Check the render method of \`` + $ + "`.";
581
581
  }
582
582
  return "";
583
583
  }
584
584
  }
585
- function Lm(R) {
585
+ function Lm($) {
586
586
  {
587
- if (R !== void 0) {
588
- var le = R.fileName.replace(/^.*[\\\/]/, ""), he = R.lineNumber;
587
+ if ($ !== void 0) {
588
+ var le = $.fileName.replace(/^.*[\\\/]/, ""), he = $.lineNumber;
589
589
  return `
590
590
 
591
591
  Check your code at ` + le + ":" + he + ".";
@@ -594,11 +594,11 @@ Check your code at ` + le + ":" + he + ".";
594
594
  }
595
595
  }
596
596
  var ll = {};
597
- function zm(R) {
597
+ function zm($) {
598
598
  {
599
599
  var le = ol();
600
600
  if (!le) {
601
- var he = typeof R == "string" ? R : R.displayName || R.name;
601
+ var he = typeof $ == "string" ? $ : $.displayName || $.name;
602
602
  he && (le = `
603
603
 
604
604
  Check the top-level render call using <` + he + ">.");
@@ -606,41 +606,41 @@ Check the top-level render call using <` + he + ">.");
606
606
  return le;
607
607
  }
608
608
  }
609
- function ul(R, le) {
609
+ function ul($, le) {
610
610
  {
611
- if (!R._store || R._store.validated || R.key != null)
611
+ if (!$._store || $._store.validated || $.key != null)
612
612
  return;
613
- R._store.validated = !0;
613
+ $._store.validated = !0;
614
614
  var he = zm(le);
615
615
  if (ll[he])
616
616
  return;
617
617
  ll[he] = !0;
618
618
  var Fe = "";
619
- R && R._owner && R._owner !== _r.current && (Fe = " It was passed a child from " + k(R._owner.type) + "."), Gn(R), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', he, Fe), Gn(null);
619
+ $ && $._owner && $._owner !== _r.current && (Fe = " It was passed a child from " + k($._owner.type) + "."), Gn($), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', he, Fe), Gn(null);
620
620
  }
621
621
  }
622
- function cl(R, le) {
622
+ function cl($, le) {
623
623
  {
624
- if (typeof R != "object")
624
+ if (typeof $ != "object")
625
625
  return;
626
- if (je(R))
627
- for (var he = 0; he < R.length; he++) {
628
- var Fe = R[he];
626
+ if (je($))
627
+ for (var he = 0; he < $.length; he++) {
628
+ var Fe = $[he];
629
629
  Fa(Fe) && ul(Fe, le);
630
630
  }
631
- else if (Fa(R))
632
- R._store && (R._store.validated = !0);
633
- else if (R) {
634
- var ze = b(R);
635
- if (typeof ze == "function" && ze !== R.entries)
636
- for (var Ye = ze.call(R), $e; !($e = Ye.next()).done; )
637
- Fa($e.value) && ul($e.value, le);
631
+ else if (Fa($))
632
+ $._store && ($._store.validated = !0);
633
+ else if ($) {
634
+ var ze = b($);
635
+ if (typeof ze == "function" && ze !== $.entries)
636
+ for (var Ye = ze.call($), Re; !(Re = Ye.next()).done; )
637
+ Fa(Re.value) && ul(Re.value, le);
638
638
  }
639
639
  }
640
640
  }
641
- function qm(R) {
641
+ function qm($) {
642
642
  {
643
- var le = R.type;
643
+ var le = $.type;
644
644
  if (le == null || typeof le == "string")
645
645
  return;
646
646
  var he;
@@ -654,7 +654,7 @@ Check the top-level render call using <` + he + ">.");
654
654
  return;
655
655
  if (he) {
656
656
  var Fe = k(le);
657
- Ge(he, R.props, "prop", Fe, R);
657
+ Ge(he, $.props, "prop", Fe, $);
658
658
  } else if (le.PropTypes !== void 0 && !Aa) {
659
659
  Aa = !0;
660
660
  var ze = k(le);
@@ -663,53 +663,53 @@ Check the top-level render call using <` + he + ">.");
663
663
  typeof le.getDefaultProps == "function" && !le.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
664
664
  }
665
665
  }
666
- function Um(R) {
666
+ function Um($) {
667
667
  {
668
- for (var le = Object.keys(R.props), he = 0; he < le.length; he++) {
668
+ for (var le = Object.keys($.props), he = 0; he < le.length; he++) {
669
669
  var Fe = le[he];
670
670
  if (Fe !== "children" && Fe !== "key") {
671
- Gn(R), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Fe), Gn(null);
671
+ Gn($), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Fe), Gn(null);
672
672
  break;
673
673
  }
674
674
  }
675
- R.ref !== null && (Gn(R), y("Invalid attribute `ref` supplied to `React.Fragment`."), Gn(null));
675
+ $.ref !== null && (Gn($), y("Invalid attribute `ref` supplied to `React.Fragment`."), Gn(null));
676
676
  }
677
677
  }
678
- function dl(R, le, he, Fe, ze, Ye) {
678
+ function dl($, le, he, Fe, ze, Ye) {
679
679
  {
680
- var $e = L(R);
681
- if (!$e) {
680
+ var Re = L($);
681
+ if (!Re) {
682
682
  var Me = "";
683
- (R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && (Me += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
683
+ ($ === void 0 || typeof $ == "object" && $ !== null && Object.keys($).length === 0) && (Me += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
684
684
  var pt = Lm(ze);
685
685
  pt ? Me += pt : Me += ol();
686
686
  var it;
687
- R === null ? it = "null" : je(R) ? it = "array" : R !== void 0 && R.$$typeof === t ? (it = "<" + (k(R.type) || "Unknown") + " />", Me = " Did you accidentally export a JSX literal instead of a component?") : it = typeof R, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", it, Me);
687
+ $ === null ? it = "null" : je($) ? it = "array" : $ !== void 0 && $.$$typeof === t ? (it = "<" + (k($.type) || "Unknown") + " />", Me = " Did you accidentally export a JSX literal instead of a component?") : it = typeof $, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", it, Me);
688
688
  }
689
- var ot = ka(R, le, he, ze, Ye);
689
+ var ot = ka($, le, he, ze, Ye);
690
690
  if (ot == null)
691
691
  return ot;
692
- if ($e) {
692
+ if (Re) {
693
693
  var Nt = le.children;
694
694
  if (Nt !== void 0)
695
695
  if (Fe)
696
696
  if (je(Nt)) {
697
697
  for (var Qn = 0; Qn < Nt.length; Qn++)
698
- cl(Nt[Qn], R);
698
+ cl(Nt[Qn], $);
699
699
  Object.freeze && Object.freeze(Nt);
700
700
  } else
701
701
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
702
702
  else
703
- cl(Nt, R);
703
+ cl(Nt, $);
704
704
  }
705
- return R === r ? Um(ot) : qm(ot), ot;
705
+ return $ === r ? Um(ot) : qm(ot), ot;
706
706
  }
707
707
  }
708
- function Wm(R, le, he) {
709
- return dl(R, le, he, !0);
708
+ function Wm($, le, he) {
709
+ return dl($, le, he, !0);
710
710
  }
711
- function Vm(R, le, he) {
712
- return dl(R, le, he, !1);
711
+ function Vm($, le, he) {
712
+ return dl($, le, he, !1);
713
713
  }
714
714
  var Hm = Vm, Km = Wm;
715
715
  Ar.Fragment = r, Ar.jsx = Hm, Ar.jsxs = Km;
@@ -965,7 +965,7 @@ const pl = {}, gh = fo(
965
965
  }
966
966
  ), Dr = qt(gh), si = (e, t) => {
967
967
  Array.isArray(t) || (t = [t]);
968
- const n = Rt(e);
968
+ const n = $t(e);
969
969
  return t.forEach(({ type: r, value: i }) => {
970
970
  Jm(n, r, i);
971
971
  }), n;
@@ -985,7 +985,7 @@ const pl = {}, gh = fo(
985
985
  break;
986
986
  }
987
987
  return r;
988
- }, vh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), bh = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), yh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), Zk = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), dn = "https://storage.googleapis.com/apolitical-assets/", Nr = {
988
+ }, vh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), bh = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), yh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), Zk = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), dn = "https://assets.apolitical.co/", Nr = {
989
989
  general: "hello@apolitical.co",
990
990
  support: "concierge@apolitical.co",
991
991
  "data-protection": {
@@ -2059,7 +2059,7 @@ const Jk = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
2059
2059
  ...d
2060
2060
  }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
2061
2061
  };
2062
- const $h = fo(
2062
+ const Rh = fo(
2063
2063
  ({ className: e = "", children: t }, n) => {
2064
2064
  const r = Se(null), i = n || r;
2065
2065
  return /* @__PURE__ */ c.jsx(
@@ -2072,7 +2072,7 @@ const $h = fo(
2072
2072
  }
2073
2073
  );
2074
2074
  }
2075
- ), li = ({ parent: e = document.body, children: t }) => typeof document == "object" ? od.createPortal(t, e) : null, Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2075
+ ), li = ({ parent: e = document.body, children: t }) => typeof document == "object" ? od.createPortal(t, e) : null, $h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2076
2076
  __proto__: null,
2077
2077
  default: li
2078
2078
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2494,10 +2494,10 @@ const Gh = ({ children: e, badges: t }) => /* @__PURE__ */ c.jsx(wd.Provider, {
2494
2494
  e && /* @__PURE__ */ c.jsx(nh, { initialIsOpen: !1 })
2495
2495
  ] });
2496
2496
  };
2497
- var Jh = xt({ client: Ri });
2497
+ var Jh = xt({ client: $i });
2498
2498
  function Xh(e) {
2499
2499
  var t = e.children, n = e.client, r = e.apiKey, i = e.options, a = en(function() {
2500
- return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && i && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (Ri.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Ri.init(r, i)), Ri);
2500
+ return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && i && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && ($i.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), $i.init(r, i)), $i);
2501
2501
  }, [n, r]);
2502
2502
  return re.createElement(Jh.Provider, { value: { client: a } }, t);
2503
2503
  }
@@ -2547,9 +2547,9 @@ const rp = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx
2547
2547
  fe(() => {
2548
2548
  t.length > 0 ? document.body.classList.add("has-overlay") : document.body.classList.remove("has-overlay");
2549
2549
  }, [t]);
2550
- const r = Re((a) => {
2550
+ const r = $e((a) => {
2551
2551
  n((s) => [...s, a]);
2552
- }, []), i = Re((a) => {
2552
+ }, []), i = $e((a) => {
2553
2553
  n(
2554
2554
  (s) => s.filter((o) => o !== a)
2555
2555
  );
@@ -3107,7 +3107,7 @@ const wo = (e) => e === "apolitical" ? {
3107
3107
  let u = `${o}${(i || a) && s ? `, ${n}` : n}`;
3108
3108
  return u.length > r && (u = o), u.length > r && (u = mr(u, r)), u;
3109
3109
  };
3110
- const Dp = wr(() => Promise.resolve().then(() => Rh)), Cp = wr(
3110
+ const Dp = wr(() => Promise.resolve().then(() => $h)), Cp = wr(
3111
3111
  () => Promise.resolve().then(() => bk)
3112
3112
  );
3113
3113
  let vi = null;
@@ -3502,7 +3502,7 @@ function kp() {
3502
3502
  function S(Q) {
3503
3503
  return _(Q) === d;
3504
3504
  }
3505
- function $(Q) {
3505
+ function R(Q) {
3506
3506
  return _(Q) === r;
3507
3507
  }
3508
3508
  function O(Q) {
@@ -3523,7 +3523,7 @@ function kp() {
3523
3523
  function me(Q) {
3524
3524
  return _(Q) === m;
3525
3525
  }
3526
- We.AsyncMode = C, We.ConcurrentMode = E, We.ContextConsumer = B, We.ContextProvider = j, We.Element = N, We.ForwardRef = L, We.Fragment = P, We.Lazy = A, We.Memo = k, We.Portal = T, We.Profiler = M, We.StrictMode = V, We.Suspense = W, We.isAsyncMode = te, We.isConcurrentMode = D, We.isContextConsumer = Z, We.isContextProvider = z, We.isElement = F, We.isForwardRef = S, We.isFragment = $, We.isLazy = O, We.isMemo = q, We.isPortal = J, We.isProfiler = U, We.isStrictMode = ee, We.isSuspense = me, We.isValidElementType = w, We.typeOf = _;
3526
+ We.AsyncMode = C, We.ConcurrentMode = E, We.ContextConsumer = B, We.ContextProvider = j, We.Element = N, We.ForwardRef = L, We.Fragment = P, We.Lazy = A, We.Memo = k, We.Portal = T, We.Profiler = M, We.StrictMode = V, We.Suspense = W, We.isAsyncMode = te, We.isConcurrentMode = D, We.isContextConsumer = Z, We.isContextProvider = z, We.isElement = F, We.isForwardRef = S, We.isFragment = R, We.isLazy = O, We.isMemo = q, We.isPortal = J, We.isProfiler = U, We.isStrictMode = ee, We.isSuspense = me, We.isValidElementType = w, We.typeOf = _;
3527
3527
  }()), We;
3528
3528
  }
3529
3529
  var Sl;
@@ -3594,10 +3594,10 @@ var Ma, Ol;
3594
3594
  function jd() {
3595
3595
  return Ol || (Ol = 1, Ma = Function.call.bind(Object.prototype.hasOwnProperty)), Ma;
3596
3596
  }
3597
- var $a, Nl;
3597
+ var Ra, Nl;
3598
3598
  function Fp() {
3599
3599
  if (Nl)
3600
- return $a;
3600
+ return Ra;
3601
3601
  Nl = 1;
3602
3602
  var e = function() {
3603
3603
  };
@@ -3642,12 +3642,12 @@ function Fp() {
3642
3642
  }
3643
3643
  return i.resetWarningCache = function() {
3644
3644
  process.env.NODE_ENV !== "production" && (n = {});
3645
- }, $a = i, $a;
3645
+ }, Ra = i, Ra;
3646
3646
  }
3647
- var Ra, Ml;
3647
+ var $a, Ml;
3648
3648
  function Bp() {
3649
3649
  if (Ml)
3650
- return Ra;
3650
+ return $a;
3651
3651
  Ml = 1;
3652
3652
  var e = Sd(), t = Ap(), n = Do(), r = jd(), i = Fp(), a = function() {
3653
3653
  };
@@ -3662,7 +3662,7 @@ function Bp() {
3662
3662
  function s() {
3663
3663
  return null;
3664
3664
  }
3665
- return Ra = function(o, u) {
3665
+ return $a = function(o, u) {
3666
3666
  var l = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
3667
3667
  function m(D) {
3668
3668
  var Z = D && (l && D[l] || D[d]);
@@ -3700,7 +3700,7 @@ function Bp() {
3700
3700
  function b(D) {
3701
3701
  if (process.env.NODE_ENV !== "production")
3702
3702
  var Z = {}, z = 0;
3703
- function F($, O, q, J, U, ee, me) {
3703
+ function F(R, O, q, J, U, ee, me) {
3704
3704
  if (J = J || h, ee = ee || q, me !== n) {
3705
3705
  if (u) {
3706
3706
  var Q = new Error(
@@ -3715,18 +3715,18 @@ function Bp() {
3715
3715
  ), Z[ye] = !0, z++);
3716
3716
  }
3717
3717
  }
3718
- return O[q] == null ? $ ? O[q] === null ? new f("The " + U + " `" + ee + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new f("The " + U + " `" + ee + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : D(O, q, J, U, ee);
3718
+ return O[q] == null ? R ? O[q] === null ? new f("The " + U + " `" + ee + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new f("The " + U + " `" + ee + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : D(O, q, J, U, ee);
3719
3719
  }
3720
3720
  var S = F.bind(null, !1);
3721
3721
  return S.isRequired = F.bind(null, !0), S;
3722
3722
  }
3723
3723
  function g(D) {
3724
- function Z(z, F, S, $, O, q) {
3724
+ function Z(z, F, S, R, O, q) {
3725
3725
  var J = z[F], U = V(J);
3726
3726
  if (U !== D) {
3727
3727
  var ee = W(J);
3728
3728
  return new f(
3729
- "Invalid " + $ + " `" + O + "` of type " + ("`" + ee + "` supplied to `" + S + "`, expected ") + ("`" + D + "`."),
3729
+ "Invalid " + R + " `" + O + "` of type " + ("`" + ee + "` supplied to `" + S + "`, expected ") + ("`" + D + "`."),
3730
3730
  { expectedType: D }
3731
3731
  );
3732
3732
  }
@@ -3738,16 +3738,16 @@ function Bp() {
3738
3738
  return b(s);
3739
3739
  }
3740
3740
  function w(D) {
3741
- function Z(z, F, S, $, O) {
3741
+ function Z(z, F, S, R, O) {
3742
3742
  if (typeof D != "function")
3743
3743
  return new f("Property `" + O + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
3744
3744
  var q = z[F];
3745
3745
  if (!Array.isArray(q)) {
3746
3746
  var J = V(q);
3747
- return new f("Invalid " + $ + " `" + O + "` of type " + ("`" + J + "` supplied to `" + S + "`, expected an array."));
3747
+ return new f("Invalid " + R + " `" + O + "` of type " + ("`" + J + "` supplied to `" + S + "`, expected an array."));
3748
3748
  }
3749
3749
  for (var U = 0; U < q.length; U++) {
3750
- var ee = D(q, U, S, $, O + "[" + U + "]", n);
3750
+ var ee = D(q, U, S, R, O + "[" + U + "]", n);
3751
3751
  if (ee instanceof Error)
3752
3752
  return ee;
3753
3753
  }
@@ -3756,32 +3756,32 @@ function Bp() {
3756
3756
  return b(Z);
3757
3757
  }
3758
3758
  function _() {
3759
- function D(Z, z, F, S, $) {
3759
+ function D(Z, z, F, S, R) {
3760
3760
  var O = Z[z];
3761
3761
  if (!o(O)) {
3762
3762
  var q = V(O);
3763
- return new f("Invalid " + S + " `" + $ + "` of type " + ("`" + q + "` supplied to `" + F + "`, expected a single ReactElement."));
3763
+ return new f("Invalid " + S + " `" + R + "` of type " + ("`" + q + "` supplied to `" + F + "`, expected a single ReactElement."));
3764
3764
  }
3765
3765
  return null;
3766
3766
  }
3767
3767
  return b(D);
3768
3768
  }
3769
3769
  function C() {
3770
- function D(Z, z, F, S, $) {
3770
+ function D(Z, z, F, S, R) {
3771
3771
  var O = Z[z];
3772
3772
  if (!e.isValidElementType(O)) {
3773
3773
  var q = V(O);
3774
- return new f("Invalid " + S + " `" + $ + "` of type " + ("`" + q + "` supplied to `" + F + "`, expected a single ReactElement type."));
3774
+ return new f("Invalid " + S + " `" + R + "` of type " + ("`" + q + "` supplied to `" + F + "`, expected a single ReactElement type."));
3775
3775
  }
3776
3776
  return null;
3777
3777
  }
3778
3778
  return b(D);
3779
3779
  }
3780
3780
  function E(D) {
3781
- function Z(z, F, S, $, O) {
3781
+ function Z(z, F, S, R, O) {
3782
3782
  if (!(z[F] instanceof D)) {
3783
3783
  var q = D.name || h, J = te(z[F]);
3784
- return new f("Invalid " + $ + " `" + O + "` of type " + ("`" + J + "` supplied to `" + S + "`, expected ") + ("instance of `" + q + "`."));
3784
+ return new f("Invalid " + R + " `" + O + "` of type " + ("`" + J + "` supplied to `" + S + "`, expected ") + ("instance of `" + q + "`."));
3785
3785
  }
3786
3786
  return null;
3787
3787
  }
@@ -3792,7 +3792,7 @@ function Bp() {
3792
3792
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
3793
3793
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
3794
3794
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
3795
- function Z(z, F, S, $, O) {
3795
+ function Z(z, F, S, R, O) {
3796
3796
  for (var q = z[F], J = 0; J < D.length; J++)
3797
3797
  if (v(q, D[J]))
3798
3798
  return null;
@@ -3800,20 +3800,20 @@ function Bp() {
3800
3800
  var ye = W(Q);
3801
3801
  return ye === "symbol" ? String(Q) : Q;
3802
3802
  });
3803
- return new f("Invalid " + $ + " `" + O + "` of value `" + String(q) + "` " + ("supplied to `" + S + "`, expected one of " + U + "."));
3803
+ return new f("Invalid " + R + " `" + O + "` of value `" + String(q) + "` " + ("supplied to `" + S + "`, expected one of " + U + "."));
3804
3804
  }
3805
3805
  return b(Z);
3806
3806
  }
3807
3807
  function j(D) {
3808
- function Z(z, F, S, $, O) {
3808
+ function Z(z, F, S, R, O) {
3809
3809
  if (typeof D != "function")
3810
3810
  return new f("Property `" + O + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
3811
3811
  var q = z[F], J = V(q);
3812
3812
  if (J !== "object")
3813
- return new f("Invalid " + $ + " `" + O + "` of type " + ("`" + J + "` supplied to `" + S + "`, expected an object."));
3813
+ return new f("Invalid " + R + " `" + O + "` of type " + ("`" + J + "` supplied to `" + S + "`, expected an object."));
3814
3814
  for (var U in q)
3815
3815
  if (r(q, U)) {
3816
- var ee = D(q, U, S, $, O + "." + U, n);
3816
+ var ee = D(q, U, S, R, O + "." + U, n);
3817
3817
  if (ee instanceof Error)
3818
3818
  return ee;
3819
3819
  }
@@ -3831,9 +3831,9 @@ function Bp() {
3831
3831
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(z) + " at index " + Z + "."
3832
3832
  ), s;
3833
3833
  }
3834
- function F(S, $, O, q, J) {
3834
+ function F(S, R, O, q, J) {
3835
3835
  for (var U = [], ee = 0; ee < D.length; ee++) {
3836
- var me = D[ee], Q = me(S, $, O, q, J, n);
3836
+ var me = D[ee], Q = me(S, R, O, q, J, n);
3837
3837
  if (Q == null)
3838
3838
  return null;
3839
3839
  Q.data && r(Q.data, "expectedType") && U.push(Q.data.expectedType);
@@ -3844,8 +3844,8 @@ function Bp() {
3844
3844
  return b(F);
3845
3845
  }
3846
3846
  function L() {
3847
- function D(Z, z, F, S, $) {
3848
- return T(Z[z]) ? null : new f("Invalid " + S + " `" + $ + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
3847
+ function D(Z, z, F, S, R) {
3848
+ return T(Z[z]) ? null : new f("Invalid " + S + " `" + R + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
3849
3849
  }
3850
3850
  return b(D);
3851
3851
  }
@@ -3855,15 +3855,15 @@ function Bp() {
3855
3855
  );
3856
3856
  }
3857
3857
  function A(D) {
3858
- function Z(z, F, S, $, O) {
3858
+ function Z(z, F, S, R, O) {
3859
3859
  var q = z[F], J = V(q);
3860
3860
  if (J !== "object")
3861
- return new f("Invalid " + $ + " `" + O + "` of type `" + J + "` " + ("supplied to `" + S + "`, expected `object`."));
3861
+ return new f("Invalid " + R + " `" + O + "` of type `" + J + "` " + ("supplied to `" + S + "`, expected `object`."));
3862
3862
  for (var U in D) {
3863
3863
  var ee = D[U];
3864
3864
  if (typeof ee != "function")
3865
- return P(S, $, O, U, W(ee));
3866
- var me = ee(q, U, S, $, O + "." + U, n);
3865
+ return P(S, R, O, U, W(ee));
3866
+ var me = ee(q, U, S, R, O + "." + U, n);
3867
3867
  if (me)
3868
3868
  return me;
3869
3869
  }
@@ -3872,21 +3872,21 @@ function Bp() {
3872
3872
  return b(Z);
3873
3873
  }
3874
3874
  function k(D) {
3875
- function Z(z, F, S, $, O) {
3875
+ function Z(z, F, S, R, O) {
3876
3876
  var q = z[F], J = V(q);
3877
3877
  if (J !== "object")
3878
- return new f("Invalid " + $ + " `" + O + "` of type `" + J + "` " + ("supplied to `" + S + "`, expected `object`."));
3878
+ return new f("Invalid " + R + " `" + O + "` of type `" + J + "` " + ("supplied to `" + S + "`, expected `object`."));
3879
3879
  var U = t({}, z[F], D);
3880
3880
  for (var ee in U) {
3881
3881
  var me = D[ee];
3882
3882
  if (r(D, ee) && typeof me != "function")
3883
- return P(S, $, O, ee, W(me));
3883
+ return P(S, R, O, ee, W(me));
3884
3884
  if (!me)
3885
3885
  return new f(
3886
- "Invalid " + $ + " `" + O + "` key `" + ee + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(z[F], null, " ") + `
3886
+ "Invalid " + R + " `" + O + "` key `" + ee + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(z[F], null, " ") + `
3887
3887
  Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3888
3888
  );
3889
- var Q = me(q, ee, S, $, O + "." + ee, n);
3889
+ var Q = me(q, ee, S, R, O + "." + ee, n);
3890
3890
  if (Q)
3891
3891
  return Q;
3892
3892
  }
@@ -3964,13 +3964,13 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3964
3964
  return !D.constructor || !D.constructor.name ? h : D.constructor.name;
3965
3965
  }
3966
3966
  return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
3967
- }, Ra;
3967
+ }, $a;
3968
3968
  }
3969
- var Ia, $l;
3969
+ var Ia, Rl;
3970
3970
  function Tp() {
3971
- if ($l)
3971
+ if (Rl)
3972
3972
  return Ia;
3973
- $l = 1;
3973
+ Rl = 1;
3974
3974
  var e = Do();
3975
3975
  function t() {
3976
3976
  }
@@ -4070,22 +4070,22 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4070
4070
  }
4071
4071
  }
4072
4072
  return i;
4073
- }, $d = function(t) {
4073
+ }, Rd = function(t) {
4074
4074
  return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
4075
4075
  }, Dn = function(t) {
4076
4076
  if (!t)
4077
4077
  throw new Error("No node provided");
4078
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Op(t)) && !$d(t) ? 0 : t.tabIndex;
4078
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Op(t)) && !Rd(t) ? 0 : t.tabIndex;
4079
4079
  }, Np = function(t, n) {
4080
4080
  var r = Dn(t);
4081
- return r < 0 && n && !$d(t) ? 0 : r;
4081
+ return r < 0 && n && !Rd(t) ? 0 : r;
4082
4082
  }, Mp = function(t, n) {
4083
4083
  return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
4084
- }, Rd = function(t) {
4084
+ }, $d = function(t) {
4085
4085
  return t.tagName === "INPUT";
4086
- }, $p = function(t) {
4087
- return Rd(t) && t.type === "hidden";
4088
4086
  }, Rp = function(t) {
4087
+ return $d(t) && t.type === "hidden";
4088
+ }, $p = function(t) {
4089
4089
  var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
4090
4090
  return r.tagName === "SUMMARY";
4091
4091
  });
@@ -4111,7 +4111,7 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4111
4111
  var a = Ip(i, t.form);
4112
4112
  return !a || a === t;
4113
4113
  }, zp = function(t) {
4114
- return Rd(t) && t.type === "radio";
4114
+ return $d(t) && t.type === "radio";
4115
4115
  }, qp = function(t) {
4116
4116
  return zp(t) && !Lp(t);
4117
4117
  }, Up = function(t) {
@@ -4124,7 +4124,7 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4124
4124
  }
4125
4125
  }
4126
4126
  return a;
4127
- }, Rl = function(t) {
4127
+ }, $l = function(t) {
4128
4128
  var n = t.getBoundingClientRect(), r = n.width, i = n.height;
4129
4129
  return r === 0 && i === 0;
4130
4130
  }, Wp = function(t, n) {
@@ -4139,7 +4139,7 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4139
4139
  for (var o = t; t; ) {
4140
4140
  var u = t.parentElement, l = Ji(t);
4141
4141
  if (u && !u.shadowRoot && i(u) === !0)
4142
- return Rl(t);
4142
+ return $l(t);
4143
4143
  t.assignedSlot ? t = t.assignedSlot : !u && l !== t.ownerDocument ? t = l.host : t = u;
4144
4144
  }
4145
4145
  t = o;
@@ -4149,7 +4149,7 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4149
4149
  if (r !== "legacy-full")
4150
4150
  return !0;
4151
4151
  } else if (r === "non-zero-area")
4152
- return Rl(t);
4152
+ return $l(t);
4153
4153
  return !1;
4154
4154
  }, Vp = function(t) {
4155
4155
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
@@ -4169,9 +4169,9 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4169
4169
  return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
4170
4170
  // because we're limited in the type of selectors we can use in JSDom (see related
4171
4171
  // note related to `candidateSelectors`)
4172
- Xi(n) || $p(n) || Wp(n, t) || // For a details element with a summary, the summary element gets the focus
4173
- Rp(n) || Vp(n));
4174
- }, $s = function(t, n) {
4172
+ Xi(n) || Rp(n) || Wp(n, t) || // For a details element with a summary, the summary element gets the focus
4173
+ $p(n) || Vp(n));
4174
+ }, Rs = function(t, n) {
4175
4175
  return !(qp(n) || Dn(n) < 0 || !ea(t, n));
4176
4176
  }, Hp = function(t) {
4177
4177
  var n = parseInt(t.getAttribute("tabindex"), 10);
@@ -4194,11 +4194,11 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4194
4194
  n = n || {};
4195
4195
  var r;
4196
4196
  return n.getShadowRoot ? r = Md([t], n.includeContainer, {
4197
- filter: $s.bind(null, n),
4197
+ filter: Rs.bind(null, n),
4198
4198
  flatten: !1,
4199
4199
  getShadowRoot: n.getShadowRoot,
4200
4200
  shadowRootFilter: Hp
4201
- }) : r = Nd(t, n.includeContainer, $s.bind(null, n)), Kp(r);
4201
+ }) : r = Nd(t, n.includeContainer, Rs.bind(null, n)), Kp(r);
4202
4202
  }, Ld = function(t, n) {
4203
4203
  n = n || {};
4204
4204
  var r;
@@ -4210,7 +4210,7 @@ var Pd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4210
4210
  }, jn = function(t, n) {
4211
4211
  if (n = n || {}, !t)
4212
4212
  throw new Error("No node provided");
4213
- return In.call(t, Qi) === !1 ? !1 : $s(n, t);
4213
+ return In.call(t, Qi) === !1 ? !1 : Rs(n, t);
4214
4214
  }, Zp = /* @__PURE__ */ Pd.concat("iframe").join(","), Li = function(t, n) {
4215
4215
  if (n = n || {}, !t)
4216
4216
  throw new Error("No node provided");
@@ -4492,8 +4492,8 @@ var zl = {
4492
4492
  return k === q;
4493
4493
  });
4494
4494
  if (F < 0 && (te.container === k || Li(k, a.tabbableOptions) && !jn(k, a.tabbableOptions) && !te.nextTabbableNode(k)) && (F = ie), F >= 0) {
4495
- var S = F === s.tabbableGroups.length - 1 ? 0 : F + 1, $ = s.tabbableGroups[S];
4496
- W = Dn(k) >= 0 ? $.firstTabbableNode : $.firstDomTabbableNode;
4495
+ var S = F === s.tabbableGroups.length - 1 ? 0 : F + 1, R = s.tabbableGroups[S];
4496
+ W = Dn(k) >= 0 ? R.firstTabbableNode : R.firstDomTabbableNode;
4497
4497
  } else
4498
4498
  Ir(T) || (W = te.nextTabbableNode(k));
4499
4499
  }
@@ -4685,12 +4685,12 @@ function ug(e, t, n) {
4685
4685
  function cg(e, t) {
4686
4686
  if (typeof t != "function" && t !== null)
4687
4687
  throw new TypeError("Super expression must either be null or a function");
4688
- e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Rs(e, t);
4688
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && $s(e, t);
4689
4689
  }
4690
- function Rs(e, t) {
4691
- return Rs = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
4690
+ function $s(e, t) {
4691
+ return $s = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
4692
4692
  return r.__proto__ = i, r;
4693
- }, Rs(e, t);
4693
+ }, $s(e, t);
4694
4694
  }
4695
4695
  function dg(e) {
4696
4696
  var t = mg();
@@ -5805,7 +5805,7 @@ Object.freeze({
5805
5805
  latest_children: {},
5806
5806
  children_counts: {}
5807
5807
  });
5808
- const $g = ({
5808
+ const Rg = ({
5809
5809
  question: e,
5810
5810
  answer: t,
5811
5811
  reply: n
@@ -5813,9 +5813,9 @@ const $g = ({
5813
5813
  ...e && { questionSlug: e },
5814
5814
  ...t && { answerSlug: t },
5815
5815
  ...n && { replySlug: n }
5816
- }), Rg = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
5816
+ }), $g = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
5817
5817
  function Ig(e) {
5818
- return Re(
5818
+ return $e(
5819
5819
  (t) => {
5820
5820
  var s, o, u, l;
5821
5821
  if (!t || !["ArrowUp", "ArrowDown"].includes(t.key || ""))
@@ -5880,7 +5880,7 @@ const qg = ({
5880
5880
  b([{ type: "userLikedContent", value: i }]);
5881
5881
  }, [i]);
5882
5882
  const j = en(
5883
- () => Rg(n, zg),
5883
+ () => $g(n, zg),
5884
5884
  [n]
5885
5885
  ), N = (k) => {
5886
5886
  if (k.preventDefault(), k.stopPropagation(), b([{ type: "showLikers", value: !1 }]), Lr)
@@ -5899,7 +5899,7 @@ const qg = ({
5899
5899
  ]);
5900
5900
  try {
5901
5901
  if (a && a.slugs) {
5902
- const T = $g(a.slugs);
5902
+ const T = Rg(a.slugs);
5903
5903
  y ? await m(T) : await d({
5904
5904
  ...T,
5905
5905
  payload: { contentPath: window.location.pathname }
@@ -6481,7 +6481,7 @@ const aA = ({
6481
6481
  };
6482
6482
  return Gd(), _ ? /* @__PURE__ */ c.jsx(fn, { variant: "error", text: _.message }) : /* @__PURE__ */ c.jsxs("section", { className: "activities-feed", children: [
6483
6483
  /* @__PURE__ */ c.jsx(
6484
- $m,
6484
+ Rm,
6485
6485
  {
6486
6486
  isCard: !0,
6487
6487
  parentId: t,
@@ -6541,7 +6541,7 @@ const aA = ({
6541
6541
  const S = b.find((O) => O.id === z[0]);
6542
6542
  if (!S)
6543
6543
  return;
6544
- const $ = new CustomEvent("ariaLive", {
6544
+ const R = new CustomEvent("ariaLive", {
6545
6545
  detail: {
6546
6546
  message: p.formatMessage(
6547
6547
  { id: "community_sortSuccess" },
@@ -6554,7 +6554,7 @@ const aA = ({
6554
6554
  )
6555
6555
  }
6556
6556
  });
6557
- document.dispatchEvent($);
6557
+ document.dispatchEvent(R);
6558
6558
  },
6559
6559
  gtm: {
6560
6560
  context: "activitiesFeed_sorting"
@@ -6565,13 +6565,13 @@ const aA = ({
6565
6565
  var we, Ae, _e, Ve, Ze, Ge, Qe, je, Ie;
6566
6566
  const {
6567
6567
  id: S,
6568
- own_reactions: $,
6568
+ own_reactions: R,
6569
6569
  latest_reactions: O,
6570
6570
  reaction_counts: q,
6571
6571
  mentioned_users: J,
6572
6572
  total_replies: U,
6573
6573
  additional_data: ee
6574
- } = z, me = (((we = O == null ? void 0 : O.like) == null ? void 0 : we.length) || 0) > 0, Q = (((Ae = $ == null ? void 0 : $.like) == null ? void 0 : Ae.length) || 0) > 0, ye = Q ? $ == null ? void 0 : $.like[0].id : "", pe = me ? (_e = O == null ? void 0 : O.like) == null ? void 0 : _e.map((Ee) => {
6574
+ } = z, me = (((we = O == null ? void 0 : O.like) == null ? void 0 : we.length) || 0) > 0, Q = (((Ae = R == null ? void 0 : R.like) == null ? void 0 : Ae.length) || 0) > 0, ye = Q ? R == null ? void 0 : R.like[0].id : "", pe = me ? (_e = O == null ? void 0 : O.like) == null ? void 0 : _e.map((Ee) => {
6575
6575
  var Y, ae, xe;
6576
6576
  return {
6577
6577
  id: (Y = Ee == null ? void 0 : Ee.user) == null ? void 0 : Y.id,
@@ -6686,7 +6686,7 @@ const aA = ({
6686
6686
  /* @__PURE__ */ c.jsx("p", { children: p.formatMessage({ id: "activitiesFeed_noActivities" }) }),
6687
6687
  /* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(Ce, { variant: "secondary", size: "small", href: "/communities", children: p.formatMessage({ id: "activitiesFeed_noActivities_button" }) }) })
6688
6688
  ] }) }),
6689
- /* @__PURE__ */ c.jsx(Rm, { form: m })
6689
+ /* @__PURE__ */ c.jsx($m, { form: m })
6690
6690
  ] });
6691
6691
  }, sA = {
6692
6692
  next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
@@ -7254,7 +7254,7 @@ function rv({
7254
7254
  }) {
7255
7255
  const a = ce();
7256
7256
  return /* @__PURE__ */ c.jsx(
7257
- $m,
7257
+ Rm,
7258
7258
  {
7259
7259
  form: {
7260
7260
  content: { type: Pe.Reply, slugs: {} },
@@ -7795,7 +7795,7 @@ const gv = ({
7795
7795
  }
7796
7796
  )
7797
7797
  ] }) : /* @__PURE__ */ c.jsx(Lt, { children: /* @__PURE__ */ c.jsx(lt, { id: "replies_feed_missing_polls_vote_message" }) }),
7798
- /* @__PURE__ */ c.jsx(Rm, { form: d })
7798
+ /* @__PURE__ */ c.jsx($m, { form: d })
7799
7799
  ] });
7800
7800
  };
7801
7801
  function vv({ queryFn: e, queryKey: t }) {
@@ -7838,7 +7838,7 @@ function yv({
7838
7838
  }, [u]);
7839
7839
  const l = a.map(({ user: d }) => d).map((d) => d ? ci(d) : void 0).filter((d) => d && typeof d != "string");
7840
7840
  return /* @__PURE__ */ c.jsx("section", { className: "likes-feed", children: /* @__PURE__ */ c.jsx(
7841
- $_,
7841
+ R_,
7842
7842
  {
7843
7843
  members: {
7844
7844
  data: l,
@@ -8759,7 +8759,7 @@ const Ci = "emailHelperTextBox_", Mv = ({
8759
8759
  link: {},
8760
8760
  mail: {},
8761
8761
  error: ""
8762
- }), [u, l] = se(!1), d = Re(
8762
+ }), [u, l] = se(!1), d = $e(
8763
8763
  (v) => {
8764
8764
  v.preventDefault(), v.stopPropagation();
8765
8765
  const f = (b) => {
@@ -8932,7 +8932,7 @@ const Xn = {
8932
8932
  UP: "ArrowUp",
8933
8933
  DOWN: "ArrowDown",
8934
8934
  ENTER: "Enter"
8935
- }, $v = 500, Rv = ({
8935
+ }, Rv = 500, $v = ({
8936
8936
  id: e,
8937
8937
  name: t = e,
8938
8938
  value: n,
@@ -8962,7 +8962,7 @@ const Xn = {
8962
8962
  r || (r = b({ id: "inputAutocomplete_placeholder" })), fe(() => {
8963
8963
  const _ = setTimeout(() => {
8964
8964
  v || m((C) => ({ ...C, debouncedInput: u }));
8965
- }, $v);
8965
+ }, Rv);
8966
8966
  return () => {
8967
8967
  clearTimeout(_);
8968
8968
  };
@@ -9313,7 +9313,7 @@ const Lv = ({
9313
9313
  }
9314
9314
  )
9315
9315
  ] });
9316
- }, $r = (e, t) => {
9316
+ }, Rr = (e, t) => {
9317
9317
  switch (e) {
9318
9318
  case "required":
9319
9319
  if (!t || typeof t == "string" && t.trim().length === 0)
@@ -9365,13 +9365,13 @@ const zv = ({
9365
9365
  ), C = w.filter((L) => L !== ""), E = () => {
9366
9366
  if (!l)
9367
9367
  return;
9368
- const L = Rt(l.fields).filter(
9368
+ const L = $t(l.fields).filter(
9369
9369
  ({ id: k, name: T }) => (k || (k = T || ""), k !== e && !k.includes(`${e}-`))
9370
9370
  ), P = [];
9371
9371
  w.map((k, T) => {
9372
9372
  if (b && T >= b)
9373
9373
  return;
9374
- const M = Rt(u ?? []);
9374
+ const M = $t(u ?? []);
9375
9375
  e && (y || M.push({
9376
9376
  condition: (V) => {
9377
9377
  var D;
@@ -9388,7 +9388,7 @@ const zv = ({
9388
9388
  var z;
9389
9389
  let D = (z = te == null ? void 0 : te[e]) == null ? void 0 : z[T];
9390
9390
  D || (te[e] && !Array.isArray(te[e]) ? D = te[e] : D = "");
9391
- const Z = Rt(te);
9391
+ const Z = $t(te);
9392
9392
  return Z[e] = D, Z[`${e}-all`] = te[e], typeof W == "function" && W(Z) ? ie : !1;
9393
9393
  };
9394
9394
  else {
@@ -9412,7 +9412,7 @@ const zv = ({
9412
9412
  default:
9413
9413
  console.warn("WARNING! No field validation condition has been set");
9414
9414
  }
9415
- return $r(te, Z) ? V.error : !1;
9415
+ return Rr(te, Z) ? V.error : !1;
9416
9416
  };
9417
9417
  }
9418
9418
  }), P.push({
@@ -9492,7 +9492,7 @@ const zv = ({
9492
9492
  M.key === "Enter" && (M.preventDefault(), M.stopPropagation(), Va && clearTimeout(Va), P !== w.length - 1 ? j(P) : (B(), Va = setTimeout(() => j(P), 100)));
9493
9493
  },
9494
9494
  onChange: (M) => {
9495
- const V = w[P].toLowerCase(), W = Rt(w);
9495
+ const V = w[P].toLowerCase(), W = $t(w);
9496
9496
  W[P] = M, _(W), l == null || l.dispatch({ type: "removeError", payload: { key: k } }), y || W.forEach((ie, te) => {
9497
9497
  Gr(ie) && te !== P && ie.toLowerCase() === V && (l == null || l.dispatch({
9498
9498
  type: "removeError",
@@ -9511,7 +9511,7 @@ const zv = ({
9511
9511
  id: "form_multipleInputs_remove"
9512
9512
  }),
9513
9513
  onClick: () => {
9514
- const M = Rt(w);
9514
+ const M = $t(w);
9515
9515
  M.splice(P, 1), _(M), l == null || l.dispatch({
9516
9516
  type: "removeError",
9517
9517
  payload: { key: k }
@@ -9663,7 +9663,7 @@ const er = {
9663
9663
  radio: { component: Xl, props: { multiSelect: !1 } },
9664
9664
  select: { component: Lv },
9665
9665
  password: { component: qv },
9666
- autocomplete: { component: Rv },
9666
+ autocomplete: { component: $v },
9667
9667
  "multiple-inputs": { component: /* @__PURE__ */ c.jsx(c.Fragment, {}) }
9668
9668
  // Multiple inputs is a special case which is handled separately to the rest of the inputs, as it calls this file again. We never call the `component`, it's set here to avoid casing errors.
9669
9669
  }, af = (e) => {
@@ -9697,7 +9697,7 @@ const er = {
9697
9697
  type: l,
9698
9698
  required: b,
9699
9699
  "aria-required": b,
9700
- functions: Rt(s),
9700
+ functions: $t(s),
9701
9701
  value: m
9702
9702
  };
9703
9703
  const N = (T) => {
@@ -9792,7 +9792,7 @@ const er = {
9792
9792
  })
9793
9793
  ) });
9794
9794
  }, Uv = (e, t) => {
9795
- const { type: n, payload: r } = t, i = e.errors ? Rt(e.errors) : {}, a = e.values ? Rt(e.values) : {};
9795
+ const { type: n, payload: r } = t, i = e.errors ? $t(e.errors) : {}, a = e.values ? $t(e.values) : {};
9796
9796
  switch (n) {
9797
9797
  case "updateValue":
9798
9798
  if (r != null && r.key && i[r == null ? void 0 : r.key] && delete i[r == null ? void 0 : r.key], r != null && r.key) {
@@ -9823,7 +9823,7 @@ const er = {
9823
9823
  onFailure: l = () => {
9824
9824
  },
9825
9825
  intl: d
9826
- } = r, m = Rt(Object.keys(i));
9826
+ } = r, m = $t(Object.keys(i));
9827
9827
  for (const h of s)
9828
9828
  if (h.validation)
9829
9829
  for (let p = 0; p < h.validation.length; p++) {
@@ -9836,18 +9836,18 @@ const er = {
9836
9836
  const g = a[h.id], y = v;
9837
9837
  switch (y) {
9838
9838
  case "required":
9839
- $r(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_required" })));
9839
+ Rr(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_required" })));
9840
9840
  break;
9841
9841
  case "no-numbers": {
9842
- $r(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_numbers" })));
9842
+ Rr(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_numbers" })));
9843
9843
  break;
9844
9844
  }
9845
9845
  case "valid-email": {
9846
- $r(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_email" })));
9846
+ Rr(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_email" })));
9847
9847
  break;
9848
9848
  }
9849
9849
  case "valid-url": {
9850
- $r(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_url" })));
9850
+ Rr(y, g) && (b = f || (d == null ? void 0 : d.formatMessage({ id: "form_error_url" })));
9851
9851
  break;
9852
9852
  }
9853
9853
  default:
@@ -10013,9 +10013,9 @@ const pn = ({
10013
10013
  }, 100);
10014
10014
  if (!t.length)
10015
10015
  return null;
10016
- const $ = {};
10017
- s.children && ($.default = s.children), y.text && typeof y.text == "string" && ($.default = y.text), ["default", "submitting", "submitted"].forEach((U) => {
10018
- y.text && typeof y.text != "string" && U in y.text ? $[U] = y.text[U] : $[U] || ($[U] = T.formatMessage({
10016
+ const R = {};
10017
+ s.children && (R.default = s.children), y.text && typeof y.text == "string" && (R.default = y.text), ["default", "submitting", "submitted"].forEach((U) => {
10018
+ y.text && typeof y.text != "string" && U in y.text ? R[U] = y.text[U] : R[U] || (R[U] = T.formatMessage({
10019
10019
  id: `form_${U === "default" ? "submit" : U}`
10020
10020
  }));
10021
10021
  }), delete y.text;
@@ -10039,7 +10039,7 @@ const pn = ({
10039
10039
  disabled: te || D || s.disabled,
10040
10040
  "data-gtm-event-context": d.context,
10041
10041
  "data-gtm-event-type": d.event,
10042
- children: $[te ? "submitting" : D ? "submitted" : "default"]
10042
+ children: R[te ? "submitting" : D ? "submitted" : "default"]
10043
10043
  }
10044
10044
  ];
10045
10045
  return _ && J.unshift({
@@ -10354,11 +10354,11 @@ var jb = Sb;
10354
10354
  function Pb(e) {
10355
10355
  return e != null && typeof e == "object";
10356
10356
  }
10357
- var Ob = Pb, Nb = jb, Mb = Ob, $b = "[object Symbol]";
10358
- function Rb(e) {
10359
- return typeof e == "symbol" || Mb(e) && Nb(e) == $b;
10357
+ var Ob = Pb, Nb = jb, Mb = Ob, Rb = "[object Symbol]";
10358
+ function $b(e) {
10359
+ return typeof e == "symbol" || Mb(e) && Nb(e) == Rb;
10360
10360
  }
10361
- var Ib = Rb, Lb = gb, ru = jo, zb = Ib, iu = 0 / 0, qb = /^[-+]0x[0-9a-f]+$/i, Ub = /^0b[01]+$/i, Wb = /^0o[0-7]+$/i, Vb = parseInt;
10361
+ var Ib = $b, Lb = gb, ru = jo, zb = Ib, iu = 0 / 0, qb = /^[-+]0x[0-9a-f]+$/i, Ub = /^0b[01]+$/i, Wb = /^0o[0-7]+$/i, Vb = parseInt;
10362
10362
  function Hb(e) {
10363
10363
  if (typeof e == "number")
10364
10364
  return e;
@@ -10482,13 +10482,13 @@ const a0 = /* @__PURE__ */ Wn(i0), su = (e) => typeof e == "object" && e != null
10482
10482
  const W = p[V], { height: ie, width: te, top: D, right: Z, bottom: z, left: F } = W.getBoundingClientRect();
10483
10483
  if (s === "if-needed" && C >= 0 && j >= 0 && B <= b && E <= f && C >= D && B <= z && j >= F && E <= Z)
10484
10484
  return M;
10485
- const S = getComputedStyle(W), $ = parseInt(S.borderLeftWidth, 10), O = parseInt(S.borderTopWidth, 10), q = parseInt(S.borderRightWidth, 10), J = parseInt(S.borderBottomWidth, 10);
10485
+ const S = getComputedStyle(W), R = parseInt(S.borderLeftWidth, 10), O = parseInt(S.borderTopWidth, 10), q = parseInt(S.borderRightWidth, 10), J = parseInt(S.borderBottomWidth, 10);
10486
10486
  let U = 0, ee = 0;
10487
- const me = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - $ - q : 0, Q = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - O - J : 0, ye = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : te / W.offsetWidth : 0, pe = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : ie / W.offsetHeight : 0;
10487
+ const me = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - R - q : 0, Q = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - O - J : 0, ye = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : te / W.offsetWidth : 0, pe = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : ie / W.offsetHeight : 0;
10488
10488
  if (h === W)
10489
- U = o === "start" ? k : o === "end" ? k - b : o === "nearest" ? _i(y, y + b, b, O, J, y + k, y + k + w, w) : k - b / 2, ee = u === "start" ? T : u === "center" ? T - f / 2 : u === "end" ? T - f : _i(g, g + f, f, $, q, g + T, g + T + _, _), U = Math.max(0, U + y), ee = Math.max(0, ee + g);
10489
+ U = o === "start" ? k : o === "end" ? k - b : o === "nearest" ? _i(y, y + b, b, O, J, y + k, y + k + w, w) : k - b / 2, ee = u === "start" ? T : u === "center" ? T - f / 2 : u === "end" ? T - f : _i(g, g + f, f, R, q, g + T, g + T + _, _), U = Math.max(0, U + y), ee = Math.max(0, ee + g);
10490
10490
  else {
10491
- U = o === "start" ? k - D - O : o === "end" ? k - z + J + Q : o === "nearest" ? _i(D, z, ie, O, J + Q, k, k + w, w) : k - (D + ie / 2) + Q / 2, ee = u === "start" ? T - F - $ : u === "center" ? T - (F + te / 2) + me / 2 : u === "end" ? T - Z + q + me : _i(F, Z, te, $, q + me, T, T + _, _);
10491
+ U = o === "start" ? k - D - O : o === "end" ? k - z + J + Q : o === "nearest" ? _i(D, z, ie, O, J + Q, k, k + w, w) : k - (D + ie / 2) + Q / 2, ee = u === "start" ? T - F - R : u === "center" ? T - (F + te / 2) + me / 2 : u === "end" ? T - Z + q + me : _i(F, Z, te, R, q + me, T, T + _, _);
10492
10492
  const { scrollLeft: we, scrollTop: Ae } = W;
10493
10493
  U = pe === 0 ? 0 : Math.max(0, Math.min(Ae + U / pe, W.scrollHeight - ie / pe + Q)), ee = ye === 0 ? 0 : Math.max(0, Math.min(we + ee / ye, W.scrollWidth - te / ye + me)), k += Ae - U, T += we - ee;
10494
10494
  }
@@ -11335,16 +11335,16 @@ var _0 = (e, t, n) => {
11335
11335
  if (t != null && S != null)
11336
11336
  t[F] = S;
11337
11337
  else {
11338
- var $ = void 0, O = void 0;
11338
+ var R = void 0, O = void 0;
11339
11339
  for (var [q, J] of ue.texts(e))
11340
11340
  if (I.compare(J, te) === -1)
11341
- $ = [q, J];
11341
+ R = [q, J];
11342
11342
  else {
11343
11343
  O = [q, J];
11344
11344
  break;
11345
11345
  }
11346
11346
  var U = !1;
11347
- $ && O && (I.equals(O[1], te) ? U = !I.hasPrevious(O[1]) : U = I.common($[1], te).length < I.common(O[1], te).length), $ && !U ? (z.path = $[1], z.offset = $[0].text.length) : O ? (z.path = O[1], z.offset = 0) : t = null;
11347
+ R && O && (I.equals(O[1], te) ? U = !I.hasPrevious(O[1]) : U = I.common(R[1], te).length < I.common(O[1], te).length), R && !U ? (z.path = R[1], z.offset = R[0].text.length) : O ? (z.path = O[1], z.offset = 0) : t = null;
11348
11348
  }
11349
11349
  }
11350
11350
  break;
@@ -12300,7 +12300,7 @@ var Oe = {
12300
12300
  stringify(e) {
12301
12301
  return JSON.stringify(e, Fu);
12302
12302
  }
12303
- }, M0 = ["text"], $0 = ["anchor", "focus"];
12303
+ }, M0 = ["text"], R0 = ["anchor", "focus"];
12304
12304
  function Bu(e, t) {
12305
12305
  var n = Object.keys(e);
12306
12306
  if (Object.getOwnPropertySymbols) {
@@ -12351,7 +12351,7 @@ var be = {
12351
12351
  decorations(e, t) {
12352
12352
  var n = [sn({}, e)];
12353
12353
  for (var r of t) {
12354
- var i = mn(r, $0), [a, s] = G.edges(r), o = [], u = 0, l = a.offset, d = s.offset;
12354
+ var i = mn(r, R0), [a, s] = G.edges(r), o = [], u = 0, l = a.offset, d = s.offset;
12355
12355
  for (var m of n) {
12356
12356
  var {
12357
12357
  length: h
@@ -12390,7 +12390,7 @@ var be = {
12390
12390
  }, Mo = (e) => e.selection ? e.selection : e.children.length > 0 ? x.end(e, []) : [0], Er = (e, t) => {
12391
12391
  var [n] = x.node(e, t);
12392
12392
  return (r) => r === n;
12393
- }, $o = function(t) {
12393
+ }, Ro = function(t) {
12394
12394
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = !n, i = n ? U0(t) : t, a = Te.None, s = Te.None, o = 0, u = null, l = null;
12395
12395
  for (var d of i) {
12396
12396
  var m = d.codePointAt(0);
@@ -12402,9 +12402,9 @@ var be = {
12402
12402
  o += d.length;
12403
12403
  }
12404
12404
  return o || 1;
12405
- }, R0 = /\s/, I0 = /[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, L0 = /['\u2018\u2019]/, z0 = function(t) {
12405
+ }, $0 = /\s/, I0 = /[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, L0 = /['\u2018\u2019]/, z0 = function(t) {
12406
12406
  for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = 0, i = !1; t.length > 0; ) {
12407
- var a = $o(t, n), [s, o] = Ro(t, a, n);
12407
+ var a = Ro(t, n), [s, o] = $o(t, a, n);
12408
12408
  if (q0(s, o, n))
12409
12409
  i = !0, r += a;
12410
12410
  else if (!i)
@@ -12414,7 +12414,7 @@ var be = {
12414
12414
  t = o;
12415
12415
  }
12416
12416
  return r;
12417
- }, Ro = (e, t, n) => {
12417
+ }, $o = (e, t, n) => {
12418
12418
  if (n) {
12419
12419
  var r = e.length - t;
12420
12420
  return [e.slice(r, e.length), e.slice(0, r)];
@@ -12422,10 +12422,10 @@ var be = {
12422
12422
  return [e.slice(0, t), e.slice(t)];
12423
12423
  }, q0 = function e(t, n) {
12424
12424
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
12425
- if (R0.test(t))
12425
+ if ($0.test(t))
12426
12426
  return !1;
12427
12427
  if (L0.test(t)) {
12428
- var i = $o(n, r), [a, s] = Ro(n, i, r);
12428
+ var i = Ro(n, r), [a, s] = $o(n, i, r);
12429
12429
  if (e(a, s, r))
12430
12430
  return !0;
12431
12431
  }
@@ -12860,7 +12860,7 @@ function Mu(e, t) {
12860
12860
  }
12861
12861
  return n;
12862
12862
  }
12863
- function $u(e) {
12863
+ function Ru(e) {
12864
12864
  for (var t = 1; t < arguments.length; t++) {
12865
12865
  var n = arguments[t] != null ? arguments[t] : {};
12866
12866
  t % 2 ? Mu(Object(n), !0).forEach(function(r) {
@@ -12880,7 +12880,7 @@ var by = function(t, n) {
12880
12880
  }, {
12881
12881
  distance: o = 1
12882
12882
  } = r, u = 0, l;
12883
- for (var d of x.positions(t, $u($u({}, r), {}, {
12883
+ for (var d of x.positions(t, Ru(Ru({}, r), {}, {
12884
12884
  at: s,
12885
12885
  reverse: !0
12886
12886
  }))) {
@@ -12914,7 +12914,7 @@ var by = function(t, n) {
12914
12914
  reverse: n === "backward"
12915
12915
  });
12916
12916
  }, Dy = (e, t) => [x.start(e, t), x.end(e, t)];
12917
- function Ru(e, t) {
12917
+ function $u(e, t) {
12918
12918
  var n = Object.keys(e);
12919
12919
  if (Object.getOwnPropertySymbols) {
12920
12920
  var r = Object.getOwnPropertySymbols(e);
@@ -12927,9 +12927,9 @@ function Ru(e, t) {
12927
12927
  function Iu(e) {
12928
12928
  for (var t = 1; t < arguments.length; t++) {
12929
12929
  var n = arguments[t] != null ? arguments[t] : {};
12930
- t % 2 ? Ru(Object(n), !0).forEach(function(r) {
12930
+ t % 2 ? $u(Object(n), !0).forEach(function(r) {
12931
12931
  wt(e, r, n[r]);
12932
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ru(Object(n)).forEach(function(r) {
12932
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $u(Object(n)).forEach(function(r) {
12933
12933
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
12934
12934
  });
12935
12935
  }
@@ -13027,7 +13027,7 @@ var My = function(t, n) {
13027
13027
  X.insertText(t, n, r);
13028
13028
  t.marks = null;
13029
13029
  }
13030
- }, $y = (e, t) => !e.isInline(t), Ry = (e, t, n) => x.isStart(e, t, n) || x.isEnd(e, t, n), Iy = (e, t) => {
13030
+ }, Ry = (e, t) => !e.isInline(t), $y = (e, t, n) => x.isStart(e, t, n) || x.isEnd(e, t, n), Iy = (e, t) => {
13031
13031
  var {
13032
13032
  children: n
13033
13033
  } = t, [r] = n;
@@ -13382,7 +13382,7 @@ function sx(e) {
13382
13382
  if (p === 0) {
13383
13383
  if (h === "")
13384
13384
  break;
13385
- p = C(h, r, i), h = Ro(h, p, i)[1];
13385
+ p = C(h, r, i), h = $o(h, p, i)[1];
13386
13386
  }
13387
13387
  if (f = i ? f - p : f + p, v = v - p, v < 0) {
13388
13388
  p = -v;
@@ -13396,7 +13396,7 @@ function sx(e) {
13396
13396
  }
13397
13397
  }
13398
13398
  function C(E, B, j) {
13399
- return B === "character" ? $o(E, j) : B === "word" ? z0(E, j) : B === "line" || B === "block" ? E.length : 1;
13399
+ return B === "character" ? Ro(E, j) : B === "word" ? z0(E, j) : B === "line" || B === "block" ? E.length : 1;
13400
13400
  }
13401
13401
  }();
13402
13402
  }
@@ -13663,13 +13663,13 @@ var fx = (e, t) => {
13663
13663
  path: F
13664
13664
  } = Z, {
13665
13665
  offset: S
13666
- } = y, $ = z.text.slice(S);
13667
- $.length > 0 && (t.apply({
13666
+ } = y, R = z.text.slice(S);
13667
+ R.length > 0 && (t.apply({
13668
13668
  type: "remove_text",
13669
13669
  path: F,
13670
13670
  offset: S,
13671
- text: $
13672
- }), D = $);
13671
+ text: R
13672
+ }), D = R);
13673
13673
  }
13674
13674
  if (W.reverse().map((pe) => pe.unref()).filter((pe) => pe !== null).forEach((pe) => X.removeNodes(t, {
13675
13675
  at: pe,
@@ -13729,7 +13729,7 @@ var fx = (e, t) => {
13729
13729
  }))) {
13730
13730
  var d = x.above(t, {
13731
13731
  at: s,
13732
- match: ($) => ge.isElement($) && x.isInline(t, $),
13732
+ match: (R) => ge.isElement(R) && x.isInline(t, R),
13733
13733
  mode: "highest",
13734
13734
  voids: a
13735
13735
  });
@@ -13744,15 +13744,15 @@ var fx = (e, t) => {
13744
13744
  }
13745
13745
  }
13746
13746
  var v = x.above(t, {
13747
- match: ($) => ge.isElement($) && x.isBlock(t, $),
13747
+ match: (R) => ge.isElement(R) && x.isBlock(t, R),
13748
13748
  at: s,
13749
13749
  voids: a
13750
13750
  }), [, f] = v, b = x.isStart(t, s, f), g = x.isEnd(t, s, f), y = b && g, w = !b || b && g, _ = !g, [, C] = ue.first({
13751
13751
  children: n
13752
13752
  }, []), [, E] = ue.last({
13753
13753
  children: n
13754
- }, []), B = [], j = ($) => {
13755
- var [O, q] = $, J = q.length === 0;
13754
+ }, []), B = [], j = (R) => {
13755
+ var [O, q] = R, J = q.length === 0;
13756
13756
  return J ? !1 : y ? !0 : !(w && I.isAncestor(q, C) && ge.isElement(O) && !t.isVoid(O) && !t.isInline(O) || _ && I.isAncestor(q, E) && ge.isElement(O) && !t.isVoid(O) && !t.isInline(O));
13757
13757
  };
13758
13758
  for (var N of ue.nodes({
@@ -13766,13 +13766,13 @@ var fx = (e, t) => {
13766
13766
  ge.isElement(M) && !t.isInline(M) ? (k = !1, T = !0, P.push(M)) : k ? L.push(M) : A.push(M);
13767
13767
  var [V] = x.nodes(t, {
13768
13768
  at: s,
13769
- match: ($) => be.isText($) || x.isInline(t, $),
13769
+ match: (R) => be.isText(R) || x.isInline(t, R),
13770
13770
  mode: "highest",
13771
13771
  voids: a
13772
13772
  }), [, W] = V, ie = x.isStart(t, s, W), te = x.isEnd(t, s, W), D = x.pathRef(t, g && !A.length ? I.next(f) : f), Z = x.pathRef(t, te ? I.next(W) : W);
13773
13773
  X.splitNodes(t, {
13774
13774
  at: s,
13775
- match: ($) => T ? ge.isElement($) && x.isBlock(t, $) : be.isText($) || x.isInline(t, $),
13775
+ match: (R) => T ? ge.isElement(R) && x.isBlock(t, R) : be.isText(R) || x.isInline(t, R),
13776
13776
  mode: T ? "lowest" : "highest",
13777
13777
  always: T && (!b || L.length > 0) && (!g || A.length > 0),
13778
13778
  voids: a
@@ -13780,7 +13780,7 @@ var fx = (e, t) => {
13780
13780
  var z = x.pathRef(t, !ie || ie && te ? I.next(W) : W);
13781
13781
  if (X.insertNodes(t, L, {
13782
13782
  at: z.current,
13783
- match: ($) => be.isText($) || x.isInline(t, $),
13783
+ match: (R) => be.isText(R) || x.isInline(t, R),
13784
13784
  mode: "highest",
13785
13785
  voids: a,
13786
13786
  batchDirty: o
@@ -13789,13 +13789,13 @@ var fx = (e, t) => {
13789
13789
  voids: a
13790
13790
  }), X.insertNodes(t, P, {
13791
13791
  at: D.current,
13792
- match: ($) => ge.isElement($) && x.isBlock(t, $),
13792
+ match: (R) => ge.isElement(R) && x.isBlock(t, R),
13793
13793
  mode: "lowest",
13794
13794
  voids: a,
13795
13795
  batchDirty: o
13796
13796
  }), X.insertNodes(t, A, {
13797
13797
  at: Z.current,
13798
- match: ($) => be.isText($) || x.isInline(t, $),
13798
+ match: (R) => be.isText(R) || x.isInline(t, R),
13799
13799
  mode: "highest",
13800
13800
  voids: a,
13801
13801
  batchDirty: o
@@ -14408,7 +14408,7 @@ var Ex = function(t, n) {
14408
14408
  for (var a of n)
14409
14409
  i[a] = null;
14410
14410
  X.setNodes(t, i, r);
14411
- }, $x = function(t) {
14411
+ }, Rx = function(t) {
14412
14412
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14413
14413
  x.withoutNormalizing(t, () => {
14414
14414
  var {
@@ -14470,7 +14470,7 @@ function Ku(e) {
14470
14470
  }
14471
14471
  return e;
14472
14472
  }
14473
- var Rx = function(t, n) {
14473
+ var $x = function(t, n) {
14474
14474
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
14475
14475
  x.withoutNormalizing(t, () => {
14476
14476
  var {
@@ -14712,12 +14712,12 @@ var Rx = function(t, n) {
14712
14712
  isBlock: function() {
14713
14713
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14714
14714
  r[i] = arguments[i];
14715
- return $y(e, ...r);
14715
+ return Ry(e, ...r);
14716
14716
  },
14717
14717
  isEdge: function() {
14718
14718
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14719
14719
  r[i] = arguments[i];
14720
- return Ry(e, ...r);
14720
+ return $y(e, ...r);
14721
14721
  },
14722
14722
  isEmpty: function() {
14723
14723
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14912,7 +14912,7 @@ var Rx = function(t, n) {
14912
14912
  unwrapNodes: function() {
14913
14913
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14914
14914
  r[i] = arguments[i];
14915
- return $x(e, ...r);
14915
+ return Rx(e, ...r);
14916
14916
  },
14917
14917
  void: function() {
14918
14918
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14927,7 +14927,7 @@ var Rx = function(t, n) {
14927
14927
  wrapNodes: function() {
14928
14928
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14929
14929
  r[i] = arguments[i];
14930
- return Rx(e, ...r);
14930
+ return $x(e, ...r);
14931
14931
  }
14932
14932
  };
14933
14933
  return e;
@@ -14948,16 +14948,16 @@ var Rx = function(t, n) {
14948
14948
  (function(e) {
14949
14949
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
14950
14950
  })(ti || (ti = {}));
14951
- var $n = function(e) {
14951
+ var Rn = function(e) {
14952
14952
  return Object.freeze(e);
14953
14953
  }, Ux = function() {
14954
14954
  function e(t, n) {
14955
- this.inlineSize = t, this.blockSize = n, $n(this);
14955
+ this.inlineSize = t, this.blockSize = n, Rn(this);
14956
14956
  }
14957
14957
  return e;
14958
14958
  }(), kf = function() {
14959
14959
  function e(t, n, r, i) {
14960
- return this.x = t, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, $n(this);
14960
+ return this.x = t, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Rn(this);
14961
14961
  }
14962
14962
  return e.prototype.toJSON = function() {
14963
14963
  var t = this, n = t.x, r = t.y, i = t.top, a = t.right, s = t.bottom, o = t.left, u = t.width, l = t.height;
@@ -14999,7 +14999,7 @@ var $n = function(e) {
14999
14999
  return parseFloat(e || "0");
15000
15000
  }, dr = function(e, t, n) {
15001
15001
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Ux((n ? t : e) || 0, (n ? e : t) || 0);
15002
- }, Qu = $n({
15002
+ }, Qu = Rn({
15003
15003
  devicePixelContentBoxSize: dr(),
15004
15004
  borderBoxSize: dr(),
15005
15005
  contentBoxSize: dr(),
@@ -15009,7 +15009,7 @@ var $n = function(e) {
15009
15009
  return Ai.get(e);
15010
15010
  if (Af(e))
15011
15011
  return Ai.set(e, Qu), Qu;
15012
- var n = getComputedStyle(e), r = Io(e) && e.ownerSVGElement && e.getBBox(), i = !Hx && n.boxSizing === "border-box", a = Vx.test(n.writingMode || ""), s = !r && Gu.test(n.overflowY || ""), o = !r && Gu.test(n.overflowX || ""), u = r ? 0 : Gt(n.paddingTop), l = r ? 0 : Gt(n.paddingRight), d = r ? 0 : Gt(n.paddingBottom), m = r ? 0 : Gt(n.paddingLeft), h = r ? 0 : Gt(n.borderTopWidth), p = r ? 0 : Gt(n.borderRightWidth), v = r ? 0 : Gt(n.borderBottomWidth), f = r ? 0 : Gt(n.borderLeftWidth), b = m + l, g = u + d, y = f + p, w = h + v, _ = o ? e.offsetHeight - w - e.clientHeight : 0, C = s ? e.offsetWidth - y - e.clientWidth : 0, E = i ? b + y : 0, B = i ? g + w : 0, j = r ? r.width : Gt(n.width) - E - C, N = r ? r.height : Gt(n.height) - B - _, L = j + b + C + y, P = N + g + _ + w, A = $n({
15012
+ var n = getComputedStyle(e), r = Io(e) && e.ownerSVGElement && e.getBBox(), i = !Hx && n.boxSizing === "border-box", a = Vx.test(n.writingMode || ""), s = !r && Gu.test(n.overflowY || ""), o = !r && Gu.test(n.overflowX || ""), u = r ? 0 : Gt(n.paddingTop), l = r ? 0 : Gt(n.paddingRight), d = r ? 0 : Gt(n.paddingBottom), m = r ? 0 : Gt(n.paddingLeft), h = r ? 0 : Gt(n.borderTopWidth), p = r ? 0 : Gt(n.borderRightWidth), v = r ? 0 : Gt(n.borderBottomWidth), f = r ? 0 : Gt(n.borderLeftWidth), b = m + l, g = u + d, y = f + p, w = h + v, _ = o ? e.offsetHeight - w - e.clientHeight : 0, C = s ? e.offsetWidth - y - e.clientWidth : 0, E = i ? b + y : 0, B = i ? g + w : 0, j = r ? r.width : Gt(n.width) - E - C, N = r ? r.height : Gt(n.height) - B - _, L = j + b + C + y, P = N + g + _ + w, A = Rn({
15013
15013
  devicePixelContentBoxSize: dr(Math.round(j * devicePixelRatio), Math.round(N * devicePixelRatio), a),
15014
15014
  borderBoxSize: dr(L, P, a),
15015
15015
  contentBoxSize: dr(j, N, a),
@@ -15029,7 +15029,7 @@ var $n = function(e) {
15029
15029
  }, Kx = function() {
15030
15030
  function e(t) {
15031
15031
  var n = Ff(t);
15032
- this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = $n([n.borderBoxSize]), this.contentBoxSize = $n([n.contentBoxSize]), this.devicePixelContentBoxSize = $n([n.devicePixelContentBoxSize]);
15032
+ this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Rn([n.borderBoxSize]), this.contentBoxSize = Rn([n.contentBoxSize]), this.devicePixelContentBoxSize = Rn([n.devicePixelContentBoxSize]);
15033
15033
  }
15034
15034
  return e;
15035
15035
  }(), Tf = function(e) {
@@ -15406,9 +15406,9 @@ var qo = /* @__PURE__ */ xt(null), Tn = () => {
15406
15406
  if (!e)
15407
15407
  throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
15408
15408
  return e;
15409
- }, Mf = parseInt(re.version.split(".")[0], 10), h1 = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, rc = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), bt = typeof navigator < "u" && /Android/.test(navigator.userAgent), or = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Rr = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), p1 = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), $f = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), g1 = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), v1 = bt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), b1 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), y1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), x1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Ui = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", bn = (!g1 || !v1) && !p1 && // globalThis is undefined in older browsers
15409
+ }, Mf = parseInt(re.version.split(".")[0], 10), h1 = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, rc = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), bt = typeof navigator < "u" && /Android/.test(navigator.userAgent), or = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), $r = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), p1 = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), Rf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), g1 = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), v1 = bt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), b1 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), y1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), x1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Ui = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", bn = (!g1 || !v1) && !p1 && // globalThis is undefined in older browsers
15410
15410
  typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
15411
- typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Uo = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Rf = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), If = /* @__PURE__ */ new WeakMap(), xr = Symbol("placeholder"), Lf = Symbol("mark-placeholder"), w1 = globalThis.Text, Ho = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, D1 = (e) => An(e) && e.nodeType === 8, It = (e) => An(e) && e.nodeType === 1, An = (e) => {
15411
+ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Uo = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), $f = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), If = /* @__PURE__ */ new WeakMap(), xr = Symbol("placeholder"), Lf = Symbol("mark-placeholder"), w1 = globalThis.Text, Ho = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, D1 = (e) => An(e) && e.nodeType === 8, It = (e) => An(e) && e.nodeType === 1, An = (e) => {
15412
15412
  var t = Ho(e);
15413
15413
  return !!t && e instanceof t.Node;
15414
15414
  }, Gs = (e) => {
@@ -15600,7 +15600,7 @@ var ne = {
15600
15600
  }
15601
15601
  },
15602
15602
  getWindow: (e) => {
15603
- var t = Rf.get(e);
15603
+ var t = $f.get(e);
15604
15604
  if (!t)
15605
15605
  throw new Error("Unable to find a host window element for this editor");
15606
15606
  return t;
@@ -15798,7 +15798,7 @@ var ne = {
15798
15798
  h.startContainer === l ? (o = p.endContainer, u = p.endOffset, d = h.startOffset) : (o = h.startContainer, u = h.endOffset, d = p.startOffset);
15799
15799
  } else
15800
15800
  o = t.anchorNode, u = t.anchorOffset, l = t.focusNode, d = t.focusOffset;
15801
- $f && _1(o) || or ? m = t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : m = t.isCollapsed;
15801
+ Rf && _1(o) || or ? m = t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : m = t.isCollapsed;
15802
15802
  } else
15803
15803
  o = t.startContainer, u = t.startOffset, l = t.endContainer, d = t.endOffset, m = t.collapsed;
15804
15804
  if (o == null || l == null || u == null || d == null)
@@ -16113,7 +16113,7 @@ function Si(e) {
16113
16113
  }
16114
16114
  return e;
16115
16115
  }
16116
- var $1 = 25, R1 = 200, I1 = function() {
16116
+ var R1 = 25, $1 = 200, I1 = function() {
16117
16117
  }, L1 = (e) => (e == null ? void 0 : e.constructor.name) === "DataTransfer";
16118
16118
  function z1(e) {
16119
16119
  var {
@@ -16172,7 +16172,7 @@ function z1(e) {
16172
16172
  }, p = (A) => {
16173
16173
  a && clearTimeout(a), a = setTimeout(() => {
16174
16174
  Nn.set(t, !1), h();
16175
- }, $1);
16175
+ }, R1);
16176
16176
  }, v = (A) => {
16177
16177
  Nn.set(t, !0), a && (clearTimeout(a), a = null);
16178
16178
  }, f = function() {
@@ -16245,7 +16245,7 @@ function z1(e) {
16245
16245
  });
16246
16246
  }
16247
16247
  }
16248
- var $ = T.endsWith("Backward") ? "backward" : "forward", [O, q] = G.edges(M), [J, U] = x.leaf(t, O.path), ee = {
16248
+ var R = T.endsWith("Backward") ? "backward" : "forward", [O, q] = G.edges(M), [J, U] = x.leaf(t, O.path), ee = {
16249
16249
  text: "",
16250
16250
  start: O.offset,
16251
16251
  end: q.offset
@@ -16263,7 +16263,7 @@ function z1(e) {
16263
16263
  });
16264
16264
  }
16265
16265
  return g(() => x.deleteFragment(t, {
16266
- direction: $
16266
+ direction: R
16267
16267
  }), {
16268
16268
  at: M
16269
16269
  });
@@ -16418,7 +16418,7 @@ function z1(e) {
16418
16418
  } = t;
16419
16419
  if (A) {
16420
16420
  var T = !k || !I.equals(k.anchor.path, A.anchor.path), M = !k || !I.equals(k.anchor.path.slice(0, -1), A.anchor.path.slice(0, -1));
16421
- (T && l || M) && (l = !1), (T || _()) && (s = setTimeout(h, R1));
16421
+ (T && l || M) && (l = !1), (T || _()) && (s = setTimeout(h, $1));
16422
16422
  }
16423
16423
  }, j = () => {
16424
16424
  (w() || !_()) && h();
@@ -16627,7 +16627,7 @@ var iw = (e) => {
16627
16627
  parent: i,
16628
16628
  renderPlaceholder: a,
16629
16629
  renderLeaf: s = (y) => /* @__PURE__ */ re.createElement(sw, Kf({}, y))
16630
- } = e, o = Tn(), u = Se(null), l = Se(null), [d, m] = se(!1), h = Se(null), p = Re((y) => {
16630
+ } = e, o = Tn(), u = Se(null), l = Se(null), [d, m] = se(!1), h = Se(null), p = $e((y) => {
16631
16631
  if (rw(u, y == null), y == null) {
16632
16632
  var w;
16633
16633
  Ks.delete(o), (w = t.onPlaceholderResize) === null || w === void 0 || w.call(t, null);
@@ -16665,7 +16665,7 @@ var iw = (e) => {
16665
16665
  userSelect: "none",
16666
16666
  textDecoration: "none",
16667
16667
  // Fixes https://github.com/udecode/plate/issues/2315
16668
- WebkitUserModify: Rr ? "inherit" : void 0
16668
+ WebkitUserModify: $r ? "inherit" : void 0
16669
16669
  },
16670
16670
  contentEditable: !1,
16671
16671
  ref: p
@@ -16708,9 +16708,9 @@ var iw = (e) => {
16708
16708
  renderLeaf: a
16709
16709
  }));
16710
16710
  }
16711
- var v = Re((f) => {
16711
+ var v = $e((f) => {
16712
16712
  var b = Da.get(o);
16713
- f ? (b == null || b.set(d, f), Rn.set(s, f), ri.set(f, s)) : (b == null || b.delete(d), Rn.delete(s), u.current && ri.delete(u.current)), u.current = f;
16713
+ f ? (b == null || b.set(d, f), $n.set(s, f), ri.set(f, s)) : (b == null || b.delete(d), $n.delete(s), u.current && ri.delete(u.current)), u.current = f;
16714
16714
  }, [u, o, d, s]);
16715
16715
  return /* @__PURE__ */ re.createElement("span", {
16716
16716
  "data-slate-node": "text",
@@ -16746,9 +16746,9 @@ var lw = (e) => {
16746
16746
  renderPlaceholder: i,
16747
16747
  renderLeaf: a,
16748
16748
  selection: s
16749
- } = e, o = Tn(), u = mw(), l = o.isInline(n), d = ne.findKey(o, n), m = Re((y) => {
16749
+ } = e, o = Tn(), u = mw(), l = o.isInline(n), d = ne.findKey(o, n), m = $e((y) => {
16750
16750
  var w = Da.get(o);
16751
- y ? (w == null || w.set(d, y), Rn.set(n, y), ri.set(y, n)) : (w == null || w.delete(d), Rn.delete(n));
16751
+ y ? (w == null || w.set(d, y), $n.set(n, y), ri.set(y, n)) : (w == null || w.delete(d), $n.delete(n));
16752
16752
  }, [o, d, n]), h = Gf({
16753
16753
  decorations: t,
16754
16754
  node: n,
@@ -16845,7 +16845,7 @@ var lw = (e) => {
16845
16845
  return t;
16846
16846
  };
16847
16847
  function hw() {
16848
- var e = Tn(), t = Se(!1), n = Se(0), r = Re(() => {
16848
+ var e = Tn(), t = Se(!1), n = Se(0), r = $e(() => {
16849
16849
  if (!t.current) {
16850
16850
  t.current = !0;
16851
16851
  var i = ne.getWindow(e);
@@ -17017,7 +17017,7 @@ function Qt(e) {
17017
17017
  return e;
17018
17018
  }
17019
17019
  var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w = (e) => {
17020
- var t = Re((S) => /* @__PURE__ */ re.createElement(kw, Qt({}, S)), []), {
17020
+ var t = $e((S) => /* @__PURE__ */ re.createElement(kw, Qt({}, S)), []), {
17021
17021
  autoFocus: n,
17022
17022
  decorate: r = Aw,
17023
17023
  onDOMBeforeInput: i,
@@ -17047,9 +17047,9 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17047
17047
  var L = Se(), P = en(() => a0(() => {
17048
17048
  var S = L.current;
17049
17049
  if ((bt || !ne.isComposing(f)) && (!N.isUpdatingSelection || S != null && S.isFlushing()) && !N.isDraggingInternally) {
17050
- var $ = ne.findDocumentOrShadowRoot(f), {
17050
+ var R = ne.findDocumentOrShadowRoot(f), {
17051
17051
  activeElement: O
17052
- } = $, q = ne.toDOMNode(f, f), J = $.getSelection();
17052
+ } = R, q = ne.toDOMNode(f, f), J = R.getSelection();
17053
17053
  if (O === q ? (N.latestElement = O, En.set(f, !0)) : En.delete(f), !J)
17054
17054
  return X.deselect(f);
17055
17055
  var {
@@ -17071,8 +17071,8 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17071
17071
  onDOMSelectionChange: P,
17072
17072
  scheduleOnDOMSelectionChange: A
17073
17073
  }), ii(() => {
17074
- var S, $, O;
17075
- y.current && (O = Ho(y.current)) ? (Rf.set(f, O), Wi.set(f, y.current), Rn.set(f, y.current), ri.set(y.current, f)) : Rn.delete(f);
17074
+ var S, R, O;
17075
+ y.current && (O = Ho(y.current)) ? ($f.set(f, O), Wi.set(f, y.current), $n.set(f, y.current), ri.set(y.current, f)) : $n.delete(f);
17076
17076
  var {
17077
17077
  selection: q
17078
17078
  } = f, J = ne.findDocumentOrShadowRoot(f), U = J.getSelection();
@@ -17113,7 +17113,7 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17113
17113
  }
17114
17114
  };
17115
17115
  U.rangeCount <= 1 && ee();
17116
- var me = (($ = L.current) === null || $ === void 0 ? void 0 : $.isFlushing()) === "action";
17116
+ var me = ((R = L.current) === null || R === void 0 ? void 0 : R.isFlushing()) === "action";
17117
17117
  if (!bt || !me) {
17118
17118
  setTimeout(() => {
17119
17119
  N.isUpdatingSelection = !1;
@@ -17139,9 +17139,9 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17139
17139
  };
17140
17140
  }
17141
17141
  });
17142
- var k = Re((S) => {
17142
+ var k = $e((S) => {
17143
17143
  if (E(), !s && ne.hasEditableTarget(f, S.target) && !Bw(S, i)) {
17144
- var $;
17144
+ var R;
17145
17145
  if (L.current)
17146
17146
  return L.current.handleDOMBeforeInput(S);
17147
17147
  A.flush(), P.flush();
@@ -17277,11 +17277,11 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17277
17277
  break;
17278
17278
  }
17279
17279
  }
17280
- var Y = ($ = Ur.get(f)) === null || $ === void 0 ? void 0 : $.unref();
17280
+ var Y = (R = Ur.get(f)) === null || R === void 0 ? void 0 : R.unref();
17281
17281
  Ur.delete(f), Y && (!f.selection || !G.equals(f.selection, Y)) && X.select(f, Y);
17282
17282
  }
17283
- }, [f, P, E, i, s, A]), T = Re((S) => {
17284
- S == null ? (P.cancel(), A.cancel(), Wi.delete(f), Rn.delete(f), y.current && bn && y.current.removeEventListener("beforeinput", k)) : bn && S.addEventListener("beforeinput", k), y.current = S;
17283
+ }, [f, P, E, i, s, A]), T = $e((S) => {
17284
+ S == null ? (P.cancel(), A.cancel(), Wi.delete(f), $n.delete(f), y.current && bn && y.current.removeEventListener("beforeinput", k)) : bn && S.addEventListener("beforeinput", k), y.current = S;
17285
17285
  }, [P, A, f, k]);
17286
17286
  ii(() => {
17287
17287
  var S = ne.getWindow(f);
@@ -17289,10 +17289,10 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17289
17289
  S.document.removeEventListener("selectionchange", A);
17290
17290
  };
17291
17291
  }, [A]);
17292
- var M = r([f, []]), V = a && f.children.length === 1 && Array.from(ue.texts(f)).length === 1 && ue.string(f) === "" && !b, W = Re((S) => {
17292
+ var M = r([f, []]), V = a && f.children.length === 1 && Array.from(ue.texts(f)).length === 1 && ue.string(f) === "" && !b, W = $e((S) => {
17293
17293
  if (S && V) {
17294
- var $;
17295
- C(($ = S.getBoundingClientRect()) === null || $ === void 0 ? void 0 : $.height);
17294
+ var R;
17295
+ C((R = S.getBoundingClientRect()) === null || R === void 0 ? void 0 : R.height);
17296
17296
  } else
17297
17297
  C(void 0);
17298
17298
  }, [V]);
@@ -17333,8 +17333,8 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17333
17333
  } = f;
17334
17334
  if (S) {
17335
17335
  var {
17336
- anchor: $
17337
- } = S, O = ue.leaf(f, $.path);
17336
+ anchor: R
17337
+ } = S, O = ue.leaf(f, R.path);
17338
17338
  if (te && !be.equals(O, te, {
17339
17339
  loose: !0
17340
17340
  })) {
@@ -17383,27 +17383,27 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17383
17383
  }, _ ? {
17384
17384
  minHeight: _
17385
17385
  } : {})), m),
17386
- onBeforeInput: Re((S) => {
17386
+ onBeforeInput: $e((S) => {
17387
17387
  if (!bn && !s && !gt(S, v.onBeforeInput) && ne.hasSelectableTarget(f, S.target) && (S.preventDefault(), !ne.isComposing(f))) {
17388
- var $ = S.data;
17389
- x.insertText(f, $);
17388
+ var R = S.data;
17389
+ x.insertText(f, R);
17390
17390
  }
17391
17391
  }, [v.onBeforeInput, f, s]),
17392
- onInput: Re((S) => {
17392
+ onInput: $e((S) => {
17393
17393
  if (!gt(S, v.onInput)) {
17394
17394
  if (L.current) {
17395
17395
  L.current.handleInput();
17396
17396
  return;
17397
17397
  }
17398
- for (var $ of w.current)
17399
- $();
17398
+ for (var R of w.current)
17399
+ R();
17400
17400
  w.current = [];
17401
17401
  }
17402
17402
  }, [v.onInput]),
17403
- onBlur: Re((S) => {
17403
+ onBlur: $e((S) => {
17404
17404
  if (!(s || N.isUpdatingSelection || !ne.hasSelectableTarget(f, S.target) || gt(S, v.onBlur))) {
17405
- var $ = ne.findDocumentOrShadowRoot(f);
17406
- if (N.latestElement !== $.activeElement) {
17405
+ var R = ne.findDocumentOrShadowRoot(f);
17406
+ if (N.latestElement !== R.activeElement) {
17407
17407
  var {
17408
17408
  relatedTarget: O
17409
17409
  } = S, q = ne.toDOMNode(f, f);
@@ -17413,8 +17413,8 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17413
17413
  if (ge.isElement(J) && !f.isVoid(J))
17414
17414
  return;
17415
17415
  }
17416
- if (Rr) {
17417
- var U = $.getSelection();
17416
+ if ($r) {
17417
+ var U = R.getSelection();
17418
17418
  U == null || U.removeAllRanges();
17419
17419
  }
17420
17420
  En.delete(f);
@@ -17422,14 +17422,14 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17422
17422
  }
17423
17423
  }
17424
17424
  }, [s, N.isUpdatingSelection, N.latestElement, f, v.onBlur]),
17425
- onClick: Re((S) => {
17425
+ onClick: $e((S) => {
17426
17426
  if (ne.hasTarget(f, S.target) && !gt(S, v.onClick) && An(S.target)) {
17427
- var $ = ne.toSlateNode(f, S.target), O = ne.findPath(f, $);
17428
- if (!x.hasPath(f, O) || ue.get(f, O) !== $)
17427
+ var R = ne.toSlateNode(f, S.target), O = ne.findPath(f, R);
17428
+ if (!x.hasPath(f, O) || ue.get(f, O) !== R)
17429
17429
  return;
17430
17430
  if (S.detail === pw && O.length >= 1) {
17431
17431
  var q = O;
17432
- if (!(ge.isElement($) && x.isBlock(f, $))) {
17432
+ if (!(ge.isElement(R) && x.isBlock(f, R))) {
17433
17433
  var J, U = x.above(f, {
17434
17434
  match: (Ae) => ge.isElement(Ae) && x.isBlock(f, Ae),
17435
17435
  at: O
@@ -17453,14 +17453,14 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17453
17453
  }
17454
17454
  }
17455
17455
  }, [f, v.onClick, s]),
17456
- onCompositionEnd: Re((S) => {
17456
+ onCompositionEnd: $e((S) => {
17457
17457
  if (ne.hasSelectableTarget(f, S.target)) {
17458
- var $;
17458
+ var R;
17459
17459
  if (ne.isComposing(f) && Promise.resolve().then(() => {
17460
17460
  g(!1), Nn.set(f, !1);
17461
- }), ($ = L.current) === null || $ === void 0 || $.handleCompositionEnd(S), gt(S, v.onCompositionEnd) || bt)
17461
+ }), (R = L.current) === null || R === void 0 || R.handleCompositionEnd(S), gt(S, v.onCompositionEnd) || bt)
17462
17462
  return;
17463
- if (!Rr && !b1 && !h1 && !x1 && !y1 && S.data) {
17463
+ if (!$r && !b1 && !h1 && !x1 && !y1 && S.data) {
17464
17464
  var O = Ht.get(f);
17465
17465
  Ht.delete(f), O !== void 0 && (un.set(f, f.marks), f.marks = O), x.insertText(f, S.data);
17466
17466
  var q = un.get(f);
@@ -17468,13 +17468,13 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17468
17468
  }
17469
17469
  }
17470
17470
  }, [v.onCompositionEnd, f]),
17471
- onCompositionUpdate: Re((S) => {
17471
+ onCompositionUpdate: $e((S) => {
17472
17472
  ne.hasSelectableTarget(f, S.target) && !gt(S, v.onCompositionUpdate) && (ne.isComposing(f) || (g(!0), Nn.set(f, !0)));
17473
17473
  }, [v.onCompositionUpdate, f]),
17474
- onCompositionStart: Re((S) => {
17474
+ onCompositionStart: $e((S) => {
17475
17475
  if (ne.hasSelectableTarget(f, S.target)) {
17476
- var $;
17477
- if (($ = L.current) === null || $ === void 0 || $.handleCompositionStart(S), gt(S, v.onCompositionStart) || bt)
17476
+ var R;
17477
+ if ((R = L.current) === null || R === void 0 || R.handleCompositionStart(S), gt(S, v.onCompositionStart) || bt)
17478
17478
  return;
17479
17479
  g(!0);
17480
17480
  var {
@@ -17486,33 +17486,33 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17486
17486
  }
17487
17487
  }
17488
17488
  }, [v.onCompositionStart, f]),
17489
- onCopy: Re((S) => {
17489
+ onCopy: $e((S) => {
17490
17490
  ne.hasSelectableTarget(f, S.target) && !gt(S, v.onCopy) && !hc(S) && (S.preventDefault(), ne.setFragmentData(f, S.clipboardData, "copy"));
17491
17491
  }, [v.onCopy, f]),
17492
- onCut: Re((S) => {
17492
+ onCut: $e((S) => {
17493
17493
  if (!s && ne.hasSelectableTarget(f, S.target) && !gt(S, v.onCut) && !hc(S)) {
17494
17494
  S.preventDefault(), ne.setFragmentData(f, S.clipboardData, "cut");
17495
17495
  var {
17496
- selection: $
17496
+ selection: R
17497
17497
  } = f;
17498
- if ($)
17499
- if (G.isExpanded($))
17498
+ if (R)
17499
+ if (G.isExpanded(R))
17500
17500
  x.deleteFragment(f);
17501
17501
  else {
17502
- var O = ue.parent(f, $.anchor.path);
17502
+ var O = ue.parent(f, R.anchor.path);
17503
17503
  x.isVoid(f, O) && X.delete(f);
17504
17504
  }
17505
17505
  }
17506
17506
  }, [s, f, v.onCut]),
17507
- onDragOver: Re((S) => {
17507
+ onDragOver: $e((S) => {
17508
17508
  if (ne.hasTarget(f, S.target) && !gt(S, v.onDragOver)) {
17509
- var $ = ne.toSlateNode(f, S.target);
17510
- ge.isElement($) && x.isVoid(f, $) && S.preventDefault();
17509
+ var R = ne.toSlateNode(f, S.target);
17510
+ ge.isElement(R) && x.isVoid(f, R) && S.preventDefault();
17511
17511
  }
17512
17512
  }, [v.onDragOver, f]),
17513
- onDragStart: Re((S) => {
17513
+ onDragStart: $e((S) => {
17514
17514
  if (!s && ne.hasTarget(f, S.target) && !gt(S, v.onDragStart)) {
17515
- var $ = ne.toSlateNode(f, S.target), O = ne.findPath(f, $), q = ge.isElement($) && x.isVoid(f, $) || x.void(f, {
17515
+ var R = ne.toSlateNode(f, S.target), O = ne.findPath(f, R), q = ge.isElement(R) && x.isVoid(f, R) || x.void(f, {
17516
17516
  at: O,
17517
17517
  voids: !0
17518
17518
  });
@@ -17523,36 +17523,36 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17523
17523
  N.isDraggingInternally = !0, ne.setFragmentData(f, S.dataTransfer, "drag");
17524
17524
  }
17525
17525
  }, [s, f, v.onDragStart, N]),
17526
- onDrop: Re((S) => {
17526
+ onDrop: $e((S) => {
17527
17527
  if (!s && ne.hasTarget(f, S.target) && !gt(S, v.onDrop)) {
17528
17528
  S.preventDefault();
17529
- var $ = f.selection, O = ne.findEventRange(f, S), q = S.dataTransfer;
17530
- X.select(f, O), N.isDraggingInternally && $ && !G.equals($, O) && !x.void(f, {
17529
+ var R = f.selection, O = ne.findEventRange(f, S), q = S.dataTransfer;
17530
+ X.select(f, O), N.isDraggingInternally && R && !G.equals(R, O) && !x.void(f, {
17531
17531
  at: O,
17532
17532
  voids: !0
17533
17533
  }) && X.delete(f, {
17534
- at: $
17534
+ at: R
17535
17535
  }), ne.insertData(f, q), ne.isFocused(f) || ne.focus(f);
17536
17536
  }
17537
17537
  N.isDraggingInternally = !1;
17538
17538
  }, [s, f, v.onDrop, N]),
17539
- onDragEnd: Re((S) => {
17539
+ onDragEnd: $e((S) => {
17540
17540
  !s && N.isDraggingInternally && v.onDragEnd && ne.hasTarget(f, S.target) && v.onDragEnd(S), N.isDraggingInternally = !1;
17541
17541
  }, [s, N, v, f]),
17542
- onFocus: Re((S) => {
17542
+ onFocus: $e((S) => {
17543
17543
  if (!s && !N.isUpdatingSelection && ne.hasEditableTarget(f, S.target) && !gt(S, v.onFocus)) {
17544
- var $ = ne.toDOMNode(f, f), O = ne.findDocumentOrShadowRoot(f);
17545
- if (N.latestElement = O.activeElement, or && S.target !== $) {
17546
- $.focus();
17544
+ var R = ne.toDOMNode(f, f), O = ne.findDocumentOrShadowRoot(f);
17545
+ if (N.latestElement = O.activeElement, or && S.target !== R) {
17546
+ R.focus();
17547
17547
  return;
17548
17548
  }
17549
17549
  En.set(f, !0);
17550
17550
  }
17551
17551
  }, [s, N, f, v.onFocus]),
17552
- onKeyDown: Re((S) => {
17552
+ onKeyDown: $e((S) => {
17553
17553
  if (!s && ne.hasEditableTarget(f, S.target)) {
17554
- var $;
17555
- ($ = L.current) === null || $ === void 0 || $.handleKeyDown(S);
17554
+ var R;
17555
+ (R = L.current) === null || R === void 0 || R.handleKeyDown(S);
17556
17556
  var {
17557
17557
  nativeEvent: O
17558
17558
  } = S;
@@ -17636,7 +17636,7 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17636
17636
  return;
17637
17637
  }
17638
17638
  if (bn) {
17639
- if (($f || Rr) && q && (nt.isDeleteBackward(O) || nt.isDeleteForward(O)) && G.isCollapsed(q)) {
17639
+ if ((Rf || $r) && q && (nt.isDeleteBackward(O) || nt.isDeleteForward(O)) && G.isCollapsed(q)) {
17640
17640
  var Q = ue.parent(f, q.anchor.path);
17641
17641
  if (ge.isElement(Q) && x.isVoid(f, Q) && (x.isInline(f, Q) || x.isBlock(f, Q))) {
17642
17642
  S.preventDefault(), x.deleteBackward(f, {
@@ -17705,8 +17705,8 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17705
17705
  }
17706
17706
  }
17707
17707
  }, [s, f, v.onKeyDown]),
17708
- onPaste: Re((S) => {
17709
- !s && ne.hasEditableTarget(f, S.target) && !gt(S, v.onPaste) && (!bn || C1(S.nativeEvent) || Rr) && (S.preventDefault(), ne.insertData(f, S.clipboardData));
17708
+ onPaste: $e((S) => {
17709
+ !s && ne.hasEditableTarget(f, S.target) && !gt(S, v.onPaste) && (!bn || C1(S.nativeEvent) || $r) && (S.preventDefault(), ne.insertData(f, S.clipboardData));
17710
17710
  }, [s, f, v.onPaste])
17711
17711
  }), /* @__PURE__ */ re.createElement(Ew, {
17712
17712
  decorations: M,
@@ -17747,7 +17747,7 @@ var Ew = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Gf(e)), _w =
17747
17747
  function jw(e) {
17748
17748
  var t = Se([]).current, n = Se({
17749
17749
  editor: e
17750
- }).current, r = Re((a) => {
17750
+ }).current, r = $e((a) => {
17751
17751
  n.editor = a, t.forEach((s) => s(a));
17752
17752
  }, [t, n]), i = en(() => ({
17753
17753
  getSlate: () => n.editor,
@@ -17780,7 +17780,7 @@ var Pw = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
17780
17780
  }), {
17781
17781
  selectorContext: d,
17782
17782
  onChange: m
17783
- } = jw(t), h = Re((f) => {
17783
+ } = jw(t), h = $e((f) => {
17784
17784
  var b;
17785
17785
  switch (r && r(t.children), f == null || (b = f.operation) === null || b === void 0 ? void 0 : b.type) {
17786
17786
  case "set_selection":
@@ -18054,7 +18054,7 @@ const eo = "MENTION: ", em = {
18054
18054
  0
18055
18055
  )), u.style.top = `${h / ns}rem`, u.style.left = `${d / ns}rem`;
18056
18056
  }, o), r;
18057
- }, $w = (e) => {
18057
+ }, Rw = (e) => {
18058
18058
  const [t, n] = se(
18059
18059
  null
18060
18060
  );
@@ -18132,7 +18132,7 @@ var Vi = Object.prototype.hasOwnProperty, nm = Object.prototype.toString, wc = O
18132
18132
  } else
18133
18133
  return;
18134
18134
  return t[n];
18135
- }, Rw = function e() {
18135
+ }, $w = function e() {
18136
18136
  var t, n, r, i, a, s, o = arguments[0], u = 1, l = arguments.length, d = !1;
18137
18137
  for (typeof o == "boolean" && (d = o, o = arguments[1] || {}, u = 2), (o == null || typeof o != "object" && typeof o != "function") && (o = {}); u < l; ++u)
18138
18138
  if (t = arguments[u], t != null)
@@ -18140,7 +18140,7 @@ var Vi = Object.prototype.hasOwnProperty, nm = Object.prototype.toString, wc = O
18140
18140
  r = kc(o, n), i = kc(t, n), o !== i && (d && i && (Ec(i) || (a = Cc(i))) ? (a ? (a = !1, s = r && Cc(r) ? r : []) : s = r && Ec(r) ? r : {}, _c(o, { name: n, newValue: e(d, s, i) })) : typeof i < "u" && _c(o, { name: n, newValue: i }));
18141
18141
  return o;
18142
18142
  };
18143
- const rs = /* @__PURE__ */ Wn(Rw);
18143
+ const rs = /* @__PURE__ */ Wn($w);
18144
18144
  function to(e) {
18145
18145
  if (typeof e != "object" || e === null)
18146
18146
  return !1;
@@ -19447,7 +19447,7 @@ function hn(e, t, n, r) {
19447
19447
  for (n && e.splice(t, n); a < r.length; )
19448
19448
  s = r.slice(a, a + 1e4), s.unshift(t, 0), e.splice(...s), a += 1e4, t += 1e4;
19449
19449
  }
19450
- function $t(e, t) {
19450
+ function Rt(e, t) {
19451
19451
  return e.length > 0 ? (hn(e, e.length, 0, t), e) : t;
19452
19452
  }
19453
19453
  const Oc = {}.hasOwnProperty;
@@ -19744,7 +19744,7 @@ function wD(e, t) {
19744
19744
  continue;
19745
19745
  u = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
19746
19746
  const m = Object.assign({}, e[r][1].end), h = Object.assign({}, e[n][1].start);
19747
- $c(m, -u), $c(h, u), s = {
19747
+ Rc(m, -u), Rc(h, u), s = {
19748
19748
  type: u > 1 ? "strongSequence" : "emphasisSequence",
19749
19749
  start: m,
19750
19750
  end: Object.assign({}, e[r][1].end)
@@ -19760,7 +19760,7 @@ function wD(e, t) {
19760
19760
  type: u > 1 ? "strong" : "emphasis",
19761
19761
  start: Object.assign({}, s.start),
19762
19762
  end: Object.assign({}, o.end)
19763
- }, e[r][1].end = Object.assign({}, s.start), e[n][1].start = Object.assign({}, o.end), l = [], e[r][1].end.offset - e[r][1].start.offset && (l = $t(l, [["enter", e[r][1], t], ["exit", e[r][1], t]])), l = $t(l, [["enter", i, t], ["enter", s, t], ["exit", s, t], ["enter", a, t]]), l = $t(l, Go(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = $t(l, [["exit", a, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, l = $t(l, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : d = 0, hn(e, r - 1, n - r + 3, l), n = r + l.length - d - 2;
19763
+ }, e[r][1].end = Object.assign({}, s.start), e[n][1].start = Object.assign({}, o.end), l = [], e[r][1].end.offset - e[r][1].start.offset && (l = Rt(l, [["enter", e[r][1], t], ["exit", e[r][1], t]])), l = Rt(l, [["enter", i, t], ["enter", s, t], ["exit", s, t], ["enter", a, t]]), l = Rt(l, Go(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = Rt(l, [["exit", a, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, l = Rt(l, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : d = 0, hn(e, r - 1, n - r + 3, l), n = r + l.length - d - 2;
19764
19764
  break;
19765
19765
  }
19766
19766
  }
@@ -19782,7 +19782,7 @@ function DD(e, t) {
19782
19782
  return l._open = !!(a === 42 ? m : m && (i || !h)), l._close = !!(a === 42 ? h : h && (d || !m)), t(u);
19783
19783
  }
19784
19784
  }
19785
- function $c(e, t) {
19785
+ function Rc(e, t) {
19786
19786
  e.column += t, e.offset += t, e._bufferIndex += t;
19787
19787
  }
19788
19788
  const CD = {
@@ -19912,7 +19912,7 @@ function TD(e, t, n) {
19912
19912
  return s(m) && i++ < a ? (e.consume(m), d) : n(m);
19913
19913
  }
19914
19914
  }
19915
- const Rc = {
19915
+ const $c = {
19916
19916
  tokenize: jD,
19917
19917
  partial: !0
19918
19918
  }, Ic = {
@@ -19938,7 +19938,7 @@ function SD(e, t, n) {
19938
19938
  return E === o ? (s++, e.consume(E), d) : s < 3 ? n(E) : (e.exit("codeFencedFenceSequence"), qe(E) ? Je(e, m, "whitespace")(E) : m(E));
19939
19939
  }
19940
19940
  function m(E) {
19941
- return E === null || ke(E) ? (e.exit("codeFencedFence"), r.interrupt ? t(E) : e.check(Rc, f, _)(E)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
19941
+ return E === null || ke(E) ? (e.exit("codeFencedFence"), r.interrupt ? t(E) : e.check($c, f, _)(E)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
19942
19942
  contentType: "string"
19943
19943
  }), h(E));
19944
19944
  }
@@ -19963,7 +19963,7 @@ function SD(e, t, n) {
19963
19963
  return a > 0 && qe(E) ? Je(e, y, "linePrefix", a + 1)(E) : y(E);
19964
19964
  }
19965
19965
  function y(E) {
19966
- return E === null || ke(E) ? e.check(Rc, f, _)(E) : (e.enter("codeFlowValue"), w(E));
19966
+ return E === null || ke(E) ? e.check($c, f, _)(E) : (e.enter("codeFlowValue"), w(E));
19967
19967
  }
19968
19968
  function w(E) {
19969
19969
  return E === null || ke(E) ? (e.exit("codeFlowValue"), y(E)) : (e.consume(E), w);
@@ -20042,10 +20042,10 @@ function ND(e, t, n) {
20042
20042
  const MD = {
20043
20043
  name: "codeText",
20044
20044
  tokenize: ID,
20045
- resolve: $D,
20046
- previous: RD
20045
+ resolve: RD,
20046
+ previous: $D
20047
20047
  };
20048
- function $D(e) {
20048
+ function RD(e) {
20049
20049
  let t = e.length - 4, n = 3, r, i;
20050
20050
  if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
20051
20051
  for (r = n; ++r < t; )
@@ -20058,7 +20058,7 @@ function $D(e) {
20058
20058
  i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
20059
20059
  return e;
20060
20060
  }
20061
- function RD(e) {
20061
+ function $D(e) {
20062
20062
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
20063
20063
  }
20064
20064
  function ID(e, t, n) {
@@ -20653,8 +20653,8 @@ function oC(e, t, n) {
20653
20653
  }
20654
20654
  function b(F) {
20655
20655
  if (F === null || F === 47 || F === 62 || At(F)) {
20656
- const S = F === 47, $ = s.toLowerCase();
20657
- return !S && !a && Lc.includes($) ? (i = 1, r.interrupt ? t(F) : A(F)) : nC.includes(s.toLowerCase()) ? (i = 6, S ? (e.consume(F), g) : r.interrupt ? t(F) : A(F)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(F) : a ? y(F) : w(F));
20656
+ const S = F === 47, R = s.toLowerCase();
20657
+ return !S && !a && Lc.includes(R) ? (i = 1, r.interrupt ? t(F) : A(F)) : nC.includes(s.toLowerCase()) ? (i = 6, S ? (e.consume(F), g) : r.interrupt ? t(F) : A(F)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(F) : a ? y(F) : w(F));
20658
20658
  }
20659
20659
  return F === 45 || Kt(F) ? (e.consume(F), s += String.fromCharCode(F), b) : n(F);
20660
20660
  }
@@ -20889,7 +20889,7 @@ function gC(e, t) {
20889
20889
  start: Object.assign({}, e[a + r + 2][1].end),
20890
20890
  end: Object.assign({}, e[s - 2][1].start)
20891
20891
  };
20892
- return o = [["enter", u, t], ["enter", l, t]], o = $t(o, e.slice(a + 1, a + r + 3)), o = $t(o, [["enter", d, t]]), o = $t(o, Go(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, s - 3), t)), o = $t(o, [["exit", d, t], e[s - 2], e[s - 1], ["exit", l, t]]), o = $t(o, e.slice(s + 1)), o = $t(o, [["exit", u, t]]), hn(e, a, e.length, o), e;
20892
+ return o = [["enter", u, t], ["enter", l, t]], o = Rt(o, e.slice(a + 1, a + r + 3)), o = Rt(o, [["enter", d, t]]), o = Rt(o, Go(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, s - 3), t)), o = Rt(o, [["exit", d, t], e[s - 2], e[s - 1], ["exit", l, t]]), o = Rt(o, e.slice(s + 1)), o = Rt(o, [["exit", u, t]]), hn(e, a, e.length, o), e;
20893
20893
  }
20894
20894
  function vC(e, t, n) {
20895
20895
  const r = this;
@@ -21161,9 +21161,9 @@ function NC(e, t, n) {
21161
21161
  }
21162
21162
  }
21163
21163
  const MC = {
21164
- tokenize: $C
21164
+ tokenize: RC
21165
21165
  };
21166
- function $C(e) {
21166
+ function RC(e) {
21167
21167
  const t = this, n = e.attempt(
21168
21168
  // Try to parse a blank line.
21169
21169
  Ca,
@@ -21199,7 +21199,7 @@ function $C(e) {
21199
21199
  return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), t.currentConstruct = void 0, n;
21200
21200
  }
21201
21201
  }
21202
- const RC = {
21202
+ const $C = {
21203
21203
  resolveAll: mm()
21204
21204
  }, IC = fm("string"), LC = fm("text");
21205
21205
  function fm(e) {
@@ -21331,7 +21331,7 @@ function qC(e, t, n) {
21331
21331
  let d = t.tokenize.call(l, u);
21332
21332
  return t.resolveAll && a.push(t), l;
21333
21333
  function m(P) {
21334
- return s = $t(s, P), b(), s[s.length - 1] !== null ? [] : (j(t, 0), l.events = Go(a, l.events, l), l.events);
21334
+ return s = Rt(s, P), b(), s[s.length - 1] !== null ? [] : (j(t, 0), l.events = Go(a, l.events, l), l.events);
21335
21335
  }
21336
21336
  function h(P, A) {
21337
21337
  return WC(p(P), A);
@@ -21409,21 +21409,21 @@ function qC(e, t, n) {
21409
21409
  function F(O) {
21410
21410
  return q;
21411
21411
  function q(J) {
21412
- return D = N(), te = O, O.partial || (l.currentConstruct = O), O.name && l.parser.constructs.disable.null.includes(O.name) ? $() : O.tokenize.call(
21412
+ return D = N(), te = O, O.partial || (l.currentConstruct = O), O.name && l.parser.constructs.disable.null.includes(O.name) ? R() : O.tokenize.call(
21413
21413
  // If we do have fields, create an object w/ `context` as its
21414
21414
  // prototype.
21415
21415
  // This allows a “live binding”, which is needed for `interrupt`.
21416
21416
  A ? Object.assign(Object.create(l), A) : l,
21417
21417
  u,
21418
21418
  S,
21419
- $
21419
+ R
21420
21420
  )(J);
21421
21421
  }
21422
21422
  }
21423
21423
  function S(O) {
21424
21424
  return P(te, D), M;
21425
21425
  }
21426
- function $(O) {
21426
+ function R(O) {
21427
21427
  return D.restore(), ++ie < W.length ? F(W[ie]) : V;
21428
21428
  }
21429
21429
  }
@@ -21553,7 +21553,7 @@ const VC = {
21553
21553
  95: so,
21554
21554
  96: MD
21555
21555
  }, QC = {
21556
- null: [so, RC]
21556
+ null: [so, $C]
21557
21557
  }, JC = {
21558
21558
  null: [42, 95]
21559
21559
  }, XC = {
@@ -21710,8 +21710,8 @@ function lE(e) {
21710
21710
  autolinkProtocol: q,
21711
21711
  blockQuote: u(),
21712
21712
  characterEscapeValue: L,
21713
- characterReferenceMarkerHexadecimal: $,
21714
- characterReferenceMarkerNumeric: $,
21713
+ characterReferenceMarkerHexadecimal: R,
21714
+ characterReferenceMarkerNumeric: R,
21715
21715
  characterReferenceValue: O,
21716
21716
  codeFenced: u(b),
21717
21717
  codeFencedFence: f,
@@ -22057,7 +22057,7 @@ function lE(e) {
22057
22057
  this.sliceSerialize(Y)
22058
22058
  ).toLowerCase(), this.data.referenceType = "full";
22059
22059
  }
22060
- function $(Y) {
22060
+ function R(Y) {
22061
22061
  this.data.characterReferenceType = Y.type;
22062
22062
  }
22063
22063
  function O(Y) {
@@ -22373,7 +22373,7 @@ const dE = function(t) {
22373
22373
  }, fE = (e, t = (n) => {
22374
22374
  }) => {
22375
22375
  tD().use(cE).use(dE).process(e).then((n) => {
22376
- const r = Rt(n.result), i = (s) => {
22376
+ const r = $t(n.result), i = (s) => {
22377
22377
  const o = s;
22378
22378
  [K.li, K.blockquote].includes(o.type) && o.children.map((u, l) => {
22379
22379
  const d = u;
@@ -22651,7 +22651,7 @@ const xE = ({
22651
22651
  return /* @__PURE__ */ c.jsx(c.Fragment, {});
22652
22652
  const h = bm(i);
22653
22653
  return /* @__PURE__ */ c.jsx(li, { parent: h, children: /* @__PURE__ */ c.jsx(
22654
- $h,
22654
+ Rh,
22655
22655
  {
22656
22656
  ref: m,
22657
22657
  className: "mention-popover",
@@ -22971,7 +22971,7 @@ const EE = () => {
22971
22971
  getLinkPreview: s,
22972
22972
  showLinkEditor: o,
22973
22973
  reportError: u
22974
- } = Ne(gn), l = Zn(), d = $w(l), m = (d == null ? void 0 : d.text) || hE(l), h = i !== !1, [p, v] = se(Hr(l)), f = tm(l, "link-editor", `${n}-link`), b = Se(null);
22974
+ } = Ne(gn), l = Zn(), d = Rw(l), m = (d == null ? void 0 : d.text) || hE(l), h = i !== !1, [p, v] = se(Hr(l)), f = tm(l, "link-editor", `${n}-link`), b = Se(null);
22975
22975
  fe(() => {
22976
22976
  var C;
22977
22977
  !p && o && ((C = b.current) == null || C.focus());
@@ -23294,7 +23294,7 @@ var Am = [
23294
23294
  function ME(e) {
23295
23295
  return nl(e, Am);
23296
23296
  }
23297
- function $E(e) {
23297
+ function RE(e) {
23298
23298
  return Fm(e, Am);
23299
23299
  }
23300
23300
  function nl(e, t) {
@@ -23539,11 +23539,11 @@ Bm.prototype = {
23539
23539
  function hs(e, t, n) {
23540
23540
  for (var r = 0; r < e.length; r++) {
23541
23541
  var i = e[r];
23542
- if (RE(i, t, n))
23542
+ if ($E(i, t, n))
23543
23543
  return i;
23544
23544
  }
23545
23545
  }
23546
- function RE(e, t, n) {
23546
+ function $E(e, t, n) {
23547
23547
  var r = e.filter;
23548
23548
  if (typeof r == "string") {
23549
23549
  if (r === t.nodeName.toLowerCase())
@@ -23650,7 +23650,7 @@ function KE(e, t) {
23650
23650
  return e.isBlock = tl(e), e.isCode = e.nodeName === "CODE" || e.parentNode.isCode, e.isBlank = ZE(e), e.flankingWhitespace = YE(e, t), e;
23651
23651
  }
23652
23652
  function ZE(e) {
23653
- return !km(e) && !ME(e) && /^\s*$/i.test(e.textContent) && !NE(e) && !$E(e);
23653
+ return !km(e) && !ME(e) && /^\s*$/i.test(e.textContent) && !NE(e) && !RE(e);
23654
23654
  }
23655
23655
  function YE(e, t) {
23656
23656
  if (e.isBlock || t.preformattedCode && e.isCode)
@@ -24047,8 +24047,8 @@ const jm = ({
24047
24047
  getLinkPreview: g = () => Promise.resolve({}),
24048
24048
  onMention: y = () => {
24049
24049
  },
24050
- reportError: w = ($) => {
24051
- console.error($);
24050
+ reportError: w = (R) => {
24051
+ console.error(R);
24052
24052
  }
24053
24053
  } = a || {}, _ = [
24054
24054
  {
@@ -24086,13 +24086,13 @@ const jm = ({
24086
24086
  hasLoaded: M,
24087
24087
  enrichedUrl: V,
24088
24088
  mentionPopover: W
24089
- } = E, ie = async ($) => {
24090
- const O = await g($);
24089
+ } = E, ie = async (R) => {
24090
+ const O = await g(R);
24091
24091
  O.url && B([{ type: "enrichedUrl", value: O }]);
24092
- }, te = `rte-${e}`, D = Re(
24093
- ($) => /* @__PURE__ */ c.jsx(Yv, { ...$ }),
24092
+ }, te = `rte-${e}`, D = $e(
24093
+ (R) => /* @__PURE__ */ c.jsx(Yv, { ...R }),
24094
24094
  []
24095
- ), Z = Re(($) => /* @__PURE__ */ c.jsx(Gv, { ...$ }), []), z = en(
24095
+ ), Z = $e((R) => /* @__PURE__ */ c.jsx(Gv, { ...R }), []), z = en(
24096
24096
  () => s_(
24097
24097
  m_(
24098
24098
  h_(
@@ -24105,20 +24105,20 @@ const jm = ({
24105
24105
  w
24106
24106
  ),
24107
24107
  []
24108
- ), F = ($) => {
24109
- if (!z || $ !== te)
24108
+ ), F = (R) => {
24109
+ if (!z || R !== te)
24110
24110
  return;
24111
24111
  const O = x.end(z, []);
24112
24112
  X.select(z, O), ne.focus(z);
24113
24113
  };
24114
24114
  fe(() => {
24115
- const $ = (O) => {
24115
+ const R = (O) => {
24116
24116
  var U;
24117
24117
  const q = O, J = ((U = q == null ? void 0 : q.detail) == null ? void 0 : U.id) || null;
24118
24118
  J && F(J);
24119
24119
  };
24120
- return window.addEventListener("focusEditor", $), () => {
24121
- window.removeEventListener("focusEditor", $);
24120
+ return window.addEventListener("focusEditor", R), () => {
24121
+ window.removeEventListener("focusEditor", R);
24122
24122
  };
24123
24123
  }, []), fe(() => {
24124
24124
  if (z.children.length > 0 && !M) {
@@ -24128,7 +24128,7 @@ const jm = ({
24128
24128
  }
24129
24129
  }, [z.children.length, L]), fe(() => {
24130
24130
  N && (async () => {
24131
- let O = Rt(N);
24131
+ let O = $t(N);
24132
24132
  if (O.includes("<")) {
24133
24133
  ai.prototype.escape = (J) => J;
24134
24134
  const q = new ai();
@@ -24159,19 +24159,19 @@ const jm = ({
24159
24159
  const O = pE(z);
24160
24160
  O && ie(O);
24161
24161
  }
24162
- const $ = (O) => {
24162
+ const R = (O) => {
24163
24163
  var U;
24164
24164
  const q = O, J = ((U = q == null ? void 0 : q.detail) == null ? void 0 : U.url) || null;
24165
24165
  J && V && V.url === J && B([{ type: "enrichedUrl", value: void 0 }]);
24166
24166
  };
24167
- return window.addEventListener("linkRemoved", $), () => {
24168
- window.removeEventListener("linkRemoved", $);
24167
+ return window.addEventListener("linkRemoved", R), () => {
24168
+ window.removeEventListener("linkRemoved", R);
24169
24169
  };
24170
24170
  }, [V]), fe(() => {
24171
24171
  if (t) {
24172
24172
  Yi.lastIndex = 0;
24173
- const $ = t.match(Yi);
24174
- $ && $.length === 1 && $[0].length === t.length && !T && B([{ type: "originalValue", value: t }]);
24173
+ const R = t.match(Yi);
24174
+ R && R.length === 1 && R[0].length === t.length && !T && B([{ type: "originalValue", value: t }]);
24175
24175
  }
24176
24176
  t !== "" || !z || Ki(N, t) && !T || (x.withoutNormalizing(z, () => {
24177
24177
  X.delete(z, {
@@ -24216,10 +24216,10 @@ const jm = ({
24216
24216
  {
24217
24217
  editor: z,
24218
24218
  initialValue: L,
24219
- onChange: ($) => {
24219
+ onChange: (R) => {
24220
24220
  if (z.operations.some((q) => q.type !== "set_selection")) {
24221
- let q = yE($);
24222
- q === "<br>" && (q = ""), f(q, V), B([{ type: "stringValue", value: Wc(z) }]), T || B([{ type: "hasInteracted", value: !0 }]), S(), m && console.log({ serialized: q, json: $ });
24221
+ let q = yE(R);
24222
+ q === "<br>" && (q = ""), f(q, V), B([{ type: "stringValue", value: Wc(z) }]), T || B([{ type: "hasInteracted", value: !0 }]), S(), m && console.log({ serialized: q, json: R });
24223
24223
  }
24224
24224
  },
24225
24225
  ...l,
@@ -24233,8 +24233,8 @@ const jm = ({
24233
24233
  placeholder: n || d.formatMessage({ id: "richTextEditor_placeholder" }),
24234
24234
  autoFocus: s,
24235
24235
  tabIndex: 0,
24236
- onPaste: async ($) => {
24237
- const O = V !== !1, q = $.clipboardData.getData("text");
24236
+ onPaste: async (R) => {
24237
+ const O = V !== !1, q = R.clipboardData.getData("text");
24238
24238
  if (((U) => {
24239
24239
  try {
24240
24240
  return new URL(U), !0;
@@ -24253,17 +24253,17 @@ const jm = ({
24253
24253
  }
24254
24254
  }
24255
24255
  },
24256
- onKeyDown: ($) => {
24257
- if ($.key === "Enter") {
24258
- W.show && ($.preventDefault(), $.stopPropagation(), vm(z, W, B, te));
24256
+ onKeyDown: (R) => {
24257
+ if (R.key === "Enter") {
24258
+ W.show && (R.preventDefault(), R.stopPropagation(), vm(z, W, B, te));
24259
24259
  const { selection: O } = z;
24260
24260
  if (O) {
24261
24261
  const q = G.isCollapsed(O), [J, U] = x.node(z, O, { depth: 1 });
24262
24262
  let ee = J, me = ee.type;
24263
24263
  const Q = ee.children[0];
24264
- if (Q && (Q == null ? void 0 : Q[K.h3]) === !0 && ($.stopPropagation(), $.preventDefault(), X.insertNodes(z, _)), Q && [K.ol, K.ul].includes(Q.type) && (ee = Q, me = Q.type), ee && ge.isElement(ee) && me !== K.paragraph) {
24265
- if (me === K.blockquote && !$.shiftKey) {
24266
- $.stopPropagation(), $.preventDefault(), X.insertNodes(z, _);
24264
+ if (Q && (Q == null ? void 0 : Q[K.h3]) === !0 && (R.stopPropagation(), R.preventDefault(), X.insertNodes(z, _)), Q && [K.ol, K.ul].includes(Q.type) && (ee = Q, me = Q.type), ee && ge.isElement(ee) && me !== K.paragraph) {
24265
+ if (me === K.blockquote && !R.shiftKey) {
24266
+ R.stopPropagation(), R.preventDefault(), X.insertNodes(z, _);
24267
24267
  return;
24268
24268
  }
24269
24269
  if (q) {
@@ -24271,7 +24271,7 @@ const jm = ({
24271
24271
  edge: "end"
24272
24272
  }), Ae = ye.type;
24273
24273
  if ([K.ul, K.ol].includes(me))
24274
- if ($.stopPropagation(), $.preventDefault(), Ae === K.li && k === "Enter") {
24274
+ if (R.stopPropagation(), R.preventDefault(), Ae === K.li && k === "Enter") {
24275
24275
  ye.children.length === 1 && "text" in ye.children[0] && ye.children[0].text === "" && X.removeNodes(z, { at: pe }), X.insertNodes(z, _, {
24276
24276
  at: I.next(U)
24277
24277
  }), X.select(
@@ -24294,17 +24294,17 @@ const jm = ({
24294
24294
  }
24295
24295
  }
24296
24296
  }
24297
- } else if ($.key === "Escape") {
24297
+ } else if (R.key === "Escape") {
24298
24298
  if (W.show) {
24299
- $.preventDefault(), $.stopPropagation(), B([
24299
+ R.preventDefault(), R.stopPropagation(), B([
24300
24300
  { type: "mentionPopover", value: { ...W, show: !1 } }
24301
24301
  ]);
24302
24302
  return;
24303
24303
  }
24304
- } else if (["ArrowUp", "ArrowDown"].includes($.key) && W.show) {
24305
- $.preventDefault(), $.stopPropagation();
24304
+ } else if (["ArrowUp", "ArrowDown"].includes(R.key) && W.show) {
24305
+ R.preventDefault(), R.stopPropagation();
24306
24306
  const { selectedUser: O, possibleUsers: q } = W;
24307
- let J = $.key === "ArrowUp" ? O - 1 : O + 1;
24307
+ let J = R.key === "ArrowUp" ? O - 1 : O + 1;
24308
24308
  J < 0 && (J = q.length - 1), J >= q.length + 1 && (J = 0), B([
24309
24309
  {
24310
24310
  type: "mentionPopover",
@@ -24312,7 +24312,7 @@ const jm = ({
24312
24312
  }
24313
24313
  ]);
24314
24314
  }
24315
- B([{ type: "lastKey", value: $.key }]), gE($, z, B, w);
24315
+ B([{ type: "lastKey", value: R.key }]), gE(R, z, B, w);
24316
24316
  },
24317
24317
  onBlur: () => {
24318
24318
  z.selection && B([{ type: "lastAnchor", value: z.selection.anchor }]);
@@ -24321,9 +24321,9 @@ const jm = ({
24321
24321
  if (A) {
24322
24322
  if (!I.isPath(A.path) || !ue.has(z, A.path))
24323
24323
  return;
24324
- const $ = ue.get(z, A.path);
24324
+ const R = ue.get(z, A.path);
24325
24325
  let O = 0;
24326
- if (be.isText($) ? O = $.text.length : $.children && (O = $.children.length), A.offset > O)
24326
+ if (be.isText(R) ? O = R.text.length : R.children && (O = R.children.length), A.offset > O)
24327
24327
  return;
24328
24328
  try {
24329
24329
  X.select(z, {
@@ -24345,14 +24345,14 @@ const jm = ({
24345
24345
  variant: "condensed",
24346
24346
  onClick: () => {
24347
24347
  B([{ type: "enrichedUrl", value: !1 }]);
24348
- const $ = new CustomEvent("ariaLive", {
24348
+ const R = new CustomEvent("ariaLive", {
24349
24349
  detail: {
24350
24350
  message: d.formatMessage({
24351
24351
  id: "richTextEditor_link_enrichedUrl_aria_live"
24352
24352
  })
24353
24353
  }
24354
24354
  });
24355
- document.dispatchEvent($);
24355
+ document.dispatchEvent(R);
24356
24356
  },
24357
24357
  "aria-label": d.formatMessage(
24358
24358
  { id: "richTextEditor_link_enrichedUrl_aria" },
@@ -27007,7 +27007,7 @@ const N_ = 25, M_ = ({
27007
27007
  }
27008
27008
  ) : /* @__PURE__ */ c.jsx(c.Fragment, {})
27009
27009
  ] });
27010
- }, $_ = M_, R_ = ({ intlPath: e, showGuidelines: t, type: n, gtmContext: r }) => {
27010
+ }, R_ = M_, $_ = ({ intlPath: e, showGuidelines: t, type: n, gtmContext: r }) => {
27011
27011
  const i = ce();
27012
27012
  return t ? /* @__PURE__ */ c.jsx("small", { children: Vt(i.formatMessage, `${e}explainer`, n, "action", {
27013
27013
  a: (a) => /* @__PURE__ */ c.jsx(
@@ -27110,7 +27110,7 @@ const tt = "discussion_form_", Ea = ({
27110
27110
  listMembers: F = () => Promise.resolve([]),
27111
27111
  clickMentionFallback: S = () => {
27112
27112
  },
27113
- getLinkPreview: $ = () => Promise.resolve({}),
27113
+ getLinkPreview: R = () => Promise.resolve({}),
27114
27114
  props: O = {
27115
27115
  create: { projectNames: ["questions-answers"] }
27116
27116
  }
@@ -27323,7 +27323,7 @@ const tt = "discussion_form_", Ea = ({
27323
27323
  onMention: z,
27324
27324
  listMembers: F,
27325
27325
  clickMentionFallback: S,
27326
- getLinkPreview: $
27326
+ getLinkPreview: R
27327
27327
  },
27328
27328
  data: d,
27329
27329
  autoFocus: E !== !1 || C && !B,
@@ -27332,7 +27332,7 @@ const tt = "discussion_form_", Ea = ({
27332
27332
  }
27333
27333
  },
27334
27334
  {
27335
- component: R_,
27335
+ component: $_,
27336
27336
  props: {
27337
27337
  intlPath: tt,
27338
27338
  showGuidelines: P,
@@ -27659,9 +27659,9 @@ const Y_ = ({ title: e, options: t, settings: n, functions: r }) => {
27659
27659
  resultsVisibility: l = co.AfterVoting
27660
27660
  } = n || {}, [d, m] = se(
27661
27661
  H_(t, u, s == null ? void 0 : s.id)
27662
- ), h = t.reduce((g, y) => g + y.numVotes, 0), p = t.filter((g) => g.hasUserVoted).length, v = t.filter((g) => g.hasUserVoted), f = Re(async (g) => {
27662
+ ), h = t.reduce((g, y) => g + y.numVotes, 0), p = t.filter((g) => g.hasUserVoted).length, v = t.filter((g) => g.hasUserVoted), f = $e(async (g) => {
27663
27663
  await r.createVote({ reactionId: g.id });
27664
- }, []), b = Re(async () => {
27664
+ }, []), b = $e(async () => {
27665
27665
  t.forEach(async (g) => {
27666
27666
  g.hasUserVoted && g.userVote && r.removeVote({ reactionId: g.userVote.id });
27667
27667
  });
@@ -27822,8 +27822,8 @@ const _a = ({
27822
27822
  },
27823
27823
  removePoll: W = () => {
27824
27824
  }
27825
- } = o.polls || {}, { author: ie, createdAt: te, id: D, likes: Z = 0, userLiked: z, comments: F = 0, data: S } = t, $ = nv(t.title, y), O = C && C.id && typeof ie != "string" && ie.id && ie.id === C.id || !1, q = O && (!t.createdAt || Ch(t.createdAt, 10, "seconds")), J = Se(null), [U, ee] = se({
27826
- title: t.body !== $ && $ || "",
27825
+ } = o.polls || {}, { author: ie, createdAt: te, id: D, likes: Z = 0, userLiked: z, comments: F = 0, data: S } = t, R = nv(t.title, y), O = C && C.id && typeof ie != "string" && ie.id && ie.id === C.id || !1, q = O && (!t.createdAt || Ch(t.createdAt, 10, "seconds")), J = Se(null), [U, ee] = se({
27826
+ title: t.body !== R && R || "",
27827
27827
  body: t && t.body || "",
27828
27828
  isEditing: !1,
27829
27829
  didEdit: t && t.isEdited || !1,
@@ -27845,7 +27845,7 @@ const _a = ({
27845
27845
  }, []), fe(() => {
27846
27846
  ee((de) => ({
27847
27847
  ...de,
27848
- title: t && $ || "",
27848
+ title: t && R || "",
27849
27849
  body: t && t.body || "",
27850
27850
  didEdit: t && t.isEdited || !1,
27851
27851
  data: t && t.data || {}
@@ -28319,7 +28319,7 @@ const X_ = wr(
28319
28319
  )
28320
28320
  ] })
28321
28321
  ] });
28322
- }, nk = wr(() => Promise.resolve().then(() => z_)), $m = ({
28322
+ }, nk = wr(() => Promise.resolve().then(() => z_)), Rm = ({
28323
28323
  isCard: e = !1,
28324
28324
  form: t,
28325
28325
  parentId: n,
@@ -28363,7 +28363,7 @@ const X_ = wr(
28363
28363
  id: `add-post-${p.id || ""}`
28364
28364
  };
28365
28365
  return e ? /* @__PURE__ */ c.jsx(tk, { form: v }) : /* @__PURE__ */ c.jsx(nk, { ...v });
28366
- }, Rm = ({ form: e }) => {
28366
+ }, $m = ({ form: e }) => {
28367
28367
  const t = Ne(ut), n = ce(), [r, i] = se(!1), a = () => {
28368
28368
  Ph(t) || i(!0);
28369
28369
  };
@@ -28626,7 +28626,7 @@ const CA = ({
28626
28626
  categories: v,
28627
28627
  locale: f = Eo
28628
28628
  }) => {
28629
- var z, F, S, $, O, q, J, U, ee, me, Q, ye;
28629
+ var z, F, S, R, O, q, J, U, ee, me, Q, ye;
28630
28630
  const b = ce(), g = {
28631
28631
  ...s,
28632
28632
  ...h
@@ -28685,7 +28685,7 @@ const CA = ({
28685
28685
  slug: n,
28686
28686
  author: ci(Z),
28687
28687
  userLiked: ie,
28688
- likes: (($ = y == null ? void 0 : y.reaction_counts) == null ? void 0 : $.like) || 0,
28688
+ likes: ((R = y == null ? void 0 : y.reaction_counts) == null ? void 0 : R.like) || 0,
28689
28689
  comments: (y == null ? void 0 : y.total_replies) || 0,
28690
28690
  peopleWhoLiked: D,
28691
28691
  data: {
@@ -30188,7 +30188,7 @@ const jk = ({
30188
30188
  a ? /* @__PURE__ */ c.jsx("span", { className: "additional", children: a }) : null
30189
30189
  ] });
30190
30190
  };
30191
- const $A = ({
30191
+ const RA = ({
30192
30192
  course: {
30193
30193
  articles: e,
30194
30194
  canAccessCourse: t,
@@ -30295,7 +30295,7 @@ const $A = ({
30295
30295
  }
30296
30296
  );
30297
30297
  };
30298
- const RA = ({
30298
+ const $A = ({
30299
30299
  isComplete: e = !1,
30300
30300
  onClick: t,
30301
30301
  ...n
@@ -30372,10 +30372,10 @@ const RA = ({
30372
30372
  contributors: ["community"]
30373
30373
  }
30374
30374
  ];
30375
- const $i = "notFoundError_", LA = () => {
30375
+ const Ri = "notFoundError_", LA = () => {
30376
30376
  const e = ce(), t = [];
30377
30377
  return ad.forEach((n, r) => {
30378
- n.title = e.formatMessage({ id: `${$i}post_${r + 1}` }), t.push("solutionArticle");
30378
+ n.title = e.formatMessage({ id: `${Ri}post_${r + 1}` }), t.push("solutionArticle");
30379
30379
  }), /* @__PURE__ */ c.jsxs(
30380
30380
  P_,
30381
30381
  {
@@ -30392,27 +30392,27 @@ const $i = "notFoundError_", LA = () => {
30392
30392
  })
30393
30393
  }
30394
30394
  ),
30395
- /* @__PURE__ */ c.jsx(Ce, { href: "/solution-articles/", children: e.formatMessage({ id: `${$i}cta` }) })
30395
+ /* @__PURE__ */ c.jsx(Ce, { href: "/solution-articles/", children: e.formatMessage({ id: `${Ri}cta` }) })
30396
30396
  ] })
30397
30397
  },
30398
30398
  reportError: () => {
30399
30399
  },
30400
30400
  className: "not-found-error",
30401
30401
  children: [
30402
- /* @__PURE__ */ c.jsx("h1", { children: e.formatMessage({ id: `${$i}title` }) }),
30403
- /* @__PURE__ */ c.jsx("p", { children: e.formatMessage({ id: `${$i}text` }) })
30402
+ /* @__PURE__ */ c.jsx("h1", { children: e.formatMessage({ id: `${Ri}title` }) }),
30403
+ /* @__PURE__ */ c.jsx("p", { children: e.formatMessage({ id: `${Ri}text` }) })
30404
30404
  ]
30405
30405
  }
30406
30406
  );
30407
30407
  };
30408
30408
  export {
30409
- dn as ASSETS_BUCKET,
30409
+ dn as ASSETS_URL,
30410
30410
  Ev as ActionBar,
30411
30411
  na as ActionButton,
30412
30412
  aA as ActivitiesFeed,
30413
30413
  CA as ActivitySection,
30414
30414
  ui as ActivityType,
30415
- $m as AddPost,
30415
+ Rm as AddPost,
30416
30416
  dp as Badge,
30417
30417
  yt as BadgeScope,
30418
30418
  fp as Badges,
@@ -30444,7 +30444,7 @@ export {
30444
30444
  il as ConversationContext,
30445
30445
  T_ as CookieBanner,
30446
30446
  MA as CourseProgression,
30447
- $A as CourseStructure,
30447
+ RA as CourseStructure,
30448
30448
  SA as CustomContentBanner,
30449
30449
  dt as CustomEvents,
30450
30450
  Zi as DELETED_USER_ID,
@@ -30503,12 +30503,12 @@ export {
30503
30503
  yA as LogoSection,
30504
30504
  N_ as MEMBERS_PER_PAGE,
30505
30505
  wh as MENTION_REGEX,
30506
- RA as MarkCompleteButton,
30506
+ $A as MarkCompleteButton,
30507
30507
  hr as MarkdownText,
30508
30508
  PA as MarketingBlock,
30509
30509
  ln as Marks,
30510
30510
  _n as Member,
30511
- $_ as MembersList,
30511
+ R_ as MembersList,
30512
30512
  Td as Modal,
30513
30513
  Is as MoreMenu,
30514
30514
  Gk as NUMBER_OF_COUNTRIES,
@@ -30526,12 +30526,12 @@ export {
30526
30526
  Hv as PasswordRules,
30527
30527
  cn as Pill,
30528
30528
  Y_ as Poll,
30529
- $h as Popover,
30529
+ Rh as Popover,
30530
30530
  li as Portal,
30531
30531
  x_ as ProfileForm,
30532
30532
  g_ as ProfileImageChange,
30533
30533
  al as ProfileModal,
30534
- Rm as ProfileModalLauncher,
30534
+ $m as ProfileModalLauncher,
30535
30535
  Fn as ProfilePicture,
30536
30536
  kd as ProgressBar,
30537
30537
  Xk as ProgressTracker,