@project-sunbird/sunbird-questionset-editor-web-component-react 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var Hd = Object.defineProperty;
2
- var za = (e) => {
2
+ var Ua = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var Vd = (e, t, n) => t in e ? Hd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var Ua = (e, t, n) => Vd(e, typeof t != "symbol" ? t + "" : t, n), Bs = (e, t, n) => t.has(e) || za("Cannot " + n);
7
- var T = (e, t, n) => (Bs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), se = (e, t, n) => t.has(e) ? za("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Q = (e, t, n, r) => (Bs(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), pe = (e, t, n) => (Bs(e, t, "access private method"), n);
6
+ var Ba = (e, t, n) => Vd(e, typeof t != "symbol" ? t + "" : t, n), Bs = (e, t, n) => t.has(e) || Ua("Cannot " + n);
7
+ var T = (e, t, n) => (Bs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), se = (e, t, n) => t.has(e) ? Ua("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Q = (e, t, n, r) => (Bs(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), pe = (e, t, n) => (Bs(e, t, "access private method"), n);
8
8
  var $i = (e, t, n, r) => ({
9
9
  set _(i) {
10
10
  Q(e, t, i, n);
@@ -15,7 +15,7 @@ var $i = (e, t, n, r) => ({
15
15
  });
16
16
  import { jsx as l, jsxs as E, Fragment as st } from "react/jsx-runtime";
17
17
  import * as Ee from "react";
18
- import fe, { useRef as Ge, useCallback as xe, useEffect as Ae, useState as ue, createContext as Qd, createElement as ss, forwardRef as Dc, useContext as Wd, useMemo as pr, Suspense as os, lazy as ws, Component as Gd } from "react";
18
+ import fe, { useRef as Ge, useCallback as xe, useEffect as Ae, useState as ue, createContext as Qd, createElement as ss, forwardRef as Nc, useContext as Wd, useMemo as pr, Suspense as os, lazy as ws, Component as Gd } from "react";
19
19
  import { createPortal as _n } from "react-dom";
20
20
  import Kd from "react-dom/client";
21
21
  var Gr = class {
@@ -34,7 +34,7 @@ var Gr = class {
34
34
  }
35
35
  onUnsubscribe() {
36
36
  }
37
- }, rr, Mn, kr, vc, Yd = (vc = class extends Gr {
37
+ }, rr, Mn, kr, wc, Yd = (wc = class extends Gr {
38
38
  constructor() {
39
39
  super();
40
40
  se(this, rr);
@@ -75,7 +75,7 @@ var Gr = class {
75
75
  var t;
76
76
  return typeof T(this, rr) == "boolean" ? T(this, rr) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
77
77
  }
78
- }, rr = new WeakMap(), Mn = new WeakMap(), kr = new WeakMap(), vc), Zo = new Yd(), Xd = {
78
+ }, rr = new WeakMap(), Mn = new WeakMap(), kr = new WeakMap(), wc), ea = new Yd(), Xd = {
79
79
  // We need the wrapper function syntax below instead of direct references to
80
80
  // global setTimeout etc.
81
81
  //
@@ -90,7 +90,7 @@ var Gr = class {
90
90
  clearTimeout: (e) => clearTimeout(e),
91
91
  setInterval: (e, t) => setInterval(e, t),
92
92
  clearInterval: (e) => clearInterval(e)
93
- }, qn, Jo, wc, Jd = (wc = class {
93
+ }, qn, Zo, _c, Jd = (_c = class {
94
94
  constructor() {
95
95
  // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
96
96
  // type at app boot; and if we leave that type, then any new timer provider
@@ -100,7 +100,7 @@ var Gr = class {
100
100
  // We settle for type safety for the TimeoutProvider type, and accept that
101
101
  // this class is unsafe internally to allow for extension.
102
102
  se(this, qn, Xd);
103
- se(this, Jo, !1);
103
+ se(this, Zo, !1);
104
104
  }
105
105
  setTimeoutProvider(e) {
106
106
  Q(this, qn, e);
@@ -117,7 +117,7 @@ var Gr = class {
117
117
  clearInterval(e) {
118
118
  T(this, qn).clearInterval(e);
119
119
  }
120
- }, qn = new WeakMap(), Jo = new WeakMap(), wc), er = new Jd();
120
+ }, qn = new WeakMap(), Zo = new WeakMap(), _c), er = new Jd();
121
121
  function Zd(e) {
122
122
  setTimeout(e, 0);
123
123
  }
@@ -130,7 +130,7 @@ function th(e, t) {
130
130
  function oo(e) {
131
131
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
132
132
  }
133
- function Nc(e, t) {
133
+ function Oc(e, t) {
134
134
  return Math.max(e + (t || 0) - Date.now(), 0);
135
135
  }
136
136
  function Hn(e, t) {
@@ -139,7 +139,7 @@ function Hn(e, t) {
139
139
  function Ft(e, t) {
140
140
  return typeof e == "function" ? e(t) : e;
141
141
  }
142
- function Ba(e, t) {
142
+ function ja(e, t) {
143
143
  const {
144
144
  type: n = "all",
145
145
  exact: r,
@@ -150,7 +150,7 @@ function Ba(e, t) {
150
150
  } = e;
151
151
  if (o) {
152
152
  if (r) {
153
- if (t.queryHash !== ea(o, t.options))
153
+ if (t.queryHash !== ta(o, t.options))
154
154
  return !1;
155
155
  } else if (!pi(t.queryKey, o))
156
156
  return !1;
@@ -162,7 +162,7 @@ function Ba(e, t) {
162
162
  }
163
163
  return !(typeof a == "boolean" && t.isStale() !== a || i && i !== t.state.fetchStatus || s && !s(t));
164
164
  }
165
- function ja(e, t) {
165
+ function $a(e, t) {
166
166
  const { exact: n, status: r, predicate: i, mutationKey: s } = e;
167
167
  if (s) {
168
168
  if (!t.options.mutationKey)
@@ -175,7 +175,7 @@ function ja(e, t) {
175
175
  }
176
176
  return !(r && t.state.status !== r || i && !i(t));
177
177
  }
178
- function ea(e, t) {
178
+ function ta(e, t) {
179
179
  return ((t == null ? void 0 : t.queryKeyHashFn) || fi)(e);
180
180
  }
181
181
  function fi(e) {
@@ -188,11 +188,11 @@ function pi(e, t) {
188
188
  return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => pi(e[n], t[n])) : !1;
189
189
  }
190
190
  var nh = Object.prototype.hasOwnProperty;
191
- function ta(e, t, n = 0) {
191
+ function na(e, t, n = 0) {
192
192
  if (e === t)
193
193
  return e;
194
194
  if (n > 500) return t;
195
- const r = $a(e) && $a(t);
195
+ const r = Ha(e) && Ha(t);
196
196
  if (!r && !(ao(e) && ao(t))) return t;
197
197
  const s = (r ? e : Object.keys(e)).length, o = r ? t : Object.keys(t), a = o.length, u = r ? new Array(a) : {};
198
198
  let h = 0;
@@ -206,7 +206,7 @@ function ta(e, t, n = 0) {
206
206
  u[d] = p;
207
207
  continue;
208
208
  }
209
- const v = ta(y, p, n + 1);
209
+ const v = na(y, p, n + 1);
210
210
  u[d] = v, v === y && h++;
211
211
  }
212
212
  return s === a && h === s ? e : u;
@@ -219,19 +219,19 @@ function as(e, t) {
219
219
  return !1;
220
220
  return !0;
221
221
  }
222
- function $a(e) {
222
+ function Ha(e) {
223
223
  return Array.isArray(e) && e.length === Object.keys(e).length;
224
224
  }
225
225
  function ao(e) {
226
- if (!Ha(e))
226
+ if (!Va(e))
227
227
  return !1;
228
228
  const t = e.constructor;
229
229
  if (t === void 0)
230
230
  return !0;
231
231
  const n = t.prototype;
232
- return !(!Ha(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
232
+ return !(!Va(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
233
233
  }
234
- function Ha(e) {
234
+ function Va(e) {
235
235
  return Object.prototype.toString.call(e) === "[object Object]";
236
236
  }
237
237
  function rh(e) {
@@ -240,7 +240,7 @@ function rh(e) {
240
240
  });
241
241
  }
242
242
  function lo(e, t, n) {
243
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? ta(e, t) : t;
243
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? na(e, t) : t;
244
244
  }
245
245
  function ih(e, t, n = 0) {
246
246
  const r = [...e, t];
@@ -250,11 +250,11 @@ function sh(e, t, n = 0) {
250
250
  const r = [t, ...e];
251
251
  return n && r.length > n ? r.slice(0, -1) : r;
252
252
  }
253
- var na = /* @__PURE__ */ Symbol();
254
- function Oc(e, t) {
255
- return !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === na ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
256
- }
253
+ var ra = /* @__PURE__ */ Symbol();
257
254
  function Lc(e, t) {
255
+ return !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === ra ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
256
+ }
257
+ function Pc(e, t) {
258
258
  return typeof e == "function" ? e(...t) : !!e;
259
259
  }
260
260
  function oh(e, t, n) {
@@ -363,7 +363,7 @@ function lh() {
363
363
  }
364
364
  };
365
365
  }
366
- var rt = lh(), Rr, In, Dr, _c, ch = (_c = class extends Gr {
366
+ var rt = lh(), Rr, In, Dr, Sc, ch = (Sc = class extends Gr {
367
367
  constructor() {
368
368
  super();
369
369
  se(this, Rr, !0);
@@ -397,11 +397,11 @@ var rt = lh(), Rr, In, Dr, _c, ch = (_c = class extends Gr {
397
397
  isOnline() {
398
398
  return T(this, Rr);
399
399
  }
400
- }, Rr = new WeakMap(), In = new WeakMap(), Dr = new WeakMap(), _c), ls = new ch();
400
+ }, Rr = new WeakMap(), In = new WeakMap(), Dr = new WeakMap(), Sc), ls = new ch();
401
401
  function uh(e) {
402
402
  return Math.min(1e3 * 2 ** e, 3e4);
403
403
  }
404
- function Pc(e) {
404
+ function Mc(e) {
405
405
  return (e ?? "online") === "online" ? ls.isOnline() : !0;
406
406
  }
407
407
  var uo = class extends Error {
@@ -409,7 +409,7 @@ var uo = class extends Error {
409
409
  super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
410
410
  }
411
411
  };
412
- function Mc(e) {
412
+ function qc(e) {
413
413
  let t = !1, n = 0, r;
414
414
  const i = co(), s = () => i.status !== "pending", o = (b) => {
415
415
  var m;
@@ -421,7 +421,7 @@ function Mc(e) {
421
421
  t = !0;
422
422
  }, u = () => {
423
423
  t = !1;
424
- }, h = () => Zo.isFocused() && (e.networkMode === "always" || ls.isOnline()) && e.canRun(), c = () => Pc(e.networkMode) && e.canRun(), d = (b) => {
424
+ }, h = () => ea.isFocused() && (e.networkMode === "always" || ls.isOnline()) && e.canRun(), c = () => Mc(e.networkMode) && e.canRun(), d = (b) => {
425
425
  s() || (r == null || r(), i.resolve(b));
426
426
  }, y = (b) => {
427
427
  s() || (r == null || r(), i.reject(b));
@@ -468,7 +468,7 @@ function Mc(e) {
468
468
  start: () => (c() ? v() : p().then(v), i)
469
469
  };
470
470
  }
471
- var ir, Sc, qc = (Sc = class {
471
+ var ir, xc, Ic = (xc = class {
472
472
  constructor() {
473
473
  se(this, ir);
474
474
  }
@@ -489,7 +489,7 @@ var ir, Sc, qc = (Sc = class {
489
489
  clearGcTimeout() {
490
490
  T(this, ir) !== void 0 && (er.clearTimeout(T(this, ir)), Q(this, ir, void 0));
491
491
  }
492
- }, ir = new WeakMap(), Sc);
492
+ }, ir = new WeakMap(), xc);
493
493
  function dh(e) {
494
494
  return {
495
495
  onFetch: (t, n) => {
@@ -504,7 +504,7 @@ function dh(e) {
504
504
  () => t.signal,
505
505
  () => b = !0
506
506
  );
507
- }, f = Oc(t.options, t.fetchOptions), g = async (S, w, C) => {
507
+ }, f = Lc(t.options, t.fetchOptions), g = async (S, w, C) => {
508
508
  if (b)
509
509
  return Promise.reject(t.signal.reason);
510
510
  if (w == null && S.pages.length)
@@ -525,7 +525,7 @@ function dh(e) {
525
525
  };
526
526
  };
527
527
  if (i && s.length) {
528
- const S = i === "backward", w = S ? hh : Va, C = {
528
+ const S = i === "backward", w = S ? hh : Qa, C = {
529
529
  pages: s,
530
530
  pageParams: o
531
531
  }, D = w(r, C);
@@ -533,7 +533,7 @@ function dh(e) {
533
533
  } else {
534
534
  const S = e ?? s.length;
535
535
  do {
536
- const w = u === 0 ? o[0] ?? r.initialPageParam : Va(r, a);
536
+ const w = u === 0 ? o[0] ?? r.initialPageParam : Qa(r, a);
537
537
  if (u > 0 && w == null)
538
538
  break;
539
539
  a = await g(a, w), u++;
@@ -558,7 +558,7 @@ function dh(e) {
558
558
  }
559
559
  };
560
560
  }
561
- function Va(e, { pages: t, pageParams: n }) {
561
+ function Qa(e, { pages: t, pageParams: n }) {
562
562
  const r = t.length - 1;
563
563
  return t.length > 0 ? e.getNextPageParam(
564
564
  t[r],
@@ -571,7 +571,7 @@ function hh(e, { pages: t, pageParams: n }) {
571
571
  var r;
572
572
  return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
573
573
  }
574
- var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc {
574
+ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Fc, bn, Cc, fh = (Cc = class extends Ic {
575
575
  constructor(t) {
576
576
  super();
577
577
  se(this, It);
@@ -583,7 +583,7 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
583
583
  se(this, ut);
584
584
  se(this, vi);
585
585
  se(this, ar);
586
- Q(this, ar, !1), Q(this, vi, t.defaultOptions), this.setOptions(t.options), this.observers = [], Q(this, or, t.client), Q(this, Vt, T(this, or).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, Q(this, sr, Wa(this.options)), this.state = t.state ?? T(this, sr), this.scheduleGc();
586
+ Q(this, ar, !1), Q(this, vi, t.defaultOptions), this.setOptions(t.options), this.observers = [], Q(this, or, t.client), Q(this, Vt, T(this, or).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, Q(this, sr, Ga(this.options)), this.state = t.state ?? T(this, sr), this.scheduleGc();
587
587
  }
588
588
  get meta() {
589
589
  return this.options.meta;
@@ -597,9 +597,9 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
597
597
  }
598
598
  setOptions(t) {
599
599
  if (this.options = { ...T(this, vi), ...t }, t != null && t._type && Q(this, Nr, t._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
600
- const n = Wa(this.options);
600
+ const n = Ga(this.options);
601
601
  n.data !== void 0 && (this.setState(
602
- Qa(n.data, n.dataUpdatedAt)
602
+ Wa(n.data, n.dataUpdatedAt)
603
603
  ), Q(this, sr, n));
604
604
  }
605
605
  }
@@ -638,7 +638,7 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
638
638
  );
639
639
  }
640
640
  isDisabled() {
641
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === na || !this.isFetched();
641
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ra || !this.isFetched();
642
642
  }
643
643
  isFetched() {
644
644
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
@@ -654,7 +654,7 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
654
654
  ) : this.state.data === void 0 || this.state.isInvalidated;
655
655
  }
656
656
  isStaleByTime(t = 0) {
657
- return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !Nc(this.state.dataUpdatedAt, t);
657
+ return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !Oc(this.state.dataUpdatedAt, t);
658
658
  }
659
659
  onFocus() {
660
660
  var n;
@@ -670,7 +670,7 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
670
670
  this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), T(this, Vt).notify({ type: "observerAdded", query: this, observer: t }));
671
671
  }
672
672
  removeObserver(t) {
673
- this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (T(this, ut) && (T(this, ar) || pe(this, It, Ic).call(this) ? T(this, ut).cancel({ revert: !0 }) : T(this, ut).cancelRetry()), this.scheduleGc()), T(this, Vt).notify({ type: "observerRemoved", query: this, observer: t }));
673
+ this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (T(this, ut) && (T(this, ar) || pe(this, It, Fc).call(this) ? T(this, ut).cancel({ revert: !0 }) : T(this, ut).cancelRetry()), this.scheduleGc()), T(this, Vt).notify({ type: "observerRemoved", query: this, observer: t }));
674
674
  }
675
675
  getObserversCount() {
676
676
  return this.observers.length;
@@ -699,7 +699,7 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
699
699
  get: () => (Q(this, ar, !0), r.signal)
700
700
  });
701
701
  }, s = () => {
702
- const w = Oc(this.options, n), D = (() => {
702
+ const w = Lc(this.options, n), D = (() => {
703
703
  const O = {
704
704
  client: T(this, or),
705
705
  queryKey: this.queryKey,
@@ -725,7 +725,7 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
725
725
  })(), u = T(this, Nr) === "infinite" ? dh(
726
726
  this.options.pages
727
727
  ) : this.options.behavior;
728
- u == null || u.onFetch(a, this), Q(this, Or, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((c = a.fetchOptions) == null ? void 0 : c.meta)) && pe(this, It, bn).call(this, { type: "fetch", meta: (d = a.fetchOptions) == null ? void 0 : d.meta }), Q(this, ut, Mc({
728
+ u == null || u.onFetch(a, this), Q(this, Or, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((c = a.fetchOptions) == null ? void 0 : c.meta)) && pe(this, It, bn).call(this, { type: "fetch", meta: (d = a.fetchOptions) == null ? void 0 : d.meta }), Q(this, ut, qc({
729
729
  initialPromise: n == null ? void 0 : n.initialPromise,
730
730
  fn: a.fetchFn,
731
731
  onCancel: (w) => {
@@ -785,7 +785,7 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
785
785
  this.scheduleGc();
786
786
  }
787
787
  }
788
- }, Nr = new WeakMap(), sr = new WeakMap(), Or = new WeakMap(), Vt = new WeakMap(), or = new WeakMap(), ut = new WeakMap(), vi = new WeakMap(), ar = new WeakMap(), It = new WeakSet(), Ic = function() {
788
+ }, Nr = new WeakMap(), sr = new WeakMap(), Or = new WeakMap(), Vt = new WeakMap(), or = new WeakMap(), ut = new WeakMap(), vi = new WeakMap(), ar = new WeakMap(), It = new WeakSet(), Fc = function() {
789
789
  return this.state.fetchStatus === "paused" && this.state.status === "pending";
790
790
  }, bn = function(t) {
791
791
  const n = (r) => {
@@ -809,13 +809,13 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
809
809
  case "fetch":
810
810
  return {
811
811
  ...r,
812
- ...Fc(r.data, this.options),
812
+ ...zc(r.data, this.options),
813
813
  fetchMeta: t.meta ?? null
814
814
  };
815
815
  case "success":
816
816
  const i = {
817
817
  ...r,
818
- ...Qa(t.data, t.dataUpdatedAt),
818
+ ...Wa(t.data, t.dataUpdatedAt),
819
819
  dataUpdateCount: r.dataUpdateCount + 1,
820
820
  ...!t.manual && {
821
821
  fetchStatus: "idle",
@@ -856,19 +856,19 @@ var Nr, sr, Or, Vt, or, ut, vi, ar, It, Ic, bn, xc, fh = (xc = class extends qc
856
856
  r.onQueryUpdate();
857
857
  }), T(this, Vt).notify({ query: this, type: "updated", action: t });
858
858
  });
859
- }, xc);
860
- function Fc(e, t) {
859
+ }, Cc);
860
+ function zc(e, t) {
861
861
  return {
862
862
  fetchFailureCount: 0,
863
863
  fetchFailureReason: null,
864
- fetchStatus: Pc(t.networkMode) ? "fetching" : "paused",
864
+ fetchStatus: Mc(t.networkMode) ? "fetching" : "paused",
865
865
  ...e === void 0 && {
866
866
  error: null,
867
867
  status: "pending"
868
868
  }
869
869
  };
870
870
  }
871
- function Qa(e, t) {
871
+ function Wa(e, t) {
872
872
  return {
873
873
  data: e,
874
874
  dataUpdatedAt: t ?? Date.now(),
@@ -877,7 +877,7 @@ function Qa(e, t) {
877
877
  status: "success"
878
878
  };
879
879
  }
880
- function Wa(e) {
880
+ function Ga(e) {
881
881
  const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
882
882
  return {
883
883
  data: t,
@@ -894,7 +894,7 @@ function Wa(e) {
894
894
  fetchStatus: "idle"
895
895
  };
896
896
  }
897
- var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo, po, mo, go, bo, yo, zc, Cc, ra = (Cc = class extends Gr {
897
+ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo, po, mo, go, bo, yo, Uc, Tc, ia = (Tc = class extends Gr {
898
898
  constructor(t, n) {
899
899
  super();
900
900
  se(this, Ne);
@@ -921,7 +921,7 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
921
921
  this.refetch = this.refetch.bind(this);
922
922
  }
923
923
  onSubscribe() {
924
- this.listeners.size === 1 && (T(this, Te).addObserver(this), Ga(T(this, Te), this.options) ? pe(this, Ne, oi).call(this) : this.updateResult(), pe(this, Ne, mo).call(this));
924
+ this.listeners.size === 1 && (T(this, Te).addObserver(this), Ka(T(this, Te), this.options) ? pe(this, Ne, oi).call(this) : this.updateResult(), pe(this, Ne, mo).call(this));
925
925
  }
926
926
  onUnsubscribe() {
927
927
  this.hasListeners() || this.destroy();
@@ -955,7 +955,7 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
955
955
  observer: this
956
956
  });
957
957
  const i = this.hasListeners();
958
- i && Ka(
958
+ i && Ya(
959
959
  T(this, Te),
960
960
  r,
961
961
  this.options,
@@ -1006,10 +1006,10 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
1006
1006
  const r = T(this, Te), i = this.options, s = T(this, Et), o = T(this, lr), a = T(this, Lr), h = t !== r ? t.state : T(this, wi), { state: c } = t;
1007
1007
  let d = { ...c }, y = !1, p;
1008
1008
  if (n._optimisticResults) {
1009
- const V = this.hasListeners(), j = !V && Ga(t, n), z = V && Ka(t, r, n, i);
1009
+ const V = this.hasListeners(), j = !V && Ka(t, n), z = V && Ya(t, r, n, i);
1010
1010
  (j || z) && (d = {
1011
1011
  ...d,
1012
- ...Fc(c.data, t.options)
1012
+ ...zc(c.data, t.options)
1013
1013
  }), n._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
1014
1014
  }
1015
1015
  let { error: v, errorUpdatedAt: b, status: m } = d;
@@ -1059,7 +1059,7 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
1059
1059
  isPaused: d.fetchStatus === "paused",
1060
1060
  isPlaceholderData: y,
1061
1061
  isRefetchError: w && D,
1062
- isStale: ia(t, n),
1062
+ isStale: sa(t, n),
1063
1063
  refetch: this.refetch,
1064
1064
  promise: T(this, yn),
1065
1065
  isEnabled: Ft(n.enabled, t) !== !1
@@ -1104,7 +1104,7 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
1104
1104
  return T(this, Et)[u] !== t[u] && o.has(u);
1105
1105
  });
1106
1106
  };
1107
- pe(this, Ne, zc).call(this, { listeners: r() });
1107
+ pe(this, Ne, Uc).call(this, { listeners: r() });
1108
1108
  }
1109
1109
  onQueryUpdate() {
1110
1110
  this.updateResult(), this.hasListeners() && pe(this, Ne, mo).call(this);
@@ -1124,7 +1124,7 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
1124
1124
  );
1125
1125
  if (mi.isServer() || T(this, Et).isStale || !oo(t))
1126
1126
  return;
1127
- const r = Nc(T(this, Et).dataUpdatedAt, t) + 1;
1127
+ const r = Oc(T(this, Et).dataUpdatedAt, t) + 1;
1128
1128
  Q(this, cr, er.setTimeout(() => {
1129
1129
  T(this, Et).isStale || this.updateResult();
1130
1130
  }, r));
@@ -1132,7 +1132,7 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
1132
1132
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(T(this, Te)) : this.options.refetchInterval) ?? !1;
1133
1133
  }, po = function(t) {
1134
1134
  pe(this, Ne, bo).call(this), Q(this, zn, t), !(mi.isServer() || Ft(this.options.enabled, T(this, Te)) === !1 || !oo(T(this, zn)) || T(this, zn) === 0) && Q(this, ur, er.setInterval(() => {
1135
- (this.options.refetchIntervalInBackground || Zo.isFocused()) && pe(this, Ne, oi).call(this);
1135
+ (this.options.refetchIntervalInBackground || ea.isFocused()) && pe(this, Ne, oi).call(this);
1136
1136
  }, T(this, zn)));
1137
1137
  }, mo = function() {
1138
1138
  pe(this, Ne, ho).call(this), pe(this, Ne, po).call(this, pe(this, Ne, fo).call(this));
@@ -1146,7 +1146,7 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
1146
1146
  return;
1147
1147
  const n = T(this, Te);
1148
1148
  Q(this, Te, t), Q(this, wi, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
1149
- }, zc = function(t) {
1149
+ }, Uc = function(t) {
1150
1150
  rt.batch(() => {
1151
1151
  t.listeners && this.listeners.forEach((n) => {
1152
1152
  n(T(this, Et));
@@ -1155,30 +1155,30 @@ var Dt, Te, wi, Et, lr, Lr, yn, Fn, _i, Pr, Mr, cr, ur, zn, qr, Ne, oi, ho, fo,
1155
1155
  type: "observerResultsUpdated"
1156
1156
  });
1157
1157
  });
1158
- }, Cc);
1158
+ }, Tc);
1159
1159
  function ph(e, t) {
1160
1160
  return Ft(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && Ft(t.retryOnMount, e) === !1);
1161
1161
  }
1162
- function Ga(e, t) {
1162
+ function Ka(e, t) {
1163
1163
  return ph(e, t) || e.state.data !== void 0 && vo(e, t, t.refetchOnMount);
1164
1164
  }
1165
1165
  function vo(e, t, n) {
1166
1166
  if (Ft(t.enabled, e) !== !1 && Hn(t.staleTime, e) !== "static") {
1167
1167
  const r = typeof n == "function" ? n(e) : n;
1168
- return r === "always" || r !== !1 && ia(e, t);
1168
+ return r === "always" || r !== !1 && sa(e, t);
1169
1169
  }
1170
1170
  return !1;
1171
1171
  }
1172
- function Ka(e, t, n, r) {
1173
- return (e !== t || Ft(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && ia(e, n);
1172
+ function Ya(e, t, n, r) {
1173
+ return (e !== t || Ft(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && sa(e, n);
1174
1174
  }
1175
- function ia(e, t) {
1175
+ function sa(e, t) {
1176
1176
  return Ft(t.enabled, e) !== !1 && e.isStaleByTime(Hn(t.staleTime, e));
1177
1177
  }
1178
1178
  function mh(e, t) {
1179
1179
  return !as(e.getCurrentResult(), t);
1180
1180
  }
1181
- var Si, ln, wt, dr, cn, Dn, Tc, gh = (Tc = class extends qc {
1181
+ var Si, ln, wt, dr, cn, Dn, Ec, gh = (Ec = class extends Ic {
1182
1182
  constructor(t) {
1183
1183
  super();
1184
1184
  se(this, cn);
@@ -1225,7 +1225,7 @@ var Si, ln, wt, dr, cn, Dn, Tc, gh = (Tc = class extends qc {
1225
1225
  meta: this.options.meta,
1226
1226
  mutationKey: this.options.mutationKey
1227
1227
  };
1228
- Q(this, dr, Mc({
1228
+ Q(this, dr, qc({
1229
1229
  fn: () => this.options.mutationFn ? this.options.mutationFn(t, r) : Promise.reject(new Error("No mutationFn found")),
1230
1230
  onFail: (q, I) => {
1231
1231
  pe(this, cn, Dn).call(this, { type: "failed", failureCount: q, error: I });
@@ -1408,7 +1408,7 @@ var Si, ln, wt, dr, cn, Dn, Tc, gh = (Tc = class extends qc {
1408
1408
  action: t
1409
1409
  });
1410
1410
  });
1411
- }, Tc);
1411
+ }, Ec);
1412
1412
  function bh() {
1413
1413
  return {
1414
1414
  context: void 0,
@@ -1422,7 +1422,7 @@ function bh() {
1422
1422
  submittedAt: 0
1423
1423
  };
1424
1424
  }
1425
- var vn, Zt, xi, Ec, yh = (Ec = class extends Gr {
1425
+ var vn, Zt, xi, Ac, yh = (Ac = class extends Gr {
1426
1426
  constructor(t = {}) {
1427
1427
  super();
1428
1428
  se(this, vn);
@@ -1495,11 +1495,11 @@ var vn, Zt, xi, Ec, yh = (Ec = class extends Gr {
1495
1495
  find(t) {
1496
1496
  const n = { exact: !0, ...t };
1497
1497
  return this.getAll().find(
1498
- (r) => ja(n, r)
1498
+ (r) => $a(n, r)
1499
1499
  );
1500
1500
  }
1501
1501
  findAll(t = {}) {
1502
- return this.getAll().filter((n) => ja(t, n));
1502
+ return this.getAll().filter((n) => $a(t, n));
1503
1503
  }
1504
1504
  notify(t) {
1505
1505
  rt.batch(() => {
@@ -1516,12 +1516,12 @@ var vn, Zt, xi, Ec, yh = (Ec = class extends Gr {
1516
1516
  )
1517
1517
  );
1518
1518
  }
1519
- }, vn = new WeakMap(), Zt = new WeakMap(), xi = new WeakMap(), Ec);
1519
+ }, vn = new WeakMap(), Zt = new WeakMap(), xi = new WeakMap(), Ac);
1520
1520
  function Hi(e) {
1521
1521
  var t;
1522
1522
  return (t = e.options.scope) == null ? void 0 : t.id;
1523
1523
  }
1524
- function Ya(e, t) {
1524
+ function Xa(e, t) {
1525
1525
  const n = new Set(t);
1526
1526
  return e.filter((r) => !n.has(r));
1527
1527
  }
@@ -1529,7 +1529,7 @@ function vh(e, t, n) {
1529
1529
  const r = e.slice(0);
1530
1530
  return r[t] = n, r;
1531
1531
  }
1532
- var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh = (Ac = class extends Gr {
1532
+ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Bc, So, xo, Co, kc, wh = (kc = class extends Gr {
1533
1533
  constructor(t, n, r) {
1534
1534
  super();
1535
1535
  se(this, at);
@@ -1574,9 +1574,9 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1574
1574
  const p = T(this, Nt)[y];
1575
1575
  return !p || !as(d, p);
1576
1576
  });
1577
- !h && !c || (h && (Q(this, Ai, i), Q(this, qt, s)), Q(this, Nt, o), this.hasListeners() && (h && (Ya(r, s).forEach((d) => {
1577
+ !h && !c || (h && (Q(this, Ai, i), Q(this, qt, s)), Q(this, Nt, o), this.hasListeners() && (h && (Xa(r, s).forEach((d) => {
1578
1578
  d.destroy();
1579
- }), Ya(s, r).forEach((d) => {
1579
+ }), Xa(s, r).forEach((d) => {
1580
1580
  d.subscribe((y) => {
1581
1581
  pe(this, at, xo).call(this, d, y);
1582
1582
  });
@@ -1616,13 +1616,13 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1616
1616
  }, _o = function(t, n, r) {
1617
1617
  if (n) {
1618
1618
  const i = T(this, Ei), s = r !== void 0 && i !== void 0 && (i.length !== r.length || r.some((o, a) => o !== i[a]));
1619
- return (!T(this, Un) || T(this, Nt) !== T(this, Ti) || s || n !== T(this, Ci)) && (Q(this, Ci, n), Q(this, Ti, T(this, Nt)), r !== void 0 && Q(this, Ei, r), Q(this, Un, ta(
1619
+ return (!T(this, Un) || T(this, Nt) !== T(this, Ti) || s || n !== T(this, Ci)) && (Q(this, Ci, n), Q(this, Ti, T(this, Nt)), r !== void 0 && Q(this, Ei, r), Q(this, Un, na(
1620
1620
  T(this, Un),
1621
1621
  n(t)
1622
1622
  ))), T(this, Un);
1623
1623
  }
1624
1624
  return t;
1625
- }, Uc = function() {
1625
+ }, Bc = function() {
1626
1626
  var t;
1627
1627
  return ((t = T(this, hr)) == null ? void 0 : t.combine) !== void 0 && T(this, qt).some((n, r) => {
1628
1628
  var i;
@@ -1639,7 +1639,7 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1639
1639
  const r = [];
1640
1640
  return t.forEach((i) => {
1641
1641
  var u;
1642
- const s = T(this, Ir).defaultQueryOptions(i), a = ((u = n.get(s.queryHash)) == null ? void 0 : u.shift()) ?? new ra(T(this, Ir), s);
1642
+ const s = T(this, Ir).defaultQueryOptions(i), a = ((u = n.get(s.queryHash)) == null ? void 0 : u.shift()) ?? new ia(T(this, Ir), s);
1643
1643
  r.push({
1644
1644
  defaultedQueryOptions: s,
1645
1645
  observer: a
@@ -1651,21 +1651,21 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1651
1651
  }, Co = function() {
1652
1652
  var t;
1653
1653
  if (this.hasListeners()) {
1654
- const n = pe(this, at, wo).call(this, T(this, Nt), T(this, Ai)), r = pe(this, at, Uc).call(this), i = T(this, Un), s = r ? i : pe(this, at, _o).call(this, n, (t = T(this, hr)) == null ? void 0 : t.combine);
1654
+ const n = pe(this, at, wo).call(this, T(this, Nt), T(this, Ai)), r = pe(this, at, Bc).call(this), i = T(this, Un), s = r ? i : pe(this, at, _o).call(this, n, (t = T(this, hr)) == null ? void 0 : t.combine);
1655
1655
  (r || i !== s) && rt.batch(() => {
1656
1656
  this.listeners.forEach((o) => {
1657
1657
  o(T(this, Nt));
1658
1658
  });
1659
1659
  });
1660
1660
  }
1661
- }, Ac), un, kc, _h = (kc = class extends Gr {
1661
+ }, kc), un, Rc, _h = (Rc = class extends Gr {
1662
1662
  constructor(t = {}) {
1663
1663
  super();
1664
1664
  se(this, un);
1665
1665
  this.config = t, Q(this, un, /* @__PURE__ */ new Map());
1666
1666
  }
1667
1667
  build(t, n, r) {
1668
- const i = n.queryKey, s = n.queryHash ?? ea(i, n);
1668
+ const i = n.queryKey, s = n.queryHash ?? ta(i, n);
1669
1669
  let o = this.get(s);
1670
1670
  return o || (o = new fh({
1671
1671
  client: t,
@@ -1702,12 +1702,12 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1702
1702
  find(t) {
1703
1703
  const n = { exact: !0, ...t };
1704
1704
  return this.getAll().find(
1705
- (r) => Ba(n, r)
1705
+ (r) => ja(n, r)
1706
1706
  );
1707
1707
  }
1708
1708
  findAll(t = {}) {
1709
1709
  const n = this.getAll();
1710
- return Object.keys(t).length > 0 ? n.filter((r) => Ba(t, r)) : n;
1710
+ return Object.keys(t).length > 0 ? n.filter((r) => ja(t, r)) : n;
1711
1711
  }
1712
1712
  notify(t) {
1713
1713
  rt.batch(() => {
@@ -1730,7 +1730,7 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1730
1730
  });
1731
1731
  });
1732
1732
  }
1733
- }, un = new WeakMap(), kc), We, Bn, jn, zr, Ur, $n, Br, jr, Rc, Sh = (Rc = class {
1733
+ }, un = new WeakMap(), Rc), We, Bn, jn, zr, Ur, $n, Br, jr, Dc, Sh = (Dc = class {
1734
1734
  constructor(e = {}) {
1735
1735
  se(this, We);
1736
1736
  se(this, Bn);
@@ -1743,7 +1743,7 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1743
1743
  Q(this, We, e.queryCache || new _h()), Q(this, Bn, e.mutationCache || new yh()), Q(this, jn, e.defaultOptions || {}), Q(this, zr, /* @__PURE__ */ new Map()), Q(this, Ur, /* @__PURE__ */ new Map()), Q(this, $n, 0);
1744
1744
  }
1745
1745
  mount() {
1746
- $i(this, $n)._++, T(this, $n) === 1 && (Q(this, Br, Zo.subscribe(async (e) => {
1746
+ $i(this, $n)._++, T(this, $n) === 1 && (Q(this, Br, ea.subscribe(async (e) => {
1747
1747
  e && (await this.resumePausedMutations(), T(this, We).onFocus());
1748
1748
  })), Q(this, jr, ls.subscribe(async (e) => {
1749
1749
  e && (await this.resumePausedMutations(), T(this, We).onOnline());
@@ -1920,10 +1920,10 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1920
1920
  ...e,
1921
1921
  _defaulted: !0
1922
1922
  };
1923
- return t.queryHash || (t.queryHash = ea(
1923
+ return t.queryHash || (t.queryHash = ta(
1924
1924
  t.queryKey,
1925
1925
  t
1926
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === na && (t.enabled = !1), t;
1926
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === ra && (t.enabled = !1), t;
1927
1927
  }
1928
1928
  defaultMutationOptions(e) {
1929
1929
  return e != null && e._defaulted ? e : {
@@ -1936,10 +1936,10 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1936
1936
  clear() {
1937
1937
  T(this, We).clear(), T(this, Bn).clear();
1938
1938
  }
1939
- }, We = new WeakMap(), Bn = new WeakMap(), jn = new WeakMap(), zr = new WeakMap(), Ur = new WeakMap(), $n = new WeakMap(), Br = new WeakMap(), jr = new WeakMap(), Rc), Bc = Ee.createContext(
1939
+ }, We = new WeakMap(), Bn = new WeakMap(), jn = new WeakMap(), zr = new WeakMap(), Ur = new WeakMap(), $n = new WeakMap(), Br = new WeakMap(), jr = new WeakMap(), Dc), jc = Ee.createContext(
1940
1940
  void 0
1941
- ), jc = (e) => {
1942
- const t = Ee.useContext(Bc);
1941
+ ), $c = (e) => {
1942
+ const t = Ee.useContext(jc);
1943
1943
  if (!t)
1944
1944
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1945
1945
  return t;
@@ -1948,8 +1948,8 @@ var Ir, Nt, Fr, hr, qt, Un, Ci, Ti, Ei, Ai, at, wo, _o, Uc, So, xo, Co, Ac, wh =
1948
1948
  children: t
1949
1949
  }) => (Ee.useEffect(() => (e.mount(), () => {
1950
1950
  e.unmount();
1951
- }), [e]), /* @__PURE__ */ l(Bc.Provider, { value: e, children: t })), $c = Ee.createContext(!1), Hc = () => Ee.useContext($c);
1952
- $c.Provider;
1951
+ }), [e]), /* @__PURE__ */ l(jc.Provider, { value: e, children: t })), Hc = Ee.createContext(!1), Vc = () => Ee.useContext(Hc);
1952
+ Hc.Provider;
1953
1953
  function Ch() {
1954
1954
  let e = !1;
1955
1955
  return {
@@ -1962,20 +1962,20 @@ function Ch() {
1962
1962
  isReset: () => e
1963
1963
  };
1964
1964
  }
1965
- var Th = Ee.createContext(Ch()), Vc = () => Ee.useContext(Th), Qc = (e, t, n) => {
1966
- const r = n != null && n.state.error && typeof e.throwOnError == "function" ? Lc(e.throwOnError, [n.state.error, n]) : e.throwOnError;
1965
+ var Th = Ee.createContext(Ch()), Qc = () => Ee.useContext(Th), Wc = (e, t, n) => {
1966
+ const r = n != null && n.state.error && typeof e.throwOnError == "function" ? Pc(e.throwOnError, [n.state.error, n]) : e.throwOnError;
1967
1967
  (e.suspense || e.experimental_prefetchInRender || r) && (t.isReset() || (e.retryOnMount = !1));
1968
- }, Wc = (e) => {
1968
+ }, Gc = (e) => {
1969
1969
  Ee.useEffect(() => {
1970
1970
  e.clearReset();
1971
1971
  }, [e]);
1972
- }, Gc = ({
1972
+ }, Kc = ({
1973
1973
  result: e,
1974
1974
  errorResetBoundary: t,
1975
1975
  throwOnError: n,
1976
1976
  query: r,
1977
1977
  suspense: i
1978
- }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Lc(n, [e.error, r])), Kc = (e) => {
1978
+ }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Pc(n, [e.error, r])), Yc = (e) => {
1979
1979
  if (e.suspense) {
1980
1980
  const n = (i) => i === "static" ? i : Math.max(i ?? 1e3, 1e3), r = e.staleTime;
1981
1981
  e.staleTime = typeof r == "function" ? (...i) => n(r(...i)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(
@@ -1990,7 +1990,7 @@ function Ah({
1990
1990
  queries: e,
1991
1991
  ...t
1992
1992
  }, n) {
1993
- const r = jc(), i = Hc(), s = Vc(), o = Ee.useMemo(
1993
+ const r = $c(), i = Vc(), s = Qc(), o = Ee.useMemo(
1994
1994
  () => e.map((b) => {
1995
1995
  const m = r.defaultQueryOptions(
1996
1996
  b
@@ -2000,10 +2000,10 @@ function Ah({
2000
2000
  [e, r, i]
2001
2001
  );
2002
2002
  o.forEach((b) => {
2003
- Kc(b);
2003
+ Yc(b);
2004
2004
  const m = r.getQueryCache().get(b.queryHash);
2005
- Qc(b, s, m);
2006
- }), Wc(s);
2005
+ Wc(b, s, m);
2006
+ }), Gc(s);
2007
2007
  const [a] = Ee.useState(
2008
2008
  () => new wh(
2009
2009
  r,
@@ -2032,7 +2032,7 @@ function Ah({
2032
2032
  ) ? u.flatMap((b, m) => {
2033
2033
  const f = o[m];
2034
2034
  if (f && To(f, b)) {
2035
- const g = new ra(r, f);
2035
+ const g = new ia(r, f);
2036
2036
  return Eo(f, g, s);
2037
2037
  }
2038
2038
  return [];
@@ -2042,7 +2042,7 @@ function Ah({
2042
2042
  const v = u.find(
2043
2043
  (b, m) => {
2044
2044
  const f = o[m];
2045
- return f && Gc({
2045
+ return f && Kc({
2046
2046
  result: b,
2047
2047
  errorResetBoundary: s,
2048
2048
  throwOnError: f.throwOnError,
@@ -2057,13 +2057,13 @@ function Ah({
2057
2057
  }
2058
2058
  function kh(e, t, n) {
2059
2059
  var p, v, b, m;
2060
- const r = Hc(), i = Vc(), s = jc(), o = s.defaultQueryOptions(e);
2060
+ const r = Vc(), i = Qc(), s = $c(), o = s.defaultQueryOptions(e);
2061
2061
  (v = (p = s.getDefaultOptions().queries) == null ? void 0 : p._experimental_beforeQuery) == null || v.call(
2062
2062
  p,
2063
2063
  o
2064
2064
  );
2065
2065
  const a = s.getQueryCache().get(o.queryHash), u = e.subscribed !== !1;
2066
- o._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, Kc(o), Qc(o, i, a), Wc(i);
2066
+ o._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, Yc(o), Wc(o, i, a), Gc(i);
2067
2067
  const h = !s.getQueryCache().get(o.queryHash), [c] = Ee.useState(
2068
2068
  () => new t(
2069
2069
  s,
@@ -2084,7 +2084,7 @@ function kh(e, t, n) {
2084
2084
  c.setOptions(o);
2085
2085
  }, [o, c]), To(o, d))
2086
2086
  throw Eo(o, c, i);
2087
- if (Gc({
2087
+ if (Kc({
2088
2088
  result: d,
2089
2089
  errorResetBoundary: i,
2090
2090
  throwOnError: o.throwOnError,
@@ -2110,8 +2110,8 @@ function kh(e, t, n) {
2110
2110
  }
2111
2111
  return o.notifyOnChangeProps ? d : c.trackResult(d);
2112
2112
  }
2113
- function Yc(e, t) {
2114
- return kh(e, ra);
2113
+ function Xc(e, t) {
2114
+ return kh(e, ia);
2115
2115
  }
2116
2116
  let Rh = { data: "" }, Dh = (e) => {
2117
2117
  if (typeof window == "object") {
@@ -2119,22 +2119,22 @@ let Rh = { data: "" }, Dh = (e) => {
2119
2119
  return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
2120
2120
  }
2121
2121
  return e || Rh;
2122
- }, Nh = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Oh = /\/\*[^]*?\*\/| +/g, Xa = /\n+/g, Ln = (e, t) => {
2122
+ }, Nh = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Oh = /\/\*[^]*?\*\/| +/g, Ja = /\n+/g, Ln = (e, t) => {
2123
2123
  let n = "", r = "", i = "";
2124
2124
  for (let s in e) {
2125
2125
  let o = e[s];
2126
2126
  s[0] == "@" ? s[1] == "i" ? n = s + " " + o + ";" : r += s[1] == "f" ? Ln(o, s) : s + "{" + Ln(o, s[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += Ln(o, t ? t.replace(/([^,])+/g, (a) => s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (u) => /&/.test(u) ? u.replace(/&/g, a) : a ? a + " " + u : u)) : s) : o != null && (s = s[1] == "-" ? s : s.replace(/[A-Z]/g, "-$&").toLowerCase(), i += Ln.p ? Ln.p(s, o) : s + ":" + o + ";");
2127
2127
  }
2128
2128
  return n + (t && i ? t + "{" + i + "}" : i) + r;
2129
- }, Cn = {}, Xc = (e) => {
2129
+ }, Cn = {}, Jc = (e) => {
2130
2130
  if (typeof e == "object") {
2131
2131
  let t = "";
2132
- for (let n in e) t += n + Xc(e[n]);
2132
+ for (let n in e) t += n + Jc(e[n]);
2133
2133
  return t;
2134
2134
  }
2135
2135
  return e;
2136
2136
  }, Lh = (e, t, n, r, i) => {
2137
- let s = Xc(e), o = Cn[s] || (Cn[s] = ((u) => {
2137
+ let s = Jc(e), o = Cn[s] || (Cn[s] = ((u) => {
2138
2138
  let h = 0, c = 11;
2139
2139
  for (; h < u.length; ) c = 101 * c + u.charCodeAt(h++) >>> 0;
2140
2140
  return "go" + c;
@@ -2142,7 +2142,7 @@ let Rh = { data: "" }, Dh = (e) => {
2142
2142
  if (!Cn[o]) {
2143
2143
  let u = s !== e ? e : ((h) => {
2144
2144
  let c, d, y = [{}];
2145
- for (; c = Nh.exec(h.replace(Oh, "")); ) c[4] ? y.shift() : c[3] ? (d = c[3].replace(Xa, " ").trim(), y.unshift(y[0][d] = y[0][d] || {})) : y[0][c[1]] = c[2].replace(Xa, " ").trim();
2145
+ for (; c = Nh.exec(h.replace(Oh, "")); ) c[4] ? y.shift() : c[3] ? (d = c[3].replace(Ja, " ").trim(), y.unshift(y[0][d] = y[0][d] || {})) : y[0][c[1]] = c[2].replace(Ja, " ").trim();
2146
2146
  return y[0];
2147
2147
  })(e);
2148
2148
  Cn[o] = Ln(i ? { ["@keyframes " + o]: u } : u, n ? "" : "." + o);
@@ -2163,11 +2163,11 @@ function _s(e) {
2163
2163
  let t = this || {}, n = e.call ? e(t.p) : e;
2164
2164
  return Lh(n.unshift ? n.raw ? Ph(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, i) => Object.assign(r, i && i.call ? i(t.p) : i), {}) : n, Dh(t.target), t.g, t.o, t.k);
2165
2165
  }
2166
- let Jc, Ao, ko;
2166
+ let Zc, Ao, ko;
2167
2167
  _s.bind({ g: 1 });
2168
2168
  let wn = _s.bind({ k: 1 });
2169
2169
  function Mh(e, t, n, r) {
2170
- Ln.p = t, Jc = e, Ao = n, ko = r;
2170
+ Ln.p = t, Zc = e, Ao = n, ko = r;
2171
2171
  }
2172
2172
  function Vn(e, t) {
2173
2173
  let n = this || {};
@@ -2177,7 +2177,7 @@ function Vn(e, t) {
2177
2177
  let a = Object.assign({}, s), u = a.className || i.className;
2178
2178
  n.p = Object.assign({ theme: Ao && Ao() }, a), n.o = /go\d/.test(u), a.className = _s.apply(n, r) + (u ? " " + u : "");
2179
2179
  let h = e;
2180
- return e[0] && (h = a.as || e, delete a.as), ko && h[0] && ko(a), Jc(h, a);
2180
+ return e[0] && (h = a.as || e, delete a.as), ko && h[0] && ko(a), Zc(h, a);
2181
2181
  }
2182
2182
  return i;
2183
2183
  };
@@ -2185,7 +2185,7 @@ function Vn(e, t) {
2185
2185
  var qh = (e) => typeof e == "function", cs = (e, t) => qh(e) ? e(t) : e, Ih = /* @__PURE__ */ (() => {
2186
2186
  let e = 0;
2187
2187
  return () => (++e).toString();
2188
- })(), Zc = /* @__PURE__ */ (() => {
2188
+ })(), eu = /* @__PURE__ */ (() => {
2189
2189
  let e;
2190
2190
  return () => {
2191
2191
  if (e === void 0 && typeof window < "u") {
@@ -2194,7 +2194,7 @@ var qh = (e) => typeof e == "function", cs = (e, t) => qh(e) ? e(t) : e, Ih = /*
2194
2194
  }
2195
2195
  return e;
2196
2196
  };
2197
- })(), Fh = 20, sa = "default", eu = (e, t) => {
2197
+ })(), Fh = 20, oa = "default", tu = (e, t) => {
2198
2198
  let { toastLimit: n } = e.settings;
2199
2199
  switch (t.type) {
2200
2200
  case 0:
@@ -2203,7 +2203,7 @@ var qh = (e) => typeof e == "function", cs = (e, t) => qh(e) ? e(t) : e, Ih = /*
2203
2203
  return { ...e, toasts: e.toasts.map((o) => o.id === t.toast.id ? { ...o, ...t.toast } : o) };
2204
2204
  case 2:
2205
2205
  let { toast: r } = t;
2206
- return eu(e, { type: e.toasts.find((o) => o.id === r.id) ? 1 : 0, toast: r });
2206
+ return tu(e, { type: e.toasts.find((o) => o.id === r.id) ? 1 : 0, toast: r });
2207
2207
  case 3:
2208
2208
  let { toastId: i } = t;
2209
2209
  return { ...e, toasts: e.toasts.map((o) => o.id === i || i === void 0 ? { ...o, dismissed: !0, visible: !1 } : o) };
@@ -2215,14 +2215,14 @@ var qh = (e) => typeof e == "function", cs = (e, t) => qh(e) ? e(t) : e, Ih = /*
2215
2215
  let s = t.time - (e.pausedAt || 0);
2216
2216
  return { ...e, pausedAt: void 0, toasts: e.toasts.map((o) => ({ ...o, pauseDuration: o.pauseDuration + s })) };
2217
2217
  }
2218
- }, Zi = [], tu = { toasts: [], pausedAt: void 0, settings: { toastLimit: Fh } }, hn = {}, nu = (e, t = sa) => {
2219
- hn[t] = eu(hn[t] || tu, e), Zi.forEach(([n, r]) => {
2218
+ }, Zi = [], nu = { toasts: [], pausedAt: void 0, settings: { toastLimit: Fh } }, hn = {}, ru = (e, t = oa) => {
2219
+ hn[t] = tu(hn[t] || nu, e), Zi.forEach(([n, r]) => {
2220
2220
  n === t && r(hn[t]);
2221
2221
  });
2222
- }, ru = (e) => Object.keys(hn).forEach((t) => nu(e, t)), zh = (e) => Object.keys(hn).find((t) => hn[t].toasts.some((n) => n.id === e)), Ss = (e = sa) => (t) => {
2223
- nu(t, e);
2224
- }, Uh = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Bh = (e = {}, t = sa) => {
2225
- let [n, r] = ue(hn[t] || tu), i = Ge(hn[t]);
2222
+ }, iu = (e) => Object.keys(hn).forEach((t) => ru(e, t)), zh = (e) => Object.keys(hn).find((t) => hn[t].toasts.some((n) => n.id === e)), Ss = (e = oa) => (t) => {
2223
+ ru(t, e);
2224
+ }, Uh = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Bh = (e = {}, t = oa) => {
2225
+ let [n, r] = ue(hn[t] || nu), i = Ge(hn[t]);
2226
2226
  Ae(() => (i.current !== hn[t] && r(hn[t]), Zi.push([t, r]), () => {
2227
2227
  let o = Zi.findIndex(([a]) => a === t);
2228
2228
  o > -1 && Zi.splice(o, 1);
@@ -2242,12 +2242,12 @@ ot.loading = ki("loading");
2242
2242
  ot.custom = ki("custom");
2243
2243
  ot.dismiss = (e, t) => {
2244
2244
  let n = { type: 3, toastId: e };
2245
- t ? Ss(t)(n) : ru(n);
2245
+ t ? Ss(t)(n) : iu(n);
2246
2246
  };
2247
2247
  ot.dismissAll = (e) => ot.dismiss(void 0, e);
2248
2248
  ot.remove = (e, t) => {
2249
2249
  let n = { type: 4, toastId: e };
2250
- t ? Ss(t)(n) : ru(n);
2250
+ t ? Ss(t)(n) : iu(n);
2251
2251
  };
2252
2252
  ot.removeAll = (e) => ot.remove(void 0, e);
2253
2253
  ot.promise = (e, t, n) => {
@@ -2477,7 +2477,7 @@ to {
2477
2477
  flex: 1 1 auto;
2478
2478
  white-space: pre-line;
2479
2479
  `, hf = (e, t) => {
2480
- let n = e.includes("top") ? 1 : -1, [r, i] = Zc() ? [lf, cf] : [of(n), af(n)];
2480
+ let n = e.includes("top") ? 1 : -1, [r, i] = eu() ? [lf, cf] : [of(n), af(n)];
2481
2481
  return { animation: t ? `${wn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards` : `${wn(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)` };
2482
2482
  }, ff = Ee.memo(({ toast: e, position: t, style: n, children: r }) => {
2483
2483
  let i = e.height ? hf(e.position || t || "top-center", e.visible) : { opacity: 0 }, s = Ee.createElement(sf, { toast: e }), o = Ee.createElement(df, { ...e.ariaProps }, cs(e.message, e));
@@ -2497,7 +2497,7 @@ var pf = ({ id: e, className: t, style: n, onHeightUpdate: r, children: i }) =>
2497
2497
  return Ee.createElement("div", { ref: s, className: t, style: n }, i);
2498
2498
  }, mf = (e, t) => {
2499
2499
  let n = e.includes("top"), r = n ? { top: 0 } : { bottom: 0 }, i = e.includes("center") ? { justifyContent: "center" } : e.includes("right") ? { justifyContent: "flex-end" } : {};
2500
- return { left: 0, right: 0, display: "flex", position: "absolute", transition: Zc() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)", transform: `translateY(${t * (n ? 1 : -1)}px)`, ...r, ...i };
2500
+ return { left: 0, right: 0, display: "flex", position: "absolute", transition: eu() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)", transform: `translateY(${t * (n ? 1 : -1)}px)`, ...r, ...i };
2501
2501
  }, gf = _s`
2502
2502
  z-index: 9999;
2503
2503
  > * {
@@ -2509,8 +2509,8 @@ var pf = ({ id: e, className: t, style: n, onHeightUpdate: r, children: i }) =>
2509
2509
  let d = c.position || t, y = h.calculateOffset(c, { reverseOrder: e, gutter: r, defaultPosition: t }), p = mf(d, y);
2510
2510
  return Ee.createElement(pf, { id: c.id, key: c.id, onHeightUpdate: h.updateHeight, className: c.visible ? gf : "", style: p }, c.type === "custom" ? cs(c.message, c) : i ? i(c) : Ee.createElement(ff, { toast: c, position: d }));
2511
2511
  }));
2512
- }, iu = ot;
2513
- const yf = {}, Ja = (e) => {
2512
+ }, su = ot;
2513
+ const yf = {}, Za = (e) => {
2514
2514
  let t;
2515
2515
  const n = /* @__PURE__ */ new Set(), r = (c, d) => {
2516
2516
  const y = typeof c == "function" ? c(t) : c;
@@ -2524,11 +2524,11 @@ const yf = {}, Ja = (e) => {
2524
2524
  ), n.clear();
2525
2525
  } }, h = t = e(r, i, u);
2526
2526
  return u;
2527
- }, vf = (e) => e ? Ja(e) : Ja;
2527
+ }, vf = (e) => e ? Za(e) : Za;
2528
2528
  function wf(e) {
2529
2529
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2530
2530
  }
2531
- var su = { exports: {} }, ou = {}, au = { exports: {} }, lu = {};
2531
+ var ou = { exports: {} }, au = {}, lu = { exports: {} }, cu = {};
2532
2532
  /**
2533
2533
  * @license React
2534
2534
  * use-sync-external-store-shim.production.js
@@ -2573,9 +2573,9 @@ function kf(e, t) {
2573
2573
  return t();
2574
2574
  }
2575
2575
  var Rf = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? kf : Af;
2576
- lu.useSyncExternalStore = $r.useSyncExternalStore !== void 0 ? $r.useSyncExternalStore : Rf;
2577
- au.exports = lu;
2578
- var Df = au.exports;
2576
+ cu.useSyncExternalStore = $r.useSyncExternalStore !== void 0 ? $r.useSyncExternalStore : Rf;
2577
+ lu.exports = cu;
2578
+ var Df = lu.exports;
2579
2579
  /**
2580
2580
  * @license React
2581
2581
  * use-sync-external-store-shim/with-selector.production.js
@@ -2590,7 +2590,7 @@ function Of(e, t) {
2590
2590
  return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
2591
2591
  }
2592
2592
  var Lf = typeof Object.is == "function" ? Object.is : Of, Pf = Nf.useSyncExternalStore, Mf = xs.useRef, qf = xs.useEffect, If = xs.useMemo, Ff = xs.useDebugValue;
2593
- ou.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
2593
+ au.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
2594
2594
  var s = Mf(null);
2595
2595
  if (s.current === null) {
2596
2596
  var o = { hasValue: !1, value: null };
@@ -2631,15 +2631,15 @@ ou.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
2631
2631
  [a]
2632
2632
  ), Ff(a), a;
2633
2633
  };
2634
- su.exports = ou;
2635
- var zf = su.exports;
2636
- const Uf = /* @__PURE__ */ wf(zf), cu = {}, { useDebugValue: Bf } = fe, { useSyncExternalStoreWithSelector: jf } = Uf;
2637
- let Za = !1;
2634
+ ou.exports = au;
2635
+ var zf = ou.exports;
2636
+ const Uf = /* @__PURE__ */ wf(zf), uu = {}, { useDebugValue: Bf } = fe, { useSyncExternalStoreWithSelector: jf } = Uf;
2637
+ let el = !1;
2638
2638
  const $f = (e) => e;
2639
2639
  function Hf(e, t = $f, n) {
2640
- (cu ? "production" : void 0) !== "production" && n && !Za && (console.warn(
2640
+ (uu ? "production" : void 0) !== "production" && n && !el && (console.warn(
2641
2641
  "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
2642
- ), Za = !0);
2642
+ ), el = !0);
2643
2643
  const r = jf(
2644
2644
  e.subscribe,
2645
2645
  e.getState,
@@ -2649,13 +2649,13 @@ function Hf(e, t = $f, n) {
2649
2649
  );
2650
2650
  return Bf(r), r;
2651
2651
  }
2652
- const el = (e) => {
2653
- (cu ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
2652
+ const tl = (e) => {
2653
+ (uu ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
2654
2654
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
2655
2655
  );
2656
2656
  const t = typeof e == "function" ? vf(e) : e, n = (r, i) => Hf(t, r, i);
2657
2657
  return Object.assign(n, t), n;
2658
- }, Cs = (e) => e ? el(e) : el, Vf = {
2658
+ }, Cs = (e) => e ? tl(e) : tl, Vf = {
2659
2659
  preview_collection_btn_label: "Preview",
2660
2660
  preview_collection_btn_icon: "icon eye",
2661
2661
  save_collection_btn_label: "Save as Draft",
@@ -3069,7 +3069,7 @@ const el = (e) => {
3069
3069
  superscript: "Superscript",
3070
3070
  questionSet: "Question Set",
3071
3071
  agreeTerms: "I agree to the Terms & Conditions and Content Policy"
3072
- }, uu = {
3072
+ }, du = {
3073
3073
  button_labels: Vf,
3074
3074
  lbl: Qf,
3075
3075
  err: Wf,
@@ -4379,17 +4379,17 @@ const el = (e) => {
4379
4379
  messages: Lp,
4380
4380
  ui: Pp,
4381
4381
  categoryLabels: Mp
4382
- }, tl = { ar: hp, fr: xp, hi: Tp, pt: qp }, Ro = (e) => !!e && typeof e == "object" && !Array.isArray(e);
4383
- function du(e, t) {
4382
+ }, nl = { ar: hp, fr: xp, hi: Tp, pt: qp }, Ro = (e) => !!e && typeof e == "object" && !Array.isArray(e);
4383
+ function hu(e, t) {
4384
4384
  const n = { ...e };
4385
4385
  for (const [r, i] of Object.entries(t))
4386
- n[r] = Ro(i) && Ro(n[r]) ? du(n[r], i) : i;
4386
+ n[r] = Ro(i) && Ro(n[r]) ? hu(n[r], i) : i;
4387
4387
  return n;
4388
4388
  }
4389
- function nl(e, t) {
4390
- return du(e, Ro(t) ? t : {});
4389
+ function rl(e, t) {
4390
+ return hu(e, Ro(t) ? t : {});
4391
4391
  }
4392
- let hu = uu;
4392
+ let fu = du;
4393
4393
  function Ip(e) {
4394
4394
  if (e) return e;
4395
4395
  try {
@@ -4398,16 +4398,16 @@ function Ip(e) {
4398
4398
  return "en";
4399
4399
  }
4400
4400
  }
4401
- function rl(e, t) {
4402
- let n = uu;
4403
- return e !== "en" && tl[e] && (n = nl(n, tl[e])), t && Object.keys(t).length && (n = nl(n, { button_labels: t })), hu = n, n;
4401
+ function il(e, t) {
4402
+ let n = du;
4403
+ return e !== "en" && nl[e] && (n = rl(n, nl[e])), t && Object.keys(t).length && (n = rl(n, { button_labels: t })), fu = n, n;
4404
4404
  }
4405
4405
  function en(e, t = "") {
4406
4406
  var s;
4407
- const [n, r] = e.split("."), i = n && r ? (s = hu[n]) == null ? void 0 : s[r] : void 0;
4407
+ const [n, r] = e.split("."), i = n && r ? (s = fu[n]) == null ? void 0 : s[r] : void 0;
4408
4408
  return typeof i == "string" && i ? i : t;
4409
4409
  }
4410
- function oa(e, t, n = "") {
4410
+ function aa(e, t, n = "") {
4411
4411
  var o;
4412
4412
  const [r, i] = t.split("."), s = r && i ? (o = e[r]) == null ? void 0 : o[i] : void 0;
4413
4413
  return typeof s == "string" && s ? s : n;
@@ -4440,9 +4440,9 @@ const re = Cs((e) => ({
4440
4440
  reviewChecklist: null,
4441
4441
  rfcChecklist: null,
4442
4442
  reviewComments: [],
4443
- labels: rl("en"),
4443
+ labels: il("en"),
4444
4444
  uiLanguage: "en",
4445
- setUiLanguage: (t, n) => e({ uiLanguage: t, labels: rl(t, n) }),
4445
+ setUiLanguage: (t, n) => e({ uiLanguage: t, labels: il(t, n) }),
4446
4446
  licenses: [],
4447
4447
  setLicenses: (t) => e({ licenses: t }),
4448
4448
  channelData: null,
@@ -4493,25 +4493,25 @@ function zp(e) {
4493
4493
  const t = e == null ? void 0 : e.user;
4494
4494
  return (t == null ? void 0 : t.fullName) ?? [t == null ? void 0 : t.firstName, t == null ? void 0 : t.lastName].filter(Boolean).join(" ");
4495
4495
  }
4496
- function fu(e, t) {
4496
+ function pu(e, t) {
4497
4497
  return e === "edit" ? !0 : (e === "orgreview" || e === "sourcingreview") && !!(t != null && t.enableReviewEdit);
4498
4498
  }
4499
- const Up = 20, pu = "3.0";
4499
+ const Up = 20, mu = "3.0";
4500
4500
  let me = null, Do = "", Ts = "questionset_editor", ci = [];
4501
- function mu() {
4501
+ function gu() {
4502
4502
  return `QS:${Date.now().toString(36)}${Math.random().toString(36).slice(2, 8)}`;
4503
4503
  }
4504
4504
  function Bp() {
4505
4505
  const e = (me == null ? void 0 : me.host) ?? "", t = (me == null ? void 0 : me.endpoint) || "/data/v3/telemetry";
4506
4506
  return `${e}${t}`;
4507
4507
  }
4508
- function il(e, t) {
4508
+ function sl(e, t) {
4509
4509
  var n;
4510
4510
  return {
4511
4511
  eid: e,
4512
4512
  ets: Date.now(),
4513
- ver: pu,
4514
- mid: mu(),
4513
+ ver: mu,
4514
+ mid: gu(),
4515
4515
  actor: { id: ((n = me == null ? void 0 : me.user) == null ? void 0 : n.id) ?? (me == null ? void 0 : me.userId) ?? (me == null ? void 0 : me.uid) ?? "anonymous", type: "User" },
4516
4516
  context: {
4517
4517
  channel: (me == null ? void 0 : me.channel) ?? "",
@@ -4526,14 +4526,14 @@ function il(e, t) {
4526
4526
  edata: t
4527
4527
  };
4528
4528
  }
4529
- function gu(e = !1) {
4529
+ function bu(e = !1) {
4530
4530
  if (!ci.length || !me) return;
4531
4531
  const t = ci;
4532
4532
  ci = [];
4533
4533
  const n = JSON.stringify({
4534
4534
  id: "api.sunbird.telemetry",
4535
- ver: pu,
4536
- params: { msgid: mu() },
4535
+ ver: mu,
4536
+ params: { msgid: gu() },
4537
4537
  ets: Date.now(),
4538
4538
  events: t
4539
4539
  }), r = Bp();
@@ -4559,24 +4559,24 @@ function Ni(e, t) {
4559
4559
  if (!me) return;
4560
4560
  const n = e.toLowerCase(), r = window.EkTelemetry;
4561
4561
  if (r && typeof r[n] == "function") {
4562
- r[n](il(e, t));
4562
+ r[n](sl(e, t));
4563
4563
  return;
4564
4564
  }
4565
- ci.push(il(e, t)), ci.length >= Up && gu();
4565
+ ci.push(sl(e, t)), ci.length >= Up && bu();
4566
4566
  }
4567
- function bu(e, t) {
4567
+ function yu(e, t) {
4568
4568
  me = e, Do = t;
4569
4569
  }
4570
- function yu() {
4570
+ function vu() {
4571
4571
  Ni("START", { type: "editor", pageid: Ts, mode: "edit", uaspec: {} });
4572
4572
  }
4573
- function vu() {
4574
- Ni("END", { type: "editor", pageid: Ts }), gu(!0);
4573
+ function wu() {
4574
+ Ni("END", { type: "editor", pageid: Ts }), bu(!0);
4575
4575
  }
4576
- function aa(e = Ts) {
4576
+ function la(e = Ts) {
4577
4577
  Ni("IMPRESSION", { type: "edit", pageid: e, uri: "" });
4578
4578
  }
4579
- function la(e, t = Ts) {
4579
+ function ca(e, t = Ts) {
4580
4580
  Ni("INTERACT", { type: "click", id: e, pageid: t });
4581
4581
  }
4582
4582
  function jp(e, t = "SYSTEM") {
@@ -4584,24 +4584,24 @@ function jp(e, t = "SYSTEM") {
4584
4584
  }
4585
4585
  const $p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4586
4586
  __proto__: null,
4587
- initTelemetry: bu,
4588
- telemetryEnd: vu,
4587
+ initTelemetry: yu,
4588
+ telemetryEnd: wu,
4589
4589
  telemetryError: jp,
4590
- telemetryImpression: aa,
4591
- telemetryInteract: la,
4592
- telemetryStart: yu
4590
+ telemetryImpression: la,
4591
+ telemetryInteract: ca,
4592
+ telemetryStart: vu
4593
4593
  }, Symbol.toStringTag, { value: "Module" }));
4594
4594
  function Hp() {
4595
4595
  const e = re((t) => t.editorConfig);
4596
4596
  return Ae(() => {
4597
4597
  if (e)
4598
- return bu(e.context, Di(e.context)), yu(), aa(), () => vu();
4599
- }, [e]), { logInteract: la };
4598
+ return yu(e.context, Di(e.context)), vu(), la(), () => wu();
4599
+ }, [e]), { logInteract: ca };
4600
4600
  }
4601
4601
  function us(e) {
4602
4602
  return e.parent ? e.mimeType === "application/vnd.sunbird.question" || e.objectType === "Question" || e.isQuestion === !0 || e.questionType != null && e.questionType !== "" ? "question" : "section" : "root";
4603
4603
  }
4604
- const sl = {
4604
+ const ol = {
4605
4605
  questionBody: {},
4606
4606
  answerText: {},
4607
4607
  sentence: {},
@@ -4633,7 +4633,7 @@ const $s = [
4633
4633
  evalUnordered: !0,
4634
4634
  layout: "vertical"
4635
4635
  };
4636
- function ol(e) {
4636
+ function al(e) {
4637
4637
  const t = (s, o) => ({ ...s ?? {}, [e.contentLang]: o }), n = { ...e.i18nText.options };
4638
4638
  e.options.forEach((s) => {
4639
4639
  n[s.id] = t(n[s.id], s.body);
@@ -4673,12 +4673,12 @@ const be = Cs((e, t) => ({
4673
4673
  sentence: "",
4674
4674
  questionBody: "",
4675
4675
  contentLang: "en",
4676
- i18nText: sl,
4676
+ i18nText: ol,
4677
4677
  ...Yt,
4678
4678
  switchContentLang: (n) => {
4679
4679
  const r = t();
4680
4680
  if (n === r.contentLang) return;
4681
- const i = ol(r);
4681
+ const i = al(r);
4682
4682
  e({
4683
4683
  contentLang: n,
4684
4684
  i18nText: i,
@@ -4707,7 +4707,7 @@ const be = Cs((e, t) => ({
4707
4707
  })
4708
4708
  });
4709
4709
  },
4710
- getI18nSnapshot: () => ol(t()),
4710
+ getI18nSnapshot: () => al(t()),
4711
4711
  setActiveQuestion: (n) => {
4712
4712
  var r, i, s, o, a, u, h;
4713
4713
  if (!n) {
@@ -4868,7 +4868,7 @@ const be = Cs((e, t) => ({
4868
4868
  sentence: "",
4869
4869
  questionBody: "",
4870
4870
  contentLang: "en",
4871
- i18nText: sl,
4871
+ i18nText: ol,
4872
4872
  isDirty: !1,
4873
4873
  isSaving: !1,
4874
4874
  ...Yt
@@ -4909,17 +4909,17 @@ function Oo(e, t, n) {
4909
4909
  return r.id === t ? { ...r, children: [...r.children ?? [], n] } : (i = r.children) != null && i.length ? { ...r, children: Oo(r.children, t, n) } : r;
4910
4910
  });
4911
4911
  }
4912
- function wu(e, t) {
4913
- return e.filter((n) => n.id !== t).map((n) => ({ ...n, children: n.children ? wu(n.children, t) : [] }));
4912
+ function _u(e, t) {
4913
+ return e.filter((n) => n.id !== t).map((n) => ({ ...n, children: n.children ? _u(n.children, t) : [] }));
4914
4914
  }
4915
- function _u(e, t, n, r) {
4915
+ function Su(e, t, n, r) {
4916
4916
  return e.map((i) => {
4917
4917
  var s;
4918
4918
  if (i.id === t) {
4919
4919
  const o = [...i.children ?? []], [a] = o.splice(n, 1);
4920
4920
  return o.splice(r, 0, a), { ...i, children: o };
4921
4921
  }
4922
- return (s = i.children) != null && s.length ? { ...i, children: _u(i.children, t, n, r) } : i;
4922
+ return (s = i.children) != null && s.length ? { ...i, children: Su(i.children, t, n, r) } : i;
4923
4923
  });
4924
4924
  }
4925
4925
  function Vp(e, t) {
@@ -5040,7 +5040,7 @@ const ge = Cs((e, t) => ({
5040
5040
  e((r) => {
5041
5041
  const { [n]: i, ...s } = r.treeCache, o = r.selectedNodeId === n;
5042
5042
  return {
5043
- treeData: wu(r.treeData, n),
5043
+ treeData: _u(r.treeData, n),
5044
5044
  treeCache: s,
5045
5045
  selectedNodeId: o ? null : r.selectedNodeId,
5046
5046
  activeNodeMeta: o ? void 0 : r.activeNodeMeta,
@@ -5049,7 +5049,7 @@ const ge = Cs((e, t) => ({
5049
5049
  });
5050
5050
  },
5051
5051
  reorderChildren: (n, r, i) => {
5052
- e((s) => ({ treeData: _u(s.treeData, n, r, i) }));
5052
+ e((s) => ({ treeData: Su(s.treeData, n, r, i) }));
5053
5053
  },
5054
5054
  markDirty: () => {
5055
5055
  re.getState().setIsDirty(!0);
@@ -5094,12 +5094,12 @@ const ge = Cs((e, t) => ({
5094
5094
  n && t().selectNode(n);
5095
5095
  }
5096
5096
  }));
5097
- function Su(e, t) {
5097
+ function xu(e, t) {
5098
5098
  return function() {
5099
5099
  return e.apply(t, arguments);
5100
5100
  };
5101
5101
  }
5102
- const { toString: Qp } = Object.prototype, { getPrototypeOf: Hr } = Object, { iterator: Oi, toStringTag: xu } = Symbol, ds = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), gi = (e, t) => {
5102
+ const { toString: Qp } = Object.prototype, { getPrototypeOf: Hr } = Object, { iterator: Oi, toStringTag: Cu } = Symbol, ds = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), gi = (e, t) => {
5103
5103
  let n = e;
5104
5104
  const r = [];
5105
5105
  for (; n != null && n !== Object.prototype; ) {
@@ -5110,26 +5110,26 @@ const { toString: Qp } = Object.prototype, { getPrototypeOf: Hr } = Object, { it
5110
5110
  n = Hr(n);
5111
5111
  }
5112
5112
  return !1;
5113
- }, Wp = (e, t) => e != null && gi(e, t) ? e[t] : void 0, ca = /* @__PURE__ */ ((e) => (t) => {
5113
+ }, Wp = (e, t) => e != null && gi(e, t) ? e[t] : void 0, ua = /* @__PURE__ */ ((e) => (t) => {
5114
5114
  const n = Qp.call(t);
5115
5115
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
5116
- })(/* @__PURE__ */ Object.create(null)), rn = (e) => (e = e.toLowerCase(), (t) => ca(t) === e), Es = (e) => (t) => typeof t === e, { isArray: mr } = Array, Vr = Es("undefined");
5116
+ })(/* @__PURE__ */ Object.create(null)), rn = (e) => (e = e.toLowerCase(), (t) => ua(t) === e), Es = (e) => (t) => typeof t === e, { isArray: mr } = Array, Vr = Es("undefined");
5117
5117
  function Kr(e) {
5118
5118
  return e !== null && !Vr(e) && e.constructor !== null && !Vr(e.constructor) && Ot(e.constructor.isBuffer) && e.constructor.isBuffer(e);
5119
5119
  }
5120
- const Cu = rn("ArrayBuffer");
5120
+ const Tu = rn("ArrayBuffer");
5121
5121
  function Gp(e) {
5122
5122
  let t;
5123
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Cu(e.buffer), t;
5123
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Tu(e.buffer), t;
5124
5124
  }
5125
- const Kp = Es("string"), Ot = Es("function"), Tu = Es("number"), Yr = (e) => e !== null && typeof e == "object", Yp = (e) => e === !0 || e === !1, ts = (e) => {
5125
+ const Kp = Es("string"), Ot = Es("function"), Eu = Es("number"), Yr = (e) => e !== null && typeof e == "object", Yp = (e) => e === !0 || e === !1, ts = (e) => {
5126
5126
  if (!Yr(e))
5127
5127
  return !1;
5128
5128
  const t = Hr(e);
5129
5129
  return (t === null || t === Object.prototype || Hr(t) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
5130
5130
  // Symbol.iterator as evidence the value is a tagged/iterable type rather
5131
5131
  // than a plain object, while ignoring keys injected onto Object.prototype.
5132
- !gi(e, xu) && !gi(e, Oi);
5132
+ !gi(e, Cu) && !gi(e, Oi);
5133
5133
  }, Xp = (e) => {
5134
5134
  if (!Yr(e) || Kr(e))
5135
5135
  return !1;
@@ -5142,12 +5142,12 @@ const Kp = Es("string"), Ot = Es("function"), Tu = Es("number"), Yr = (e) => e !
5142
5142
  function sm() {
5143
5143
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
5144
5144
  }
5145
- const al = sm(), ll = typeof al.FormData < "u" ? al.FormData : void 0, om = (e) => {
5145
+ const ll = sm(), cl = typeof ll.FormData < "u" ? ll.FormData : void 0, om = (e) => {
5146
5146
  if (!e) return !1;
5147
- if (ll && e instanceof ll) return !0;
5147
+ if (cl && e instanceof cl) return !0;
5148
5148
  const t = Hr(e);
5149
5149
  if (!t || t === Object.prototype || !Ot(e.append)) return !1;
5150
- const n = ca(e);
5150
+ const n = ua(e);
5151
5151
  return n === "formdata" || // detect form-data instance
5152
5152
  n === "object" && Ot(e.toString) && e.toString() === "[object FormData]";
5153
5153
  }, am = rn("URLSearchParams"), [lm, cm, um, dm] = [
@@ -5172,7 +5172,7 @@ function Li(e, t, { allOwnKeys: n = !1 } = {}) {
5172
5172
  a = s[r], t.call(null, e[a], a, e);
5173
5173
  }
5174
5174
  }
5175
- function Eu(e, t) {
5175
+ function Au(e, t) {
5176
5176
  if (Kr(e))
5177
5177
  return null;
5178
5178
  t = t.toLowerCase();
@@ -5183,12 +5183,12 @@ function Eu(e, t) {
5183
5183
  return i;
5184
5184
  return null;
5185
5185
  }
5186
- const tr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Au = (e) => !Vr(e) && e !== tr;
5186
+ const tr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ku = (e) => !Vr(e) && e !== tr;
5187
5187
  function Lo(...e) {
5188
- const { caseless: t, skipUndefined: n } = Au(this) && this || {}, r = {}, i = (s, o) => {
5188
+ const { caseless: t, skipUndefined: n } = ku(this) && this || {}, r = {}, i = (s, o) => {
5189
5189
  if (o === "__proto__" || o === "constructor" || o === "prototype")
5190
5190
  return;
5191
- const a = t && typeof o == "string" && Eu(r, o) || o, u = ds(r, a) ? r[a] : void 0;
5191
+ const a = t && typeof o == "string" && Au(r, o) || o, u = ds(r, a) ? r[a] : void 0;
5192
5192
  ts(u) && ts(s) ? r[a] = Lo(u, s) : ts(s) ? r[a] = Lo({}, s) : mr(s) ? r[a] = s.slice() : (!n || !Vr(s)) && (r[a] = s);
5193
5193
  };
5194
5194
  for (let s = 0, o = e.length; s < o; s++) {
@@ -5210,7 +5210,7 @@ const fm = (e, t, n, { allOwnKeys: r } = {}) => (Li(
5210
5210
  // Null-proto descriptor so a polluted Object.prototype.get cannot
5211
5211
  // hijack defineProperty's accessor-vs-data resolution.
5212
5212
  __proto__: null,
5213
- value: Su(i, n),
5213
+ value: xu(i, n),
5214
5214
  writable: !0,
5215
5215
  enumerable: !0,
5216
5216
  configurable: !0
@@ -5252,7 +5252,7 @@ const fm = (e, t, n, { allOwnKeys: r } = {}) => (Li(
5252
5252
  if (!e) return null;
5253
5253
  if (mr(e)) return e;
5254
5254
  let t = e.length;
5255
- if (!Tu(t)) return null;
5255
+ if (!Eu(t)) return null;
5256
5256
  const n = new Array(t);
5257
5257
  for (; t-- > 0; )
5258
5258
  n[t] = e[t];
@@ -5272,14 +5272,14 @@ const fm = (e, t, n, { allOwnKeys: r } = {}) => (Li(
5272
5272
  return r;
5273
5273
  }, Sm = rn("HTMLFormElement"), xm = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, i) {
5274
5274
  return r.toUpperCase() + i;
5275
- }), { propertyIsEnumerable: Cm } = Object.prototype, Tm = rn("RegExp"), ku = (e, t) => {
5275
+ }), { propertyIsEnumerable: Cm } = Object.prototype, Tm = rn("RegExp"), Ru = (e, t) => {
5276
5276
  const n = Object.getOwnPropertyDescriptors(e), r = {};
5277
5277
  Li(n, (i, s) => {
5278
5278
  let o;
5279
5279
  (o = t(i, s, e)) !== !1 && (r[s] = o || i);
5280
5280
  }), Object.defineProperties(e, r);
5281
5281
  }, Em = (e) => {
5282
- ku(e, (t, n) => {
5282
+ Ru(e, (t, n) => {
5283
5283
  if (Ot(e) && ["arguments", "caller", "callee"].includes(n))
5284
5284
  return !1;
5285
5285
  const r = e[n];
@@ -5303,7 +5303,7 @@ const fm = (e, t, n, { allOwnKeys: r } = {}) => (Li(
5303
5303
  }, km = () => {
5304
5304
  }, Rm = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
5305
5305
  function Dm(e) {
5306
- return !!(e && Ot(e.append) && e[xu] === "FormData" && e[Oi]);
5306
+ return !!(e && Ot(e.append) && e[Cu] === "FormData" && e[Oi]);
5307
5307
  }
5308
5308
  const Nm = (e) => {
5309
5309
  const t = /* @__PURE__ */ new WeakSet(), n = (r) => {
@@ -5324,7 +5324,7 @@ const Nm = (e) => {
5324
5324
  return r;
5325
5325
  };
5326
5326
  return n(e);
5327
- }, Om = rn("AsyncFunction"), Lm = (e) => e && (Yr(e) || Ot(e)) && Ot(e.then) && Ot(e.catch), Ru = ((e, t) => e ? setImmediate : t ? ((n, r) => (tr.addEventListener(
5327
+ }, Om = rn("AsyncFunction"), Lm = (e) => e && (Yr(e) || Ot(e)) && Ot(e.then) && Ot(e.catch), Du = ((e, t) => e ? setImmediate : t ? ((n, r) => (tr.addEventListener(
5328
5328
  "message",
5329
5329
  ({ source: i, data: s }) => {
5330
5330
  i === tr && s === n && r.length && r.shift()();
@@ -5332,14 +5332,14 @@ const Nm = (e) => {
5332
5332
  !1
5333
5333
  ), (i) => {
5334
5334
  r.push(i), tr.postMessage(n, "*");
5335
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Ot(tr.postMessage)), Pm = typeof queueMicrotask < "u" ? queueMicrotask.bind(tr) : typeof process < "u" && process.nextTick || Ru, Du = (e) => e != null && Ot(e[Oi]), Mm = (e) => e != null && gi(e, Oi) && Du(e), A = {
5335
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Ot(tr.postMessage)), Pm = typeof queueMicrotask < "u" ? queueMicrotask.bind(tr) : typeof process < "u" && process.nextTick || Du, Nu = (e) => e != null && Ot(e[Oi]), Mm = (e) => e != null && gi(e, Oi) && Nu(e), A = {
5336
5336
  isArray: mr,
5337
- isArrayBuffer: Cu,
5337
+ isArrayBuffer: Tu,
5338
5338
  isBuffer: Kr,
5339
5339
  isFormData: om,
5340
5340
  isArrayBufferView: Gp,
5341
5341
  isString: Kp,
5342
- isNumber: Tu,
5342
+ isNumber: Eu,
5343
5343
  isBoolean: Yp,
5344
5344
  isObject: Yr,
5345
5345
  isPlainObject: ts,
@@ -5367,7 +5367,7 @@ const Nm = (e) => {
5367
5367
  stripBOM: pm,
5368
5368
  inherits: mm,
5369
5369
  toFlatObject: gm,
5370
- kindOf: ca,
5370
+ kindOf: ua,
5371
5371
  kindOfTest: rn,
5372
5372
  endsWith: bm,
5373
5373
  toArray: ym,
@@ -5379,22 +5379,22 @@ const Nm = (e) => {
5379
5379
  // an alias to avoid ESLint no-prototype-builtins detection
5380
5380
  hasOwnInPrototypeChain: gi,
5381
5381
  getSafeProp: Wp,
5382
- reduceDescriptors: ku,
5382
+ reduceDescriptors: Ru,
5383
5383
  freezeMethods: Em,
5384
5384
  toObjectSet: Am,
5385
5385
  toCamelCase: xm,
5386
5386
  noop: km,
5387
5387
  toFiniteNumber: Rm,
5388
- findKey: Eu,
5388
+ findKey: Au,
5389
5389
  global: tr,
5390
- isContextDefined: Au,
5390
+ isContextDefined: ku,
5391
5391
  isSpecCompliantForm: Dm,
5392
5392
  toJSONObject: Nm,
5393
5393
  isAsyncFn: Om,
5394
5394
  isThenable: Lm,
5395
- setImmediate: Ru,
5395
+ setImmediate: Du,
5396
5396
  asap: Pm,
5397
- isIterable: Du,
5397
+ isIterable: Nu,
5398
5398
  isSafeIterable: Mm
5399
5399
  }, qm = A.toObjectSet([
5400
5400
  "age",
@@ -5439,17 +5439,17 @@ function Fm(e) {
5439
5439
  return t === 0 && n === e.length ? e : e.slice(t, n);
5440
5440
  }
5441
5441
  const zm = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), Um = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
5442
- function ua(e, t) {
5443
- return A.isArray(e) ? e.map((n) => ua(n, t)) : Fm(String(e).replace(t, ""));
5442
+ function da(e, t) {
5443
+ return A.isArray(e) ? e.map((n) => da(n, t)) : Fm(String(e).replace(t, ""));
5444
5444
  }
5445
- const Bm = (e) => ua(e, zm), jm = (e) => ua(e, Um);
5446
- function Nu(e) {
5445
+ const Bm = (e) => da(e, zm), jm = (e) => da(e, Um);
5446
+ function Ou(e) {
5447
5447
  const t = /* @__PURE__ */ Object.create(null);
5448
5448
  return A.forEach(e.toJSON(), (n, r) => {
5449
5449
  t[r] = jm(n);
5450
5450
  }), t;
5451
5451
  }
5452
- const cl = Symbol("internals");
5452
+ const ul = Symbol("internals");
5453
5453
  function ei(e) {
5454
5454
  return e && String(e).trim().toLowerCase();
5455
5455
  }
@@ -5607,7 +5607,7 @@ let xt = class {
5607
5607
  return n.forEach((i) => r.set(i)), r;
5608
5608
  }
5609
5609
  static accessor(t) {
5610
- const r = (this[cl] = this[cl] = {
5610
+ const r = (this[ul] = this[ul] = {
5611
5611
  accessors: {}
5612
5612
  }).accessors, i = this.prototype;
5613
5613
  function s(o) {
@@ -5671,9 +5671,9 @@ function Km(e, t) {
5671
5671
  };
5672
5672
  return i(e);
5673
5673
  }
5674
- let ee = class Ou extends Error {
5674
+ let ee = class Lu extends Error {
5675
5675
  static from(t, n, r, i, s, o) {
5676
- const a = new Ou(t.message, n || t.code, r, i, s);
5676
+ const a = new Lu(t.message, n || t.code, r, i, s);
5677
5677
  return Object.defineProperty(a, "cause", {
5678
5678
  __proto__: null,
5679
5679
  value: t,
@@ -5739,16 +5739,16 @@ ee.ERR_CANCELED = "ERR_CANCELED";
5739
5739
  ee.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
5740
5740
  ee.ERR_INVALID_URL = "ERR_INVALID_URL";
5741
5741
  ee.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
5742
- const Ym = null, Lu = 100;
5742
+ const Ym = null, Pu = 100;
5743
5743
  function Po(e) {
5744
5744
  return A.isPlainObject(e) || A.isArray(e);
5745
5745
  }
5746
- function Pu(e) {
5746
+ function Mu(e) {
5747
5747
  return A.endsWith(e, "[]") ? e.slice(0, -2) : e;
5748
5748
  }
5749
5749
  function Vs(e, t, n) {
5750
5750
  return e ? e.concat(t).map(function(i, s) {
5751
- return i = Pu(i), !n && s ? "[" + i + "]" : i;
5751
+ return i = Mu(i), !n && s ? "[" + i + "]" : i;
5752
5752
  }).join(n ? "." : "") : t;
5753
5753
  }
5754
5754
  function Xm(e) {
@@ -5772,7 +5772,7 @@ function As(e, t, n) {
5772
5772
  return !A.isUndefined(S[g]);
5773
5773
  }
5774
5774
  );
5775
- const r = n.metaTokens, i = n.visitor || v, s = n.dots, o = n.indexes, a = n.Blob || typeof Blob < "u" && Blob, u = n.maxDepth === void 0 ? Lu : n.maxDepth, h = a && A.isSpecCompliantForm(t), c = [];
5775
+ const r = n.metaTokens, i = n.visitor || v, s = n.dots, o = n.indexes, a = n.Blob || typeof Blob < "u" && Blob, u = n.maxDepth === void 0 ? Pu : n.maxDepth, h = a && A.isSpecCompliantForm(t), c = [];
5776
5776
  if (!A.isFunction(i))
5777
5777
  throw new TypeError("visitor must be a function");
5778
5778
  function d(f) {
@@ -5819,7 +5819,7 @@ function As(e, t, n) {
5819
5819
  if (A.endsWith(g, "{}"))
5820
5820
  g = r ? g : g.slice(0, -2), f = p(f, 1);
5821
5821
  else if (A.isArray(f) && Xm(f) || (A.isFileList(f) || A.endsWith(g, "[]")) && (w = A.toArray(f)))
5822
- return g = Pu(g), w.forEach(function(D, O) {
5822
+ return g = Mu(g), w.forEach(function(D, O) {
5823
5823
  !(A.isUndefined(D) || D === null) && t.append(
5824
5824
  // eslint-disable-next-line no-nested-ternary
5825
5825
  o === !0 ? Vs([g], O, s) : o === null ? g : g + "[]",
@@ -5847,7 +5847,7 @@ function As(e, t, n) {
5847
5847
  throw new TypeError("data must be an object");
5848
5848
  return m(e), t;
5849
5849
  }
5850
- function ul(e) {
5850
+ function dl(e) {
5851
5851
  const t = {
5852
5852
  "!": "%21",
5853
5853
  "'": "%27",
@@ -5860,15 +5860,15 @@ function ul(e) {
5860
5860
  return t[r];
5861
5861
  });
5862
5862
  }
5863
- function da(e, t) {
5863
+ function ha(e, t) {
5864
5864
  this._pairs = [], e && As(e, this, t);
5865
5865
  }
5866
- const Mu = da.prototype;
5867
- Mu.append = function(t, n) {
5866
+ const qu = ha.prototype;
5867
+ qu.append = function(t, n) {
5868
5868
  this._pairs.push([t, n]);
5869
5869
  };
5870
- Mu.toString = function(t) {
5871
- const n = t ? (r) => t.call(this, r, ul) : ul;
5870
+ qu.toString = function(t) {
5871
+ const n = t ? (r) => t.call(this, r, dl) : dl;
5872
5872
  return this._pairs.map(function(i) {
5873
5873
  return n(i[0]) + "=" + n(i[1]);
5874
5874
  }, "").join("&");
@@ -5876,7 +5876,7 @@ Mu.toString = function(t) {
5876
5876
  function Zm(e) {
5877
5877
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
5878
5878
  }
5879
- function qu(e, t, n) {
5879
+ function Iu(e, t, n) {
5880
5880
  if (!t)
5881
5881
  return e;
5882
5882
  e = e || "";
@@ -5884,13 +5884,13 @@ function qu(e, t, n) {
5884
5884
  serialize: n
5885
5885
  } : n, i = A.getSafeProp(r, "encode") || Zm, s = A.getSafeProp(r, "serialize");
5886
5886
  let o;
5887
- if (s ? o = s(t, r) : o = A.isURLSearchParams(t) ? t.toString() : new da(t, r).toString(i), o) {
5887
+ if (s ? o = s(t, r) : o = A.isURLSearchParams(t) ? t.toString() : new ha(t, r).toString(i), o) {
5888
5888
  const a = e.indexOf("#");
5889
5889
  a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
5890
5890
  }
5891
5891
  return e;
5892
5892
  }
5893
- class dl {
5893
+ class hl {
5894
5894
  constructor() {
5895
5895
  this.handlers = [];
5896
5896
  }
@@ -5945,14 +5945,14 @@ class dl {
5945
5945
  });
5946
5946
  }
5947
5947
  }
5948
- const ha = {
5948
+ const fa = {
5949
5949
  silentJSONParsing: !0,
5950
5950
  forcedJSONParsing: !0,
5951
5951
  clarifyTimeoutError: !1,
5952
5952
  legacyInterceptorReqResOrdering: !0,
5953
5953
  advertiseZstdAcceptEncoding: !1,
5954
5954
  validateStatusUndefinedResolves: !0
5955
- }, eg = typeof URLSearchParams < "u" ? URLSearchParams : da, tg = typeof FormData < "u" ? FormData : null, ng = typeof Blob < "u" ? Blob : null, rg = {
5955
+ }, eg = typeof URLSearchParams < "u" ? URLSearchParams : ha, tg = typeof FormData < "u" ? FormData : null, ng = typeof Blob < "u" ? Blob : null, rg = {
5956
5956
  isBrowser: !0,
5957
5957
  classes: {
5958
5958
  URLSearchParams: eg,
@@ -5960,10 +5960,10 @@ const ha = {
5960
5960
  Blob: ng
5961
5961
  },
5962
5962
  protocols: ["http", "https", "file", "blob", "url", "data"]
5963
- }, fa = typeof window < "u" && typeof document < "u", Mo = typeof navigator == "object" && navigator || void 0, ig = fa && (!Mo || ["ReactNative", "NativeScript", "NS"].indexOf(Mo.product) < 0), sg = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
5964
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", og = fa && window.location.href || "http://localhost", ag = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5963
+ }, pa = typeof window < "u" && typeof document < "u", Mo = typeof navigator == "object" && navigator || void 0, ig = pa && (!Mo || ["ReactNative", "NativeScript", "NS"].indexOf(Mo.product) < 0), sg = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
5964
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", og = pa && window.location.href || "http://localhost", ag = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5965
5965
  __proto__: null,
5966
- hasBrowserEnv: fa,
5966
+ hasBrowserEnv: pa,
5967
5967
  hasStandardBrowserEnv: ig,
5968
5968
  hasStandardBrowserWebWorkerEnv: sg,
5969
5969
  navigator: Mo,
@@ -5980,11 +5980,11 @@ function lg(e, t) {
5980
5980
  ...t
5981
5981
  });
5982
5982
  }
5983
- const hl = Lu;
5984
- function Iu(e) {
5985
- if (e > hl)
5983
+ const fl = Pu;
5984
+ function Fu(e) {
5985
+ if (e > fl)
5986
5986
  throw new ee(
5987
- "FormData field is too deeply nested (" + e + " levels). Max depth: " + hl,
5987
+ "FormData field is too deeply nested (" + e + " levels). Max depth: " + fl,
5988
5988
  ee.ERR_FORM_DATA_DEPTH_EXCEEDED
5989
5989
  );
5990
5990
  }
@@ -5992,7 +5992,7 @@ function cg(e) {
5992
5992
  const t = [], n = /\w+|\[(\w*)]/g;
5993
5993
  let r;
5994
5994
  for (; (r = n.exec(e)) !== null; )
5995
- Iu(t.length), t.push(r[0] === "[]" ? "" : r[1] || r[0]);
5995
+ Fu(t.length), t.push(r[0] === "[]" ? "" : r[1] || r[0]);
5996
5996
  return t;
5997
5997
  }
5998
5998
  function ug(e) {
@@ -6004,9 +6004,9 @@ function ug(e) {
6004
6004
  s = n[r], t[s] = e[s];
6005
6005
  return t;
6006
6006
  }
6007
- function Fu(e) {
6007
+ function zu(e) {
6008
6008
  function t(n, r, i, s) {
6009
- Iu(s);
6009
+ Fu(s);
6010
6010
  let o = n[s++];
6011
6011
  if (o === "__proto__") return !0;
6012
6012
  const a = Number.isFinite(+o), u = s >= n.length;
@@ -6032,13 +6032,13 @@ function dg(e, t, n) {
6032
6032
  return (n || JSON.stringify)(e);
6033
6033
  }
6034
6034
  const Pi = {
6035
- transitional: ha,
6035
+ transitional: fa,
6036
6036
  adapter: ["xhr", "http", "fetch"],
6037
6037
  transformRequest: [
6038
6038
  function(t, n) {
6039
6039
  const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, s = A.isObject(t);
6040
6040
  if (s && A.isHTMLForm(t) && (t = new FormData(t)), A.isFormData(t))
6041
- return i ? JSON.stringify(Fu(t)) : t;
6041
+ return i ? JSON.stringify(zu(t)) : t;
6042
6042
  if (A.isArrayBuffer(t) || A.isBuffer(t) || A.isStream(t) || A.isFile(t) || A.isBlob(t) || A.isReadableStream(t))
6043
6043
  return t;
6044
6044
  if (A.isArrayBufferView(t))
@@ -6112,7 +6112,7 @@ function Qs(e, t) {
6112
6112
  s = a.call(n, s, i.normalize(), t ? t.status : void 0);
6113
6113
  }), i.normalize(), s;
6114
6114
  }
6115
- function zu(e) {
6115
+ function Uu(e) {
6116
6116
  return !!(e && e.__CANCEL__);
6117
6117
  }
6118
6118
  let Mi = class extends ee {
@@ -6129,7 +6129,7 @@ let Mi = class extends ee {
6129
6129
  super(t ?? "canceled", ee.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
6130
6130
  }
6131
6131
  };
6132
- function Uu(e, t, n) {
6132
+ function Bu(e, t, n) {
6133
6133
  const r = n.config.validateStatus;
6134
6134
  !n.status || !r || r(n.status) ? e(n) : t(new ee(
6135
6135
  "Request failed with status code " + n.status,
@@ -6192,7 +6192,7 @@ const hs = (e, t, n = 3) => {
6192
6192
  };
6193
6193
  e(d);
6194
6194
  }, n);
6195
- }, fl = (e, t) => {
6195
+ }, pl = (e, t) => {
6196
6196
  const n = e != null;
6197
6197
  return [
6198
6198
  (r) => t[0]({
@@ -6202,7 +6202,7 @@ const hs = (e, t, n = 3) => {
6202
6202
  }),
6203
6203
  t[1]
6204
6204
  ];
6205
- }, pl = (e) => (...t) => A.asap(() => e(...t)), mg = gt.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, gt.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
6205
+ }, ml = (e) => (...t) => A.asap(() => e(...t)), mg = gt.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, gt.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
6206
6206
  new URL(gt.origin),
6207
6207
  gt.navigator && /(msie|trident)/i.test(gt.navigator.userAgent)
6208
6208
  ) : () => !0, gg = gt.hasStandardBrowserEnv ? (
@@ -6259,7 +6259,7 @@ function _g(e) {
6259
6259
  function Sg(e) {
6260
6260
  return _g(e).replace(wg, "");
6261
6261
  }
6262
- function ml(e, t) {
6262
+ function gl(e, t) {
6263
6263
  if (typeof e == "string" && vg.test(Sg(e)))
6264
6264
  throw new ee(
6265
6265
  'Invalid URL: missing "//" after protocol',
@@ -6267,12 +6267,12 @@ function ml(e, t) {
6267
6267
  t
6268
6268
  );
6269
6269
  }
6270
- function Bu(e, t, n, r) {
6271
- ml(t, r);
6270
+ function ju(e, t, n, r) {
6271
+ gl(t, r);
6272
6272
  let i = !bg(t);
6273
- return e && (i || n === !1) ? (ml(e, r), yg(e, t)) : t;
6273
+ return e && (i || n === !1) ? (gl(e, r), yg(e, t)) : t;
6274
6274
  }
6275
- const gl = (e) => e instanceof xt ? { ...e } : e;
6275
+ const bl = (e) => e instanceof xt ? { ...e } : e;
6276
6276
  function gr(e, t) {
6277
6277
  e = e || {}, t = t || {};
6278
6278
  const n = /* @__PURE__ */ Object.create(null);
@@ -6352,7 +6352,7 @@ function gr(e, t) {
6352
6352
  allowedSocketPaths: o,
6353
6353
  responseEncoding: o,
6354
6354
  validateStatus: u,
6355
- headers: (c, d, y) => i(gl(c), gl(d), y, !0)
6355
+ headers: (c, d, y) => i(bl(c), bl(d), y, !0)
6356
6356
  };
6357
6357
  return A.forEach(Object.keys({ ...e, ...t }), function(d) {
6358
6358
  if (d === "__proto__" || d === "constructor" || d === "prototype") return;
@@ -6374,14 +6374,14 @@ const Tg = (e) => encodeURIComponent(e).replace(
6374
6374
  /%([0-9A-F]{2})/gi,
6375
6375
  (t, n) => String.fromCharCode(parseInt(n, 16))
6376
6376
  );
6377
- function ju(e) {
6377
+ function $u(e) {
6378
6378
  const t = gr({}, e), n = (y) => A.hasOwnProp(t, y) ? t[y] : void 0, r = n("data");
6379
6379
  let i = n("withXSRFToken");
6380
6380
  const s = n("xsrfHeaderName"), o = n("xsrfCookieName");
6381
6381
  let a = n("headers");
6382
6382
  const u = n("auth"), h = n("baseURL"), c = n("allowAbsoluteUrls"), d = n("url");
6383
- if (t.headers = a = xt.from(a), t.url = qu(
6384
- Bu(h, d, c, t),
6383
+ if (t.headers = a = xt.from(a), t.url = Iu(
6384
+ ju(h, d, c, t),
6385
6385
  n("params"),
6386
6386
  n("paramsSerializer")
6387
6387
  ), u) {
@@ -6403,7 +6403,7 @@ function ju(e) {
6403
6403
  }
6404
6404
  const Eg = typeof XMLHttpRequest < "u", Ag = Eg && function(e) {
6405
6405
  return new Promise(function(n, r) {
6406
- const i = ju(e);
6406
+ const i = $u(e);
6407
6407
  let s = i.data;
6408
6408
  const o = xt.from(i.headers).normalize();
6409
6409
  let { responseType: a, onUploadProgress: u, onDownloadProgress: h } = i, c, d, y, p, v;
@@ -6425,7 +6425,7 @@ const Eg = typeof XMLHttpRequest < "u", Ag = Eg && function(e) {
6425
6425
  config: e,
6426
6426
  request: m
6427
6427
  };
6428
- Uu(
6428
+ Bu(
6429
6429
  function(O) {
6430
6430
  n(O), b();
6431
6431
  },
@@ -6444,7 +6444,7 @@ const Eg = typeof XMLHttpRequest < "u", Ag = Eg && function(e) {
6444
6444
  D.event = w || null, r(D), b(), m = null;
6445
6445
  }, m.ontimeout = function() {
6446
6446
  let w = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
6447
- const C = i.transitional || ha;
6447
+ const C = i.transitional || fa;
6448
6448
  i.timeoutErrorMessage && (w = i.timeoutErrorMessage), r(
6449
6449
  new ee(
6450
6450
  w,
@@ -6453,7 +6453,7 @@ const Eg = typeof XMLHttpRequest < "u", Ag = Eg && function(e) {
6453
6453
  m
6454
6454
  )
6455
6455
  ), b(), m = null;
6456
- }, s === void 0 && o.setContentType(null), "setRequestHeader" in m && A.forEach(Nu(o), function(w, C) {
6456
+ }, s === void 0 && o.setContentType(null), "setRequestHeader" in m && A.forEach(Ou(o), function(w, C) {
6457
6457
  m.setRequestHeader(C, w);
6458
6458
  }), A.isUndefined(i.withCredentials) || (m.withCredentials = !!i.withCredentials), a && a !== "json" && (m.responseType = i.responseType), h && ([y, v] = hs(h, !0), m.addEventListener("progress", y)), u && m.upload && ([d, p] = hs(u), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", p)), (i.cancelToken || i.signal) && (c = (S) => {
6459
6459
  m && (r(!S || S.type ? new Mi(null, e, m) : S), m.abort(), b(), m = null);
@@ -6524,7 +6524,7 @@ const Eg = typeof XMLHttpRequest < "u", Ag = Eg && function(e) {
6524
6524
  } finally {
6525
6525
  await t.cancel();
6526
6526
  }
6527
- }, bl = (e, t, n, r) => {
6527
+ }, yl = (e, t, n, r) => {
6528
6528
  const i = Dg(e, t);
6529
6529
  let s = 0, o, a = (u) => {
6530
6530
  o || (o = !0, r && r(u));
@@ -6595,10 +6595,10 @@ function Lg(e) {
6595
6595
  }
6596
6596
  return s;
6597
6597
  }
6598
- const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeURIComponent(e).replace(
6598
+ const ma = "1.18.1", vl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeURIComponent(e).replace(
6599
6599
  /%([0-9A-F]{2})/gi,
6600
6600
  (t, n) => String.fromCharCode(parseInt(n, 16))
6601
- ), vl = (e) => {
6601
+ ), wl = (e) => {
6602
6602
  if (!A.isString(e))
6603
6603
  return e;
6604
6604
  try {
@@ -6606,7 +6606,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6606
6606
  } catch {
6607
6607
  return e;
6608
6608
  }
6609
- }, wl = (e, ...t) => {
6609
+ }, _l = (e, ...t) => {
6610
6610
  try {
6611
6611
  return !!e(...t);
6612
6612
  } catch {
@@ -6631,7 +6631,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6631
6631
  const { fetch: i, Request: s, Response: o } = e, a = i ? Qi(i) : typeof fetch == "function", u = Qi(s), h = Qi(o);
6632
6632
  if (!a)
6633
6633
  return !1;
6634
- const c = a && Qi(n), d = a && (typeof r == "function" ? /* @__PURE__ */ ((f) => (g) => f.encode(g))(new r()) : async (f) => new Uint8Array(await new s(f).arrayBuffer())), y = u && c && wl(() => {
6634
+ const c = a && Qi(n), d = a && (typeof r == "function" ? /* @__PURE__ */ ((f) => (g) => f.encode(g))(new r()) : async (f) => new Uint8Array(await new s(f).arrayBuffer())), y = u && c && _l(() => {
6635
6635
  let f = !1;
6636
6636
  const g = new s(gt.origin, {
6637
6637
  body: new n(),
@@ -6641,7 +6641,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6641
6641
  }
6642
6642
  }), S = g.headers.has("Content-Type");
6643
6643
  return g.body != null && g.body.cancel(), f && !S;
6644
- }), p = h && c && wl(() => A.isReadableStream(new o("").body)), v = {
6644
+ }), p = h && c && _l(() => A.isReadableStream(new o("").body)), v = {
6645
6645
  stream: p && ((f) => f.body)
6646
6646
  };
6647
6647
  a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
@@ -6690,7 +6690,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6690
6690
  fetchOptions: U,
6691
6691
  maxContentLength: P,
6692
6692
  maxBodyLength: J
6693
- } = ju(f);
6693
+ } = $u(f);
6694
6694
  const te = A.isNumber(P) && P > -1, F = A.isNumber(J) && J > -1, ce = (K) => A.hasOwnProp(f, K) ? f[K] : void 0;
6695
6695
  let ie = i || fetch;
6696
6696
  V = V ? (V + "").toLowerCase() : "text";
@@ -6721,7 +6721,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6721
6721
  if (Mg(g)) {
6722
6722
  const ae = new URL(g, gt.origin);
6723
6723
  if (!K && (ae.username || ae.password)) {
6724
- const je = vl(ae.username), Le = vl(ae.password);
6724
+ const je = wl(ae.username), Le = wl(ae.password);
6725
6725
  K = {
6726
6726
  username: je,
6727
6727
  password: Le
@@ -6744,9 +6744,9 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6744
6744
  if (typeof ae == "number" && isFinite(ae) && (Ie = ae, ae > J))
6745
6745
  throw Ze();
6746
6746
  }
6747
- const Ue = F && (A.isReadableStream(w) || A.isStream(w)), L = (ae, je, Le) => bl(
6747
+ const Ue = F && (A.isReadableStream(w) || A.isStream(w)), L = (ae, je, Le) => yl(
6748
6748
  ae,
6749
- yl,
6749
+ vl,
6750
6750
  (Pe) => {
6751
6751
  if (F && Pe > J)
6752
6752
  throw He = Ze();
@@ -6762,9 +6762,9 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6762
6762
  duplex: "half"
6763
6763
  }), je;
6764
6764
  if (A.isFormData(w) && (je = ae.headers.get("content-type")) && j.setContentType(je), ae.body) {
6765
- const [Le, Pe] = I && fl(
6765
+ const [Le, Pe] = I && pl(
6766
6766
  Ie,
6767
- hs(pl(I))
6767
+ hs(ml(I))
6768
6768
  ) || [];
6769
6769
  w = L(ae.body, Le, Pe);
6770
6770
  }
@@ -6784,12 +6784,12 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6784
6784
  const ae = j.getContentType();
6785
6785
  ae && /^multipart\/form-data/i.test(ae) && !/boundary=/i.test(ae) && j.delete("content-type");
6786
6786
  }
6787
- j.set("User-Agent", "axios/" + pa, !1);
6787
+ j.set("User-Agent", "axios/" + ma, !1);
6788
6788
  const ve = {
6789
6789
  ...U,
6790
6790
  signal: ye,
6791
6791
  method: S.toUpperCase(),
6792
- headers: Nu(j.normalize()),
6792
+ headers: Ou(j.normalize()),
6793
6793
  body: w,
6794
6794
  duplex: "half",
6795
6795
  credentials: oe ? z : void 0
@@ -6813,9 +6813,9 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6813
6813
  ["status", "statusText", "headers"].forEach((Pt) => {
6814
6814
  ae[Pt] = Oe[Pt];
6815
6815
  });
6816
- const je = A.toFiniteNumber(Se.getContentLength()), [Le, Pe] = q && fl(
6816
+ const je = A.toFiniteNumber(Se.getContentLength()), [Le, Pe] = q && pl(
6817
6817
  je,
6818
- hs(pl(q), !0)
6818
+ hs(ml(q), !0)
6819
6819
  ) || [];
6820
6820
  let Wt = 0;
6821
6821
  const Lt = (Pt) => {
@@ -6829,7 +6829,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6829
6829
  Le && Le(Pt);
6830
6830
  };
6831
6831
  Oe = new o(
6832
- bl(Oe.body, yl, Lt, () => {
6832
+ yl(Oe.body, vl, Lt, () => {
6833
6833
  Pe && Pe(), ze && ze();
6834
6834
  }),
6835
6835
  ae
@@ -6851,7 +6851,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6851
6851
  );
6852
6852
  }
6853
6853
  return !Be && ze && ze(), await new Promise((ae, je) => {
6854
- Uu(ae, je, {
6854
+ Bu(ae, je, {
6855
6855
  data: he,
6856
6856
  headers: xt.from(Oe.headers),
6857
6857
  status: Oe.status,
@@ -6894,7 +6894,7 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6894
6894
  throw ee.from(K, K && K.code, f, ne, K && K.response);
6895
6895
  }
6896
6896
  };
6897
- }, Ig = /* @__PURE__ */ new Map(), $u = (e) => {
6897
+ }, Ig = /* @__PURE__ */ new Map(), Hu = (e) => {
6898
6898
  let t = e && e.env || {};
6899
6899
  const { fetch: n, Request: r, Response: i } = t, s = [r, i, n];
6900
6900
  let o = s.length, a = o, u, h, c = Ig;
@@ -6902,15 +6902,15 @@ const pa = "1.18.1", yl = 64 * 1024, { isFunction: Qi } = A, Pg = (e) => encodeU
6902
6902
  u = s[a], h = c.get(u), h === void 0 && c.set(u, h = a ? /* @__PURE__ */ new Map() : qg(t)), c = h;
6903
6903
  return h;
6904
6904
  };
6905
- $u();
6906
- const ma = {
6905
+ Hu();
6906
+ const ga = {
6907
6907
  http: Ym,
6908
6908
  xhr: Ag,
6909
6909
  fetch: {
6910
- get: $u
6910
+ get: Hu
6911
6911
  }
6912
6912
  };
6913
- A.forEach(ma, (e, t) => {
6913
+ A.forEach(ga, (e, t) => {
6914
6914
  if (e) {
6915
6915
  try {
6916
6916
  Object.defineProperty(e, "name", { __proto__: null, value: t });
@@ -6919,7 +6919,7 @@ A.forEach(ma, (e, t) => {
6919
6919
  Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
6920
6920
  }
6921
6921
  });
6922
- const _l = (e) => `- ${e}`, Fg = (e) => A.isFunction(e) || e === null || e === !1;
6922
+ const Sl = (e) => `- ${e}`, Fg = (e) => A.isFunction(e) || e === null || e === !1;
6923
6923
  function zg(e, t) {
6924
6924
  e = A.isArray(e) ? e : [e];
6925
6925
  const { length: n } = e;
@@ -6928,7 +6928,7 @@ function zg(e, t) {
6928
6928
  for (let o = 0; o < n; o++) {
6929
6929
  r = e[o];
6930
6930
  let a;
6931
- if (i = r, !Fg(r) && (i = ma[(a = String(r)).toLowerCase()], i === void 0))
6931
+ if (i = r, !Fg(r) && (i = ga[(a = String(r)).toLowerCase()], i === void 0))
6932
6932
  throw new ee(`Unknown adapter '${a}'`);
6933
6933
  if (i && (A.isFunction(i) || (i = i.get(t))))
6934
6934
  break;
@@ -6939,8 +6939,8 @@ function zg(e, t) {
6939
6939
  ([u, h]) => `adapter ${u} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
6940
6940
  );
6941
6941
  let a = n ? o.length > 1 ? `since :
6942
- ` + o.map(_l).join(`
6943
- `) : " " + _l(o[0]) : "as no adapter specified";
6942
+ ` + o.map(Sl).join(`
6943
+ `) : " " + Sl(o[0]) : "as no adapter specified";
6944
6944
  throw new ee(
6945
6945
  "There is no suitable adapter to dispatch the request " + a,
6946
6946
  ee.ERR_NOT_SUPPORT
@@ -6948,7 +6948,7 @@ function zg(e, t) {
6948
6948
  }
6949
6949
  return i;
6950
6950
  }
6951
- const Hu = {
6951
+ const Vu = {
6952
6952
  /**
6953
6953
  * Resolve an adapter from a list of adapter names or functions.
6954
6954
  * @type {Function}
@@ -6958,14 +6958,14 @@ const Hu = {
6958
6958
  * Exposes all known adapters
6959
6959
  * @type {Object<string, Function|Object>}
6960
6960
  */
6961
- adapters: ma
6961
+ adapters: ga
6962
6962
  };
6963
6963
  function Ws(e) {
6964
6964
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
6965
6965
  throw new Mi(null, e);
6966
6966
  }
6967
- function Sl(e) {
6968
- return Ws(e), e.headers = xt.from(e.headers), e.data = Qs.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Hu.getAdapter(e.adapter || Pi.adapter, e)(e).then(
6967
+ function xl(e) {
6968
+ return Ws(e), e.headers = xt.from(e.headers), e.data = Qs.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Vu.getAdapter(e.adapter || Pi.adapter, e)(e).then(
6969
6969
  function(r) {
6970
6970
  Ws(e), e.response = r;
6971
6971
  try {
@@ -6976,7 +6976,7 @@ function Sl(e) {
6976
6976
  return r.headers = xt.from(r.headers), r;
6977
6977
  },
6978
6978
  function(r) {
6979
- if (!zu(r) && (Ws(e), r && r.response)) {
6979
+ if (!Uu(r) && (Ws(e), r && r.response)) {
6980
6980
  e.response = r.response;
6981
6981
  try {
6982
6982
  r.response.data = Qs.call(
@@ -6999,10 +6999,10 @@ const ks = {};
6999
6999
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
7000
7000
  };
7001
7001
  });
7002
- const xl = {};
7002
+ const Cl = {};
7003
7003
  ks.transitional = function(t, n, r) {
7004
7004
  function i(s, o) {
7005
- return "[Axios v" + pa + "] Transitional option '" + s + "'" + o + (r ? ". " + r : "");
7005
+ return "[Axios v" + ma + "] Transitional option '" + s + "'" + o + (r ? ". " + r : "");
7006
7006
  }
7007
7007
  return (s, o, a) => {
7008
7008
  if (t === !1)
@@ -7010,7 +7010,7 @@ ks.transitional = function(t, n, r) {
7010
7010
  i(o, " has been removed" + (n ? " in " + n : "")),
7011
7011
  ee.ERR_DEPRECATED
7012
7012
  );
7013
- return n && !xl[o] && (xl[o] = !0, console.warn(
7013
+ return n && !Cl[o] && (Cl[o] = !0, console.warn(
7014
7014
  i(
7015
7015
  o,
7016
7016
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -7048,8 +7048,8 @@ const rs = {
7048
7048
  let fr = class {
7049
7049
  constructor(t) {
7050
7050
  this.defaults = t || {}, this.interceptors = {
7051
- request: new dl(),
7052
- response: new dl()
7051
+ request: new hl(),
7052
+ response: new hl()
7053
7053
  };
7054
7054
  }
7055
7055
  /**
@@ -7131,7 +7131,7 @@ let fr = class {
7131
7131
  if (typeof b.runWhen == "function" && b.runWhen(n) === !1)
7132
7132
  return;
7133
7133
  u = u && b.synchronous;
7134
- const m = n.transitional || ha;
7134
+ const m = n.transitional || fa;
7135
7135
  m && m.legacyInterceptorReqResOrdering ? a.unshift(b.fulfilled, b.rejected) : a.push(b.fulfilled, b.rejected);
7136
7136
  });
7137
7137
  const h = [];
@@ -7140,7 +7140,7 @@ let fr = class {
7140
7140
  });
7141
7141
  let c, d = 0, y;
7142
7142
  if (!u) {
7143
- const v = [Sl.bind(this), void 0];
7143
+ const v = [xl.bind(this), void 0];
7144
7144
  for (v.unshift(...a), v.push(...h), y = v.length, c = Promise.resolve(n); d < y; )
7145
7145
  c = c.then(v[d++], v[d++]);
7146
7146
  return c;
@@ -7157,7 +7157,7 @@ let fr = class {
7157
7157
  }
7158
7158
  }
7159
7159
  try {
7160
- c = Sl.call(this, p);
7160
+ c = xl.call(this, p);
7161
7161
  } catch (v) {
7162
7162
  return Promise.reject(v);
7163
7163
  }
@@ -7167,8 +7167,8 @@ let fr = class {
7167
7167
  }
7168
7168
  getUri(t) {
7169
7169
  t = gr(this.defaults, t);
7170
- const n = Bu(t.baseURL, t.url, t.allowAbsoluteUrls, t);
7171
- return qu(n, t.params, t.paramsSerializer);
7170
+ const n = ju(t.baseURL, t.url, t.allowAbsoluteUrls, t);
7171
+ return Iu(n, t.params, t.paramsSerializer);
7172
7172
  }
7173
7173
  };
7174
7174
  A.forEach(["delete", "get", "head", "options"], function(t) {
@@ -7199,7 +7199,7 @@ A.forEach(["post", "put", "patch", "query"], function(t) {
7199
7199
  }
7200
7200
  fr.prototype[t] = n(), t !== "query" && (fr.prototype[t + "Form"] = n(!0));
7201
7201
  });
7202
- let Bg = class Vu {
7202
+ let Bg = class Qu {
7203
7203
  constructor(t) {
7204
7204
  if (typeof t != "function")
7205
7205
  throw new TypeError("executor must be a function.");
@@ -7265,7 +7265,7 @@ let Bg = class Vu {
7265
7265
  static source() {
7266
7266
  let t;
7267
7267
  return {
7268
- token: new Vu(function(i) {
7268
+ token: new Qu(function(i) {
7269
7269
  t = i;
7270
7270
  }),
7271
7271
  cancel: t
@@ -7354,18 +7354,18 @@ const qo = {
7354
7354
  Object.entries(qo).forEach(([e, t]) => {
7355
7355
  qo[t] = e;
7356
7356
  });
7357
- function Qu(e) {
7358
- const t = new fr(e), n = Su(fr.prototype.request, t);
7357
+ function Wu(e) {
7358
+ const t = new fr(e), n = xu(fr.prototype.request, t);
7359
7359
  return A.extend(n, fr.prototype, t, { allOwnKeys: !0 }), A.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
7360
- return Qu(gr(e, i));
7360
+ return Wu(gr(e, i));
7361
7361
  }, n;
7362
7362
  }
7363
- const Xe = Qu(Pi);
7363
+ const Xe = Wu(Pi);
7364
7364
  Xe.Axios = fr;
7365
7365
  Xe.CanceledError = Mi;
7366
7366
  Xe.CancelToken = Bg;
7367
- Xe.isCancel = zu;
7368
- Xe.VERSION = pa;
7367
+ Xe.isCancel = Uu;
7368
+ Xe.VERSION = ma;
7369
7369
  Xe.toFormData = As;
7370
7370
  Xe.AxiosError = ee;
7371
7371
  Xe.Cancel = Xe.CanceledError;
@@ -7376,8 +7376,8 @@ Xe.spread = jg;
7376
7376
  Xe.isAxiosError = $g;
7377
7377
  Xe.mergeConfig = gr;
7378
7378
  Xe.AxiosHeaders = xt;
7379
- Xe.formToJSON = (e) => Fu(A.isHTMLForm(e) ? new FormData(e) : e);
7380
- Xe.getAdapter = Hu.getAdapter;
7379
+ Xe.formToJSON = (e) => zu(A.isHTMLForm(e) ? new FormData(e) : e);
7380
+ Xe.getAdapter = Vu.getAdapter;
7381
7381
  Xe.HttpStatusCode = qo;
7382
7382
  Xe.default = Xe;
7383
7383
  const {
@@ -7399,22 +7399,22 @@ const {
7399
7399
  mergeConfig: iS,
7400
7400
  create: sS
7401
7401
  } = Xe;
7402
- let Wu = "", Gu = "/api";
7402
+ let Gu = "", Ku = "/api";
7403
7403
  function Hg(e) {
7404
- Wu = e.replace(/\/+$/, "");
7404
+ Gu = e.replace(/\/+$/, "");
7405
7405
  }
7406
7406
  function Vg(e) {
7407
7407
  const t = e.trim().replace(/\/+$/, "");
7408
- t && (Gu = t.startsWith("/") ? t : `/${t}`);
7408
+ t && (Ku = t.startsWith("/") ? t : `/${t}`);
7409
7409
  }
7410
- function Cl() {
7410
+ function Tl() {
7411
7411
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `${Date.now().toString(16)}-${Math.random().toString(16).slice(2)}`;
7412
7412
  }
7413
7413
  const Ke = Xe.create({ timeout: 3e4 });
7414
7414
  Ke.interceptors.request.use(async (e) => {
7415
7415
  var r, i;
7416
7416
  const { useEditorStore: t } = await Promise.resolve().then(() => Fp), n = (r = t.getState().editorConfig) == null ? void 0 : r.context;
7417
- return e.headers = e.headers ?? {}, e.headers.Accept = "application/json", e.headers["X-Source"] = "web", e.headers.ts = (/* @__PURE__ */ new Date()).toISOString(), e.headers["X-msgid"] = Cl(), e.headers["X-Request-Id"] = Cl(), n != null && n.authToken && (e.headers.Authorization = `Bearer ${n.authToken}`), n != null && n.channel && (e.headers["X-Channel-Id"] = n.channel), n != null && n.did && (e.headers["X-Device-ID"] = n.did), (i = n == null ? void 0 : n.pdata) != null && i.id && (e.headers["X-App-Id"] = n.pdata.id), e.baseURL = `${Wu}${Gu}`, e;
7417
+ return e.headers = e.headers ?? {}, e.headers.Accept = "application/json", e.headers["X-Source"] = "web", e.headers.ts = (/* @__PURE__ */ new Date()).toISOString(), e.headers["X-msgid"] = Tl(), e.headers["X-Request-Id"] = Tl(), n != null && n.authToken && (e.headers.Authorization = `Bearer ${n.authToken}`), n != null && n.channel && (e.headers["X-Channel-Id"] = n.channel), n != null && n.did && (e.headers["X-Device-ID"] = n.did), (i = n == null ? void 0 : n.pdata) != null && i.id && (e.headers["X-App-Id"] = n.pdata.id), e.baseURL = `${Gu}${Ku}`, e;
7418
7418
  });
7419
7419
  Ke.interceptors.response.use(
7420
7420
  (e) => {
@@ -7487,8 +7487,8 @@ const Je = {
7487
7487
  telemetry: "/data/v3/telemetry",
7488
7488
  assetProxy: "/assets/public/"
7489
7489
  };
7490
- function Ku(e, t) {
7491
- const n = e ?? {}, r = n.identifier ?? "", i = n.objectType ?? "", s = n.mimeType ?? "", o = n.primaryCategory ?? "", a = s === "application/vnd.ekstep.content-collection" || i === "QuestionSet" || o === "Question Set" || n.visibility === "Parent", u = i === "Question" || s === "application/vnd.sunbird.question", h = n.children, c = Array.isArray(h) ? h.map((d) => Ku(d, r)) : [];
7490
+ function Yu(e, t) {
7491
+ const n = e ?? {}, r = n.identifier ?? "", i = n.objectType ?? "", s = n.mimeType ?? "", o = n.primaryCategory ?? "", a = s === "application/vnd.ekstep.content-collection" || i === "QuestionSet" || o === "Question Set" || n.visibility === "Parent", u = i === "Question" || s === "application/vnd.sunbird.question", h = n.children, c = Array.isArray(h) ? h.map((d) => Yu(d, r)) : [];
7492
7492
  return {
7493
7493
  id: r,
7494
7494
  identifier: r,
@@ -7529,7 +7529,7 @@ async function Gg(e) {
7529
7529
  const p = ((c = (h = t.data) == null ? void 0 : h.params) == null ? void 0 : c.errmsg) || ((y = (d = t.data) == null ? void 0 : d.params) == null ? void 0 : y.err) || `No content returned for "${e}"`;
7530
7530
  throw new Error(`Unable to load hierarchy: ${p}`);
7531
7531
  }
7532
- return { content: n, rootNode: Ku(n) };
7532
+ return { content: n, rootNode: Yu(n) };
7533
7533
  }
7534
7534
  async function Kg(e, t, n, r) {
7535
7535
  var s, o;
@@ -7566,7 +7566,7 @@ function Zg(e) {
7566
7566
  const r = Number(n.value);
7567
7567
  return Number.isFinite(r) ? r : void 0;
7568
7568
  }
7569
- function Tl(e, t) {
7569
+ function El(e, t) {
7570
7570
  var n;
7571
7571
  return {
7572
7572
  code: e.code ?? "",
@@ -7619,8 +7619,8 @@ function Tn(e) {
7619
7619
  if (Array.isArray(i.fields)) {
7620
7620
  const s = i.name ?? i.title ?? "", o = eb[s] ?? s ?? "Details";
7621
7621
  for (const a of i.fields)
7622
- a.code && n.push(Tl(a, r(a.code, o)));
7623
- } else i.code && n.push(Tl(i, r(i.code, "Details")));
7622
+ a.code && n.push(El(a, r(a.code, o)));
7623
+ } else i.code && n.push(El(i, r(i.code, "Details")));
7624
7624
  return n.sort((i, s) => (i.index ?? 0) - (s.index ?? 0));
7625
7625
  }
7626
7626
  function nb(e) {
@@ -7735,8 +7735,8 @@ function ib({ config: e, onError: t }) {
7735
7735
  };
7736
7736
  }, [e.context.contentId, e.context.identifier]), { isLoading: n, error: i, isReady: o };
7737
7737
  }
7738
- const Yu = Qd(null);
7739
- function Xu(e, t) {
7738
+ const Xu = Qd(null);
7739
+ function Ju(e, t) {
7740
7740
  return ss("span", {
7741
7741
  style: {
7742
7742
  display: "grid",
@@ -7753,7 +7753,7 @@ function Xu(e, t) {
7753
7753
  }
7754
7754
  }, t);
7755
7755
  }
7756
- const Ju = {
7756
+ const Zu = {
7757
7757
  fontFamily: "var(--sb-font)",
7758
7758
  fontSize: "14px",
7759
7759
  fontWeight: 600,
@@ -7766,16 +7766,16 @@ const Ju = {
7766
7766
  maxWidth: "440px"
7767
7767
  };
7768
7768
  function Ar(e) {
7769
- iu.success(e, {
7770
- style: Ju,
7771
- icon: Xu("var(--sb-green, #16a34a)", "✓")
7769
+ su.success(e, {
7770
+ style: Zu,
7771
+ icon: Ju("var(--sb-green, #16a34a)", "✓")
7772
7772
  });
7773
7773
  }
7774
7774
  function br(e) {
7775
- iu.error(e, {
7776
- style: Ju,
7775
+ su.error(e, {
7776
+ style: Zu,
7777
7777
  duration: 5e3,
7778
- icon: Xu("var(--sb-red, #dc2626)", "✕")
7778
+ icon: Ju("var(--sb-red, #dc2626)", "✕")
7779
7779
  }), Promise.resolve().then(() => $p).then(({ telemetryError: t }) => t(e));
7780
7780
  }
7781
7781
  function Rs(e, t) {
@@ -7912,7 +7912,7 @@ function cb(e, t, n, r) {
7912
7912
  }
7913
7913
  return { nodesModified: i, hierarchy: s };
7914
7914
  }
7915
- function Zu() {
7915
+ function ed() {
7916
7916
  const [e, t] = ue(!1), n = Ge(!1), r = re((h) => h.isDirty), i = re((h) => h.lastSaved), { setIsDirty: s, setLastSaved: o } = re(), a = re((h) => h.editorConfig);
7917
7917
  return { save: xe(async () => {
7918
7918
  var y, p;
@@ -8157,7 +8157,7 @@ Bt.displayName = "Button";
8157
8157
  * This source code is licensed under the ISC license.
8158
8158
  * See the LICENSE file in the root directory of this source tree.
8159
8159
  */
8160
- const hy = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ed = (...e) => e.filter((t, n, r) => !!t && r.indexOf(t) === n).join(" ");
8160
+ const hy = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), td = (...e) => e.filter((t, n, r) => !!t && r.indexOf(t) === n).join(" ");
8161
8161
  /**
8162
8162
  * @license lucide-react v0.400.0 - ISC
8163
8163
  *
@@ -8181,7 +8181,7 @@ var fy = {
8181
8181
  * This source code is licensed under the ISC license.
8182
8182
  * See the LICENSE file in the root directory of this source tree.
8183
8183
  */
8184
- const py = Dc(
8184
+ const py = Nc(
8185
8185
  ({
8186
8186
  color: e = "currentColor",
8187
8187
  size: t = 24,
@@ -8200,7 +8200,7 @@ const py = Dc(
8200
8200
  height: t,
8201
8201
  stroke: e,
8202
8202
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
8203
- className: ed("lucide", i),
8203
+ className: td("lucide", i),
8204
8204
  ...a
8205
8205
  },
8206
8206
  [
@@ -8215,12 +8215,12 @@ const py = Dc(
8215
8215
  * This source code is licensed under the ISC license.
8216
8216
  * See the LICENSE file in the root directory of this source tree.
8217
8217
  */
8218
- const ga = (e, t) => {
8219
- const n = Dc(
8218
+ const ba = (e, t) => {
8219
+ const n = Nc(
8220
8220
  ({ className: r, ...i }, s) => ss(py, {
8221
8221
  ref: s,
8222
8222
  iconNode: t,
8223
- className: ed(`lucide-${hy(e)}`, r),
8223
+ className: td(`lucide-${hy(e)}`, r),
8224
8224
  ...i
8225
8225
  })
8226
8226
  );
@@ -8232,7 +8232,7 @@ const ga = (e, t) => {
8232
8232
  * This source code is licensed under the ISC license.
8233
8233
  * See the LICENSE file in the root directory of this source tree.
8234
8234
  */
8235
- const my = ga("Monitor", [
8235
+ const my = ba("Monitor", [
8236
8236
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
8237
8237
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
8238
8238
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
@@ -8243,7 +8243,7 @@ const my = ga("Monitor", [
8243
8243
  * This source code is licensed under the ISC license.
8244
8244
  * See the LICENSE file in the root directory of this source tree.
8245
8245
  */
8246
- const gy = ga("Smartphone", [
8246
+ const gy = ba("Smartphone", [
8247
8247
  ["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
8248
8248
  ["path", { d: "M12 18h.01", key: "mhygvu" }]
8249
8249
  ]);
@@ -8253,7 +8253,7 @@ const gy = ga("Smartphone", [
8253
8253
  * This source code is licensed under the ISC license.
8254
8254
  * See the LICENSE file in the root directory of this source tree.
8255
8255
  */
8256
- const td = ga("X", [
8256
+ const nd = ba("X", [
8257
8257
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
8258
8258
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
8259
8259
  ]), by = "_overlay_dz5ra_1", yy = "_overlayClosing_dz5ra_27", vy = "_card_dz5ra_39", wy = "_header_dz5ra_91", _y = "_title_dz5ra_100", Sy = "_closeButton_dz5ra_108", xy = "_body_dz5ra_132", Cy = "_footer_dz5ra_149", An = {
@@ -8273,7 +8273,7 @@ const td = ga("X", [
8273
8273
  closeButton: Sy,
8274
8274
  body: xy,
8275
8275
  footer: Cy
8276
- }, nd = ({
8276
+ }, rd = ({
8277
8277
  title: e,
8278
8278
  isOpen: t,
8279
8279
  onClose: n,
@@ -8318,7 +8318,7 @@ const td = ga("X", [
8318
8318
  An.card,
8319
8319
  s !== "md" ? An[`card--${s}`] : "",
8320
8320
  h
8321
- ].filter(Boolean).join(" "), m = Wd(Yu), f = u ?? m ?? (typeof document < "u" ? document.querySelector(".ce") ?? document.body : null);
8321
+ ].filter(Boolean).join(" "), m = Wd(Xu), f = u ?? m ?? (typeof document < "u" ? document.querySelector(".ce") ?? document.body : null);
8322
8322
  return f ? _n(
8323
8323
  /* @__PURE__ */ l(
8324
8324
  "div",
@@ -8347,7 +8347,7 @@ const td = ga("X", [
8347
8347
  className: An.closeButton,
8348
8348
  onClick: n,
8349
8349
  "aria-label": "Close dialog",
8350
- children: /* @__PURE__ */ l(td, { size: 18, strokeWidth: 2, "aria-hidden": "true" })
8350
+ children: /* @__PURE__ */ l(nd, { size: 18, strokeWidth: 2, "aria-hidden": "true" })
8351
8351
  }
8352
8352
  )
8353
8353
  ] }),
@@ -8363,7 +8363,7 @@ const td = ga("X", [
8363
8363
  };
8364
8364
  function Ye() {
8365
8365
  const e = re((t) => t.labels);
8366
- return (t, n) => oa(e, t, n);
8366
+ return (t, n) => aa(e, t, n);
8367
8367
  }
8368
8368
  const Ty = "_root_11x2q_1", Ey = "_intro_11x2q_7", Ay = "_checklist_11x2q_14", ky = "_item_11x2q_23", Ry = "_itemLabel_11x2q_28", Dy = "_checkbox_11x2q_45", Ny = "_customCheck_11x2q_56", Oy = "_customCheckChecked_11x2q_86", Ly = "_itemText_11x2q_94", sn = {
8369
8369
  root: Ty,
@@ -8395,7 +8395,7 @@ const Ty = "_root_11x2q_1", Ey = "_intro_11x2q_7", Ay = "_checklist_11x2q_14", k
8395
8395
  /* @__PURE__ */ l(Bt, { variant: "primary", disabled: !u, onClick: t, children: r("button_labels.publish_collection_btn_label", "Publish") })
8396
8396
  ] });
8397
8397
  return /* @__PURE__ */ l(
8398
- nd,
8398
+ rd,
8399
8399
  {
8400
8400
  title: r("lbl.publishCollection", "Publish ${objectType}").replace("${objectType}", "Question Set"),
8401
8401
  isOpen: !0,
@@ -8464,7 +8464,7 @@ const Ty = "_root_11x2q_1", Ey = "_intro_11x2q_7", Ay = "_checklist_11x2q_14", k
8464
8464
  }, S = (C) => {
8465
8465
  u(C.target.value), d && y("");
8466
8466
  };
8467
- return /* @__PURE__ */ l(nd, { title: p, isOpen: !0, onClose: r, footer: /* @__PURE__ */ E(st, { children: [
8467
+ return /* @__PURE__ */ l(rd, { title: p, isOpen: !0, onClose: r, footer: /* @__PURE__ */ E(st, { children: [
8468
8468
  /* @__PURE__ */ l(Bt, { variant: "ghost", onClick: r, children: "Cancel" }),
8469
8469
  /* @__PURE__ */ l(Bt, { variant: b, onClick: f, children: v })
8470
8470
  ] }), size: "md", children: /* @__PURE__ */ E("div", { className: Rt.root, children: [
@@ -8532,7 +8532,7 @@ const Ty = "_root_11x2q_1", Ey = "_intro_11x2q_7", Ay = "_checklist_11x2q_14", k
8532
8532
  function iv(e) {
8533
8533
  return typeof e == "string" && e.trim().length > 0 ? e.trim() : "Draft";
8534
8534
  }
8535
- const El = ({
8535
+ const Al = ({
8536
8536
  titleText: e,
8537
8537
  labelText: t,
8538
8538
  placeholderText: n = "",
@@ -8680,7 +8680,7 @@ const El = ({
8680
8680
  onToolbarEvent: o
8681
8681
  }) => {
8682
8682
  var Ie, He, Ze;
8683
- const a = re((K) => K.reviewComments), u = re((K) => K.labels), h = (K, _e) => oa(u, K, _e), d = ge((K) => K.treeData)[0], y = (d == null ? void 0 : d.name) ?? "Untitled", p = iv(((Ie = d == null ? void 0 : d.metadata) == null ? void 0 : Ie.status) ?? (d == null ? void 0 : d.status)), v = re(
8683
+ const a = re((K) => K.reviewComments), u = re((K) => K.labels), h = (K, _e) => aa(u, K, _e), d = ge((K) => K.treeData)[0], y = (d == null ? void 0 : d.name) ?? "Untitled", p = iv(((Ie = d == null ? void 0 : d.metadata) == null ? void 0 : Ie.status) ?? (d == null ? void 0 : d.status)), v = re(
8684
8684
  (K) => {
8685
8685
  var _e, Ue, L, oe;
8686
8686
  return ((Ue = (_e = K.editorConfig) == null ? void 0 : _e.context) == null ? void 0 : Ue.contentId) ?? ((oe = (L = K.editorConfig) == null ? void 0 : L.context) == null ? void 0 : oe.identifier) ?? "";
@@ -8957,7 +8957,7 @@ const El = ({
8957
8957
  }
8958
8958
  ),
8959
8959
  D && /* @__PURE__ */ l(
8960
- El,
8960
+ Al,
8961
8961
  {
8962
8962
  titleText: "Reject Question Set",
8963
8963
  labelText: "Reason for rejection",
@@ -8971,7 +8971,7 @@ const El = ({
8971
8971
  }
8972
8972
  ),
8973
8973
  q && /* @__PURE__ */ l(
8974
- El,
8974
+ Al,
8975
8975
  {
8976
8976
  titleText: "Send Back for Corrections",
8977
8977
  labelText: "Corrections needed",
@@ -8983,12 +8983,12 @@ const El = ({
8983
8983
  }
8984
8984
  )
8985
8985
  ] });
8986
- }, ba = /* @__PURE__ */ new Map(), Io = /* @__PURE__ */ new Map(), Fo = /* @__PURE__ */ new Map(), zo = /* @__PURE__ */ new Map();
8986
+ }, ya = /* @__PURE__ */ new Map(), Io = /* @__PURE__ */ new Map(), Fo = /* @__PURE__ */ new Map(), zo = /* @__PURE__ */ new Map();
8987
8987
  function Nn(e) {
8988
- ba.set(e.key, e), Io.set(e.qType.toUpperCase(), e), (e.qTypeAliases ?? []).forEach((t) => Io.set(t.toUpperCase(), e)), Fo.set(e.primaryCategory.toLowerCase(), e), (e.categoryAliases ?? []).forEach((t) => Fo.set(t.toLowerCase(), e)), e.interactionType && !zo.has(e.interactionType) && zo.set(e.interactionType, e);
8988
+ ya.set(e.key, e), Io.set(e.qType.toUpperCase(), e), (e.qTypeAliases ?? []).forEach((t) => Io.set(t.toUpperCase(), e)), Fo.set(e.primaryCategory.toLowerCase(), e), (e.categoryAliases ?? []).forEach((t) => Fo.set(t.toLowerCase(), e)), e.interactionType && !zo.has(e.interactionType) && zo.set(e.interactionType, e);
8989
8989
  }
8990
8990
  function av(e) {
8991
- return e && ba.get(e) || null;
8991
+ return e && ya.get(e) || null;
8992
8992
  }
8993
8993
  function lv(e) {
8994
8994
  return e && Io.get(e.toUpperCase()) || null;
@@ -9000,10 +9000,10 @@ function uv(e) {
9000
9000
  return e && zo.get(e) || null;
9001
9001
  }
9002
9002
  function dv() {
9003
- return [...ba.values()];
9003
+ return [...ya.values()];
9004
9004
  }
9005
9005
  /*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */
9006
- function Al(e, t) {
9006
+ function kl(e, t) {
9007
9007
  (t == null || t > e.length) && (t = e.length);
9008
9008
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
9009
9009
  return r;
@@ -9038,13 +9038,13 @@ function mv(e, t) {
9038
9038
  }
9039
9039
  function gv(e, t) {
9040
9040
  if (e) {
9041
- if (typeof e == "string") return Al(e, t);
9041
+ if (typeof e == "string") return kl(e, t);
9042
9042
  var n = {}.toString.call(e).slice(8, -1);
9043
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Al(e, t) : void 0;
9043
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kl(e, t) : void 0;
9044
9044
  }
9045
9045
  }
9046
- const rd = Object.entries, kl = Object.setPrototypeOf, bv = Object.isFrozen, yv = Object.getPrototypeOf, vv = Object.getOwnPropertyDescriptor;
9047
- let bt = Object.freeze, yt = Object.seal, Er = Object.create, id = typeof Reflect < "u" && Reflect, Uo = id.apply, Bo = id.construct;
9046
+ const id = Object.entries, Rl = Object.setPrototypeOf, bv = Object.isFrozen, yv = Object.getPrototypeOf, vv = Object.getOwnPropertyDescriptor;
9047
+ let bt = Object.freeze, yt = Object.seal, Er = Object.create, sd = typeof Reflect < "u" && Reflect, Uo = sd.apply, Bo = sd.construct;
9048
9048
  bt || (bt = function(t) {
9049
9049
  return t;
9050
9050
  });
@@ -9061,7 +9061,7 @@ Bo || (Bo = function(t) {
9061
9061
  r[i - 1] = arguments[i];
9062
9062
  return new t(...r);
9063
9063
  });
9064
- const ti = it(Array.prototype.forEach), wv = it(Array.prototype.lastIndexOf), Rl = it(Array.prototype.pop), xr = it(Array.prototype.push), _v = it(Array.prototype.splice), Pn = Array.isArray, ai = it(String.prototype.toLowerCase), Ys = it(String.prototype.toString), Dl = it(String.prototype.match), ni = it(String.prototype.replace), Nl = it(String.prototype.indexOf), Sv = it(String.prototype.trim), xv = it(Number.prototype.toString), Cv = it(Boolean.prototype.toString), Ol = typeof BigInt > "u" ? null : it(BigInt.prototype.toString), Ll = typeof Symbol > "u" ? null : it(Symbol.prototype.toString), ct = it(Object.prototype.hasOwnProperty), ri = it(Object.prototype.toString), ft = it(RegExp.prototype.test), Yn = Tv(TypeError);
9064
+ const ti = it(Array.prototype.forEach), wv = it(Array.prototype.lastIndexOf), Dl = it(Array.prototype.pop), xr = it(Array.prototype.push), _v = it(Array.prototype.splice), Pn = Array.isArray, ai = it(String.prototype.toLowerCase), Ys = it(String.prototype.toString), Nl = it(String.prototype.match), ni = it(String.prototype.replace), Ol = it(String.prototype.indexOf), Sv = it(String.prototype.trim), xv = it(Number.prototype.toString), Cv = it(Boolean.prototype.toString), Ll = typeof BigInt > "u" ? null : it(BigInt.prototype.toString), Pl = typeof Symbol > "u" ? null : it(Symbol.prototype.toString), ct = it(Object.prototype.hasOwnProperty), ri = it(Object.prototype.toString), ft = it(RegExp.prototype.test), Yn = Tv(TypeError);
9065
9065
  function it(e) {
9066
9066
  return function(t) {
9067
9067
  t instanceof RegExp && (t.lastIndex = 0);
@@ -9079,7 +9079,7 @@ function Tv(e) {
9079
9079
  }
9080
9080
  function ke(e, t) {
9081
9081
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ai;
9082
- if (kl && kl(e, null), !Pn(t))
9082
+ if (Rl && Rl(e, null), !Pn(t))
9083
9083
  return e;
9084
9084
  let r = t.length;
9085
9085
  for (; r--; ) {
@@ -9099,7 +9099,7 @@ function Ev(e) {
9099
9099
  }
9100
9100
  function Tt(e) {
9101
9101
  const t = Er(null);
9102
- for (const r of rd(e)) {
9102
+ for (const r of id(e)) {
9103
9103
  var n = mv(r, 2);
9104
9104
  const i = n[0], s = n[1];
9105
9105
  ct(e, i) && (Pn(s) ? t[i] = Ev(s) : s && typeof s == "object" && s.constructor === Object ? t[i] = Tt(s) : t[i] = s);
@@ -9115,9 +9115,9 @@ function Av(e) {
9115
9115
  case "boolean":
9116
9116
  return Cv(e);
9117
9117
  case "bigint":
9118
- return Ol ? Ol(e) : "0";
9118
+ return Ll ? Ll(e) : "0";
9119
9119
  case "symbol":
9120
- return Ll ? Ll(e) : "Symbol()";
9120
+ return Pl ? Pl(e) : "Symbol()";
9121
9121
  case "undefined":
9122
9122
  return ri(e);
9123
9123
  case "function":
@@ -9158,13 +9158,13 @@ function kv(e) {
9158
9158
  return !1;
9159
9159
  }
9160
9160
  }
9161
- const Pl = bt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Xs = bt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Js = bt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Rv = bt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Zs = bt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Dv = bt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ml = bt(["#text"]), ql = bt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), eo = bt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Il = bt(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Wi = bt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nv = yt(/{{[\w\W]*|^[\w\W]*}}/g), Ov = yt(/<%[\w\W]*|^[\w\W]*%>/g), Lv = yt(/\${[\w\W]*/g), Pv = yt(/^data-[\-\w.\u00B7-\uFFFF]+$/), Mv = yt(/^aria-[\-\w]+$/), Fl = yt(
9161
+ const Ml = bt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Xs = bt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Js = bt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Rv = bt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Zs = bt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Dv = bt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ql = bt(["#text"]), Il = bt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), eo = bt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fl = bt(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Wi = bt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nv = yt(/{{[\w\W]*|^[\w\W]*}}/g), Ov = yt(/<%[\w\W]*|^[\w\W]*%>/g), Lv = yt(/\${[\w\W]*/g), Pv = yt(/^data-[\-\w.\u00B7-\uFFFF]+$/), Mv = yt(/^aria-[\-\w]+$/), zl = yt(
9162
9162
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
9163
9163
  // eslint-disable-line no-useless-escape
9164
9164
  ), qv = yt(/^(?:\w+script|data):/i), Iv = yt(
9165
9165
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
9166
9166
  // eslint-disable-line no-control-regex
9167
- ), Fv = yt(/^html$/i), zv = yt(/^[a-z][.\w]*(-[.\w]+)+$/i), zl = yt(/<[/\w!]/g), Uv = yt(/<[/\w]/g), Bv = yt(/<\/no(script|embed|frames)/i), jv = yt(/\/>/i), on = {
9167
+ ), Fv = yt(/^html$/i), zv = yt(/^[a-z][.\w]*(-[.\w]+)+$/i), Ul = yt(/<[/\w!]/g), Uv = yt(/<[/\w]/g), Bv = yt(/<\/no(script|embed|frames)/i), jv = yt(/\/>/i), on = {
9168
9168
  element: 1,
9169
9169
  attribute: 2,
9170
9170
  text: 3,
@@ -9201,7 +9201,7 @@ const Pl = bt(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
9201
9201
  } catch {
9202
9202
  return console.warn("TrustedTypes policy " + s + " could not be created."), null;
9203
9203
  }
9204
- }, Ul = function() {
9204
+ }, Bl = function() {
9205
9205
  return {
9206
9206
  afterSanitizeAttributes: [],
9207
9207
  afterSanitizeElements: [],
@@ -9216,9 +9216,9 @@ const Pl = bt(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
9216
9216
  }, kn = function(t, n, r, i) {
9217
9217
  return ct(t, n) && Pn(t[n]) ? ke(i.base ? Tt(i.base) : {}, t[n], i.transform) : r;
9218
9218
  };
9219
- function sd() {
9219
+ function od() {
9220
9220
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $v();
9221
- const t = (Y) => sd(Y);
9221
+ const t = (Y) => od(Y);
9222
9222
  if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== on.document || !e.Element)
9223
9223
  return t.isSupported = !1, t;
9224
9224
  let n = e.document;
@@ -9252,13 +9252,13 @@ function sd() {
9252
9252
  }, P = function() {
9253
9253
  return I || (q = Hv(d, i), I = !0), q;
9254
9254
  }, J = n, te = J.implementation, F = J.createNodeIterator, ce = J.createDocumentFragment, ie = J.getElementsByTagName, ye = r.importNode;
9255
- let ne = Ul();
9256
- t.isSupported = typeof rd == "function" && typeof f == "function" && te && te.createHTMLDocument !== void 0;
9255
+ let ne = Bl();
9256
+ t.isSupported = typeof id == "function" && typeof f == "function" && te && te.createHTMLDocument !== void 0;
9257
9257
  const ze = Nv, Ie = Ov, He = Lv, Ze = Pv, K = Mv, _e = qv, Ue = Iv, L = zv;
9258
- let oe = Fl, ve = null;
9259
- const Oe = ke({}, [...Pl, ...Xs, ...Js, ...Zs, ...Ml]);
9258
+ let oe = zl, ve = null;
9259
+ const Oe = ke({}, [...Ml, ...Xs, ...Js, ...Zs, ...ql]);
9260
9260
  let Se = null;
9261
- const Be = ke({}, [...ql, ...eo, ...Il, ...Wi]);
9261
+ const Be = ke({}, [...Il, ...eo, ...Fl, ...Wi]);
9262
9262
  let he = Object.seal(Er(null, {
9263
9263
  tagNameCheck: {
9264
9264
  writable: !0,
@@ -9338,15 +9338,15 @@ function sd() {
9338
9338
  let mn = null;
9339
9339
  const zi = ke({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Gn = "http://www.w3.org/1998/Math/MathML", yr = "http://www.w3.org/2000/svg", Mt = "http://www.w3.org/1999/xhtml";
9340
9340
  let vr = Mt, Ls = !1, Ps = null;
9341
- const kd = ke({}, [Gn, yr, Mt], Ys), Aa = bt(["mi", "mo", "mn", "ms", "mtext"]);
9342
- let Ms = ke({}, Aa);
9343
- const ka = bt(["annotation-xml"]);
9344
- let qs = ke({}, ka);
9341
+ const kd = ke({}, [Gn, yr, Mt], Ys), ka = bt(["mi", "mo", "mn", "ms", "mtext"]);
9342
+ let Ms = ke({}, ka);
9343
+ const Ra = bt(["annotation-xml"]);
9344
+ let qs = ke({}, Ra);
9345
9345
  const Rd = ke({}, ["title", "style", "font", "a", "script"]);
9346
9346
  let Jr = null;
9347
9347
  const Dd = ["application/xhtml+xml", "text/html"], Nd = "text/html";
9348
9348
  let Ve = null, wr = null;
9349
- const Od = n.createElement("form"), Ra = function(_) {
9349
+ const Od = n.createElement("form"), Da = function(_) {
9350
9350
  return _ instanceof RegExp || _ instanceof Function;
9351
9351
  }, Is = function() {
9352
9352
  let _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -9371,9 +9371,9 @@ function sd() {
9371
9371
  transform: Ve
9372
9372
  }), je = kn(_, "FORBID_ATTR", Tt({}), {
9373
9373
  transform: Ve
9374
- }), de = ct(_, "USE_PROFILES") ? _.USE_PROFILES && typeof _.USE_PROFILES == "object" ? Tt(_.USE_PROFILES) : _.USE_PROFILES : !1, Pe = _.ALLOW_ARIA_ATTR !== !1, Wt = _.ALLOW_DATA_ATTR !== !1, Lt = _.ALLOW_UNKNOWN_PROTOCOLS || !1, Pt = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, kt = _.SAFE_FOR_TEMPLATES || !1, Gt = _.SAFE_FOR_XML !== !1, jt = _.WHOLE_DOCUMENT || !1, x = _.RETURN_DOM || !1, k = _.RETURN_DOM_FRAGMENT || !1, R = _.RETURN_TRUSTED_TYPE || !1, fn = _.FORCE_BODY || !1, M = _.SANITIZE_DOM !== !1, B = _.SANITIZE_NAMED_PROPS || !1, $ = _.KEEP_CONTENT !== !1, Z = _.IN_PLACE || !1, oe = kv(_.ALLOWED_URI_REGEXP) ? _.ALLOWED_URI_REGEXP : Fl, vr = typeof _.NAMESPACE == "string" ? _.NAMESPACE : Mt, Ms = ct(_, "MATHML_TEXT_INTEGRATION_POINTS") && _.MATHML_TEXT_INTEGRATION_POINTS && typeof _.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Tt(_.MATHML_TEXT_INTEGRATION_POINTS) : ke({}, Aa), qs = ct(_, "HTML_INTEGRATION_POINTS") && _.HTML_INTEGRATION_POINTS && typeof _.HTML_INTEGRATION_POINTS == "object" ? Tt(_.HTML_INTEGRATION_POINTS) : ke({}, ka);
9374
+ }), de = ct(_, "USE_PROFILES") ? _.USE_PROFILES && typeof _.USE_PROFILES == "object" ? Tt(_.USE_PROFILES) : _.USE_PROFILES : !1, Pe = _.ALLOW_ARIA_ATTR !== !1, Wt = _.ALLOW_DATA_ATTR !== !1, Lt = _.ALLOW_UNKNOWN_PROTOCOLS || !1, Pt = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, kt = _.SAFE_FOR_TEMPLATES || !1, Gt = _.SAFE_FOR_XML !== !1, jt = _.WHOLE_DOCUMENT || !1, x = _.RETURN_DOM || !1, k = _.RETURN_DOM_FRAGMENT || !1, R = _.RETURN_TRUSTED_TYPE || !1, fn = _.FORCE_BODY || !1, M = _.SANITIZE_DOM !== !1, B = _.SANITIZE_NAMED_PROPS || !1, $ = _.KEEP_CONTENT !== !1, Z = _.IN_PLACE || !1, oe = kv(_.ALLOWED_URI_REGEXP) ? _.ALLOWED_URI_REGEXP : zl, vr = typeof _.NAMESPACE == "string" ? _.NAMESPACE : Mt, Ms = ct(_, "MATHML_TEXT_INTEGRATION_POINTS") && _.MATHML_TEXT_INTEGRATION_POINTS && typeof _.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Tt(_.MATHML_TEXT_INTEGRATION_POINTS) : ke({}, ka), qs = ct(_, "HTML_INTEGRATION_POINTS") && _.HTML_INTEGRATION_POINTS && typeof _.HTML_INTEGRATION_POINTS == "object" ? Tt(_.HTML_INTEGRATION_POINTS) : ke({}, Ra);
9375
9375
  const N = ct(_, "CUSTOM_ELEMENT_HANDLING") && _.CUSTOM_ELEMENT_HANDLING && typeof _.CUSTOM_ELEMENT_HANDLING == "object" ? Tt(_.CUSTOM_ELEMENT_HANDLING) : Er(null);
9376
- if (he = Er(null), ct(N, "tagNameCheck") && Ra(N.tagNameCheck) && (he.tagNameCheck = N.tagNameCheck), ct(N, "attributeNameCheck") && Ra(N.attributeNameCheck) && (he.attributeNameCheck = N.attributeNameCheck), ct(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (he.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), yt(he), kt && (Wt = !1), k && (x = !0), de && (ve = ke({}, Ml), Se = Er(null), de.html === !0 && (ke(ve, Pl), ke(Se, ql)), de.svg === !0 && (ke(ve, Xs), ke(Se, eo), ke(Se, Wi)), de.svgFilters === !0 && (ke(ve, Js), ke(Se, eo), ke(Se, Wi)), de.mathMl === !0 && (ke(ve, Zs), ke(Se, Il), ke(Se, Wi))), Le.tagCheck = null, Le.attributeCheck = null, ct(_, "ADD_TAGS") && (typeof _.ADD_TAGS == "function" ? Le.tagCheck = _.ADD_TAGS : Pn(_.ADD_TAGS) && (ve === Oe && (ve = Tt(ve)), ke(ve, _.ADD_TAGS, Ve))), ct(_, "ADD_ATTR") && (typeof _.ADD_ATTR == "function" ? Le.attributeCheck = _.ADD_ATTR : Pn(_.ADD_ATTR) && (Se === Be && (Se = Tt(Se)), ke(Se, _.ADD_ATTR, Ve))), ct(_, "ADD_URI_SAFE_ATTR") && Pn(_.ADD_URI_SAFE_ATTR) && ke(mn, _.ADD_URI_SAFE_ATTR, Ve), ct(_, "FORBID_CONTENTS") && Pn(_.FORBID_CONTENTS) && (Ce === dt && (Ce = Tt(Ce)), ke(Ce, _.FORBID_CONTENTS, Ve)), ct(_, "ADD_FORBID_CONTENTS") && Pn(_.ADD_FORBID_CONTENTS) && (Ce === dt && (Ce = Tt(Ce)), ke(Ce, _.ADD_FORBID_CONTENTS, Ve)), $ && (ve["#text"] = !0), jt && ke(ve, ["html", "head", "body"]), ve.table && (ke(ve, ["tbody"]), delete ae.tbody), _.TRUSTED_TYPES_POLICY) {
9376
+ if (he = Er(null), ct(N, "tagNameCheck") && Da(N.tagNameCheck) && (he.tagNameCheck = N.tagNameCheck), ct(N, "attributeNameCheck") && Da(N.attributeNameCheck) && (he.attributeNameCheck = N.attributeNameCheck), ct(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (he.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), yt(he), kt && (Wt = !1), k && (x = !0), de && (ve = ke({}, ql), Se = Er(null), de.html === !0 && (ke(ve, Ml), ke(Se, Il)), de.svg === !0 && (ke(ve, Xs), ke(Se, eo), ke(Se, Wi)), de.svgFilters === !0 && (ke(ve, Js), ke(Se, eo), ke(Se, Wi)), de.mathMl === !0 && (ke(ve, Zs), ke(Se, Fl), ke(Se, Wi))), Le.tagCheck = null, Le.attributeCheck = null, ct(_, "ADD_TAGS") && (typeof _.ADD_TAGS == "function" ? Le.tagCheck = _.ADD_TAGS : Pn(_.ADD_TAGS) && (ve === Oe && (ve = Tt(ve)), ke(ve, _.ADD_TAGS, Ve))), ct(_, "ADD_ATTR") && (typeof _.ADD_ATTR == "function" ? Le.attributeCheck = _.ADD_ATTR : Pn(_.ADD_ATTR) && (Se === Be && (Se = Tt(Se)), ke(Se, _.ADD_ATTR, Ve))), ct(_, "ADD_URI_SAFE_ATTR") && Pn(_.ADD_URI_SAFE_ATTR) && ke(mn, _.ADD_URI_SAFE_ATTR, Ve), ct(_, "FORBID_CONTENTS") && Pn(_.FORBID_CONTENTS) && (Ce === dt && (Ce = Tt(Ce)), ke(Ce, _.FORBID_CONTENTS, Ve)), ct(_, "ADD_FORBID_CONTENTS") && Pn(_.ADD_FORBID_CONTENTS) && (Ce === dt && (Ce = Tt(Ce)), ke(Ce, _.ADD_FORBID_CONTENTS, Ve)), $ && (ve["#text"] = !0), jt && ke(ve, ["html", "head", "body"]), ve.table && (ke(ve, ["tbody"]), delete ae.tbody), _.TRUSTED_TYPES_POLICY) {
9377
9377
  if (typeof _.TRUSTED_TYPES_POLICY.createHTML != "function")
9378
9378
  throw Yn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
9379
9379
  if (typeof _.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -9387,12 +9387,12 @@ function sd() {
9387
9387
  }
9388
9388
  } else _.TRUSTED_TYPES_POLICY === null ? (D = void 0, O = "") : (D === void 0 && (D = P()), D && typeof O == "string" && (O = z("")));
9389
9389
  bt && bt(_), wr = _;
9390
- }, Da = ke({}, [...Xs, ...Js, ...Rv]), Na = ke({}, [...Zs, ...Dv]), Ld = function(_, N, G) {
9391
- return N.namespaceURI === Mt ? _ === "svg" : N.namespaceURI === Gn ? _ === "svg" && (G === "annotation-xml" || Ms[G]) : !!Da[_];
9390
+ }, Na = ke({}, [...Xs, ...Js, ...Rv]), Oa = ke({}, [...Zs, ...Dv]), Ld = function(_, N, G) {
9391
+ return N.namespaceURI === Mt ? _ === "svg" : N.namespaceURI === Gn ? _ === "svg" && (G === "annotation-xml" || Ms[G]) : !!Na[_];
9392
9392
  }, Pd = function(_, N, G) {
9393
- return N.namespaceURI === Mt ? _ === "math" : N.namespaceURI === yr ? _ === "math" && qs[G] : !!Na[_];
9393
+ return N.namespaceURI === Mt ? _ === "math" : N.namespaceURI === yr ? _ === "math" && qs[G] : !!Oa[_];
9394
9394
  }, Md = function(_, N, G) {
9395
- return N.namespaceURI === yr && !qs[G] || N.namespaceURI === Gn && !Ms[G] ? !1 : !Na[_] && (Rd[_] || !Da[_]);
9395
+ return N.namespaceURI === yr && !qs[G] || N.namespaceURI === Gn && !Ms[G] ? !1 : !Oa[_] && (Rd[_] || !Na[_]);
9396
9396
  }, qd = function(_) {
9397
9397
  let N = f(_);
9398
9398
  (!N || !N.tagName) && (N = {
@@ -9411,7 +9411,7 @@ function sd() {
9411
9411
  if (v(_), !f(_))
9412
9412
  throw Yn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
9413
9413
  }
9414
- }, Oa = function(_) {
9414
+ }, La = function(_) {
9415
9415
  const N = m(_);
9416
9416
  if (N) {
9417
9417
  const le = [];
@@ -9478,12 +9478,12 @@ function sd() {
9478
9478
  for (let Re = we.length - 1; Re >= 0; --Re)
9479
9479
  N.push(we[Re]);
9480
9480
  }
9481
- }, La = function(_) {
9481
+ }, Pa = function(_) {
9482
9482
  let N = null, G = null;
9483
9483
  if (fn)
9484
9484
  _ = "<remove></remove>" + _;
9485
9485
  else {
9486
- const Re = Dl(_, /^[\r\n\t ]+/);
9486
+ const Re = Nl(_, /^[\r\n\t ]+/);
9487
9487
  G = Re && Re[0];
9488
9488
  }
9489
9489
  Jr === "application/xhtml+xml" && vr === Mt && (_ = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + _ + "</body></html>");
@@ -9502,7 +9502,7 @@ function sd() {
9502
9502
  }
9503
9503
  const we = N.body || N.documentElement;
9504
9504
  return _ && G && we.insertBefore(n.createTextNode(G), we.childNodes[0] || null), vr === Mt ? ie.call(N, jt ? "html" : "body")[0] : jt ? N.documentElement : we;
9505
- }, Pa = function(_) {
9505
+ }, Ma = function(_) {
9506
9506
  return F.call(
9507
9507
  _.ownerDocument || _,
9508
9508
  _,
@@ -9578,9 +9578,9 @@ function sd() {
9578
9578
  });
9579
9579
  }
9580
9580
  const zd = function(_, N) {
9581
- return !!(Gt && _.hasChildNodes() && !Zr(_.firstElementChild) && ft(zl, _.textContent) && ft(zl, _.innerHTML) || Gt && _.namespaceURI === Mt && N === "style" && Zr(_.firstElementChild) || _.nodeType === on.processingInstruction || Gt && _.nodeType === on.comment && ft(Uv, _.data));
9581
+ return !!(Gt && _.hasChildNodes() && !Zr(_.firstElementChild) && ft(Ul, _.textContent) && ft(Ul, _.innerHTML) || Gt && _.namespaceURI === Mt && N === "style" && Zr(_.firstElementChild) || _.nodeType === on.processingInstruction || Gt && _.nodeType === on.comment && ft(Uv, _.data));
9582
9582
  }, Ud = function(_, N) {
9583
- if (!ae[N] && Ia(N) && (he.tagNameCheck instanceof RegExp && ft(he.tagNameCheck, N) || he.tagNameCheck instanceof Function && he.tagNameCheck(N)))
9583
+ if (!ae[N] && Fa(N) && (he.tagNameCheck instanceof RegExp && ft(he.tagNameCheck, N) || he.tagNameCheck instanceof Function && he.tagNameCheck(N)))
9584
9584
  return !1;
9585
9585
  if ($ && !Ce[N]) {
9586
9586
  const G = f(_), le = m(_);
@@ -9593,7 +9593,7 @@ function sd() {
9593
9593
  }
9594
9594
  }
9595
9595
  return xn(_), !0;
9596
- }, Ma = function(_) {
9596
+ }, qa = function(_) {
9597
9597
  if (gn(ne.beforeSanitizeElements, _, null), Bi(_))
9598
9598
  return xn(_), !0;
9599
9599
  const N = Ve(C ? C(_) : _.nodeName);
@@ -9613,7 +9613,7 @@ function sd() {
9613
9613
  }), _.textContent = le);
9614
9614
  }
9615
9615
  return gn(ne.afterSanitizeElements, _, null), !1;
9616
- }, qa = function(_, N, G) {
9616
+ }, Ia = function(_, N, G) {
9617
9617
  if (je[N] || M && (N === "id" || N === "name") && (G in n || G in Od))
9618
9618
  return !1;
9619
9619
  const le = Se[N] || Le.attributeCheck instanceof Function && Le.attributeCheck(N, _);
@@ -9622,7 +9622,7 @@ function sd() {
9622
9622
  if (le) {
9623
9623
  if (!mn[N]) {
9624
9624
  if (!ft(oe, ni(G, Ue, ""))) {
9625
- if (!((N === "src" || N === "xlink:href" || N === "href") && _ !== "script" && Nl(G, "data:") === 0 && pn[_])) {
9625
+ if (!((N === "src" || N === "xlink:href" || N === "href") && _ !== "script" && Ol(G, "data:") === 0 && pn[_])) {
9626
9626
  if (!(Lt && !ft(_e, ni(G, Ue, "")))) {
9627
9627
  if (G)
9628
9628
  return !1;
@@ -9634,14 +9634,14 @@ function sd() {
9634
9634
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
9635
9635
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
9636
9636
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
9637
- !(Ia(_) && (he.tagNameCheck instanceof RegExp && ft(he.tagNameCheck, _) || he.tagNameCheck instanceof Function && he.tagNameCheck(_)) && (he.attributeNameCheck instanceof RegExp && ft(he.attributeNameCheck, N) || he.attributeNameCheck instanceof Function && he.attributeNameCheck(N, _)) || // Alternative, second condition checks if it's an `is`-attribute, AND
9637
+ !(Fa(_) && (he.tagNameCheck instanceof RegExp && ft(he.tagNameCheck, _) || he.tagNameCheck instanceof Function && he.tagNameCheck(_)) && (he.attributeNameCheck instanceof RegExp && ft(he.attributeNameCheck, N) || he.attributeNameCheck instanceof Function && he.attributeNameCheck(N, _)) || // Alternative, second condition checks if it's an `is`-attribute, AND
9638
9638
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
9639
9639
  N === "is" && he.allowCustomizedBuiltInElements && (he.tagNameCheck instanceof RegExp && ft(he.tagNameCheck, G) || he.tagNameCheck instanceof Function && he.tagNameCheck(G)))
9640
9640
  ) return !1;
9641
9641
  }
9642
9642
  }
9643
9643
  return !0;
9644
- }, Bd = ke({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Ia = function(_) {
9644
+ }, Bd = ke({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Fa = function(_) {
9645
9645
  return !Bd[ai(_)] && ft(L, _);
9646
9646
  }, jd = function(_, N, G, le) {
9647
9647
  if (D && typeof d == "object" && typeof d.getAttributeType == "function" && !G)
@@ -9654,11 +9654,11 @@ function sd() {
9654
9654
  return le;
9655
9655
  }, $d = function(_, N, G, le) {
9656
9656
  try {
9657
- G ? _.setAttributeNS(G, N, le) : _.setAttribute(N, le), Bi(_) ? xn(_) : Rl(t.removed);
9657
+ G ? _.setAttributeNS(G, N, le) : _.setAttribute(N, le), Bi(_) ? xn(_) : Dl(t.removed);
9658
9658
  } catch {
9659
9659
  Kn(N, _);
9660
9660
  }
9661
- }, Fa = function(_) {
9661
+ }, za = function(_) {
9662
9662
  gn(ne.beforeSanitizeAttributes, _, null);
9663
9663
  const N = _.attributes;
9664
9664
  if (!N || Bi(_))
@@ -9675,11 +9675,11 @@ function sd() {
9675
9675
  for (; le--; ) {
9676
9676
  const Re = N[le], lt = Re.name, et = Re.namespaceURI, Ht = Re.value, Kt = Ve(lt), Us = Ht;
9677
9677
  let Ct = lt === "value" ? Us : Sv(Us);
9678
- if (G.attrName = Kt, G.attrValue = Ct, G.keepAttr = !0, G.forceKeepAttr = void 0, gn(ne.uponSanitizeAttribute, _, G), Ct = G.attrValue, B && (Kt === "id" || Kt === "name") && Nl(Ct, H) !== 0 && (Kn(lt, _), Ct = H + Ct), Gt && ft(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ct)) {
9678
+ if (G.attrName = Kt, G.attrValue = Ct, G.keepAttr = !0, G.forceKeepAttr = void 0, gn(ne.uponSanitizeAttribute, _, G), Ct = G.attrValue, B && (Kt === "id" || Kt === "name") && Ol(Ct, H) !== 0 && (Kn(lt, _), Ct = H + Ct), Gt && ft(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ct)) {
9679
9679
  Kn(lt, _);
9680
9680
  continue;
9681
9681
  }
9682
- if (Kt === "attributename" && Dl(Ct, "href")) {
9682
+ if (Kt === "attributename" && Nl(Ct, "href")) {
9683
9683
  Kn(lt, _);
9684
9684
  continue;
9685
9685
  }
@@ -9692,7 +9692,7 @@ function sd() {
9692
9692
  Kn(lt, _);
9693
9693
  continue;
9694
9694
  }
9695
- if (kt && (Ct = Ui(Ct)), !qa(we, Kt, Ct)) {
9695
+ if (kt && (Ct = Ui(Ct)), !Ia(we, Kt, Ct)) {
9696
9696
  Kn(lt, _);
9697
9697
  continue;
9698
9698
  }
@@ -9702,9 +9702,9 @@ function sd() {
9702
9702
  gn(ne.afterSanitizeAttributes, _, null);
9703
9703
  }, ji = function(_) {
9704
9704
  let N = null;
9705
- const G = Pa(_);
9705
+ const G = Ma(_);
9706
9706
  for (gn(ne.beforeSanitizeShadowDOM, _, null); N = G.nextNode(); )
9707
- if (gn(ne.uponSanitizeShadowNode, N, null), Ma(N), Fa(N), _r(N.content) && ji(N.content), (w ? w(N) : N.nodeType) === on.element) {
9707
+ if (gn(ne.uponSanitizeShadowNode, N, null), qa(N), za(N), _r(N.content) && ji(N.content), (w ? w(N) : N.nodeType) === on.element) {
9708
9708
  const we = g(N);
9709
9709
  _r(we) && (zs(we), ji(we));
9710
9710
  }
@@ -9769,24 +9769,24 @@ function sd() {
9769
9769
  try {
9770
9770
  zs(Y);
9771
9771
  } catch (Kt) {
9772
- throw Oa(Y), Kt;
9772
+ throw La(Y), Kt;
9773
9773
  }
9774
9774
  } else if (Zr(Y))
9775
- N = La("<!---->"), G = N.ownerDocument.importNode(Y, !0), G.nodeType === on.element && G.nodeName === "BODY" || G.nodeName === "HTML" ? N = G : N.appendChild(G), zs(G);
9775
+ N = Pa("<!---->"), G = N.ownerDocument.importNode(Y, !0), G.nodeType === on.element && G.nodeName === "BODY" || G.nodeName === "HTML" ? N = G : N.appendChild(G), zs(G);
9776
9776
  else {
9777
9777
  if (!x && !kt && !jt && // eslint-disable-next-line unicorn/prefer-includes
9778
9778
  Y.indexOf("<") === -1)
9779
9779
  return D && R ? z(Y) : Y;
9780
- if (N = La(Y), !N)
9780
+ if (N = Pa(Y), !N)
9781
9781
  return x ? null : R ? O : "";
9782
9782
  }
9783
9783
  N && fn && xn(N.firstChild);
9784
- const lt = Pa(Re ? Y : N);
9784
+ const lt = Ma(Re ? Y : N);
9785
9785
  try {
9786
9786
  for (; le = lt.nextNode(); )
9787
- Ma(le), Fa(le), _r(le.content) && ji(le.content);
9787
+ qa(le), za(le), _r(le.content) && ji(le.content);
9788
9788
  } catch (Ht) {
9789
- throw Re && Oa(Y), Ht;
9789
+ throw Re && La(Y), Ht;
9790
9790
  }
9791
9791
  if (Re)
9792
9792
  return ti(t.removed, (Ht) => {
@@ -9811,7 +9811,7 @@ function sd() {
9811
9811
  }, t.isValidAttribute = function(Y, _, N) {
9812
9812
  wr || Is({});
9813
9813
  const G = Ve(Y), le = Ve(_);
9814
- return qa(G, le, N);
9814
+ return Ia(G, le, N);
9815
9815
  }, t.addHook = function(Y, _) {
9816
9816
  typeof _ == "function" && ct(ne, Y) && xr(ne[Y], _);
9817
9817
  }, t.removeHook = function(Y, _) {
@@ -9820,19 +9820,19 @@ function sd() {
9820
9820
  const N = wv(ne[Y], _);
9821
9821
  return N === -1 ? void 0 : _v(ne[Y], N, 1)[0];
9822
9822
  }
9823
- return Rl(ne[Y]);
9823
+ return Dl(ne[Y]);
9824
9824
  }
9825
9825
  }, t.removeHooks = function(Y) {
9826
9826
  ct(ne, Y) && (ne[Y] = []);
9827
9827
  }, t.removeAllHooks = function() {
9828
- ne = Ul();
9828
+ ne = Bl();
9829
9829
  }, t;
9830
9830
  }
9831
- var Bl = sd();
9832
- function ya(e) {
9831
+ var jl = od();
9832
+ function va(e) {
9833
9833
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
9834
9834
  }
9835
- const ps = ya;
9835
+ const ps = va;
9836
9836
  function qi(e) {
9837
9837
  if (typeof document < "u") {
9838
9838
  const t = document.createElement("div");
@@ -9942,7 +9942,7 @@ function nn({
9942
9942
  }) {
9943
9943
  const a = Ge(null), u = Ge(t);
9944
9944
  u.current = t;
9945
- const [h, c] = ue(null), d = be((g) => g.contentLang), y = re((g) => g.uiLanguage), p = d === "ar" || y === "ar" ? "rtl" : "ltr", v = (g) => Bl.sanitize(g);
9945
+ const [h, c] = ue(null), d = be((g) => g.contentLang), y = re((g) => g.uiLanguage), p = d === "ar" || y === "ar" ? "rtl" : "ltr", v = (g) => jl.sanitize(g);
9946
9946
  Ae(() => {
9947
9947
  a.current && (a.current.innerHTML = v(e));
9948
9948
  }, []), Ae(() => {
@@ -9970,7 +9970,7 @@ function nn({
9970
9970
  g.preventDefault();
9971
9971
  const S = g.clipboardData.getData("text/html");
9972
9972
  if (S) {
9973
- const C = Bl.sanitize(S, {
9973
+ const C = jl.sanitize(S, {
9974
9974
  ALLOWED_TAGS: Vv,
9975
9975
  ALLOWED_ATTR: Qv,
9976
9976
  ALLOW_DATA_ATTR: !1
@@ -9979,7 +9979,7 @@ function nn({
9979
9979
  return;
9980
9980
  }
9981
9981
  const w = g.clipboardData.getData("text/plain");
9982
- w && document.execCommand("insertHTML", !1, ya(w).replace(/\n/g, "<br>"));
9982
+ w && document.execCommand("insertHTML", !1, va(w).replace(/\n/g, "<br>"));
9983
9983
  }, [r]);
9984
9984
  return /* @__PURE__ */ E(st, { children: [
9985
9985
  /* @__PURE__ */ l(
@@ -10393,9 +10393,9 @@ function tw() {
10393
10393
  Editor: ew
10394
10394
  });
10395
10395
  }
10396
- let jl = !1;
10396
+ let $l = !1;
10397
10397
  function Xr() {
10398
- jl || (jl = !0, tw());
10398
+ $l || ($l = !0, tw());
10399
10399
  }
10400
10400
  function oS(e) {
10401
10401
  Xr(), Nn(e);
@@ -10521,7 +10521,7 @@ const aw = (e) => {
10521
10521
  )
10522
10522
  ]
10523
10523
  }
10524
- )), od = ({
10524
+ )), ad = ({
10525
10525
  node: e,
10526
10526
  selectedId: t,
10527
10527
  openIds: n,
@@ -10613,7 +10613,7 @@ const aw = (e) => {
10613
10613
  }
10614
10614
  ),
10615
10615
  D && S && /* @__PURE__ */ l("div", { className: "ce-children", role: "group", children: e.children.map((z) => /* @__PURE__ */ l(
10616
- od,
10616
+ ad,
10617
10617
  {
10618
10618
  node: z,
10619
10619
  selectedId: t,
@@ -10678,7 +10678,7 @@ const aw = (e) => {
10678
10678
  /* @__PURE__ */ l("button", { title: t("ui.collapse", "Collapse"), onClick: e, "aria-label": t("ui.collapseOutlinePanel", "Collapse outline panel"), children: /* @__PURE__ */ l(W, { name: "panel-left", size: 17 }) })
10679
10679
  ] }),
10680
10680
  /* @__PURE__ */ l("div", { className: "ce-tree-scroll", role: "tree", "aria-label": t("ui.questionSetOutline", "Question set outline"), children: n.length === 0 ? /* @__PURE__ */ l("p", { style: { padding: "16px 12px", fontSize: 13, color: "var(--sb-text-faint)", fontStyle: "italic" }, children: t("ui.noContentYet", "No content yet.") }) : n.map((F) => /* @__PURE__ */ l(
10681
- od,
10681
+ ad,
10682
10682
  {
10683
10683
  node: F,
10684
10684
  selectedId: r,
@@ -10814,7 +10814,7 @@ function jo(e, t = []) {
10814
10814
  return "/assets/public/" + e.slice(n.length);
10815
10815
  return e;
10816
10816
  }
10817
- const bw = { image: "Image", video: "Video", audio: "Audio" }, ms = { image: "Images", video: "Videos", audio: "Audio" }, $l = { image: "image", video: "video", audio: "link" }, Hl = {
10817
+ const bw = { image: "Image", video: "Video", audio: "Audio" }, ms = { image: "Images", video: "Videos", audio: "Audio" }, Hl = { image: "image", video: "video", audio: "link" }, Vl = {
10818
10818
  image: "PNG, JPEG · max 1 MB",
10819
10819
  video: "MP4, WEBM · max 50 MB",
10820
10820
  audio: "MP3, WAV · max 50 MB"
@@ -10826,11 +10826,11 @@ const bw = { image: "Image", video: "Video", audio: "Audio" }, ms = { image: "Im
10826
10826
  function vw(e) {
10827
10827
  return { id: e.identifier, name: e.name, thumbnail: e.thumbnail ?? e.appIcon };
10828
10828
  }
10829
- const Vl = 24;
10829
+ const Ql = 24;
10830
10830
  function ww(e) {
10831
10831
  return e.downloadUrl ?? e.appIcon ?? e.thumbnail ?? "";
10832
10832
  }
10833
- function Ql({ tab: e, mediaType: t, createdBy: n, cloudStorageUrls: r, selectedUrl: i, onSelectedChange: s }) {
10833
+ function Wl({ tab: e, mediaType: t, createdBy: n, cloudStorageUrls: r, selectedUrl: i, onSelectedChange: s }) {
10834
10834
  const [o, a] = ue([]), [u, h] = ue(0), [c, d] = ue(0), [y, p] = ue(""), [v, b] = ue(!1), m = Ge(0), f = xe(async (S, w, C) => {
10835
10835
  const D = ++m.current;
10836
10836
  b(!0);
@@ -10838,7 +10838,7 @@ function Ql({ tab: e, mediaType: t, createdBy: n, cloudStorageUrls: r, selectedU
10838
10838
  const { items: O, count: q } = await uw({
10839
10839
  mediaType: t,
10840
10840
  query: w || void 0,
10841
- limit: Vl,
10841
+ limit: Ql,
10842
10842
  offset: S,
10843
10843
  createdBy: e === "my" ? n : void 0
10844
10844
  });
@@ -10910,9 +10910,9 @@ function Ql({ tab: e, mediaType: t, createdBy: n, cloudStorageUrls: r, selectedU
10910
10910
  },
10911
10911
  children: t === "image" && w ? /* @__PURE__ */ l("img", { src: w, alt: S.name, style: { width: "100%", height: "100%", objectFit: "cover", display: "block" } }) : S.thumbnail ?? S.appIcon ? /* @__PURE__ */ E("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
10912
10912
  /* @__PURE__ */ l("img", { src: jo(S.thumbnail ?? S.appIcon, r), alt: S.name, style: { width: "100%", height: "100%", objectFit: "cover", display: "block" } }),
10913
- /* @__PURE__ */ l("span", { style: { position: "absolute", inset: 0, display: "grid", placeItems: "center", color: "#fff", background: "rgba(0,0,0,.25)" }, children: /* @__PURE__ */ l(W, { name: $l[t], size: 22 }) })
10913
+ /* @__PURE__ */ l("span", { style: { position: "absolute", inset: 0, display: "grid", placeItems: "center", color: "#fff", background: "rgba(0,0,0,.25)" }, children: /* @__PURE__ */ l(W, { name: Hl[t], size: 22 }) })
10914
10914
  ] }) : /* @__PURE__ */ E("div", { style: { width: "100%", height: "100%", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: 6, color: "var(--sb-text-faint)", padding: 8 }, children: [
10915
- /* @__PURE__ */ l(W, { name: $l[t], size: 26 }),
10915
+ /* @__PURE__ */ l(W, { name: Hl[t], size: 26 }),
10916
10916
  /* @__PURE__ */ l("span", { style: { fontSize: 11, textAlign: "center", overflow: "hidden", textOverflow: "ellipsis", maxWidth: "100%", whiteSpace: "nowrap" }, children: S.name })
10917
10917
  ] })
10918
10918
  },
@@ -10923,7 +10923,7 @@ function Ql({ tab: e, mediaType: t, createdBy: n, cloudStorageUrls: r, selectedU
10923
10923
  "button",
10924
10924
  {
10925
10925
  type: "button",
10926
- onClick: () => void f(c + Vl, y, !1),
10926
+ onClick: () => void f(c + Ql, y, !1),
10927
10927
  style: {
10928
10928
  display: "block",
10929
10929
  width: "100%",
@@ -10959,7 +10959,7 @@ function Sw({ mediaType: e, channel: t, createdBy: n, presignedHeaders: r, cloud
10959
10959
  return;
10960
10960
  }
10961
10961
  if (b.size > yw[e]) {
10962
- p(`File exceeds ${Hl[e].split("max ")[1]} limit.`);
10962
+ p(`File exceeds ${Vl[e].split("max ")[1]} limit.`);
10963
10963
  return;
10964
10964
  }
10965
10965
  p(""), d(!0);
@@ -11008,7 +11008,7 @@ function Sw({ mediaType: e, channel: t, createdBy: n, presignedHeaders: r, cloud
11008
11008
  children: [
11009
11009
  /* @__PURE__ */ l("div", { style: { color: "#aaa", marginBottom: 12, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ l(W, { name: "upload", size: 36 }) }),
11010
11010
  /* @__PURE__ */ l("p", { style: { fontWeight: 700, fontSize: 16, margin: "0 0 6px", color: "var(--sb-text-2)" }, children: c ? "Uploading…" : "Drag & drop or click to browse" }),
11011
- /* @__PURE__ */ l("p", { style: { fontSize: 13, color: "var(--sb-text-muted)", margin: 0 }, children: Hl[e] }),
11011
+ /* @__PURE__ */ l("p", { style: { fontSize: 13, color: "var(--sb-text-muted)", margin: 0 }, children: Vl[e] }),
11012
11012
  /* @__PURE__ */ l(
11013
11013
  "input",
11014
11014
  {
@@ -11145,7 +11145,7 @@ function Ds({ onSelect: e, onClose: t, mediaType: n = "image", preserveAbsoluteU
11145
11145
  )) }),
11146
11146
  /* @__PURE__ */ E("div", { style: { overflow: "auto", padding: 24, minHeight: i !== "upload" ? 260 : 0 }, children: [
11147
11147
  i === "my" && /* @__PURE__ */ l(
11148
- Ql,
11148
+ Wl,
11149
11149
  {
11150
11150
  tab: "my",
11151
11151
  mediaType: n,
@@ -11156,7 +11156,7 @@ function Ds({ onSelect: e, onClose: t, mediaType: n = "image", preserveAbsoluteU
11156
11156
  }
11157
11157
  ),
11158
11158
  i === "all" && /* @__PURE__ */ l(
11159
- Ql,
11159
+ Wl,
11160
11160
  {
11161
11161
  tab: "all",
11162
11162
  mediaType: n,
@@ -11224,24 +11224,24 @@ function Ds({ onSelect: e, onClose: t, mediaType: n = "image", preserveAbsoluteU
11224
11224
  g
11225
11225
  );
11226
11226
  }
11227
- async function Wl(e) {
11227
+ async function Gl(e) {
11228
11228
  var n, r;
11229
11229
  return (r = (n = (await Ke.get(`${Je.framework.read}/${e}`)).data) == null ? void 0 : n.result) == null ? void 0 : r.framework;
11230
11230
  }
11231
- function ad() {
11231
+ function ld() {
11232
11232
  var d, y, p, v;
11233
11233
  const e = re((b) => b.editorConfig), t = ge((b) => {
11234
11234
  var m;
11235
11235
  return (m = b.treeData[0]) == null ? void 0 : m.metadata;
11236
- }), n = t != null && t.framework ? [t.framework] : (d = e == null ? void 0 : e.context) != null && d.framework ? [e.context.framework] : ((y = e == null ? void 0 : e.config) == null ? void 0 : y.framework) ?? [], r = (t == null ? void 0 : t.targetFWIds) ?? ((p = e == null ? void 0 : e.context) == null ? void 0 : p.targetFWIds) ?? ((v = e == null ? void 0 : e.config) == null ? void 0 : v.targetFWIds) ?? [], i = n[0] ?? "", s = Yc({
11236
+ }), n = t != null && t.framework ? [t.framework] : (d = e == null ? void 0 : e.context) != null && d.framework ? [e.context.framework] : ((y = e == null ? void 0 : e.config) == null ? void 0 : y.framework) ?? [], r = (t == null ? void 0 : t.targetFWIds) ?? ((p = e == null ? void 0 : e.context) == null ? void 0 : p.targetFWIds) ?? ((v = e == null ? void 0 : e.config) == null ? void 0 : v.targetFWIds) ?? [], i = n[0] ?? "", s = Xc({
11237
11237
  queryKey: ["framework", i],
11238
- queryFn: () => Wl(i),
11238
+ queryFn: () => Gl(i),
11239
11239
  enabled: !!i,
11240
11240
  staleTime: 10 * 60 * 1e3
11241
11241
  }), a = Ah({
11242
11242
  queries: r.map((b) => ({
11243
11243
  queryKey: ["framework", b],
11244
- queryFn: () => Wl(b),
11244
+ queryFn: () => Gl(b),
11245
11245
  enabled: !!b,
11246
11246
  staleTime: 10 * 60 * 1e3
11247
11247
  }))
@@ -11286,7 +11286,7 @@ function Zn(e, t) {
11286
11286
  const n = Object.keys(e)[0];
11287
11287
  return e[t] !== void 0 ? e[t] : e[bi] !== void 0 ? e[bi] : n ? e[n] : "";
11288
11288
  }
11289
- function Gl(e) {
11289
+ function Kl(e) {
11290
11290
  return e ? typeof e == "string" ? { [bi]: e } : { ...e } : {};
11291
11291
  }
11292
11292
  function Cr(e) {
@@ -11319,7 +11319,7 @@ function kw(e) {
11319
11319
  if (typeof n == "number") return n;
11320
11320
  if (typeof n == "string" && n !== "" && !isNaN(Number(n))) return Number(n);
11321
11321
  }
11322
- function Kl(e, t) {
11322
+ function Yl(e, t) {
11323
11323
  if (!(!Array.isArray(e) || e.length === 0))
11324
11324
  return e.map((n, r) => {
11325
11325
  const i = De(n);
@@ -11385,7 +11385,7 @@ function Ow(e) {
11385
11385
  }) : [];
11386
11386
  }
11387
11387
  function Lw(e, t) {
11388
- const n = (p) => p && typeof p == "object" && !Array.isArray(p) ? Gl(p) : void 0;
11388
+ const n = (p) => p && typeof p == "object" && !Array.isArray(p) ? Kl(p) : void 0;
11389
11389
  let r;
11390
11390
  const i = Array.isArray(e.solutions) && e.solutions.length ? e.solutions : t.solutions;
11391
11391
  if (Array.isArray(i) && i[0]) {
@@ -11398,7 +11398,7 @@ function Lw(e, t) {
11398
11398
  }
11399
11399
  let s;
11400
11400
  const o = De(De(e.outcomeDeclaration).hint).defaultValue, a = typeof o == "string" ? De(e.hints)[o] : void 0;
11401
- a && typeof a == "object" && (s = Gl(a));
11401
+ a && typeof a == "object" && (s = Kl(a));
11402
11402
  const u = Array.isArray(t.options) ? t.options : [], h = u.map((p) => n(De(De(p).value).body) ?? {}), c = Array.isArray(t.pairs) ? t.pairs : [];
11403
11403
  let d;
11404
11404
  const y = t.correctOrder;
@@ -11419,7 +11419,7 @@ function Lw(e, t) {
11419
11419
  };
11420
11420
  }
11421
11421
  function Pw(e) {
11422
- const t = De(e.editorState), n = kw(e), r = Aw(e), i = Kl(t.options, n) ?? Kl(e.options, n), s = De(e.outcomeDeclaration), o = De(s.maxScore).defaultValue, a = typeof o == "number" ? o : typeof e.maxScore == "number" ? e.maxScore : void 0;
11422
+ const t = De(e.editorState), n = kw(e), r = Aw(e), i = Yl(t.options, n) ?? Yl(e.options, n), s = De(e.outcomeDeclaration), o = De(s.maxScore).defaultValue, a = typeof o == "number" ? o : typeof e.maxScore == "number" ? e.maxScore : void 0;
11423
11423
  return {
11424
11424
  ...e,
11425
11425
  identifier: e.identifier ?? "",
@@ -11451,7 +11451,7 @@ function Mw() {
11451
11451
  const e = ge((a) => a.selectedNodeId), t = re((a) => a.isCurrentNodeQuestion), n = re((a) => a.editorMode), r = re((a) => a.questionFormConfig), i = pr(
11452
11452
  () => (r ?? []).map((a) => a.code).filter(Boolean),
11453
11453
  [r]
11454
- ), s = !!e && t && e.startsWith("do_"), o = Yc({
11454
+ ), s = !!e && t && e.startsWith("do_"), o = Xc({
11455
11455
  // extraFields is part of the key — a cached read fetched before the
11456
11456
  // category definition resolved would be missing the leaf-form fields.
11457
11457
  queryKey: ["question-read", e, n, i.join(",")],
@@ -11471,8 +11471,8 @@ function Mw() {
11471
11471
  }, [o.data, e]), { isFetching: o.isFetching, error: o.error };
11472
11472
  }
11473
11473
  var Ii = (e) => e.type === "checkbox", nr = (e) => e instanceof Date, mt = (e) => e == null;
11474
- const ld = (e) => typeof e == "object";
11475
- var $e = (e) => !mt(e) && !Array.isArray(e) && ld(e) && !nr(e), $o = (e) => $e(e) && e.target ? Ii(e.target) ? e.target.checked : e.target.value : e, cd = (e, t) => t.split(".").some((n, r, i) => !isNaN(Number(n)) && e.has(i.slice(0, r).join("."))), ud = (e) => {
11474
+ const cd = (e) => typeof e == "object";
11475
+ var $e = (e) => !mt(e) && !Array.isArray(e) && cd(e) && !nr(e), $o = (e) => $e(e) && e.target ? Ii(e.target) ? e.target.checked : e.target.value : e, ud = (e, t) => t.split(".").some((n, r, i) => !isNaN(Number(n)) && e.has(i.slice(0, r).join("."))), dd = (e) => {
11476
11476
  const t = e.constructor && e.constructor.prototype;
11477
11477
  return $e(t) && t.hasOwnProperty("isPrototypeOf");
11478
11478
  }, Ns = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -11483,7 +11483,7 @@ function Qe(e) {
11483
11483
  if (Ns && (e instanceof Blob || t))
11484
11484
  return e;
11485
11485
  const n = Array.isArray(e);
11486
- if (!n && !($e(e) && ud(e)))
11486
+ if (!n && !($e(e) && dd(e)))
11487
11487
  return e;
11488
11488
  const r = n ? [] : Object.create(Object.getPrototypeOf(e));
11489
11489
  for (const i in e)
@@ -11511,14 +11511,14 @@ const On = {
11511
11511
  pattern: "pattern",
11512
11512
  required: "required",
11513
11513
  validate: "validate"
11514
- }, dd = "root", hd = ["__proto__", "constructor", "prototype"], qw = /^\w*$/;
11514
+ }, hd = "root", fd = ["__proto__", "constructor", "prototype"], qw = /^\w*$/;
11515
11515
  var Fi = (e) => qw.test(e), Fe = (e) => e === void 0;
11516
11516
  const Iw = /[.[\]'"]/;
11517
11517
  var Os = (e) => e.split(Iw).filter(Boolean), X = (e, t, n) => {
11518
11518
  if (!t || !$e(e))
11519
11519
  return n;
11520
11520
  const r = Fi(t) ? [t] : Os(t);
11521
- if (r.some((s) => hd.includes(s)))
11521
+ if (r.some((s) => fd.includes(s)))
11522
11522
  return n;
11523
11523
  const i = r.reduce((s, o) => mt(s) ? void 0 : s[o], e);
11524
11524
  return Fe(i) || i === e ? Fe(e[t]) ? n : e[t] : i;
@@ -11532,15 +11532,15 @@ var Os = (e) => e.split(Iw).filter(Boolean), X = (e, t, n) => {
11532
11532
  const h = e[a];
11533
11533
  u = $e(h) || Array.isArray(h) ? h : isNaN(+i[r + 1]) ? {} : [];
11534
11534
  }
11535
- if (hd.includes(a))
11535
+ if (fd.includes(a))
11536
11536
  return;
11537
11537
  e[a] = u, e = e[a];
11538
11538
  }
11539
11539
  };
11540
- const fd = fe.createContext(null);
11541
- fd.displayName = "HookFormControlContext";
11542
- const va = () => fe.useContext(fd);
11543
- var pd = (e, t, n, r = !0) => {
11540
+ const pd = fe.createContext(null);
11541
+ pd.displayName = "HookFormControlContext";
11542
+ const wa = () => fe.useContext(pd);
11543
+ var md = (e, t, n, r = !0) => {
11544
11544
  const i = {};
11545
11545
  for (const s in e)
11546
11546
  Object.defineProperty(i, s, {
@@ -11551,9 +11551,9 @@ var pd = (e, t, n, r = !0) => {
11551
11551
  });
11552
11552
  return i;
11553
11553
  };
11554
- const wa = Ns ? fe.useLayoutEffect : fe.useEffect;
11554
+ const _a = Ns ? fe.useLayoutEffect : fe.useEffect;
11555
11555
  function Fw(e) {
11556
- const t = va(), { control: n = t, disabled: r, name: i, exact: s } = e || {}, [o, a] = fe.useState(() => ({
11556
+ const t = wa(), { control: n = t, disabled: r, name: i, exact: s } = e || {}, [o, a] = fe.useState(() => ({
11557
11557
  ...n._formState,
11558
11558
  defaultValues: n._defaultValues
11559
11559
  })), u = fe.useRef({
@@ -11566,7 +11566,7 @@ function Fw(e) {
11566
11566
  isValid: !1,
11567
11567
  errors: !1
11568
11568
  });
11569
- return wa(() => n._subscribe({
11569
+ return _a(() => n._subscribe({
11570
11570
  name: i,
11571
11571
  formState: u.current,
11572
11572
  exact: s,
@@ -11579,10 +11579,10 @@ function Fw(e) {
11579
11579
  }
11580
11580
  }), [i, r, s]), fe.useEffect(() => {
11581
11581
  u.current.isValid && n._setValid(!0);
11582
- }, [n]), fe.useMemo(() => pd(o, n, u.current, !1), [o, n]);
11582
+ }, [n]), fe.useMemo(() => md(o, n, u.current, !1), [o, n]);
11583
11583
  }
11584
- var St = (e) => typeof e == "string", Ho = (e, t, n, r, i) => St(e) ? (r && t.watch.add(e), X(n, e, i)) : Array.isArray(e) ? e.map((s) => (r && t.watch.add(s), X(n, s))) : (r && (t.watchAll = !0), n), Vo = (e) => mt(e) || !ld(e);
11585
- const Yl = (e, t) => t.length === 0 && !Array.isArray(e) && !ud(e);
11584
+ var St = (e) => typeof e == "string", Ho = (e, t, n, r, i) => St(e) ? (r && t.watch.add(e), X(n, e, i)) : Array.isArray(e) ? e.map((s) => (r && t.watch.add(s), X(n, s))) : (r && (t.watchAll = !0), n), Vo = (e) => mt(e) || !cd(e);
11585
+ const Xl = (e, t) => t.length === 0 && !Array.isArray(e) && !dd(e);
11586
11586
  function Ut(e, t, n = /* @__PURE__ */ new WeakMap()) {
11587
11587
  if (e === t)
11588
11588
  return !0;
@@ -11593,7 +11593,7 @@ function Ut(e, t, n = /* @__PURE__ */ new WeakMap()) {
11593
11593
  const r = Object.keys(e), i = Object.keys(t);
11594
11594
  if (r.length !== i.length)
11595
11595
  return !1;
11596
- if (Yl(e, r) || Yl(t, i))
11596
+ if (Xl(e, r) || Xl(t, i))
11597
11597
  return Object.is(e, t);
11598
11598
  if (!r.length && Array.isArray(e) !== Array.isArray(t))
11599
11599
  return !1;
@@ -11619,7 +11619,7 @@ function Ut(e, t, n = /* @__PURE__ */ new WeakMap()) {
11619
11619
  return !0;
11620
11620
  }
11621
11621
  function zw(e) {
11622
- const t = va(), { control: n = t, name: r, defaultValue: i, disabled: s, exact: o, compute: a } = e || {}, u = fe.useRef(i), h = fe.useRef(a), c = fe.useRef(void 0), d = fe.useRef(n), y = fe.useRef(r);
11622
+ const t = wa(), { control: n = t, name: r, defaultValue: i, disabled: s, exact: o, compute: a } = e || {}, u = fe.useRef(i), h = fe.useRef(a), c = fe.useRef(void 0), d = fe.useRef(n), y = fe.useRef(r);
11623
11623
  h.current = a;
11624
11624
  const [p, v] = fe.useState(() => {
11625
11625
  const w = n._getWatch(r, u.current);
@@ -11637,7 +11637,7 @@ function zw(e) {
11637
11637
  v(C);
11638
11638
  }
11639
11639
  }, [n._formValues, n._names, s, r]);
11640
- wa(() => ((d.current !== n || !Ut(y.current, r)) && (d.current = n, y.current = r, m()), n._subscribe({
11640
+ _a(() => ((d.current !== n || !Ut(y.current, r)) && (d.current = n, y.current = r, m()), n._subscribe({
11641
11641
  name: r,
11642
11642
  formState: {
11643
11643
  values: !0
@@ -11656,7 +11656,7 @@ function zw(e) {
11656
11656
  return S !== null ? S : p;
11657
11657
  }
11658
11658
  function Uw(e) {
11659
- const t = va(), { name: n, disabled: r, control: i = t, shouldUnregister: s, defaultValue: o, exact: a = !0 } = e, u = cd(i._names.array, n), h = fe.useMemo(() => X(i._formValues, n, X(i._defaultValues, n, o)), [i, n, o]), c = zw({
11659
+ const t = wa(), { name: n, disabled: r, control: i = t, shouldUnregister: s, defaultValue: o, exact: a = !0 } = e, u = ud(i._names.array, n), h = fe.useMemo(() => X(i._formValues, n, X(i._defaultValues, n, o)), [i, n, o]), c = zw({
11660
11660
  control: i,
11661
11661
  name: n,
11662
11662
  defaultValue: h,
@@ -11767,7 +11767,7 @@ var $w = (e, t, n, r, i) => t ? {
11767
11767
  ...n[e] && n[e].types ? n[e].types : {},
11768
11768
  [r]: i || !0
11769
11769
  }
11770
- } : {}, md = (e) => Array.isArray(e) ? e.filter(Boolean) : [], is = (e) => Array.isArray(e) ? e : [e], Xl = () => {
11770
+ } : {}, gd = (e) => Array.isArray(e) ? e.filter(Boolean) : [], is = (e) => Array.isArray(e) ? e : [e], Jl = () => {
11771
11771
  let e = [];
11772
11772
  return {
11773
11773
  get observers() {
@@ -11787,24 +11787,24 @@ var $w = (e, t, n, r, i) => t ? {
11787
11787
  }
11788
11788
  };
11789
11789
  };
11790
- function gd(e, t) {
11790
+ function bd(e, t) {
11791
11791
  const n = {};
11792
11792
  for (const r in e)
11793
11793
  if (e.hasOwnProperty(r)) {
11794
11794
  const i = e[r], s = t[r];
11795
11795
  if (i && $e(i) && s) {
11796
- const o = gd(i, s);
11796
+ const o = bd(i, s);
11797
11797
  $e(o) && (n[r] = o);
11798
11798
  } else e[r] && (n[r] = s);
11799
11799
  }
11800
11800
  return n;
11801
11801
  }
11802
- var pt = (e) => $e(e) && !Object.keys(e).length, _a = (e) => e.type === "file", gs = (e) => {
11802
+ var pt = (e) => $e(e) && !Object.keys(e).length, Sa = (e) => e.type === "file", gs = (e) => {
11803
11803
  if (!Ns)
11804
11804
  return !1;
11805
11805
  const t = e ? e.ownerDocument : 0;
11806
11806
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
11807
- }, bd = (e) => e.type === "select-multiple", Sa = (e) => e.type === "radio", Hw = (e) => Sa(e) || Ii(e), to = (e) => gs(e) && e.isConnected;
11807
+ }, yd = (e) => e.type === "select-multiple", xa = (e) => e.type === "radio", Hw = (e) => xa(e) || Ii(e), to = (e) => gs(e) && e.isConnected;
11808
11808
  function Vw(e, t) {
11809
11809
  const n = t.slice(0, -1).length;
11810
11810
  let r = 0;
@@ -11835,13 +11835,13 @@ var Ww = (e) => {
11835
11835
  return !0;
11836
11836
  return !1;
11837
11837
  };
11838
- function yd(e) {
11838
+ function vd(e) {
11839
11839
  return Array.isArray(e) || $e(e) && !Ww(e);
11840
11840
  }
11841
11841
  function Qo(e, t = {}) {
11842
11842
  for (const n in e) {
11843
11843
  const r = e[n];
11844
- yd(r) ? (t[n] = Array.isArray(r) ? [] : {}, Qo(r, t[n])) : Fe(r) || (t[n] = !0);
11844
+ vd(r) ? (t[n] = Array.isArray(r) ? [] : {}, Qo(r, t[n])) : Fe(r) || (t[n] = !0);
11845
11845
  }
11846
11846
  return t;
11847
11847
  }
@@ -11867,7 +11867,7 @@ function Xn(e, t, n) {
11867
11867
  n || (n = Qo(t));
11868
11868
  for (const r in e) {
11869
11869
  const i = e[r];
11870
- if (yd(i))
11870
+ if (vd(i))
11871
11871
  Fe(t) || Vo(n[r]) ? n[r] = Qo(i, Array.isArray(i) ? [] : {}) : Xn(i, mt(t) ? {} : t[r], n[r]);
11872
11872
  else {
11873
11873
  const s = t[r];
@@ -11876,11 +11876,11 @@ function Xn(e, t, n) {
11876
11876
  }
11877
11877
  return Wo(n) || {};
11878
11878
  }
11879
- const Jl = {
11879
+ const Zl = {
11880
11880
  value: !1,
11881
11881
  isValid: !1
11882
- }, Zl = { value: !0, isValid: !0 };
11883
- var vd = (e) => {
11882
+ }, ec = { value: !0, isValid: !0 };
11883
+ var wd = (e) => {
11884
11884
  if (Array.isArray(e)) {
11885
11885
  if (e.length > 1) {
11886
11886
  const t = e.filter((n) => n && n.checked && !n.disabled).map((n) => n.value);
@@ -11888,22 +11888,22 @@ var vd = (e) => {
11888
11888
  }
11889
11889
  return e[0].checked && !e[0].disabled ? (
11890
11890
  // @ts-expect-error expected to work in the browser
11891
- e[0].attributes && !Fe(e[0].attributes.value) ? Fe(e[0].value) || e[0].value === "" ? Zl : { value: e[0].value, isValid: !0 } : Zl
11892
- ) : Jl;
11891
+ e[0].attributes && !Fe(e[0].attributes.value) ? Fe(e[0].value) || e[0].value === "" ? ec : { value: e[0].value, isValid: !0 } : ec
11892
+ ) : Zl;
11893
11893
  }
11894
- return Jl;
11895
- }, wd = (e, { valueAsNumber: t, valueAsDate: n, setValueAs: r }) => Fe(e) ? e : t ? e === "" ? NaN : e && +e : n && St(e) ? new Date(e) : r ? r(e) : e;
11896
- const ec = {
11894
+ return Zl;
11895
+ }, _d = (e, { valueAsNumber: t, valueAsDate: n, setValueAs: r }) => Fe(e) ? e : t ? e === "" ? NaN : e && +e : n && St(e) ? new Date(e) : r ? r(e) : e;
11896
+ const tc = {
11897
11897
  isValid: !1,
11898
11898
  value: null
11899
11899
  };
11900
- var _d = (e) => Array.isArray(e) ? e.reduce((t, n) => n && n.checked && !n.disabled ? {
11900
+ var Sd = (e) => Array.isArray(e) ? e.reduce((t, n) => n && n.checked && !n.disabled ? {
11901
11901
  isValid: !0,
11902
11902
  value: n.value
11903
- } : t, ec) : ec;
11904
- function tc(e) {
11903
+ } : t, tc) : tc;
11904
+ function nc(e) {
11905
11905
  const t = e.ref;
11906
- return _a(t) ? t.files : Sa(t) ? _d(e.refs).value : bd(t) ? [...t.selectedOptions].map(({ value: n }) => n) : Ii(t) ? vd(e.refs).value : wd(Fe(t.value) ? e.ref.value : t.value, e);
11906
+ return Sa(t) ? t.files : xa(t) ? Sd(e.refs).value : yd(t) ? [...t.selectedOptions].map(({ value: n }) => n) : Ii(t) ? wd(e.refs).value : _d(Fe(t.value) ? e.ref.value : t.value, e);
11907
11907
  }
11908
11908
  var Gw = (e, t, n, r) => {
11909
11909
  const i = {};
@@ -11924,15 +11924,15 @@ var Gw = (e, t, n, r) => {
11924
11924
  isOnAll: e === tn.all,
11925
11925
  isOnTouch: e === tn.onTouched
11926
11926
  });
11927
- const nc = "AsyncFunction";
11927
+ const rc = "AsyncFunction";
11928
11928
  var Kw = (e) => {
11929
11929
  if (!e || !e.validate)
11930
11930
  return !1;
11931
11931
  if (_t(e.validate))
11932
- return e.validate.constructor.name === nc;
11932
+ return e.validate.constructor.name === rc;
11933
11933
  if ($e(e.validate)) {
11934
11934
  for (const t in e.validate)
11935
- if (e.validate[t].constructor.name === nc)
11935
+ if (e.validate[t].constructor.name === rc)
11936
11936
  return !0;
11937
11937
  }
11938
11938
  return !1;
@@ -11963,7 +11963,7 @@ const hi = (e, t, n, r) => {
11963
11963
  }
11964
11964
  }
11965
11965
  };
11966
- function rc(e, t, n) {
11966
+ function ic(e, t, n) {
11967
11967
  const r = X(e, n);
11968
11968
  if (r || Fi(n))
11969
11969
  return {
@@ -11995,11 +11995,11 @@ var Xw = (e, t, n, r) => {
11995
11995
  n(e);
11996
11996
  const { name: i, ...s } = e, o = Object.keys(s);
11997
11997
  return !o.length || r && o.length >= Object.keys(t).length || o.find((a) => t[a] === (!r || tn.all));
11998
- }, Jw = (e, t, n) => !e || !t || e === t || is(e).some((r) => r && (n ? r === t : r.startsWith(t) || t.startsWith(r))), Zw = (e, t, n, r, i) => i.isOnAll ? !1 : !n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : (n ? r.isOnChange : i.isOnChange) ? e : !0, e0 = (e, t) => !md(X(e, t)).length && tt(e, t), ic = (e, t, n) => {
11998
+ }, Jw = (e, t, n) => !e || !t || e === t || is(e).some((r) => r && (n ? r === t : r.startsWith(t) || t.startsWith(r))), Zw = (e, t, n, r, i) => i.isOnAll ? !1 : !n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : (n ? r.isOnChange : i.isOnChange) ? e : !0, e0 = (e, t) => !gd(X(e, t)).length && tt(e, t), sc = (e, t, n) => {
11999
11999
  const r = X(e, n), i = Array.isArray(r) ? r : [];
12000
- return Me(i, dd, t[n]), Me(e, n, i), e;
12000
+ return Me(i, hd, t[n]), Me(e, n, i), e;
12001
12001
  };
12002
- function sc(e, t, n = "validate") {
12002
+ function oc(e, t, n = "validate") {
12003
12003
  if (St(e) || Array.isArray(e) && e.every(St) || zt(e) && !e)
12004
12004
  return {
12005
12005
  type: n,
@@ -12010,7 +12010,7 @@ function sc(e, t, n = "validate") {
12010
12010
  var Tr = (e) => $e(e) && !bs(e) ? e : {
12011
12011
  value: e,
12012
12012
  message: ""
12013
- }, oc = async (e, t, n, r, i, s) => {
12013
+ }, ac = async (e, t, n, r, i, s) => {
12014
12014
  const { ref: o, refs: a, required: u, maxLength: h, minLength: c, min: d, max: y, pattern: p, validate: v, name: b, valueAsNumber: m, mount: f } = e._f, g = X(n, b);
12015
12015
  if (!f || t.has(b))
12016
12016
  return {};
@@ -12019,7 +12019,7 @@ var Tr = (e) => $e(e) && !bs(e) ? e : {
12019
12019
  const U = zt(z) ? "" : z || "";
12020
12020
  a ? a.forEach((P) => P.setCustomValidity(U)) : S.setCustomValidity(U), S.reportValidity();
12021
12021
  }
12022
- }, C = {}, D = Sa(o), O = Ii(o), q = D || O, I = (m || _a(o)) && Fe(o.value) && Fe(g) || gs(o) && o.value === "" || g === "" || Array.isArray(g) && !g.length, V = $w.bind(null, b, r, C), j = (z, U, P, J = Jt.maxLength, te = Jt.minLength) => {
12022
+ }, C = {}, D = xa(o), O = Ii(o), q = D || O, I = (m || Sa(o)) && Fe(o.value) && Fe(g) || gs(o) && o.value === "" || g === "" || Array.isArray(g) && !g.length, V = $w.bind(null, b, r, C), j = (z, U, P, J = Jt.maxLength, te = Jt.minLength) => {
12023
12023
  const F = z ? U : P;
12024
12024
  C[b] = {
12025
12025
  type: z ? J : te,
@@ -12028,7 +12028,7 @@ var Tr = (e) => $e(e) && !bs(e) ? e : {
12028
12028
  ...V(z ? J : te, F)
12029
12029
  };
12030
12030
  };
12031
- if (s ? !Array.isArray(g) || !g.length : u && (!q && (I || mt(g)) || zt(g) && !g || O && !vd(a).isValid || D && !_d(a).isValid)) {
12031
+ if (s ? !Array.isArray(g) || !g.length : u && (!q && (I || mt(g)) || zt(g) && !g || O && !wd(a).isValid || D && !Sd(a).isValid)) {
12032
12032
  const { value: z, message: U } = St(u) ? { value: !!u, message: u } : Tr(u);
12033
12033
  if (z && (C[b] = {
12034
12034
  type: Jt.required,
@@ -12068,7 +12068,7 @@ var Tr = (e) => $e(e) && !bs(e) ? e : {
12068
12068
  }
12069
12069
  if (v) {
12070
12070
  if (_t(v)) {
12071
- const z = await v(g, n), U = sc(z, S);
12071
+ const z = await v(g, n), U = oc(z, S);
12072
12072
  if (U && (C[b] = {
12073
12073
  ...U,
12074
12074
  ...V(Jt.validate, U.message)
@@ -12079,7 +12079,7 @@ var Tr = (e) => $e(e) && !bs(e) ? e : {
12079
12079
  for (const U in v) {
12080
12080
  if (!pt(z) && !r)
12081
12081
  break;
12082
- const P = sc(await v[U](g, n), S, U);
12082
+ const P = oc(await v[U](g, n), S, U);
12083
12083
  P && (z = {
12084
12084
  ...P,
12085
12085
  ...V(U, P.message)
@@ -12098,7 +12098,7 @@ const t0 = {
12098
12098
  mode: tn.onSubmit,
12099
12099
  reValidateMode: tn.onChange,
12100
12100
  shouldFocusError: !0
12101
- }, ro = "form", Sd = {
12101
+ }, ro = "form", xd = {
12102
12102
  submitCount: 0,
12103
12103
  isDirty: !1,
12104
12104
  isReady: !1,
@@ -12116,7 +12116,7 @@ function n0(e = {}) {
12116
12116
  ...t0,
12117
12117
  ...e
12118
12118
  }, n = {
12119
- ...Qe(Sd),
12119
+ ...Qe(xd),
12120
12120
  isLoading: _t(t.defaultValues),
12121
12121
  errors: t.errors || {},
12122
12122
  disabled: t.disabled || !1
@@ -12148,8 +12148,8 @@ function n0(e = {}) {
12148
12148
  ...v
12149
12149
  };
12150
12150
  const m = {
12151
- array: Xl(),
12152
- state: Xl()
12151
+ array: Jl(),
12152
+ state: Jl()
12153
12153
  }, f = t.criteriaMode === tn.all, g = (x) => (k) => {
12154
12154
  clearTimeout(h), h = setTimeout(x, k);
12155
12155
  }, S = async (x) => {
@@ -12219,7 +12219,7 @@ function n0(e = {}) {
12219
12219
  if (I(x))
12220
12220
  return;
12221
12221
  const H = Fe(X(s, x)), $ = X(s, x, Fe(R) ? X(i, x) : R);
12222
- Fe($) || M && M.defaultChecked || k ? Me(s, x, k ? $ : tc(B._f)) : ne(x, $), o.mount && !o.action && (S(), H && n.isDirty && (v.isDirty || b.isDirty) && (ce() || (n.isDirty = !1, m.state.next({ ...n }))), e.shouldUnregister && H && !Fe(X(s, x)) && no(x, a) && (o.watch = !0));
12222
+ Fe($) || M && M.defaultChecked || k ? Me(s, x, k ? $ : nc(B._f)) : ne(x, $), o.mount && !o.action && (S(), H && n.isDirty && (v.isDirty || b.isDirty) && (ce() || (n.isDirty = !1, m.state.next({ ...n }))), e.shouldUnregister && H && !Fe(X(s, x)) && no(x, a) && (o.watch = !0));
12223
12223
  }
12224
12224
  }, j = (x, k, R, M, B) => {
12225
12225
  let H = !1, $ = !1;
@@ -12257,7 +12257,7 @@ function n0(e = {}) {
12257
12257
  if (w(x), x) {
12258
12258
  for (const R of x) {
12259
12259
  const M = X(k, R);
12260
- M ? a.array.has(R) && $e(M) && !Object.keys(M).some((B) => !Number.isNaN(Number(B))) ? ic(n.errors, { [R]: M }, R) : Me(n.errors, R, M) : tt(n.errors, R);
12260
+ M ? a.array.has(R) && $e(M) && !Object.keys(M).some((B) => !Number.isNaN(Number(B))) ? sc(n.errors, { [R]: M }, R) : Me(n.errors, R, M) : tt(n.errors, R);
12261
12261
  }
12262
12262
  n.errors = { ...n.errors };
12263
12263
  } else
@@ -12302,8 +12302,8 @@ function n0(e = {}) {
12302
12302
  if (Z) {
12303
12303
  const Ce = a.array.has(Z.name), dt = $._f && Kw($._f), pn = v.validatingFields || v.isValidating || b.validatingFields || b.isValidating;
12304
12304
  dt && pn && w([Z.name], !0);
12305
- const $t = await oc($, a.disabled, s, f, t.shouldUseNativeValidation && !k, Ce);
12306
- if (dt && pn && w([Z.name]), $t[Z.name] && (B.valid = !1, k) || (!k && (X($t, Z.name) ? Ce ? ic(n.errors, $t, Z.name) : Me(n.errors, Z.name, $t[Z.name]) : tt(n.errors, Z.name)), e.shouldUseNativeValidation && $t[Z.name]))
12305
+ const $t = await ac($, a.disabled, s, f, t.shouldUseNativeValidation && !k, Ce);
12306
+ if (dt && pn && w([Z.name]), $t[Z.name] && (B.valid = !1, k) || (!k && (X($t, Z.name) ? Ce ? sc(n.errors, $t, Z.name) : Me(n.errors, Z.name, $t[Z.name]) : tt(n.errors, Z.name)), e.shouldUseNativeValidation && $t[Z.name]))
12307
12307
  break;
12308
12308
  }
12309
12309
  !pt(de) && await te({
@@ -12324,14 +12324,14 @@ function n0(e = {}) {
12324
12324
  a.unMount = /* @__PURE__ */ new Set();
12325
12325
  }, ce = (x, k) => !t.disabled && (x && k && Me(s, x, k), !Ut(o.mount ? s : i, i)), ie = (x, k, R) => Ho(x, a, {
12326
12326
  ...o.mount ? s : Fe(k) ? i : St(x) ? { [x]: k } : k
12327
- }, R, k), ye = (x) => md(X(o.mount ? s : i, x, t.shouldUnregister ? X(i, x, []) : [])), ne = (x, k, R = {}, M = !1, B = !1) => {
12327
+ }, R, k), ye = (x) => gd(X(o.mount ? s : i, x, t.shouldUnregister ? X(i, x, []) : [])), ne = (x, k, R = {}, M = !1, B = !1) => {
12328
12328
  const H = X(r, x);
12329
12329
  let $ = k;
12330
12330
  if (H) {
12331
12331
  const Z = H._f;
12332
- Z && (!Z.disabled && Me(s, x, wd(k, Z)), $ = gs(Z.ref) && mt(k) ? "" : k, bd(Z.ref) ? [...Z.ref.options].forEach((de) => de.selected = $.includes(de.value)) : Z.refs ? Ii(Z.ref) ? Z.refs.forEach((de) => {
12332
+ Z && (!Z.disabled && Me(s, x, _d(k, Z)), $ = gs(Z.ref) && mt(k) ? "" : k, yd(Z.ref) ? [...Z.ref.options].forEach((de) => de.selected = $.includes(de.value)) : Z.refs ? Ii(Z.ref) ? Z.refs.forEach((de) => {
12333
12333
  (!de.defaultChecked || !de.disabled) && (Array.isArray($) ? de.checked = !!$.find((Ce) => Ce === de.value) : de.checked = $ === de.value || !!$);
12334
- }) : Z.refs.forEach((de) => de.checked = de.value === $) : _a(Z.ref) ? Z.ref.value = "" : (Z.ref.value = $, !Z.ref.type && !B && m.state.next({
12334
+ }) : Z.refs.forEach((de) => de.checked = de.value === $) : Sa(Z.ref) ? Z.ref.value = "" : (Z.ref.value = $, !Z.ref.type && !B && m.state.next({
12335
12335
  name: x,
12336
12336
  values: M ? s : Qe(s)
12337
12337
  })));
@@ -12392,7 +12392,7 @@ function n0(e = {}) {
12392
12392
  };
12393
12393
  if (B) {
12394
12394
  let $, Z;
12395
- const de = k.type ? tc(B._f) : $o(x), Ce = x.type === On.BLUR || x.type === On.FOCUS_OUT, dt = !Yw(B._f) && !e.validate && !t.resolver && !X(n.errors, R) && !B._f.deps, pn = dt || Zw(Ce, X(n.touchedFields, R), n.isSubmitted, y, d), $t = no(R, a, Ce);
12395
+ const de = k.type ? nc(B._f) : $o(x), Ce = x.type === On.BLUR || x.type === On.FOCUS_OUT, dt = !Yw(B._f) && !e.validate && !t.resolver && !X(n.errors, R) && !B._f.deps, pn = dt || Zw(Ce, X(n.touchedFields, R), n.isSubmitted, y, d), $t = no(R, a, Ce);
12396
12396
  Me(s, R, de), Ce ? (!k || !k.readOnly) && (B._f.onBlur && B._f.onBlur(x), u && u(0)) : B._f.onChange && B._f.onChange(x);
12397
12397
  const mn = j(R, de, Ce), zi = !pt(mn) || $t;
12398
12398
  if (!Ce && m.state.next({
@@ -12410,10 +12410,10 @@ function n0(e = {}) {
12410
12410
  !pt(mn) && m.state.next(mn);
12411
12411
  return;
12412
12412
  }
12413
- const yr = rc(n.errors, r, R), Mt = rc(Gn, r, yr.name || R);
12413
+ const yr = ic(n.errors, r, R), Mt = ic(Gn, r, yr.name || R);
12414
12414
  $ = Mt.error, R = Mt.name, Z = pt(Gn);
12415
12415
  } else
12416
- w([R], !0), $ = (await oc(B, a.disabled, s, f, t.shouldUseNativeValidation))[R], w([R]), H(de), M && ($ ? Z = !1 : (v.isValid || b.isValid) && (Z = await te({
12416
+ w([R], !0), $ = (await ac(B, a.disabled, s, f, t.shouldUseNativeValidation))[R], w([R]), H(de), M && ($ ? Z = !1 : (v.isValid || b.isValid) && (Z = await te({
12417
12417
  fields: r,
12418
12418
  onlyCheckValid: !0,
12419
12419
  name: R,
@@ -12450,7 +12450,7 @@ function n0(e = {}) {
12450
12450
  let R = {
12451
12451
  ...o.mount ? s : i
12452
12452
  };
12453
- return k && (R = gd(k.dirtyFields ? n.dirtyFields : n.touchedFields, R)), Fe(x) ? R : St(x) ? X(R, x) : x.map((M) => X(R, M));
12453
+ return k && (R = bd(k.dirtyFields ? n.dirtyFields : n.touchedFields, R)), Fe(x) ? R : St(x) ? X(R, x) : x.map((M) => X(R, M));
12454
12454
  }, oe = (x, k) => ({
12455
12455
  invalid: !!X((k || n).errors, x),
12456
12456
  isDirty: !!X((k || n).dirtyFields, x),
@@ -12585,7 +12585,7 @@ function n0(e = {}) {
12585
12585
  }
12586
12586
  }), V(x, !1, void 0, $);
12587
12587
  } else
12588
- R = X(r, x, {}), R._f && (R._f.mount = !1), (t.shouldUnregister || k.shouldUnregister) && !(cd(a.array, x) && o.action) && a.unMount.add(x);
12588
+ R = X(r, x, {}), R._f && (R._f.mount = !1), (t.shouldUnregister || k.shouldUnregister) && !(ud(a.array, x) && o.action) && a.unMount.add(x);
12589
12589
  }
12590
12590
  };
12591
12591
  }, Pe = () => t.shouldFocusError && !t.shouldUseNativeValidation && hi(r, _e, a.mount), Wt = (x) => {
@@ -12612,7 +12612,7 @@ function n0(e = {}) {
12612
12612
  if (a.disabled.size)
12613
12613
  for (const H of a.disabled)
12614
12614
  tt(B, H);
12615
- if (tt(n.errors, dd), pt(n.errors)) {
12615
+ if (tt(n.errors, hd), pt(n.errors)) {
12616
12616
  m.state.next({
12617
12617
  errors: {}
12618
12618
  });
@@ -12806,7 +12806,7 @@ function n0(e = {}) {
12806
12806
  }
12807
12807
  function r0(e = {}) {
12808
12808
  const t = fe.useRef(void 0), n = fe.useRef(void 0), r = fe.useRef(e.formControl), [i, s] = fe.useState(() => ({
12809
- ...Qe(Sd),
12809
+ ...Qe(xd),
12810
12810
  isLoading: _t(e.defaultValues),
12811
12811
  errors: e.errors || {},
12812
12812
  disabled: e.disabled || !1,
@@ -12826,7 +12826,7 @@ function r0(e = {}) {
12826
12826
  };
12827
12827
  }
12828
12828
  const o = t.current.control;
12829
- return o._options = e, wa(() => {
12829
+ return o._options = e, _a(() => {
12830
12830
  const a = o._subscribe({
12831
12831
  formState: o._proxyFormState,
12832
12832
  callback: () => s({
@@ -12862,7 +12862,7 @@ function r0(e = {}) {
12862
12862
  }), !((a = o._options.resetOptions) === null || a === void 0) && a.keepIsValid || o._setValid(), n.current = e.values, s((u) => ({ ...u }))) : o._resetDefaultValues();
12863
12863
  }, [o, e.values]), fe.useEffect(() => {
12864
12864
  o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
12865
- }), t.current.formState = fe.useMemo(() => pd(i, o), [o, i]), t.current;
12865
+ }), t.current.formState = fe.useMemo(() => md(i, o), [o, i]), t.current;
12866
12866
  }
12867
12867
  const i0 = "_select_11l2a_1", s0 = "_textarea_11l2a_1", o0 = "_input_11l2a_1", a0 = "_form_11l2a_37", l0 = "_field_11l2a_43", c0 = "_fieldFull_11l2a_48", u0 = "_label_11l2a_52", d0 = "_required_11l2a_61", h0 = "_inputError_11l2a_91", f0 = "_error_11l2a_96", p0 = "_checkboxRow_11l2a_102", m0 = "_checkbox_11l2a_102", g0 = "_checkboxLabel_11l2a_139", b0 = "_chips_11l2a_146", y0 = "_chip_11l2a_146", v0 = "_chipLabel_11l2a_179", w0 = "_chipRemove_11l2a_184", _0 = "_chipsInput_11l2a_203", S0 = "_emptyMessage_11l2a_218", qe = {
12868
12868
  select: i0,
@@ -12947,7 +12947,7 @@ function T0({ seconds: e, disabled: t, onCommit: n, onBlur: r }) {
12947
12947
  ] });
12948
12948
  }
12949
12949
  const E0 = ["Audience & Curriculum", "Licensing"];
12950
- function xd(e, t) {
12950
+ function Cd(e, t) {
12951
12951
  return t === void 0 ? !e.section || !E0.includes(e.section) : e.section === t;
12952
12952
  }
12953
12953
  function A0(e) {
@@ -12963,7 +12963,7 @@ function A0(e) {
12963
12963
  return e.required && r.length === 0 ? `${e.label} is required` : e.maxLength && r.length > e.maxLength ? `${e.label} must be at most ${e.maxLength} characters` : !0;
12964
12964
  };
12965
12965
  }
12966
- function Cd(e, t) {
12966
+ function Go(e, t) {
12967
12967
  if (t) {
12968
12968
  const n = e.sourceCategory ?? e.code, r = t.get(n);
12969
12969
  if (r && r.length > 0)
@@ -12978,18 +12978,20 @@ function Cd(e, t) {
12978
12978
  }) : Array.isArray(e.enum) ? e.enum.map((n) => ({ value: n, label: n })) : [];
12979
12979
  }
12980
12980
  function k0(e, t, n) {
12981
- var a, u;
12982
- if (!((a = e.depends) != null && a.length) || !t)
12983
- return Cd(e, t);
12981
+ var u;
12982
+ if (!((u = e.depends) != null && u.length) || !t)
12983
+ return Go(e, t);
12984
12984
  const r = e.depends[e.depends.length - 1], i = String(n[r] ?? "");
12985
12985
  if (!i) return [];
12986
12986
  const o = (t.get(r) ?? []).find((h) => h.name === i);
12987
- return o ? (u = o.associations) != null && u.length ? o.associations.filter((h) => h.category === e.code).map((h) => ({ value: h.name, label: h.name })) : [] : [];
12987
+ if (!o) return [];
12988
+ const a = (o.associations ?? []).filter((h) => h.category === e.code).map((h) => ({ value: h.name, label: h.name }));
12989
+ return a.length > 0 ? a : Go(e, t);
12988
12990
  }
12989
- function ac(e, t, n) {
12991
+ function lc(e, t, n) {
12990
12992
  const r = {};
12991
12993
  for (const i of e) {
12992
- if (!i.visible || !xd(i, n)) continue;
12994
+ if (!i.visible || !Cd(i, n)) continue;
12993
12995
  const s = t[i.code];
12994
12996
  if (i.inputType === "multiselect" || i.inputType === "keywords")
12995
12997
  r[i.code] = Array.isArray(s) ? s : s ? [String(s)] : [];
@@ -13116,7 +13118,7 @@ const li = ({
13116
13118
  frameworkTerms: o
13117
13119
  }) => {
13118
13120
  const a = e.filter(
13119
- (g) => g.visible && g.inputType !== "appIcon" && xd(g, s)
13121
+ (g) => g.visible && g.inputType !== "appIcon" && Cd(g, s)
13120
13122
  ), {
13121
13123
  control: u,
13122
13124
  formState: { errors: h, isValid: c },
@@ -13125,7 +13127,7 @@ const li = ({
13125
13127
  watch: p,
13126
13128
  setValue: v
13127
13129
  } = r0({
13128
- defaultValues: ac(e, t, s),
13130
+ defaultValues: lc(e, t, s),
13129
13131
  mode: "onChange"
13130
13132
  }), b = p(), m = pr(() => {
13131
13133
  const g = {};
@@ -13141,7 +13143,7 @@ const li = ({
13141
13143
  }
13142
13144
  }, [m, v, n]);
13143
13145
  return Ae(() => {
13144
- d(ac(e, t, s)), y();
13146
+ d(lc(e, t, s)), y();
13145
13147
  }, [JSON.stringify(t), s, o]), Ae(() => {
13146
13148
  r == null || r(c);
13147
13149
  }, [c, r]), a.length === 0 ? /* @__PURE__ */ l("p", { className: qe.emptyMessage, children: "No fields available for this section." }) : /* @__PURE__ */ l(
@@ -13228,7 +13230,7 @@ const li = ({
13228
13230
  );
13229
13231
  }
13230
13232
  if (z === "multiselect") {
13231
- const U = Cd(g, o), P = Array.isArray(j.value) ? j.value[0] ?? "" : String(j.value ?? "");
13233
+ const U = Go(g, o), P = Array.isArray(j.value) ? j.value[0] ?? "" : String(j.value ?? "");
13232
13234
  return /* @__PURE__ */ E(
13233
13235
  "select",
13234
13236
  {
@@ -13365,7 +13367,7 @@ const li = ({
13365
13367
  })
13366
13368
  }
13367
13369
  );
13368
- }, N0 = ws(() => Promise.resolve().then(() => xa)), O0 = ({
13370
+ }, N0 = ws(() => Promise.resolve().then(() => Ca)), O0 = ({
13369
13371
  node: e,
13370
13372
  onOpenEditor: t,
13371
13373
  onRemove: n,
@@ -13445,7 +13447,7 @@ const li = ({
13445
13447
  ] })
13446
13448
  ] })
13447
13449
  ] });
13448
- }, L0 = ws(() => Promise.resolve().then(() => P_)), P0 = ws(() => Promise.resolve().then(() => xa)), M0 = [
13450
+ }, L0 = ws(() => Promise.resolve().then(() => P_)), P0 = ws(() => Promise.resolve().then(() => Ca)), M0 = [
13449
13451
  { key: "details", label: "Details" },
13450
13452
  { key: "audience", label: "Audience & Curriculum", section: "Audience & Curriculum" },
13451
13453
  { key: "behaviour", label: "Behaviour" }
@@ -13456,7 +13458,7 @@ const li = ({
13456
13458
  { key: "question", label: "Question" },
13457
13459
  { key: "meta", label: "Details" }
13458
13460
  ];
13459
- function lc() {
13461
+ function cc() {
13460
13462
  return /* @__PURE__ */ l("div", { className: "ce-spinner-wrap", children: /* @__PURE__ */ l("span", { className: "ce-spinner", "aria-hidden": "true" }) });
13461
13463
  }
13462
13464
  const F0 = ({
@@ -13465,8 +13467,8 @@ const F0 = ({
13465
13467
  hasContent: n = !0
13466
13468
  }) => {
13467
13469
  var Ue;
13468
- const { frameworkTerms: r } = ad(), i = Ye(), { isFetching: s } = Mw(), o = re((L) => L.editorMode), a = re((L) => L.showPreview), u = re((L) => L.previewQuestionId), h = re((L) => L.isCurrentNodeRoot), c = re((L) => L.isCurrentNodeFolder), d = re((L) => L.isCurrentNodeQuestion), y = re((L) => L.rootFormConfig), p = re((L) => L.unitFormConfig), v = re((L) => L.relationalFormConfig), b = re((L) => L.questionFormConfig), m = ge((L) => L.selectedNodeId), f = ge((L) => L.activeNodeMeta), g = ge((L) => L.breadcrumb), S = ge((L) => L.updateNode), w = ge((L) => L.selectNode), { openModal: C, pendingEditorOpen: D, setPendingEditorOpen: O } = Qt(), q = e ?? o, I = (Ue = re.getState().editorConfig) == null ? void 0 : Ue.context, V = !fu(q, I), [j, z] = ue("details"), [U, P] = ue(!1), J = Qt((L) => L.setQuestionEditorOpen);
13469
- Ae(() => (J(d && U), d && U && aa("question_editor"), () => J(!1)), [d, U]);
13470
+ const { frameworkTerms: r } = ld(), i = Ye(), { isFetching: s } = Mw(), o = re((L) => L.editorMode), a = re((L) => L.showPreview), u = re((L) => L.previewQuestionId), h = re((L) => L.isCurrentNodeRoot), c = re((L) => L.isCurrentNodeFolder), d = re((L) => L.isCurrentNodeQuestion), y = re((L) => L.rootFormConfig), p = re((L) => L.unitFormConfig), v = re((L) => L.relationalFormConfig), b = re((L) => L.questionFormConfig), m = ge((L) => L.selectedNodeId), f = ge((L) => L.activeNodeMeta), g = ge((L) => L.breadcrumb), S = ge((L) => L.updateNode), w = ge((L) => L.selectNode), { openModal: C, pendingEditorOpen: D, setPendingEditorOpen: O } = Qt(), q = e ?? o, I = (Ue = re.getState().editorConfig) == null ? void 0 : Ue.context, V = !pu(q, I), [j, z] = ue("details"), [U, P] = ue(!1), J = Qt((L) => L.setQuestionEditorOpen);
13471
+ Ae(() => (J(d && U), d && U && la("question_editor"), () => J(!1)), [d, U]);
13470
13472
  const [te, F] = ue(!1);
13471
13473
  Ae(() => {
13472
13474
  be.getState().isSaving || (z(d ? "question" : "details"), m && m === D ? (P(!0), O(null)) : P(!1));
@@ -13499,7 +13501,7 @@ const F0 = ({
13499
13501
  return "";
13500
13502
  })(), K = !m, _e = !n;
13501
13503
  return /* @__PURE__ */ E("div", { style: { flex: 1, display: "flex", flexDirection: "column", minHeight: 0, position: "relative" }, children: [
13502
- a && /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, zIndex: 300, background: "#fff", display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ l(os, { fallback: /* @__PURE__ */ l(lc, {}), children: /* @__PURE__ */ l(
13504
+ a && /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, zIndex: 300, background: "#fff", display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ l(os, { fallback: /* @__PURE__ */ l(cc, {}), children: /* @__PURE__ */ l(
13503
13505
  P0,
13504
13506
  {
13505
13507
  questionSetId: m ?? "",
@@ -13508,7 +13510,7 @@ const F0 = ({
13508
13510
  }
13509
13511
  ) }) }),
13510
13512
  (_e || K) && !a && /* @__PURE__ */ l("div", { className: "ce-empty", "aria-live": "polite", children: _e ? "Add a section or question to get started." : "Select a node from the outline" }),
13511
- !K && !_e && !a && d && U && /* @__PURE__ */ l("div", { className: "ce-main-scroll", children: /* @__PURE__ */ l(os, { fallback: /* @__PURE__ */ l(lc, {}), children: /* @__PURE__ */ l(
13513
+ !K && !_e && !a && d && U && /* @__PURE__ */ l("div", { className: "ce-main-scroll", children: /* @__PURE__ */ l(os, { fallback: /* @__PURE__ */ l(cc, {}), children: /* @__PURE__ */ l(
13512
13514
  L0,
13513
13515
  {
13514
13516
  editorMode: q,
@@ -13901,7 +13903,7 @@ const F0 = ({
13901
13903
  );
13902
13904
  };
13903
13905
  function j0({ events: e }) {
13904
- const [t, n] = ue(!1), [r, i] = ue(!1), [s, o] = ue(!0), [a, u] = ue(!1), h = re((O) => O.isDirty), c = re((O) => O.editorMode), d = re((O) => O.lastSaved), { save: y, isSaving: p } = Zu(), { runAction: v } = ub(y);
13906
+ const [t, n] = ue(!1), [r, i] = ue(!1), [s, o] = ue(!0), [a, u] = ue(!1), h = re((O) => O.isDirty), c = re((O) => O.editorMode), d = re((O) => O.lastSaved), { save: y, isSaving: p } = ed(), { runAction: v } = ub(y);
13905
13907
  Ae(() => {
13906
13908
  const O = (q) => {
13907
13909
  h && (q.preventDefault(), q.returnValue = "");
@@ -13912,7 +13914,7 @@ function j0({ events: e }) {
13912
13914
  async (O) => {
13913
13915
  var V, j;
13914
13916
  const { action: q, data: I } = O;
13915
- switch (q === "back" && h || (V = e.onToolbarEvent) == null || V.call(e, O), ["onFormValueChange", "onFormStatusChange"].includes(q) || la(q), q) {
13917
+ switch (q === "back" && h || (V = e.onToolbarEvent) == null || V.call(e, O), ["onFormValueChange", "onFormStatusChange"].includes(q) || ca(q), q) {
13916
13918
  case "onFormStatusChange": {
13917
13919
  const z = (I == null ? void 0 : I.isValid) ?? !0;
13918
13920
  o(z);
@@ -13954,7 +13956,7 @@ function j0({ events: e }) {
13954
13956
  }, [y, a, e]), g = xe(() => {
13955
13957
  i(!1), u(!1);
13956
13958
  }, []), S = Qt((O) => O.questionEditorOpen), w = ge((O) => O.treeData.length > 0), [C, D] = ue(null);
13957
- return /* @__PURE__ */ l(Yu.Provider, { value: C, children: /* @__PURE__ */ E("div", { className: "ce", ref: D, children: [
13959
+ return /* @__PURE__ */ l(Xu.Provider, { value: C, children: /* @__PURE__ */ E("div", { className: "ce", ref: D, children: [
13958
13960
  /* @__PURE__ */ l(
13959
13961
  ov,
13960
13962
  {
@@ -14027,7 +14029,7 @@ const $0 = "_root_gwbg6_1", H0 = "_loadingState_gwbg6_20", V0 = "_loadingSpinner
14027
14029
  class X0 extends Gd {
14028
14030
  constructor(n) {
14029
14031
  super(n);
14030
- Ua(this, "handleRetry", () => {
14032
+ Ba(this, "handleRetry", () => {
14031
14033
  this.setState({ hasError: !1, error: null });
14032
14034
  });
14033
14035
  this.state = { hasError: !1, error: null };
@@ -14099,7 +14101,7 @@ function Td(e) {
14099
14101
  /* @__PURE__ */ l(J0, { config: a, events: u })
14100
14102
  ] }) }) });
14101
14103
  }
14102
- const ys = Symbol.for("r2wc.reactRender"), cc = Symbol.for("r2wc.shouldRender"), Ki = Symbol.for("r2wc.root");
14104
+ const ys = Symbol.for("r2wc.reactRender"), uc = Symbol.for("r2wc.shouldRender"), Ki = Symbol.for("r2wc.root");
14103
14105
  function Z0(e = "") {
14104
14106
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
14105
14107
  }
@@ -14108,7 +14110,7 @@ function e_(e = "") {
14108
14110
  return t[1].toUpperCase();
14109
14111
  });
14110
14112
  }
14111
- var uc = {
14113
+ var dc = {
14112
14114
  expando: function(e, t, n) {
14113
14115
  Object.defineProperty(e, t, {
14114
14116
  enumerable: !0,
@@ -14136,7 +14138,7 @@ function t_(e, t, n, r = {}) {
14136
14138
  return c in e.propTypes || c in a;
14137
14139
  },
14138
14140
  set: function(h, c, d, y) {
14139
- return s && (i[c] = !0), typeof c == "symbol" || i[c] || c in h ? (e.propTypes && c in e.propTypes && uc.expando(y, c, d), Reflect.set(h, c, d, y)) : (uc.expando(y, c, d), !0);
14141
+ return s && (i[c] = !0), typeof c == "symbol" || i[c] || c in h ? (e.propTypes && c in e.propTypes && dc.expando(y, c, d), Reflect.set(h, c, d, y)) : (dc.expando(y, c, d), !0);
14140
14142
  },
14141
14143
  getOwnPropertyDescriptor: function(h, c) {
14142
14144
  var d = Reflect.getOwnPropertyDescriptor(h, c);
@@ -14152,11 +14154,11 @@ function t_(e, t, n, r = {}) {
14152
14154
  }
14153
14155
  });
14154
14156
  return o.prototype = u, a.connectedCallback = function() {
14155
- this[cc] = !0, this[ys]();
14157
+ this[uc] = !0, this[ys]();
14156
14158
  }, a.disconnectedCallback = function() {
14157
14159
  typeof n.createRoot == "function" ? this[Ki].unmount() : n.unmountComponentAtNode(this);
14158
14160
  }, a[ys] = function() {
14159
- if (this[cc] === !0) {
14161
+ if (this[uc] === !0) {
14160
14162
  var h = {};
14161
14163
  Object.keys(this).forEach(function(y) {
14162
14164
  i[y] !== !1 && (h[y] = this[y]);
@@ -14236,11 +14238,11 @@ const l_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14236
14238
  title: d_,
14237
14239
  closeBtn: h_,
14238
14240
  playerContainer: f_
14239
- }, Go = "sunbird-quml-player", p_ = "/assets/sunbird-quml-player.js";
14241
+ }, Ko = "sunbird-quml-player", p_ = "/assets/sunbird-quml-player.js";
14240
14242
  function m_(e) {
14241
14243
  return new Promise((t, n) => {
14242
- if (customElements.get(Go)) return t();
14243
- const r = () => customElements.whenDefined(Go).then(() => t(), n);
14244
+ if (customElements.get(Ko)) return t();
14245
+ const r = () => customElements.whenDefined(Ko).then(() => t(), n);
14244
14246
  if (document.querySelector(`script[src="${e}"]`)) return void r();
14245
14247
  const i = document.createElement("script");
14246
14248
  i.src = e, i.onload = r, i.onerror = () => n(new Error(`Failed to load QuML player: ${e}`)), document.head.appendChild(i);
@@ -14254,7 +14256,7 @@ function Ad(e) {
14254
14256
  children: (e.children ?? []).map(Ad)
14255
14257
  };
14256
14258
  }
14257
- function dc(e, t) {
14259
+ function hc(e, t) {
14258
14260
  const n = [...e];
14259
14261
  for (; n.length; ) {
14260
14262
  const r = n.shift();
@@ -14277,7 +14279,7 @@ const g_ = ({ questionSetId: e, singleQuestionId: t, inline: n = !1, onClose: r
14277
14279
  const f = ge.getState().treeData;
14278
14280
  let g = f[0] ? Ad(f[0]) : {};
14279
14281
  if (t) {
14280
- const I = dc(f, t);
14282
+ const I = hc(f, t);
14281
14283
  let V = { ...(I == null ? void 0 : I.metadata) ?? {} };
14282
14284
  try {
14283
14285
  const [P] = await Tw([t]);
@@ -14291,7 +14293,7 @@ const g_ = ({ questionSetId: e, singleQuestionId: t, inline: n = !1, onClose: r
14291
14293
  mimeType: "application/vnd.sunbird.question",
14292
14294
  objectType: "Question",
14293
14295
  visibility: "Parent"
14294
- }, z = I != null && I.parent ? dc(f, I.parent) : void 0, U = z != null && z.isFolder ? [{
14296
+ }, z = I != null && I.parent ? hc(f, I.parent) : void 0, U = z != null && z.isFolder ? [{
14295
14297
  ...z.metadata ?? {},
14296
14298
  identifier: z.identifier,
14297
14299
  name: z.name,
@@ -14321,7 +14323,7 @@ const g_ = ({ questionSetId: e, singleQuestionId: t, inline: n = !1, onClose: r
14321
14323
  // Disable the player's hamburger side menu in editor previews —
14322
14324
  // it renders viewport-fixed and escapes the preview container.
14323
14325
  sideMenu: { enable: !1, showShare: !1, showDownload: !1, showExit: !1 },
14324
- ...t ? { showLegend: !1 } : {},
14326
+ ...t ? { showLegend: !1, showSectionIntro: !1 } : {},
14325
14327
  ...C !== void 0 ? { maxAttempts: C } : {}
14326
14328
  },
14327
14329
  metadata: g,
@@ -14329,7 +14331,7 @@ const g_ = ({ questionSetId: e, singleQuestionId: t, inline: n = !1, onClose: r
14329
14331
  };
14330
14332
  if (c || !s.current) return;
14331
14333
  s.current.innerHTML = "";
14332
- const q = document.createElement(Go);
14334
+ const q = document.createElement(Ko);
14333
14335
  q.setAttribute("player-config", JSON.stringify(O)), q.playerConfig = O, s.current.appendChild(q), a("ready");
14334
14336
  } catch (b) {
14335
14337
  console.error("[QumlPlayer] preview failed:", b), c || a("error");
@@ -14365,7 +14367,7 @@ const g_ = ({ questionSetId: e, singleQuestionId: t, inline: n = !1, onClose: r
14365
14367
  className: si.closeBtn,
14366
14368
  onClick: () => r == null ? void 0 : r(),
14367
14369
  "aria-label": i("ui.closePreview", "Close preview"),
14368
- children: /* @__PURE__ */ l(td, { size: 20, "aria-hidden": "true" })
14370
+ children: /* @__PURE__ */ l(nd, { size: 20, "aria-hidden": "true" })
14369
14371
  }
14370
14372
  )
14371
14373
  ] }),
@@ -14374,7 +14376,7 @@ const g_ = ({ questionSetId: e, singleQuestionId: t, inline: n = !1, onClose: r
14374
14376
  /* @__PURE__ */ l("div", { ref: s, style: { width: "100%", height: "100%" } })
14375
14377
  ] })
14376
14378
  ] });
14377
- }, xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14379
+ }, Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14378
14380
  __proto__: null,
14379
14381
  default: g_
14380
14382
  }, Symbol.toStringTag, { value: "Module" }));
@@ -14404,7 +14406,7 @@ function y_({ anchor: e, onClose: t, savedRange: n }) {
14404
14406
  t();
14405
14407
  return;
14406
14408
  }
14407
- const y = c ? `<img src="${ps(c)}" alt="${ps(d ?? "equation")}" style="vertical-align:middle;max-height:2em;" />&nbsp;` : `<span>${ya(d ?? "")}</span>&nbsp;`;
14409
+ const y = c ? `<img src="${ps(c)}" alt="${ps(d ?? "equation")}" style="vertical-align:middle;max-height:2em;" />&nbsp;` : `<span>${va(d ?? "")}</span>&nbsp;`;
14408
14410
  n ? b_(y, n) : document.execCommand("insertHTML", !1, y), t();
14409
14411
  }
14410
14412
  });
@@ -14470,7 +14472,7 @@ function y_({ anchor: e, onClose: t, savedRange: n }) {
14470
14472
  document.body
14471
14473
  );
14472
14474
  }
14473
- const Ko = {
14475
+ const Yo = {
14474
14476
  Currency: [
14475
14477
  {
14476
14478
  char: "$",
@@ -15493,7 +15495,7 @@ const Ko = {
15493
15495
  title: "Latin small letter long s"
15494
15496
  }
15495
15497
  ]
15496
- }, v_ = ["All", ...Object.keys(Ko)], w_ = [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36];
15498
+ }, v_ = ["All", ...Object.keys(Yo)], w_ = [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36];
15497
15499
  function __(e) {
15498
15500
  const t = window.getSelection();
15499
15501
  if (!t || t.rangeCount === 0 || t.isCollapsed)
@@ -15522,7 +15524,7 @@ function S_({ anchor: e, onClose: t }) {
15522
15524
  clearTimeout(f), document.removeEventListener("mousedown", m);
15523
15525
  };
15524
15526
  }, [t]);
15525
- const u = i === "All" ? Object.values(Ko).flat() : Ko[i] ?? [], h = 390, c = 360, y = window.innerHeight - e.bottom - 8 >= c ? e.bottom + 6 : Math.max(8, e.top - c - 6), p = Math.max(8, Math.min(e.left, window.innerWidth - h - 8));
15527
+ const u = i === "All" ? Object.values(Yo).flat() : Yo[i] ?? [], h = 390, c = 360, y = window.innerHeight - e.bottom - 8 >= c ? e.bottom + 6 : Math.max(8, e.top - c - 6), p = Math.max(8, Math.min(e.left, window.innerWidth - h - 8));
15526
15528
  return _n(
15527
15529
  /* @__PURE__ */ E("div", { ref: r, style: {
15528
15530
  position: "fixed",
@@ -15650,7 +15652,7 @@ function x_({ anchor: e, onClose: t }) {
15650
15652
  document.body
15651
15653
  );
15652
15654
  }
15653
- const hc = [
15655
+ const fc = [
15654
15656
  { code: "EN", label: "EN", dir: "ltr" },
15655
15657
  { code: "AR", label: "AR", dir: "rtl" },
15656
15658
  { code: "FR", label: "FR", dir: "ltr" },
@@ -15719,7 +15721,7 @@ function C_({ disabled: e = !1 }) {
15719
15721
  },
15720
15722
  onChange: (P) => {
15721
15723
  var ce, ie;
15722
- const J = P.target.value, te = ((ce = hc.find((ye) => ye.code === J)) == null ? void 0 : ce.dir) ?? "ltr";
15724
+ const J = P.target.value, te = ((ce = fc.find((ye) => ye.code === J)) == null ? void 0 : ce.dir) ?? "ltr";
15723
15725
  document.dispatchEvent(new CustomEvent("ce-lang-changed", { detail: { lang: J, dir: te } })), be.getState().switchContentLang(J.toLowerCase());
15724
15726
  const F = O.current;
15725
15727
  if (F) {
@@ -15727,7 +15729,7 @@ function C_({ disabled: e = !1 }) {
15727
15729
  ne && (ne.focus(), ne.setAttribute("dir", te)), ye && (ye.removeAllRanges(), ye.addRange(F));
15728
15730
  }
15729
15731
  },
15730
- children: hc.map((P) => /* @__PURE__ */ l("option", { value: P.code, children: P.label }, P.code))
15732
+ children: fc.map((P) => /* @__PURE__ */ l("option", { value: P.code, children: P.label }, P.code))
15731
15733
  }
15732
15734
  )
15733
15735
  ] }),
@@ -15925,7 +15927,7 @@ const Xt = (e) => Object.fromEntries(Object.entries(e ?? {}).filter(([, t]) => t
15925
15927
  function T_(e) {
15926
15928
  return qi(e).trim().split(/\s+/).filter(Boolean);
15927
15929
  }
15928
- function fc(e, t) {
15930
+ function pc(e, t) {
15929
15931
  var c, d, y, p, v, b;
15930
15932
  const n = e.editorState, r = e.interactions, i = Xt(t.i18n.questionBody);
15931
15933
  Rn(i) && (n.question = Cr(i), e.body = JSON.stringify(
@@ -16009,7 +16011,7 @@ function fc(e, t) {
16009
16011
  }
16010
16012
  Object.keys(u).some((m) => m !== "en") && (n.solutions = [{ id: t.solutionId, value: u }], e.solutions = { [t.solutionId]: Cr(h) });
16011
16013
  }
16012
- function Ca(e) {
16014
+ function Ta(e) {
16013
16015
  return [...qi(e).matchAll(/\[\[(.+?)\]\]/g)].map((t) => t[1].trim());
16014
16016
  }
16015
16017
  function Ji(e, t) {
@@ -16021,13 +16023,13 @@ function Ji(e, t) {
16021
16023
  }
16022
16024
  return e === "mtf" ? `<div class='question-body' tabindex='-1'><div class='mtf-title' tabindex='0'>${t}</div><div data-match-interaction='response1'></div></div>` : e === "seq" || e === "reo" ? `<div class='question-body' tabindex='-1'><div class='order-title' tabindex='0'>${t}</div><div data-ordered-interaction='response1'></div></div>` : t;
16023
16025
  }
16024
- function Yo(e) {
16026
+ function Xo(e) {
16025
16027
  return e.map((t) => ({ left: { en: t.left }, right: { en: t.right } }));
16026
16028
  }
16027
- function Xo(e) {
16029
+ function Jo(e) {
16028
16030
  return String.fromCharCode(97 + e);
16029
16031
  }
16030
- function Ta(e) {
16032
+ function Ea(e) {
16031
16033
  return e.map((t, n) => ({ value: String.fromCharCode(65 + n), label: t }));
16032
16034
  }
16033
16035
  function yi(e) {
@@ -16036,8 +16038,8 @@ function yi(e) {
16036
16038
  function E_(e) {
16037
16039
  return qi(e).trim().split(/\s+/).filter(Boolean);
16038
16040
  }
16039
- function Ea(e) {
16040
- return Ta(E_(e));
16041
+ function Aa(e) {
16042
+ return Ea(E_(e));
16041
16043
  }
16042
16044
  function so(e, t) {
16043
16045
  const n = t.thumbnail ?? "";
@@ -16056,9 +16058,9 @@ function A_(e, t) {
16056
16058
  }
16057
16059
  return n;
16058
16060
  }
16059
- function pc(e, t, n = "", r = [], i = [], s = "") {
16061
+ function mc(e, t, n = "", r = [], i = [], s = "") {
16060
16062
  if (e === "reo") {
16061
- const o = Ea(s), a = o.map((u) => u.value);
16063
+ const o = Aa(s), a = o.map((u) => u.value);
16062
16064
  return {
16063
16065
  response1: {
16064
16066
  type: "order",
@@ -16072,7 +16074,7 @@ function pc(e, t, n = "", r = [], i = [], s = "") {
16072
16074
  return {
16073
16075
  response1: {
16074
16076
  type: "order",
16075
- options: Ta(i),
16077
+ options: Ea(i),
16076
16078
  validation: { required: "Yes" }
16077
16079
  }
16078
16080
  };
@@ -16082,7 +16084,7 @@ function pc(e, t, n = "", r = [], i = [], s = "") {
16082
16084
  type: "match",
16083
16085
  options: {
16084
16086
  left: r.map((o, a) => ({ value: String(a), label: { en: o.left } })),
16085
- right: r.map((o, a) => ({ value: Xo(a), label: { en: o.right } }))
16087
+ right: r.map((o, a) => ({ value: Jo(a), label: { en: o.right } }))
16086
16088
  },
16087
16089
  validation: { required: "Yes" }
16088
16090
  }
@@ -16096,16 +16098,16 @@ function pc(e, t, n = "", r = [], i = [], s = "") {
16096
16098
  }
16097
16099
  };
16098
16100
  if (e === "ftb") {
16099
- const o = Ca(n), a = {};
16101
+ const o = Ta(n), a = {};
16100
16102
  return (o.length ? o : [""]).forEach((u, h) => {
16101
16103
  a[`response${h + 1}`] = h === 0 ? { type: "text", validation: { required: "Yes" } } : { type: "text" };
16102
16104
  }), a;
16103
16105
  }
16104
16106
  return {};
16105
16107
  }
16106
- function mc(e, t, n = "", r = [], i = !0, s = [], o = "") {
16108
+ function gc(e, t, n = "", r = [], i = !0, s = [], o = "") {
16107
16109
  if (e === "reo") {
16108
- const a = Ea(o).map((u) => u.value);
16110
+ const a = Aa(o).map((u) => u.value);
16109
16111
  return {
16110
16112
  response1: {
16111
16113
  cardinality: "ordered",
@@ -16126,17 +16128,17 @@ function mc(e, t, n = "", r = [], i = !0, s = [], o = "") {
16126
16128
  if (e === "mtf") {
16127
16129
  const a = {};
16128
16130
  r.forEach((h, c) => {
16129
- a[String(c)] = Xo(c);
16131
+ a[String(c)] = Jo(c);
16130
16132
  });
16131
16133
  const u = {
16132
16134
  cardinality: "single",
16133
16135
  type: "map",
16134
16136
  correctResponse: { value: a }
16135
16137
  };
16136
- return i && (u.mapping = r.map((h, c) => ({ key: String(c), value: Xo(c), score: 1 }))), { response1: u };
16138
+ return i && (u.mapping = r.map((h, c) => ({ key: String(c), value: Jo(c), score: 1 }))), { response1: u };
16137
16139
  }
16138
16140
  if (e === "ftb") {
16139
- const a = Ca(n), u = a.map((c) => ({ value: c, score: 1, caseSensitive: !1 })), h = {};
16141
+ const a = Ta(n), u = a.map((c) => ({ value: c, score: 1, caseSensitive: !1 })), h = {};
16140
16142
  if (a.forEach((c, d) => {
16141
16143
  h[`response${d + 1}`] = {
16142
16144
  cardinality: "single",
@@ -16159,7 +16161,7 @@ function mc(e, t, n = "", r = [], i = !0, s = [], o = "") {
16159
16161
  }
16160
16162
  return { response1: { cardinality: "single", type: "string", correctResponse: { value: "" } } };
16161
16163
  }
16162
- function gc(e, t, n, r, i, s = [], o = [], a = "") {
16164
+ function bc(e, t, n, r, i, s = [], o = [], a = "") {
16163
16165
  if (e === "mcq" || e === "boolean")
16164
16166
  return {
16165
16167
  options: n.map((u, h) => ({ answer: !!u.isCorrect, value: { body: u.body, value: h } })),
@@ -16168,16 +16170,16 @@ function gc(e, t, n, r, i, s = [], o = [], a = "") {
16168
16170
  if (e === "ftb" && i)
16169
16171
  return { isPartialScore: i.isPartialScore, evalUnordered: i.evalUnordered, question: t };
16170
16172
  if (e === "mtf" && i)
16171
- return { pairs: Yo(s), isPartialScore: i.isPartialScore, question: t };
16173
+ return { pairs: Xo(s), isPartialScore: i.isPartialScore, question: t };
16172
16174
  if (e === "seq" && i)
16173
16175
  return {
16174
- options: Ta(o),
16176
+ options: Ea(o),
16175
16177
  correctOrder: yi(o),
16176
16178
  isPartialScore: i.isPartialScore,
16177
16179
  question: t
16178
16180
  };
16179
16181
  if (e === "reo") {
16180
- const u = Ea(a);
16182
+ const u = Aa(a);
16181
16183
  return {
16182
16184
  sentence: a,
16183
16185
  i18n: { en: { options: u, correctResponse: u.map((h) => h.value) } },
@@ -16186,7 +16188,7 @@ function gc(e, t, n, r, i, s = [], o = [], a = "") {
16186
16188
  }
16187
16189
  return r ? { answer: r, question: t } : { question: t };
16188
16190
  }
16189
- function bc(e, t, n) {
16191
+ function yc(e, t, n) {
16190
16192
  if (e === "mcq" || e === "boolean") {
16191
16193
  const r = t.find((i) => i.isCorrect);
16192
16194
  return `<div class='answer-container'><div class='answer-body'>${(r == null ? void 0 : r.body) ?? ""}</div></div>`;
@@ -16218,11 +16220,11 @@ function k_() {
16218
16220
  contentLang: w,
16219
16221
  setIsDirty: C,
16220
16222
  setIsSaving: D
16221
- } = be(), O = re((P) => P.editorConfig), { selectedNodeId: q, updateNode: I, replaceNodeId: V, treeData: j } = ge(), { save: z } = Zu();
16223
+ } = be(), O = re((P) => P.editorConfig), { selectedNodeId: q, updateNode: I, replaceNodeId: V, treeData: j } = ge(), { save: z } = ed();
16222
16224
  return { save: xe(async () => {
16223
16225
  var Pt, kt, Gt, jt, Sn, Qn, Wn, fn, x, k, R;
16224
16226
  if (!t || !q || be.getState().isSaving) return !1;
16225
- const P = ((Pt = O == null ? void 0 : O.context) == null ? void 0 : Pt.channel) ?? "", J = Ri(O == null ? void 0 : O.context), te = ((kt = O == null ? void 0 : O.context) == null ? void 0 : kt.framework) ?? "", F = Qr(t), ce = (F == null ? void 0 : F.primaryCategory) ?? "Multiple Choice Question", ie = (F == null ? void 0 : F.qType) ?? "MCQ", ye = ge.getState().treeCache[q] ?? {}, ne = typeof ye.name == "string" && ye.name.trim() ? ye.name.trim() : void 0, ze = Number(ye.maxScore), Ie = (e == null ? void 0 : e.identifier) && !e.identifier.startsWith("temp-"), He = (n || "").replace(/<[^>]+>/g, "").slice(0, 60).trim() || "Untitled Question", Ze = ne ?? (Ie ? e == null ? void 0 : e.name : void 0) ?? He, K = t === "ftb" ? Ca(n).length : t === "mtf" ? i.length : 0, _e = t === "ftb" && K > 0 ? K : t === "mtf" ? f && K > 0 ? K : 1 : t === "seq" ? f && s.length > 0 ? s.length : 1 : t === "reo" ? 1 : Number.isFinite(ze) && ze > 0 ? ze : m ?? 1, Ue = (t === "ftb" || t === "mtf" && f) && K > 1 ? "multiple" : "single", L = !!(F != null && F.interactionType), oe = be.getState().getI18nSnapshot(), ve = (M) => `<div class='answer-container'><div class='answer-body'>${M}</div></div>`, Oe = ((Gt = O == null ? void 0 : O.context) == null ? void 0 : Gt.host) || window.location.origin, Se = A_(
16227
+ const P = ((Pt = O == null ? void 0 : O.context) == null ? void 0 : Pt.channel) ?? "", J = Ri(O == null ? void 0 : O.context), te = ((kt = O == null ? void 0 : O.context) == null ? void 0 : kt.framework) ?? "", F = Qr(t), ce = (F == null ? void 0 : F.primaryCategory) ?? "Multiple Choice Question", ie = (F == null ? void 0 : F.qType) ?? "MCQ", ye = ge.getState().treeCache[q] ?? {}, ne = typeof ye.name == "string" && ye.name.trim() ? ye.name.trim() : void 0, ze = Number(ye.maxScore), Ie = (e == null ? void 0 : e.identifier) && !e.identifier.startsWith("temp-"), He = (n || "").replace(/<[^>]+>/g, "").slice(0, 60).trim() || "Untitled Question", Ze = ne ?? (Ie ? e == null ? void 0 : e.name : void 0) ?? He, K = t === "ftb" ? Ta(n).length : t === "mtf" ? i.length : 0, _e = t === "ftb" && K > 0 ? K : t === "mtf" ? f && K > 0 ? K : 1 : t === "seq" ? f && s.length > 0 ? s.length : 1 : t === "reo" ? 1 : Number.isFinite(ze) && ze > 0 ? ze : m ?? 1, Ue = (t === "ftb" || t === "mtf" && f) && K > 1 ? "multiple" : "single", L = !!(F != null && F.interactionType), oe = be.getState().getI18nSnapshot(), ve = (M) => `<div class='answer-container'><div class='answer-body'>${M}</div></div>`, Oe = ((Gt = O == null ? void 0 : O.context) == null ? void 0 : Gt.host) || window.location.origin, Se = A_(
16226
16228
  [
16227
16229
  n,
16228
16230
  y,
@@ -16264,12 +16266,12 @@ function k_() {
16264
16266
  mimeType: "application/vnd.sunbird.question",
16265
16267
  media: Se,
16266
16268
  editorState: {
16267
- ...gc(t, n, r, y, { isPartialScore: f, evalUnordered: g }, i, s, p),
16269
+ ...bc(t, n, r, y, { isPartialScore: f, evalUnordered: g }, i, s, p),
16268
16270
  ...he ? { solutions: he } : {},
16269
16271
  ...Object.keys(Pe).length ? { hints: Pe } : {}
16270
16272
  },
16271
16273
  body: Ji(t, n),
16272
- answer: bc(t, r, y),
16274
+ answer: yc(t, r, y),
16273
16275
  ...t === "mcq" ? { templateId: `mcq-${S}` } : {},
16274
16276
  ...t === "boolean" ? { templateId: "boolean" } : {},
16275
16277
  ...t === "ftb" ? {
@@ -16279,7 +16281,7 @@ function k_() {
16279
16281
  responseProcessing: { template: "MAP_RESPONSE" }
16280
16282
  } : {},
16281
16283
  ...t === "mtf" ? {
16282
- pairs: Yo(i),
16284
+ pairs: Xo(i),
16283
16285
  isPartialScore: f,
16284
16286
  scoringMode: "responseProcessing",
16285
16287
  responseProcessing: { template: "MAP_RESPONSE" }
@@ -16305,13 +16307,13 @@ function k_() {
16305
16307
  // responseDeclaration/hints keys).
16306
16308
  ...L ? {
16307
16309
  interactionTypes: [(F == null ? void 0 : F.interactionType) ?? "text"],
16308
- responseDeclaration: mc(t, r, n, i, f, s, p)
16310
+ responseDeclaration: gc(t, r, n, i, f, s, p)
16309
16311
  } : {},
16310
16312
  // Old MTF/SEQ payloads carry no hints key unless a hint is set.
16311
16313
  // hints key only when a hint actually exists — no empty {} with a
16312
16314
  // dangling outcomeDeclaration.hint reference.
16313
16315
  ...Object.keys(Pe).length ? { hints: Pe } : {},
16314
- interactions: pc(t, r, n, i, s, p),
16316
+ interactions: mc(t, r, n, i, s, p),
16315
16317
  outcomeDeclaration: {
16316
16318
  maxScore: {
16317
16319
  cardinality: Ue,
@@ -16332,7 +16334,7 @@ function k_() {
16332
16334
  // difficultyLevel/bloomsLevel are NOT valid Question schema
16333
16335
  // properties — the old editor never sends them in nodesModified.
16334
16336
  };
16335
- return fc(M, {
16337
+ return pc(M, {
16336
16338
  type: t,
16337
16339
  i18n: oe,
16338
16340
  options: r,
@@ -16349,12 +16351,12 @@ function k_() {
16349
16351
  mimeType: "application/vnd.sunbird.question",
16350
16352
  media: Se,
16351
16353
  editorState: {
16352
- ...gc(t, n, r, y, { isPartialScore: f, evalUnordered: g }, i, s, p),
16354
+ ...bc(t, n, r, y, { isPartialScore: f, evalUnordered: g }, i, s, p),
16353
16355
  ...he ? { solutions: he } : {},
16354
16356
  ...Object.keys(Pe).length ? { hints: Pe } : {}
16355
16357
  },
16356
16358
  body: Ji(t, n),
16357
- answer: bc(t, r, y),
16359
+ answer: yc(t, r, y),
16358
16360
  ...t === "mcq" ? { templateId: `mcq-${S}` } : {},
16359
16361
  ...t === "boolean" ? { templateId: "boolean" } : {},
16360
16362
  ...t === "ftb" ? {
@@ -16364,7 +16366,7 @@ function k_() {
16364
16366
  responseProcessing: { template: "MAP_RESPONSE" }
16365
16367
  } : {},
16366
16368
  ...t === "mtf" ? {
16367
- pairs: Yo(i),
16369
+ pairs: Xo(i),
16368
16370
  isPartialScore: f,
16369
16371
  scoringMode: "responseProcessing",
16370
16372
  responseProcessing: { template: "MAP_RESPONSE" }
@@ -16390,13 +16392,13 @@ function k_() {
16390
16392
  // responseDeclaration/hints keys).
16391
16393
  ...L ? {
16392
16394
  interactionTypes: [(F == null ? void 0 : F.interactionType) ?? "text"],
16393
- responseDeclaration: mc(t, r, n, i, f, s, p)
16395
+ responseDeclaration: gc(t, r, n, i, f, s, p)
16394
16396
  } : {},
16395
16397
  // Old MTF/SEQ payloads carry no hints key unless a hint is set.
16396
16398
  // hints key only when a hint actually exists — no empty {} with a
16397
16399
  // dangling outcomeDeclaration.hint reference.
16398
16400
  ...Object.keys(Pe).length ? { hints: Pe } : {},
16399
- interactions: pc(t, r, n, i, s, p),
16401
+ interactions: mc(t, r, n, i, s, p),
16400
16402
  outcomeDeclaration: {
16401
16403
  maxScore: {
16402
16404
  cardinality: Ue,
@@ -16417,7 +16419,7 @@ function k_() {
16417
16419
  // difficultyLevel/bloomsLevel are NOT valid Question schema
16418
16420
  // properties — the old editor never sends them in nodesModified.
16419
16421
  };
16420
- return fc(B, {
16422
+ return pc(B, {
16421
16423
  type: t,
16422
16424
  i18n: oe,
16423
16425
  options: r,
@@ -16467,7 +16469,7 @@ function k_() {
16467
16469
  D
16468
16470
  ]) };
16469
16471
  }
16470
- const R_ = ws(() => Promise.resolve().then(() => xa)), yc = {
16472
+ const R_ = ws(() => Promise.resolve().then(() => Ca)), vc = {
16471
16473
  mcq: "Rich text, images & equations supported",
16472
16474
  sa: "Rich text, images & equations supported",
16473
16475
  ftb: "Wrap the answer in [[ ]] to mark a blank",
@@ -16683,7 +16685,7 @@ function L_({ editorMode: e, onBack: t }) {
16683
16685
  sequence: u,
16684
16686
  answerText: h,
16685
16687
  sentence: c
16686
- } = be(), { save: d } = k_(), y = re((L) => L.labels), p = (L, oe) => oa(y, L, oe), v = (Ue = re.getState().editorConfig) == null ? void 0 : Ue.context, b = !fu(e, v), m = n, f = Qr(m), g = f ? p(f.labelKey, f.label) : p("ui.question", "Question"), S = (f == null ? void 0 : f.icon) ?? "help", w = m ? m === "ftb" ? p("ui.ftbHint", yc.ftb) : p("ui.richTextHint", yc[m] ?? "") : "", C = (L) => (L ?? "").replace(/<[^>]+>/g, "").replace(/&nbsp;/g, " ").trim() || (/<(img|figure)\b/i.test(L ?? "") ? "[image]" : ""), D = be((L) => L.i18nText), O = (L, oe) => C(oe) ? oe : Object.values(L ?? {}).find((ve) => C(ve)) ?? "", q = re((L) => L.questionFormConfig), I = ge((L) => L.activeNodeMeta), V = ge((L) => L.updateNode), j = ge((L) => L.selectedNodeId), { frameworkTerms: z } = ad(), U = (L, oe) => {
16688
+ } = be(), { save: d } = k_(), y = re((L) => L.labels), p = (L, oe) => aa(y, L, oe), v = (Ue = re.getState().editorConfig) == null ? void 0 : Ue.context, b = !pu(e, v), m = n, f = Qr(m), g = f ? p(f.labelKey, f.label) : p("ui.question", "Question"), S = (f == null ? void 0 : f.icon) ?? "help", w = m ? m === "ftb" ? p("ui.ftbHint", vc.ftb) : p("ui.richTextHint", vc[m] ?? "") : "", C = (L) => (L ?? "").replace(/<[^>]+>/g, "").replace(/&nbsp;/g, " ").trim() || (/<(img|figure)\b/i.test(L ?? "") ? "[image]" : ""), D = be((L) => L.i18nText), O = (L, oe) => C(oe) ? oe : Object.values(L ?? {}).find((ve) => C(ve)) ?? "", q = re((L) => L.questionFormConfig), I = ge((L) => L.activeNodeMeta), V = ge((L) => L.updateNode), j = ge((L) => L.selectedNodeId), { frameworkTerms: z } = ld(), U = (L, oe) => {
16687
16689
  j && V(j, { [L]: oe });
16688
16690
  }, P = I ?? {}, [J, te] = ue(!0), F = (() => {
16689
16691
  const L = O(D.questionBody, r);