@uxland/primary-shell 7.50.0 → 7.50.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { d as ge, i as Ze, a as Qe, n as K, C as Dr, g as Tr, D as O, k as h, r as q, b as W, h as L, t as j, Q as ne, c as Ot, e as se, f as Ir, j as $r, l as Er, m as Fr, o as js, p as Qt, q as Or, P as Mr } from "./index-D9hfKjLi.js";
1
+ import { d as ge, i as Ze, a as Qe, n as K, C as Dr, g as Tr, D as O, k as h, r as q, b as W, h as L, t as j, Q as ne, c as Ot, e as se, f as Ir, j as Er, l as $r, m as Fr, o as Or, p as js, q as Qt, s as Mr, P as Pr } from "./index-CiMRee8t.js";
2
2
  import "react";
3
- const Pr = ({ primaryApi: e, store: t }) => {
3
+ const kr = ({ primaryApi: e, store: t }) => {
4
4
  class s {
5
5
  constructor(o) {
6
6
  this.api = o;
@@ -18,7 +18,7 @@ const Pr = ({ primaryApi: e, store: t }) => {
18
18
  }
19
19
  }
20
20
  return t && (ge(Ze(), i), ge(Qe(t), i, 0), ge(Ze(), r), ge(Qe(t), r, 0), ge(Qe(e), r, 1)), { ApiBaseHandler: s, BaseHandler: r, StoreBaseHandler: i };
21
- }, kr = (e, t) => (s, i) => {
21
+ }, Ar = (e, t) => (s, i) => {
22
22
  t.bind(i).to(i).inTransientScope(), Ze()(i);
23
23
  const r = e.broker.registerRequest(s, (n) => t.get(i).handle(n));
24
24
  return {
@@ -26,9 +26,9 @@ const Pr = ({ primaryApi: e, store: t }) => {
26
26
  t.isBound(i) && t.unbind(i), r.dispose();
27
27
  }
28
28
  };
29
- }, Ar = (e, t) => ({
30
- registerRequest: kr(e, t)
31
- }), Hr = () => {
29
+ }, Hr = (e, t) => ({
30
+ registerRequest: Ar(e, t)
31
+ }), Rr = () => {
32
32
  try {
33
33
  if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
34
34
  return crypto.randomUUID();
@@ -40,7 +40,7 @@ const Pr = ({ primaryApi: e, store: t }) => {
40
40
  return (e === "x" ? t : t & 3 | 8).toString(16);
41
41
  });
42
42
  };
43
- function Rr(e) {
43
+ function zr(e) {
44
44
  return function(s) {
45
45
  return (i, r) => {
46
46
  const n = `__${r}`, o = `__unsubscribe__${r}`;
@@ -72,15 +72,15 @@ function Rr(e) {
72
72
  };
73
73
  };
74
74
  }
75
- function zr(e) {
75
+ function Gr(e) {
76
76
  return (t, s = {}) => {
77
- const i = Rr(e);
77
+ const i = zr(e);
78
78
  return (r, n) => {
79
79
  K(s)(r, n), i(t)(r, n);
80
80
  };
81
81
  };
82
82
  }
83
- const Gr = {
83
+ const Vr = {
84
84
  reports: "INFC",
85
85
  results: "RES",
86
86
  laboratory: "LAB",
@@ -95,11 +95,11 @@ const V = {
95
95
  function H(e) {
96
96
  return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
97
97
  }
98
- var Vr = typeof Symbol == "function" && Symbol.observable || "@@observable", gs = Vr, Tt = () => Math.random().toString(36).substring(7).split("").join("."), Br = {
98
+ var Br = typeof Symbol == "function" && Symbol.observable || "@@observable", gs = Br, Tt = () => Math.random().toString(36).substring(7).split("").join("."), Nr = {
99
99
  INIT: `@@redux/INIT${/* @__PURE__ */ Tt()}`,
100
100
  REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Tt()}`,
101
101
  PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Tt()}`
102
- }, et = Br;
102
+ }, et = Nr;
103
103
  function Ut(e) {
104
104
  if (typeof e != "object" || e === null)
105
105
  return !1;
@@ -207,7 +207,7 @@ function Ys(e, t, s) {
207
207
  [gs]: g
208
208
  };
209
209
  }
210
- function Nr(e) {
210
+ function qr(e) {
211
211
  Object.keys(e).forEach((t) => {
212
212
  const s = e[t];
213
213
  if (typeof s(void 0, {
@@ -229,7 +229,7 @@ function Qs(e) {
229
229
  const i = Object.keys(s);
230
230
  let r;
231
231
  try {
232
- Nr(s);
232
+ qr(s);
233
233
  } catch (n) {
234
234
  r = n;
235
235
  }
@@ -250,7 +250,7 @@ function Qs(e) {
250
250
  function tt(...e) {
251
251
  return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, s) => (...i) => t(s(...i)));
252
252
  }
253
- function qr(...e) {
253
+ function Wr(...e) {
254
254
  return (t) => (s, i) => {
255
255
  const r = t(s, i);
256
256
  let n = () => {
@@ -266,7 +266,7 @@ function qr(...e) {
266
266
  };
267
267
  };
268
268
  }
269
- function Wr(e) {
269
+ function Lr(e) {
270
270
  return Ut(e) && "type" in e && typeof e.type == "string";
271
271
  }
272
272
  var Us = Symbol.for("immer-nothing"), ys = Symbol.for("immer-draftable"), B = Symbol.for("immer-state");
@@ -282,7 +282,7 @@ function we(e) {
282
282
  function ae(e) {
283
283
  return e ? Xs(e) || Array.isArray(e) || !!e[ys] || !!e.constructor?.[ys] || ft(e) || pt(e) : !1;
284
284
  }
285
- var Lr = Object.prototype.constructor.toString();
285
+ var jr = Object.prototype.constructor.toString();
286
286
  function Xs(e) {
287
287
  if (!e || typeof e != "object")
288
288
  return !1;
@@ -290,7 +290,7 @@ function Xs(e) {
290
290
  if (t === null)
291
291
  return !0;
292
292
  const s = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
293
- return s === Object ? !0 : typeof s == "function" && Function.toString.call(s) === Lr;
293
+ return s === Object ? !0 : typeof s == "function" && Function.toString.call(s) === jr;
294
294
  }
295
295
  function st(e, t) {
296
296
  ht(e) === 0 ? Reflect.ownKeys(e).forEach((s) => {
@@ -308,7 +308,7 @@ function Ks(e, t, s) {
308
308
  const i = ht(e);
309
309
  i === 2 ? e.set(t, s) : i === 3 ? e.add(s) : e[t] = s;
310
310
  }
311
- function jr(e, t) {
311
+ function Yr(e, t) {
312
312
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
313
313
  }
314
314
  function ft(e) {
@@ -352,24 +352,24 @@ function Pt(e, t) {
352
352
  }
353
353
  }
354
354
  function Xt(e, t = !1) {
355
- return mt(e) || we(e) || !ae(e) || (ht(e) > 1 && (e.set = e.add = e.clear = e.delete = Yr), Object.freeze(e), t && Object.entries(e).forEach(([s, i]) => Xt(i, !0))), e;
355
+ return mt(e) || we(e) || !ae(e) || (ht(e) > 1 && (e.set = e.add = e.clear = e.delete = Qr), Object.freeze(e), t && Object.entries(e).forEach(([s, i]) => Xt(i, !0))), e;
356
356
  }
357
- function Yr() {
357
+ function Qr() {
358
358
  X(2);
359
359
  }
360
360
  function mt(e) {
361
361
  return Object.isFrozen(e);
362
362
  }
363
- var Qr = {};
363
+ var Ur = {};
364
364
  function xe(e) {
365
- const t = Qr[e];
365
+ const t = Ur[e];
366
366
  return t || X(0, e), t;
367
367
  }
368
368
  var We;
369
369
  function Js() {
370
370
  return We;
371
371
  }
372
- function Ur(e, t) {
372
+ function Xr(e, t) {
373
373
  return {
374
374
  drafts_: [],
375
375
  parent_: e,
@@ -384,15 +384,15 @@ function vs(e, t) {
384
384
  t && (xe("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
385
385
  }
386
386
  function kt(e) {
387
- At(e), e.drafts_.forEach(Xr), e.drafts_ = null;
387
+ At(e), e.drafts_.forEach(Kr), e.drafts_ = null;
388
388
  }
389
389
  function At(e) {
390
390
  e === We && (We = e.parent_);
391
391
  }
392
392
  function bs(e) {
393
- return We = Ur(We, e);
393
+ return We = Xr(We, e);
394
394
  }
395
- function Xr(e) {
395
+ function Kr(e) {
396
396
  const t = e[B];
397
397
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
398
398
  }
@@ -453,7 +453,7 @@ function xs(e, t, s, i, r, n, o) {
453
453
  function rt(e, t, s = !1) {
454
454
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Xt(t, s);
455
455
  }
456
- function Kr(e, t) {
456
+ function Jr(e, t) {
457
457
  const s = Array.isArray(e), i = {
458
458
  type_: s ? 1 : 0,
459
459
  // Track which produce call this is associated with.
@@ -488,9 +488,9 @@ var Kt = {
488
488
  return e;
489
489
  const s = ve(e);
490
490
  if (!Mt(s, t))
491
- return Jr(e, s, t);
491
+ return Zr(e, s, t);
492
492
  const i = s[t];
493
- return e.finalized_ || !ae(i) ? i : i === It(e.base_, t) ? ($t(e), e.copy_[t] = Rt(i, e)) : i;
493
+ return e.finalized_ || !ae(i) ? i : i === It(e.base_, t) ? (Et(e), e.copy_[t] = Rt(i, e)) : i;
494
494
  },
495
495
  has(e, t) {
496
496
  return t in ve(e);
@@ -506,16 +506,16 @@ var Kt = {
506
506
  const r = It(ve(e), t), n = r?.[B];
507
507
  if (n && n.base_ === s)
508
508
  return e.copy_[t] = s, e.assigned_[t] = !1, !0;
509
- if (jr(s, r) && (s !== void 0 || Mt(e.base_, t)))
509
+ if (Yr(s, r) && (s !== void 0 || Mt(e.base_, t)))
510
510
  return !0;
511
- $t(e), Ht(e);
511
+ Et(e), Ht(e);
512
512
  }
513
513
  return e.copy_[t] === s && // special case: handle new props with value 'undefined'
514
514
  (s !== void 0 || t in e.copy_) || // special case: NaN
515
515
  Number.isNaN(s) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = s, e.assigned_[t] = !0), !0;
516
516
  },
517
517
  deleteProperty(e, t) {
518
- return It(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, $t(e), Ht(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
518
+ return It(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, Et(e), Ht(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
519
519
  },
520
520
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
521
521
  // the same guarantee in ES5 mode.
@@ -553,7 +553,7 @@ function It(e, t) {
553
553
  const s = e[B];
554
554
  return (s ? ve(s) : e)[t];
555
555
  }
556
- function Jr(e, t, s) {
556
+ function Zr(e, t, s) {
557
557
  const i = Zs(t, s);
558
558
  return i ? "value" in i ? i.value : (
559
559
  // This is a very special case, if the prop is a getter defined by the
@@ -575,13 +575,13 @@ function Zs(e, t) {
575
575
  function Ht(e) {
576
576
  e.modified_ || (e.modified_ = !0, e.parent_ && Ht(e.parent_));
577
577
  }
578
- function $t(e) {
578
+ function Et(e) {
579
579
  e.copy_ || (e.copy_ = Pt(
580
580
  e.base_,
581
581
  e.scope_.immer_.useStrictShallowCopy_
582
582
  ));
583
583
  }
584
- var Zr = class {
584
+ var en = class {
585
585
  constructor(e) {
586
586
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, s, i) => {
587
587
  if (typeof t == "function" && typeof s != "function") {
@@ -621,7 +621,7 @@ var Zr = class {
621
621
  }, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
622
622
  }
623
623
  createDraft(e) {
624
- ae(e) || X(8), we(e) && (e = en(e));
624
+ ae(e) || X(8), we(e) && (e = tn(e));
625
625
  const t = bs(this), s = Rt(e, void 0);
626
626
  return s[B].isManual_ = !0, At(t), s;
627
627
  }
@@ -665,10 +665,10 @@ var Zr = class {
665
665
  }
666
666
  };
667
667
  function Rt(e, t) {
668
- const s = ft(e) ? xe("MapSet").proxyMap_(e, t) : pt(e) ? xe("MapSet").proxySet_(e, t) : Kr(e, t);
668
+ const s = ft(e) ? xe("MapSet").proxyMap_(e, t) : pt(e) ? xe("MapSet").proxySet_(e, t) : Jr(e, t);
669
669
  return (t ? t.scope_ : Js()).drafts_.push(s), s;
670
670
  }
671
- function en(e) {
671
+ function tn(e) {
672
672
  return we(e) || X(10, e), ei(e);
673
673
  }
674
674
  function ei(e) {
@@ -686,7 +686,7 @@ function ei(e) {
686
686
  Ks(s, i, ei(r));
687
687
  }), t && (t.finalized_ = !1), s;
688
688
  }
689
- var N = new Zr(), ti = N.produce;
689
+ var N = new en(), ti = N.produce;
690
690
  N.produceWithPatches.bind(
691
691
  N
692
692
  );
@@ -695,15 +695,15 @@ N.setUseStrictShallowCopy.bind(N);
695
695
  N.applyPatches.bind(N);
696
696
  N.createDraft.bind(N);
697
697
  N.finishDraft.bind(N);
698
- function tn(e, t = `expected a function, instead received ${typeof e}`) {
698
+ function sn(e, t = `expected a function, instead received ${typeof e}`) {
699
699
  if (typeof e != "function")
700
700
  throw new TypeError(t);
701
701
  }
702
- function sn(e, t = `expected an object, instead received ${typeof e}`) {
702
+ function rn(e, t = `expected an object, instead received ${typeof e}`) {
703
703
  if (typeof e != "object")
704
704
  throw new TypeError(t);
705
705
  }
706
- function rn(e, t = "expected all items to be functions, instead received the following types: ") {
706
+ function nn(e, t = "expected all items to be functions, instead received the following types: ") {
707
707
  if (!e.every((s) => typeof s == "function")) {
708
708
  const s = e.map(
709
709
  (i) => typeof i == "function" ? `function ${i.name || "unnamed"}()` : typeof i
@@ -712,30 +712,30 @@ function rn(e, t = "expected all items to be functions, instead received the fol
712
712
  }
713
713
  }
714
714
  var _s = (e) => Array.isArray(e) ? e : [e];
715
- function nn(e) {
715
+ function on(e) {
716
716
  const t = Array.isArray(e[0]) ? e[0] : e;
717
- return rn(
717
+ return nn(
718
718
  t,
719
719
  "createSelector expects all input-selectors to be functions, but received the following types: "
720
720
  ), t;
721
721
  }
722
- function on(e, t) {
722
+ function an(e, t) {
723
723
  const s = [], { length: i } = e;
724
724
  for (let r = 0; r < i; r++)
725
725
  s.push(e[r].apply(null, t));
726
726
  return s;
727
727
  }
728
- var an = class {
728
+ var ln = class {
729
729
  constructor(e) {
730
730
  this.value = e;
731
731
  }
732
732
  deref() {
733
733
  return this.value;
734
734
  }
735
- }, ln = typeof WeakRef < "u" ? WeakRef : an, cn = 0, Ss = 1;
735
+ }, cn = typeof WeakRef < "u" ? WeakRef : ln, dn = 0, Ss = 1;
736
736
  function Ue() {
737
737
  return {
738
- s: cn,
738
+ s: dn,
739
739
  v: void 0,
740
740
  o: null,
741
741
  p: null
@@ -768,7 +768,7 @@ function si(e, t = {}) {
768
768
  c = a.v;
769
769
  else if (c = e.apply(null, arguments), n++, i) {
770
770
  const u = r?.deref?.() ?? r;
771
- u != null && i(u, c) && (c = u, n !== 0 && n--), r = typeof c == "object" && c !== null || typeof c == "function" ? new ln(c) : c;
771
+ u != null && i(u, c) && (c = u, n !== 0 && n--), r = typeof c == "object" && c !== null || typeof c == "function" ? new cn(c) : c;
772
772
  }
773
773
  return d.s = Ss, d.v = c, c;
774
774
  }
@@ -778,13 +778,13 @@ function si(e, t = {}) {
778
778
  n = 0;
779
779
  }, o;
780
780
  }
781
- function dn(e, ...t) {
781
+ function un(e, ...t) {
782
782
  const s = typeof e == "function" ? {
783
783
  memoize: e,
784
784
  memoizeOptions: t
785
785
  } : e, i = (...r) => {
786
786
  let n = 0, o = 0, a, l = {}, d = r.pop();
787
- typeof d == "object" && (l = d, d = r.pop()), tn(
787
+ typeof d == "object" && (l = d, d = r.pop()), sn(
788
788
  d,
789
789
  `createSelector expects an output function after the inputs, but received: [${typeof d}]`
790
790
  );
@@ -796,14 +796,14 @@ function dn(e, ...t) {
796
796
  memoizeOptions: m = [],
797
797
  argsMemoize: f = si,
798
798
  argsMemoizeOptions: g = []
799
- } = c, C = _s(m), p = _s(g), b = nn(r), y = u(function() {
799
+ } = c, C = _s(m), p = _s(g), b = on(r), y = u(function() {
800
800
  return n++, d.apply(
801
801
  null,
802
802
  arguments
803
803
  );
804
804
  }, ...C), w = f(function() {
805
805
  o++;
806
- const G = on(
806
+ const G = an(
807
807
  b,
808
808
  arguments
809
809
  );
@@ -830,9 +830,9 @@ function dn(e, ...t) {
830
830
  withTypes: () => i
831
831
  }), i;
832
832
  }
833
- var I = /* @__PURE__ */ dn(si), un = Object.assign(
833
+ var I = /* @__PURE__ */ un(si), hn = Object.assign(
834
834
  (e, t = I) => {
835
- sn(
835
+ rn(
836
836
  e,
837
837
  `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
838
838
  );
@@ -844,12 +844,12 @@ var I = /* @__PURE__ */ dn(si), un = Object.assign(
844
844
  (...n) => n.reduce((o, a, l) => (o[s[l]] = a, o), {})
845
845
  );
846
846
  },
847
- { withTypes: () => un }
847
+ { withTypes: () => hn }
848
848
  );
849
849
  function ii(e) {
850
850
  return ({ dispatch: s, getState: i }) => (r) => (n) => typeof n == "function" ? n(s, i, e) : r(n);
851
851
  }
852
- var hn = ii(), fn = ii, pn = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
852
+ var fn = ii(), pn = ii, mn = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
853
853
  if (arguments.length !== 0)
854
854
  return typeof arguments[0] == "object" ? tt : tt.apply(null, arguments);
855
855
  };
@@ -875,7 +875,7 @@ function Cs(e, t) {
875
875
  payload: i[0]
876
876
  };
877
877
  }
878
- return s.toString = () => `${e}`, s.type = e, s.match = (i) => Wr(i) && i.type === e, s;
878
+ return s.toString = () => `${e}`, s.type = e, s.match = (i) => Lr(i) && i.type === e, s;
879
879
  }
880
880
  var ri = class Ne extends Array {
881
881
  constructor(...t) {
@@ -898,10 +898,10 @@ function Ds(e) {
898
898
  function Ts(e, t, s) {
899
899
  return e.has(t) ? e.get(t) : e.set(t, s(t)).get(t);
900
900
  }
901
- function mn(e) {
901
+ function gn(e) {
902
902
  return typeof e == "boolean";
903
903
  }
904
- var gn = () => function(t) {
904
+ var yn = () => function(t) {
905
905
  const {
906
906
  thunk: s = !0,
907
907
  immutableCheck: i = !0,
@@ -909,10 +909,10 @@ var gn = () => function(t) {
909
909
  actionCreatorCheck: n = !0
910
910
  } = t ?? {};
911
911
  let o = new ri();
912
- return s && (mn(s) ? o.push(hn) : o.push(fn(s.extraArgument))), o;
913
- }, yn = "RTK_autoBatch", Is = (e) => (t) => {
912
+ return s && (gn(s) ? o.push(fn) : o.push(pn(s.extraArgument))), o;
913
+ }, vn = "RTK_autoBatch", Is = (e) => (t) => {
914
914
  setTimeout(t, e);
915
- }, vn = (e = {
915
+ }, bn = (e = {
916
916
  type: "raf"
917
917
  }) => (t) => (...s) => {
918
918
  const i = t(...s);
@@ -936,21 +936,21 @@ var gn = () => function(t) {
936
936
  // for the `shouldAutoBatch` flag and determine if batching is active
937
937
  dispatch(c) {
938
938
  try {
939
- return r = !c?.meta?.[yn], n = !r, n && (o || (o = !0, l(d))), i.dispatch(c);
939
+ return r = !c?.meta?.[vn], n = !r, n && (o || (o = !0, l(d))), i.dispatch(c);
940
940
  } finally {
941
941
  r = !0;
942
942
  }
943
943
  }
944
944
  });
945
- }, bn = (e) => function(s) {
945
+ }, wn = (e) => function(s) {
946
946
  const {
947
947
  autoBatch: i = !0
948
948
  } = s ?? {};
949
949
  let r = new ri(e);
950
- return i && r.push(vn(typeof i == "object" ? i : void 0)), r;
950
+ return i && r.push(bn(typeof i == "object" ? i : void 0)), r;
951
951
  };
952
- function wn(e) {
953
- const t = gn(), {
952
+ function xn(e) {
953
+ const t = yn(), {
954
954
  reducer: s = void 0,
955
955
  middleware: i,
956
956
  devTools: r = !0,
@@ -967,12 +967,12 @@ function wn(e) {
967
967
  let l;
968
968
  typeof i == "function" ? l = i(t) : l = t();
969
969
  let d = tt;
970
- r && (d = pn({
970
+ r && (d = mn({
971
971
  // Enable capture of stack traces for dispatched Redux actions
972
972
  trace: !1,
973
973
  ...typeof r == "object" && r
974
974
  }));
975
- const c = qr(...l), u = bn(c);
975
+ const c = Wr(...l), u = wn(c);
976
976
  let m = typeof o == "function" ? o(u) : u();
977
977
  const f = d(...m);
978
978
  return Ys(a, n, f);
@@ -1001,12 +1001,12 @@ function ni(e) {
1001
1001
  };
1002
1002
  return e(r), [t, s, i];
1003
1003
  }
1004
- function xn(e) {
1004
+ function _n(e) {
1005
1005
  return typeof e == "function";
1006
1006
  }
1007
- function _n(e, t) {
1007
+ function Sn(e, t) {
1008
1008
  let [s, i, r] = ni(t), n;
1009
- if (xn(e))
1009
+ if (_n(e))
1010
1010
  n = () => Ds(e());
1011
1011
  else {
1012
1012
  const a = Ds(e);
@@ -1041,14 +1041,14 @@ function _n(e, t) {
1041
1041
  }
1042
1042
  return o.getInitialState = n, o;
1043
1043
  }
1044
- var Sn = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
1045
- function Cn(e, t) {
1044
+ var Cn = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
1045
+ function Dn(e, t) {
1046
1046
  return `${e}/${t}`;
1047
1047
  }
1048
- function Dn({
1048
+ function Tn({
1049
1049
  creators: e
1050
1050
  } = {}) {
1051
- const t = e?.asyncThunk?.[Sn];
1051
+ const t = e?.asyncThunk?.[Cn];
1052
1052
  return function(i) {
1053
1053
  const {
1054
1054
  name: r,
@@ -1056,7 +1056,7 @@ function Dn({
1056
1056
  } = i;
1057
1057
  if (!r)
1058
1058
  throw new Error(oe(11));
1059
- const o = (typeof i.reducers == "function" ? i.reducers(In()) : i.reducers) || {}, a = Object.keys(o), l = {
1059
+ const o = (typeof i.reducers == "function" ? i.reducers(En()) : i.reducers) || {}, a = Object.keys(o), l = {
1060
1060
  sliceCaseReducersByName: {},
1061
1061
  sliceCaseReducersByType: {},
1062
1062
  actionCreators: {},
@@ -1086,17 +1086,17 @@ function Dn({
1086
1086
  a.forEach((y) => {
1087
1087
  const w = o[y], D = {
1088
1088
  reducerName: y,
1089
- type: Cn(r, y),
1089
+ type: Dn(r, y),
1090
1090
  createNotation: typeof i.reducers == "function"
1091
1091
  };
1092
- En(w) ? On(D, w, d, t) : $n(D, w, d);
1092
+ Fn(w) ? Mn(D, w, d, t) : $n(D, w, d);
1093
1093
  });
1094
1094
  function c() {
1095
1095
  const [y = {}, w = [], D = void 0] = typeof i.extraReducers == "function" ? ni(i.extraReducers) : [i.extraReducers], G = {
1096
1096
  ...y,
1097
1097
  ...l.sliceCaseReducersByType
1098
1098
  };
1099
- return _n(i.initialState, (M) => {
1099
+ return Sn(i.initialState, (M) => {
1100
1100
  for (let A in G)
1101
1101
  M.addCase(A, G[A]);
1102
1102
  for (let A of l.sliceMatchers)
@@ -1124,7 +1124,7 @@ function Dn({
1124
1124
  return Ts(A, M, () => {
1125
1125
  const ms = {};
1126
1126
  for (const [Sr, Cr] of Object.entries(i.selectors ?? {}))
1127
- ms[Sr] = Tn(Cr, M, C, w);
1127
+ ms[Sr] = In(Cr, M, C, w);
1128
1128
  return ms;
1129
1129
  });
1130
1130
  }
@@ -1161,15 +1161,15 @@ function Dn({
1161
1161
  return b;
1162
1162
  };
1163
1163
  }
1164
- function Tn(e, t, s, i) {
1164
+ function In(e, t, s, i) {
1165
1165
  function r(n, ...o) {
1166
1166
  let a = t(n);
1167
1167
  return typeof a > "u" && i && (a = s()), e(a, ...o);
1168
1168
  }
1169
1169
  return r.unwrapped = e, r;
1170
1170
  }
1171
- var oi = /* @__PURE__ */ Dn();
1172
- function In() {
1171
+ var oi = /* @__PURE__ */ Tn();
1172
+ function En() {
1173
1173
  function e(t, s) {
1174
1174
  return {
1175
1175
  _reducerDefinitionType: "asyncThunk",
@@ -1207,20 +1207,20 @@ function $n({
1207
1207
  }, i, r) {
1208
1208
  let n, o;
1209
1209
  if ("reducer" in i) {
1210
- if (s && !Fn(i))
1210
+ if (s && !On(i))
1211
1211
  throw new Error(oe(17));
1212
1212
  n = i.reducer, o = i.prepare;
1213
1213
  } else
1214
1214
  n = i;
1215
1215
  r.addCase(e, n).exposeCaseReducer(t, n).exposeAction(t, o ? Cs(e, o) : Cs(e));
1216
1216
  }
1217
- function En(e) {
1217
+ function Fn(e) {
1218
1218
  return e._reducerDefinitionType === "asyncThunk";
1219
1219
  }
1220
- function Fn(e) {
1220
+ function On(e) {
1221
1221
  return e._reducerDefinitionType === "reducerWithPrepare";
1222
1222
  }
1223
- function On({
1223
+ function Mn({
1224
1224
  type: e,
1225
1225
  reducerName: t
1226
1226
  }, s, i, r) {
@@ -1253,38 +1253,38 @@ const ai = (e, t, s, i, r, n) => e[t] ? {
1253
1253
  items: [...e[t]?.items || [], ...s],
1254
1254
  historyDataImporterRules: n ?? e[t]?.historyDataImporterRules
1255
1255
  }
1256
- } : { ...e, [t]: { id: t, items: s, componentFactory: i, searchPredicate: r, historyDataImporterRules: n } }, Mn = (e, t, s, i) => ai(e, t, [s], i);
1257
- function Pn(e, t) {
1256
+ } : { ...e, [t]: { id: t, items: s, componentFactory: i, searchPredicate: r, historyDataImporterRules: n } }, Pn = (e, t, s, i) => ai(e, t, [s], i);
1257
+ function kn(e, t) {
1258
1258
  const { id: s, item: i, componentFactory: r } = t.payload;
1259
- e.collections = Mn(e.collections, s, i, r);
1259
+ e.collections = Pn(e.collections, s, i, r);
1260
1260
  }
1261
- function kn(e, t) {
1261
+ function An(e, t) {
1262
1262
  const { id: s, items: i, componentFactory: r, searchPredicate: n, historyDataImporterRules: o } = t.payload;
1263
1263
  return {
1264
1264
  ...e,
1265
1265
  collections: ai(e.collections, s, i, r, n, o)
1266
1266
  };
1267
1267
  }
1268
- function An(e, t) {
1268
+ function Hn(e, t) {
1269
1269
  e.busy.push(t.payload);
1270
1270
  }
1271
- function Hn(e, t) {
1271
+ function Rn(e, t) {
1272
1272
  e.busy = e.busy.filter((s) => s !== t.payload);
1273
1273
  }
1274
- function Rn(e, t) {
1274
+ function zn(e, t) {
1275
1275
  e.error.push(t.payload);
1276
1276
  }
1277
- function zn(e, t) {
1277
+ function Gn(e, t) {
1278
1278
  e.error = e.error.filter((s) => s.entityId !== t.payload);
1279
1279
  }
1280
- function Gn(e) {
1280
+ function Vn(e) {
1281
1281
  return {
1282
1282
  ...e,
1283
1283
  collections: {},
1284
1284
  error: []
1285
1285
  };
1286
1286
  }
1287
- const Vn = (e, t, s) => {
1287
+ const Bn = (e, t, s) => {
1288
1288
  if (!e[t]?.items) return e;
1289
1289
  const i = e[t]?.items ?? [];
1290
1290
  return {
@@ -1295,11 +1295,11 @@ const Vn = (e, t, s) => {
1295
1295
  }
1296
1296
  };
1297
1297
  };
1298
- function Bn(e, t) {
1298
+ function Nn(e, t) {
1299
1299
  const { id: s, itemId: i } = t.payload;
1300
- e.collections = Vn(e.collections, s, i);
1300
+ e.collections = Bn(e.collections, s, i);
1301
1301
  }
1302
- const Nn = (e, t, s) => {
1302
+ const qn = (e, t, s) => {
1303
1303
  if (!e[t]?.items) return e;
1304
1304
  const i = e[t]?.items ?? [];
1305
1305
  return {
@@ -1310,9 +1310,9 @@ const Nn = (e, t, s) => {
1310
1310
  }
1311
1311
  };
1312
1312
  };
1313
- function qn(e, t) {
1313
+ function Wn(e, t) {
1314
1314
  const { id: s, item: i } = t.payload;
1315
- e.collections = Nn(e.collections, s, i);
1315
+ e.collections = qn(e.collections, s, i);
1316
1316
  }
1317
1317
  const fe = oi({
1318
1318
  name: "activity-history-collections",
@@ -1322,21 +1322,21 @@ const fe = oi({
1322
1322
  collections: {}
1323
1323
  },
1324
1324
  reducers: {
1325
- addBusyHistoryItem: An,
1326
- removeBusyHistoryItem: Hn,
1327
- addActivityHistoryItem: Pn,
1328
- updateActivityHistoryItem: qn,
1329
- addActivityHistoryItems: kn,
1330
- clearActivityHistoryCollections: Gn,
1331
- addErrorHistoryItem: Rn,
1332
- removeErrorHistoryItem: zn,
1333
- removeActivityHistoryItem: Bn
1325
+ addBusyHistoryItem: Hn,
1326
+ removeBusyHistoryItem: Rn,
1327
+ addActivityHistoryItem: kn,
1328
+ updateActivityHistoryItem: Wn,
1329
+ addActivityHistoryItems: An,
1330
+ clearActivityHistoryCollections: Vn,
1331
+ addErrorHistoryItem: zn,
1332
+ removeErrorHistoryItem: Gn,
1333
+ removeActivityHistoryItem: Nn
1334
1334
  }
1335
1335
  });
1336
- function Wn(e, t) {
1336
+ function Ln(e, t) {
1337
1337
  e.searchString = t.payload;
1338
1338
  }
1339
- const Se = (e) => e.type === Fe.Switch, li = (e) => Se(e) ? !!e.enabled : !!e.enabledValues?.length, gt = (e) => e.filters.some(li), Jt = (e) => e.kind === "common", Me = (e) => e.kind === "diagnostics", Zt = (e) => e.kind === "custom", Ln = "history-diagnostics", ci = "history-relevant", di = "history-own", yt = "history-deleted", ui = [
1339
+ const Se = (e) => e.type === Fe.Switch, li = (e) => Se(e) ? !!e.enabled : !!e.enabledValues?.length, gt = (e) => e.filters.some(li), Jt = (e) => e.kind === "common", Me = (e) => e.kind === "diagnostics", Zt = (e) => e.kind === "custom", jn = "history-diagnostics", ci = "history-relevant", di = "history-own", yt = "history-deleted", ui = [
1340
1340
  {
1341
1341
  kind: "common",
1342
1342
  id: "common",
@@ -1367,7 +1367,7 @@ const Se = (e) => e.type === Fe.Switch, li = (e) => Se(e) ? !!e.enabled : !!e.en
1367
1367
  ]
1368
1368
  }
1369
1369
  ];
1370
- function jn(e, t) {
1370
+ function Yn(e, t) {
1371
1371
  e.filters = e.filters.map((s) => Jt(s) ? {
1372
1372
  ...s,
1373
1373
  filters: s.filters.map(
@@ -1375,30 +1375,30 @@ function jn(e, t) {
1375
1375
  )
1376
1376
  } : s);
1377
1377
  }
1378
- function Yn(e, t) {
1378
+ function Qn(e, t) {
1379
1379
  if (!e.filters.some((i) => i.id === t.payload.id)) {
1380
1380
  const i = { ...t.payload, kind: "custom" };
1381
1381
  e.filters = [...e.filters, i];
1382
1382
  }
1383
1383
  }
1384
- function Qn(e) {
1384
+ function Un(e) {
1385
1385
  e.filters = e.filters.filter((t) => !Zt(t));
1386
1386
  }
1387
- function Un(e, t) {
1387
+ function Xn(e, t) {
1388
1388
  e.filters = e.filters.map((s) => !Zt(s) || s.id !== t.payload.filterGroupId ? s : {
1389
1389
  ...s,
1390
1390
  filters: s.filters.map(
1391
- (i) => i.id === t.payload.filterId ? Se(i) ? { ...i, enabled: t.payload.enabled } : Xn(i, t.payload) : i
1391
+ (i) => i.id === t.payload.filterId ? Se(i) ? { ...i, enabled: t.payload.enabled } : Kn(i, t.payload) : i
1392
1392
  )
1393
1393
  });
1394
1394
  }
1395
- const Xn = (e, { optionId: t, enabled: s }) => {
1395
+ const Kn = (e, { optionId: t, enabled: s }) => {
1396
1396
  if (t == null)
1397
1397
  return { ...e, enabledValues: [] };
1398
1398
  const i = e.enabledValues ?? [];
1399
1399
  return s ? i.includes(t) ? e : { ...e, enabledValues: [...i, t] } : { ...e, enabledValues: i.filter((r) => r !== t) };
1400
1400
  };
1401
- function Kn(e, t) {
1401
+ function Jn(e, t) {
1402
1402
  e.filters.some(Me) && (e.filters = [...e.filters].map((i) => {
1403
1403
  if (Me(i)) {
1404
1404
  const r = i.enabledValues.filter((n) => {
@@ -1416,13 +1416,13 @@ function Kn(e, t) {
1416
1416
  return i;
1417
1417
  }));
1418
1418
  }
1419
- function Jn(e, t) {
1419
+ function Zn(e, t) {
1420
1420
  if (e.filters.some(Me))
1421
1421
  e.filters = [...e.filters].map((i) => Me(i) ? { ...i, enabledValues: t.payload } : i);
1422
1422
  else {
1423
1423
  const i = {
1424
1424
  kind: "diagnostics",
1425
- id: Ln,
1425
+ id: jn,
1426
1426
  title: "Diagnòstics",
1427
1427
  values: [],
1428
1428
  enabledValues: t.payload
@@ -1430,13 +1430,13 @@ function Jn(e, t) {
1430
1430
  e.filters = [...e.filters, i];
1431
1431
  }
1432
1432
  }
1433
- function Zn(e, t) {
1433
+ function eo(e, t) {
1434
1434
  e.globalFilterSelection = {
1435
1435
  ...e.globalFilterSelection,
1436
1436
  [t.payload.id]: t.payload.values
1437
1437
  };
1438
1438
  }
1439
- function eo(e) {
1439
+ function to(e) {
1440
1440
  e.globalFilterSelection = {}, e.filters = e.filters.map((t) => Jt(t) ? ui[0] : Me(t) ? {
1441
1441
  ...t,
1442
1442
  enabledValues: []
@@ -1455,21 +1455,21 @@ const ie = oi({
1455
1455
  globalFilterSelection: {}
1456
1456
  },
1457
1457
  reducers: {
1458
- setSearchString: Wn,
1459
- setCommonFilterValue: jn,
1460
- addCustomFilters: Yn,
1461
- clearCustomFilters: Qn,
1462
- setCustomFilterValue: Un,
1463
- setDiagnosticFilterValues: Jn,
1464
- deleteDiagnosticFilterValue: Kn,
1465
- setGlobalFilterValues: Zn,
1466
- resetFilters: eo
1467
- }
1468
- }), hi = "store/reset", to = Qs({
1458
+ setSearchString: Ln,
1459
+ setCommonFilterValue: Yn,
1460
+ addCustomFilters: Qn,
1461
+ clearCustomFilters: Un,
1462
+ setCustomFilterValue: Xn,
1463
+ setDiagnosticFilterValues: Zn,
1464
+ deleteDiagnosticFilterValue: Jn,
1465
+ setGlobalFilterValues: eo,
1466
+ resetFilters: to
1467
+ }
1468
+ }), hi = "store/reset", so = Qs({
1469
1469
  activityHistoryCollections: fe.reducer,
1470
1470
  activityHistoryFilters: ie.reducer
1471
- }), so = (e, t) => to(t.type === hi ? void 0 : e, t), Ye = wn({
1472
- reducer: so,
1471
+ }), io = (e, t) => so(t.type === hi ? void 0 : e, t), Ye = xn({
1472
+ reducer: io,
1473
1473
  devTools: {
1474
1474
  name: "activity-history"
1475
1475
  },
@@ -1480,11 +1480,11 @@ const ie = oi({
1480
1480
  });
1481
1481
  Ye.dispatch;
1482
1482
  Ye.getState;
1483
- const io = () => Ye.dispatch({ type: hi }), _e = new Dr(), { lazyInject: Ce } = Tr(_e), ro = (e) => {
1483
+ const ro = () => Ye.dispatch({ type: hi }), _e = new Dr(), { lazyInject: Ce } = Tr(_e), no = (e) => {
1484
1484
  _e.bind(V.primaryApi).toConstantValue(e), _e.bind(V.store).toConstantValue(Ye);
1485
- }, no = () => {
1485
+ }, oo = () => {
1486
1486
  _e.unbind(V.primaryApi), _e.unbind(V.store);
1487
- }, { ApiBaseHandler: oo, BaseHandler: pe, StoreBaseHandler: De } = Pr(V), { addBusyHistoryItem: ao, removeBusyHistoryItem: lo } = fe.actions, { addErrorHistoryItem: co, removeErrorHistoryItem: uo } = fe.actions, ho = (e, t) => {
1487
+ }, { ApiBaseHandler: ao, BaseHandler: pe, StoreBaseHandler: De } = kr(V), { addBusyHistoryItem: lo, removeBusyHistoryItem: co } = fe.actions, { addErrorHistoryItem: uo, removeErrorHistoryItem: ho } = fe.actions, fo = (e, t) => {
1488
1488
  if (e.filters) {
1489
1489
  if (e.entityId !== e.filters.id) throw new Error("entityId and filters.id must be the same");
1490
1490
  if (!e.filters.title) throw new Error("filters.title is required");
@@ -1495,12 +1495,12 @@ const io = () => Ye.dispatch({ type: hi }), _e = new Dr(), { lazyInject: Ce } =
1495
1495
  if (t == null) throw new Error("items is required");
1496
1496
  if (!Array.isArray(t)) throw new Error("items must be an array");
1497
1497
  };
1498
- class fo extends pe {
1498
+ class po extends pe {
1499
1499
  async handle(t) {
1500
- this.store.dispatch(ao(t.entityId));
1500
+ this.store.dispatch(lo(t.entityId));
1501
1501
  try {
1502
1502
  const s = await t.asyncDataProvider();
1503
- ho(t, s), this.api.broker.send(this.api.broker.events.activityHistory.addHistoryItemsRequest, {
1503
+ fo(t, s), this.api.broker.send(this.api.broker.events.activityHistory.addHistoryItemsRequest, {
1504
1504
  entityId: t.entityId,
1505
1505
  entityDescription: t.entityDescription,
1506
1506
  items: s,
@@ -1511,30 +1511,30 @@ class fo extends pe {
1511
1511
  });
1512
1512
  } catch (s) {
1513
1513
  console.error(s.message), this.store.dispatch(
1514
- co({
1514
+ uo({
1515
1515
  entityId: t.entityId,
1516
1516
  message: t.errorMessage || s.message,
1517
1517
  entityDescription: t.entityDescription
1518
1518
  })
1519
1519
  );
1520
1520
  } finally {
1521
- this.store.dispatch(lo(t.entityId));
1521
+ this.store.dispatch(co(t.entityId));
1522
1522
  }
1523
1523
  }
1524
1524
  }
1525
1525
  let fi;
1526
- const po = (e, t) => {
1526
+ const mo = (e, t) => {
1527
1527
  fi = e.registerRequest(
1528
1528
  t.broker.events.activityHistory.injectAsyncHistoryItemsRequest,
1529
- fo
1529
+ po
1530
1530
  );
1531
- }, mo = () => {
1531
+ }, go = () => {
1532
1532
  fi?.dispose();
1533
1533
  };
1534
1534
  let zt;
1535
- const go = async (e) => {
1536
- zt = await e.createLocaleManager(yo);
1537
- }, v = (e) => zt ? zt.translate(e) : e, yo = {
1535
+ const yo = async (e) => {
1536
+ zt = await e.createLocaleManager(vo);
1537
+ }, v = (e) => zt ? zt.translate(e) : e, vo = {
1538
1538
  ca: {
1539
1539
  "activity-history": {
1540
1540
  activityHistory: "Històric d’activitat",
@@ -1634,24 +1634,24 @@ const go = async (e) => {
1634
1634
  }, pi = (e, t, s) => {
1635
1635
  const i = e?.[t];
1636
1636
  return i?.items ? i.items.some((r) => r.id === s) : !1;
1637
- }, vo = (e) => typeof e == "string" && e.trim() !== "", bo = (e) => {
1637
+ }, bo = (e) => typeof e == "string" && e.trim() !== "", wo = (e) => {
1638
1638
  if (typeof e != "string" || e.trim() === "") return !1;
1639
1639
  const t = new Date(e);
1640
1640
  return t instanceof Date && !Number.isNaN(t.getTime());
1641
- }, mi = (e) => e && vo(e.id) && // Verifica que "id" esté informado
1642
- bo(e.date), gi = (e) => {
1641
+ }, mi = (e) => e && bo(e.id) && // Verifica que "id" esté informado
1642
+ wo(e.date), gi = (e) => {
1643
1643
  if (!e.every(mi))
1644
1644
  throw console.error("Invalid activity history items", e), new Error("Invalid activity history items");
1645
1645
  return e;
1646
- }, wo = (e) => {
1647
- console.error("Invalid history item", e);
1648
1646
  }, xo = (e) => {
1647
+ console.error("Invalid history item", e);
1648
+ }, _o = (e) => {
1649
1649
  const t = [];
1650
1650
  for (const s of e)
1651
- mi(s) ? t.push(s) : wo(s);
1651
+ mi(s) ? t.push(s) : xo(s);
1652
1652
  return t;
1653
- }, { addActivityHistoryItem: _o } = fe.actions;
1654
- class So extends pe {
1653
+ }, { addActivityHistoryItem: So } = fe.actions;
1654
+ class Co extends pe {
1655
1655
  async handle(t) {
1656
1656
  try {
1657
1657
  gi([t.item]);
@@ -1659,7 +1659,7 @@ class So extends pe {
1659
1659
  if (pi(s.activityHistoryCollections?.collections, t.entityId, t.item.id))
1660
1660
  throw new Error(v("error.itemAlreadyExists"));
1661
1661
  this.store.dispatch(
1662
- _o({
1662
+ So({
1663
1663
  id: t.entityId,
1664
1664
  item: t.item,
1665
1665
  componentFactory: t.componentFactory
@@ -1671,9 +1671,9 @@ class So extends pe {
1671
1671
  }
1672
1672
  }
1673
1673
  let yi;
1674
- const Co = (e, t) => {
1675
- yi = e.registerRequest(t.broker.events.activityHistory.addHistoryItemRequest, So);
1676
- }, Do = () => {
1674
+ const Do = (e, t) => {
1675
+ yi = e.registerRequest(t.broker.events.activityHistory.addHistoryItemRequest, Co);
1676
+ }, To = () => {
1677
1677
  yi?.dispose();
1678
1678
  };
1679
1679
  class vi {
@@ -1681,13 +1681,13 @@ class vi {
1681
1681
  this.payload = t;
1682
1682
  }
1683
1683
  }
1684
- const { addActivityHistoryItems: To } = fe.actions;
1685
- class Io extends pe {
1684
+ const { addActivityHistoryItems: Io } = fe.actions;
1685
+ class Eo extends pe {
1686
1686
  async handle(t) {
1687
1687
  try {
1688
- const s = xo(t.items), i = this.filterDuplicateItems(s, t.entityId);
1688
+ const s = _o(t.items), i = this.filterDuplicateItems(s, t.entityId);
1689
1689
  this.store.dispatch(
1690
- To({
1690
+ Io({
1691
1691
  id: t.entityId,
1692
1692
  items: i,
1693
1693
  componentFactory: t.componentFactory,
@@ -1712,35 +1712,35 @@ class Io extends pe {
1712
1712
  }
1713
1713
  let bi;
1714
1714
  const $o = (e, t) => {
1715
- bi = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, Io);
1716
- }, Eo = () => {
1715
+ bi = e.registerRequest(t.broker.events.activityHistory.addHistoryItemsRequest, Eo);
1716
+ }, Fo = () => {
1717
1717
  bi?.dispose();
1718
1718
  };
1719
1719
  function S(e, t = {}) {
1720
- return zr(Ye)(e, t);
1720
+ return Gr(Ye)(e, t);
1721
1721
  }
1722
- const vt = (e) => e.activityHistoryCollections.busy.length > 0, bt = (e) => Object.values(e.activityHistoryCollections.collections) && vt(e), Fo = (e) => !Object.values(e.activityHistoryCollections.collections)?.length && vt(e), Oo = ".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.skeleton-container{padding:20px;height:100%}", Mo = (e) => e.isEmptyDataAndOtherLoading ? h`<div class="skeleton-container">${e.skeletons}</div>` : e.isSomeCollectionLoadedAndOtherLoading ? h`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${v("busyEntriesLoading")}</div></div>` : O;
1723
- var Po = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, es = (e, t, s, i) => {
1724
- for (var r = i > 1 ? void 0 : i ? ko(t, s) : t, n = e.length - 1, o; n >= 0; n--)
1722
+ const vt = (e) => e.activityHistoryCollections.busy.length > 0, bt = (e) => Object.values(e.activityHistoryCollections.collections) && vt(e), Oo = (e) => !Object.values(e.activityHistoryCollections.collections)?.length && vt(e), Mo = ".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.skeleton-container{padding:20px;height:100%}", Po = (e) => e.isEmptyDataAndOtherLoading ? h`<div class="skeleton-container">${e.skeletons}</div>` : e.isSomeCollectionLoadedAndOtherLoading ? h`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${v("busyEntriesLoading")}</div></div>` : O;
1723
+ var ko = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, es = (e, t, s, i) => {
1724
+ for (var r = i > 1 ? void 0 : i ? Ao(t, s) : t, n = e.length - 1, o; n >= 0; n--)
1725
1725
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
1726
- return i && r && Po(t, s, r), r;
1726
+ return i && r && ko(t, s, r), r;
1727
1727
  };
1728
1728
  let je = class extends L {
1729
1729
  render() {
1730
- return h`${Mo(this)}`;
1730
+ return h`${Po(this)}`;
1731
1731
  }
1732
1732
  get skeletons() {
1733
1733
  return Array.from({ length: 12 }, () => h`<dss-skeleton width="100" height="10"></dss-skeleton>`);
1734
1734
  }
1735
1735
  };
1736
1736
  je.styles = W`
1737
- ${q(Oo)}
1737
+ ${q(Mo)}
1738
1738
  `;
1739
1739
  es([
1740
1740
  S(bt)
1741
1741
  ], je.prototype, "isSomeCollectionLoadedAndOtherLoading", 2);
1742
1742
  es([
1743
- S(Fo)
1743
+ S(Oo)
1744
1744
  ], je.prototype, "isEmptyDataAndOtherLoading", 2);
1745
1745
  je = es([
1746
1746
  j("activity-history-busy")
@@ -1750,7 +1750,7 @@ class ts {
1750
1750
  this.entities = t;
1751
1751
  }
1752
1752
  }
1753
- class Ao extends pe {
1753
+ class Ho extends pe {
1754
1754
  async handle(t) {
1755
1755
  try {
1756
1756
  const s = t.entities.map((i) => i.entityId);
@@ -1761,15 +1761,15 @@ class Ao extends pe {
1761
1761
  }
1762
1762
  async dispatchRemoveErrorItems(t) {
1763
1763
  for (const s of t)
1764
- this.store.dispatch(uo(s));
1764
+ this.store.dispatch(ho(s));
1765
1765
  }
1766
1766
  }
1767
1767
  let wi;
1768
- const Ho = (e) => {
1769
- xi(), wi = e.registerRequest(ts, Ao);
1768
+ const Ro = (e) => {
1769
+ xi(), wi = e.registerRequest(ts, Ho);
1770
1770
  }, xi = () => {
1771
1771
  wi?.dispose();
1772
- }, Ro = ".wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;width:484px;height:auto}.wrapper .content-options{display:flex;flex-direction:column;align-items:center;gap:16px}.wrapper .selector-options{display:flex;flex-direction:row;gap:16px}.wrapper .content-date{display:flex;flex-direction:column;align-items:center;gap:16px;height:124px}.wrapper .datepicker-canvas{display:flex;flex-direction:row;justify-content:center;align-content:center;gap:16px}.wrapper .actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px}dss-datepicker{width:234px;height:48px;border-radius:var(--dss-radius-sm);border:var(--dss-border-width-sm);padding:var(--dss-spacing-sm);gap:var(--dss-spacing-xs);color:var(--color-neutral-100)}", zo = (e) => {
1772
+ }, zo = ".wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;width:484px;height:auto}.wrapper .content-options{display:flex;flex-direction:column;align-items:center;gap:16px}.wrapper .selector-options{display:flex;flex-direction:row;gap:16px}.wrapper .content-date{display:flex;flex-direction:column;align-items:center;gap:16px;height:124px}.wrapper .datepicker-canvas{display:flex;flex-direction:row;justify-content:center;align-content:center;gap:16px}.wrapper .actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px}dss-datepicker{width:234px;height:48px;border-radius:var(--dss-radius-sm);border:var(--dss-border-width-sm);padding:var(--dss-spacing-sm);gap:var(--dss-spacing-xs);color:var(--color-neutral-100)}", Go = (e) => {
1773
1773
  const { arrayElements: t, text: s } = e;
1774
1774
  return h`
1775
1775
  <div class="wrapper">
@@ -1811,10 +1811,10 @@ const Ho = (e) => {
1811
1811
  </div>` : O}
1812
1812
  </div>`;
1813
1813
  };
1814
- var Go = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, He = (e, t, s, i) => {
1815
- for (var r = i > 1 ? void 0 : i ? Vo(t, s) : t, n = e.length - 1, o; n >= 0; n--)
1814
+ var Vo = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, He = (e, t, s, i) => {
1815
+ for (var r = i > 1 ? void 0 : i ? Bo(t, s) : t, n = e.length - 1, o; n >= 0; n--)
1816
1816
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
1817
- return i && r && Go(t, s, r), r;
1817
+ return i && r && Vo(t, s, r), r;
1818
1818
  };
1819
1819
  let ce = class extends L {
1820
1820
  constructor() {
@@ -1827,12 +1827,12 @@ let ce = class extends L {
1827
1827
  }
1828
1828
  render() {
1829
1829
  return h`
1830
- ${zo(this)}
1830
+ ${Go(this)}
1831
1831
  `;
1832
1832
  }
1833
1833
  static get styles() {
1834
1834
  return W`
1835
- ${q(Ro)}
1835
+ ${q(zo)}
1836
1836
  `;
1837
1837
  }
1838
1838
  handleTest() {
@@ -1860,7 +1860,7 @@ He([
1860
1860
  ce = He([
1861
1861
  j("export-pdf-modal")
1862
1862
  ], ce);
1863
- class Bo extends oo {
1863
+ class No extends ao {
1864
1864
  async handle() {
1865
1865
  try {
1866
1866
  this.api.interactionService.confirm(void 0, { component: ce }, {
@@ -1881,12 +1881,12 @@ class Bo extends oo {
1881
1881
  class ss {
1882
1882
  }
1883
1883
  let _i;
1884
- const No = (e) => {
1885
- _i = e.registerRequest(ss, Bo);
1886
- }, qo = () => {
1884
+ const qo = (e) => {
1885
+ _i = e.registerRequest(ss, No);
1886
+ }, Wo = () => {
1887
1887
  _i?.dispose();
1888
1888
  };
1889
- function Wo(e, t, s, i) {
1889
+ function Lo(e, t, s, i) {
1890
1890
  const r = `Sense ${i.toLocaleLowerCase()}`, n = /* @__PURE__ */ new Map();
1891
1891
  let o = !1;
1892
1892
  for (const l of e) {
@@ -1900,16 +1900,16 @@ function Wo(e, t, s, i) {
1900
1900
  }
1901
1901
  class z {
1902
1902
  and(t) {
1903
- return new Lo(this, t);
1903
+ return new jo(this, t);
1904
1904
  }
1905
1905
  or(t) {
1906
- return new jo(this, t);
1906
+ return new Yo(this, t);
1907
1907
  }
1908
1908
  not() {
1909
- return new Yo(this);
1909
+ return new Qo(this);
1910
1910
  }
1911
1911
  }
1912
- class Lo extends z {
1912
+ class jo extends z {
1913
1913
  constructor(t, s) {
1914
1914
  super(), this.left = t, this.right = s;
1915
1915
  }
@@ -1917,7 +1917,7 @@ class Lo extends z {
1917
1917
  return this.left.isSatisfiedBy(t) && this.right.isSatisfiedBy(t);
1918
1918
  }
1919
1919
  }
1920
- class jo extends z {
1920
+ class Yo extends z {
1921
1921
  constructor(t, s) {
1922
1922
  super(), this.left = t, this.right = s;
1923
1923
  }
@@ -1925,7 +1925,7 @@ class jo extends z {
1925
1925
  return this.left.isSatisfiedBy(t) || this.right.isSatisfiedBy(t);
1926
1926
  }
1927
1927
  }
1928
- class Yo extends z {
1928
+ class Qo extends z {
1929
1929
  constructor(t) {
1930
1930
  super(), this.spec = t;
1931
1931
  }
@@ -1933,7 +1933,7 @@ class Yo extends z {
1933
1933
  return !this.spec.isSatisfiedBy(t);
1934
1934
  }
1935
1935
  }
1936
- class Qo extends z {
1936
+ class Uo extends z {
1937
1937
  isSatisfiedBy(t) {
1938
1938
  return !t?.deleted;
1939
1939
  }
@@ -1942,7 +1942,7 @@ let Gt = null;
1942
1942
  const Si = (e) => {
1943
1943
  Gt = e;
1944
1944
  };
1945
- class Uo extends z {
1945
+ class Xo extends z {
1946
1946
  isSatisfiedBy(t) {
1947
1947
  if (!Gt)
1948
1948
  return !1;
@@ -1954,38 +1954,38 @@ class Uo extends z {
1954
1954
  }
1955
1955
  }
1956
1956
  }
1957
- class Xo extends z {
1957
+ class Ko extends z {
1958
1958
  isSatisfiedBy(t) {
1959
1959
  return t?.relevant ?? !1;
1960
1960
  }
1961
1961
  }
1962
- const Ko = {
1963
- [ci]: Xo,
1964
- [di]: Uo,
1965
- [yt]: Qo
1962
+ const Jo = {
1963
+ [ci]: Ko,
1964
+ [di]: Xo,
1965
+ [yt]: Uo
1966
1966
  };
1967
- class Jo extends z {
1967
+ class Zo extends z {
1968
1968
  isSatisfiedBy() {
1969
1969
  return !0;
1970
1970
  }
1971
1971
  }
1972
- class Zo extends z {
1972
+ class ea extends z {
1973
1973
  constructor(t) {
1974
1974
  super(), this.commonFilters = t;
1975
1975
  }
1976
1976
  isSatisfiedBy(t) {
1977
1977
  return this.commonFilters.filter((r) => r.inverted ? !r.enabled : r.enabled).reduce((r, n) => {
1978
- const o = Ko[n.id];
1978
+ const o = Jo[n.id];
1979
1979
  return o ? r.and(new o()) : r;
1980
- }, new Jo()).isSatisfiedBy(t);
1980
+ }, new Zo()).isSatisfiedBy(t);
1981
1981
  }
1982
1982
  }
1983
- class ea extends z {
1983
+ class ta extends z {
1984
1984
  isSatisfiedBy() {
1985
1985
  return !1;
1986
1986
  }
1987
1987
  }
1988
- class $s extends z {
1988
+ class Es extends z {
1989
1989
  constructor(t, s) {
1990
1990
  super(), this.propPath = t, this.value = s;
1991
1991
  }
@@ -1993,7 +1993,7 @@ class $s extends z {
1993
1993
  return this.propPath.reduce((i, r) => i?.[r], t) === this.value;
1994
1994
  }
1995
1995
  }
1996
- class ta extends z {
1996
+ class sa extends z {
1997
1997
  constructor(t) {
1998
1998
  super(), this.group = t;
1999
1999
  }
@@ -2001,13 +2001,13 @@ class ta extends z {
2001
2001
  return t.type !== this.group.id ? !1 : this.group.filters.filter(li).every((s) => this.satisfies(t, s));
2002
2002
  }
2003
2003
  satisfies(t, s) {
2004
- return Se(s) ? new $s(s.propPathValue, !0).isSatisfiedBy(t) : (s.enabledValues ?? []).reduce(
2005
- (r, n) => r.or(new $s(s.propPathValue, n)),
2006
- new ea()
2004
+ return Se(s) ? new Es(s.propPathValue, !0).isSatisfiedBy(t) : (s.enabledValues ?? []).reduce(
2005
+ (r, n) => r.or(new Es(s.propPathValue, n)),
2006
+ new ta()
2007
2007
  ).isSatisfiedBy(t);
2008
2008
  }
2009
2009
  }
2010
- class sa extends z {
2010
+ class ia extends z {
2011
2011
  constructor(t) {
2012
2012
  super(), this.diagnosticCodes = this.extractAllCodes(t);
2013
2013
  }
@@ -2027,33 +2027,33 @@ class sa extends z {
2027
2027
  return this.diagnosticCodes?.length ? (t.diagnostics ?? []).some((i) => this.diagnosticCodes.includes(i.codi)) : !0;
2028
2028
  }
2029
2029
  }
2030
- const ia = "history-up", ra = "history-professional-role", na = "history-speciality", oa = "history-professional", aa = "history-service", is = "history-note-type", Ci = [
2030
+ const ra = "history-up", na = "history-professional-role", oa = "history-speciality", aa = "history-professional", la = "history-service", is = "history-note-type", Ci = [
2031
2031
  {
2032
- id: ia,
2032
+ id: ra,
2033
2033
  title: "UP",
2034
2034
  valuePath: ["up", "id"],
2035
2035
  descriptionPath: ["up", "description"]
2036
2036
  },
2037
2037
  {
2038
- id: ra,
2038
+ id: na,
2039
2039
  title: "Tipus de professional",
2040
2040
  valuePath: ["professional", "role", "id"],
2041
2041
  descriptionPath: ["professional", "role", "description"]
2042
2042
  },
2043
2043
  {
2044
- id: na,
2044
+ id: oa,
2045
2045
  title: "Especialitat",
2046
2046
  valuePath: ["professional", "speciality", "id"],
2047
2047
  descriptionPath: ["professional", "speciality", "description"]
2048
2048
  },
2049
2049
  {
2050
- id: oa,
2050
+ id: aa,
2051
2051
  title: "Professional",
2052
2052
  valuePath: ["professional", "id"],
2053
2053
  descriptionPath: ["professional", "name"]
2054
2054
  },
2055
2055
  {
2056
- id: aa,
2056
+ id: la,
2057
2057
  title: "Servei",
2058
2058
  valuePath: ["service", "id"],
2059
2059
  descriptionPath: ["service", "description"]
@@ -2067,11 +2067,11 @@ const ia = "history-up", ra = "history-professional-role", na = "history-special
2067
2067
  descriptionPath: ["noteType", "description"],
2068
2068
  optionGroup: {
2069
2069
  title: "Curs clínic i activitats",
2070
- excludedValues: Object.values(Gr)
2070
+ excludedValues: Object.values(Vr)
2071
2071
  }
2072
2072
  }
2073
2073
  ];
2074
- class la extends z {
2074
+ class ca extends z {
2075
2075
  constructor(t) {
2076
2076
  super(), this.filters = t;
2077
2077
  }
@@ -2084,7 +2084,7 @@ class la extends z {
2084
2084
  });
2085
2085
  }
2086
2086
  }
2087
- class ca extends z {
2087
+ class da extends z {
2088
2088
  constructor(t) {
2089
2089
  super(), this.noteTypeIds = t;
2090
2090
  }
@@ -2092,7 +2092,7 @@ class ca extends z {
2092
2092
  return this.noteTypeIds.includes(t.noteType?.id ?? "");
2093
2093
  }
2094
2094
  }
2095
- class da extends z {
2095
+ class ua extends z {
2096
2096
  constructor(t, s) {
2097
2097
  super(), this.clauses = t, this.showDeleted = s;
2098
2098
  }
@@ -2100,23 +2100,23 @@ class da extends z {
2100
2100
  return this.clauses.length === 0 || this.showDeleted && t.deleted ? !0 : this.clauses.some((s) => s.isSatisfiedBy(t));
2101
2101
  }
2102
2102
  }
2103
- const Es = (e) => e == null ? "" : String(e).normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase(), ye = (e, t) => {
2104
- const s = Es(e), i = Es(t);
2103
+ const $s = (e) => e == null ? "" : String(e).normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase(), ye = (e, t) => {
2104
+ const s = $s(e), i = $s(t);
2105
2105
  return s.toString().toLowerCase().indexOf(i) !== -1 || s.toString().indexOf(i) !== -1;
2106
- }, ua = (e, t) => {
2106
+ }, ha = (e, t) => {
2107
2107
  const s = e.professional?.name && ye(e.professional?.name, t), i = e.center?.description && ye(e.center.description, t), r = e.professional?.speciality?.description && ye(e.professional?.speciality.description, t), n = e.professional?.role?.description && ye(e.professional?.role.description, t), o = e.service?.description && ye(e.service.description, t), a = e.up?.description && ye(e.up.description, t), l = e.diagnostics?.some(
2108
2108
  (d) => ye(d.descripcio, t)
2109
2109
  );
2110
2110
  return s || i || r || n || o || a || l;
2111
2111
  };
2112
- class ha extends z {
2112
+ class fa extends z {
2113
2113
  constructor(t, s) {
2114
2114
  super(), this.searchString = t, this.searchPredicate = s;
2115
2115
  }
2116
2116
  isSatisfiedBy(t) {
2117
2117
  if (!this.searchString?.trim())
2118
2118
  return !0;
2119
- const s = ua(t, this.searchString);
2119
+ const s = ha(t, this.searchString);
2120
2120
  let i = !1;
2121
2121
  if (this.searchPredicate)
2122
2122
  try {
@@ -2132,16 +2132,16 @@ const rs = (e) => e.activityHistoryFilters.filters, wt = I(
2132
2132
  ), Di = I(
2133
2133
  wt,
2134
2134
  (e) => e.find((t) => t.id === yt)
2135
- ), fa = I(Di, (e) => !!e?.enabled), pa = I(
2135
+ ), pa = I(Di, (e) => !!e?.enabled), ma = I(
2136
2136
  wt,
2137
2137
  (e) => e.filter((t) => t.id !== yt)
2138
2138
  ), Ti = I(
2139
2139
  wt,
2140
2140
  (e) => e.filter((t) => t.enabled)
2141
- ), ma = I(Ti, (e) => !!e.length), xt = I(
2141
+ ), ga = I(Ti, (e) => !!e.length), xt = I(
2142
2142
  rs,
2143
- (e) => e.filter(Zt).sort(ga)
2144
- ), ga = (e, t) => Number(e.sort) - Number(t.sort), ya = I(
2143
+ (e) => e.filter(Zt).sort(ya)
2144
+ ), ya = (e, t) => Number(e.sort) - Number(t.sort), va = I(
2145
2145
  xt,
2146
2146
  (e) => e.some(gt)
2147
2147
  ), Ii = I(
@@ -2150,26 +2150,26 @@ const rs = (e) => e.activityHistoryFilters.filters, wt = I(
2150
2150
  ), ns = I(
2151
2151
  Ii,
2152
2152
  (e) => e?.enabledValues || []
2153
- ), va = I(
2153
+ ), ba = I(
2154
2154
  ns,
2155
2155
  (e) => !!e.length
2156
- ), Fs = (e, t) => t.reduce((s, i) => s?.[i], e), ba = (e, t) => {
2156
+ ), Fs = (e, t) => t.reduce((s, i) => s?.[i], e), wa = (e, t) => {
2157
2157
  const s = Fs(e, t.valuePath);
2158
2158
  if (typeof s != "string" || !s.trim()) return;
2159
2159
  const i = Fs(e, t.descriptionPath);
2160
2160
  return { value: s, label: typeof i == "string" && i.trim() ? i : s };
2161
- }, wa = (e, t) => e.label.localeCompare(t.label, "ca", { sensitivity: "base" }), xa = (e, t) => {
2161
+ }, xa = (e, t) => e.label.localeCompare(t.label, "ca", { sensitivity: "base" }), _a = (e, t) => {
2162
2162
  const s = /* @__PURE__ */ new Map();
2163
2163
  for (const i of e) {
2164
- const r = ba(i, t);
2164
+ const r = wa(i, t);
2165
2165
  r && !s.has(r.value) && s.set(r.value, r);
2166
2166
  }
2167
- return [...s.values()].sort(wa);
2168
- }, _a = (e, t, { title: s, excludedValues: i }) => {
2167
+ return [...s.values()].sort(xa);
2168
+ }, Sa = (e, t, { title: s, excludedValues: i }) => {
2169
2169
  const r = e.filter((a) => !i.includes(a.value)), n = e.filter((a) => i.includes(a.value));
2170
2170
  return { groups: r.length > 0 ? [{ id: `${t.id}-group`, title: s, values: r }] : [], values: [...r, ...n] };
2171
- }, Sa = (e, t = {}) => Ci.map((s) => {
2172
- const i = xa(e, s), { groups: r, values: n } = s.optionGroup ? _a(i, s, s.optionGroup) : { groups: [], values: i };
2171
+ }, Ca = (e, t = {}) => Ci.map((s) => {
2172
+ const i = _a(e, s), { groups: r, values: n } = s.optionGroup ? Sa(i, s, s.optionGroup) : { groups: [], values: i };
2173
2173
  return { definition: s, groups: r, values: n };
2174
2174
  }).filter(({ values: s }) => s.length > 0).map(({ definition: s, groups: i, values: r }) => ({
2175
2175
  id: s.id,
@@ -2177,30 +2177,30 @@ const rs = (e) => e.activityHistoryFilters.filters, wt = I(
2177
2177
  values: r,
2178
2178
  groups: i,
2179
2179
  enabledValues: (t[s.id] ?? []).filter((n) => r.some((o) => o.value === n))
2180
- })), Ca = (e) => e.activityHistoryCollections.collections, Da = (e) => e.activityHistoryFilters.globalFilterSelection, os = I(
2181
- Ca,
2180
+ })), Da = (e) => e.activityHistoryCollections.collections, Ta = (e) => e.activityHistoryFilters.globalFilterSelection, os = I(
2182
2181
  Da,
2182
+ Ta,
2183
2183
  (e, t) => {
2184
2184
  const s = Object.values(e).flatMap(
2185
2185
  (i) => i.items ?? []
2186
2186
  );
2187
- return Sa(s, t);
2187
+ return Ca(s, t);
2188
2188
  }
2189
2189
  ), as = I(
2190
2190
  os,
2191
2191
  (e) => e.filter((t) => t.enabledValues.length > 0)
2192
- ), Ta = I(as, (e) => !!e.length), Ia = I(
2192
+ ), Ia = I(as, (e) => !!e.length), Ea = I(
2193
2193
  os,
2194
2194
  (e) => e.find((t) => t.id === is)
2195
2195
  ), $a = I(
2196
2196
  as,
2197
2197
  (e) => e.filter((t) => t.id !== is)
2198
- ), Ea = (e, t) => {
2198
+ ), Fa = (e, t) => {
2199
2199
  if (e.length !== t.length)
2200
2200
  return !1;
2201
2201
  const s = e.map((r) => r.codi).sort(), i = t.map((r) => r.codi).sort();
2202
2202
  return s.every((r, n) => r === i[n]);
2203
- }, Fa = (e) => e != null && typeof e.codi == "string" && (typeof e.cataleg == "string" || e.cataleg === null) && typeof e.descripcio == "string", Oa = (e) => e == null ? !0 : Array.isArray(e) && e.every(Fa), Os = 480 * 60 * 1e3, Ma = (e) => {
2203
+ }, Oa = (e) => e != null && typeof e.codi == "string" && (typeof e.cataleg == "string" || e.cataleg === null) && typeof e.descripcio == "string", Ma = (e) => e == null ? !0 : Array.isArray(e) && e.every(Oa), Os = 480 * 60 * 1e3, Pa = (e) => {
2204
2204
  const t = new Date(e.date), s = e.professional, i = `${s?.id || "null"}-${s?.role?.id || "null"}-${s?.speciality?.id || "null"}`, r = `${e.ep?.id || "null"}-${e.up?.id || "null"}-${e.center?.id || "null"}`, n = e.service?.id != null && e.service.id !== "" ? e.service.id : null;
2205
2205
  return {
2206
2206
  item: e,
@@ -2208,7 +2208,7 @@ const rs = (e) => e.activityHistoryFilters.filters, wt = I(
2208
2208
  baseKey: `${i}|${r}|${t.toDateString()}`,
2209
2209
  serviceId: n
2210
2210
  };
2211
- }, Pa = (e, t) => e === null || t === null || e === t;
2211
+ }, ka = (e, t) => e === null || t === null || e === t;
2212
2212
  class Ms {
2213
2213
  constructor() {
2214
2214
  this.times = [];
@@ -2239,22 +2239,22 @@ class Ms {
2239
2239
  return s;
2240
2240
  }
2241
2241
  }
2242
- function ka(e) {
2242
+ function Aa(e) {
2243
2243
  e.forEach((t) => {
2244
2244
  const s = [], i = [];
2245
2245
  t.items.forEach((r) => {
2246
2246
  const n = r.diagnostics;
2247
- if (n?.length > 0 && Oa(n)) {
2247
+ if (n?.length > 0 && Ma(n)) {
2248
2248
  let a = !1;
2249
2249
  for (const l of s) {
2250
2250
  const d = l.items[0];
2251
- if (Ea(d.diagnostics, n)) {
2251
+ if (Fa(d.diagnostics, n)) {
2252
2252
  l.items.push(r), a = !0;
2253
2253
  break;
2254
2254
  }
2255
2255
  }
2256
2256
  a || s.push({
2257
- idSubGroup: Hr(),
2257
+ idSubGroup: Rr(),
2258
2258
  items: [r]
2259
2259
  });
2260
2260
  } else
@@ -2262,15 +2262,15 @@ function ka(e) {
2262
2262
  }), t.items = i, t.subGroups = s;
2263
2263
  });
2264
2264
  }
2265
- const Aa = (e) => {
2265
+ const Ha = (e) => {
2266
2266
  if (!e?.length) return [];
2267
- const t = e.map(Ma).sort((o, a) => a.time - o.time), s = /* @__PURE__ */ new Map(), i = [], r = new Ms();
2267
+ const t = e.map(Pa).sort((o, a) => a.time - o.time), s = /* @__PURE__ */ new Map(), i = [], r = new Ms();
2268
2268
  for (const o of t) {
2269
2269
  const { baseKey: a, time: l } = o;
2270
2270
  let d = !1, c = s.get(a);
2271
2271
  c || (c = { groups: [], times: new Ms() }, s.set(a, c));
2272
2272
  for (const u of c.groups) {
2273
- if (!Pa(u.serviceId, o.serviceId) || Math.abs(u.firstTime - l) > Os || Math.abs(u.lastTime - l) > Os) continue;
2273
+ if (!ka(u.serviceId, o.serviceId) || Math.abs(u.firstTime - l) > Os || Math.abs(u.lastTime - l) > Os) continue;
2274
2274
  const m = Math.min(u.lastTime, l), f = Math.max(u.firstTime, l), g = r.countStrictlyBetween(m, f), C = c.times.countStrictlyBetween(m, f);
2275
2275
  if (!(g - C > 0)) {
2276
2276
  u.group.items.push(o.item), u.lastTime = l, d = !0;
@@ -2294,21 +2294,21 @@ const Aa = (e) => {
2294
2294
  }
2295
2295
  i.sort((o, a) => a.firstTime - o.firstTime);
2296
2296
  const n = i.map((o) => o.group);
2297
- return ka(n), n;
2298
- }, $i = (e) => e.reduce((t, s) => {
2297
+ return Aa(n), n;
2298
+ }, Ei = (e) => e.reduce((t, s) => {
2299
2299
  const i = new Date(s.date);
2300
2300
  return i > t ? i : t;
2301
- }, /* @__PURE__ */ new Date(0)), Vt = (e) => $i(e.items), Bt = (e) => {
2302
- const t = e.items.length > 0 ? [$i(e.items)] : [], s = e.subGroups.map(Vt), i = [...t, ...s];
2301
+ }, /* @__PURE__ */ new Date(0)), Vt = (e) => Ei(e.items), Bt = (e) => {
2302
+ const t = e.items.length > 0 ? [Ei(e.items)] : [], s = e.subGroups.map(Vt), i = [...t, ...s];
2303
2303
  return i.length > 0 ? new Date(Math.max(...i.map((r) => r.getTime()))) : /* @__PURE__ */ new Date(0);
2304
- }, Ha = (e) => {
2304
+ }, Ra = (e) => {
2305
2305
  const t = (s) => s.sort((i, r) => new Date(r.date).getTime() - new Date(i.date).getTime());
2306
2306
  return e.forEach((s) => {
2307
2307
  s.items = t(s.items), s.subGroups.forEach((i) => {
2308
2308
  i.items = t(i.items);
2309
2309
  }), s.subGroups.sort((i, r) => Vt(r).getTime() - Vt(i).getTime());
2310
2310
  }), e.sort((s, i) => Bt(i).getTime() - Bt(s).getTime());
2311
- }, _t = (e) => e.activityHistoryFilters.searchString, St = (e) => e.activityHistoryCollections.collections, Ra = I(
2311
+ }, _t = (e) => e.activityHistoryFilters.searchString, St = (e) => e.activityHistoryCollections.collections, za = I(
2312
2312
  St,
2313
2313
  (e) => {
2314
2314
  const t = {};
@@ -2316,17 +2316,17 @@ const Aa = (e) => {
2316
2316
  i?.historyDataImporterRules && (t[s] = i.historyDataImporterRules);
2317
2317
  return t;
2318
2318
  }
2319
- ), za = (e, t, s, i) => e.map(
2319
+ ), Ga = (e, t, s, i) => e.map(
2320
2320
  (r) => ({
2321
2321
  ...r,
2322
2322
  searchPredicate: i,
2323
2323
  componentFactory: t,
2324
2324
  type: s
2325
2325
  })
2326
- ), Ga = I(
2326
+ ), Va = I(
2327
2327
  St,
2328
- (e) => Object.values(e).flatMap((t) => za(t.items, t.componentFactory, t.id, t.searchPredicate))
2329
- ), Ei = I(
2328
+ (e) => Object.values(e).flatMap((t) => Ga(t.items, t.componentFactory, t.id, t.searchPredicate))
2329
+ ), $i = I(
2330
2330
  xt,
2331
2331
  St,
2332
2332
  (e, t) => e.map((s) => {
@@ -2335,7 +2335,7 @@ const Aa = (e) => {
2335
2335
  ...s,
2336
2336
  filters: s.filters.map((r) => ({
2337
2337
  ...r,
2338
- options: Se(r) ? [] : Wo(
2338
+ options: Se(r) ? [] : Lo(
2339
2339
  i,
2340
2340
  r.propPathValue,
2341
2341
  r.propsPathDescription ?? [],
@@ -2344,8 +2344,8 @@ const Aa = (e) => {
2344
2344
  }))
2345
2345
  };
2346
2346
  })
2347
- ), Va = I(
2348
- Ia,
2347
+ ), Ba = I(
2348
+ Ea,
2349
2349
  xt,
2350
2350
  St,
2351
2351
  (e, t, s) => {
@@ -2356,28 +2356,28 @@ const Aa = (e) => {
2356
2356
  );
2357
2357
  return i.filter((n) => !r.has(n));
2358
2358
  }
2359
- ), Ba = I(
2360
- Ga,
2359
+ ), Na = I(
2360
+ Va,
2361
2361
  _t,
2362
2362
  wt,
2363
2363
  xt,
2364
2364
  ns,
2365
2365
  $a,
2366
- Va,
2367
- fa,
2366
+ Ba,
2367
+ pa,
2368
2368
  (e, t, s, i, r, n, o, a) => {
2369
- const l = new Zo(s), d = new sa(r), c = new la(n), u = new da(
2369
+ const l = new ea(s), d = new ia(r), c = new ca(n), u = new ua(
2370
2370
  [
2371
- ...o.length > 0 ? [new ca(o)] : [],
2372
- ...i.filter(gt).map((m) => new ta(m))
2371
+ ...o.length > 0 ? [new da(o)] : [],
2372
+ ...i.filter(gt).map((m) => new sa(m))
2373
2373
  ],
2374
2374
  a
2375
2375
  );
2376
- return e.filter((m) => new ha(t, m.searchPredicate).and(l).and(d).and(c).and(u).isSatisfiedBy(m));
2376
+ return e.filter((m) => new fa(t, m.searchPredicate).and(l).and(d).and(c).and(u).isSatisfiedBy(m));
2377
2377
  }
2378
2378
  ), ls = I(
2379
- Ba,
2380
- (e) => Ha(Aa(e))
2379
+ Na,
2380
+ (e) => Ra(Ha(e))
2381
2381
  );
2382
2382
  class cs {
2383
2383
  constructor(t) {
@@ -2394,7 +2394,7 @@ class us {
2394
2394
  this.payload = t;
2395
2395
  }
2396
2396
  }
2397
- const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,189);width:56px;height:100%;box-sizing:border-box;display:flex;flex-direction:column}.filters-sidebar dss-icon-button{align-self:center}.filters-sidebar[expanded]{width:296px}.filters-sidebar[expanded] .filters-sidebar-opened{display:flex;align-items:center;justify-content:space-between;padding-inline:8px;color:var(--color-neutral-900);font-weight:700;font-size:16px;line-height:24px}.filter-container{display:flex;flex-direction:column;padding:16px 8px 8px;overflow:auto}.filter-container .filter{padding:12px 0;border-bottom:1px solid var(--color-neutral-200)}.filter-options{display:flex;flex-direction:column;gap:8px}.filter-options--nested{padding-left:16px}.filter-container .filter.filter-deleted-toggle{border-bottom:none;border-top:1px solid var(--color-neutral-200);padding-top:12px}.filter-group{display:flex;flex-direction:column;padding-top:12px;gap:var(--dss-spacing-xs);padding-bottom:12px;border-bottom:1px solid var(--color-neutral-200)}.filter-group:last-of-type{border:none}.custom-subfilters-container{display:flex;flex-direction:column;padding-left:16px;gap:12px}.custom-subfilters-container .custom-filter-content{display:flex;flex-direction:column;gap:8px}", qa = ({ id: e, title: t, checked: s, onChange: i }) => h`
2397
+ const qa = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,189);width:56px;height:100%;box-sizing:border-box;display:flex;flex-direction:column}.filters-sidebar dss-icon-button{align-self:center}.filters-sidebar[expanded]{width:296px}.filters-sidebar[expanded] .filters-sidebar-opened{display:flex;align-items:center;justify-content:space-between;padding-inline:8px;color:var(--color-neutral-900);font-weight:700;font-size:16px;line-height:24px}.filter-container{display:flex;flex-direction:column;padding:16px 8px 8px;overflow:auto}.filter-container .filter{padding:12px 0;border-bottom:1px solid var(--color-neutral-200)}.filter-options{display:flex;flex-direction:column;gap:8px}.filter-options--nested{padding-left:16px}.filter-container .filter.filter-deleted-toggle{border-bottom:none;border-top:1px solid var(--color-neutral-200);padding-top:12px}.filter-group{display:flex;flex-direction:column;padding-top:12px;gap:var(--dss-spacing-xs);padding-bottom:12px;border-bottom:1px solid var(--color-neutral-200)}.filter-group:last-of-type{border:none}.custom-subfilters-container{display:flex;flex-direction:column;padding-left:16px;gap:12px}.custom-subfilters-container .custom-filter-content{display:flex;flex-direction:column;gap:8px}", Wa = ({ id: e, title: t, checked: s, onChange: i }) => h`
2398
2398
  <dss-input-switch size="sm" @onChangeValue=${(r) => i(r.detail)} .checked=${s}>
2399
2399
  <input slot="input" id=${e} aria-label=${t} type="checkbox">
2400
2400
  <label slot="label" for=${e}>${t}</label>
@@ -2402,23 +2402,23 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
2402
2402
  <dss-checkbox variant="default" @onChange=${(r) => i(r.detail)}>
2403
2403
  <input slot="input" id=${e} type="checkbox" .checked=${s}>
2404
2404
  <label slot="label" for=${e}>${t}</label>
2405
- </dss-checkbox>`, Nt = (e, t) => e === Fe.Switch ? qa(t) : Fi(t), Ps = (e, t) => Nt(e.type, {
2405
+ </dss-checkbox>`, Nt = (e, t) => e === Fe.Switch ? Wa(t) : Fi(t), Ps = (e, t) => Nt(e.type, {
2406
2406
  id: `common-filter-${e.id}`,
2407
2407
  title: e.title,
2408
2408
  checked: e.enabled,
2409
2409
  onChange: (s) => t._onChangeCommonFilterValue(e.id, s)
2410
- }), Wa = (e, t) => Ot(
2410
+ }), La = (e, t) => Ot(
2411
2411
  e.filters.length > 0,
2412
2412
  () => h`
2413
2413
  <div class="filter">
2414
2414
  <primaria-accordion>
2415
2415
  <dss-typography slot="title" tag="p" variant="subtitle-3">${e.title}</dss-typography>
2416
2416
  <div class="filter-options" slot="content">
2417
- ${e.filters.map((s) => La(s, e, t))}
2417
+ ${e.filters.map((s) => ja(s, e, t))}
2418
2418
  </div>
2419
2419
  </primaria-accordion>
2420
2420
  </div>`
2421
- ), La = (e, t, s) => Se(e) ? Nt(e.type, {
2421
+ ), ja = (e, t, s) => Se(e) ? Nt(e.type, {
2422
2422
  id: `custom-filter-${t.id}-${e.id}`,
2423
2423
  title: e.title,
2424
2424
  checked: !!e.enabled,
@@ -2435,7 +2435,7 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
2435
2435
  title: t.label || t.value,
2436
2436
  checked: e.enabledValues.includes(t.value),
2437
2437
  onChange: (i) => s._onToggleGlobalFilterValue(e.id, t.value, i)
2438
- }), ja = (e, t, s) => {
2438
+ }), Ya = (e, t, s) => {
2439
2439
  const i = t.values.filter((n) => e.enabledValues.includes(n.value)).length, r = `global-filter-${e.id}-group-${t.id}`;
2440
2440
  return h`
2441
2441
  <dss-checkbox variant="default" .indeterminate=${i > 0 && i < t.values.length} @onChange=${(n) => s._onToggleGlobalFilterGroup(e.id, t.id, n.detail)}>
@@ -2445,19 +2445,19 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
2445
2445
  <div class="filter-options filter-options--nested">
2446
2446
  ${t.values.map((n) => Oi(e, n, s))}
2447
2447
  </div>`;
2448
- }, Ya = (e, t) => {
2448
+ }, Qa = (e, t) => {
2449
2449
  const s = new Set(e.groups.flatMap((r) => r.values.map((n) => n.value))), i = e.values.filter((r) => !s.has(r.value));
2450
2450
  return h`
2451
2451
  <div class="filter">
2452
2452
  <primaria-accordion>
2453
2453
  <dss-typography slot="title" tag="p" variant="subtitle-3">${e.title}</dss-typography>
2454
2454
  <div class="filter-options" slot="content">
2455
- ${e.groups.map((r) => ja(e, r, t))}
2455
+ ${e.groups.map((r) => Ya(e, r, t))}
2456
2456
  ${i.map((r) => Oi(e, r, t))}
2457
2457
  </div>
2458
2458
  </primaria-accordion>
2459
2459
  </div>`;
2460
- }, Qa = (e) => h`
2460
+ }, Ua = (e) => h`
2461
2461
  <div class="filters-sidebar" ?expanded=${e.filtersExpanded} >
2462
2462
  ${e.filtersExpanded ? h`<div class="filters-sidebar-opened">${v("filters.filters")}<dss-icon-button ?hidden=${e.wrapperMaximized} @click=${() => e._toggleFilters()} size="md" variant="primary" icon="keyboard_double_arrow_left"></dss-icon-button></div>
2463
2463
  <div class="filter-container">
@@ -2474,13 +2474,13 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
2474
2474
  ${ne(
2475
2475
  e.globalFilters,
2476
2476
  (t) => t.id,
2477
- (t) => Ya(t, e)
2477
+ (t) => Qa(t, e)
2478
2478
  )}
2479
2479
  <!-- Filtres propis de cada plugin -->
2480
2480
  ${ne(
2481
2481
  e.customFilterGroups,
2482
2482
  (t) => t.id,
2483
- (t) => Wa(t, e)
2483
+ (t) => La(t, e)
2484
2484
  )}
2485
2485
  <!-- Toggle global d'eliminats: sempre l'últim de la llista -->
2486
2486
  ${e.deletedFilter ? h`<div class="filter filter-deleted-toggle">${Ps(e.deletedFilter, e)}</div>` : O}
@@ -2489,17 +2489,17 @@ const Na = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,
2489
2489
  `}
2490
2490
  </div>
2491
2491
  `;
2492
- var Ua = Object.defineProperty, Xa = Object.getOwnPropertyDescriptor, me = (e, t, s, i) => {
2493
- for (var r = i > 1 ? void 0 : i ? Xa(t, s) : t, n = e.length - 1, o; n >= 0; n--)
2492
+ var Xa = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, me = (e, t, s, i) => {
2493
+ for (var r = i > 1 ? void 0 : i ? Ka(t, s) : t, n = e.length - 1, o; n >= 0; n--)
2494
2494
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
2495
- return i && r && Ua(t, s, r), r;
2495
+ return i && r && Xa(t, s, r), r;
2496
2496
  };
2497
2497
  let ee = class extends L {
2498
2498
  constructor() {
2499
2499
  super(...arguments), this.filtersExpanded = !1;
2500
2500
  }
2501
2501
  render() {
2502
- return h`${Qa(this)}`;
2502
+ return h`${Ua(this)}`;
2503
2503
  }
2504
2504
  updated(e) {
2505
2505
  e.has("wrapperMaximized") && (this.filtersExpanded = this.wrapperMaximized);
@@ -2540,16 +2540,16 @@ let ee = class extends L {
2540
2540
  }
2541
2541
  };
2542
2542
  ee.styles = W`
2543
- ${q(Na)}
2543
+ ${q(qa)}
2544
2544
  `;
2545
2545
  me([
2546
- S(pa)
2546
+ S(ma)
2547
2547
  ], ee.prototype, "commonFilters", 2);
2548
2548
  me([
2549
2549
  S(Di)
2550
2550
  ], ee.prototype, "deletedFilter", 2);
2551
2551
  me([
2552
- S(Ei)
2552
+ S($i)
2553
2553
  ], ee.prototype, "customFilterGroups", 2);
2554
2554
  me([
2555
2555
  S(os)
@@ -2566,53 +2566,53 @@ me([
2566
2566
  ee = me([
2567
2567
  j("activity-history-filters")
2568
2568
  ], ee);
2569
- const { setCommonFilterValue: Ka } = ie.actions;
2570
- class Ja extends De {
2569
+ const { setCommonFilterValue: Ja } = ie.actions;
2570
+ class Za extends De {
2571
2571
  async handle(t) {
2572
2572
  try {
2573
- this.store.dispatch(Ka(t.payload));
2573
+ this.store.dispatch(Ja(t.payload));
2574
2574
  } catch (s) {
2575
2575
  console.error(s.message);
2576
2576
  }
2577
2577
  }
2578
2578
  }
2579
2579
  let Mi;
2580
- const Za = (e) => {
2581
- Mi = e.registerRequest(cs, Ja);
2582
- }, el = () => {
2580
+ const el = (e) => {
2581
+ Mi = e.registerRequest(cs, Za);
2582
+ }, tl = () => {
2583
2583
  Mi?.dispose();
2584
- }, { addCustomFilters: tl } = ie.actions;
2585
- class sl extends De {
2584
+ }, { addCustomFilters: sl } = ie.actions;
2585
+ class il extends De {
2586
2586
  async handle(t) {
2587
2587
  try {
2588
- this.store.dispatch(tl(t.payload));
2588
+ this.store.dispatch(sl(t.payload));
2589
2589
  } catch (s) {
2590
2590
  console.error(s.message);
2591
2591
  }
2592
2592
  }
2593
2593
  }
2594
2594
  let Pi;
2595
- const il = (e) => {
2596
- Pi = e.registerRequest(vi, sl);
2597
- }, rl = () => {
2595
+ const rl = (e) => {
2596
+ Pi = e.registerRequest(vi, il);
2597
+ }, nl = () => {
2598
2598
  Pi?.dispose();
2599
- }, { setCustomFilterValue: nl } = ie.actions;
2600
- class ol extends De {
2599
+ }, { setCustomFilterValue: ol } = ie.actions;
2600
+ class al extends De {
2601
2601
  async handle(t) {
2602
2602
  try {
2603
- this.store.dispatch(nl(t.payload));
2603
+ this.store.dispatch(ol(t.payload));
2604
2604
  } catch (s) {
2605
2605
  console.error(s.message);
2606
2606
  }
2607
2607
  }
2608
2608
  }
2609
2609
  let ki;
2610
- const al = (e) => {
2611
- ki = e.registerRequest(ds, ol);
2612
- }, ll = () => {
2610
+ const ll = (e) => {
2611
+ ki = e.registerRequest(ds, al);
2612
+ }, cl = () => {
2613
2613
  ki?.dispose();
2614
- }, { deleteDiagnosticFilterValue: cl } = ie.actions;
2615
- class dl extends pe {
2614
+ }, { deleteDiagnosticFilterValue: dl } = ie.actions;
2615
+ class ul extends pe {
2616
2616
  async handle(t) {
2617
2617
  try {
2618
2618
  const i = ns(this.store.getState()).find((r) => r.codi === t.payload.diagnosticCodi);
@@ -2622,7 +2622,7 @@ class dl extends pe {
2622
2622
  diagnostic: o
2623
2623
  });
2624
2624
  }
2625
- this.store.dispatch(cl(t.payload));
2625
+ this.store.dispatch(dl(t.payload));
2626
2626
  } catch (s) {
2627
2627
  console.error(s.message);
2628
2628
  }
@@ -2634,15 +2634,15 @@ class Ai {
2634
2634
  }
2635
2635
  }
2636
2636
  let Hi;
2637
- const ul = (e) => {
2638
- Hi = e.registerRequest(Ai, dl);
2639
- }, hl = () => {
2637
+ const hl = (e) => {
2638
+ Hi = e.registerRequest(Ai, ul);
2639
+ }, fl = () => {
2640
2640
  Hi?.dispose();
2641
- }, { setDiagnosticFilterValues: fl } = ie.actions;
2642
- class pl extends De {
2641
+ }, { setDiagnosticFilterValues: pl } = ie.actions;
2642
+ class ml extends De {
2643
2643
  async handle(t) {
2644
2644
  try {
2645
- this.store.dispatch(fl(t.payload.diagnostics));
2645
+ this.store.dispatch(pl(t.payload.diagnostics));
2646
2646
  } catch (s) {
2647
2647
  console.error(s.message);
2648
2648
  }
@@ -2654,52 +2654,52 @@ class Ri {
2654
2654
  }
2655
2655
  }
2656
2656
  let zi;
2657
- const ml = (e) => {
2658
- zi = e.registerRequest(Ri, pl);
2659
- }, gl = () => {
2657
+ const gl = (e) => {
2658
+ zi = e.registerRequest(Ri, ml);
2659
+ }, yl = () => {
2660
2660
  zi?.dispose();
2661
- }, yl = (e) => e.broker.subscribe("cipds_diagnostic_filter_historic_requested", (t) => {
2661
+ }, vl = (e) => e.broker.subscribe(Ir, (t) => {
2662
2662
  e.broker.send(new Ri(t));
2663
- }), { setGlobalFilterValues: vl } = ie.actions;
2664
- class bl extends De {
2663
+ }), { setGlobalFilterValues: bl } = ie.actions;
2664
+ class wl extends De {
2665
2665
  async handle(t) {
2666
2666
  try {
2667
- this.store.dispatch(vl(t.payload));
2667
+ this.store.dispatch(bl(t.payload));
2668
2668
  } catch (s) {
2669
2669
  console.error(s.message);
2670
2670
  }
2671
2671
  }
2672
2672
  }
2673
2673
  let Gi;
2674
- const wl = (e) => {
2675
- Gi = e.registerRequest(us, bl);
2676
- }, xl = () => {
2674
+ const xl = (e) => {
2675
+ Gi = e.registerRequest(us, wl);
2676
+ }, _l = () => {
2677
2677
  Gi?.dispose();
2678
2678
  };
2679
2679
  class Vi {
2680
2680
  }
2681
- const { resetFilters: _l } = ie.actions;
2682
- class Sl extends pe {
2681
+ const { resetFilters: Sl } = ie.actions;
2682
+ class Cl extends pe {
2683
2683
  async handle(t) {
2684
2684
  try {
2685
- this.api.broker.publish(this.api.broker.events.activityHistory.filtersCleaned), this.store.dispatch(_l());
2685
+ this.api.broker.publish(this.api.broker.events.activityHistory.filtersCleaned), this.store.dispatch(Sl());
2686
2686
  } catch (s) {
2687
2687
  console.error(s.message);
2688
2688
  }
2689
2689
  }
2690
2690
  }
2691
2691
  let Bi;
2692
- const Cl = (e) => {
2693
- Bi = e.registerRequest(Vi, Sl);
2694
- }, Dl = () => {
2692
+ const Dl = (e) => {
2693
+ Bi = e.registerRequest(Vi, Cl);
2694
+ }, Tl = () => {
2695
2695
  Bi?.dispose();
2696
2696
  };
2697
2697
  let qt = null;
2698
- const Tl = (e, t) => {
2699
- Za(e), il(e), al(e), ml(e), ul(e), wl(e), Cl(e), qt = yl(t);
2700
- }, Il = () => {
2701
- qt?.dispose(), qt = null, el(), rl(), ll(), gl(), hl(), xl(), Dl();
2702
- }, Ni = 6048e5, $l = 864e5, El = 6e4, Fl = 36e5, Ol = 1e3, ks = Symbol.for("constructDateFrom");
2698
+ const Il = (e, t) => {
2699
+ el(e), rl(e), ll(e), gl(e), hl(e), xl(e), Dl(e), qt = vl(t);
2700
+ }, El = () => {
2701
+ qt?.dispose(), qt = null, tl(), nl(), cl(), yl(), fl(), _l(), Tl();
2702
+ }, Ni = 6048e5, $l = 864e5, Fl = 6e4, Ol = 36e5, Ml = 1e3, ks = Symbol.for("constructDateFrom");
2703
2703
  function k(e, t) {
2704
2704
  return typeof e == "function" ? e(t) : e && typeof e == "object" && ks in e ? e[ks](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
2705
2705
  }
@@ -2710,9 +2710,9 @@ function qi(e, t, s) {
2710
2710
  const i = P(e, s?.in);
2711
2711
  return isNaN(t) ? k(s?.in || e, NaN) : (t && i.setDate(i.getDate() + t), i);
2712
2712
  }
2713
- let Ml = {};
2713
+ let Pl = {};
2714
2714
  function Re() {
2715
- return Ml;
2715
+ return Pl;
2716
2716
  }
2717
2717
  function de(e, t) {
2718
2718
  const s = Re(), i = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? s.weekStartsOn ?? s.locale?.options?.weekStartsOn ?? 0, r = P(e, t?.in), n = r.getDay(), o = (n < i ? 7 : 0) + n - i;
@@ -2743,7 +2743,7 @@ function nt(e) {
2743
2743
  );
2744
2744
  return s.setUTCFullYear(t.getFullYear()), +e - +s;
2745
2745
  }
2746
- function Pl(e, ...t) {
2746
+ function kl(e, ...t) {
2747
2747
  const s = k.bind(
2748
2748
  null,
2749
2749
  t.find((i) => typeof i == "object")
@@ -2754,29 +2754,29 @@ function ot(e, t) {
2754
2754
  const s = P(e, t?.in);
2755
2755
  return s.setHours(0, 0, 0, 0), s;
2756
2756
  }
2757
- function kl(e, t, s) {
2758
- const [i, r] = Pl(
2757
+ function Al(e, t, s) {
2758
+ const [i, r] = kl(
2759
2759
  s?.in,
2760
2760
  e,
2761
2761
  t
2762
2762
  ), n = ot(i), o = ot(r), a = +n - nt(n), l = +o - nt(o);
2763
2763
  return Math.round((a - l) / $l);
2764
2764
  }
2765
- function Al(e, t) {
2765
+ function Hl(e, t) {
2766
2766
  const s = Wi(e, t), i = k(e, 0);
2767
2767
  return i.setFullYear(s, 0, 4), i.setHours(0, 0, 0, 0), Pe(i);
2768
2768
  }
2769
- function Hl(e) {
2769
+ function Rl(e) {
2770
2770
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
2771
2771
  }
2772
2772
  function Li(e) {
2773
- return !(!Hl(e) && typeof e != "number" || isNaN(+P(e)));
2773
+ return !(!Rl(e) && typeof e != "number" || isNaN(+P(e)));
2774
2774
  }
2775
- function Rl(e, t) {
2775
+ function zl(e, t) {
2776
2776
  const s = P(e, t?.in);
2777
2777
  return s.setFullYear(s.getFullYear(), 0, 1), s.setHours(0, 0, 0, 0), s;
2778
2778
  }
2779
- const zl = {
2779
+ const Gl = {
2780
2780
  lessThanXSeconds: {
2781
2781
  one: "less than a second",
2782
2782
  other: "less than {{count}} seconds"
@@ -2838,53 +2838,53 @@ const zl = {
2838
2838
  one: "almost 1 year",
2839
2839
  other: "almost {{count}} years"
2840
2840
  }
2841
- }, Gl = (e, t, s) => {
2841
+ }, Vl = (e, t, s) => {
2842
2842
  let i;
2843
- const r = zl[e];
2843
+ const r = Gl[e];
2844
2844
  return typeof r == "string" ? i = r : t === 1 ? i = r.one : i = r.other.replace("{{count}}", t.toString()), s?.addSuffix ? s.comparison && s.comparison > 0 ? "in " + i : i + " ago" : i;
2845
2845
  };
2846
- function Et(e) {
2846
+ function $t(e) {
2847
2847
  return (t = {}) => {
2848
2848
  const s = t.width ? String(t.width) : e.defaultWidth;
2849
2849
  return e.formats[s] || e.formats[e.defaultWidth];
2850
2850
  };
2851
2851
  }
2852
- const Vl = {
2852
+ const Bl = {
2853
2853
  full: "EEEE, MMMM do, y",
2854
2854
  long: "MMMM do, y",
2855
2855
  medium: "MMM d, y",
2856
2856
  short: "MM/dd/yyyy"
2857
- }, Bl = {
2857
+ }, Nl = {
2858
2858
  full: "h:mm:ss a zzzz",
2859
2859
  long: "h:mm:ss a z",
2860
2860
  medium: "h:mm:ss a",
2861
2861
  short: "h:mm a"
2862
- }, Nl = {
2862
+ }, ql = {
2863
2863
  full: "{{date}} 'at' {{time}}",
2864
2864
  long: "{{date}} 'at' {{time}}",
2865
2865
  medium: "{{date}}, {{time}}",
2866
2866
  short: "{{date}}, {{time}}"
2867
- }, ql = {
2868
- date: Et({
2869
- formats: Vl,
2870
- defaultWidth: "full"
2871
- }),
2872
- time: Et({
2867
+ }, Wl = {
2868
+ date: $t({
2873
2869
  formats: Bl,
2874
2870
  defaultWidth: "full"
2875
2871
  }),
2876
- dateTime: Et({
2872
+ time: $t({
2877
2873
  formats: Nl,
2878
2874
  defaultWidth: "full"
2875
+ }),
2876
+ dateTime: $t({
2877
+ formats: ql,
2878
+ defaultWidth: "full"
2879
2879
  })
2880
- }, Wl = {
2880
+ }, Ll = {
2881
2881
  lastWeek: "'last' eeee 'at' p",
2882
2882
  yesterday: "'yesterday at' p",
2883
2883
  today: "'today at' p",
2884
2884
  tomorrow: "'tomorrow at' p",
2885
2885
  nextWeek: "eeee 'at' p",
2886
2886
  other: "P"
2887
- }, Ll = (e, t, s, i) => Wl[e];
2887
+ }, jl = (e, t, s, i) => Ll[e];
2888
2888
  function Ve(e) {
2889
2889
  return (t, s) => {
2890
2890
  const i = s?.context ? String(s.context) : "standalone";
@@ -2900,15 +2900,15 @@ function Ve(e) {
2900
2900
  return r[n];
2901
2901
  };
2902
2902
  }
2903
- const jl = {
2903
+ const Yl = {
2904
2904
  narrow: ["B", "A"],
2905
2905
  abbreviated: ["BC", "AD"],
2906
2906
  wide: ["Before Christ", "Anno Domini"]
2907
- }, Yl = {
2907
+ }, Ql = {
2908
2908
  narrow: ["1", "2", "3", "4"],
2909
2909
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
2910
2910
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
2911
- }, Ql = {
2911
+ }, Ul = {
2912
2912
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
2913
2913
  abbreviated: [
2914
2914
  "Jan",
@@ -2938,7 +2938,7 @@ const jl = {
2938
2938
  "November",
2939
2939
  "December"
2940
2940
  ]
2941
- }, Ul = {
2941
+ }, Xl = {
2942
2942
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
2943
2943
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
2944
2944
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -2951,7 +2951,7 @@ const jl = {
2951
2951
  "Friday",
2952
2952
  "Saturday"
2953
2953
  ]
2954
- }, Xl = {
2954
+ }, Kl = {
2955
2955
  narrow: {
2956
2956
  am: "a",
2957
2957
  pm: "p",
@@ -2982,7 +2982,7 @@ const jl = {
2982
2982
  evening: "evening",
2983
2983
  night: "night"
2984
2984
  }
2985
- }, Kl = {
2985
+ }, Jl = {
2986
2986
  narrow: {
2987
2987
  am: "a",
2988
2988
  pm: "p",
@@ -3013,7 +3013,7 @@ const jl = {
3013
3013
  evening: "in the evening",
3014
3014
  night: "at night"
3015
3015
  }
3016
- }, Jl = (e, t) => {
3016
+ }, Zl = (e, t) => {
3017
3017
  const s = Number(e), i = s % 100;
3018
3018
  if (i > 20 || i < 10)
3019
3019
  switch (i % 10) {
@@ -3025,29 +3025,29 @@ const jl = {
3025
3025
  return s + "rd";
3026
3026
  }
3027
3027
  return s + "th";
3028
- }, Zl = {
3029
- ordinalNumber: Jl,
3028
+ }, ec = {
3029
+ ordinalNumber: Zl,
3030
3030
  era: Ve({
3031
- values: jl,
3031
+ values: Yl,
3032
3032
  defaultWidth: "wide"
3033
3033
  }),
3034
3034
  quarter: Ve({
3035
- values: Yl,
3035
+ values: Ql,
3036
3036
  defaultWidth: "wide",
3037
3037
  argumentCallback: (e) => e - 1
3038
3038
  }),
3039
3039
  month: Ve({
3040
- values: Ql,
3040
+ values: Ul,
3041
3041
  defaultWidth: "wide"
3042
3042
  }),
3043
3043
  day: Ve({
3044
- values: Ul,
3044
+ values: Xl,
3045
3045
  defaultWidth: "wide"
3046
3046
  }),
3047
3047
  dayPeriod: Ve({
3048
- values: Xl,
3048
+ values: Kl,
3049
3049
  defaultWidth: "wide",
3050
- formattingValues: Kl,
3050
+ formattingValues: Jl,
3051
3051
  defaultFormattingWidth: "wide"
3052
3052
  })
3053
3053
  };
@@ -3056,9 +3056,9 @@ function Be(e) {
3056
3056
  const i = s.width, r = i && e.matchPatterns[i] || e.matchPatterns[e.defaultMatchWidth], n = t.match(r);
3057
3057
  if (!n)
3058
3058
  return null;
3059
- const o = n[0], a = i && e.parsePatterns[i] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? tc(a, (u) => u.test(o)) : (
3059
+ const o = n[0], a = i && e.parsePatterns[i] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? sc(a, (u) => u.test(o)) : (
3060
3060
  // [TODO] -- I challenge you to fix the type
3061
- ec(a, (u) => u.test(o))
3061
+ tc(a, (u) => u.test(o))
3062
3062
  );
3063
3063
  let d;
3064
3064
  d = e.valueCallback ? e.valueCallback(l) : l, d = s.valueCallback ? (
@@ -3069,17 +3069,17 @@ function Be(e) {
3069
3069
  return { value: d, rest: c };
3070
3070
  };
3071
3071
  }
3072
- function ec(e, t) {
3072
+ function tc(e, t) {
3073
3073
  for (const s in e)
3074
3074
  if (Object.prototype.hasOwnProperty.call(e, s) && t(e[s]))
3075
3075
  return s;
3076
3076
  }
3077
- function tc(e, t) {
3077
+ function sc(e, t) {
3078
3078
  for (let s = 0; s < e.length; s++)
3079
3079
  if (t(e[s]))
3080
3080
  return s;
3081
3081
  }
3082
- function sc(e) {
3082
+ function ic(e) {
3083
3083
  return (t, s = {}) => {
3084
3084
  const i = t.match(e.matchPattern);
3085
3085
  if (!i) return null;
@@ -3091,23 +3091,23 @@ function sc(e) {
3091
3091
  return { value: o, rest: a };
3092
3092
  };
3093
3093
  }
3094
- const ic = /^(\d+)(th|st|nd|rd)?/i, rc = /\d+/i, nc = {
3094
+ const rc = /^(\d+)(th|st|nd|rd)?/i, nc = /\d+/i, oc = {
3095
3095
  narrow: /^(b|a)/i,
3096
3096
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
3097
3097
  wide: /^(before christ|before common era|anno domini|common era)/i
3098
- }, oc = {
3099
- any: [/^b/i, /^(a|c)/i]
3100
3098
  }, ac = {
3099
+ any: [/^b/i, /^(a|c)/i]
3100
+ }, lc = {
3101
3101
  narrow: /^[1234]/i,
3102
3102
  abbreviated: /^q[1234]/i,
3103
3103
  wide: /^[1234](th|st|nd|rd)? quarter/i
3104
- }, lc = {
3105
- any: [/1/i, /2/i, /3/i, /4/i]
3106
3104
  }, cc = {
3105
+ any: [/1/i, /2/i, /3/i, /4/i]
3106
+ }, dc = {
3107
3107
  narrow: /^[jfmasond]/i,
3108
3108
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
3109
3109
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
3110
- }, dc = {
3110
+ }, uc = {
3111
3111
  narrow: [
3112
3112
  /^j/i,
3113
3113
  /^f/i,
@@ -3136,18 +3136,18 @@ const ic = /^(\d+)(th|st|nd|rd)?/i, rc = /\d+/i, nc = {
3136
3136
  /^n/i,
3137
3137
  /^d/i
3138
3138
  ]
3139
- }, uc = {
3139
+ }, hc = {
3140
3140
  narrow: /^[smtwf]/i,
3141
3141
  short: /^(su|mo|tu|we|th|fr|sa)/i,
3142
3142
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
3143
3143
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
3144
- }, hc = {
3144
+ }, fc = {
3145
3145
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
3146
3146
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
3147
- }, fc = {
3147
+ }, pc = {
3148
3148
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
3149
3149
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
3150
- }, pc = {
3150
+ }, mc = {
3151
3151
  any: {
3152
3152
  am: /^a/i,
3153
3153
  pm: /^p/i,
@@ -3158,61 +3158,61 @@ const ic = /^(\d+)(th|st|nd|rd)?/i, rc = /\d+/i, nc = {
3158
3158
  evening: /evening/i,
3159
3159
  night: /night/i
3160
3160
  }
3161
- }, mc = {
3162
- ordinalNumber: sc({
3163
- matchPattern: ic,
3164
- parsePattern: rc,
3161
+ }, gc = {
3162
+ ordinalNumber: ic({
3163
+ matchPattern: rc,
3164
+ parsePattern: nc,
3165
3165
  valueCallback: (e) => parseInt(e, 10)
3166
3166
  }),
3167
3167
  era: Be({
3168
- matchPatterns: nc,
3168
+ matchPatterns: oc,
3169
3169
  defaultMatchWidth: "wide",
3170
- parsePatterns: oc,
3170
+ parsePatterns: ac,
3171
3171
  defaultParseWidth: "any"
3172
3172
  }),
3173
3173
  quarter: Be({
3174
- matchPatterns: ac,
3174
+ matchPatterns: lc,
3175
3175
  defaultMatchWidth: "wide",
3176
- parsePatterns: lc,
3176
+ parsePatterns: cc,
3177
3177
  defaultParseWidth: "any",
3178
3178
  valueCallback: (e) => e + 1
3179
3179
  }),
3180
3180
  month: Be({
3181
- matchPatterns: cc,
3181
+ matchPatterns: dc,
3182
3182
  defaultMatchWidth: "wide",
3183
- parsePatterns: dc,
3183
+ parsePatterns: uc,
3184
3184
  defaultParseWidth: "any"
3185
3185
  }),
3186
3186
  day: Be({
3187
- matchPatterns: uc,
3187
+ matchPatterns: hc,
3188
3188
  defaultMatchWidth: "wide",
3189
- parsePatterns: hc,
3189
+ parsePatterns: fc,
3190
3190
  defaultParseWidth: "any"
3191
3191
  }),
3192
3192
  dayPeriod: Be({
3193
- matchPatterns: fc,
3193
+ matchPatterns: pc,
3194
3194
  defaultMatchWidth: "any",
3195
- parsePatterns: pc,
3195
+ parsePatterns: mc,
3196
3196
  defaultParseWidth: "any"
3197
3197
  })
3198
3198
  }, ji = {
3199
3199
  code: "en-US",
3200
- formatDistance: Gl,
3201
- formatLong: ql,
3202
- formatRelative: Ll,
3203
- localize: Zl,
3204
- match: mc,
3200
+ formatDistance: Vl,
3201
+ formatLong: Wl,
3202
+ formatRelative: jl,
3203
+ localize: ec,
3204
+ match: gc,
3205
3205
  options: {
3206
3206
  weekStartsOn: 0,
3207
3207
  firstWeekContainsDate: 1
3208
3208
  }
3209
3209
  };
3210
- function gc(e, t) {
3210
+ function yc(e, t) {
3211
3211
  const s = P(e, t?.in);
3212
- return kl(s, Rl(s)) + 1;
3212
+ return Al(s, zl(s)) + 1;
3213
3213
  }
3214
3214
  function Yi(e, t) {
3215
- const s = P(e, t?.in), i = +Pe(s) - +Al(s);
3215
+ const s = P(e, t?.in), i = +Pe(s) - +Hl(s);
3216
3216
  return Math.round(i / Ni) + 1;
3217
3217
  }
3218
3218
  function hs(e, t) {
@@ -3223,12 +3223,12 @@ function hs(e, t) {
3223
3223
  const d = de(l, t);
3224
3224
  return +s >= +a ? i + 1 : +s >= +d ? i : i - 1;
3225
3225
  }
3226
- function yc(e, t) {
3226
+ function vc(e, t) {
3227
3227
  const s = Re(), i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, r = hs(e, t), n = k(t?.in || e, 0);
3228
3228
  return n.setFullYear(r, 0, i), n.setHours(0, 0, 0, 0), de(n, t);
3229
3229
  }
3230
3230
  function Qi(e, t) {
3231
- const s = P(e, t?.in), i = +de(s, t) - +yc(s, t);
3231
+ const s = P(e, t?.in), i = +de(s, t) - +vc(s, t);
3232
3232
  return Math.round(i / Ni) + 1;
3233
3233
  }
3234
3234
  function _(e, t) {
@@ -3493,7 +3493,7 @@ const le = {
3493
3493
  },
3494
3494
  // Day of year
3495
3495
  D: function(e, t, s) {
3496
- const i = gc(e);
3496
+ const i = yc(e);
3497
3497
  return t === "Do" ? s.ordinalNumber(i, { unit: "dayOfYear" }) : _(i, t.length);
3498
3498
  },
3499
3499
  // Day of week
@@ -3886,7 +3886,7 @@ const zs = (e, t) => {
3886
3886
  default:
3887
3887
  return t.time({ width: "full" });
3888
3888
  }
3889
- }, vc = (e, t) => {
3889
+ }, bc = (e, t) => {
3890
3890
  const s = e.match(/(P+)(p+)?/) || [], i = s[1], r = s[2];
3891
3891
  if (!r)
3892
3892
  return zs(e, t);
@@ -3909,35 +3909,35 @@ const zs = (e, t) => {
3909
3909
  return n.replace("{{date}}", zs(i, t)).replace("{{time}}", Ui(r, t));
3910
3910
  }, Wt = {
3911
3911
  p: Ui,
3912
- P: vc
3913
- }, bc = /^D+$/, wc = /^Y+$/, xc = ["D", "DD", "YY", "YYYY"];
3912
+ P: bc
3913
+ }, wc = /^D+$/, xc = /^Y+$/, _c = ["D", "DD", "YY", "YYYY"];
3914
3914
  function Xi(e) {
3915
- return bc.test(e);
3915
+ return wc.test(e);
3916
3916
  }
3917
3917
  function Ki(e) {
3918
- return wc.test(e);
3918
+ return xc.test(e);
3919
3919
  }
3920
3920
  function Lt(e, t, s) {
3921
- const i = _c(e, t, s);
3922
- if (console.warn(i), xc.includes(e)) throw new RangeError(i);
3921
+ const i = Sc(e, t, s);
3922
+ if (console.warn(i), _c.includes(e)) throw new RangeError(i);
3923
3923
  }
3924
- function _c(e, t, s) {
3924
+ function Sc(e, t, s) {
3925
3925
  const i = e[0] === "Y" ? "years" : "days of the month";
3926
3926
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
3927
3927
  }
3928
- const Sc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Cc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dc = /^'([^]*?)'?$/, Tc = /''/g, Ic = /[a-zA-Z]/;
3928
+ const Cc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Dc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tc = /^'([^]*?)'?$/, Ic = /''/g, Ec = /[a-zA-Z]/;
3929
3929
  function Ji(e, t, s) {
3930
3930
  const i = Re(), r = i.locale ?? ji, n = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, a = P(e, s?.in);
3931
3931
  if (!Li(a))
3932
3932
  throw new RangeError("Invalid time value");
3933
- let l = t.match(Cc).map((c) => {
3933
+ let l = t.match(Dc).map((c) => {
3934
3934
  const u = c[0];
3935
3935
  if (u === "p" || u === "P") {
3936
3936
  const m = Wt[u];
3937
3937
  return m(c, r.formatLong);
3938
3938
  }
3939
3939
  return c;
3940
- }).join("").match(Sc).map((c) => {
3940
+ }).join("").match(Cc).map((c) => {
3941
3941
  if (c === "''")
3942
3942
  return { isToken: !1, value: "'" };
3943
3943
  const u = c[0];
@@ -3945,7 +3945,7 @@ function Ji(e, t, s) {
3945
3945
  return { isToken: !1, value: $c(c) };
3946
3946
  if (As[u])
3947
3947
  return { isToken: !0, value: c };
3948
- if (u.match(Ic))
3948
+ if (u.match(Ec))
3949
3949
  throw new RangeError(
3950
3950
  "Format string contains an unescaped latin alphabet character `" + u + "`"
3951
3951
  );
@@ -3966,18 +3966,18 @@ function Ji(e, t, s) {
3966
3966
  }).join("");
3967
3967
  }
3968
3968
  function $c(e) {
3969
- const t = e.match(Dc);
3970
- return t ? t[1].replace(Tc, "'") : e;
3969
+ const t = e.match(Tc);
3970
+ return t ? t[1].replace(Ic, "'") : e;
3971
3971
  }
3972
- function Ec() {
3972
+ function Fc() {
3973
3973
  return Object.assign({}, Re());
3974
3974
  }
3975
- function Fc(e, t) {
3975
+ function Oc(e, t) {
3976
3976
  const s = P(e, t?.in).getDay();
3977
3977
  return s === 0 ? 7 : s;
3978
3978
  }
3979
- function Oc(e, t) {
3980
- const s = Mc(t) ? new t(0) : k(t, 0);
3979
+ function Mc(e, t) {
3980
+ const s = Pc(t) ? new t(0) : k(t, 0);
3981
3981
  return s.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), s.setHours(
3982
3982
  e.getHours(),
3983
3983
  e.getMinutes(),
@@ -3985,17 +3985,17 @@ function Oc(e, t) {
3985
3985
  e.getMilliseconds()
3986
3986
  ), s;
3987
3987
  }
3988
- function Mc(e) {
3988
+ function Pc(e) {
3989
3989
  return typeof e == "function" && e.prototype?.constructor === e;
3990
3990
  }
3991
- const Pc = 10;
3991
+ const kc = 10;
3992
3992
  class Zi {
3993
3993
  subPriority = 0;
3994
3994
  validate(t, s) {
3995
3995
  return !0;
3996
3996
  }
3997
3997
  }
3998
- class kc extends Zi {
3998
+ class Ac extends Zi {
3999
3999
  constructor(t, s, i, r, n) {
4000
4000
  super(), this.value = t, this.validateValue = s, this.setValue = i, this.priority = r, n && (this.subPriority = n);
4001
4001
  }
@@ -4006,21 +4006,21 @@ class kc extends Zi {
4006
4006
  return this.setValue(t, s, this.value, i);
4007
4007
  }
4008
4008
  }
4009
- class Ac extends Zi {
4010
- priority = Pc;
4009
+ class Hc extends Zi {
4010
+ priority = kc;
4011
4011
  subPriority = -1;
4012
4012
  constructor(t, s) {
4013
4013
  super(), this.context = t || ((i) => k(s, i));
4014
4014
  }
4015
4015
  set(t, s) {
4016
- return s.timestampIsSet ? t : k(t, Oc(t, this.context));
4016
+ return s.timestampIsSet ? t : k(t, Mc(t, this.context));
4017
4017
  }
4018
4018
  }
4019
4019
  class x {
4020
4020
  run(t, s, i, r) {
4021
4021
  const n = this.parse(t, s, i, r);
4022
4022
  return n ? {
4023
- setter: new kc(
4023
+ setter: new Ac(
4024
4024
  n.value,
4025
4025
  this.validate,
4026
4026
  this.set,
@@ -4034,7 +4034,7 @@ class x {
4034
4034
  return !0;
4035
4035
  }
4036
4036
  }
4037
- class Hc extends x {
4037
+ class Rc extends x {
4038
4038
  priority = 140;
4039
4039
  parse(t, s, i) {
4040
4040
  switch (s) {
@@ -4057,7 +4057,7 @@ class Hc extends x {
4057
4057
  }
4058
4058
  incompatibleTokens = ["R", "u", "t", "T"];
4059
4059
  }
4060
- const E = {
4060
+ const $ = {
4061
4061
  month: /^(1[0-2]|0?\d)/,
4062
4062
  // 0 to 12
4063
4063
  date: /^(3[0-1]|[0-2]?\d)/,
@@ -4126,23 +4126,23 @@ function Z(e, t) {
4126
4126
  };
4127
4127
  const i = s[1] === "+" ? 1 : -1, r = s[2] ? parseInt(s[2], 10) : 0, n = s[3] ? parseInt(s[3], 10) : 0, o = s[5] ? parseInt(s[5], 10) : 0;
4128
4128
  return {
4129
- value: i * (r * Fl + n * El + o * Ol),
4129
+ value: i * (r * Ol + n * Fl + o * Ml),
4130
4130
  rest: t.slice(s[0].length)
4131
4131
  };
4132
4132
  }
4133
4133
  function er(e) {
4134
- return T(E.anyDigitsSigned, e);
4134
+ return T($.anyDigitsSigned, e);
4135
4135
  }
4136
- function $(e, t) {
4136
+ function E(e, t) {
4137
4137
  switch (e) {
4138
4138
  case 1:
4139
- return T(E.singleDigit, t);
4139
+ return T($.singleDigit, t);
4140
4140
  case 2:
4141
- return T(E.twoDigits, t);
4141
+ return T($.twoDigits, t);
4142
4142
  case 3:
4143
- return T(E.threeDigits, t);
4143
+ return T($.threeDigits, t);
4144
4144
  case 4:
4145
- return T(E.fourDigits, t);
4145
+ return T($.fourDigits, t);
4146
4146
  default:
4147
4147
  return T(new RegExp("^\\d{1," + e + "}"), t);
4148
4148
  }
@@ -4150,13 +4150,13 @@ function $(e, t) {
4150
4150
  function at(e, t) {
4151
4151
  switch (e) {
4152
4152
  case 1:
4153
- return T(E.singleDigitSigned, t);
4153
+ return T($.singleDigitSigned, t);
4154
4154
  case 2:
4155
- return T(E.twoDigitsSigned, t);
4155
+ return T($.twoDigitsSigned, t);
4156
4156
  case 3:
4157
- return T(E.threeDigitsSigned, t);
4157
+ return T($.threeDigitsSigned, t);
4158
4158
  case 4:
4159
- return T(E.fourDigitsSigned, t);
4159
+ return T($.fourDigitsSigned, t);
4160
4160
  default:
4161
4161
  return T(new RegExp("^-?\\d{1," + e + "}"), t);
4162
4162
  }
@@ -4192,7 +4192,7 @@ function tr(e, t) {
4192
4192
  function sr(e) {
4193
4193
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
4194
4194
  }
4195
- class Rc extends x {
4195
+ class zc extends x {
4196
4196
  priority = 130;
4197
4197
  incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
4198
4198
  parse(t, s, i) {
@@ -4202,7 +4202,7 @@ class Rc extends x {
4202
4202
  });
4203
4203
  switch (s) {
4204
4204
  case "y":
4205
- return F($(4, t), r);
4205
+ return F(E(4, t), r);
4206
4206
  case "yo":
4207
4207
  return F(
4208
4208
  i.ordinalNumber(t, {
@@ -4211,7 +4211,7 @@ class Rc extends x {
4211
4211
  r
4212
4212
  );
4213
4213
  default:
4214
- return F($(s.length, t), r);
4214
+ return F(E(s.length, t), r);
4215
4215
  }
4216
4216
  }
4217
4217
  validate(t, s) {
@@ -4230,7 +4230,7 @@ class Rc extends x {
4230
4230
  return t.setFullYear(n, 0, 1), t.setHours(0, 0, 0, 0), t;
4231
4231
  }
4232
4232
  }
4233
- class zc extends x {
4233
+ class Gc extends x {
4234
4234
  priority = 130;
4235
4235
  parse(t, s, i) {
4236
4236
  const r = (n) => ({
@@ -4239,7 +4239,7 @@ class zc extends x {
4239
4239
  });
4240
4240
  switch (s) {
4241
4241
  case "Y":
4242
- return F($(4, t), r);
4242
+ return F(E(4, t), r);
4243
4243
  case "Yo":
4244
4244
  return F(
4245
4245
  i.ordinalNumber(t, {
@@ -4248,7 +4248,7 @@ class zc extends x {
4248
4248
  r
4249
4249
  );
4250
4250
  default:
4251
- return F($(s.length, t), r);
4251
+ return F(E(s.length, t), r);
4252
4252
  }
4253
4253
  }
4254
4254
  validate(t, s) {
@@ -4286,7 +4286,7 @@ class zc extends x {
4286
4286
  "T"
4287
4287
  ];
4288
4288
  }
4289
- class Gc extends x {
4289
+ class Vc extends x {
4290
4290
  priority = 130;
4291
4291
  parse(t, s) {
4292
4292
  return at(s === "R" ? 4 : s.length, t);
@@ -4313,7 +4313,7 @@ class Gc extends x {
4313
4313
  "T"
4314
4314
  ];
4315
4315
  }
4316
- class Vc extends x {
4316
+ class Bc extends x {
4317
4317
  priority = 130;
4318
4318
  parse(t, s) {
4319
4319
  return at(s === "u" ? 4 : s.length, t);
@@ -4323,14 +4323,14 @@ class Vc extends x {
4323
4323
  }
4324
4324
  incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
4325
4325
  }
4326
- class Bc extends x {
4326
+ class Nc extends x {
4327
4327
  priority = 120;
4328
4328
  parse(t, s, i) {
4329
4329
  switch (s) {
4330
4330
  // 1, 2, 3, 4
4331
4331
  case "Q":
4332
4332
  case "QQ":
4333
- return $(s.length, t);
4333
+ return E(s.length, t);
4334
4334
  // 1st, 2nd, 3rd, 4th
4335
4335
  case "Qo":
4336
4336
  return i.ordinalNumber(t, { unit: "quarter" });
@@ -4387,14 +4387,14 @@ class Bc extends x {
4387
4387
  "T"
4388
4388
  ];
4389
4389
  }
4390
- class Nc extends x {
4390
+ class qc extends x {
4391
4391
  priority = 120;
4392
4392
  parse(t, s, i) {
4393
4393
  switch (s) {
4394
4394
  // 1, 2, 3, 4
4395
4395
  case "q":
4396
4396
  case "qq":
4397
- return $(s.length, t);
4397
+ return E(s.length, t);
4398
4398
  // 1st, 2nd, 3rd, 4th
4399
4399
  case "qo":
4400
4400
  return i.ordinalNumber(t, { unit: "quarter" });
@@ -4451,7 +4451,7 @@ class Nc extends x {
4451
4451
  "T"
4452
4452
  ];
4453
4453
  }
4454
- class qc extends x {
4454
+ class Wc extends x {
4455
4455
  incompatibleTokens = [
4456
4456
  "Y",
4457
4457
  "R",
@@ -4474,12 +4474,12 @@ class qc extends x {
4474
4474
  // 1, 2, ..., 12
4475
4475
  case "M":
4476
4476
  return F(
4477
- T(E.month, t),
4477
+ T($.month, t),
4478
4478
  r
4479
4479
  );
4480
4480
  // 01, 02, ..., 12
4481
4481
  case "MM":
4482
- return F($(2, t), r);
4482
+ return F(E(2, t), r);
4483
4483
  // 1st, 2nd, ..., 12th
4484
4484
  case "Mo":
4485
4485
  return F(
@@ -4516,7 +4516,7 @@ class qc extends x {
4516
4516
  return t.setMonth(i, 1), t.setHours(0, 0, 0, 0), t;
4517
4517
  }
4518
4518
  }
4519
- class Wc extends x {
4519
+ class Lc extends x {
4520
4520
  priority = 110;
4521
4521
  parse(t, s, i) {
4522
4522
  const r = (n) => n - 1;
@@ -4524,12 +4524,12 @@ class Wc extends x {
4524
4524
  // 1, 2, ..., 12
4525
4525
  case "L":
4526
4526
  return F(
4527
- T(E.month, t),
4527
+ T($.month, t),
4528
4528
  r
4529
4529
  );
4530
4530
  // 01, 02, ..., 12
4531
4531
  case "LL":
4532
- return F($(2, t), r);
4532
+ return F(E(2, t), r);
4533
4533
  // 1st, 2nd, ..., 12th
4534
4534
  case "Lo":
4535
4535
  return F(
@@ -4581,27 +4581,27 @@ class Wc extends x {
4581
4581
  "T"
4582
4582
  ];
4583
4583
  }
4584
- function Lc(e, t, s) {
4584
+ function jc(e, t, s) {
4585
4585
  const i = P(e, s?.in), r = Qi(i, s) - t;
4586
4586
  return i.setDate(i.getDate() - r * 7), P(i, s?.in);
4587
4587
  }
4588
- class jc extends x {
4588
+ class Yc extends x {
4589
4589
  priority = 100;
4590
4590
  parse(t, s, i) {
4591
4591
  switch (s) {
4592
4592
  case "w":
4593
- return T(E.week, t);
4593
+ return T($.week, t);
4594
4594
  case "wo":
4595
4595
  return i.ordinalNumber(t, { unit: "week" });
4596
4596
  default:
4597
- return $(s.length, t);
4597
+ return E(s.length, t);
4598
4598
  }
4599
4599
  }
4600
4600
  validate(t, s) {
4601
4601
  return s >= 1 && s <= 53;
4602
4602
  }
4603
4603
  set(t, s, i, r) {
4604
- return de(Lc(t, i, r), r);
4604
+ return de(jc(t, i, r), r);
4605
4605
  }
4606
4606
  incompatibleTokens = [
4607
4607
  "y",
@@ -4619,27 +4619,27 @@ class jc extends x {
4619
4619
  "T"
4620
4620
  ];
4621
4621
  }
4622
- function Yc(e, t, s) {
4622
+ function Qc(e, t, s) {
4623
4623
  const i = P(e, s?.in), r = Yi(i, s) - t;
4624
4624
  return i.setDate(i.getDate() - r * 7), i;
4625
4625
  }
4626
- class Qc extends x {
4626
+ class Uc extends x {
4627
4627
  priority = 100;
4628
4628
  parse(t, s, i) {
4629
4629
  switch (s) {
4630
4630
  case "I":
4631
- return T(E.week, t);
4631
+ return T($.week, t);
4632
4632
  case "Io":
4633
4633
  return i.ordinalNumber(t, { unit: "week" });
4634
4634
  default:
4635
- return $(s.length, t);
4635
+ return E(s.length, t);
4636
4636
  }
4637
4637
  }
4638
4638
  validate(t, s) {
4639
4639
  return s >= 1 && s <= 53;
4640
4640
  }
4641
4641
  set(t, s, i) {
4642
- return Pe(Yc(t, i));
4642
+ return Pe(Qc(t, i));
4643
4643
  }
4644
4644
  incompatibleTokens = [
4645
4645
  "y",
@@ -4658,7 +4658,7 @@ class Qc extends x {
4658
4658
  "T"
4659
4659
  ];
4660
4660
  }
4661
- const Uc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xc = [
4661
+ const Xc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Kc = [
4662
4662
  31,
4663
4663
  29,
4664
4664
  31,
@@ -4672,22 +4672,22 @@ const Uc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xc = [
4672
4672
  30,
4673
4673
  31
4674
4674
  ];
4675
- class Kc extends x {
4675
+ class Jc extends x {
4676
4676
  priority = 90;
4677
4677
  subPriority = 1;
4678
4678
  parse(t, s, i) {
4679
4679
  switch (s) {
4680
4680
  case "d":
4681
- return T(E.date, t);
4681
+ return T($.date, t);
4682
4682
  case "do":
4683
4683
  return i.ordinalNumber(t, { unit: "date" });
4684
4684
  default:
4685
- return $(s.length, t);
4685
+ return E(s.length, t);
4686
4686
  }
4687
4687
  }
4688
4688
  validate(t, s) {
4689
4689
  const i = t.getFullYear(), r = sr(i), n = t.getMonth();
4690
- return r ? s >= 1 && s <= Xc[n] : s >= 1 && s <= Uc[n];
4690
+ return r ? s >= 1 && s <= Kc[n] : s >= 1 && s <= Xc[n];
4691
4691
  }
4692
4692
  set(t, s, i) {
4693
4693
  return t.setDate(i), t.setHours(0, 0, 0, 0), t;
@@ -4707,18 +4707,18 @@ class Kc extends x {
4707
4707
  "T"
4708
4708
  ];
4709
4709
  }
4710
- class Jc extends x {
4710
+ class Zc extends x {
4711
4711
  priority = 90;
4712
4712
  subpriority = 1;
4713
4713
  parse(t, s, i) {
4714
4714
  switch (s) {
4715
4715
  case "D":
4716
4716
  case "DD":
4717
- return T(E.dayOfYear, t);
4717
+ return T($.dayOfYear, t);
4718
4718
  case "Do":
4719
4719
  return i.ordinalNumber(t, { unit: "date" });
4720
4720
  default:
4721
- return $(s.length, t);
4721
+ return E(s.length, t);
4722
4722
  }
4723
4723
  }
4724
4724
  validate(t, s) {
@@ -4750,7 +4750,7 @@ function ps(e, t, s) {
4750
4750
  const i = Re(), r = s?.weekStartsOn ?? s?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, n = P(e, s?.in), o = n.getDay(), l = (t % 7 + 7) % 7, d = 7 - r, c = t < 0 || t > 6 ? t - (o + d) % 7 : (l + d) % 7 - (o + d) % 7;
4751
4751
  return qi(n, c, s);
4752
4752
  }
4753
- class Zc extends x {
4753
+ class ed extends x {
4754
4754
  priority = 90;
4755
4755
  parse(t, s, i) {
4756
4756
  switch (s) {
@@ -4788,7 +4788,7 @@ class Zc extends x {
4788
4788
  }
4789
4789
  incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
4790
4790
  }
4791
- class ed extends x {
4791
+ class td extends x {
4792
4792
  priority = 90;
4793
4793
  parse(t, s, i, r) {
4794
4794
  const n = (o) => {
@@ -4799,7 +4799,7 @@ class ed extends x {
4799
4799
  // 3
4800
4800
  case "e":
4801
4801
  case "ee":
4802
- return F($(s.length, t), n);
4802
+ return F(E(s.length, t), n);
4803
4803
  // 3rd
4804
4804
  case "eo":
4805
4805
  return F(
@@ -4856,7 +4856,7 @@ class ed extends x {
4856
4856
  "T"
4857
4857
  ];
4858
4858
  }
4859
- class td extends x {
4859
+ class sd extends x {
4860
4860
  priority = 90;
4861
4861
  parse(t, s, i, r) {
4862
4862
  const n = (o) => {
@@ -4867,7 +4867,7 @@ class td extends x {
4867
4867
  // 3
4868
4868
  case "c":
4869
4869
  case "cc":
4870
- return F($(s.length, t), n);
4870
+ return F(E(s.length, t), n);
4871
4871
  // 3rd
4872
4872
  case "co":
4873
4873
  return F(
@@ -4924,11 +4924,11 @@ class td extends x {
4924
4924
  "T"
4925
4925
  ];
4926
4926
  }
4927
- function sd(e, t, s) {
4928
- const i = P(e, s?.in), r = Fc(i, s), n = t - r;
4927
+ function id(e, t, s) {
4928
+ const i = P(e, s?.in), r = Oc(i, s), n = t - r;
4929
4929
  return qi(i, n, s);
4930
4930
  }
4931
- class id extends x {
4931
+ class rd extends x {
4932
4932
  priority = 90;
4933
4933
  parse(t, s, i) {
4934
4934
  const r = (n) => n === 0 ? 7 : n;
@@ -4936,7 +4936,7 @@ class id extends x {
4936
4936
  // 2
4937
4937
  case "i":
4938
4938
  case "ii":
4939
- return $(s.length, t);
4939
+ return E(s.length, t);
4940
4940
  // 2nd
4941
4941
  case "io":
4942
4942
  return i.ordinalNumber(t, { unit: "day" });
@@ -5001,7 +5001,7 @@ class id extends x {
5001
5001
  return s >= 1 && s <= 7;
5002
5002
  }
5003
5003
  set(t, s, i) {
5004
- return t = sd(t, i), t.setHours(0, 0, 0, 0), t;
5004
+ return t = id(t, i), t.setHours(0, 0, 0, 0), t;
5005
5005
  }
5006
5006
  incompatibleTokens = [
5007
5007
  "y",
@@ -5021,7 +5021,7 @@ class id extends x {
5021
5021
  "T"
5022
5022
  ];
5023
5023
  }
5024
- class rd extends x {
5024
+ class nd extends x {
5025
5025
  priority = 80;
5026
5026
  parse(t, s, i) {
5027
5027
  switch (s) {
@@ -5059,7 +5059,7 @@ class rd extends x {
5059
5059
  }
5060
5060
  incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
5061
5061
  }
5062
- class nd extends x {
5062
+ class od extends x {
5063
5063
  priority = 80;
5064
5064
  parse(t, s, i) {
5065
5065
  switch (s) {
@@ -5097,7 +5097,7 @@ class nd extends x {
5097
5097
  }
5098
5098
  incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
5099
5099
  }
5100
- class od extends x {
5100
+ class ad extends x {
5101
5101
  priority = 80;
5102
5102
  parse(t, s, i) {
5103
5103
  switch (s) {
@@ -5135,16 +5135,16 @@ class od extends x {
5135
5135
  }
5136
5136
  incompatibleTokens = ["a", "b", "t", "T"];
5137
5137
  }
5138
- class ad extends x {
5138
+ class ld extends x {
5139
5139
  priority = 70;
5140
5140
  parse(t, s, i) {
5141
5141
  switch (s) {
5142
5142
  case "h":
5143
- return T(E.hour12h, t);
5143
+ return T($.hour12h, t);
5144
5144
  case "ho":
5145
5145
  return i.ordinalNumber(t, { unit: "hour" });
5146
5146
  default:
5147
- return $(s.length, t);
5147
+ return E(s.length, t);
5148
5148
  }
5149
5149
  }
5150
5150
  validate(t, s) {
@@ -5156,16 +5156,16 @@ class ad extends x {
5156
5156
  }
5157
5157
  incompatibleTokens = ["H", "K", "k", "t", "T"];
5158
5158
  }
5159
- class ld extends x {
5159
+ class cd extends x {
5160
5160
  priority = 70;
5161
5161
  parse(t, s, i) {
5162
5162
  switch (s) {
5163
5163
  case "H":
5164
- return T(E.hour23h, t);
5164
+ return T($.hour23h, t);
5165
5165
  case "Ho":
5166
5166
  return i.ordinalNumber(t, { unit: "hour" });
5167
5167
  default:
5168
- return $(s.length, t);
5168
+ return E(s.length, t);
5169
5169
  }
5170
5170
  }
5171
5171
  validate(t, s) {
@@ -5176,16 +5176,16 @@ class ld extends x {
5176
5176
  }
5177
5177
  incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
5178
5178
  }
5179
- class cd extends x {
5179
+ class dd extends x {
5180
5180
  priority = 70;
5181
5181
  parse(t, s, i) {
5182
5182
  switch (s) {
5183
5183
  case "K":
5184
- return T(E.hour11h, t);
5184
+ return T($.hour11h, t);
5185
5185
  case "Ko":
5186
5186
  return i.ordinalNumber(t, { unit: "hour" });
5187
5187
  default:
5188
- return $(s.length, t);
5188
+ return E(s.length, t);
5189
5189
  }
5190
5190
  }
5191
5191
  validate(t, s) {
@@ -5196,16 +5196,16 @@ class cd extends x {
5196
5196
  }
5197
5197
  incompatibleTokens = ["h", "H", "k", "t", "T"];
5198
5198
  }
5199
- class dd extends x {
5199
+ class ud extends x {
5200
5200
  priority = 70;
5201
5201
  parse(t, s, i) {
5202
5202
  switch (s) {
5203
5203
  case "k":
5204
- return T(E.hour24h, t);
5204
+ return T($.hour24h, t);
5205
5205
  case "ko":
5206
5206
  return i.ordinalNumber(t, { unit: "hour" });
5207
5207
  default:
5208
- return $(s.length, t);
5208
+ return E(s.length, t);
5209
5209
  }
5210
5210
  }
5211
5211
  validate(t, s) {
@@ -5217,16 +5217,16 @@ class dd extends x {
5217
5217
  }
5218
5218
  incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
5219
5219
  }
5220
- class ud extends x {
5220
+ class hd extends x {
5221
5221
  priority = 60;
5222
5222
  parse(t, s, i) {
5223
5223
  switch (s) {
5224
5224
  case "m":
5225
- return T(E.minute, t);
5225
+ return T($.minute, t);
5226
5226
  case "mo":
5227
5227
  return i.ordinalNumber(t, { unit: "minute" });
5228
5228
  default:
5229
- return $(s.length, t);
5229
+ return E(s.length, t);
5230
5230
  }
5231
5231
  }
5232
5232
  validate(t, s) {
@@ -5237,16 +5237,16 @@ class ud extends x {
5237
5237
  }
5238
5238
  incompatibleTokens = ["t", "T"];
5239
5239
  }
5240
- class hd extends x {
5240
+ class fd extends x {
5241
5241
  priority = 50;
5242
5242
  parse(t, s, i) {
5243
5243
  switch (s) {
5244
5244
  case "s":
5245
- return T(E.second, t);
5245
+ return T($.second, t);
5246
5246
  case "so":
5247
5247
  return i.ordinalNumber(t, { unit: "second" });
5248
5248
  default:
5249
- return $(s.length, t);
5249
+ return E(s.length, t);
5250
5250
  }
5251
5251
  }
5252
5252
  validate(t, s) {
@@ -5257,18 +5257,18 @@ class hd extends x {
5257
5257
  }
5258
5258
  incompatibleTokens = ["t", "T"];
5259
5259
  }
5260
- class fd extends x {
5260
+ class pd extends x {
5261
5261
  priority = 30;
5262
5262
  parse(t, s) {
5263
5263
  const i = (r) => Math.trunc(r * Math.pow(10, -s.length + 3));
5264
- return F($(s.length, t), i);
5264
+ return F(E(s.length, t), i);
5265
5265
  }
5266
5266
  set(t, s, i) {
5267
5267
  return t.setMilliseconds(i), t;
5268
5268
  }
5269
5269
  incompatibleTokens = ["t", "T"];
5270
5270
  }
5271
- class pd extends x {
5271
+ class md extends x {
5272
5272
  priority = 10;
5273
5273
  parse(t, s) {
5274
5274
  switch (s) {
@@ -5302,7 +5302,7 @@ class pd extends x {
5302
5302
  }
5303
5303
  incompatibleTokens = ["t", "T", "x"];
5304
5304
  }
5305
- class md extends x {
5305
+ class gd extends x {
5306
5306
  priority = 10;
5307
5307
  parse(t, s) {
5308
5308
  switch (s) {
@@ -5336,7 +5336,7 @@ class md extends x {
5336
5336
  }
5337
5337
  incompatibleTokens = ["t", "T", "X"];
5338
5338
  }
5339
- class gd extends x {
5339
+ class yd extends x {
5340
5340
  priority = 40;
5341
5341
  parse(t) {
5342
5342
  return er(t);
@@ -5346,7 +5346,7 @@ class gd extends x {
5346
5346
  }
5347
5347
  incompatibleTokens = "*";
5348
5348
  }
5349
- class yd extends x {
5349
+ class vd extends x {
5350
5350
  priority = 20;
5351
5351
  parse(t) {
5352
5352
  return er(t);
@@ -5356,55 +5356,55 @@ class yd extends x {
5356
5356
  }
5357
5357
  incompatibleTokens = "*";
5358
5358
  }
5359
- const vd = {
5360
- G: new Hc(),
5361
- y: new Rc(),
5362
- Y: new zc(),
5363
- R: new Gc(),
5364
- u: new Vc(),
5365
- Q: new Bc(),
5366
- q: new Nc(),
5367
- M: new qc(),
5368
- L: new Wc(),
5369
- w: new jc(),
5370
- I: new Qc(),
5371
- d: new Kc(),
5372
- D: new Jc(),
5373
- E: new Zc(),
5374
- e: new ed(),
5375
- c: new td(),
5376
- i: new id(),
5377
- a: new rd(),
5378
- b: new nd(),
5379
- B: new od(),
5380
- h: new ad(),
5381
- H: new ld(),
5382
- K: new cd(),
5383
- k: new dd(),
5384
- m: new ud(),
5385
- s: new hd(),
5386
- S: new fd(),
5387
- X: new pd(),
5388
- x: new md(),
5389
- t: new gd(),
5390
- T: new yd()
5391
- }, bd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xd = /^'([^]*?)'?$/, _d = /''/g, Sd = /\S/, Cd = /[a-zA-Z]/;
5392
- function Dd(e, t, s, i) {
5393
- const r = () => k(s, NaN), n = Ec(), o = n.locale ?? ji, a = n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, l = n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, d = {
5359
+ const bd = {
5360
+ G: new Rc(),
5361
+ y: new zc(),
5362
+ Y: new Gc(),
5363
+ R: new Vc(),
5364
+ u: new Bc(),
5365
+ Q: new Nc(),
5366
+ q: new qc(),
5367
+ M: new Wc(),
5368
+ L: new Lc(),
5369
+ w: new Yc(),
5370
+ I: new Uc(),
5371
+ d: new Jc(),
5372
+ D: new Zc(),
5373
+ E: new ed(),
5374
+ e: new td(),
5375
+ c: new sd(),
5376
+ i: new rd(),
5377
+ a: new nd(),
5378
+ b: new od(),
5379
+ B: new ad(),
5380
+ h: new ld(),
5381
+ H: new cd(),
5382
+ K: new dd(),
5383
+ k: new ud(),
5384
+ m: new hd(),
5385
+ s: new fd(),
5386
+ S: new pd(),
5387
+ X: new md(),
5388
+ x: new gd(),
5389
+ t: new yd(),
5390
+ T: new vd()
5391
+ }, wd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, xd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, _d = /^'([^]*?)'?$/, Sd = /''/g, Cd = /\S/, Dd = /[a-zA-Z]/;
5392
+ function Td(e, t, s, i) {
5393
+ const r = () => k(s, NaN), n = Fc(), o = n.locale ?? ji, a = n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, l = n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, d = {
5394
5394
  firstWeekContainsDate: a,
5395
5395
  weekStartsOn: l,
5396
5396
  locale: o
5397
- }, c = [new Ac(i?.in, s)], u = t.match(wd).map((p) => {
5397
+ }, c = [new Hc(i?.in, s)], u = t.match(xd).map((p) => {
5398
5398
  const b = p[0];
5399
5399
  if (b in Wt) {
5400
5400
  const y = Wt[b];
5401
5401
  return y(p, o.formatLong);
5402
5402
  }
5403
5403
  return p;
5404
- }).join("").match(bd), m = [];
5404
+ }).join("").match(wd), m = [];
5405
5405
  for (let p of u) {
5406
5406
  Ki(p) && Lt(p, t, e), Xi(p) && Lt(p, t, e);
5407
- const b = p[0], y = vd[b];
5407
+ const b = p[0], y = bd[b];
5408
5408
  if (y) {
5409
5409
  const { incompatibleTokens: w } = y;
5410
5410
  if (Array.isArray(w)) {
@@ -5430,17 +5430,17 @@ function Dd(e, t, s, i) {
5430
5430
  return r();
5431
5431
  c.push(D.setter), e = D.rest;
5432
5432
  } else {
5433
- if (b.match(Cd))
5433
+ if (b.match(Dd))
5434
5434
  throw new RangeError(
5435
5435
  "Format string contains an unescaped latin alphabet character `" + b + "`"
5436
5436
  );
5437
- if (p === "''" ? p = "'" : b === "'" && (p = Td(p)), e.indexOf(p) === 0)
5437
+ if (p === "''" ? p = "'" : b === "'" && (p = Id(p)), e.indexOf(p) === 0)
5438
5438
  e = e.slice(p.length);
5439
5439
  else
5440
5440
  return r();
5441
5441
  }
5442
5442
  }
5443
- if (e.length > 0 && Sd.test(e))
5443
+ if (e.length > 0 && Cd.test(e))
5444
5444
  return r();
5445
5445
  const f = c.map((p) => p.priority).sort((p, b) => b - p).filter((p, b, y) => y.indexOf(p) === b).map(
5446
5446
  (p) => c.filter((b) => b.priority === p).sort((b, y) => y.subPriority - b.subPriority)
@@ -5456,15 +5456,15 @@ function Dd(e, t, s, i) {
5456
5456
  }
5457
5457
  return g;
5458
5458
  }
5459
- function Td(e) {
5460
- return e.match(xd)[1].replace(_d, "'");
5459
+ function Id(e) {
5460
+ return e.match(_d)[1].replace(Sd, "'");
5461
5461
  }
5462
- const Gs = 88, Id = 64, $d = 44, Ed = (e) => {
5462
+ const Gs = 88, Ed = 64, $d = 44, Fd = (e) => {
5463
5463
  if (!e) return Gs;
5464
5464
  const t = e.items?.length ?? 0, s = e.subGroups ?? [], i = s.reduce((r, n) => r + (n.items?.length ?? 0), 0);
5465
- return Gs + (t + i) * Id + s.length * $d;
5466
- }, Fd = (e) => typeof e?.then == "function";
5467
- class Od {
5465
+ return Gs + (t + i) * Ed + s.length * $d;
5466
+ }, Od = (e) => typeof e?.then == "function";
5467
+ class Md {
5468
5468
  /**
5469
5469
  * @param onResolved Es crida quan una factory asíncrona acaba, per demanar un
5470
5470
  * nou render de la fila que havia quedat buida.
@@ -5492,7 +5492,7 @@ class Od {
5492
5492
  console.error(`activity-history: no s'ha pogut crear el component de l'item ${t.id}`, r);
5493
5493
  return;
5494
5494
  }
5495
- if (Fd(i)) {
5495
+ if (Od(i)) {
5496
5496
  this.pending.add(t), i.then((r) => {
5497
5497
  r && this.elements.set(t, r);
5498
5498
  }).catch((r) => {
@@ -5508,7 +5508,7 @@ class Od {
5508
5508
  this.elements = /* @__PURE__ */ new WeakMap(), this.pending = /* @__PURE__ */ new WeakSet();
5509
5509
  }
5510
5510
  }
5511
- const Md = ":host{min-height:1px;display:flex;flex-direction:column;flex:1 1 0%}.virtual-container{height:100%;position:relative}.virtual-viewport{height:100%;overflow:auto;padding-inline:16px;overflow-anchor:none}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.container{min-height:1px;height:100%}.visit:first-child{margin-top:var(--dss-spacing-md)}.visit{width:calc(100% - var(--dss-spacing-md) - var(--dss-spacing-md));display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm);margin-bottom:var(--dss-spacing-md)}.visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit .visit__header .title-date{font-weight:700}.visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit .visit__header .highlight{background-color:#ff0;font-weight:700}.visit .visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit .visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .visit__items .item[has-divider]:last-of-type{border:none}.visit .diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics:last-of-type{border:none}.visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.visit .diagnostics .diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics .diagnostics__items .item[has-divider]:last-of-type{border:none}.feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}";
5511
+ const Pd = ":host{min-height:1px;display:flex;flex-direction:column;flex:1 1 0%}.virtual-container{height:100%;position:relative}.virtual-viewport{height:100%;overflow:auto;padding-inline:16px;overflow-anchor:none}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.container{min-height:1px;height:100%}.visit:first-child{margin-top:var(--dss-spacing-md)}.visit{width:calc(100% - var(--dss-spacing-md) - var(--dss-spacing-md));display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;border-radius:var(--dss-radius-sm);padding:var(--dss-spacing-sm);margin-bottom:var(--dss-spacing-md)}.visit .visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit .visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit .visit__header .title-date{font-weight:700}.visit .visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit .visit__header .highlight{background-color:#ff0;font-weight:700}.visit .visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit .visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .visit__items .item[has-divider]:last-of-type{border:none}.visit .diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics:last-of-type{border:none}.visit .diagnostics .diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.visit .diagnostics .diagnostics__items{display:flex;flex-direction:column}.visit .diagnostics .diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit .diagnostics .diagnostics__items .item[has-divider]:last-of-type{border:none}.feedback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}";
5512
5512
  /**
5513
5513
  * @license
5514
5514
  * Copyright 2017 Google LLC
@@ -5530,22 +5530,22 @@ const qe = (e, t) => {
5530
5530
  let s = t._$AN;
5531
5531
  if (s === void 0) t._$AN = s = /* @__PURE__ */ new Set();
5532
5532
  else if (s.has(e)) break;
5533
- s.add(e), Ad(t);
5533
+ s.add(e), Hd(t);
5534
5534
  }
5535
5535
  };
5536
- function Pd(e) {
5536
+ function kd(e) {
5537
5537
  this._$AN !== void 0 ? (lt(this), this._$AM = e, ir(this)) : this._$AM = e;
5538
5538
  }
5539
- function kd(e, t = !1, s = 0) {
5539
+ function Ad(e, t = !1, s = 0) {
5540
5540
  const i = this._$AH, r = this._$AN;
5541
5541
  if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = s; n < i.length; n++) qe(i[n], !1), lt(i[n]);
5542
5542
  else i != null && (qe(i, !1), lt(i));
5543
5543
  else qe(this, e);
5544
5544
  }
5545
- const Ad = (e) => {
5546
- e.type == Er.CHILD && (e._$AP ??= kd, e._$AQ ??= Pd);
5545
+ const Hd = (e) => {
5546
+ e.type == Fr.CHILD && (e._$AP ??= Ad, e._$AQ ??= kd);
5547
5547
  };
5548
- class Hd extends Ir {
5548
+ class Rd extends Er {
5549
5549
  constructor() {
5550
5550
  super(...arguments), this._$AN = void 0;
5551
5551
  }
@@ -5567,7 +5567,7 @@ class Hd extends Ir {
5567
5567
  reconnected() {
5568
5568
  }
5569
5569
  }
5570
- const Ft = /* @__PURE__ */ new WeakMap(), rr = Fr(class extends Hd {
5570
+ const Ft = /* @__PURE__ */ new WeakMap(), rr = Or(class extends Rd {
5571
5571
  render(e) {
5572
5572
  return O;
5573
5573
  }
@@ -5591,26 +5591,26 @@ const Ft = /* @__PURE__ */ new WeakMap(), rr = Fr(class extends Hd {
5591
5591
  reconnected() {
5592
5592
  this.rt(this.ct);
5593
5593
  }
5594
- }), Rd = ".grouping-busy-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}", zd = (e) => h`
5594
+ }), zd = ".grouping-busy-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}", Gd = (e) => h`
5595
5595
  <div class="grouping-busy-container">
5596
5596
  <dss-spinner size="sm"></dss-spinner>
5597
5597
  <div>${v("isGrouping")}</div>
5598
5598
  </div>
5599
5599
  `;
5600
- var Gd = Object.getOwnPropertyDescriptor, Vd = (e, t, s, i) => {
5601
- for (var r = i > 1 ? void 0 : i ? Gd(t, s) : t, n = e.length - 1, o; n >= 0; n--)
5600
+ var Vd = Object.getOwnPropertyDescriptor, Bd = (e, t, s, i) => {
5601
+ for (var r = i > 1 ? void 0 : i ? Vd(t, s) : t, n = e.length - 1, o; n >= 0; n--)
5602
5602
  (o = e[n]) && (r = o(r) || r);
5603
5603
  return r;
5604
5604
  };
5605
5605
  let jt = class extends L {
5606
5606
  render() {
5607
- return zd();
5607
+ return Gd();
5608
5608
  }
5609
5609
  };
5610
5610
  jt.styles = W`
5611
- ${q(Rd)}
5611
+ ${q(zd)}
5612
5612
  `;
5613
- jt = Vd([
5613
+ jt = Bd([
5614
5614
  j("activity-history-is-grouping-busy")
5615
5615
  ], jt);
5616
5616
  function nr(e) {
@@ -5630,7 +5630,7 @@ const Yt = (e, t) => {
5630
5630
  subGroup: i
5631
5631
  }));
5632
5632
  return [...t, ...s].sort((i, r) => r.date.getTime() - i.date.getTime());
5633
- }, Bd = (e) => h`
5633
+ }, Nd = (e) => h`
5634
5634
  <div class="container">
5635
5635
  <activity-history-full-data-error></activity-history-full-data-error>
5636
5636
  <activity-history-partial-data-error></activity-history-partial-data-error>
@@ -5654,7 +5654,7 @@ const Yt = (e, t) => {
5654
5654
  data-index=${t}
5655
5655
  ${rr(e._measureElement)}
5656
5656
  data-date=${js(s?.items[0]?.date || s?.subGroups[0]?.items[0]?.date)}>
5657
- ${qd(e, s?.items[0] || s?.subGroups[0]?.items[0], s)}
5657
+ ${Wd(e, s?.items[0] || s?.subGroups[0]?.items[0], s)}
5658
5658
  <div class="visit__items">
5659
5659
  ${ne(
5660
5660
  or(s),
@@ -5674,7 +5674,7 @@ const Yt = (e, t) => {
5674
5674
  const r = i.subGroup;
5675
5675
  return h`
5676
5676
  <div class="diagnostics">
5677
- ${jd(r?.items[0])}
5677
+ ${Yd(r?.items[0])}
5678
5678
  <div class="diagnostics__items">
5679
5679
  ${ne(
5680
5680
  r?.items,
@@ -5699,9 +5699,9 @@ const Yt = (e, t) => {
5699
5699
  </div>
5700
5700
  </div>
5701
5701
  </div>
5702
- ` : Nd(e)}
5702
+ ` : qd(e)}
5703
5703
  </div>
5704
- `, Nd = (e) => h`
5704
+ `, qd = (e) => h`
5705
5705
  ${e.searchString?.length > 1 ? h`
5706
5706
  <dss-user-feedback
5707
5707
  class="feedback"
@@ -5713,7 +5713,7 @@ ${e.searchString?.length > 1 ? h`
5713
5713
  status="empty"
5714
5714
  title=${v("noData.title")}
5715
5715
  description=${v("noData.description")}>
5716
- </dss-user-feedback>` : O}`, qd = (e, t, s) => t ? h`
5716
+ </dss-user-feedback>` : O}`, Wd = (e, t, s) => t ? h`
5717
5717
  <div class="visit__header">
5718
5718
  <div class="title">
5719
5719
  <div class="title-date">
@@ -5721,12 +5721,12 @@ ${e.searchString?.length > 1 ? h`
5721
5721
  </div>
5722
5722
  <div class="title-description">
5723
5723
  <div>
5724
- ${Ld(e, t, s)}
5724
+ ${jd(e, t, s)}
5725
5725
  </div>
5726
5726
  </div>
5727
5727
  </div>
5728
5728
  </div>
5729
- ` : O, Wd = (e) => {
5729
+ ` : O, Ld = (e) => {
5730
5730
  if (e) {
5731
5731
  for (const t of e.items || [])
5732
5732
  if (t.service?.id) return t.service;
@@ -5734,20 +5734,20 @@ ${e.searchString?.length > 1 ? h`
5734
5734
  for (const s of t.items || [])
5735
5735
  if (s.service?.id) return s.service;
5736
5736
  }
5737
- }, Ld = (e, t, s) => {
5737
+ }, jd = (e, t, s) => {
5738
5738
  if (!t.professional) return O;
5739
5739
  const i = nr(t), r = [];
5740
5740
  r.push(e.highlighted(t.professional.name)), i && t.professional?.role?.description && r.push(e.highlighted(t.professional.role.description)), t.professional?.speciality?.description && r.push(e.highlighted(t.professional.speciality.description)), t.up?.description && r.push(e.highlighted(t.up.description));
5741
- const n = t.service?.description ? t.service : Wd(s);
5741
+ const n = t.service?.description ? t.service : Ld(s);
5742
5742
  return n?.description && r.push(e.highlighted(n.description)), r.map((o, a) => h`${o}${a < r.length - 1 ? " | " : ""}`);
5743
- }, jd = (e) => e && h`
5743
+ }, Yd = (e) => e && h`
5744
5744
  <div class="diagnostics__header">
5745
5745
  ${e.diagnostics.filter((t) => t.descripcio != null && t.descripcio.trim() !== "").map(
5746
5746
  (t) => h`<dss-badge text=${t.descripcio?.toUpperCase()} state="info" size="sm" outlined hideIcon></dss-badge>`
5747
5747
  )}
5748
5748
  </div>
5749
5749
  `;
5750
- function $e(e, t, s) {
5750
+ function Ee(e, t, s) {
5751
5751
  let i = s.initialDeps ?? [], r, n = !0;
5752
5752
  function o() {
5753
5753
  var a, l, d;
@@ -5787,7 +5787,7 @@ function Vs(e, t) {
5787
5787
  throw new Error("Unexpected undefined");
5788
5788
  return e;
5789
5789
  }
5790
- const Yd = (e, t) => Math.abs(e - t) < 1.01, Qd = (e, t, s) => {
5790
+ const Qd = (e, t) => Math.abs(e - t) < 1.01, Ud = (e, t, s) => {
5791
5791
  let i;
5792
5792
  return function(...r) {
5793
5793
  e.clearTimeout(i), i = e.setTimeout(() => t.apply(this, r), s);
@@ -5795,12 +5795,12 @@ const Yd = (e, t) => Math.abs(e - t) < 1.01, Qd = (e, t, s) => {
5795
5795
  }, Bs = (e) => {
5796
5796
  const { offsetWidth: t, offsetHeight: s } = e;
5797
5797
  return { width: t, height: s };
5798
- }, Ud = (e) => e, Xd = (e) => {
5798
+ }, Xd = (e) => e, Kd = (e) => {
5799
5799
  const t = Math.max(e.startIndex - e.overscan, 0), s = Math.min(e.endIndex + e.overscan, e.count - 1), i = [];
5800
5800
  for (let r = t; r <= s; r++)
5801
5801
  i.push(r);
5802
5802
  return i;
5803
- }, Kd = (e, t) => {
5803
+ }, Jd = (e, t) => {
5804
5804
  const s = e.scrollElement;
5805
5805
  if (!s)
5806
5806
  return;
@@ -5833,7 +5833,7 @@ const Yd = (e, t) => Math.abs(e - t) < 1.01, Qd = (e, t, s) => {
5833
5833
  };
5834
5834
  }, Ns = {
5835
5835
  passive: !0
5836
- }, qs = typeof window > "u" ? !0 : "onscrollend" in window, Jd = (e, t) => {
5836
+ }, qs = typeof window > "u" ? !0 : "onscrollend" in window, Zd = (e, t) => {
5837
5837
  const s = e.scrollElement;
5838
5838
  if (!s)
5839
5839
  return;
@@ -5842,7 +5842,7 @@ const Yd = (e, t) => Math.abs(e - t) < 1.01, Qd = (e, t, s) => {
5842
5842
  return;
5843
5843
  let r = 0;
5844
5844
  const n = e.options.useScrollendEvent && qs ? () => {
5845
- } : Qd(
5845
+ } : Ud(
5846
5846
  i,
5847
5847
  () => {
5848
5848
  t(r, !1);
@@ -5857,7 +5857,7 @@ const Yd = (e, t) => Math.abs(e - t) < 1.01, Qd = (e, t, s) => {
5857
5857
  return d && s.addEventListener("scrollend", l, Ns), () => {
5858
5858
  s.removeEventListener("scroll", a), d && s.removeEventListener("scrollend", l);
5859
5859
  };
5860
- }, Zd = (e, t, s) => {
5860
+ }, eu = (e, t, s) => {
5861
5861
  if (t?.borderBoxSize) {
5862
5862
  const i = t.borderBoxSize[0];
5863
5863
  if (i)
@@ -5866,7 +5866,7 @@ const Yd = (e, t) => Math.abs(e - t) < 1.01, Qd = (e, t, s) => {
5866
5866
  );
5867
5867
  }
5868
5868
  return e[s.options.horizontal ? "offsetWidth" : "offsetHeight"];
5869
- }, eu = (e, {
5869
+ }, tu = (e, {
5870
5870
  adjustments: t = 0,
5871
5871
  behavior: s
5872
5872
  }, i) => {
@@ -5877,7 +5877,7 @@ const Yd = (e, t) => Math.abs(e - t) < 1.01, Qd = (e, t, s) => {
5877
5877
  behavior: s
5878
5878
  });
5879
5879
  };
5880
- class tu {
5880
+ class su {
5881
5881
  constructor(t) {
5882
5882
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
5883
5883
  var s, i, r;
@@ -5926,11 +5926,11 @@ class tu {
5926
5926
  scrollPaddingStart: 0,
5927
5927
  scrollPaddingEnd: 0,
5928
5928
  horizontal: !1,
5929
- getItemKey: Ud,
5930
- rangeExtractor: Xd,
5929
+ getItemKey: Xd,
5930
+ rangeExtractor: Kd,
5931
5931
  onChange: () => {
5932
5932
  },
5933
- measureElement: Zd,
5933
+ measureElement: eu,
5934
5934
  initialRect: { width: 0, height: 0 },
5935
5935
  scrollMargin: 0,
5936
5936
  gap: 0,
@@ -5948,7 +5948,7 @@ class tu {
5948
5948
  }, this.notify = (s) => {
5949
5949
  var i, r;
5950
5950
  (r = (i = this.options).onChange) == null || r.call(i, this, s);
5951
- }, this.maybeNotify = $e(
5951
+ }, this.maybeNotify = Ee(
5952
5952
  () => (this.calculateRange(), [
5953
5953
  this.isScrolling,
5954
5954
  this.range ? this.range.startIndex : null,
@@ -6006,7 +6006,7 @@ class tu {
6006
6006
  break;
6007
6007
  }
6008
6008
  return n.size === this.options.lanes ? Array.from(n.values()).sort((o, a) => o.end === a.end ? o.index - a.index : o.end - a.end)[0] : void 0;
6009
- }, this.getMeasurementOptions = $e(
6009
+ }, this.getMeasurementOptions = Ee(
6010
6010
  () => [
6011
6011
  this.options.count,
6012
6012
  this.options.paddingStart,
@@ -6028,7 +6028,7 @@ class tu {
6028
6028
  {
6029
6029
  key: !1
6030
6030
  }
6031
- ), this.getMeasurements = $e(
6031
+ ), this.getMeasurements = Ee(
6032
6032
  () => [this.getMeasurementOptions(), this.itemSizeCache],
6033
6033
  ({
6034
6034
  count: s,
@@ -6084,14 +6084,14 @@ class tu {
6084
6084
  key: !1,
6085
6085
  debug: () => this.options.debug
6086
6086
  }
6087
- ), this.calculateRange = $e(
6087
+ ), this.calculateRange = Ee(
6088
6088
  () => [
6089
6089
  this.getMeasurements(),
6090
6090
  this.getSize(),
6091
6091
  this.getScrollOffset(),
6092
6092
  this.options.lanes
6093
6093
  ],
6094
- (s, i, r, n) => this.range = s.length > 0 && i > 0 ? su({
6094
+ (s, i, r, n) => this.range = s.length > 0 && i > 0 ? iu({
6095
6095
  measurements: s,
6096
6096
  outerSize: i,
6097
6097
  scrollOffset: r,
@@ -6101,7 +6101,7 @@ class tu {
6101
6101
  key: !1,
6102
6102
  debug: () => this.options.debug
6103
6103
  }
6104
- ), this.getVirtualIndexes = $e(
6104
+ ), this.getVirtualIndexes = Ee(
6105
6105
  () => {
6106
6106
  let s = null, i = null;
6107
6107
  const r = this.calculateRange();
@@ -6162,7 +6162,7 @@ class tu {
6162
6162
  adjustments: this.scrollAdjustments += a,
6163
6163
  behavior: void 0
6164
6164
  }), this.pendingMeasuredCacheIndexes.push(n.index), this.itemSizeCache = new Map(this.itemSizeCache.set(n.key, i)), this.notify(!1));
6165
- }, this.getVirtualItems = $e(
6165
+ }, this.getVirtualItems = Ee(
6166
6166
  () => [this.getVirtualIndexes(), this.getMeasurements()],
6167
6167
  (s, i) => {
6168
6168
  const r = [];
@@ -6302,7 +6302,7 @@ class tu {
6302
6302
  return;
6303
6303
  }
6304
6304
  const i = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, r = i ? i[0] : this.scrollState.lastTargetOffset, n = 1, o = r !== this.scrollState.lastTargetOffset;
6305
- if (!o && Yd(r, this.getScrollOffset())) {
6305
+ if (!o && Qd(r, this.getScrollOffset())) {
6306
6306
  if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= n) {
6307
6307
  this.scrollState = null;
6308
6308
  return;
@@ -6327,7 +6327,7 @@ const ar = (e, t, s, i) => {
6327
6327
  }
6328
6328
  return e > 0 ? e - 1 : 0;
6329
6329
  };
6330
- function su({
6330
+ function iu({
6331
6331
  measurements: e,
6332
6332
  outerSize: t,
6333
6333
  scrollOffset: s,
@@ -6363,24 +6363,24 @@ function su({
6363
6363
  }
6364
6364
  return { startIndex: o, endIndex: a };
6365
6365
  }
6366
- const iu = (e) => {
6366
+ const ru = (e) => {
6367
6367
  const t = e.getBoundingClientRect().height, s = window.getComputedStyle(e), i = Number.parseFloat(s.marginTop) || 0, r = Number.parseFloat(s.marginBottom) || 0;
6368
6368
  return Math.round(t + i + r);
6369
- }, ru = 2;
6369
+ }, nu = 2;
6370
6370
  class lr {
6371
6371
  constructor(t) {
6372
6372
  this._lastVisibleState = { virtualItems: [], totalHeight: 0 }, this._savedScrollTop = 0, this._viewportWasHidden = !1, this._pendingMeasurements = /* @__PURE__ */ new Set(), this._options = t;
6373
6373
  }
6374
6374
  setup(t, s) {
6375
- return this._viewport = t, this._virtualizer = new tu({
6375
+ return this._viewport = t, this._virtualizer = new su({
6376
6376
  count: this._options.items.length,
6377
6377
  getScrollElement: () => this._viewport ?? null,
6378
6378
  estimateSize: (i) => this._options.estimateItemHeight(i),
6379
6379
  overscan: this._options.overscan ?? 5,
6380
6380
  measureElement: (i) => this._measureItem(i),
6381
- observeElementRect: Kd,
6382
- observeElementOffset: Jd,
6383
- scrollToFn: eu,
6381
+ observeElementRect: Jd,
6382
+ observeElementOffset: Zd,
6383
+ scrollToFn: tu,
6384
6384
  onChange: () => {
6385
6385
  this._trackViewportVisibility(), s(this.getState());
6386
6386
  }
@@ -6444,8 +6444,8 @@ class lr {
6444
6444
  const s = Number(t.getAttribute("data-index")), i = this._virtualizer?.measurementsCache[s]?.size;
6445
6445
  if (t.getBoundingClientRect().height === 0)
6446
6446
  return i ?? this._options.estimateItemHeight(s);
6447
- const r = (this._options.measureElement ?? iu)(t);
6448
- return i != null && Math.abs(r - i) <= ru ? i : r;
6447
+ const r = (this._options.measureElement ?? ru)(t);
6448
+ return i != null && Math.abs(r - i) <= nu ? i : r;
6449
6449
  }
6450
6450
  // Deactivated region views are hidden with display:none: the viewport
6451
6451
  // measures 0px, the virtualizer nulls its range (empty virtualItems) and the
@@ -6469,24 +6469,24 @@ class lr {
6469
6469
  }), this._lastVisibleState;
6470
6470
  }
6471
6471
  }
6472
- var nu = Object.defineProperty, ou = Object.getOwnPropertyDescriptor, re = (e, t, s, i) => {
6473
- for (var r = i > 1 ? void 0 : i ? ou(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6472
+ var ou = Object.defineProperty, au = Object.getOwnPropertyDescriptor, re = (e, t, s, i) => {
6473
+ for (var r = i > 1 ? void 0 : i ? au(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6474
6474
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
6475
- return i && r && nu(t, s, r), r;
6475
+ return i && r && ou(t, s, r), r;
6476
6476
  };
6477
6477
  let Q = class extends L {
6478
6478
  constructor() {
6479
6479
  super(...arguments), this._virtualScrollerState = {
6480
6480
  virtualItems: [],
6481
6481
  totalHeight: 0
6482
- }, this._canShowNoDataMessage = !1, this._components = new Od(() => this.requestUpdate()), this._measureElement = (e) => {
6482
+ }, this._canShowNoDataMessage = !1, this._components = new Md(() => this.requestUpdate()), this._measureElement = (e) => {
6483
6483
  e && this._virtualScroller?.measureElement(e);
6484
6484
  }, this._onScroll = () => {
6485
6485
  };
6486
6486
  }
6487
6487
  render() {
6488
6488
  return h`
6489
- ${Bd(this)}
6489
+ ${Nd(this)}
6490
6490
  `;
6491
6491
  }
6492
6492
  connectedCallback() {
@@ -6510,7 +6510,7 @@ let Q = class extends L {
6510
6510
  return e.replace(s, '<span class="highlight">$1</span>');
6511
6511
  }
6512
6512
  highlighted(e) {
6513
- return e ? Or(this.highlightMatch(e, this.searchString)) : null;
6513
+ return e ? Mr(this.highlightMatch(e, this.searchString)) : null;
6514
6514
  }
6515
6515
  // Public API: scroll the timeline to a given date ("Anar a data").
6516
6516
  //
@@ -6552,7 +6552,7 @@ let Q = class extends L {
6552
6552
  !this._viewport || this._virtualScroller || (this._virtualScroller = new lr({
6553
6553
  items: this.historyGroups || [],
6554
6554
  overscan: 8,
6555
- estimateItemHeight: (e) => Ed(this.historyGroups?.[e])
6555
+ estimateItemHeight: (e) => Fd(this.historyGroups?.[e])
6556
6556
  }), this._cleanupVirtualScroller = this._virtualScroller.setup(this._viewport, (e) => {
6557
6557
  this._virtualScrollerState = e, this.requestUpdate(), this.api?.broker && this.searchString && this.api.broker.publish(this.api.broker.events.activityHistory.searched, {
6558
6558
  searchQuery: this.searchString
@@ -6580,7 +6580,7 @@ let Q = class extends L {
6580
6580
  }
6581
6581
  };
6582
6582
  Q.styles = W`
6583
- ${q(Md)}
6583
+ ${q(Pd)}
6584
6584
  `;
6585
6585
  re([
6586
6586
  S(ls)
@@ -6612,7 +6612,7 @@ re([
6612
6612
  Q = re([
6613
6613
  j("activity-history-timeline")
6614
6614
  ], Q);
6615
- const au = (e) => {
6615
+ const lu = (e) => {
6616
6616
  const t = e.areCustomFiltersActive || e.areCommonFiltersActive || e.areDiagnosticFiltersActive || e.areGlobalFiltersActive;
6617
6617
  return !t && e.searchString.length < 1 ? O : h`
6618
6618
  <div class="active-filters-header">
@@ -6620,41 +6620,41 @@ const au = (e) => {
6620
6620
  ${Ot(e.searchString.length > 1, () => h`<activity-history-search-results searchQuery=${e.searchString}></activity-history-search-results>`)}
6621
6621
  </div>
6622
6622
  `;
6623
- }, lu = ".active-filters-header{display:flex;flex-direction:column;border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;padding:var(--dss-spacing-sm) var(--dss-spacing-md);gap:var(--dss-spacing-xs);font-size:14px;line-height:24px}";
6624
- var cu = Object.defineProperty, du = Object.getOwnPropertyDescriptor, ze = (e, t, s, i) => {
6625
- for (var r = i > 1 ? void 0 : i ? du(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6623
+ }, cu = ".active-filters-header{display:flex;flex-direction:column;border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;padding:var(--dss-spacing-sm) var(--dss-spacing-md);gap:var(--dss-spacing-xs);font-size:14px;line-height:24px}";
6624
+ var du = Object.defineProperty, uu = Object.getOwnPropertyDescriptor, ze = (e, t, s, i) => {
6625
+ for (var r = i > 1 ? void 0 : i ? uu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6626
6626
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
6627
- return i && r && cu(t, s, r), r;
6627
+ return i && r && du(t, s, r), r;
6628
6628
  };
6629
6629
  let ue = class extends L {
6630
6630
  render() {
6631
- return h`${au(this)}`;
6631
+ return h`${lu(this)}`;
6632
6632
  }
6633
6633
  };
6634
6634
  ue.styles = W`
6635
- ${q(lu)}
6635
+ ${q(cu)}
6636
6636
  `;
6637
6637
  ze([
6638
6638
  S(_t)
6639
6639
  ], ue.prototype, "searchString", 2);
6640
6640
  ze([
6641
- S(ya)
6641
+ S(va)
6642
6642
  ], ue.prototype, "areCustomFiltersActive", 2);
6643
6643
  ze([
6644
- S(ma)
6644
+ S(ga)
6645
6645
  ], ue.prototype, "areCommonFiltersActive", 2);
6646
6646
  ze([
6647
- S(va)
6647
+ S(ba)
6648
6648
  ], ue.prototype, "areDiagnosticFiltersActive", 2);
6649
6649
  ze([
6650
- S(Ta)
6650
+ S(Ia)
6651
6651
  ], ue.prototype, "areGlobalFiltersActive", 2);
6652
6652
  ue = ze([
6653
6653
  j("active-filters-header")
6654
6654
  ], ue);
6655
- const uu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;height:100%;justify-content:center}", hu = (e) => h`
6656
- ${e.isAllDataFailedToLoad ? fu(e) : O}
6657
- `, fu = (e) => h`
6655
+ const hu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;height:100%;justify-content:center}", fu = (e) => h`
6656
+ ${e.isAllDataFailedToLoad ? pu(e) : O}
6657
+ `, pu = (e) => h`
6658
6658
  <div class="container">
6659
6659
  <dss-user-feedback status="error" variant="default" size="lg" title=${v("error.title")} description=${v("error.general.title")} hasdetails="" detailslabel=${v("error.viewDetails")}>
6660
6660
  <div slot="details">
@@ -6663,31 +6663,31 @@ const uu = ":host{width:100%}.container{display:flex;align-items:center;flex-dir
6663
6663
  <dss-button @onClick=${e.handleClickFeedback} label=${v("error.general.refresh")} size="lg"></dss-button>
6664
6664
  </dss-user-feedback>
6665
6665
  </div>
6666
- `, cr = (e) => e.activityHistoryCollections.error.length > 0, pu = (e) => {
6666
+ `, cr = (e) => e.activityHistoryCollections.error.length > 0, mu = (e) => {
6667
6667
  const t = e.activityHistoryCollections.collections;
6668
6668
  return Object.values(t).every((s) => !s.items || s.items.length === 0);
6669
- }, mu = (e) => !bt(e) && cr(e) && pu(e), dr = (e) => e.activityHistoryCollections.error;
6670
- var gu = Object.defineProperty, yu = Object.getOwnPropertyDescriptor, Ct = (e, t, s, i) => {
6671
- for (var r = i > 1 ? void 0 : i ? yu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6669
+ }, gu = (e) => !bt(e) && cr(e) && mu(e), dr = (e) => e.activityHistoryCollections.error;
6670
+ var yu = Object.defineProperty, vu = Object.getOwnPropertyDescriptor, Ct = (e, t, s, i) => {
6671
+ for (var r = i > 1 ? void 0 : i ? vu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6672
6672
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
6673
- return i && r && gu(t, s, r), r;
6673
+ return i && r && yu(t, s, r), r;
6674
6674
  };
6675
6675
  let ke = class extends L {
6676
6676
  constructor() {
6677
6677
  super(...arguments), this.errorMessages = [];
6678
6678
  }
6679
6679
  render() {
6680
- return h`${hu(this)}`;
6680
+ return h`${fu(this)}`;
6681
6681
  }
6682
6682
  handleClickFeedback() {
6683
6683
  this.api.broker.send(new ts(this.errorMessages));
6684
6684
  }
6685
6685
  };
6686
6686
  ke.styles = W`
6687
- ${q(uu)}
6687
+ ${q(hu)}
6688
6688
  `;
6689
6689
  Ct([
6690
- S(mu)
6690
+ S(gu)
6691
6691
  ], ke.prototype, "isAllDataFailedToLoad", 2);
6692
6692
  Ct([
6693
6693
  S(dr)
@@ -6698,27 +6698,27 @@ Ct([
6698
6698
  ke = Ct([
6699
6699
  j("activity-history-full-data-error")
6700
6700
  ], ke);
6701
- const vu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;padding-top:16px;padding-inline:16px}", bu = (e) => {
6701
+ const bu = ":host{width:100%}.container{display:flex;align-items:center;flex-direction:column;padding-top:16px;padding-inline:16px}", wu = (e) => {
6702
6702
  const t = e.getCombinedMessage();
6703
6703
  return h`
6704
- ${e.isErrorOccurred ? wu(e, t) : O}
6704
+ ${e.isErrorOccurred ? xu(e, t) : O}
6705
6705
  `;
6706
- }, wu = (e, t) => h`
6706
+ }, xu = (e, t) => h`
6707
6707
  <div class="container">
6708
6708
  <dss-alert @onButtonClick=${e.handleClickAlert} state="warning" size="lg" message="${t}" buttonLabel=${v("error.partial.refresh")} hasbutton></dss-alert>
6709
6709
  </div>
6710
6710
  `;
6711
- var xu = Object.defineProperty, _u = Object.getOwnPropertyDescriptor, Dt = (e, t, s, i) => {
6712
- for (var r = i > 1 ? void 0 : i ? _u(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6711
+ var _u = Object.defineProperty, Su = Object.getOwnPropertyDescriptor, Dt = (e, t, s, i) => {
6712
+ for (var r = i > 1 ? void 0 : i ? Su(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6713
6713
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
6714
- return i && r && xu(t, s, r), r;
6714
+ return i && r && _u(t, s, r), r;
6715
6715
  };
6716
6716
  let Ae = class extends L {
6717
6717
  constructor() {
6718
6718
  super(...arguments), this.errorMessages = [];
6719
6719
  }
6720
6720
  render() {
6721
- return h`${bu(this)}`;
6721
+ return h`${wu(this)}`;
6722
6722
  }
6723
6723
  handleClickAlert() {
6724
6724
  this.api.broker.send(new ts(this.errorMessages));
@@ -6729,7 +6729,7 @@ let Ae = class extends L {
6729
6729
  }
6730
6730
  };
6731
6731
  Ae.styles = W`
6732
- ${q(vu)}
6732
+ ${q(bu)}
6733
6733
  `;
6734
6734
  Dt([
6735
6735
  S(cr)
@@ -6743,25 +6743,25 @@ Dt([
6743
6743
  Ae = Dt([
6744
6744
  j("activity-history-partial-data-error")
6745
6745
  ], Ae);
6746
- const { clearActivityHistoryCollections: Su } = fe.actions;
6747
- class Cu extends pe {
6746
+ const { clearActivityHistoryCollections: Cu } = fe.actions;
6747
+ class Du extends pe {
6748
6748
  async handle() {
6749
- this.store.dispatch(ie.actions.clearCustomFilters()), this.store.dispatch(Su()), this.api.broker.publish(this.api.broker.events.activityHistory.refreshDataRequested);
6749
+ this.store.dispatch(ie.actions.clearCustomFilters()), this.store.dispatch(Cu()), this.api.broker.publish(this.api.broker.events.activityHistory.refreshDataRequested);
6750
6750
  }
6751
6751
  }
6752
6752
  class ur {
6753
6753
  }
6754
6754
  let hr;
6755
- const Du = (e) => {
6756
- Tu(), hr = e.registerRequest(ur, Cu);
6757
- }, Tu = () => {
6755
+ const Tu = (e) => {
6756
+ Iu(), hr = e.registerRequest(ur, Du);
6757
+ }, Iu = () => {
6758
6758
  hr?.dispose();
6759
- }, { removeActivityHistoryItem: Iu } = fe.actions;
6759
+ }, { removeActivityHistoryItem: Eu } = fe.actions;
6760
6760
  class $u extends De {
6761
6761
  async handle(t) {
6762
6762
  try {
6763
6763
  this.store.dispatch(
6764
- Iu({
6764
+ Eu({
6765
6765
  id: t.entityId,
6766
6766
  itemId: t.itemId
6767
6767
  })
@@ -6772,15 +6772,15 @@ class $u extends De {
6772
6772
  }
6773
6773
  }
6774
6774
  let fr;
6775
- const Eu = (e) => {
6775
+ const Fu = (e) => {
6776
6776
  fr = e.registerRequest("remove_history_item_request", $u);
6777
- }, Fu = () => {
6777
+ }, Ou = () => {
6778
6778
  fr?.dispose();
6779
- }, { setSearchString: Ou } = ie.actions;
6780
- class Mu extends pe {
6779
+ }, { setSearchString: Mu } = ie.actions;
6780
+ class Pu extends pe {
6781
6781
  async handle(t) {
6782
6782
  try {
6783
- this.store.dispatch(Ou(t.searchString)), setTimeout(() => {
6783
+ this.store.dispatch(Mu(t.searchString)), setTimeout(() => {
6784
6784
  this.api.broker.publish(this.api.broker.events.activityHistory.searched, {
6785
6785
  searchQuery: t.searchString
6786
6786
  });
@@ -6795,24 +6795,24 @@ class ct {
6795
6795
  this.searchString = t, this.searchString = t;
6796
6796
  }
6797
6797
  }
6798
- const Pu = ".search-header{color:var(--color-neutral-900);font-weight:600}", ku = (e) => h`<div class="search-header">
6798
+ const ku = ".search-header{color:var(--color-neutral-900);font-weight:600}", Au = (e) => h`<div class="search-header">
6799
6799
  ${v("searchBarResults")} “${e.searchQuery}”
6800
6800
  </div>`;
6801
- var Au = Object.defineProperty, Hu = Object.getOwnPropertyDescriptor, pr = (e, t, s, i) => {
6802
- for (var r = i > 1 ? void 0 : i ? Hu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6801
+ var Hu = Object.defineProperty, Ru = Object.getOwnPropertyDescriptor, pr = (e, t, s, i) => {
6802
+ for (var r = i > 1 ? void 0 : i ? Ru(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6803
6803
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
6804
- return i && r && Au(t, s, r), r;
6804
+ return i && r && Hu(t, s, r), r;
6805
6805
  };
6806
6806
  let dt = class extends L {
6807
6807
  constructor() {
6808
6808
  super(...arguments), this.searchQuery = "";
6809
6809
  }
6810
6810
  render() {
6811
- return h`${ku(this)}`;
6811
+ return h`${Au(this)}`;
6812
6812
  }
6813
6813
  };
6814
6814
  dt.styles = W`
6815
- ${q(Pu)}
6815
+ ${q(ku)}
6816
6816
  `;
6817
6817
  pr([
6818
6818
  K()
@@ -6820,21 +6820,21 @@ pr([
6820
6820
  dt = pr([
6821
6821
  j("activity-history-search-results")
6822
6822
  ], dt);
6823
- const Ru = ".search-header{padding-inline:16px;padding-top:12px;padding-bottom:12px;gap:var(--dss-spacing-xs);border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;color:var(--color-neutral-900);font-weight:600;font-size:14px;line-height:24px}", zu = (e) => h`<dss-search-bar dropdownStyle=${"display: none"} @onSearchChange=${e._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
6823
+ const zu = ".search-header{padding-inline:16px;padding-top:12px;padding-bottom:12px;gap:var(--dss-spacing-xs);border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;color:var(--color-neutral-900);font-weight:600;font-size:14px;line-height:24px}", Gu = (e) => h`<dss-search-bar dropdownStyle=${"display: none"} @onSearchChange=${e._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
6824
6824
  <label slot="label" for="searchbar1" aria-hidden="false"></label>
6825
6825
  <input slot="input" id="searchbar1" type="text" value=${e.searchQuery} @input=${(t) => e._handleSearchChange({ detail: [t.target.value] })}>
6826
6826
  </dss-search-bar>`;
6827
- var Gu = Object.defineProperty, Vu = Object.getOwnPropertyDescriptor, mr = (e, t, s, i) => {
6828
- for (var r = i > 1 ? void 0 : i ? Vu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6827
+ var Vu = Object.defineProperty, Bu = Object.getOwnPropertyDescriptor, mr = (e, t, s, i) => {
6828
+ for (var r = i > 1 ? void 0 : i ? Bu(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6829
6829
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
6830
- return i && r && Gu(t, s, r), r;
6830
+ return i && r && Vu(t, s, r), r;
6831
6831
  };
6832
6832
  let ut = class extends L {
6833
6833
  constructor() {
6834
6834
  super(...arguments), this.searchQuery = "";
6835
6835
  }
6836
6836
  render() {
6837
- return h`${zu(this)}`;
6837
+ return h`${Gu(this)}`;
6838
6838
  }
6839
6839
  _handleSearchChange(e) {
6840
6840
  const t = e.detail || [], s = t.length > 0 ? t.join(" ") : "", i = s.length > 1 ? s : "";
@@ -6842,7 +6842,7 @@ let ut = class extends L {
6842
6842
  }
6843
6843
  };
6844
6844
  ut.styles = W`
6845
- ${q(Ru)}
6845
+ ${q(zu)}
6846
6846
  `;
6847
6847
  mr([
6848
6848
  K()
@@ -6850,7 +6850,7 @@ mr([
6850
6850
  ut = mr([
6851
6851
  j("activity-history-search-bar")
6852
6852
  ], ut);
6853
- const Bu = ":host{display:flex;justify-content:space-between}.filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.clean-filters{display:flex}.clean-filters .separator{padding:0 8px}.popover-content{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs);padding:10px;max-width:368px;max-height:336px;overflow:auto}", Nu = (e) => {
6853
+ const Nu = ":host{display:flex;justify-content:space-between}.filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.clean-filters{display:flex}.clean-filters .separator{padding:0 8px}.popover-content{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs);padding:10px;max-width:368px;max-height:336px;overflow:auto}", qu = (e) => {
6854
6854
  const t = new Set(e.enabledValues), s = e.groups.filter(
6855
6855
  (r) => r.values.length > 0 && r.values.every((n) => t.has(n.value))
6856
6856
  ), i = new Set(s.flatMap((r) => r.values.map((n) => n.value)));
@@ -6858,16 +6858,16 @@ const Bu = ":host{display:flex;justify-content:space-between}.filters-container{
6858
6858
  groups: s,
6859
6859
  options: e.values.filter((r) => t.has(r.value) && !i.has(r.value))
6860
6860
  };
6861
- }, qu = (e, t) => e === "" ? Wu(t) : e, Wu = (e) => `${v("chipHeader.without")} ${e.toLowerCase()}`, Ke = 5, Ws = (e, t, s, i) => h`
6861
+ }, Wu = (e, t) => e === "" ? Lu(t) : e, Lu = (e) => `${v("chipHeader.without")} ${e.toLowerCase()}`, Ke = 5, Ws = (e, t, s, i) => h`
6862
6862
  <dss-chip
6863
- label=${qu(s.title, t.title)}
6863
+ label=${Wu(s.title, t.title)}
6864
6864
  size="sm"
6865
6865
  hasdelete
6866
6866
  selected
6867
6867
  @click=${() => i._onDeleteFilterValue(e, t.id, s.id, !1)}
6868
6868
  @onDelete=${() => i._onDeleteFilterValue(e, t.id, s.id, !1)}
6869
6869
  ></dss-chip>
6870
- `, Lu = (e, t) => h`
6870
+ `, ju = (e, t) => h`
6871
6871
  <dss-chip
6872
6872
  label=${e.title}
6873
6873
  size="sm"
@@ -6876,7 +6876,7 @@ const Bu = ":host{display:flex;justify-content:space-between}.filters-container{
6876
6876
  @click=${() => t._onDeleteCommonFilterValue(e.id)}
6877
6877
  @onDelete=${() => t._onDeleteCommonFilterValue(e.id)}
6878
6878
  ></dss-chip>
6879
- `, ju = (e, t, s) => h`
6879
+ `, Yu = (e, t, s) => h`
6880
6880
  <dss-chip
6881
6881
  label=${t}
6882
6882
  size="sm"
@@ -6885,7 +6885,7 @@ const Bu = ":host{display:flex;justify-content:space-between}.filters-container{
6885
6885
  @click=${() => s._onDeleteDiagnosticFilterValue(e)}
6886
6886
  @onDelete=${() => s._onDeleteDiagnosticFilterValue(e)}
6887
6887
  ></dss-chip>
6888
- `, Yu = (e, t, s, i) => h`
6888
+ `, Qu = (e, t, s, i) => h`
6889
6889
  <dss-chip
6890
6890
  label=${s}
6891
6891
  size="sm"
@@ -6894,7 +6894,7 @@ const Bu = ":host{display:flex;justify-content:space-between}.filters-container{
6894
6894
  @click=${() => i._onDeleteGlobalFilterValue(e, t)}
6895
6895
  @onDelete=${() => i._onDeleteGlobalFilterValue(e, t)}
6896
6896
  ></dss-chip>
6897
- `, Qu = (e, t, s) => h`
6897
+ `, Uu = (e, t, s) => h`
6898
6898
  <dss-chip
6899
6899
  label=${t.title}
6900
6900
  size="sm"
@@ -6903,7 +6903,7 @@ const Bu = ":host{display:flex;justify-content:space-between}.filters-container{
6903
6903
  @click=${() => s._onDeleteGlobalFilterGroup(e, t.id)}
6904
6904
  @onDelete=${() => s._onDeleteGlobalFilterGroup(e, t.id)}
6905
6905
  ></dss-chip>
6906
- `, Ee = (e) => h`<div class="filter-title">${`${e}:`}</div>`, Uu = (e) => {
6906
+ `, $e = (e) => h`<div class="filter-title">${`${e}:`}</div>`, Xu = (e) => {
6907
6907
  if (!(e.enabledCommonFilters.length > 0 || (e.diagnosticFilterEnabled?.enabledValues?.length ?? 0) > 0 || e.activeGlobalFilters.length > 0 || e.customFilterGroups.some(gt))) return O;
6908
6908
  let s = 0;
6909
6909
  const i = [], r = [], n = [], o = e.diagnosticFilterEnabled;
@@ -6912,28 +6912,28 @@ const Bu = ":host{display:flex;justify-content:space-between}.filters-container{
6912
6912
  if (l && l.length > 0) {
6913
6913
  let d = !1, c = !1;
6914
6914
  for (const u of l) {
6915
- const m = ju(u.codi, u.descripcio, e);
6916
- s < Ke ? (d || (i.push(Ee(a)), d = !0), i.push(m), s++) : (c || (r.push(Ee(a)), c = !0), r.push(m), n.push(m));
6915
+ const m = Yu(u.codi, u.descripcio, e);
6916
+ s < Ke ? (d || (i.push($e(a)), d = !0), i.push(m), s++) : (c || (r.push($e(a)), c = !0), r.push(m), n.push(m));
6917
6917
  }
6918
6918
  }
6919
6919
  }
6920
6920
  for (const a of e.activeGlobalFilters) {
6921
- const { id: l, title: d } = a, c = Nu(a), u = [
6922
- ...c.groups.map((g) => Qu(l, g, e)),
6923
- ...c.options.map((g) => Yu(l, g.value, g.label, e))
6921
+ const { id: l, title: d } = a, c = qu(a), u = [
6922
+ ...c.groups.map((g) => Uu(l, g, e)),
6923
+ ...c.options.map((g) => Qu(l, g.value, g.label, e))
6924
6924
  ];
6925
6925
  let m = !1, f = !1;
6926
6926
  for (const g of u)
6927
- s < Ke ? (m || (i.push(Ee(d)), m = !0), i.push(g), s++) : (f || (r.push(Ee(d)), f = !0), r.push(g), n.push(g));
6927
+ s < Ke ? (m || (i.push($e(d)), m = !0), i.push(g), s++) : (f || (r.push($e(d)), f = !0), r.push(g), n.push(g));
6928
6928
  }
6929
6929
  for (const a of e.enabledCommonFilters) {
6930
- const l = Lu(a, e);
6930
+ const l = ju(a, e);
6931
6931
  s < Ke ? (i.push(l), s++) : (r.push(l), n.push(l));
6932
6932
  }
6933
6933
  for (const { title: a, id: l, filters: d } of e.customFilterGroups) {
6934
6934
  let c = !1, u = !1;
6935
6935
  const m = (f) => {
6936
- s < Ke ? (c || (i.push(Ee(a)), c = !0), i.push(f), s++) : (u || (r.push(Ee(a)), u = !0), r.push(f), n.push(f));
6936
+ s < Ke ? (c || (i.push($e(a)), c = !0), i.push(f), s++) : (u || (r.push($e(a)), u = !0), r.push(f), n.push(f));
6937
6937
  };
6938
6938
  for (const f of d) {
6939
6939
  if (Se(f)) {
@@ -6971,14 +6971,14 @@ const Bu = ":host{display:flex;justify-content:space-between}.filters-container{
6971
6971
  </div>
6972
6972
  `;
6973
6973
  };
6974
- var Xu = Object.defineProperty, Ku = Object.getOwnPropertyDescriptor, Ge = (e, t, s, i) => {
6975
- for (var r = i > 1 ? void 0 : i ? Ku(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6974
+ var Ku = Object.defineProperty, Ju = Object.getOwnPropertyDescriptor, Ge = (e, t, s, i) => {
6975
+ for (var r = i > 1 ? void 0 : i ? Ju(t, s) : t, n = e.length - 1, o; n >= 0; n--)
6976
6976
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
6977
- return i && r && Xu(t, s, r), r;
6977
+ return i && r && Ku(t, s, r), r;
6978
6978
  };
6979
6979
  let he = class extends L {
6980
6980
  render() {
6981
- return h`${Uu(this)}`;
6981
+ return h`${Xu(this)}`;
6982
6982
  }
6983
6983
  _onDeleteFilterValue(e, t, s, i) {
6984
6984
  this.api.broker.send(
@@ -7014,7 +7014,7 @@ let he = class extends L {
7014
7014
  }
7015
7015
  };
7016
7016
  he.styles = W`
7017
- ${q(Bu)}
7017
+ ${q(Nu)}
7018
7018
  `;
7019
7019
  Ge([
7020
7020
  Ce(V.primaryApi)
@@ -7023,7 +7023,7 @@ Ge([
7023
7023
  S(Ti)
7024
7024
  ], he.prototype, "enabledCommonFilters", 2);
7025
7025
  Ge([
7026
- S(Ei)
7026
+ S($i)
7027
7027
  ], he.prototype, "customFilterGroups", 2);
7028
7028
  Ge([
7029
7029
  S(Ii)
@@ -7035,16 +7035,16 @@ he = Ge([
7035
7035
  j("active-filters-badges")
7036
7036
  ], he);
7037
7037
  let gr;
7038
- const Ju = (e) => {
7039
- gr = e.registerRequest(ct, Mu);
7040
- }, Zu = () => {
7038
+ const Zu = (e) => {
7039
+ gr = e.registerRequest(ct, Pu);
7040
+ }, eh = () => {
7041
7041
  gr?.dispose();
7042
- }, { updateActivityHistoryItem: eh } = fe.actions;
7043
- class th extends De {
7042
+ }, { updateActivityHistoryItem: th } = fe.actions;
7043
+ class sh extends De {
7044
7044
  async handle(t) {
7045
7045
  try {
7046
7046
  gi([t.item]), this.store.dispatch(
7047
- eh({
7047
+ th({
7048
7048
  id: t.entityId,
7049
7049
  item: t.item
7050
7050
  })
@@ -7055,17 +7055,17 @@ class th extends De {
7055
7055
  }
7056
7056
  }
7057
7057
  let yr;
7058
- const sh = (e) => {
7059
- yr = e.registerRequest("update_history_item_request", th);
7060
- }, ih = () => {
7058
+ const ih = (e) => {
7059
+ yr = e.registerRequest("update_history_item_request", sh);
7060
+ }, rh = () => {
7061
7061
  yr?.dispose();
7062
7062
  };
7063
7063
  let U;
7064
- const rh = (e) => {
7065
- U = Ar(e, _e), po(U, e), Co(U, e), $o(U, e), Ho(U), Du(U), sh(U), No(U), Tl(U, e), Ju(U), Eu(U);
7066
- }, nh = () => {
7067
- mo(), Do(), Eo(), xi(), ih(), qo(), Il(), Zu(), Fu();
7068
- }, oh = "activity-history", ah = async (e) => {
7064
+ const nh = (e) => {
7065
+ U = Hr(e, _e), mo(U, e), Do(U, e), $o(U, e), Ro(U), Tu(U), ih(U), qo(U), Il(U, e), Zu(U), Fu(U);
7066
+ }, oh = () => {
7067
+ go(), To(), Fo(), xi(), rh(), Wo(), El(), eh(), Ou();
7068
+ }, ah = "activity-history", lh = async (e) => {
7069
7069
  const t = (s) => Promise.all(
7070
7070
  s.map(async (i) => ({
7071
7071
  ...i,
@@ -7088,7 +7088,7 @@ const rh = (e) => {
7088
7088
  virtualItems: [],
7089
7089
  totalHeight: 0
7090
7090
  };
7091
- class lh {
7091
+ class ch {
7092
7092
  /** Setup or update the scroller with the current items. No-op until the
7093
7093
  * viewport and content elements exist. Detects viewport swaps and re-setups. */
7094
7094
  sync({ viewport: t, items: s, onStateChange: i, estimateItemHeight: r }) {
@@ -7109,22 +7109,22 @@ class lh {
7109
7109
  this._scroller?.measureElement(t);
7110
7110
  }
7111
7111
  }
7112
- const ch = (e) => {
7112
+ const dh = (e) => {
7113
7113
  const t = new Date(e), s = /* @__PURE__ */ new Date();
7114
7114
  return t.toDateString() === s.toDateString();
7115
- }, dh = (e) => !!(e && ch(e.date)), uh = (e, t) => !!e.diagnostics?.some((s) => t.includes(s.codi)), hh = (e, t) => {
7115
+ }, uh = (e) => !!(e && dh(e.date)), hh = (e, t) => !!e.diagnostics?.some((s) => t.includes(s.codi)), fh = (e, t) => {
7116
7116
  const s = e.type ? t[e.type] : void 0;
7117
7117
  return !s?.allowedTagIds || s.allowedTagIds.length === 0 ? !0 : s.allowedTagIds.includes(e.tag?.id ?? "");
7118
- }, fh = (e) => {
7118
+ }, ph = (e) => {
7119
7119
  const t = e.items?.[0] || e.subGroups?.[0]?.items?.[0];
7120
- return dh(t);
7120
+ return uh(t);
7121
7121
  }, br = (e, t) => ({
7122
7122
  ...e,
7123
7123
  items: (e.items || []).filter(t),
7124
7124
  subGroups: (e.subGroups || []).map((s) => ({ ...s, items: s.items.filter(t) })).filter((s) => s.items.length > 0)
7125
- }), ph = (e, t) => br(e, (s) => uh(s, t)), Ls = (e) => e.items.length > 0 || e.subGroups.length > 0, mh = (e, { todayOnly: t, diagnosticCodes: s }, i = {}) => {
7126
- const r = e.map((a) => br(a, (l) => hh(l, i))).filter(Ls), n = t, o = s.length > 0;
7127
- return !n && !o ? r : r.map((a) => n && fh(a) ? a : o ? ph(a, s) : null).filter((a) => a !== null && Ls(a));
7125
+ }), mh = (e, t) => br(e, (s) => hh(s, t)), Ls = (e) => e.items.length > 0 || e.subGroups.length > 0, gh = (e, { todayOnly: t, diagnosticCodes: s }, i = {}) => {
7126
+ const r = e.map((a) => br(a, (l) => fh(l, i))).filter(Ls), n = t, o = s.length > 0;
7127
+ return !n && !o ? r : r.map((a) => n && ph(a) ? a : o ? mh(a, s) : null).filter((a) => a !== null && Ls(a));
7128
7128
  }, Je = (e) => {
7129
7129
  const t = [];
7130
7130
  for (const s of e) {
@@ -7133,10 +7133,10 @@ const ch = (e) => {
7133
7133
  for (const r of i.items) t.push(r);
7134
7134
  }
7135
7135
  return t;
7136
- }, gh = ":host{display:block;width:100%}dss-accordion{width:100%}.importer{display:flex;flex-direction:column;gap:12px;min-height:0}.importer__search{display:block}.importer__filters{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding-bottom:8px;border-bottom:1px solid var(--color-neutral-200)}.importer__filters-label{color:var(--color-neutral-700);font-size:13px}.importer__empty{color:var(--color-neutral-600);font-size:13px;padding:24px 0;text-align:center}.virtual-container{height:62vh;min-height:0;position:relative}.virtual-viewport{height:100%;overflow:auto}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.visit:first-child{margin-top:var(--dss-spacing-xs)}.visit{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;padding:var(--dss-spacing-sm);border-bottom:1px solid var(--color-neutral-100)}.visit:last-child{border-bottom:none}.visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit__header .title-date{font-weight:700}.visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit__items .item[has-divider]:last-of-type{border:none}.diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.diagnostics:last-of-type{border:none}.diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.diagnostics__items{display:flex;flex-direction:column}.diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.diagnostics__items .item[has-divider]:last-of-type{border:none}.item{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start}.item__check{margin-top:4px}", wr = (e) => ({
7136
+ }, yh = ":host{display:block;width:100%}dss-accordion{width:100%}.importer{display:flex;flex-direction:column;gap:12px;min-height:0}.importer__search{display:block}.importer__filters{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding-bottom:8px;border-bottom:1px solid var(--color-neutral-200)}.importer__filters-label{color:var(--color-neutral-700);font-size:13px}.importer__empty{color:var(--color-neutral-600);font-size:13px;padding:24px 0;text-align:center}.virtual-container{height:62vh;min-height:0;position:relative}.virtual-viewport{height:100%;overflow:auto}.virtual-content{position:relative;width:100%}.virtual-items{position:relative}.visit:first-child{margin-top:var(--dss-spacing-xs)}.visit{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);background-color:#fff;padding:var(--dss-spacing-sm);border-bottom:1px solid var(--color-neutral-100)}.visit:last-child{border-bottom:none}.visit__header{display:flex;flex-direction:row;align-items:center;gap:16px}.visit__header .title{flex:1;font-size:14px;line-height:24px;display:flex;flex-direction:row;gap:12px;color:var(--color-neutral-800)}.visit__header .title-date{font-weight:700}.visit__header .title-description{font-weight:600;display:flex;flex-direction:row;gap:4px}.visit__items{display:flex;flex-direction:column;gap:var(--dss-spacing-sm)}.visit__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.visit__items .item[has-divider]:last-of-type{border:none}.diagnostics{display:flex;flex-direction:column;gap:var(--dss-spacing-sm);border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.diagnostics:last-of-type{border:none}.diagnostics__header{display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.diagnostics__items{display:flex;flex-direction:column}.diagnostics__items .item[has-divider]{border-bottom:var(--dss-border-width-sm) solid var(--color-neutral-200)}.diagnostics__items .item[has-divider]:last-of-type{border:none}.item{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start}.item__check{margin-top:4px}", wr = (e) => ({
7137
7137
  checked: e === "all",
7138
7138
  indeterminate: e === "some"
7139
- }), yh = (e) => {
7139
+ }), vh = (e) => {
7140
7140
  const t = wr(e.allState());
7141
7141
  return h`
7142
7142
  <dss-accordion
@@ -7147,17 +7147,17 @@ const ch = (e) => {
7147
7147
  widgetBadgeState="info"
7148
7148
  .isOpen=${!0}
7149
7149
  >
7150
- <div class="importer">${vh(e)} ${bh(e, t)} ${wh(e)}</div>
7150
+ <div class="importer">${bh(e)} ${wh(e, t)} ${xh(e)}</div>
7151
7151
  </dss-accordion>
7152
7152
  `;
7153
- }, vh = (e) => h`
7153
+ }, bh = (e) => h`
7154
7154
  <div class="importer__search">
7155
7155
  <activity-history-search-bar
7156
7156
  .searchString=${e.searchString}
7157
7157
  @onSearchChange=${(t) => e._onSearchChange(t)}
7158
7158
  ></activity-history-search-bar>
7159
7159
  </div>
7160
- `, bh = (e, t) => h`
7160
+ `, wh = (e, t) => h`
7161
7161
  <div class="importer__filters">
7162
7162
  <dss-form-checkbox
7163
7163
  label=${v("importer.selectAll")}
@@ -7182,7 +7182,7 @@ const ch = (e) => {
7182
7182
  ></dss-form-checkbox>
7183
7183
  ` : O}
7184
7184
  </div>
7185
- `, wh = (e) => e.filteredGroups?.length ? h`
7185
+ `, xh = (e) => e.filteredGroups?.length ? h`
7186
7186
  <div class="virtual-container">
7187
7187
  <div class="virtual-viewport">
7188
7188
  <div class="virtual-content" style="height: ${e._totalHeight}px;">
@@ -7190,27 +7190,27 @@ const ch = (e) => {
7190
7190
  ${ne(
7191
7191
  e._visibleRows,
7192
7192
  (t) => t.group.idGroup,
7193
- (t) => xh(e, t.group, t.index)
7193
+ (t) => _h(e, t.group, t.index)
7194
7194
  )}
7195
7195
  </div>
7196
7196
  </div>
7197
7197
  </div>
7198
7198
  </div>
7199
- ` : h`<div class="importer__empty">${v("importer.noResults")}</div>`, xh = (e, t, s) => {
7199
+ ` : h`<div class="importer__empty">${v("importer.noResults")}</div>`, _h = (e, t, s) => {
7200
7200
  const i = t.items?.[0] || t.subGroups?.[0]?.items?.[0];
7201
7201
  return h`
7202
7202
  <div class="visit" data-index=${s} ${rr(e._measureElement)} data-date=${js(i?.date)}>
7203
- <div class="visit__header">${_h(i)}</div>
7203
+ <div class="visit__header">${Sh(i)}</div>
7204
7204
  <div class="visit__items">
7205
7205
  ${ne(
7206
7206
  or(t),
7207
7207
  (r) => r.type === "item" ? r.item.id : r.subGroup.idSubGroup,
7208
- (r) => r.type === "item" ? xr(e, r.item, t.items) : Ch(e, r.subGroup)
7208
+ (r) => r.type === "item" ? xr(e, r.item, t.items) : Dh(e, r.subGroup)
7209
7209
  )}
7210
7210
  </div>
7211
7211
  </div>
7212
7212
  `;
7213
- }, _h = (e) => {
7213
+ }, Sh = (e) => {
7214
7214
  if (!e) return O;
7215
7215
  const t = nr(e), s = [];
7216
7216
  return e.professional?.name && s.push(e.professional.name), t && e.professional?.role?.description && s.push(e.professional.role.description), e.professional?.speciality?.description && s.push(e.professional.speciality.description), e.up?.description && s.push(e.up.description), e.service?.description && s.push(e.service.description), h`
@@ -7223,7 +7223,7 @@ const ch = (e) => {
7223
7223
  </div>
7224
7224
  </div>
7225
7225
  `;
7226
- }, Sh = (e, t) => {
7226
+ }, Ch = (e, t) => {
7227
7227
  if ((t?.length ?? 0) < 2) return O;
7228
7228
  const s = wr(e.subGroupState(t));
7229
7229
  return h`
@@ -7234,10 +7234,10 @@ const ch = (e) => {
7234
7234
  @change=${(i) => e._toggleSubGroup(t, i.target.checked)}
7235
7235
  ></dss-form-checkbox>
7236
7236
  `;
7237
- }, Ch = (e, t) => h`
7237
+ }, Dh = (e, t) => h`
7238
7238
  <div class="diagnostics">
7239
7239
  <div class="diagnostics__header">
7240
- ${Sh(e, t.items)} ${Dh(t.items?.[0])}
7240
+ ${Ch(e, t.items)} ${Th(t.items?.[0])}
7241
7241
  </div>
7242
7242
  <div class="diagnostics__items">
7243
7243
  ${ne(
@@ -7257,24 +7257,24 @@ const ch = (e) => {
7257
7257
  ></dss-form-checkbox>
7258
7258
  ${t.component}
7259
7259
  </div>
7260
- `, Dh = (e) => e && h`
7260
+ `, Th = (e) => e && h`
7261
7261
  ${e.diagnostics.filter((t) => t.descripcio != null && t.descripcio.trim() !== "").map(
7262
7262
  (t) => h`<dss-badge text=${t.descripcio?.toUpperCase()} state="info" size="sm" outlined hideIcon></dss-badge>`
7263
7263
  )}
7264
7264
  `;
7265
- var Th = Object.defineProperty, Ih = Object.getOwnPropertyDescriptor, Y = (e, t, s, i) => {
7266
- for (var r = i > 1 ? void 0 : i ? Ih(t, s) : t, n = e.length - 1, o; n >= 0; n--)
7265
+ var Ih = Object.defineProperty, Eh = Object.getOwnPropertyDescriptor, Y = (e, t, s, i) => {
7266
+ for (var r = i > 1 ? void 0 : i ? Eh(t, s) : t, n = e.length - 1, o; n >= 0; n--)
7267
7267
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
7268
- return i && r && Th(t, s, r), r;
7268
+ return i && r && Ih(t, s, r), r;
7269
7269
  };
7270
7270
  const $h = (e) => {
7271
7271
  const t = document.createElement("div");
7272
7272
  return t.textContent = e, t.innerHTML;
7273
- }, Eh = ["p", "br", "span", "div", "strong", "em", "u", "s", "sub", "sup", "b", "i", "a", "code", "pre", "blockquote", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li"], Fh = new RegExp(`<(?!/?(?:${Eh.join("|")})\\b)`, "gi"), Oh = (e) => e.replace(Fh, "&lt;"), Mh = (e) => {
7273
+ }, Fh = ["p", "br", "span", "div", "strong", "em", "u", "s", "sub", "sup", "b", "i", "a", "code", "pre", "blockquote", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li"], Oh = new RegExp(`<(?!/?(?:${Fh.join("|")})\\b)`, "gi"), Mh = (e) => e.replace(Oh, "&lt;"), Ph = (e) => {
7274
7274
  const t = [], s = [];
7275
7275
  for (const i of e) {
7276
7276
  const r = i.content?.plainText?.trim(), n = i.content?.html?.trim();
7277
- r && t.push(r), n ? s.push(Oh(n)) : r && s.push(`<p>${$h(r)}</p>`);
7277
+ r && t.push(r), n ? s.push(Mh(n)) : r && s.push(`<p>${$h(r)}</p>`);
7278
7278
  }
7279
7279
  return { raw: t.join(`
7280
7280
 
@@ -7282,12 +7282,12 @@ const $h = (e) => {
7282
7282
  };
7283
7283
  let R = class extends L {
7284
7284
  constructor() {
7285
- super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.diagnosticsOnly = !1, this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState = vr, this._scrollerController = new lh(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (e) => {
7285
+ super(...arguments), this.historyGroups = [], this.searchString = "", this.rulesByCollectionId = {}, this.todayOnly = !1, this.diagnosticsOnly = !1, this.availableDiagnostics = [], this.filteredGroups = [], this.totalCount = 0, this.selectedIds = [], this._virtualScrollerState = vr, this._scrollerController = new ch(), this._searchTimeout = null, this._didInitialPreselect = !1, this._measureElement = (e) => {
7286
7286
  e && this._scrollerController.measureElement(e);
7287
7287
  };
7288
7288
  }
7289
7289
  render() {
7290
- return h`${yh(this)}`;
7290
+ return h`${vh(this)}`;
7291
7291
  }
7292
7292
  // ── Lifecycle ───────────────────────────────────────────────────────────
7293
7293
  connectedCallback() {
@@ -7399,8 +7399,8 @@ let R = class extends L {
7399
7399
  // El filtre és un tot-o-res: quan està marcat, filtra per tots els
7400
7400
  // diagnòstics que el host ha passat a l'importador.
7401
7401
  diagnosticCodes: this.diagnosticsOnly ? this.availableDiagnostics.map((s) => s.code) : []
7402
- }, t = mh(this.historyGroups || [], e, this.rulesByCollectionId);
7403
- this.filteredGroups = await ah(t), this.totalCount = Je(this.filteredGroups).length;
7402
+ }, t = gh(this.historyGroups || [], e, this.rulesByCollectionId);
7403
+ this.filteredGroups = await lh(t), this.totalCount = Je(this.filteredGroups).length;
7404
7404
  }
7405
7405
  _syncVirtualScroller() {
7406
7406
  this._virtualScrollerState = this._scrollerController.sync({
@@ -7438,14 +7438,14 @@ let R = class extends L {
7438
7438
  subGroups: (s.subGroups || []).map((i) => ({ ...i, items: i.items.filter((r) => e.has(r.id)) })).filter((i) => i.items.length > 0)
7439
7439
  })).filter((s) => s.items.length > 0 || s.subGroups.length > 0);
7440
7440
  this.api.importDataManager.selectItems({
7441
- pluginId: oh,
7441
+ pluginId: ah,
7442
7442
  data: t,
7443
- text: Mh(Je(t))
7443
+ text: Ph(Je(t))
7444
7444
  });
7445
7445
  }
7446
7446
  };
7447
7447
  R.styles = W`
7448
- ${q(gh)}
7448
+ ${q(yh)}
7449
7449
  `;
7450
7450
  Y([
7451
7451
  Ce(V.primaryApi)
@@ -7457,7 +7457,7 @@ Y([
7457
7457
  S(_t)
7458
7458
  ], R.prototype, "searchString", 2);
7459
7459
  Y([
7460
- S(Ra)
7460
+ S(za)
7461
7461
  ], R.prototype, "rulesByCollectionId", 2);
7462
7462
  Y([
7463
7463
  se()
@@ -7486,8 +7486,8 @@ Y([
7486
7486
  R = Y([
7487
7487
  j("activity-history-importer")
7488
7488
  ], R);
7489
- const Ph = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{display:flex;flex-direction:column;width:100%;border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm)}.container[maximized]{position:absolute;background:#fff;top:0;left:0;bottom:0;border:none}.container[maximized] .header-maximized-container{display:flex;flex-direction:column}.container[maximized] .header-maximized-container .header__maximized{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:12px;padding-bottom:12px;padding-inline:40px}.container[maximized] .header-maximized-container .header__maximized .header__maximized__search{flex:1;border-radius:8px;border:1px solid rgb(189,189,189);padding:8px;width:300px}.container[maximized] .header-maximized-container .header__maximized .title{color:var(--color-neutral-900);font-weight:700;font-size:20px;line-height:30px;white-space:nowrap}.container[maximized] .header-maximized-container .header__maximized .options{display:flex;align-items:center;color:var(--color-primary-400);font-weight:600;font-size:14px;line-height:24px;cursor:pointer}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left{display:flex;flex-direction:row;gap:24px;align-items:center;width:100%}.container[maximized] .header-maximized-container .header__maximized .header__maximized__right{display:flex;flex-direction:row;gap:16px;align-items:center}.container[maximized] .wrapper{height:calc(100vh - 175px);border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm);margin-bottom:24px;margin-inline:40px;width:calc(100% - 80px)}.container .header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid rgb(189,189,189);gap:16px}.container .header .header__left{display:flex;flex-direction:row;align-items:center;flex:1;gap:16px}.container .header .header__left .title{color:var(--color-neutral-800);font-weight:700;font-size:16px;line-height:24px;white-space:nowrap}.container .header .header__right{display:flex;flex-direction:row;align-items:center;gap:8px}.container .header .header__right .action-icons{display:flex;align-items:center}.container .wrapper{display:flex;flex-direction:row;min-height:1px;width:100%;height:100%}.container .wrapper[maximized] .content{width:100%;background:var(--color-neutral-50);border-top-right-radius:var(--dss-radius-sm);display:flex;flex-direction:column}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden;display:flex;flex-direction:column}", kh = (e) => h`<div class="container" ?maximized=${e.maximized}>
7490
- ${e.maximized ? h`${Ah(e)}` : h`<div class="header">
7489
+ const kh = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{display:flex;flex-direction:column;width:100%;border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm)}.container[maximized]{position:absolute;background:#fff;top:0;left:0;bottom:0;border:none}.container[maximized] .header-maximized-container{display:flex;flex-direction:column}.container[maximized] .header-maximized-container .header__maximized{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-top:12px;padding-bottom:12px;padding-inline:40px}.container[maximized] .header-maximized-container .header__maximized .header__maximized__search{flex:1;border-radius:8px;border:1px solid rgb(189,189,189);padding:8px;width:300px}.container[maximized] .header-maximized-container .header__maximized .title{color:var(--color-neutral-900);font-weight:700;font-size:20px;line-height:30px;white-space:nowrap}.container[maximized] .header-maximized-container .header__maximized .options{display:flex;align-items:center;color:var(--color-primary-400);font-weight:600;font-size:14px;line-height:24px;cursor:pointer}.container[maximized] .header-maximized-container .header__maximized .header__maximized__left{display:flex;flex-direction:row;gap:24px;align-items:center;width:100%}.container[maximized] .header-maximized-container .header__maximized .header__maximized__right{display:flex;flex-direction:row;gap:16px;align-items:center}.container[maximized] .wrapper{height:calc(100vh - 175px);border:1px solid rgb(189,189,189);border-radius:var(--dss-radius-sm);margin-bottom:24px;margin-inline:40px;width:calc(100% - 80px)}.container .header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid rgb(189,189,189);gap:16px}.container .header .header__left{display:flex;flex-direction:row;align-items:center;flex:1;gap:16px}.container .header .header__left .title{color:var(--color-neutral-800);font-weight:700;font-size:16px;line-height:24px;white-space:nowrap}.container .header .header__right{display:flex;flex-direction:row;align-items:center;gap:8px}.container .header .header__right .action-icons{display:flex;align-items:center}.container .wrapper{display:flex;flex-direction:row;min-height:1px;width:100%;height:100%}.container .wrapper[maximized] .content{width:100%;background:var(--color-neutral-50);border-top-right-radius:var(--dss-radius-sm);display:flex;flex-direction:column}.container .wrapper .content{width:100%;background:var(--color-neutral-50);border-bottom-right-radius:var(--dss-radius-sm);overflow:hidden;display:flex;flex-direction:column}", Ah = (e) => h`<div class="container" ?maximized=${e.maximized}>
7490
+ ${e.maximized ? h`${Hh(e)}` : h`<div class="header">
7491
7491
  <div class="header__left">
7492
7492
  <div class="title">${v("activityHistory")}</div>
7493
7493
  <activity-history-search-bar @onSearchChange=${e._handleSearchChange} .searchQuery=${e.searchQuery}></activity-history-search-bar>
@@ -7520,7 +7520,7 @@ const Ph = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{
7520
7520
  ${e.historyGroups?.length || !e.isAnyCollectionBusy ? h`<activity-history-timeline></activity-history-timeline>` : O}
7521
7521
  </div>
7522
7522
  </div>
7523
- </div>`, Ah = (e) => h`
7523
+ </div>`, Hh = (e) => h`
7524
7524
  <div class="header-maximized-container">
7525
7525
  <div class="header__maximized">
7526
7526
  <div class="header__maximized__left">
@@ -7545,17 +7545,17 @@ const Ph = ":host{display:flex;min-height:1px;height:100%;width:100%}.container{
7545
7545
  </div>
7546
7546
  </div>
7547
7547
  `;
7548
- var Hh = Object.defineProperty, Rh = Object.getOwnPropertyDescriptor, Te = (e, t, s, i) => {
7549
- for (var r = i > 1 ? void 0 : i ? Rh(t, s) : t, n = e.length - 1, o; n >= 0; n--)
7548
+ var Rh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, Te = (e, t, s, i) => {
7549
+ for (var r = i > 1 ? void 0 : i ? zh(t, s) : t, n = e.length - 1, o; n >= 0; n--)
7550
7550
  (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
7551
- return i && r && Hh(t, s, r), r;
7551
+ return i && r && Rh(t, s, r), r;
7552
7552
  };
7553
- let te = class extends Mr(L) {
7553
+ let te = class extends Pr(L) {
7554
7554
  constructor() {
7555
7555
  super(...arguments), this.subscriptions = [], this._searchTimeout = null, this.maximized = !1, this.searchQuery = "";
7556
7556
  }
7557
7557
  render() {
7558
- return h`${kh(this)}`;
7558
+ return h`${Ah(this)}`;
7559
7559
  }
7560
7560
  connectedCallback() {
7561
7561
  super.connectedCallback();
@@ -7588,7 +7588,7 @@ let te = class extends Mr(L) {
7588
7588
  this.subscriptions.forEach((e) => e.dispose());
7589
7589
  }
7590
7590
  _handleSelectDate(e) {
7591
- const t = Dd(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
7591
+ const t = Td(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
7592
7592
  Li(t) && this.scrollToClosestDate(t);
7593
7593
  }
7594
7594
  _handleSearchChange(e) {
@@ -7609,7 +7609,7 @@ let te = class extends Mr(L) {
7609
7609
  }
7610
7610
  };
7611
7611
  te.styles = W`
7612
- ${q(Ph)}
7612
+ ${q(kh)}
7613
7613
  `;
7614
7614
  Te([
7615
7615
  K({ type: Boolean, reflect: !0 })
@@ -7632,7 +7632,7 @@ Te([
7632
7632
  te = Te([
7633
7633
  j("activity-history-main")
7634
7634
  ], te);
7635
- const _r = "activity-history-importer", zh = (e) => {
7635
+ const _r = "activity-history-importer", Gh = (e) => {
7636
7636
  e.regionManager.registerView(e.regionManager.regions.clinicalMonitoring.content, {
7637
7637
  id: e.pluginInfo.pluginId,
7638
7638
  factory: () => Promise.resolve(new te())
@@ -7641,18 +7641,18 @@ const _r = "activity-history-importer", zh = (e) => {
7641
7641
  factory: () => Promise.resolve(new R()),
7642
7642
  sortHint: "0020"
7643
7643
  });
7644
- }, Gh = async () => {
7644
+ }, Vh = async () => {
7645
7645
  const e = _e.get(V.primaryApi);
7646
7646
  await e.regionManager.removeView(e.regionManager.regions.clinicalMonitoring.content, e.pluginInfo.pluginId), await e.regionManager.removeView(e.regionManager.regions.shell.importDataActivityHistory, _r);
7647
- }, Vh = (e) => {
7648
- rh(e);
7649
- }, Bh = () => {
7650
- nh(), io();
7651
- }, Wh = async (e) => (Si(e), zh(e), await go(e), ro(e), Vh(e), Promise.resolve()), Lh = async () => {
7652
- await Gh(), Si(null), Bh(), no();
7647
+ }, Bh = (e) => {
7648
+ nh(e);
7649
+ }, Nh = () => {
7650
+ oh(), ro();
7651
+ }, Lh = async (e) => (Si(e), Gh(e), await yo(e), no(e), Bh(e), Promise.resolve()), jh = async () => {
7652
+ await Vh(), Si(null), Nh(), oo();
7653
7653
  };
7654
7654
  export {
7655
- Lh as dispose,
7656
- Wh as initialize
7655
+ jh as dispose,
7656
+ Lh as initialize
7657
7657
  };
7658
- //# sourceMappingURL=plugin-BPpYe_wT.js.map
7658
+ //# sourceMappingURL=plugin-CWe3uhBJ.js.map