ode-ts-client 1.2.1-develop-b2school.202311301157 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var _ = Object.defineProperty;
2
- var T = (n, e, t) => e in n ? _(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var m = (n, e, t) => (T(n, typeof e != "symbol" ? e + "" : e, t), t);
2
+ var O = (n, e, t) => e in n ? _(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var v = (n, e, t) => (O(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  const ERROR_CODE = {
5
5
  SUCCESS: "0000",
6
6
  UNKNOWN: "0010",
@@ -19,7 +19,8 @@ const ERROR_CODE = {
19
19
  EXERCIZER: "exercizer",
20
20
  TIMELINE: "timeline",
21
21
  CAS: "cas",
22
- VIDEO: "video"
22
+ VIDEO: "video",
23
+ MINDMAP: "mindmap"
23
24
  }, USER_PREFS = {
24
25
  APPS: "apps",
25
26
  WIDGETS: "widgets",
@@ -28,6 +29,70 @@ const ERROR_CODE = {
28
29
  CURSUS: "cursus",
29
30
  INFOTIP: "infotip",
30
31
  RGPD_COOKIES: "rgpdCookies"
32
+ }, RESOURCE = {
33
+ FOLDER: "folder",
34
+ BLOG: "blog",
35
+ EXERCISE: "exercise",
36
+ MINDMAP: "mindmap"
37
+ }, appNameForResource = {
38
+ folder: APP.EXPLORER,
39
+ blog: APP.BLOG,
40
+ exercise: APP.EXERCIZER,
41
+ mindmap: APP.MINDMAP
42
+ }, ACTION = {
43
+ INITIALIZE: "initialize",
44
+ SEARCH: "search",
45
+ CREATE: "create",
46
+ OPEN: "open",
47
+ MANAGE: "manage",
48
+ UPD_PROPS: "properties",
49
+ COMMENT: "comment",
50
+ DELETE: "delete",
51
+ TRASH: "trash",
52
+ RESTORE: "restore",
53
+ MOVE: "move",
54
+ COPY: "copy",
55
+ EXPORT: "export",
56
+ SHARE: "share",
57
+ PRINT: "print",
58
+ PAGES_LIST: "pages_list",
59
+ DISTRIBUTE: "distribute",
60
+ REGISTER: "register",
61
+ PUBLISH: "publish",
62
+ PUBLISH_MOODLE: "publish_moodle"
63
+ }, FOLDER = {
64
+ BIN: "bin",
65
+ DEFAULT: "default"
66
+ }, BOOLEAN_FILTER = {
67
+ OWNER: "owner",
68
+ SHARED: "shared",
69
+ PUBLIC: "public",
70
+ FAVORITE: "favorite"
71
+ }, STRING_FILTER = {}, SORT_ORDER = {
72
+ ASC: "asc",
73
+ DESC: "desc"
74
+ }, SORT_BY = {
75
+ NAME: "name",
76
+ MODIFY_DATE: "updatedAt",
77
+ CREATEDAT: "createdAt",
78
+ APPLICATION: "application",
79
+ RESOURCE_TYPE: "resourceType"
80
+ }, PROP_KEY = {
81
+ TITLE: "title",
82
+ IMAGE: "image",
83
+ COLOR: "color",
84
+ DESCRIPTION: "description",
85
+ URL: "url"
86
+ }, PROP_MODE = {
87
+ READONLY: "RO",
88
+ READWRITE: "RW"
89
+ }, PROP_TYPE = {
90
+ TEXT: "text",
91
+ NUMBER: "number",
92
+ DATE: "date",
93
+ IMAGE: "image"
94
+ }, PROP_FORMAT = {
95
+ PLAIN: "plain"
31
96
  };
32
97
  /*! *****************************************************************************
33
98
  Copyright (c) Microsoft Corporation.
@@ -62,27 +127,27 @@ function __extends(n, e) {
62
127
  }
63
128
  function __awaiter(n, e, t, r) {
64
129
  function i(s) {
65
- return s instanceof t ? s : new t(function(o) {
66
- o(s);
130
+ return s instanceof t ? s : new t(function(u) {
131
+ u(s);
67
132
  });
68
133
  }
69
- return new (t || (t = Promise))(function(s, o) {
70
- function u(l) {
134
+ return new (t || (t = Promise))(function(s, u) {
135
+ function o(l) {
71
136
  try {
72
137
  a(r.next(l));
73
- } catch (d) {
74
- o(d);
138
+ } catch (p) {
139
+ u(p);
75
140
  }
76
141
  }
77
142
  function c(l) {
78
143
  try {
79
144
  a(r.throw(l));
80
- } catch (d) {
81
- o(d);
145
+ } catch (p) {
146
+ u(p);
82
147
  }
83
148
  }
84
149
  function a(l) {
85
- l.done ? s(l.value) : i(l.value).then(u, c);
150
+ l.done ? s(l.value) : i(l.value).then(o, c);
86
151
  }
87
152
  a((r = r.apply(n, e || [])).next());
88
153
  });
@@ -92,11 +157,11 @@ function __generator(n, e) {
92
157
  if (s[0] & 1)
93
158
  throw s[1];
94
159
  return s[1];
95
- }, trys: [], ops: [] }, r, i, s, o;
96
- return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
160
+ }, trys: [], ops: [] }, r, i, s, u;
161
+ return u = { next: o(0), throw: o(1), return: o(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
97
162
  return this;
98
- }), o;
99
- function u(a) {
163
+ }), u;
164
+ function o(a) {
100
165
  return function(l) {
101
166
  return c([a, l]);
102
167
  };
@@ -168,18 +233,18 @@ function __read(n, e) {
168
233
  var t = typeof Symbol == "function" && n[Symbol.iterator];
169
234
  if (!t)
170
235
  return n;
171
- var r = t.call(n), i, s = [], o;
236
+ var r = t.call(n), i, s = [], u;
172
237
  try {
173
238
  for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; )
174
239
  s.push(i.value);
175
- } catch (u) {
176
- o = { error: u };
240
+ } catch (o) {
241
+ u = { error: o };
177
242
  } finally {
178
243
  try {
179
244
  i && !i.done && (t = r.return) && t.call(r);
180
245
  } finally {
181
- if (o)
182
- throw o.error;
246
+ if (u)
247
+ throw u.error;
183
248
  }
184
249
  }
185
250
  return s;
@@ -196,34 +261,34 @@ function __asyncGenerator(n, e, t) {
196
261
  if (!Symbol.asyncIterator)
197
262
  throw new TypeError("Symbol.asyncIterator is not defined.");
198
263
  var r = t.apply(n, e || []), i, s = [];
199
- return i = {}, o("next"), o("throw"), o("return"), i[Symbol.asyncIterator] = function() {
264
+ return i = {}, u("next"), u("throw"), u("return"), i[Symbol.asyncIterator] = function() {
200
265
  return this;
201
266
  }, i;
202
- function o(f) {
203
- r[f] && (i[f] = function(p) {
204
- return new Promise(function(E, h) {
205
- s.push([f, p, E, h]) > 1 || u(f, p);
267
+ function u(f) {
268
+ r[f] && (i[f] = function(d) {
269
+ return new Promise(function(m, h) {
270
+ s.push([f, d, m, h]) > 1 || o(f, d);
206
271
  });
207
272
  });
208
273
  }
209
- function u(f, p) {
274
+ function o(f, d) {
210
275
  try {
211
- c(r[f](p));
212
- } catch (E) {
213
- d(s[0][3], E);
276
+ c(r[f](d));
277
+ } catch (m) {
278
+ p(s[0][3], m);
214
279
  }
215
280
  }
216
281
  function c(f) {
217
- f.value instanceof __await ? Promise.resolve(f.value.v).then(a, l) : d(s[0][2], f);
282
+ f.value instanceof __await ? Promise.resolve(f.value.v).then(a, l) : p(s[0][2], f);
218
283
  }
219
284
  function a(f) {
220
- u("next", f);
285
+ o("next", f);
221
286
  }
222
287
  function l(f) {
223
- u("throw", f);
288
+ o("throw", f);
224
289
  }
225
- function d(f, p) {
226
- f(p), s.shift(), s.length && u(s[0][0], s[0][1]);
290
+ function p(f, d) {
291
+ f(d), s.shift(), s.length && o(s[0][0], s[0][1]);
227
292
  }
228
293
  }
229
294
  function __asyncValues(n) {
@@ -234,16 +299,16 @@ function __asyncValues(n) {
234
299
  return this;
235
300
  }, t);
236
301
  function r(s) {
237
- t[s] = n[s] && function(o) {
238
- return new Promise(function(u, c) {
239
- o = n[s](o), i(u, c, o.done, o.value);
302
+ t[s] = n[s] && function(u) {
303
+ return new Promise(function(o, c) {
304
+ u = n[s](u), i(o, c, u.done, u.value);
240
305
  });
241
306
  };
242
307
  }
243
- function i(s, o, u, c) {
308
+ function i(s, u, o, c) {
244
309
  Promise.resolve(c).then(function(a) {
245
- s({ value: a, done: u });
246
- }, o);
310
+ s({ value: a, done: o });
311
+ }, u);
247
312
  }
248
313
  }
249
314
  function isFunction$1(n) {
@@ -278,11 +343,11 @@ var Subscription = function() {
278
343
  var e, t, r, i, s;
279
344
  if (!this.closed) {
280
345
  this.closed = !0;
281
- var o = this._parentage;
282
- if (o)
283
- if (this._parentage = null, Array.isArray(o))
346
+ var u = this._parentage;
347
+ if (u)
348
+ if (this._parentage = null, Array.isArray(u))
284
349
  try {
285
- for (var u = __values(o), c = u.next(); !c.done; c = u.next()) {
350
+ for (var o = __values(u), c = o.next(); !c.done; c = o.next()) {
286
351
  var a = c.value;
287
352
  a.remove(this);
288
353
  }
@@ -290,14 +355,14 @@ var Subscription = function() {
290
355
  e = { error: h };
291
356
  } finally {
292
357
  try {
293
- c && !c.done && (t = u.return) && t.call(u);
358
+ c && !c.done && (t = o.return) && t.call(o);
294
359
  } finally {
295
360
  if (e)
296
361
  throw e.error;
297
362
  }
298
363
  }
299
364
  else
300
- o.remove(this);
365
+ u.remove(this);
301
366
  var l = this.initialTeardown;
302
367
  if (isFunction$1(l))
303
368
  try {
@@ -305,14 +370,14 @@ var Subscription = function() {
305
370
  } catch (h) {
306
371
  s = h instanceof UnsubscriptionError ? h.errors : [h];
307
372
  }
308
- var d = this._teardowns;
309
- if (d) {
373
+ var p = this._teardowns;
374
+ if (p) {
310
375
  this._teardowns = null;
311
376
  try {
312
- for (var f = __values(d), p = f.next(); !p.done; p = f.next()) {
313
- var E = p.value;
377
+ for (var f = __values(p), d = f.next(); !d.done; d = f.next()) {
378
+ var m = d.value;
314
379
  try {
315
- execTeardown(E);
380
+ execTeardown(m);
316
381
  } catch (h) {
317
382
  s = s != null ? s : [], h instanceof UnsubscriptionError ? s = __spreadArray(__spreadArray([], __read(s)), __read(h.errors)) : s.push(h);
318
383
  }
@@ -321,7 +386,7 @@ var Subscription = function() {
321
386
  r = { error: h };
322
387
  } finally {
323
388
  try {
324
- p && !p.done && (i = f.return) && i.call(f);
389
+ d && !d.done && (i = f.return) && i.call(f);
325
390
  } finally {
326
391
  if (r)
327
392
  throw r.error;
@@ -462,18 +527,18 @@ var Subscriber = function(n) {
462
527
  }(Subscription), SafeSubscriber = function(n) {
463
528
  __extends(e, n);
464
529
  function e(t, r, i) {
465
- var s = n.call(this) || this, o;
530
+ var s = n.call(this) || this, u;
466
531
  if (isFunction$1(t))
467
- o = t;
532
+ u = t;
468
533
  else if (t) {
469
- o = t.next, r = t.error, i = t.complete;
470
- var u;
471
- s && config.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
534
+ u = t.next, r = t.error, i = t.complete;
535
+ var o;
536
+ s && config.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
472
537
  return s.unsubscribe();
473
- }) : u = t, o = o == null ? void 0 : o.bind(u), r = r == null ? void 0 : r.bind(u), i = i == null ? void 0 : i.bind(u);
538
+ }) : o = t, u = u == null ? void 0 : u.bind(o), r = r == null ? void 0 : r.bind(o), i = i == null ? void 0 : i.bind(o);
474
539
  }
475
540
  return s.destination = {
476
- next: o ? wrapForErrorHandling(o) : noop,
541
+ next: u ? wrapForErrorHandling(u) : noop,
477
542
  error: wrapForErrorHandling(r != null ? r : defaultErrorHandler),
478
543
  complete: i ? wrapForErrorHandling(i) : noop
479
544
  }, s;
@@ -533,8 +598,8 @@ var Observable = function() {
533
598
  }, n.prototype.subscribe = function(e, t, r) {
534
599
  var i = this, s = isSubscriber(e) ? e : new SafeSubscriber(e, t, r);
535
600
  return errorContext(function() {
536
- var o = i, u = o.operator, c = o.source;
537
- s.add(u ? u.call(s, c) : c ? i._subscribe(s) : i._trySubscribe(s));
601
+ var u = i, o = u.operator, c = u.source;
602
+ s.add(o ? o.call(s, c) : c ? i._subscribe(s) : i._trySubscribe(s));
538
603
  }), s;
539
604
  }, n.prototype._trySubscribe = function(e) {
540
605
  try {
@@ -545,12 +610,12 @@ var Observable = function() {
545
610
  }, n.prototype.forEach = function(e, t) {
546
611
  var r = this;
547
612
  return t = getPromiseCtor(t), new t(function(i, s) {
548
- var o;
549
- o = r.subscribe(function(u) {
613
+ var u;
614
+ u = r.subscribe(function(o) {
550
615
  try {
551
- e(u);
616
+ e(o);
552
617
  } catch (c) {
553
- s(c), o == null || o.unsubscribe();
618
+ s(c), u == null || u.unsubscribe();
554
619
  }
555
620
  }, s, i);
556
621
  });
@@ -567,10 +632,10 @@ var Observable = function() {
567
632
  var t = this;
568
633
  return e = getPromiseCtor(e), new e(function(r, i) {
569
634
  var s;
570
- t.subscribe(function(o) {
571
- return s = o;
572
- }, function(o) {
573
- return i(o);
635
+ t.subscribe(function(u) {
636
+ return s = u;
637
+ }, function(u) {
638
+ return i(u);
574
639
  }, function() {
575
640
  return r(s);
576
641
  });
@@ -607,15 +672,15 @@ function operate(n) {
607
672
  }
608
673
  var OperatorSubscriber = function(n) {
609
674
  __extends(e, n);
610
- function e(t, r, i, s, o) {
611
- var u = n.call(this, t) || this;
612
- return u.onFinalize = o, u._next = r ? function(c) {
675
+ function e(t, r, i, s, u) {
676
+ var o = n.call(this, t) || this;
677
+ return o.onFinalize = u, o._next = r ? function(c) {
613
678
  try {
614
679
  r(c);
615
680
  } catch (a) {
616
681
  t.error(a);
617
682
  }
618
- } : n.prototype._next, u._error = s ? function(c) {
683
+ } : n.prototype._next, o._error = s ? function(c) {
619
684
  try {
620
685
  s(c);
621
686
  } catch (a) {
@@ -623,7 +688,7 @@ var OperatorSubscriber = function(n) {
623
688
  } finally {
624
689
  this.unsubscribe();
625
690
  }
626
- } : n.prototype._error, u._complete = i ? function() {
691
+ } : n.prototype._error, o._complete = i ? function() {
627
692
  try {
628
693
  i();
629
694
  } catch (c) {
@@ -631,7 +696,7 @@ var OperatorSubscriber = function(n) {
631
696
  } finally {
632
697
  this.unsubscribe();
633
698
  }
634
- } : n.prototype._complete, u;
699
+ } : n.prototype._complete, o;
635
700
  }
636
701
  return e.prototype.unsubscribe = function() {
637
702
  var t, r = this.closed;
@@ -721,14 +786,14 @@ function animationFrames(n) {
721
786
  function animationFramesFactory(n) {
722
787
  var e = animationFrameProvider.schedule;
723
788
  return new Observable(function(t) {
724
- var r = new Subscription(), i = n || performanceTimestampProvider, s = i.now(), o = function(u) {
789
+ var r = new Subscription(), i = n || performanceTimestampProvider, s = i.now(), u = function(o) {
725
790
  var c = i.now();
726
791
  t.next({
727
- timestamp: n ? c : u,
792
+ timestamp: n ? c : o,
728
793
  elapsed: c - s
729
- }), t.closed || r.add(e(o));
794
+ }), t.closed || r.add(e(u));
730
795
  };
731
- return r.add(e(o)), r;
796
+ return r.add(e(u)), r;
732
797
  });
733
798
  }
734
799
  var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(), ObjectUnsubscribedError = createErrorClass(function(n) {
@@ -752,9 +817,9 @@ var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(), ObjectUnsubscribedError
752
817
  errorContext(function() {
753
818
  var i, s;
754
819
  if (r._throwIfClosed(), !r.isStopped) {
755
- var o = r.observers.slice();
820
+ var u = r.observers.slice();
756
821
  try {
757
- for (var u = __values(o), c = u.next(); !c.done; c = u.next()) {
822
+ for (var o = __values(u), c = o.next(); !c.done; c = o.next()) {
758
823
  var a = c.value;
759
824
  a.next(t);
760
825
  }
@@ -762,7 +827,7 @@ var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(), ObjectUnsubscribedError
762
827
  i = { error: l };
763
828
  } finally {
764
829
  try {
765
- c && !c.done && (s = u.return) && s.call(u);
830
+ c && !c.done && (s = o.return) && s.call(o);
766
831
  } finally {
767
832
  if (i)
768
833
  throw i.error;
@@ -802,13 +867,13 @@ var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(), ObjectUnsubscribedError
802
867
  }, e.prototype._subscribe = function(t) {
803
868
  return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
804
869
  }, e.prototype._innerSubscribe = function(t) {
805
- var r = this, i = r.hasError, s = r.isStopped, o = r.observers;
806
- return i || s ? EMPTY_SUBSCRIPTION : (o.push(t), new Subscription(function() {
807
- return arrRemove(o, t);
870
+ var r = this, i = r.hasError, s = r.isStopped, u = r.observers;
871
+ return i || s ? EMPTY_SUBSCRIPTION : (u.push(t), new Subscription(function() {
872
+ return arrRemove(u, t);
808
873
  }));
809
874
  }, e.prototype._checkFinalizedStatuses = function(t) {
810
- var r = this, i = r.hasError, s = r.thrownError, o = r.isStopped;
811
- i ? t.error(s) : o && t.complete();
875
+ var r = this, i = r.hasError, s = r.thrownError, u = r.isStopped;
876
+ i ? t.error(s) : u && t.complete();
812
877
  }, e.prototype.asObservable = function() {
813
878
  var t = new Observable();
814
879
  return t.source = this, t;
@@ -870,16 +935,16 @@ var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(), ObjectUnsubscribedError
870
935
  return s._bufferSize = t, s._windowTime = r, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = r === 1 / 0, s._bufferSize = Math.max(1, t), s._windowTime = Math.max(1, r), s;
871
936
  }
872
937
  return e.prototype.next = function(t) {
873
- var r = this, i = r.isStopped, s = r._buffer, o = r._infiniteTimeWindow, u = r._timestampProvider, c = r._windowTime;
874
- i || (s.push(t), !o && s.push(u.now() + c)), this._trimBuffer(), n.prototype.next.call(this, t);
938
+ var r = this, i = r.isStopped, s = r._buffer, u = r._infiniteTimeWindow, o = r._timestampProvider, c = r._windowTime;
939
+ i || (s.push(t), !u && s.push(o.now() + c)), this._trimBuffer(), n.prototype.next.call(this, t);
875
940
  }, e.prototype._subscribe = function(t) {
876
941
  this._throwIfClosed(), this._trimBuffer();
877
- for (var r = this._innerSubscribe(t), i = this, s = i._infiniteTimeWindow, o = i._buffer, u = o.slice(), c = 0; c < u.length && !t.closed; c += s ? 1 : 2)
878
- t.next(u[c]);
942
+ for (var r = this._innerSubscribe(t), i = this, s = i._infiniteTimeWindow, u = i._buffer, o = u.slice(), c = 0; c < o.length && !t.closed; c += s ? 1 : 2)
943
+ t.next(o[c]);
879
944
  return this._checkFinalizedStatuses(t), r;
880
945
  }, e.prototype._trimBuffer = function() {
881
- var t = this, r = t._bufferSize, i = t._timestampProvider, s = t._buffer, o = t._infiniteTimeWindow, u = (o ? 1 : 2) * r;
882
- if (r < 1 / 0 && u < s.length && s.splice(0, s.length - u), !o) {
946
+ var t = this, r = t._bufferSize, i = t._timestampProvider, s = t._buffer, u = t._infiniteTimeWindow, o = (u ? 1 : 2) * r;
947
+ if (r < 1 / 0 && o < s.length && s.splice(0, s.length - o), !u) {
883
948
  for (var c = i.now(), a = 0, l = 1; l < s.length && s[l] <= c; l += 2)
884
949
  a = l;
885
950
  a && s.splice(0, a + 1);
@@ -892,8 +957,8 @@ var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(), ObjectUnsubscribedError
892
957
  return t._value = null, t._hasValue = !1, t._isComplete = !1, t;
893
958
  }
894
959
  return e.prototype._checkFinalizedStatuses = function(t) {
895
- var r = this, i = r.hasError, s = r._hasValue, o = r._value, u = r.thrownError, c = r.isStopped, a = r._isComplete;
896
- i ? t.error(u) : (c || a) && (s && t.next(o), t.complete());
960
+ var r = this, i = r.hasError, s = r._hasValue, u = r._value, o = r.thrownError, c = r.isStopped, a = r._isComplete;
961
+ i ? t.error(o) : (c || a) && (s && t.next(u), t.complete());
897
962
  }, e.prototype.next = function(t) {
898
963
  this.isStopped || (this._value = t, this._hasValue = !0);
899
964
  }, e.prototype.complete = function() {
@@ -950,8 +1015,8 @@ var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(), ObjectUnsubscribedError
950
1015
  var i = !1, s;
951
1016
  try {
952
1017
  this.work(t);
953
- } catch (o) {
954
- i = !0, s = !!o && o || new Error(o);
1018
+ } catch (u) {
1019
+ i = !0, s = !!u && u || new Error(u);
955
1020
  }
956
1021
  if (i)
957
1022
  return this.unsubscribe(), s;
@@ -1041,13 +1106,13 @@ var Immediate = {
1041
1106
  this._active = !0, this._scheduled = void 0;
1042
1107
  var r = this.actions, i, s = -1;
1043
1108
  t = t || r.shift();
1044
- var o = r.length;
1109
+ var u = r.length;
1045
1110
  do
1046
1111
  if (i = t.execute(t.state, t.delay))
1047
1112
  break;
1048
- while (++s < o && (t = r.shift()));
1113
+ while (++s < u && (t = r.shift()));
1049
1114
  if (this._active = !1, i) {
1050
- for (; ++s < o && (t = r.shift()); )
1115
+ for (; ++s < u && (t = r.shift()); )
1051
1116
  t.unsubscribe();
1052
1117
  throw i;
1053
1118
  }
@@ -1095,13 +1160,13 @@ var Immediate = {
1095
1160
  this._active = !0, this._scheduled = void 0;
1096
1161
  var r = this.actions, i, s = -1;
1097
1162
  t = t || r.shift();
1098
- var o = r.length;
1163
+ var u = r.length;
1099
1164
  do
1100
1165
  if (i = t.execute(t.state, t.delay))
1101
1166
  break;
1102
- while (++s < o && (t = r.shift()));
1167
+ while (++s < u && (t = r.shift()));
1103
1168
  if (this._active = !1, i) {
1104
- for (; ++s < o && (t = r.shift()); )
1169
+ for (; ++s < u && (t = r.shift()); )
1105
1170
  t.unsubscribe();
1106
1171
  throw i;
1107
1172
  }
@@ -1116,11 +1181,11 @@ var Immediate = {
1116
1181
  return i.maxFrames = r, i.frame = 0, i.index = -1, i;
1117
1182
  }
1118
1183
  return e.prototype.flush = function() {
1119
- for (var t = this, r = t.actions, i = t.maxFrames, s, o; (o = r[0]) && o.delay <= i && (r.shift(), this.frame = o.delay, !(s = o.execute(o.state, o.delay))); )
1184
+ for (var t = this, r = t.actions, i = t.maxFrames, s, u; (u = r[0]) && u.delay <= i && (r.shift(), this.frame = u.delay, !(s = u.execute(u.state, u.delay))); )
1120
1185
  ;
1121
1186
  if (s) {
1122
- for (; o = r.shift(); )
1123
- o.unsubscribe();
1187
+ for (; u = r.shift(); )
1188
+ u.unsubscribe();
1124
1189
  throw s;
1125
1190
  }
1126
1191
  }, e.frameTimeFactor = 10, e;
@@ -1240,8 +1305,8 @@ function scheduleIterable(n, e) {
1240
1305
  var r;
1241
1306
  return t.add(e.schedule(function() {
1242
1307
  r = n[iterator](), caughtSchedule(t, e, function() {
1243
- var i = r.next(), s = i.value, o = i.done;
1244
- o ? t.complete() : (t.next(s), this.schedule());
1308
+ var i = r.next(), s = i.value, u = i.done;
1309
+ u ? t.complete() : (t.next(s), this.schedule());
1245
1310
  });
1246
1311
  })), function() {
1247
1312
  return isFunction$1(r == null ? void 0 : r.return) && r.return();
@@ -1257,8 +1322,8 @@ function scheduleAsyncIterable(n, e) {
1257
1322
  var i = n[Symbol.asyncIterator]();
1258
1323
  r.add(e.schedule(function() {
1259
1324
  var s = this;
1260
- i.next().then(function(o) {
1261
- o.done ? t.complete() : (t.next(o.value), s.schedule());
1325
+ i.next().then(function(u) {
1326
+ u.done ? t.complete() : (t.next(u.value), s.schedule());
1262
1327
  });
1263
1328
  }));
1264
1329
  })), r;
@@ -1279,24 +1344,24 @@ function createInvalidObservableTypeError(n) {
1279
1344
  function readableStreamLikeToAsyncGenerator(n) {
1280
1345
  return __asyncGenerator(this, arguments, function() {
1281
1346
  var t, r, i, s;
1282
- return __generator(this, function(o) {
1283
- switch (o.label) {
1347
+ return __generator(this, function(u) {
1348
+ switch (u.label) {
1284
1349
  case 0:
1285
- t = n.getReader(), o.label = 1;
1350
+ t = n.getReader(), u.label = 1;
1286
1351
  case 1:
1287
- o.trys.push([1, , 9, 10]), o.label = 2;
1352
+ u.trys.push([1, , 9, 10]), u.label = 2;
1288
1353
  case 2:
1289
1354
  return [4, __await(t.read())];
1290
1355
  case 3:
1291
- return r = o.sent(), i = r.value, s = r.done, s ? [4, __await(void 0)] : [3, 5];
1356
+ return r = u.sent(), i = r.value, s = r.done, s ? [4, __await(void 0)] : [3, 5];
1292
1357
  case 4:
1293
- return [2, o.sent()];
1358
+ return [2, u.sent()];
1294
1359
  case 5:
1295
1360
  return [4, __await(i)];
1296
1361
  case 6:
1297
- return [4, o.sent()];
1362
+ return [4, u.sent()];
1298
1363
  case 7:
1299
- return o.sent(), [3, 2];
1364
+ return u.sent(), [3, 2];
1300
1365
  case 8:
1301
1366
  return [3, 10];
1302
1367
  case 9:
@@ -1381,12 +1446,12 @@ function fromIterable(n) {
1381
1446
  var t, r;
1382
1447
  try {
1383
1448
  for (var i = __values(n), s = i.next(); !s.done; s = i.next()) {
1384
- var o = s.value;
1385
- if (e.next(o), e.closed)
1449
+ var u = s.value;
1450
+ if (e.next(u), e.closed)
1386
1451
  return;
1387
1452
  }
1388
- } catch (u) {
1389
- t = { error: u };
1453
+ } catch (o) {
1454
+ t = { error: o };
1390
1455
  } finally {
1391
1456
  try {
1392
1457
  s && !s.done && (r = i.return) && r.call(i);
@@ -1411,7 +1476,7 @@ function fromReadableStreamLike(n) {
1411
1476
  function process$1(n, e) {
1412
1477
  var t, r, i, s;
1413
1478
  return __awaiter(this, void 0, void 0, function() {
1414
- var o, u;
1479
+ var u, o;
1415
1480
  return __generator(this, function(c) {
1416
1481
  switch (c.label) {
1417
1482
  case 0:
@@ -1421,7 +1486,7 @@ function process$1(n, e) {
1421
1486
  case 2:
1422
1487
  if (r = c.sent(), !!r.done)
1423
1488
  return [3, 4];
1424
- if (o = r.value, e.next(o), e.closed)
1489
+ if (u = r.value, e.next(u), e.closed)
1425
1490
  return [2];
1426
1491
  c.label = 3;
1427
1492
  case 3:
@@ -1429,7 +1494,7 @@ function process$1(n, e) {
1429
1494
  case 4:
1430
1495
  return [3, 11];
1431
1496
  case 5:
1432
- return u = c.sent(), i = { error: u }, [3, 11];
1497
+ return o = c.sent(), i = { error: o }, [3, 11];
1433
1498
  case 6:
1434
1499
  return c.trys.push([6, , 9, 10]), r && !r.done && (s = t.return) ? [4, s.call(t)] : [3, 8];
1435
1500
  case 7:
@@ -1493,8 +1558,8 @@ var Notification$1 = function() {
1493
1558
  return n.prototype.observe = function(e) {
1494
1559
  return observeNotification(this, e);
1495
1560
  }, n.prototype.do = function(e, t, r) {
1496
- var i = this, s = i.kind, o = i.value, u = i.error;
1497
- return s === "N" ? e == null ? void 0 : e(o) : s === "E" ? t == null ? void 0 : t(u) : r == null ? void 0 : r();
1561
+ var i = this, s = i.kind, u = i.value, o = i.error;
1562
+ return s === "N" ? e == null ? void 0 : e(u) : s === "E" ? t == null ? void 0 : t(o) : r == null ? void 0 : r();
1498
1563
  }, n.prototype.accept = function(e, t, r) {
1499
1564
  var i;
1500
1565
  return isFunction$1((i = e) === null || i === void 0 ? void 0 : i.next) ? this.observe(e) : this.do(e, t, r);
@@ -1514,10 +1579,10 @@ var Notification$1 = function() {
1514
1579
  }, n.completeNotification = new n("C"), n;
1515
1580
  }();
1516
1581
  function observeNotification(n, e) {
1517
- var t, r, i, s = n, o = s.kind, u = s.value, c = s.error;
1518
- if (typeof o != "string")
1582
+ var t, r, i, s = n, u = s.kind, o = s.value, c = s.error;
1583
+ if (typeof u != "string")
1519
1584
  throw new TypeError('Invalid notification, missing "kind"');
1520
- o === "N" ? (t = e.next) === null || t === void 0 || t.call(e, u) : o === "E" ? (r = e.error) === null || r === void 0 || r.call(e, c) : (i = e.complete) === null || i === void 0 || i.call(e);
1585
+ u === "N" ? (t = e.next) === null || t === void 0 || t.call(e, o) : u === "E" ? (r = e.error) === null || r === void 0 || r.call(e, c) : (i = e.complete) === null || i === void 0 || i.call(e);
1521
1586
  }
1522
1587
  function isObservable(n) {
1523
1588
  return !!n && (n instanceof Observable || isFunction$1(n.lift) && isFunction$1(n.subscribe));
@@ -1530,14 +1595,14 @@ var EmptyError = createErrorClass(function(n) {
1530
1595
  function lastValueFrom(n, e) {
1531
1596
  var t = typeof e == "object";
1532
1597
  return new Promise(function(r, i) {
1533
- var s = !1, o;
1598
+ var s = !1, u;
1534
1599
  n.subscribe({
1535
- next: function(u) {
1536
- o = u, s = !0;
1600
+ next: function(o) {
1601
+ u = o, s = !0;
1537
1602
  },
1538
1603
  error: i,
1539
1604
  complete: function() {
1540
- s ? r(o) : t ? r(e.defaultValue) : i(new EmptyError());
1605
+ s ? r(u) : t ? r(e.defaultValue) : i(new EmptyError());
1541
1606
  }
1542
1607
  });
1543
1608
  });
@@ -1546,8 +1611,8 @@ function firstValueFrom(n, e) {
1546
1611
  var t = typeof e == "object";
1547
1612
  return new Promise(function(r, i) {
1548
1613
  var s = new SafeSubscriber({
1549
- next: function(o) {
1550
- r(o), s.unsubscribe();
1614
+ next: function(u) {
1615
+ r(u), s.unsubscribe();
1551
1616
  },
1552
1617
  error: i,
1553
1618
  complete: function() {
@@ -1579,23 +1644,23 @@ var TimeoutError = createErrorClass(function(n) {
1579
1644
  };
1580
1645
  });
1581
1646
  function timeout(n, e) {
1582
- var t = isValidDate(n) ? { first: n } : typeof n == "number" ? { each: n } : n, r = t.first, i = t.each, s = t.with, o = s === void 0 ? timeoutErrorFactory : s, u = t.scheduler, c = u === void 0 ? e != null ? e : asyncScheduler : u, a = t.meta, l = a === void 0 ? null : a;
1647
+ var t = isValidDate(n) ? { first: n } : typeof n == "number" ? { each: n } : n, r = t.first, i = t.each, s = t.with, u = s === void 0 ? timeoutErrorFactory : s, o = t.scheduler, c = o === void 0 ? e != null ? e : asyncScheduler : o, a = t.meta, l = a === void 0 ? null : a;
1583
1648
  if (r == null && i == null)
1584
1649
  throw new TypeError("No timeout provided.");
1585
- return operate(function(d, f) {
1586
- var p, E, h = null, v = 0, g = function(b) {
1587
- E = caughtSchedule(f, c, function() {
1588
- p.unsubscribe(), innerFrom(o({
1650
+ return operate(function(p, f) {
1651
+ var d, m, h = null, E = 0, g = function(b) {
1652
+ m = caughtSchedule(f, c, function() {
1653
+ d.unsubscribe(), innerFrom(u({
1589
1654
  meta: l,
1590
1655
  lastValue: h,
1591
- seen: v
1656
+ seen: E
1592
1657
  })).subscribe(f);
1593
1658
  }, b);
1594
1659
  };
1595
- p = d.subscribe(new OperatorSubscriber(f, function(b) {
1596
- E == null || E.unsubscribe(), v++, f.next(h = b), i > 0 && g(i);
1660
+ d = p.subscribe(new OperatorSubscriber(f, function(b) {
1661
+ m == null || m.unsubscribe(), E++, f.next(h = b), i > 0 && g(i);
1597
1662
  }, void 0, void 0, function() {
1598
- E != null && E.closed || E == null || E.unsubscribe(), h = null;
1663
+ m != null && m.closed || m == null || m.unsubscribe(), h = null;
1599
1664
  })), g(r != null ? typeof r == "number" ? r : +r - c.now() : i);
1600
1665
  });
1601
1666
  }
@@ -1658,28 +1723,28 @@ function bindCallbackInternals(n, e, t, r) {
1658
1723
  i[s] = arguments[s];
1659
1724
  return bindCallbackInternals(n, e).apply(this, i).pipe(subscribeOn(r), observeOn(r));
1660
1725
  } : function() {
1661
- for (var i = this, s = [], o = 0; o < arguments.length; o++)
1662
- s[o] = arguments[o];
1663
- var u = new AsyncSubject(), c = !0;
1726
+ for (var i = this, s = [], u = 0; u < arguments.length; u++)
1727
+ s[u] = arguments[u];
1728
+ var o = new AsyncSubject(), c = !0;
1664
1729
  return new Observable(function(a) {
1665
- var l = u.subscribe(a);
1730
+ var l = o.subscribe(a);
1666
1731
  if (c) {
1667
1732
  c = !1;
1668
- var d = !1, f = !1;
1733
+ var p = !1, f = !1;
1669
1734
  e.apply(i, __spreadArray(__spreadArray([], __read(s)), [
1670
1735
  function() {
1671
- for (var p = [], E = 0; E < arguments.length; E++)
1672
- p[E] = arguments[E];
1736
+ for (var d = [], m = 0; m < arguments.length; m++)
1737
+ d[m] = arguments[m];
1673
1738
  if (n) {
1674
- var h = p.shift();
1739
+ var h = d.shift();
1675
1740
  if (h != null) {
1676
- u.error(h);
1741
+ o.error(h);
1677
1742
  return;
1678
1743
  }
1679
1744
  }
1680
- u.next(1 < p.length ? p : p[0]), f = !0, d && u.complete();
1745
+ o.next(1 < d.length ? d : d[0]), f = !0, p && o.complete();
1681
1746
  }
1682
- ])), f && u.complete(), d = !0;
1747
+ ])), f && o.complete(), p = !0;
1683
1748
  }
1684
1749
  return l;
1685
1750
  });
@@ -1720,24 +1785,24 @@ function createObject(n, e) {
1720
1785
  function combineLatest$1() {
1721
1786
  for (var n = [], e = 0; e < arguments.length; e++)
1722
1787
  n[e] = arguments[e];
1723
- var t = popScheduler(n), r = popResultSelector(n), i = argsArgArrayOrObject(n), s = i.args, o = i.keys;
1788
+ var t = popScheduler(n), r = popResultSelector(n), i = argsArgArrayOrObject(n), s = i.args, u = i.keys;
1724
1789
  if (s.length === 0)
1725
1790
  return from([], t);
1726
- var u = new Observable(combineLatestInit(s, t, o ? function(c) {
1727
- return createObject(o, c);
1791
+ var o = new Observable(combineLatestInit(s, t, u ? function(c) {
1792
+ return createObject(u, c);
1728
1793
  } : identity));
1729
- return r ? u.pipe(mapOneOrManyArgs(r)) : u;
1794
+ return r ? o.pipe(mapOneOrManyArgs(r)) : o;
1730
1795
  }
1731
1796
  function combineLatestInit(n, e, t) {
1732
1797
  return t === void 0 && (t = identity), function(r) {
1733
1798
  maybeSchedule(e, function() {
1734
- for (var i = n.length, s = new Array(i), o = i, u = i, c = function(l) {
1799
+ for (var i = n.length, s = new Array(i), u = i, o = i, c = function(l) {
1735
1800
  maybeSchedule(e, function() {
1736
- var d = from(n[l], e), f = !1;
1737
- d.subscribe(new OperatorSubscriber(r, function(p) {
1738
- s[l] = p, f || (f = !0, u--), u || r.next(t(s.slice()));
1801
+ var p = from(n[l], e), f = !1;
1802
+ p.subscribe(new OperatorSubscriber(r, function(d) {
1803
+ s[l] = d, f || (f = !0, o--), o || r.next(t(s.slice()));
1739
1804
  }, function() {
1740
- --o || r.complete();
1805
+ --u || r.complete();
1741
1806
  }));
1742
1807
  }, r);
1743
1808
  }, a = 0; a < i; a++)
@@ -1748,27 +1813,27 @@ function combineLatestInit(n, e, t) {
1748
1813
  function maybeSchedule(n, e, t) {
1749
1814
  n ? t.add(n.schedule(e)) : e();
1750
1815
  }
1751
- function mergeInternals(n, e, t, r, i, s, o, u) {
1752
- var c = [], a = 0, l = 0, d = !1, f = function() {
1753
- d && !c.length && !a && e.complete();
1754
- }, p = function(h) {
1755
- return a < r ? E(h) : c.push(h);
1756
- }, E = function(h) {
1816
+ function mergeInternals(n, e, t, r, i, s, u, o) {
1817
+ var c = [], a = 0, l = 0, p = !1, f = function() {
1818
+ p && !c.length && !a && e.complete();
1819
+ }, d = function(h) {
1820
+ return a < r ? m(h) : c.push(h);
1821
+ }, m = function(h) {
1757
1822
  s && e.next(h), a++;
1758
- var v = !1;
1823
+ var E = !1;
1759
1824
  innerFrom(t(h, l++)).subscribe(new OperatorSubscriber(e, function(g) {
1760
- i == null || i(g), s ? p(g) : e.next(g);
1825
+ i == null || i(g), s ? d(g) : e.next(g);
1761
1826
  }, function() {
1762
- v = !0;
1827
+ E = !0;
1763
1828
  }, void 0, function() {
1764
- if (v)
1829
+ if (E)
1765
1830
  try {
1766
1831
  a--;
1767
1832
  for (var g = function() {
1768
1833
  var b = c.shift();
1769
- o ? e.add(o.schedule(function() {
1770
- return E(b);
1771
- })) : E(b);
1834
+ u ? e.add(u.schedule(function() {
1835
+ return m(b);
1836
+ })) : m(b);
1772
1837
  }; c.length && a < r; )
1773
1838
  g();
1774
1839
  f();
@@ -1777,16 +1842,16 @@ function mergeInternals(n, e, t, r, i, s, o, u) {
1777
1842
  }
1778
1843
  }));
1779
1844
  };
1780
- return n.subscribe(new OperatorSubscriber(e, p, function() {
1781
- d = !0, f();
1845
+ return n.subscribe(new OperatorSubscriber(e, d, function() {
1846
+ p = !0, f();
1782
1847
  })), function() {
1783
- u == null || u();
1848
+ o == null || o();
1784
1849
  };
1785
1850
  }
1786
1851
  function mergeMap(n, e, t) {
1787
1852
  return t === void 0 && (t = 1 / 0), isFunction$1(e) ? mergeMap(function(r, i) {
1788
- return map(function(s, o) {
1789
- return e(r, s, i, o);
1853
+ return map(function(s, u) {
1854
+ return e(r, s, i, u);
1790
1855
  })(innerFrom(n(r, i)));
1791
1856
  }, t) : (typeof e == "number" && (t = e), operate(function(r, i) {
1792
1857
  return mergeInternals(r, i, n, t);
@@ -1816,61 +1881,61 @@ var DEFAULT_CONFIG$1 = {
1816
1881
  };
1817
1882
  function connectable(n, e) {
1818
1883
  e === void 0 && (e = DEFAULT_CONFIG$1);
1819
- var t = null, r = e.connector, i = e.resetOnDisconnect, s = i === void 0 ? !0 : i, o = r(), u = new Observable(function(c) {
1820
- return o.subscribe(c);
1884
+ var t = null, r = e.connector, i = e.resetOnDisconnect, s = i === void 0 ? !0 : i, u = r(), o = new Observable(function(c) {
1885
+ return u.subscribe(c);
1821
1886
  });
1822
- return u.connect = function() {
1887
+ return o.connect = function() {
1823
1888
  return (!t || t.closed) && (t = defer(function() {
1824
1889
  return n;
1825
- }).subscribe(o), s && t.add(function() {
1826
- return o = r();
1890
+ }).subscribe(u), s && t.add(function() {
1891
+ return u = r();
1827
1892
  })), t;
1828
- }, u;
1893
+ }, o;
1829
1894
  }
1830
1895
  function forkJoin() {
1831
1896
  for (var n = [], e = 0; e < arguments.length; e++)
1832
1897
  n[e] = arguments[e];
1833
- var t = popResultSelector(n), r = argsArgArrayOrObject(n), i = r.args, s = r.keys, o = new Observable(function(u) {
1898
+ var t = popResultSelector(n), r = argsArgArrayOrObject(n), i = r.args, s = r.keys, u = new Observable(function(o) {
1834
1899
  var c = i.length;
1835
1900
  if (!c) {
1836
- u.complete();
1901
+ o.complete();
1837
1902
  return;
1838
1903
  }
1839
- for (var a = new Array(c), l = c, d = c, f = function(E) {
1904
+ for (var a = new Array(c), l = c, p = c, f = function(m) {
1840
1905
  var h = !1;
1841
- innerFrom(i[E]).subscribe(new OperatorSubscriber(u, function(v) {
1842
- h || (h = !0, d--), a[E] = v;
1906
+ innerFrom(i[m]).subscribe(new OperatorSubscriber(o, function(E) {
1907
+ h || (h = !0, p--), a[m] = E;
1843
1908
  }, function() {
1844
- (!--l || !h) && (d || u.next(s ? createObject(s, a) : a), u.complete());
1909
+ (!--l || !h) && (p || o.next(s ? createObject(s, a) : a), o.complete());
1845
1910
  }));
1846
- }, p = 0; p < c; p++)
1847
- f(p);
1911
+ }, d = 0; d < c; d++)
1912
+ f(d);
1848
1913
  });
1849
- return t ? o.pipe(mapOneOrManyArgs(t)) : o;
1914
+ return t ? u.pipe(mapOneOrManyArgs(t)) : u;
1850
1915
  }
1851
1916
  var nodeEventEmitterMethods = ["addListener", "removeListener"], eventTargetMethods = ["addEventListener", "removeEventListener"], jqueryMethods = ["on", "off"];
1852
1917
  function fromEvent(n, e, t, r) {
1853
1918
  if (isFunction$1(t) && (r = t, t = void 0), r)
1854
1919
  return fromEvent(n, e, t).pipe(mapOneOrManyArgs(r));
1855
- var i = __read(isEventTarget(n) ? eventTargetMethods.map(function(u) {
1920
+ var i = __read(isEventTarget(n) ? eventTargetMethods.map(function(o) {
1856
1921
  return function(c) {
1857
- return n[u](e, c, t);
1922
+ return n[o](e, c, t);
1858
1923
  };
1859
- }) : isNodeStyleEventEmitter(n) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(n, e)) : isJQueryStyleEventEmitter(n) ? jqueryMethods.map(toCommonHandlerRegistry(n, e)) : [], 2), s = i[0], o = i[1];
1924
+ }) : isNodeStyleEventEmitter(n) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(n, e)) : isJQueryStyleEventEmitter(n) ? jqueryMethods.map(toCommonHandlerRegistry(n, e)) : [], 2), s = i[0], u = i[1];
1860
1925
  if (!s && isArrayLike(n))
1861
- return mergeMap(function(u) {
1862
- return fromEvent(u, e, t);
1926
+ return mergeMap(function(o) {
1927
+ return fromEvent(o, e, t);
1863
1928
  })(internalFromArray(n));
1864
1929
  if (!s)
1865
1930
  throw new TypeError("Invalid event target");
1866
- return new Observable(function(u) {
1931
+ return new Observable(function(o) {
1867
1932
  var c = function() {
1868
1933
  for (var a = [], l = 0; l < arguments.length; l++)
1869
1934
  a[l] = arguments[l];
1870
- return u.next(1 < a.length ? a : a[0]);
1935
+ return o.next(1 < a.length ? a : a[0]);
1871
1936
  };
1872
1937
  return s(c), function() {
1873
- return o(c);
1938
+ return u(c);
1874
1939
  };
1875
1940
  });
1876
1941
  }
@@ -1893,9 +1958,9 @@ function isEventTarget(n) {
1893
1958
  function fromEventPattern(n, e, t) {
1894
1959
  return t ? fromEventPattern(n, e).pipe(mapOneOrManyArgs(t)) : new Observable(function(r) {
1895
1960
  var i = function() {
1896
- for (var o = [], u = 0; u < arguments.length; u++)
1897
- o[u] = arguments[u];
1898
- return r.next(o.length === 1 ? o[0] : o);
1961
+ for (var u = [], o = 0; o < arguments.length; o++)
1962
+ u[o] = arguments[o];
1963
+ return r.next(u.length === 1 ? u[0] : u);
1899
1964
  }, s = n(i);
1900
1965
  return isFunction$1(e) ? function() {
1901
1966
  return e(i, s);
@@ -1903,18 +1968,18 @@ function fromEventPattern(n, e, t) {
1903
1968
  });
1904
1969
  }
1905
1970
  function generate(n, e, t, r, i) {
1906
- var s, o, u, c;
1907
- arguments.length === 1 ? (s = n, c = s.initialState, e = s.condition, t = s.iterate, o = s.resultSelector, u = o === void 0 ? identity : o, i = s.scheduler) : (c = n, !r || isScheduler(r) ? (u = identity, i = r) : u = r);
1971
+ var s, u, o, c;
1972
+ arguments.length === 1 ? (s = n, c = s.initialState, e = s.condition, t = s.iterate, u = s.resultSelector, o = u === void 0 ? identity : u, i = s.scheduler) : (c = n, !r || isScheduler(r) ? (o = identity, i = r) : o = r);
1908
1973
  function a() {
1909
1974
  var l;
1910
- return __generator(this, function(d) {
1911
- switch (d.label) {
1975
+ return __generator(this, function(p) {
1976
+ switch (p.label) {
1912
1977
  case 0:
1913
- l = c, d.label = 1;
1978
+ l = c, p.label = 1;
1914
1979
  case 1:
1915
- return !e || e(l) ? [4, u(l)] : [3, 4];
1980
+ return !e || e(l) ? [4, o(l)] : [3, 4];
1916
1981
  case 2:
1917
- d.sent(), d.label = 3;
1982
+ p.sent(), p.label = 3;
1918
1983
  case 3:
1919
1984
  return l = t(l), [3, 1];
1920
1985
  case 4:
@@ -1937,9 +2002,9 @@ function timer(n, e, t) {
1937
2002
  return e != null && (isScheduler(e) ? t = e : r = e), new Observable(function(i) {
1938
2003
  var s = isValidDate(n) ? +n - t.now() : n;
1939
2004
  s < 0 && (s = 0);
1940
- var o = 0;
2005
+ var u = 0;
1941
2006
  return t.schedule(function() {
1942
- i.closed || (i.next(o++), 0 <= r ? this.schedule(void 0, r) : i.complete());
2007
+ i.closed || (i.next(u++), 0 <= r ? this.schedule(void 0, r) : i.complete());
1943
2008
  }, s);
1944
2009
  });
1945
2010
  }
@@ -1965,22 +2030,22 @@ function onErrorResumeNext$1() {
1965
2030
  n[e] = arguments[e];
1966
2031
  var t = argsOrArgArray(n);
1967
2032
  return operate(function(r, i) {
1968
- var s = __spreadArray([r], __read(t)), o = function() {
2033
+ var s = __spreadArray([r], __read(t)), u = function() {
1969
2034
  if (!i.closed)
1970
2035
  if (s.length > 0) {
1971
- var u = void 0;
2036
+ var o = void 0;
1972
2037
  try {
1973
- u = innerFrom(s.shift());
2038
+ o = innerFrom(s.shift());
1974
2039
  } catch {
1975
- o();
2040
+ u();
1976
2041
  return;
1977
2042
  }
1978
2043
  var c = new OperatorSubscriber(i, void 0, noop, noop);
1979
- i.add(u.subscribe(c)), c.add(o);
2044
+ i.add(o.subscribe(c)), c.add(u);
1980
2045
  } else
1981
2046
  i.complete();
1982
2047
  };
1983
- o();
2048
+ u();
1984
2049
  });
1985
2050
  }
1986
2051
  function onErrorResumeNext() {
@@ -2015,13 +2080,13 @@ function race() {
2015
2080
  function raceInit(n) {
2016
2081
  return function(e) {
2017
2082
  for (var t = [], r = function(s) {
2018
- t.push(innerFrom(n[s]).subscribe(new OperatorSubscriber(e, function(o) {
2083
+ t.push(innerFrom(n[s]).subscribe(new OperatorSubscriber(e, function(u) {
2019
2084
  if (t) {
2020
- for (var u = 0; u < t.length; u++)
2021
- u !== s && t[u].unsubscribe();
2085
+ for (var o = 0; o < t.length; o++)
2086
+ o !== s && t[o].unsubscribe();
2022
2087
  t = null;
2023
2088
  }
2024
- e.next(o);
2089
+ e.next(u);
2025
2090
  })));
2026
2091
  }, i = 0; t && !e.closed && i < n.length; i++)
2027
2092
  r(i);
@@ -2057,50 +2122,50 @@ function zip$1() {
2057
2122
  return r.length ? new Observable(function(i) {
2058
2123
  var s = r.map(function() {
2059
2124
  return [];
2060
- }), o = r.map(function() {
2125
+ }), u = r.map(function() {
2061
2126
  return !1;
2062
2127
  });
2063
2128
  i.add(function() {
2064
- s = o = null;
2129
+ s = u = null;
2065
2130
  });
2066
- for (var u = function(a) {
2131
+ for (var o = function(a) {
2067
2132
  innerFrom(r[a]).subscribe(new OperatorSubscriber(i, function(l) {
2068
2133
  if (s[a].push(l), s.every(function(f) {
2069
2134
  return f.length;
2070
2135
  })) {
2071
- var d = s.map(function(f) {
2136
+ var p = s.map(function(f) {
2072
2137
  return f.shift();
2073
2138
  });
2074
- i.next(t ? t.apply(void 0, __spreadArray([], __read(d))) : d), s.some(function(f, p) {
2075
- return !f.length && o[p];
2139
+ i.next(t ? t.apply(void 0, __spreadArray([], __read(p))) : p), s.some(function(f, d) {
2140
+ return !f.length && u[d];
2076
2141
  }) && i.complete();
2077
2142
  }
2078
2143
  }, function() {
2079
- o[a] = !0, !s[a].length && i.complete();
2144
+ u[a] = !0, !s[a].length && i.complete();
2080
2145
  }));
2081
2146
  }, c = 0; !i.closed && c < r.length; c++)
2082
- u(c);
2147
+ o(c);
2083
2148
  return function() {
2084
- s = o = null;
2149
+ s = u = null;
2085
2150
  };
2086
2151
  }) : EMPTY;
2087
2152
  }
2088
2153
  function audit(n) {
2089
2154
  return operate(function(e, t) {
2090
- var r = !1, i = null, s = null, o = !1, u = function() {
2155
+ var r = !1, i = null, s = null, u = !1, o = function() {
2091
2156
  if (s == null || s.unsubscribe(), s = null, r) {
2092
2157
  r = !1;
2093
2158
  var a = i;
2094
2159
  i = null, t.next(a);
2095
2160
  }
2096
- o && t.complete();
2161
+ u && t.complete();
2097
2162
  }, c = function() {
2098
- s = null, o && t.complete();
2163
+ s = null, u && t.complete();
2099
2164
  };
2100
2165
  e.subscribe(new OperatorSubscriber(t, function(a) {
2101
- r = !0, i = a, s || innerFrom(n(a)).subscribe(s = new OperatorSubscriber(t, u, c));
2166
+ r = !0, i = a, s || innerFrom(n(a)).subscribe(s = new OperatorSubscriber(t, o, c));
2102
2167
  }, function() {
2103
- o = !0, (!r || !s || s.closed) && t.complete();
2168
+ u = !0, (!r || !s || s.closed) && t.complete();
2104
2169
  }));
2105
2170
  });
2106
2171
  }
@@ -2127,55 +2192,55 @@ function buffer(n) {
2127
2192
  function bufferCount(n, e) {
2128
2193
  return e === void 0 && (e = null), e = e != null ? e : n, operate(function(t, r) {
2129
2194
  var i = [], s = 0;
2130
- t.subscribe(new OperatorSubscriber(r, function(o) {
2131
- var u, c, a, l, d = null;
2195
+ t.subscribe(new OperatorSubscriber(r, function(u) {
2196
+ var o, c, a, l, p = null;
2132
2197
  s++ % e === 0 && i.push([]);
2133
2198
  try {
2134
- for (var f = __values(i), p = f.next(); !p.done; p = f.next()) {
2135
- var E = p.value;
2136
- E.push(o), n <= E.length && (d = d != null ? d : [], d.push(E));
2199
+ for (var f = __values(i), d = f.next(); !d.done; d = f.next()) {
2200
+ var m = d.value;
2201
+ m.push(u), n <= m.length && (p = p != null ? p : [], p.push(m));
2137
2202
  }
2138
2203
  } catch (g) {
2139
- u = { error: g };
2204
+ o = { error: g };
2140
2205
  } finally {
2141
2206
  try {
2142
- p && !p.done && (c = f.return) && c.call(f);
2207
+ d && !d.done && (c = f.return) && c.call(f);
2143
2208
  } finally {
2144
- if (u)
2145
- throw u.error;
2209
+ if (o)
2210
+ throw o.error;
2146
2211
  }
2147
2212
  }
2148
- if (d)
2213
+ if (p)
2149
2214
  try {
2150
- for (var h = __values(d), v = h.next(); !v.done; v = h.next()) {
2151
- var E = v.value;
2152
- arrRemove(i, E), r.next(E);
2215
+ for (var h = __values(p), E = h.next(); !E.done; E = h.next()) {
2216
+ var m = E.value;
2217
+ arrRemove(i, m), r.next(m);
2153
2218
  }
2154
2219
  } catch (g) {
2155
2220
  a = { error: g };
2156
2221
  } finally {
2157
2222
  try {
2158
- v && !v.done && (l = h.return) && l.call(h);
2223
+ E && !E.done && (l = h.return) && l.call(h);
2159
2224
  } finally {
2160
2225
  if (a)
2161
2226
  throw a.error;
2162
2227
  }
2163
2228
  }
2164
2229
  }, function() {
2165
- var o, u;
2230
+ var u, o;
2166
2231
  try {
2167
2232
  for (var c = __values(i), a = c.next(); !a.done; a = c.next()) {
2168
2233
  var l = a.value;
2169
2234
  r.next(l);
2170
2235
  }
2171
- } catch (d) {
2172
- o = { error: d };
2236
+ } catch (p) {
2237
+ u = { error: p };
2173
2238
  } finally {
2174
2239
  try {
2175
- a && !a.done && (u = c.return) && u.call(c);
2240
+ a && !a.done && (o = c.return) && o.call(c);
2176
2241
  } finally {
2177
- if (o)
2178
- throw o.error;
2242
+ if (u)
2243
+ throw u.error;
2179
2244
  }
2180
2245
  }
2181
2246
  r.complete();
@@ -2187,17 +2252,17 @@ function bufferCount(n, e) {
2187
2252
  function bufferTime(n) {
2188
2253
  for (var e, t, r = [], i = 1; i < arguments.length; i++)
2189
2254
  r[i - 1] = arguments[i];
2190
- var s = (e = popScheduler(r)) !== null && e !== void 0 ? e : asyncScheduler, o = (t = r[0]) !== null && t !== void 0 ? t : null, u = r[1] || 1 / 0;
2255
+ var s = (e = popScheduler(r)) !== null && e !== void 0 ? e : asyncScheduler, u = (t = r[0]) !== null && t !== void 0 ? t : null, o = r[1] || 1 / 0;
2191
2256
  return operate(function(c, a) {
2192
- var l = [], d = !1, f = function(h) {
2193
- var v = h.buffer, g = h.subs;
2194
- g.unsubscribe(), arrRemove(l, h), a.next(v), d && p();
2195
- }, p = function() {
2257
+ var l = [], p = !1, f = function(h) {
2258
+ var E = h.buffer, g = h.subs;
2259
+ g.unsubscribe(), arrRemove(l, h), a.next(E), p && d();
2260
+ }, d = function() {
2196
2261
  if (l) {
2197
2262
  var h = new Subscription();
2198
2263
  a.add(h);
2199
- var v = [], g = {
2200
- buffer: v,
2264
+ var E = [], g = {
2265
+ buffer: E,
2201
2266
  subs: h
2202
2267
  };
2203
2268
  l.push(g), h.add(s.schedule(function() {
@@ -2205,61 +2270,61 @@ function bufferTime(n) {
2205
2270
  }, n));
2206
2271
  }
2207
2272
  };
2208
- o !== null && o >= 0 ? a.add(s.schedule(function() {
2209
- p(), !this.closed && a.add(this.schedule(null, o));
2210
- }, o)) : d = !0, p();
2211
- var E = new OperatorSubscriber(a, function(h) {
2212
- var v, g, b = l.slice();
2273
+ u !== null && u >= 0 ? a.add(s.schedule(function() {
2274
+ d(), !this.closed && a.add(this.schedule(null, u));
2275
+ }, u)) : p = !0, d();
2276
+ var m = new OperatorSubscriber(a, function(h) {
2277
+ var E, g, b = l.slice();
2213
2278
  try {
2214
- for (var F = __values(b), A = F.next(); !A.done; A = F.next()) {
2215
- var w = A.value, C = w.buffer;
2216
- C.push(h), u <= C.length && f(w);
2279
+ for (var w = __values(b), y = w.next(); !y.done; y = w.next()) {
2280
+ var A = y.value, F = A.buffer;
2281
+ F.push(h), o <= F.length && f(A);
2217
2282
  }
2218
- } catch (R) {
2219
- v = { error: R };
2283
+ } catch (C) {
2284
+ E = { error: C };
2220
2285
  } finally {
2221
2286
  try {
2222
- A && !A.done && (g = F.return) && g.call(F);
2287
+ y && !y.done && (g = w.return) && g.call(w);
2223
2288
  } finally {
2224
- if (v)
2225
- throw v.error;
2289
+ if (E)
2290
+ throw E.error;
2226
2291
  }
2227
2292
  }
2228
2293
  }, function() {
2229
2294
  for (; l != null && l.length; )
2230
2295
  a.next(l.shift().buffer);
2231
- E == null || E.unsubscribe(), a.complete(), a.unsubscribe();
2296
+ m == null || m.unsubscribe(), a.complete(), a.unsubscribe();
2232
2297
  }, void 0, function() {
2233
2298
  return l = null;
2234
2299
  });
2235
- c.subscribe(E);
2300
+ c.subscribe(m);
2236
2301
  });
2237
2302
  }
2238
2303
  function bufferToggle(n, e) {
2239
2304
  return operate(function(t, r) {
2240
2305
  var i = [];
2241
2306
  innerFrom(n).subscribe(new OperatorSubscriber(r, function(s) {
2242
- var o = [];
2243
- i.push(o);
2244
- var u = new Subscription(), c = function() {
2245
- arrRemove(i, o), r.next(o), u.unsubscribe();
2307
+ var u = [];
2308
+ i.push(u);
2309
+ var o = new Subscription(), c = function() {
2310
+ arrRemove(i, u), r.next(u), o.unsubscribe();
2246
2311
  };
2247
- u.add(innerFrom(e(s)).subscribe(new OperatorSubscriber(r, c, noop)));
2312
+ o.add(innerFrom(e(s)).subscribe(new OperatorSubscriber(r, c, noop)));
2248
2313
  }, noop)), t.subscribe(new OperatorSubscriber(r, function(s) {
2249
- var o, u;
2314
+ var u, o;
2250
2315
  try {
2251
2316
  for (var c = __values(i), a = c.next(); !a.done; a = c.next()) {
2252
2317
  var l = a.value;
2253
2318
  l.push(s);
2254
2319
  }
2255
- } catch (d) {
2256
- o = { error: d };
2320
+ } catch (p) {
2321
+ u = { error: p };
2257
2322
  } finally {
2258
2323
  try {
2259
- a && !a.done && (u = c.return) && u.call(c);
2324
+ a && !a.done && (o = c.return) && o.call(c);
2260
2325
  } finally {
2261
- if (o)
2262
- throw o.error;
2326
+ if (u)
2327
+ throw u.error;
2263
2328
  }
2264
2329
  }
2265
2330
  }, function() {
@@ -2273,11 +2338,11 @@ function bufferWhen(n) {
2273
2338
  return operate(function(e, t) {
2274
2339
  var r = null, i = null, s = function() {
2275
2340
  i == null || i.unsubscribe();
2276
- var o = r;
2277
- r = [], o && t.next(o), innerFrom(n()).subscribe(i = new OperatorSubscriber(t, s, noop));
2341
+ var u = r;
2342
+ r = [], u && t.next(u), innerFrom(n()).subscribe(i = new OperatorSubscriber(t, s, noop));
2278
2343
  };
2279
- s(), e.subscribe(new OperatorSubscriber(t, function(o) {
2280
- return r == null ? void 0 : r.push(o);
2344
+ s(), e.subscribe(new OperatorSubscriber(t, function(u) {
2345
+ return r == null ? void 0 : r.push(u);
2281
2346
  }, function() {
2282
2347
  r && t.next(r), t.complete();
2283
2348
  }, void 0, function() {
@@ -2288,19 +2353,19 @@ function bufferWhen(n) {
2288
2353
  function catchError(n) {
2289
2354
  return operate(function(e, t) {
2290
2355
  var r = null, i = !1, s;
2291
- r = e.subscribe(new OperatorSubscriber(t, void 0, void 0, function(o) {
2292
- s = innerFrom(n(o, catchError(n)(e))), r ? (r.unsubscribe(), r = null, s.subscribe(t)) : i = !0;
2356
+ r = e.subscribe(new OperatorSubscriber(t, void 0, void 0, function(u) {
2357
+ s = innerFrom(n(u, catchError(n)(e))), r ? (r.unsubscribe(), r = null, s.subscribe(t)) : i = !0;
2293
2358
  })), i && (r.unsubscribe(), r = null, s.subscribe(t));
2294
2359
  });
2295
2360
  }
2296
2361
  function scanInternals(n, e, t, r, i) {
2297
- return function(s, o) {
2298
- var u = t, c = e, a = 0;
2299
- s.subscribe(new OperatorSubscriber(o, function(l) {
2300
- var d = a++;
2301
- c = u ? n(c, l, d) : (u = !0, l), r && o.next(c);
2362
+ return function(s, u) {
2363
+ var o = t, c = e, a = 0;
2364
+ s.subscribe(new OperatorSubscriber(u, function(l) {
2365
+ var p = a++;
2366
+ c = o ? n(c, l, p) : (o = !0, l), r && u.next(c);
2302
2367
  }, i && function() {
2303
- u && o.next(c), o.complete();
2368
+ o && u.next(c), u.complete();
2304
2369
  }));
2305
2370
  };
2306
2371
  }
@@ -2385,17 +2450,17 @@ function count(n) {
2385
2450
  }
2386
2451
  function debounce(n) {
2387
2452
  return operate(function(e, t) {
2388
- var r = !1, i = null, s = null, o = function() {
2453
+ var r = !1, i = null, s = null, u = function() {
2389
2454
  if (s == null || s.unsubscribe(), s = null, r) {
2390
2455
  r = !1;
2391
- var u = i;
2392
- i = null, t.next(u);
2456
+ var o = i;
2457
+ i = null, t.next(o);
2393
2458
  }
2394
2459
  };
2395
- e.subscribe(new OperatorSubscriber(t, function(u) {
2396
- s == null || s.unsubscribe(), r = !0, i = u, s = new OperatorSubscriber(t, o, noop), innerFrom(n(u)).subscribe(s);
2460
+ e.subscribe(new OperatorSubscriber(t, function(o) {
2461
+ s == null || s.unsubscribe(), r = !0, i = o, s = new OperatorSubscriber(t, u, noop), innerFrom(n(o)).subscribe(s);
2397
2462
  }, function() {
2398
- o(), t.complete();
2463
+ u(), t.complete();
2399
2464
  }, void 0, function() {
2400
2465
  i = s = null;
2401
2466
  }));
@@ -2403,7 +2468,7 @@ function debounce(n) {
2403
2468
  }
2404
2469
  function debounceTime(n, e) {
2405
2470
  return e === void 0 && (e = asyncScheduler), operate(function(t, r) {
2406
- var i = null, s = null, o = null, u = function() {
2471
+ var i = null, s = null, u = null, o = function() {
2407
2472
  if (i) {
2408
2473
  i.unsubscribe(), i = null;
2409
2474
  var a = s;
@@ -2411,17 +2476,17 @@ function debounceTime(n, e) {
2411
2476
  }
2412
2477
  };
2413
2478
  function c() {
2414
- var a = o + n, l = e.now();
2479
+ var a = u + n, l = e.now();
2415
2480
  if (l < a) {
2416
2481
  i = this.schedule(void 0, a - l), r.add(i);
2417
2482
  return;
2418
2483
  }
2419
- u();
2484
+ o();
2420
2485
  }
2421
2486
  t.subscribe(new OperatorSubscriber(r, function(a) {
2422
- s = a, o = e.now(), i || (i = e.schedule(c, n), r.add(i));
2487
+ s = a, u = e.now(), i || (i = e.schedule(c, n), r.add(i));
2423
2488
  }, function() {
2424
- u(), r.complete();
2489
+ o(), r.complete();
2425
2490
  }, void 0, function() {
2426
2491
  s = i = null;
2427
2492
  }));
@@ -2482,8 +2547,8 @@ function distinct(n, e) {
2482
2547
  return operate(function(t, r) {
2483
2548
  var i = /* @__PURE__ */ new Set();
2484
2549
  t.subscribe(new OperatorSubscriber(r, function(s) {
2485
- var o = n ? n(s) : s;
2486
- i.has(o) || (i.add(o), r.next(s));
2550
+ var u = n ? n(s) : s;
2551
+ i.has(u) || (i.add(u), r.next(s));
2487
2552
  })), e == null || e.subscribe(new OperatorSubscriber(r, function() {
2488
2553
  return i.clear();
2489
2554
  }, noop));
@@ -2492,9 +2557,9 @@ function distinct(n, e) {
2492
2557
  function distinctUntilChanged(n, e) {
2493
2558
  return e === void 0 && (e = identity), n = n != null ? n : defaultCompare, operate(function(t, r) {
2494
2559
  var i, s = !0;
2495
- t.subscribe(new OperatorSubscriber(r, function(o) {
2496
- var u = e(o);
2497
- (s || !n(i, u)) && (s = !1, i = u, r.next(o));
2560
+ t.subscribe(new OperatorSubscriber(r, function(u) {
2561
+ var o = e(u);
2562
+ (s || !n(i, o)) && (s = !1, i = o, r.next(u));
2498
2563
  }));
2499
2564
  });
2500
2565
  }
@@ -2564,18 +2629,18 @@ var exhaust = exhaustAll;
2564
2629
  function exhaustMap(n, e) {
2565
2630
  return e ? function(t) {
2566
2631
  return t.pipe(exhaustMap(function(r, i) {
2567
- return innerFrom(n(r, i)).pipe(map(function(s, o) {
2568
- return e(r, s, i, o);
2632
+ return innerFrom(n(r, i)).pipe(map(function(s, u) {
2633
+ return e(r, s, i, u);
2569
2634
  }));
2570
2635
  }));
2571
2636
  } : operate(function(t, r) {
2572
- var i = 0, s = null, o = !1;
2573
- t.subscribe(new OperatorSubscriber(r, function(u) {
2637
+ var i = 0, s = null, u = !1;
2638
+ t.subscribe(new OperatorSubscriber(r, function(o) {
2574
2639
  s || (s = new OperatorSubscriber(r, void 0, function() {
2575
- s = null, o && r.complete();
2576
- }), innerFrom(n(u, i++)).subscribe(s));
2640
+ s = null, u && r.complete();
2641
+ }), innerFrom(n(o, i++)).subscribe(s));
2577
2642
  }, function() {
2578
- o = !0, !s && r.complete();
2643
+ u = !0, !s && r.complete();
2579
2644
  }));
2580
2645
  });
2581
2646
  }
@@ -2599,10 +2664,10 @@ function find(n, e) {
2599
2664
  function createFind(n, e, t) {
2600
2665
  var r = t === "index";
2601
2666
  return function(i, s) {
2602
- var o = 0;
2603
- i.subscribe(new OperatorSubscriber(s, function(u) {
2604
- var c = o++;
2605
- n.call(e, u, c, i) && (s.next(r ? c : u), s.complete());
2667
+ var u = 0;
2668
+ i.subscribe(new OperatorSubscriber(s, function(o) {
2669
+ var c = u++;
2670
+ n.call(e, o, c, i) && (s.next(r ? c : o), s.complete());
2606
2671
  }, function() {
2607
2672
  s.next(r ? -1 : void 0), s.complete();
2608
2673
  }));
@@ -2623,30 +2688,30 @@ function first(n, e) {
2623
2688
  }
2624
2689
  function groupBy(n, e, t, r) {
2625
2690
  return operate(function(i, s) {
2626
- var o;
2627
- !e || typeof e == "function" ? o = e : (t = e.duration, o = e.element, r = e.connector);
2628
- var u = /* @__PURE__ */ new Map(), c = function(f) {
2629
- u.forEach(f), f(s);
2691
+ var u;
2692
+ !e || typeof e == "function" ? u = e : (t = e.duration, u = e.element, r = e.connector);
2693
+ var o = /* @__PURE__ */ new Map(), c = function(f) {
2694
+ o.forEach(f), f(s);
2630
2695
  }, a = function(f) {
2631
- return c(function(p) {
2632
- return p.error(f);
2696
+ return c(function(d) {
2697
+ return d.error(f);
2633
2698
  });
2634
2699
  }, l = new GroupBySubscriber(s, function(f) {
2635
2700
  try {
2636
- var p = n(f), E = u.get(p);
2637
- if (!E) {
2638
- u.set(p, E = r ? r() : new Subject());
2639
- var h = d(p, E);
2701
+ var d = n(f), m = o.get(d);
2702
+ if (!m) {
2703
+ o.set(d, m = r ? r() : new Subject());
2704
+ var h = p(d, m);
2640
2705
  if (s.next(h), t) {
2641
- var v = new OperatorSubscriber(E, function() {
2642
- E.complete(), v == null || v.unsubscribe();
2706
+ var E = new OperatorSubscriber(m, function() {
2707
+ m.complete(), E == null || E.unsubscribe();
2643
2708
  }, void 0, void 0, function() {
2644
- return u.delete(p);
2709
+ return o.delete(d);
2645
2710
  });
2646
- l.add(innerFrom(t(h)).subscribe(v));
2711
+ l.add(innerFrom(t(h)).subscribe(E));
2647
2712
  }
2648
2713
  }
2649
- E.next(o ? o(f) : f);
2714
+ m.next(u ? u(f) : f);
2650
2715
  } catch (g) {
2651
2716
  a(g);
2652
2717
  }
@@ -2655,18 +2720,18 @@ function groupBy(n, e, t, r) {
2655
2720
  return f.complete();
2656
2721
  });
2657
2722
  }, a, function() {
2658
- return u.clear();
2723
+ return o.clear();
2659
2724
  });
2660
2725
  i.subscribe(l);
2661
- function d(f, p) {
2662
- var E = new Observable(function(h) {
2726
+ function p(f, d) {
2727
+ var m = new Observable(function(h) {
2663
2728
  l.activeGroups++;
2664
- var v = p.subscribe(h);
2729
+ var E = d.subscribe(h);
2665
2730
  return function() {
2666
- v.unsubscribe(), --l.activeGroups === 0 && l.teardownAttempted && l.unsubscribe();
2731
+ E.unsubscribe(), --l.activeGroups === 0 && l.teardownAttempted && l.unsubscribe();
2667
2732
  };
2668
2733
  });
2669
- return E.key = f, E;
2734
+ return m.key = f, m;
2670
2735
  }
2671
2736
  });
2672
2737
  }
@@ -2699,15 +2764,15 @@ function takeLast(n) {
2699
2764
  }, function() {
2700
2765
  var i, s;
2701
2766
  try {
2702
- for (var o = __values(r), u = o.next(); !u.done; u = o.next()) {
2703
- var c = u.value;
2767
+ for (var u = __values(r), o = u.next(); !o.done; o = u.next()) {
2768
+ var c = o.value;
2704
2769
  t.next(c);
2705
2770
  }
2706
2771
  } catch (a) {
2707
2772
  i = { error: a };
2708
2773
  } finally {
2709
2774
  try {
2710
- u && !u.done && (s = o.return) && s.call(o);
2775
+ o && !o.done && (s = u.return) && s.call(u);
2711
2776
  } finally {
2712
2777
  if (i)
2713
2778
  throw i.error;
@@ -2758,10 +2823,10 @@ function mergeMapTo(n, e, t) {
2758
2823
  function mergeScan(n, e, t) {
2759
2824
  return t === void 0 && (t = 1 / 0), operate(function(r, i) {
2760
2825
  var s = e;
2761
- return mergeInternals(r, i, function(o, u) {
2762
- return n(s, o, u);
2763
- }, t, function(o) {
2764
- s = o;
2826
+ return mergeInternals(r, i, function(u, o) {
2827
+ return n(s, u, o);
2828
+ }, t, function(u) {
2829
+ s = u;
2765
2830
  }, !1, void 0, function() {
2766
2831
  return s = null;
2767
2832
  });
@@ -2814,9 +2879,9 @@ function pluck() {
2814
2879
  throw new Error("list of properties cannot be empty.");
2815
2880
  return map(function(r) {
2816
2881
  for (var i = r, s = 0; s < t; s++) {
2817
- var o = i == null ? void 0 : i[n[s]];
2818
- if (typeof o < "u")
2819
- i = o;
2882
+ var u = i == null ? void 0 : i[n[s]];
2883
+ if (typeof u < "u")
2884
+ i = u;
2820
2885
  else
2821
2886
  return;
2822
2887
  }
@@ -2865,27 +2930,27 @@ function repeat(n) {
2865
2930
  return EMPTY;
2866
2931
  } : operate(function(e, t) {
2867
2932
  var r = 0, i, s = function() {
2868
- var o = !1;
2933
+ var u = !1;
2869
2934
  i = e.subscribe(new OperatorSubscriber(t, void 0, function() {
2870
- ++r < n ? i ? (i.unsubscribe(), i = null, s()) : o = !0 : t.complete();
2871
- })), o && (i.unsubscribe(), i = null, s());
2935
+ ++r < n ? i ? (i.unsubscribe(), i = null, s()) : u = !0 : t.complete();
2936
+ })), u && (i.unsubscribe(), i = null, s());
2872
2937
  };
2873
2938
  s();
2874
2939
  });
2875
2940
  }
2876
2941
  function repeatWhen(n) {
2877
2942
  return operate(function(e, t) {
2878
- var r, i = !1, s, o = !1, u = !1, c = function() {
2879
- return u && o && (t.complete(), !0);
2943
+ var r, i = !1, s, u = !1, o = !1, c = function() {
2944
+ return o && u && (t.complete(), !0);
2880
2945
  }, a = function() {
2881
2946
  return s || (s = new Subject(), n(s).subscribe(new OperatorSubscriber(t, function() {
2882
2947
  r ? l() : i = !0;
2883
2948
  }, function() {
2884
- o = !0, c();
2949
+ u = !0, c();
2885
2950
  }))), s;
2886
2951
  }, l = function() {
2887
- u = !1, r = e.subscribe(new OperatorSubscriber(t, void 0, function() {
2888
- u = !0, !c() && a().next();
2952
+ o = !1, r = e.subscribe(new OperatorSubscriber(t, void 0, function() {
2953
+ o = !0, !c() && a().next();
2889
2954
  })), i && (r.unsubscribe(), r = null, i = !1, l());
2890
2955
  };
2891
2956
  l();
@@ -2897,56 +2962,56 @@ function retry(n) {
2897
2962
  n && typeof n == "object" ? e = n : e = {
2898
2963
  count: n
2899
2964
  };
2900
- var t = e.count, r = t === void 0 ? 1 / 0 : t, i = e.delay, s = e.resetOnSuccess, o = s === void 0 ? !1 : s;
2901
- return r <= 0 ? identity : operate(function(u, c) {
2902
- var a = 0, l, d = function() {
2965
+ var t = e.count, r = t === void 0 ? 1 / 0 : t, i = e.delay, s = e.resetOnSuccess, u = s === void 0 ? !1 : s;
2966
+ return r <= 0 ? identity : operate(function(o, c) {
2967
+ var a = 0, l, p = function() {
2903
2968
  var f = !1;
2904
- l = u.subscribe(new OperatorSubscriber(c, function(p) {
2905
- o && (a = 0), c.next(p);
2906
- }, void 0, function(p) {
2969
+ l = o.subscribe(new OperatorSubscriber(c, function(d) {
2970
+ u && (a = 0), c.next(d);
2971
+ }, void 0, function(d) {
2907
2972
  if (a++ < r) {
2908
- var E = function() {
2909
- l ? (l.unsubscribe(), l = null, d()) : f = !0;
2973
+ var m = function() {
2974
+ l ? (l.unsubscribe(), l = null, p()) : f = !0;
2910
2975
  };
2911
2976
  if (i != null) {
2912
- var h = typeof i == "number" ? timer(i) : innerFrom(i(p, a)), v = new OperatorSubscriber(c, function() {
2913
- v.unsubscribe(), E();
2977
+ var h = typeof i == "number" ? timer(i) : innerFrom(i(d, a)), E = new OperatorSubscriber(c, function() {
2978
+ E.unsubscribe(), m();
2914
2979
  }, function() {
2915
2980
  c.complete();
2916
2981
  });
2917
- h.subscribe(v);
2982
+ h.subscribe(E);
2918
2983
  } else
2919
- E();
2984
+ m();
2920
2985
  } else
2921
- c.error(p);
2922
- })), f && (l.unsubscribe(), l = null, d());
2986
+ c.error(d);
2987
+ })), f && (l.unsubscribe(), l = null, p());
2923
2988
  };
2924
- d();
2989
+ p();
2925
2990
  });
2926
2991
  }
2927
2992
  function retryWhen(n) {
2928
2993
  return operate(function(e, t) {
2929
- var r, i = !1, s, o = function() {
2930
- r = e.subscribe(new OperatorSubscriber(t, void 0, void 0, function(u) {
2994
+ var r, i = !1, s, u = function() {
2995
+ r = e.subscribe(new OperatorSubscriber(t, void 0, void 0, function(o) {
2931
2996
  s || (s = new Subject(), n(s).subscribe(new OperatorSubscriber(t, function() {
2932
- return r ? o() : i = !0;
2933
- }))), s && s.next(u);
2934
- })), i && (r.unsubscribe(), r = null, i = !1, o());
2997
+ return r ? u() : i = !0;
2998
+ }))), s && s.next(o);
2999
+ })), i && (r.unsubscribe(), r = null, i = !1, u());
2935
3000
  };
2936
- o();
3001
+ u();
2937
3002
  });
2938
3003
  }
2939
3004
  function sample(n) {
2940
3005
  return operate(function(e, t) {
2941
3006
  var r = !1, i = null;
2942
- e.subscribe(new OperatorSubscriber(t, function(o) {
2943
- r = !0, i = o;
3007
+ e.subscribe(new OperatorSubscriber(t, function(u) {
3008
+ r = !0, i = u;
2944
3009
  }));
2945
3010
  var s = function() {
2946
3011
  if (r) {
2947
3012
  r = !1;
2948
- var o = i;
2949
- i = null, t.next(o);
3013
+ var u = i;
3014
+ i = null, t.next(u);
2950
3015
  }
2951
3016
  };
2952
3017
  n.subscribe(new OperatorSubscriber(t, s, noop));
@@ -2962,20 +3027,20 @@ function sequenceEqual(n, e) {
2962
3027
  return e === void 0 && (e = function(t, r) {
2963
3028
  return t === r;
2964
3029
  }), operate(function(t, r) {
2965
- var i = createState(), s = createState(), o = function(c) {
3030
+ var i = createState(), s = createState(), u = function(c) {
2966
3031
  r.next(c), r.complete();
2967
- }, u = function(c, a) {
2968
- var l = new OperatorSubscriber(r, function(d) {
2969
- var f = a.buffer, p = a.complete;
2970
- f.length === 0 ? p ? o(!1) : c.buffer.push(d) : !e(d, f.shift()) && o(!1);
3032
+ }, o = function(c, a) {
3033
+ var l = new OperatorSubscriber(r, function(p) {
3034
+ var f = a.buffer, d = a.complete;
3035
+ f.length === 0 ? d ? u(!1) : c.buffer.push(p) : !e(p, f.shift()) && u(!1);
2971
3036
  }, function() {
2972
3037
  c.complete = !0;
2973
- var d = a.complete, f = a.buffer;
2974
- d && o(f.length === 0), l == null || l.unsubscribe();
3038
+ var p = a.complete, f = a.buffer;
3039
+ p && u(f.length === 0), l == null || l.unsubscribe();
2975
3040
  });
2976
3041
  return l;
2977
3042
  };
2978
- t.subscribe(u(i, s)), n.subscribe(u(s, i));
3043
+ t.subscribe(o(i, s)), n.subscribe(o(s, i));
2979
3044
  });
2980
3045
  }
2981
3046
  function createState() {
@@ -2988,32 +3053,32 @@ function share(n) {
2988
3053
  n === void 0 && (n = {});
2989
3054
  var e = n.connector, t = e === void 0 ? function() {
2990
3055
  return new Subject();
2991
- } : e, r = n.resetOnError, i = r === void 0 ? !0 : r, s = n.resetOnComplete, o = s === void 0 ? !0 : s, u = n.resetOnRefCountZero, c = u === void 0 ? !0 : u;
3056
+ } : e, r = n.resetOnError, i = r === void 0 ? !0 : r, s = n.resetOnComplete, u = s === void 0 ? !0 : s, o = n.resetOnRefCountZero, c = o === void 0 ? !0 : o;
2992
3057
  return function(a) {
2993
- var l = null, d = null, f = null, p = 0, E = !1, h = !1, v = function() {
2994
- d == null || d.unsubscribe(), d = null;
3058
+ var l = null, p = null, f = null, d = 0, m = !1, h = !1, E = function() {
3059
+ p == null || p.unsubscribe(), p = null;
2995
3060
  }, g = function() {
2996
- v(), l = f = null, E = h = !1;
3061
+ E(), l = f = null, m = h = !1;
2997
3062
  }, b = function() {
2998
- var F = l;
2999
- g(), F == null || F.unsubscribe();
3063
+ var w = l;
3064
+ g(), w == null || w.unsubscribe();
3000
3065
  };
3001
- return operate(function(F, A) {
3002
- p++, !h && !E && v();
3003
- var w = f = f != null ? f : t();
3004
- A.add(function() {
3005
- p--, p === 0 && !h && !E && (d = handleReset(b, c));
3006
- }), w.subscribe(A), l || (l = new SafeSubscriber({
3007
- next: function(C) {
3008
- return w.next(C);
3066
+ return operate(function(w, y) {
3067
+ d++, !h && !m && E();
3068
+ var A = f = f != null ? f : t();
3069
+ y.add(function() {
3070
+ d--, d === 0 && !h && !m && (p = handleReset(b, c));
3071
+ }), A.subscribe(y), l || (l = new SafeSubscriber({
3072
+ next: function(F) {
3073
+ return A.next(F);
3009
3074
  },
3010
- error: function(C) {
3011
- h = !0, v(), d = handleReset(g, i, C), w.error(C);
3075
+ error: function(F) {
3076
+ h = !0, E(), p = handleReset(g, i, F), A.error(F);
3012
3077
  },
3013
3078
  complete: function() {
3014
- E = !0, v(), d = handleReset(g, o), w.complete();
3079
+ m = !0, E(), p = handleReset(g, u), A.complete();
3015
3080
  }
3016
- }), from(F).subscribe(l));
3081
+ }), from(w).subscribe(l));
3017
3082
  })(a);
3018
3083
  };
3019
3084
  }
@@ -3025,21 +3090,21 @@ function handleReset(n, e) {
3025
3090
  });
3026
3091
  }
3027
3092
  function shareReplay(n, e, t) {
3028
- var r, i, s, o = !1;
3029
- return n && typeof n == "object" ? (s = (r = n.bufferSize) !== null && r !== void 0 ? r : 1 / 0, e = (i = n.windowTime) !== null && i !== void 0 ? i : 1 / 0, o = !!n.refCount, t = n.scheduler) : s = n != null ? n : 1 / 0, share({
3093
+ var r, i, s, u = !1;
3094
+ return n && typeof n == "object" ? (s = (r = n.bufferSize) !== null && r !== void 0 ? r : 1 / 0, e = (i = n.windowTime) !== null && i !== void 0 ? i : 1 / 0, u = !!n.refCount, t = n.scheduler) : s = n != null ? n : 1 / 0, share({
3030
3095
  connector: function() {
3031
3096
  return new ReplaySubject(s, e, t);
3032
3097
  },
3033
3098
  resetOnError: !0,
3034
3099
  resetOnComplete: !1,
3035
- resetOnRefCountZero: o
3100
+ resetOnRefCountZero: u
3036
3101
  });
3037
3102
  }
3038
3103
  function single(n) {
3039
3104
  return operate(function(e, t) {
3040
- var r = !1, i, s = !1, o = 0;
3041
- e.subscribe(new OperatorSubscriber(t, function(u) {
3042
- s = !0, (!n || n(u, o++, e)) && (r && t.error(new SequenceError("Too many matching values")), r = !0, i = u);
3105
+ var r = !1, i, s = !1, u = 0;
3106
+ e.subscribe(new OperatorSubscriber(t, function(o) {
3107
+ s = !0, (!n || n(o, u++, e)) && (r && t.error(new SequenceError("Too many matching values")), r = !0, i = o);
3043
3108
  }, function() {
3044
3109
  r ? (t.next(i), t.complete()) : t.error(s ? new NotFoundError("No matching values") : new EmptyError());
3045
3110
  }));
@@ -3054,12 +3119,12 @@ function skipLast(n) {
3054
3119
  return n <= 0 ? identity : operate(function(e, t) {
3055
3120
  var r = new Array(n), i = 0;
3056
3121
  return e.subscribe(new OperatorSubscriber(t, function(s) {
3057
- var o = i++;
3058
- if (o < n)
3059
- r[o] = s;
3122
+ var u = i++;
3123
+ if (u < n)
3124
+ r[u] = s;
3060
3125
  else {
3061
- var u = o % n, c = r[u];
3062
- r[u] = s, t.next(c);
3126
+ var o = u % n, c = r[o];
3127
+ r[o] = s, t.next(c);
3063
3128
  }
3064
3129
  })), function() {
3065
3130
  r = null;
@@ -3094,19 +3159,19 @@ function startWith() {
3094
3159
  }
3095
3160
  function switchMap(n, e) {
3096
3161
  return operate(function(t, r) {
3097
- var i = null, s = 0, o = !1, u = function() {
3098
- return o && !i && r.complete();
3162
+ var i = null, s = 0, u = !1, o = function() {
3163
+ return u && !i && r.complete();
3099
3164
  };
3100
3165
  t.subscribe(new OperatorSubscriber(r, function(c) {
3101
3166
  i == null || i.unsubscribe();
3102
3167
  var a = 0, l = s++;
3103
- innerFrom(n(c, l)).subscribe(i = new OperatorSubscriber(r, function(d) {
3104
- return r.next(e ? e(c, d, l, a++) : d);
3168
+ innerFrom(n(c, l)).subscribe(i = new OperatorSubscriber(r, function(p) {
3169
+ return r.next(e ? e(c, p, l, a++) : p);
3105
3170
  }, function() {
3106
- i = null, u();
3171
+ i = null, o();
3107
3172
  }));
3108
3173
  }, function() {
3109
- o = !0, u();
3174
+ u = !0, o();
3110
3175
  }));
3111
3176
  });
3112
3177
  }
@@ -3123,10 +3188,10 @@ function switchMapTo(n, e) {
3123
3188
  function switchScan(n, e) {
3124
3189
  return operate(function(t, r) {
3125
3190
  var i = e;
3126
- return switchMap(function(s, o) {
3127
- return n(i, s, o);
3128
- }, function(s, o) {
3129
- return i = o, o;
3191
+ return switchMap(function(s, u) {
3192
+ return n(i, s, u);
3193
+ }, function(s, u) {
3194
+ return i = u, u;
3130
3195
  })(t).subscribe(r), function() {
3131
3196
  i = null;
3132
3197
  };
@@ -3143,29 +3208,29 @@ function takeWhile(n, e) {
3143
3208
  return e === void 0 && (e = !1), operate(function(t, r) {
3144
3209
  var i = 0;
3145
3210
  t.subscribe(new OperatorSubscriber(r, function(s) {
3146
- var o = n(s, i++);
3147
- (o || e) && r.next(s), !o && r.complete();
3211
+ var u = n(s, i++);
3212
+ (u || e) && r.next(s), !u && r.complete();
3148
3213
  }));
3149
3214
  });
3150
3215
  }
3151
3216
  function tap(n, e, t) {
3152
3217
  var r = isFunction$1(n) || e || t ? { next: n, error: e, complete: t } : n;
3153
3218
  return r ? operate(function(i, s) {
3154
- var o;
3155
- (o = r.subscribe) === null || o === void 0 || o.call(r);
3156
- var u = !0;
3219
+ var u;
3220
+ (u = r.subscribe) === null || u === void 0 || u.call(r);
3221
+ var o = !0;
3157
3222
  i.subscribe(new OperatorSubscriber(s, function(c) {
3158
3223
  var a;
3159
3224
  (a = r.next) === null || a === void 0 || a.call(r, c), s.next(c);
3160
3225
  }, function() {
3161
3226
  var c;
3162
- u = !1, (c = r.complete) === null || c === void 0 || c.call(r), s.complete();
3227
+ o = !1, (c = r.complete) === null || c === void 0 || c.call(r), s.complete();
3163
3228
  }, function(c) {
3164
3229
  var a;
3165
- u = !1, (a = r.error) === null || a === void 0 || a.call(r, c), s.error(c);
3230
+ o = !1, (a = r.error) === null || a === void 0 || a.call(r, c), s.error(c);
3166
3231
  }, function() {
3167
3232
  var c, a;
3168
- u && ((c = r.unsubscribe) === null || c === void 0 || c.call(r)), (a = r.finalize) === null || a === void 0 || a.call(r);
3233
+ o && ((c = r.unsubscribe) === null || c === void 0 || c.call(r)), (a = r.finalize) === null || a === void 0 || a.call(r);
3169
3234
  }));
3170
3235
  }) : identity;
3171
3236
  }
@@ -3175,24 +3240,24 @@ var defaultThrottleConfig = {
3175
3240
  };
3176
3241
  function throttle(n, e) {
3177
3242
  var t = e === void 0 ? defaultThrottleConfig : e, r = t.leading, i = t.trailing;
3178
- return operate(function(s, o) {
3179
- var u = !1, c = null, a = null, l = !1, d = function() {
3180
- a == null || a.unsubscribe(), a = null, i && (E(), l && o.complete());
3243
+ return operate(function(s, u) {
3244
+ var o = !1, c = null, a = null, l = !1, p = function() {
3245
+ a == null || a.unsubscribe(), a = null, i && (m(), l && u.complete());
3181
3246
  }, f = function() {
3182
- a = null, l && o.complete();
3183
- }, p = function(h) {
3184
- return a = innerFrom(n(h)).subscribe(new OperatorSubscriber(o, d, f));
3185
- }, E = function() {
3186
- if (u) {
3187
- u = !1;
3247
+ a = null, l && u.complete();
3248
+ }, d = function(h) {
3249
+ return a = innerFrom(n(h)).subscribe(new OperatorSubscriber(u, p, f));
3250
+ }, m = function() {
3251
+ if (o) {
3252
+ o = !1;
3188
3253
  var h = c;
3189
- c = null, o.next(h), !l && p(h);
3254
+ c = null, u.next(h), !l && d(h);
3190
3255
  }
3191
3256
  };
3192
- s.subscribe(new OperatorSubscriber(o, function(h) {
3193
- u = !0, c = h, !(a && !a.closed) && (r ? E() : p(h));
3257
+ s.subscribe(new OperatorSubscriber(u, function(h) {
3258
+ o = !0, c = h, !(a && !a.closed) && (r ? m() : d(h));
3194
3259
  }, function() {
3195
- l = !0, !(i && u && a && !a.closed) && o.complete();
3260
+ l = !0, !(i && o && a && !a.closed) && u.complete();
3196
3261
  }));
3197
3262
  });
3198
3263
  }
@@ -3270,26 +3335,26 @@ function windowCount(n, e) {
3270
3335
  e === void 0 && (e = 0);
3271
3336
  var t = e > 0 ? e : n;
3272
3337
  return operate(function(r, i) {
3273
- var s = [new Subject()], o = [], u = 0;
3338
+ var s = [new Subject()], u = [], o = 0;
3274
3339
  i.next(s[0].asObservable()), r.subscribe(new OperatorSubscriber(i, function(c) {
3275
3340
  var a, l;
3276
3341
  try {
3277
- for (var d = __values(s), f = d.next(); !f.done; f = d.next()) {
3278
- var p = f.value;
3279
- p.next(c);
3342
+ for (var p = __values(s), f = p.next(); !f.done; f = p.next()) {
3343
+ var d = f.value;
3344
+ d.next(c);
3280
3345
  }
3281
- } catch (v) {
3282
- a = { error: v };
3346
+ } catch (E) {
3347
+ a = { error: E };
3283
3348
  } finally {
3284
3349
  try {
3285
- f && !f.done && (l = d.return) && l.call(d);
3350
+ f && !f.done && (l = p.return) && l.call(p);
3286
3351
  } finally {
3287
3352
  if (a)
3288
3353
  throw a.error;
3289
3354
  }
3290
3355
  }
3291
- var E = u - n + 1;
3292
- if (E >= 0 && E % t === 0 && s.shift().complete(), ++u % t === 0) {
3356
+ var m = o - n + 1;
3357
+ if (m >= 0 && m % t === 0 && s.shift().complete(), ++o % t === 0) {
3293
3358
  var h = new Subject();
3294
3359
  s.push(h), i.next(h.asObservable());
3295
3360
  }
@@ -3302,54 +3367,54 @@ function windowCount(n, e) {
3302
3367
  s.shift().error(c);
3303
3368
  i.error(c);
3304
3369
  }, function() {
3305
- o = null, s = null;
3370
+ u = null, s = null;
3306
3371
  }));
3307
3372
  });
3308
3373
  }
3309
3374
  function windowTime(n) {
3310
3375
  for (var e, t, r = [], i = 1; i < arguments.length; i++)
3311
3376
  r[i - 1] = arguments[i];
3312
- var s = (e = popScheduler(r)) !== null && e !== void 0 ? e : asyncScheduler, o = (t = r[0]) !== null && t !== void 0 ? t : null, u = r[1] || 1 / 0;
3377
+ var s = (e = popScheduler(r)) !== null && e !== void 0 ? e : asyncScheduler, u = (t = r[0]) !== null && t !== void 0 ? t : null, o = r[1] || 1 / 0;
3313
3378
  return operate(function(c, a) {
3314
- var l = [], d = !1, f = function(v) {
3315
- var g = v.window, b = v.subs;
3316
- g.complete(), b.unsubscribe(), arrRemove(l, v), d && p();
3317
- }, p = function() {
3379
+ var l = [], p = !1, f = function(E) {
3380
+ var g = E.window, b = E.subs;
3381
+ g.complete(), b.unsubscribe(), arrRemove(l, E), p && d();
3382
+ }, d = function() {
3318
3383
  if (l) {
3319
- var v = new Subscription();
3320
- a.add(v);
3384
+ var E = new Subscription();
3385
+ a.add(E);
3321
3386
  var g = new Subject(), b = {
3322
3387
  window: g,
3323
- subs: v,
3388
+ subs: E,
3324
3389
  seen: 0
3325
3390
  };
3326
- l.push(b), a.next(g.asObservable()), v.add(s.schedule(function() {
3391
+ l.push(b), a.next(g.asObservable()), E.add(s.schedule(function() {
3327
3392
  return f(b);
3328
3393
  }, n));
3329
3394
  }
3330
3395
  };
3331
- o !== null && o >= 0 ? a.add(s.schedule(function() {
3332
- p(), !this.closed && a.add(this.schedule(null, o));
3333
- }, o)) : d = !0, p();
3334
- var E = function(v) {
3335
- return l.slice().forEach(v);
3336
- }, h = function(v) {
3337
- E(function(g) {
3396
+ u !== null && u >= 0 ? a.add(s.schedule(function() {
3397
+ d(), !this.closed && a.add(this.schedule(null, u));
3398
+ }, u)) : p = !0, d();
3399
+ var m = function(E) {
3400
+ return l.slice().forEach(E);
3401
+ }, h = function(E) {
3402
+ m(function(g) {
3338
3403
  var b = g.window;
3339
- return v(b);
3340
- }), v(a), a.unsubscribe();
3404
+ return E(b);
3405
+ }), E(a), a.unsubscribe();
3341
3406
  };
3342
- return c.subscribe(new OperatorSubscriber(a, function(v) {
3343
- E(function(g) {
3344
- g.window.next(v), u <= ++g.seen && f(g);
3407
+ return c.subscribe(new OperatorSubscriber(a, function(E) {
3408
+ m(function(g) {
3409
+ g.window.next(E), o <= ++g.seen && f(g);
3345
3410
  });
3346
3411
  }, function() {
3347
- return h(function(v) {
3348
- return v.complete();
3412
+ return h(function(E) {
3413
+ return E.complete();
3349
3414
  });
3350
- }, function(v) {
3415
+ }, function(E) {
3351
3416
  return h(function(g) {
3352
- return g.error(v);
3417
+ return g.error(E);
3353
3418
  });
3354
3419
  })), function() {
3355
3420
  l = null;
@@ -3358,39 +3423,39 @@ function windowTime(n) {
3358
3423
  }
3359
3424
  function windowToggle(n, e) {
3360
3425
  return operate(function(t, r) {
3361
- var i = [], s = function(o) {
3426
+ var i = [], s = function(u) {
3362
3427
  for (; 0 < i.length; )
3363
- i.shift().error(o);
3364
- r.error(o);
3428
+ i.shift().error(u);
3429
+ r.error(u);
3365
3430
  };
3366
- innerFrom(n).subscribe(new OperatorSubscriber(r, function(o) {
3367
- var u = new Subject();
3368
- i.push(u);
3431
+ innerFrom(n).subscribe(new OperatorSubscriber(r, function(u) {
3432
+ var o = new Subject();
3433
+ i.push(o);
3369
3434
  var c = new Subscription(), a = function() {
3370
- arrRemove(i, u), u.complete(), c.unsubscribe();
3435
+ arrRemove(i, o), o.complete(), c.unsubscribe();
3371
3436
  }, l;
3372
3437
  try {
3373
- l = innerFrom(e(o));
3374
- } catch (d) {
3375
- s(d);
3438
+ l = innerFrom(e(u));
3439
+ } catch (p) {
3440
+ s(p);
3376
3441
  return;
3377
3442
  }
3378
- r.next(u.asObservable()), c.add(l.subscribe(new OperatorSubscriber(r, a, noop, s)));
3379
- }, noop)), t.subscribe(new OperatorSubscriber(r, function(o) {
3380
- var u, c, a = i.slice();
3443
+ r.next(o.asObservable()), c.add(l.subscribe(new OperatorSubscriber(r, a, noop, s)));
3444
+ }, noop)), t.subscribe(new OperatorSubscriber(r, function(u) {
3445
+ var o, c, a = i.slice();
3381
3446
  try {
3382
- for (var l = __values(a), d = l.next(); !d.done; d = l.next()) {
3383
- var f = d.value;
3384
- f.next(o);
3447
+ for (var l = __values(a), p = l.next(); !p.done; p = l.next()) {
3448
+ var f = p.value;
3449
+ f.next(u);
3385
3450
  }
3386
- } catch (p) {
3387
- u = { error: p };
3451
+ } catch (d) {
3452
+ o = { error: d };
3388
3453
  } finally {
3389
3454
  try {
3390
- d && !d.done && (c = l.return) && c.call(l);
3455
+ p && !p.done && (c = l.return) && c.call(l);
3391
3456
  } finally {
3392
- if (u)
3393
- throw u.error;
3457
+ if (o)
3458
+ throw o.error;
3394
3459
  }
3395
3460
  }
3396
3461
  }, function() {
@@ -3405,21 +3470,21 @@ function windowToggle(n, e) {
3405
3470
  }
3406
3471
  function windowWhen(n) {
3407
3472
  return operate(function(e, t) {
3408
- var r, i, s = function(u) {
3409
- r.error(u), t.error(u);
3410
- }, o = function() {
3473
+ var r, i, s = function(o) {
3474
+ r.error(o), t.error(o);
3475
+ }, u = function() {
3411
3476
  i == null || i.unsubscribe(), r == null || r.complete(), r = new Subject(), t.next(r.asObservable());
3412
- var u;
3477
+ var o;
3413
3478
  try {
3414
- u = innerFrom(n());
3479
+ o = innerFrom(n());
3415
3480
  } catch (c) {
3416
3481
  s(c);
3417
3482
  return;
3418
3483
  }
3419
- u.subscribe(i = new OperatorSubscriber(t, o, o, s));
3484
+ o.subscribe(i = new OperatorSubscriber(t, u, u, s));
3420
3485
  };
3421
- o(), e.subscribe(new OperatorSubscriber(t, function(u) {
3422
- return r.next(u);
3486
+ u(), e.subscribe(new OperatorSubscriber(t, function(o) {
3487
+ return r.next(o);
3423
3488
  }, function() {
3424
3489
  r.complete(), t.complete();
3425
3490
  }, s, function() {
@@ -3432,17 +3497,17 @@ function withLatestFrom() {
3432
3497
  n[e] = arguments[e];
3433
3498
  var t = popResultSelector(n);
3434
3499
  return operate(function(r, i) {
3435
- for (var s = n.length, o = new Array(s), u = n.map(function() {
3500
+ for (var s = n.length, u = new Array(s), o = n.map(function() {
3436
3501
  return !1;
3437
- }), c = !1, a = function(d) {
3438
- innerFrom(n[d]).subscribe(new OperatorSubscriber(i, function(f) {
3439
- o[d] = f, !c && !u[d] && (u[d] = !0, (c = u.every(identity)) && (u = null));
3502
+ }), c = !1, a = function(p) {
3503
+ innerFrom(n[p]).subscribe(new OperatorSubscriber(i, function(f) {
3504
+ u[p] = f, !c && !o[p] && (o[p] = !0, (c = o.every(identity)) && (o = null));
3440
3505
  }, noop));
3441
3506
  }, l = 0; l < s; l++)
3442
3507
  a(l);
3443
- r.subscribe(new OperatorSubscriber(i, function(d) {
3508
+ r.subscribe(new OperatorSubscriber(i, function(p) {
3444
3509
  if (c) {
3445
- var f = __spreadArray([d], __read(o));
3510
+ var f = __spreadArray([p], __read(u));
3446
3511
  i.next(t ? t.apply(void 0, __spreadArray([], __read(f))) : f);
3447
3512
  }
3448
3513
  }));
@@ -3639,569 +3704,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
3639
3704
  withLatestFrom,
3640
3705
  zipAll,
3641
3706
  zipWith
3642
- }, Symbol.toStringTag, { value: "Module" }));
3643
- class Bus {
3644
- constructor() {
3645
- m(this, "agents", {});
3646
- m(this, "comm", new Subject());
3647
- }
3648
- setAgentFor(e, t, r) {
3649
- let i = this.getActionMapping(e);
3650
- i[t] = r;
3651
- }
3652
- getAgentFor(e, t) {
3653
- return this.getActionMapping(e)[t];
3654
- }
3655
- publish(e, t, r) {
3656
- return Promise.resolve().then(() => {
3657
- var i;
3658
- return (i = this.getAgentFor(e, t)) != null ? i : explorer.requestAgentFor(e, t);
3659
- }).then((i) => {
3660
- const s = i.activate(e, t, r);
3661
- return this.comm.next({
3662
- res: e,
3663
- action: t,
3664
- input: r,
3665
- output: s
3666
- }), s;
3667
- });
3668
- }
3669
- subscribe(e, t) {
3670
- return this.comm.asObservable().pipe(filter((r) => r.res === e && r.action === t));
3671
- }
3672
- getActionMapping(e) {
3673
- let t = this.agents[e];
3674
- if (typeof t > "u") {
3675
- t = {};
3676
- for (let r of Object.values(ACTION))
3677
- t[r] = null;
3678
- this.agents[e] = t;
3679
- }
3680
- return t;
3681
- }
3682
- }
3683
- class BusFactory {
3684
- static get instance() {
3685
- return this._instance = this._instance || new Bus();
3686
- }
3687
- }
3688
- m(BusFactory, "_instance");
3689
- const y = class {
3690
- constructor(e) {
3691
- m(this, "managedResource");
3692
- m(this, "handlerFor", {
3693
- comment: y.defaultHandler,
3694
- copy: y.defaultHandler,
3695
- create: y.defaultHandler,
3696
- delete: y.defaultHandler,
3697
- export: y.defaultHandler,
3698
- initialize: y.defaultHandler,
3699
- manage: y.defaultHandler,
3700
- properties: y.defaultHandler,
3701
- move: y.defaultHandler,
3702
- open: y.defaultHandler,
3703
- print: y.defaultHandler,
3704
- publish: y.defaultHandler,
3705
- search: y.defaultHandler,
3706
- share: y.defaultHandler,
3707
- distribute: y.defaultHandler,
3708
- pages_list: y.defaultHandler,
3709
- register: y.defaultHandler,
3710
- trash: y.defaultHandler,
3711
- publish_moodle: y.defaultHandler,
3712
- restore: y.defaultHandler
3713
- });
3714
- this.managedResource = e, this.initialize();
3715
- }
3716
- initialize() {
3717
- for (let e in Object.values(ACTION))
3718
- this.handlerFor[e] = y.defaultHandler;
3719
- this.registerHandlers();
3720
- }
3721
- setHandler(e, t) {
3722
- BusFactory.instance.setAgentFor(this.managedResource, e, this), this.handlerFor[e] = t;
3723
- }
3724
- getHandler(e) {
3725
- return this.handlerFor[e];
3726
- }
3727
- activate(e, t, r) {
3728
- return Promise.resolve().then(
3729
- () => this.getHandler(t).bind(this)(r)
3730
- );
3731
- }
3732
- };
3733
- let AbstractBusAgent = y;
3734
- m(AbstractBusAgent, "defaultHandler", function(e) {
3735
- throw new Error(ERROR_CODE.NOT_SUPPORTED);
3736
- });
3737
- console.log("Blog agent loading....");
3738
- class BlogAgent extends AbstractBusAgent {
3739
- constructor() {
3740
- super(RESOURCE.BLOG);
3741
- m(this, "ctx", null);
3742
- m(this, "http", TransportFrameworkFactory.instance().newHttpInstance());
3743
- m(this, "checkHttpResponse", (t) => {
3744
- if (this.http.latestResponse.status >= 300)
3745
- throw this.http.latestResponse.statusText;
3746
- return t;
3747
- });
3748
- this.registerHandlers(), console.log("Blog agent initialized!");
3749
- }
3750
- registerHandlers() {
3751
- this.setHandler(ACTION.OPEN, this.openBlog), this.setHandler(ACTION.CREATE, this.createBlog), this.setHandler(ACTION.MANAGE, this.onManage), this.setHandler(
3752
- ACTION.UPD_PROPS,
3753
- this.onUpdateProps
3754
- ), this.setHandler(ACTION.PRINT, this.onPrint), this.setHandler(ACTION.PUBLISH, this.onPublish);
3755
- }
3756
- onPrint(t) {
3757
- window.open(
3758
- `/blog/print/blog#/print/${t.resourceId}?comments=${t.withComments || !0}`,
3759
- "_blank"
3760
- );
3761
- }
3762
- openBlog(t) {
3763
- window.open(`/blog#/view/${t.resourceId}`, "_self");
3764
- }
3765
- createBlog(t) {
3766
- window.open("/blog#/edit/new", "_self");
3767
- }
3768
- onManage(t) {
3769
- const r = {
3770
- genericProps: [
3771
- {
3772
- key: PROP_KEY.TITLE
3773
- },
3774
- {
3775
- key: PROP_KEY.IMAGE
3776
- },
3777
- {
3778
- key: PROP_KEY.URL
3779
- }
3780
- ]
3781
- };
3782
- return Promise.resolve().then(() => r);
3783
- }
3784
- onUpdateProps(t) {
3785
- const r = {
3786
- resources: t.resources
3787
- };
3788
- return alert("TODO: update properties"), Promise.resolve().then(() => r);
3789
- }
3790
- async onPublish(t) {
3791
- const r = new FormData();
3792
- return r.append("title", t.title), r.append("cover", t.cover), r.append(
3793
- "coverName",
3794
- t.cover.name
3795
- ), r.append("coverType", t.cover.type), r.append("teacherAvatar", t.teacherAvatar), r.append(
3796
- "teacherAvatarName",
3797
- t.teacherAvatar.name || `teacherAvatar_${t.userId}`
3798
- ), r.append(
3799
- "teacherAvatarType",
3800
- t.teacherAvatar.type
3801
- ), r.append("language", t.language), t.activityType.forEach((s) => {
3802
- r.append("activityType[]", s);
3803
- }), t.subjectArea.forEach((s) => {
3804
- r.append("subjectArea[]", s);
3805
- }), t.age.forEach((s) => {
3806
- r.append("age[]", s.toString());
3807
- }), r.append("description", t.description), t.keyWords.split(",").forEach((s) => {
3808
- r.append("keyWords[]", s.trim());
3809
- }), r.append("licence", t.licence), r.append(
3810
- "pdfUri",
3811
- `${window.location.origin}/blog/print/blog#/print/${t.resourceId}`
3812
- ), r.append(
3813
- "application",
3814
- t.application ? t.application : ""
3815
- ), r.append("resourceId", t.resourceId), r.append("teacherSchool", t.userStructureName), this.http.post("/appregistry/library/resource", r, {
3816
- headers: { "Content-Type": "multipart/form-data" }
3817
- }).then(this.checkHttpResponse);
3818
- }
3819
- }
3820
- const factory$1 = () => new BlogAgent();
3821
- class FolderAgent extends AbstractBusAgent {
3822
- constructor() {
3823
- super(RESOURCE.FOLDER);
3824
- m(this, "ctx", null);
3825
- m(this, "http", TransportFrameworkFactory.instance().newHttpInstance({
3826
- paramsSerializer: function(t) {
3827
- return Object.entries(t).map((r) => r[1] instanceof Array ? r[1].map((i) => `${r[0]}=${encodeURIComponent(i)}`).join("&") : ["string", "number", "boolean"].indexOf(typeof r[1]) >= 0 ? `${r[0]}=${encodeURIComponent(r[1])}` : "").join("&");
3828
- }
3829
- }));
3830
- m(this, "checkHttpResponse", (t) => {
3831
- if (this.http.latestResponse.status >= 300)
3832
- throw this.http.latestResponse.statusText;
3833
- return t;
3834
- });
3835
- this.registerHandlers();
3836
- }
3837
- registerHandlers() {
3838
- this.setHandler(
3839
- ACTION.INITIALIZE,
3840
- this.createContext
3841
- ), this.setHandler(ACTION.SEARCH, this.searchContext), this.setHandler(ACTION.CREATE, this.createFolder), this.setHandler(ACTION.OPEN, this.listSubfolders), this.setHandler(ACTION.MOVE, this.moveToFolder), this.setHandler(ACTION.DELETE, this.deleteFolders), this.setHandler(ACTION.TRASH, this.trashFolders), this.setHandler(ACTION.MANAGE, this.onManage), this.setHandler(ACTION.UPD_PROPS, this.updateFolder);
3842
- }
3843
- createContext(t) {
3844
- return this.http.get("/explorer/context", {
3845
- queryParams: this.toQueryParams(t)
3846
- }).then(this.checkHttpResponse);
3847
- }
3848
- searchContext(t) {
3849
- return this.http.get("/explorer/resources", {
3850
- queryParams: this.toQueryParams(t)
3851
- }).then(this.checkHttpResponse);
3852
- }
3853
- createFolder(t) {
3854
- return this.http.post(
3855
- "/explorer/folders",
3856
- this.createFolderToBodyParams(t)
3857
- ).then(this.checkHttpResponse);
3858
- }
3859
- updateFolder(t) {
3860
- return this.http.put(
3861
- `/explorer/folders/${t.folderId}`,
3862
- this.createFolderToBodyParams(t)
3863
- ).then(this.checkHttpResponse);
3864
- }
3865
- moveToFolder(t) {
3866
- return this.http.post(
3867
- `/explorer/folders/${t.folderId}/move`,
3868
- this.moveToBodyParams(t)
3869
- ).then(this.checkHttpResponse);
3870
- }
3871
- listSubfolders(t) {
3872
- return this.http.get(`/explorer/folders/${t}/move`).then(this.checkHttpResponse);
3873
- }
3874
- deleteFolders(t) {
3875
- return this.http.deleteJson("/explorer", t).then(this.checkHttpResponse);
3876
- }
3877
- trashFolders({
3878
- trash: t,
3879
- resourceType: r,
3880
- ...i
3881
- }) {
3882
- return this.http.putJson(
3883
- `/explorer/${t ? "trash" : "restore"}`,
3884
- i
3885
- ).then(this.checkHttpResponse);
3886
- }
3887
- onManage(t) {
3888
- const r = {
3889
- genericProps: [
3890
- {
3891
- key: PROP_KEY.TITLE
3892
- },
3893
- {
3894
- key: PROP_KEY.IMAGE
3895
- },
3896
- {
3897
- key: PROP_KEY.URL
3898
- }
3899
- ]
3900
- };
3901
- return Promise.resolve().then(() => r);
3902
- }
3903
- toQueryParams(t) {
3904
- let r = {
3905
- application: t.app,
3906
- start_idx: t.pagination.startIdx,
3907
- page_size: t.pagination.pageSize,
3908
- resource_type: t.types
3909
- };
3910
- return t.orders && (r.order_by = Object.entries(t.orders).map(
3911
- (i) => `${i[0]}:${i[1]}`
3912
- )), t.filters && Object.assign(r, t.filters), typeof t.search == "string" && (r.search = t.search), r;
3913
- }
3914
- createFolderToBodyParams(t) {
3915
- return {
3916
- application: t.app,
3917
- resourceType: t.type,
3918
- parentId: t.parentId,
3919
- name: t.name
3920
- };
3921
- }
3922
- moveToBodyParams(t) {
3923
- return {
3924
- application: t.application,
3925
- resourceType: this.managedResource,
3926
- resourceIds: t.resourceIds,
3927
- folderIds: t.folderIds
3928
- };
3929
- }
3930
- }
3931
- const factory = () => new FolderAgent();
3932
- class AgentLoader {
3933
- load(e) {
3934
- let t = appNameForResource[e];
3935
- if (typeof t != "string")
3936
- throw new Error(`The resource type ${e} is not supported yet.`);
3937
- switch (t) {
3938
- case APP.EXPLORER:
3939
- factory();
3940
- break;
3941
- case APP.BLOG:
3942
- factory$1();
3943
- break;
3944
- default:
3945
- throw new Error(`The resource type ${e} is not supported yet.`);
3946
- }
3947
- return Promise.resolve();
3948
- }
3949
- }
3950
- class ExplorerContext {
3951
- constructor(e, t) {
3952
- m(this, "searchParameters");
3953
- m(this, "context");
3954
- m(this, "bus");
3955
- m(this, "latestResults", new Subject());
3956
- this.context = null, this.bus = ExplorerFrameworkFactory.instance().getBus(), this.searchParameters = {
3957
- types: e,
3958
- app: t,
3959
- filters: {},
3960
- pagination: {
3961
- startIdx: 0,
3962
- pageSize: 20
3963
- }
3964
- };
3965
- }
3966
- clear() {
3967
- this.searchParameters.filters = {
3968
- owner: !0,
3969
- shared: !0,
3970
- public: !0
3971
- }, this.searchParameters.pagination.startIdx = 0, this.searchParameters.pagination.pageSize = 20, this.context = null;
3972
- }
3973
- isInitialized() {
3974
- return this.context !== null;
3975
- }
3976
- getContext() {
3977
- if (this.context !== null)
3978
- return this.context;
3979
- }
3980
- getSearchParameters() {
3981
- return this.searchParameters;
3982
- }
3983
- duplicateSearchParameters() {
3984
- return JSON.parse(JSON.stringify(this.searchParameters));
3985
- }
3986
- latestResources() {
3987
- return this.latestResults.asObservable();
3988
- }
3989
- initialize() {
3990
- const e = this.duplicateSearchParameters();
3991
- return Promise.resolve().then(
3992
- () => this.bus.publish(RESOURCE.FOLDER, ACTION.INITIALIZE, e)
3993
- ).then((t) => {
3994
- if (this.context = t, !this.context)
3995
- throw new Error(ERROR_CODE.UNKNOWN);
3996
- return this.latestResults.next({ input: e, output: this.context }), this.context;
3997
- });
3998
- }
3999
- getResources() {
4000
- const e = this.duplicateSearchParameters();
4001
- return this.bus.publish(RESOURCE.FOLDER, ACTION.SEARCH, e).then((t) => {
4002
- let r = t;
4003
- if (!r)
4004
- throw new Error(ERROR_CODE.UNKNOWN);
4005
- return this.latestResults.next({ input: e, output: r }), r;
4006
- });
4007
- }
4008
- getSubFolders(e) {
4009
- throw new Error("Method not implemented.");
4010
- }
4011
- createFolder(e, t, r) {
4012
- const i = {
4013
- app: this.searchParameters.app,
4014
- name: r,
4015
- parentId: t,
4016
- type: e
4017
- };
4018
- return this.bus.publish(RESOURCE.FOLDER, ACTION.CREATE, i).then((s) => {
4019
- let o = s;
4020
- if (!o)
4021
- throw new Error(ERROR_CODE.UNKNOWN);
4022
- return o;
4023
- });
4024
- }
4025
- updateFolder(e, t, r, i) {
4026
- const s = {
4027
- folderId: e,
4028
- app: this.searchParameters.app,
4029
- name: i,
4030
- parentId: r,
4031
- type: t
4032
- };
4033
- return this.bus.publish(RESOURCE.FOLDER, ACTION.UPD_PROPS, s).then((o) => {
4034
- let u = o;
4035
- if (!u)
4036
- throw new Error(ERROR_CODE.UNKNOWN);
4037
- return u;
4038
- });
4039
- }
4040
- copy(e, t, r) {
4041
- const i = {
4042
- application: this.searchParameters.app,
4043
- folderId: e,
4044
- resourceIds: t,
4045
- folderIds: r
4046
- };
4047
- return this.bus.publish(RESOURCE.FOLDER, ACTION.COPY, i).then((s) => {
4048
- });
4049
- }
4050
- move(e, t, r) {
4051
- const i = {
4052
- application: this.searchParameters.app,
4053
- folderId: e,
4054
- resourceIds: t,
4055
- folderIds: r
4056
- };
4057
- return this.bus.publish(RESOURCE.FOLDER, ACTION.MOVE, i).then((s) => {
4058
- });
4059
- }
4060
- delete(e, t) {
4061
- const r = {
4062
- application: this.searchParameters.app,
4063
- resourceType: this.searchParameters.types[0],
4064
- resourceIds: e,
4065
- folderIds: t
4066
- };
4067
- return this.bus.publish(RESOURCE.FOLDER, ACTION.DELETE, r).then((i) => {
4068
- });
4069
- }
4070
- trash(e, t, r) {
4071
- const i = {
4072
- trash: e,
4073
- application: this.searchParameters.app,
4074
- resourceType: this.searchParameters.types[0],
4075
- resourceIds: t,
4076
- folderIds: r
4077
- };
4078
- return this.bus.publish(RESOURCE.FOLDER, ACTION.TRASH, i).then((s) => {
4079
- });
4080
- }
4081
- manageProperties(e, t) {
4082
- const r = { resources: t };
4083
- return this.bus.publish(e, ACTION.MANAGE, r).then((i) => {
4084
- let s = i;
4085
- if (!s)
4086
- throw new Error(ERROR_CODE.UNKNOWN);
4087
- return s;
4088
- });
4089
- }
4090
- updateProperties(e, t, r) {
4091
- const i = {
4092
- resources: t,
4093
- props: r
4094
- };
4095
- return this.bus.publish(e, ACTION.UPD_PROPS, i).then((s) => {
4096
- let o = s;
4097
- if (!o)
4098
- throw new Error(ERROR_CODE.UNKNOWN);
4099
- return o;
4100
- });
4101
- }
4102
- publish(e, t) {
4103
- return this.bus.publish(e, ACTION.PUBLISH, t).then((r) => {
4104
- let i = r;
4105
- if (!i)
4106
- throw new Error(ERROR_CODE.UNKNOWN);
4107
- return i;
4108
- });
4109
- }
4110
- }
4111
- class ExplorerFramework {
4112
- constructor() {
4113
- m(this, "_agentLoader");
4114
- }
4115
- get agentLoader() {
4116
- return this._agentLoader || (this._agentLoader = new AgentLoader()), this._agentLoader;
4117
- }
4118
- setAgentLoader(e) {
4119
- e && (this._agentLoader = e);
4120
- }
4121
- requestAgentFor(e, t) {
4122
- return this.agentLoader.load(e).then(() => {
4123
- let r = this.getBus().getAgentFor(e, t);
4124
- if (!r)
4125
- throw new Error(ERROR_CODE.AGENT_NOT_FOUND);
4126
- return r;
4127
- });
4128
- }
4129
- createContext(e, t) {
4130
- return new ExplorerContext(e, t);
4131
- }
4132
- getBus() {
4133
- return BusFactory.instance;
4134
- }
4135
- }
4136
- const explorer = new ExplorerFramework();
4137
- class ExplorerFrameworkFactory {
4138
- static instance() {
4139
- return explorer;
4140
- }
4141
- }
4142
- const RESOURCE = {
4143
- FOLDER: "folder",
4144
- BLOG: "blog",
4145
- EXERCISE: "exercise"
4146
- }, appNameForResource = {
4147
- folder: APP.EXPLORER,
4148
- blog: APP.BLOG,
4149
- exercise: APP.EXERCIZER
4150
- }, ACTION = {
4151
- INITIALIZE: "initialize",
4152
- SEARCH: "search",
4153
- CREATE: "create",
4154
- OPEN: "open",
4155
- MANAGE: "manage",
4156
- UPD_PROPS: "properties",
4157
- COMMENT: "comment",
4158
- DELETE: "delete",
4159
- TRASH: "trash",
4160
- RESTORE: "restore",
4161
- MOVE: "move",
4162
- COPY: "copy",
4163
- EXPORT: "export",
4164
- SHARE: "share",
4165
- PRINT: "print",
4166
- PAGES_LIST: "pages_list",
4167
- DISTRIBUTE: "distribute",
4168
- REGISTER: "register",
4169
- PUBLISH: "publish",
4170
- PUBLISH_MOODLE: "publish_moodle"
4171
- }, FOLDER = {
4172
- BIN: "bin",
4173
- DEFAULT: "default"
4174
- }, BOOLEAN_FILTER = {
4175
- OWNER: "owner",
4176
- SHARED: "shared",
4177
- PUBLIC: "public",
4178
- FAVORITE: "favorite"
4179
- }, STRING_FILTER = {}, SORT_ORDER = {
4180
- ASC: "asc",
4181
- DESC: "desc"
4182
- }, SORT_BY = {
4183
- NAME: "name",
4184
- MODIFY_DATE: "updatedAt",
4185
- CREATEDAT: "createdAt",
4186
- APPLICATION: "application",
4187
- RESOURCE_TYPE: "resourceType"
4188
- }, PROP_KEY = {
4189
- TITLE: "title",
4190
- IMAGE: "image",
4191
- COLOR: "color",
4192
- DESCRIPTION: "description",
4193
- URL: "url"
4194
- }, PROP_MODE = {
4195
- READONLY: "RO",
4196
- READWRITE: "RW"
4197
- }, PROP_TYPE = {
4198
- TEXT: "text",
4199
- NUMBER: "number",
4200
- DATE: "date",
4201
- IMAGE: "image"
4202
- }, PROP_FORMAT = {
4203
- PLAIN: "plain"
4204
- }, ASYNC_DATA_NAME = {
3707
+ }, Symbol.toStringTag, { value: "Module" })), ASYNC_DATA_NAME = {
4205
3708
  SESSION_READY: "sessionReady",
4206
3709
  LANG_READY: "langReady",
4207
3710
  SKIN_READY: "skinReady",
@@ -4209,9 +3712,9 @@ const RESOURCE = {
4209
3712
  };
4210
3713
  class Promisified {
4211
3714
  constructor() {
4212
- m(this, "_resolution");
4213
- m(this, "_rejection");
4214
- m(this, "_promise", new Promise((e, t) => {
3715
+ v(this, "_resolution");
3716
+ v(this, "_rejection");
3717
+ v(this, "_promise", new Promise((e, t) => {
4215
3718
  this._resolution = e, this._rejection = t;
4216
3719
  }));
4217
3720
  }
@@ -4227,8 +3730,8 @@ class Promisified {
4227
3730
  }
4228
3731
  class NotifyFramework {
4229
3732
  constructor() {
4230
- m(this, "promises", {});
4231
- m(this, "subject", new Subject());
3733
+ v(this, "promises", {});
3734
+ v(this, "subject", new Subject());
4232
3735
  }
4233
3736
  asyncData(e) {
4234
3737
  return typeof this.promises[e] > "u" && (this.promises[e] = new Promisified()), this.promises[e];
@@ -4397,14 +3900,14 @@ var buildURL$1 = function(e, t, r) {
4397
3900
  else {
4398
3901
  var s = [];
4399
3902
  utils$8.forEach(t, function(c, a) {
4400
- c === null || typeof c > "u" || (utils$8.isArray(c) ? a = a + "[]" : c = [c], utils$8.forEach(c, function(d) {
4401
- utils$8.isDate(d) ? d = d.toISOString() : utils$8.isObject(d) && (d = JSON.stringify(d)), s.push(encode(a) + "=" + encode(d));
3903
+ c === null || typeof c > "u" || (utils$8.isArray(c) ? a = a + "[]" : c = [c], utils$8.forEach(c, function(p) {
3904
+ utils$8.isDate(p) ? p = p.toISOString() : utils$8.isObject(p) && (p = JSON.stringify(p)), s.push(encode(a) + "=" + encode(p));
4402
3905
  }));
4403
3906
  }), i = s.join("&");
4404
3907
  }
4405
3908
  if (i) {
4406
- var o = e.indexOf("#");
4407
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
3909
+ var u = e.indexOf("#");
3910
+ u !== -1 && (e = e.slice(0, u)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
4408
3911
  }
4409
3912
  return e;
4410
3913
  }, utils$7 = utils$9;
@@ -4464,9 +3967,9 @@ function requireCreateError() {
4464
3967
  return createError;
4465
3968
  hasRequiredCreateError = 1;
4466
3969
  var n = requireEnhanceError();
4467
- return createError = function(t, r, i, s, o) {
4468
- var u = new Error(t);
4469
- return n(u, r, i, s, o);
3970
+ return createError = function(t, r, i, s, u) {
3971
+ var o = new Error(t);
3972
+ return n(o, r, i, s, u);
4470
3973
  }, createError;
4471
3974
  }
4472
3975
  var settle, hasRequiredSettle;
@@ -4494,9 +3997,9 @@ function requireCookies() {
4494
3997
  var n = utils$9;
4495
3998
  return cookies = n.isStandardBrowserEnv() ? function() {
4496
3999
  return {
4497
- write: function(r, i, s, o, u, c) {
4000
+ write: function(r, i, s, u, o, c) {
4498
4001
  var a = [];
4499
- a.push(r + "=" + encodeURIComponent(i)), n.isNumber(s) && a.push("expires=" + new Date(s).toGMTString()), n.isString(o) && a.push("path=" + o), n.isString(u) && a.push("domain=" + u), c === !0 && a.push("secure"), document.cookie = a.join("; ");
4002
+ a.push(r + "=" + encodeURIComponent(i)), n.isNumber(s) && a.push("expires=" + new Date(s).toGMTString()), n.isString(u) && a.push("path=" + u), n.isString(o) && a.push("domain=" + o), c === !0 && a.push("secure"), document.cookie = a.join("; ");
4500
4003
  },
4501
4004
  read: function(r) {
4502
4005
  var i = document.cookie.match(new RegExp("(^|;\\s*)(" + r + ")=([^;]*)"));
@@ -4565,13 +4068,13 @@ function requireParseHeaders() {
4565
4068
  "user-agent"
4566
4069
  ];
4567
4070
  return parseHeaders = function(r) {
4568
- var i = {}, s, o, u;
4071
+ var i = {}, s, u, o;
4569
4072
  return r && n.forEach(r.split(`
4570
4073
  `), function(a) {
4571
- if (u = a.indexOf(":"), s = n.trim(a.substr(0, u)).toLowerCase(), o = n.trim(a.substr(u + 1)), s) {
4074
+ if (o = a.indexOf(":"), s = n.trim(a.substr(0, o)).toLowerCase(), u = n.trim(a.substr(o + 1)), s) {
4572
4075
  if (i[s] && e.indexOf(s) >= 0)
4573
4076
  return;
4574
- s === "set-cookie" ? i[s] = (i[s] ? i[s] : []).concat([o]) : i[s] = i[s] ? i[s] + ", " + o : o;
4077
+ s === "set-cookie" ? i[s] = (i[s] ? i[s] : []).concat([u]) : i[s] = i[s] ? i[s] + ", " + u : u;
4575
4078
  }
4576
4079
  }), i;
4577
4080
  }, parseHeaders;
@@ -4584,9 +4087,9 @@ function requireIsURLSameOrigin() {
4584
4087
  var n = utils$9;
4585
4088
  return isURLSameOrigin = n.isStandardBrowserEnv() ? function() {
4586
4089
  var t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a"), i;
4587
- function s(o) {
4588
- var u = o;
4589
- return t && (r.setAttribute("href", u), u = r.href), r.setAttribute("href", u), {
4090
+ function s(u) {
4091
+ var o = u;
4092
+ return t && (r.setAttribute("href", o), o = r.href), r.setAttribute("href", o), {
4590
4093
  href: r.href,
4591
4094
  protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
4592
4095
  host: r.host,
@@ -4597,8 +4100,8 @@ function requireIsURLSameOrigin() {
4597
4100
  pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
4598
4101
  };
4599
4102
  }
4600
- return i = s(window.location.href), function(u) {
4601
- var c = n.isString(u) ? s(u) : u;
4103
+ return i = s(window.location.href), function(o) {
4104
+ var c = n.isString(o) ? s(o) : o;
4602
4105
  return c.protocol === i.protocol && c.host === i.host;
4603
4106
  };
4604
4107
  }() : function() {
@@ -4612,57 +4115,57 @@ function requireXhr() {
4612
4115
  if (hasRequiredXhr)
4613
4116
  return xhr;
4614
4117
  hasRequiredXhr = 1;
4615
- var n = utils$9, e = requireSettle(), t = requireCookies(), r = buildURL$1, i = requireBuildFullPath(), s = requireParseHeaders(), o = requireIsURLSameOrigin(), u = requireCreateError();
4118
+ var n = utils$9, e = requireSettle(), t = requireCookies(), r = buildURL$1, i = requireBuildFullPath(), s = requireParseHeaders(), u = requireIsURLSameOrigin(), o = requireCreateError();
4616
4119
  return xhr = function(a) {
4617
- return new Promise(function(d, f) {
4618
- var p = a.data, E = a.headers;
4619
- n.isFormData(p) && delete E["Content-Type"];
4120
+ return new Promise(function(p, f) {
4121
+ var d = a.data, m = a.headers;
4122
+ n.isFormData(d) && delete m["Content-Type"];
4620
4123
  var h = new XMLHttpRequest();
4621
4124
  if (a.auth) {
4622
- var v = a.auth.username || "", g = a.auth.password ? unescape(encodeURIComponent(a.auth.password)) : "";
4623
- E.Authorization = "Basic " + btoa(v + ":" + g);
4125
+ var E = a.auth.username || "", g = a.auth.password ? unescape(encodeURIComponent(a.auth.password)) : "";
4126
+ m.Authorization = "Basic " + btoa(E + ":" + g);
4624
4127
  }
4625
4128
  var b = i(a.baseURL, a.url);
4626
4129
  if (h.open(a.method.toUpperCase(), r(b, a.params, a.paramsSerializer), !0), h.timeout = a.timeout, h.onreadystatechange = function() {
4627
4130
  if (!(!h || h.readyState !== 4) && !(h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0))) {
4628
- var w = "getAllResponseHeaders" in h ? s(h.getAllResponseHeaders()) : null, C = !a.responseType || a.responseType === "text" ? h.responseText : h.response, R = {
4629
- data: C,
4131
+ var A = "getAllResponseHeaders" in h ? s(h.getAllResponseHeaders()) : null, F = !a.responseType || a.responseType === "text" ? h.responseText : h.response, C = {
4132
+ data: F,
4630
4133
  status: h.status,
4631
4134
  statusText: h.statusText,
4632
- headers: w,
4135
+ headers: A,
4633
4136
  config: a,
4634
4137
  request: h
4635
4138
  };
4636
- e(d, f, R), h = null;
4139
+ e(p, f, C), h = null;
4637
4140
  }
4638
4141
  }, h.onabort = function() {
4639
- !h || (f(u("Request aborted", a, "ECONNABORTED", h)), h = null);
4142
+ !h || (f(o("Request aborted", a, "ECONNABORTED", h)), h = null);
4640
4143
  }, h.onerror = function() {
4641
- f(u("Network Error", a, null, h)), h = null;
4144
+ f(o("Network Error", a, null, h)), h = null;
4642
4145
  }, h.ontimeout = function() {
4643
- var w = "timeout of " + a.timeout + "ms exceeded";
4644
- a.timeoutErrorMessage && (w = a.timeoutErrorMessage), f(u(
4645
- w,
4146
+ var A = "timeout of " + a.timeout + "ms exceeded";
4147
+ a.timeoutErrorMessage && (A = a.timeoutErrorMessage), f(o(
4148
+ A,
4646
4149
  a,
4647
4150
  "ECONNABORTED",
4648
4151
  h
4649
4152
  )), h = null;
4650
4153
  }, n.isStandardBrowserEnv()) {
4651
- var F = (a.withCredentials || o(b)) && a.xsrfCookieName ? t.read(a.xsrfCookieName) : void 0;
4652
- F && (E[a.xsrfHeaderName] = F);
4154
+ var w = (a.withCredentials || u(b)) && a.xsrfCookieName ? t.read(a.xsrfCookieName) : void 0;
4155
+ w && (m[a.xsrfHeaderName] = w);
4653
4156
  }
4654
- if ("setRequestHeader" in h && n.forEach(E, function(w, C) {
4655
- typeof p > "u" && C.toLowerCase() === "content-type" ? delete E[C] : h.setRequestHeader(C, w);
4157
+ if ("setRequestHeader" in h && n.forEach(m, function(A, F) {
4158
+ typeof d > "u" && F.toLowerCase() === "content-type" ? delete m[F] : h.setRequestHeader(F, A);
4656
4159
  }), n.isUndefined(a.withCredentials) || (h.withCredentials = !!a.withCredentials), a.responseType)
4657
4160
  try {
4658
4161
  h.responseType = a.responseType;
4659
- } catch (A) {
4162
+ } catch (y) {
4660
4163
  if (a.responseType !== "json")
4661
- throw A;
4164
+ throw y;
4662
4165
  }
4663
- typeof a.onDownloadProgress == "function" && h.addEventListener("progress", a.onDownloadProgress), typeof a.onUploadProgress == "function" && h.upload && h.upload.addEventListener("progress", a.onUploadProgress), a.cancelToken && a.cancelToken.promise.then(function(w) {
4664
- !h || (h.abort(), f(w), h = null);
4665
- }), p || (p = null), h.send(p);
4166
+ typeof a.onDownloadProgress == "function" && h.addEventListener("progress", a.onDownloadProgress), typeof a.onUploadProgress == "function" && h.upload && h.upload.addEventListener("progress", a.onUploadProgress), a.cancelToken && a.cancelToken.promise.then(function(A) {
4167
+ !h || (h.abort(), f(A), h = null);
4168
+ }), d || (d = null), h.send(d);
4666
4169
  });
4667
4170
  }, xhr;
4668
4171
  }
@@ -4744,7 +4247,7 @@ var dispatchRequest$1 = function(e) {
4744
4247
  });
4745
4248
  }, utils$2 = utils$9, mergeConfig$2 = function(e, t) {
4746
4249
  t = t || {};
4747
- var r = {}, i = ["url", "method", "data"], s = ["headers", "auth", "proxy", "params"], o = [
4250
+ var r = {}, i = ["url", "method", "data"], s = ["headers", "auth", "proxy", "params"], u = [
4748
4251
  "baseURL",
4749
4252
  "transformRequest",
4750
4253
  "transformResponse",
@@ -4768,24 +4271,24 @@ var dispatchRequest$1 = function(e) {
4768
4271
  "cancelToken",
4769
4272
  "socketPath",
4770
4273
  "responseEncoding"
4771
- ], u = ["validateStatus"];
4772
- function c(f, p) {
4773
- return utils$2.isPlainObject(f) && utils$2.isPlainObject(p) ? utils$2.merge(f, p) : utils$2.isPlainObject(p) ? utils$2.merge({}, p) : utils$2.isArray(p) ? p.slice() : p;
4274
+ ], o = ["validateStatus"];
4275
+ function c(f, d) {
4276
+ return utils$2.isPlainObject(f) && utils$2.isPlainObject(d) ? utils$2.merge(f, d) : utils$2.isPlainObject(d) ? utils$2.merge({}, d) : utils$2.isArray(d) ? d.slice() : d;
4774
4277
  }
4775
4278
  function a(f) {
4776
4279
  utils$2.isUndefined(t[f]) ? utils$2.isUndefined(e[f]) || (r[f] = c(void 0, e[f])) : r[f] = c(e[f], t[f]);
4777
4280
  }
4778
- utils$2.forEach(i, function(p) {
4779
- utils$2.isUndefined(t[p]) || (r[p] = c(void 0, t[p]));
4780
- }), utils$2.forEach(s, a), utils$2.forEach(o, function(p) {
4781
- utils$2.isUndefined(t[p]) ? utils$2.isUndefined(e[p]) || (r[p] = c(void 0, e[p])) : r[p] = c(void 0, t[p]);
4782
- }), utils$2.forEach(u, function(p) {
4783
- p in t ? r[p] = c(e[p], t[p]) : p in e && (r[p] = c(void 0, e[p]));
4281
+ utils$2.forEach(i, function(d) {
4282
+ utils$2.isUndefined(t[d]) || (r[d] = c(void 0, t[d]));
4283
+ }), utils$2.forEach(s, a), utils$2.forEach(u, function(d) {
4284
+ utils$2.isUndefined(t[d]) ? utils$2.isUndefined(e[d]) || (r[d] = c(void 0, e[d])) : r[d] = c(void 0, t[d]);
4285
+ }), utils$2.forEach(o, function(d) {
4286
+ d in t ? r[d] = c(e[d], t[d]) : d in e && (r[d] = c(void 0, e[d]));
4784
4287
  });
4785
- var l = i.concat(s).concat(o).concat(u), d = Object.keys(e).concat(Object.keys(t)).filter(function(p) {
4786
- return l.indexOf(p) === -1;
4288
+ var l = i.concat(s).concat(u).concat(o), p = Object.keys(e).concat(Object.keys(t)).filter(function(d) {
4289
+ return l.indexOf(d) === -1;
4787
4290
  });
4788
- return utils$2.forEach(d, a), r;
4291
+ return utils$2.forEach(p, a), r;
4789
4292
  }, utils$1 = utils$9, buildURL = buildURL$1, InterceptorManager = InterceptorManager_1, dispatchRequest = dispatchRequest$1, mergeConfig$1 = mergeConfig$2;
4790
4293
  function Axios$1(n) {
4791
4294
  this.defaults = n, this.interceptors = {
@@ -4847,20 +4350,20 @@ function requireCancelToken() {
4847
4350
  if (typeof t != "function")
4848
4351
  throw new TypeError("executor must be a function.");
4849
4352
  var r;
4850
- this.promise = new Promise(function(o) {
4851
- r = o;
4353
+ this.promise = new Promise(function(u) {
4354
+ r = u;
4852
4355
  });
4853
4356
  var i = this;
4854
- t(function(o) {
4855
- i.reason || (i.reason = new n(o), r(i.reason));
4357
+ t(function(u) {
4358
+ i.reason || (i.reason = new n(u), r(i.reason));
4856
4359
  });
4857
4360
  }
4858
4361
  return e.prototype.throwIfRequested = function() {
4859
4362
  if (this.reason)
4860
4363
  throw this.reason;
4861
4364
  }, e.source = function() {
4862
- var r, i = new e(function(o) {
4863
- r = o;
4365
+ var r, i = new e(function(u) {
4366
+ r = u;
4864
4367
  });
4865
4368
  return {
4866
4369
  token: i,
@@ -4908,8 +4411,8 @@ axios$2.exports.default = axios$1;
4908
4411
  const axios = /* @__PURE__ */ getDefaultExportFromCjs(axios$3.exports), loadedScripts$1 = {};
4909
4412
  class Http {
4910
4413
  constructor(e) {
4911
- m(this, "axios");
4912
- m(this, "_latestResponse");
4414
+ v(this, "axios");
4415
+ v(this, "_latestResponse");
4913
4416
  this.axios = axios.create(e);
4914
4417
  }
4915
4418
  setCdn(e) {
@@ -4977,15 +4480,15 @@ class Http {
4977
4480
  }
4978
4481
  getScript(e, t, r) {
4979
4482
  const i = r != null ? r : "exports", s = this.toAxiosConfig(t);
4980
- return s.headers && (s.headers.Accept = "application/javascript"), this.axios.get(this.toCdnUrl(e), s).then((o) => this.mapAxiosResponse(o, t)).then((o) => {
4483
+ return s.headers && (s.headers.Accept = "application/javascript"), this.axios.get(this.toCdnUrl(e), s).then((u) => this.mapAxiosResponse(u, t)).then((u) => {
4981
4484
  try {
4982
- const u = `"use strict";var ${i.split(".")[0]}={};${o};return ${i};`;
4983
- return Function(u)();
4485
+ const o = `"use strict";var ${i.split(".")[0]}={};${u};return ${i};`;
4486
+ return Function(o)();
4984
4487
  } catch {
4985
- return o;
4488
+ return u;
4986
4489
  }
4987
- }).catch((o) => {
4988
- throw this.mapAxiosError(o, t), o;
4490
+ }).catch((u) => {
4491
+ throw this.mapAxiosError(u, t), u;
4989
4492
  });
4990
4493
  }
4991
4494
  loadScript(e, t) {
@@ -4996,7 +4499,7 @@ class Http {
4996
4499
  }
4997
4500
  class TransportFramework {
4998
4501
  constructor() {
4999
- m(this, "_http", new Http());
4502
+ v(this, "_http", new Http());
5000
4503
  }
5001
4504
  get http() {
5002
4505
  return this._http;
@@ -5014,11 +4517,11 @@ class TransportFrameworkFactory {
5014
4517
  const http$2 = transport.http;
5015
4518
  class Session {
5016
4519
  constructor() {
5017
- m(this, "_me", null);
5018
- m(this, "_currentLanguage", "");
5019
- m(this, "_notLoggedIn", !0);
5020
- m(this, "_description");
5021
- m(this, "_profile");
4520
+ v(this, "_me", null);
4521
+ v(this, "_currentLanguage", "");
4522
+ v(this, "_notLoggedIn", !0);
4523
+ v(this, "_description");
4524
+ v(this, "_profile");
5022
4525
  }
5023
4526
  get currentLanguage() {
5024
4527
  return this._currentLanguage;
@@ -5062,8 +4565,8 @@ class Session {
5062
4565
  hasRight(e, t) {
5063
4566
  if (t === "owner")
5064
4567
  return e.owner && e.owner.userId === this._me.userId;
5065
- const r = t.right || t, s = e.shared.filter((u) => (this._me.groupsIds || []).indexOf(u.groupId) !== -1 || u.userId === this._me.userId).find((u) => u[r] || u.manager) !== void 0, o = t.workflow ? this.hasWorkflow(t.workflow) : !0;
5066
- return s && o;
4568
+ const r = t.right || t, s = e.shared.filter((o) => (this._me.groupsIds || []).indexOf(o.groupId) !== -1 || o.userId === this._me.userId).find((o) => o[r] || o.manager) !== void 0, u = t.workflow ? this.hasWorkflow(t.workflow) : !0;
4569
+ return s && u;
5067
4570
  }
5068
4571
  get latestQuotaAndUsage() {
5069
4572
  return http$2.get(`/workspace/quota/user/${this._me.userId}`).then((e) => (this._description && (this._description.quota = e.quota, this._description.storage = e.storage), e)).catch(() => ({ quota: 0, storage: 0 }));
@@ -5128,7 +4631,7 @@ class Session {
5128
4631
  }
5129
4632
  class SessionFramework {
5130
4633
  constructor() {
5131
- m(this, "session", new Session());
4634
+ v(this, "session", new Session());
5132
4635
  }
5133
4636
  initialize() {
5134
4637
  return this.session.initialize();
@@ -5152,21 +4655,21 @@ class SessionFramework {
5152
4655
  const session = new SessionFramework();
5153
4656
  class Theme {
5154
4657
  constructor() {
5155
- m(this, "_conf");
5156
- m(this, "_loaded");
5157
- m(this, "skinName", "");
5158
- m(this, "themeName", "");
5159
- m(this, "skin", "raw");
5160
- m(this, "themeUrl", "/assets/themes/raw/default/");
5161
- m(this, "templateOverrides", {});
5162
- m(this, "portalTemplate", "/assets/themes/raw/portal.html");
5163
- m(this, "basePath", "");
5164
- m(this, "logoutCallback", "/");
5165
- m(this, "skins", []);
5166
- m(this, "is1D", !1);
5167
- m(this, "is2D", !1);
5168
- m(this, "_onSkinReady", notify.onSkinReady());
5169
- m(this, "_onOverrideReady", notify.onOverridesReady());
4658
+ v(this, "_conf");
4659
+ v(this, "_loaded");
4660
+ v(this, "skinName", "");
4661
+ v(this, "themeName", "");
4662
+ v(this, "skin", "raw");
4663
+ v(this, "themeUrl", "/assets/themes/raw/default/");
4664
+ v(this, "templateOverrides", {});
4665
+ v(this, "portalTemplate", "/assets/themes/raw/portal.html");
4666
+ v(this, "basePath", "");
4667
+ v(this, "logoutCallback", "/");
4668
+ v(this, "skins", []);
4669
+ v(this, "is1D", !1);
4670
+ v(this, "is2D", !1);
4671
+ v(this, "_onSkinReady", notify.onSkinReady());
4672
+ v(this, "_onOverrideReady", notify.onOverridesReady());
5170
4673
  }
5171
4674
  initialize(e) {
5172
4675
  return notify.onSessionReady().promise.then(() => this.load(e));
@@ -5500,10 +5003,10 @@ class Idiom {
5500
5003
  else {
5501
5004
  const s = new Promisified();
5502
5005
  promises$1[t] = s.promise;
5503
- const o = {};
5504
- e && (o["Accept-Language"] = e), transport.http.get(t, { headers: o }).then((u) => {
5505
- Object.assign(bundle$1, u), typeof r == "function" && r(), s.resolve();
5506
- }).catch((u) => {
5006
+ const u = {};
5007
+ e && (u["Accept-Language"] = e), transport.http.get(t, { headers: u }).then((o) => {
5008
+ Object.assign(bundle$1, o), typeof r == "function" && r(), s.resolve();
5009
+ }).catch((o) => {
5507
5010
  typeof r == "function" && r(), s.reject();
5508
5011
  });
5509
5012
  }
@@ -5538,7 +5041,7 @@ class Idiom {
5538
5041
  }
5539
5042
  class UserPreferences {
5540
5043
  constructor() {
5541
- m(this, "data", {});
5044
+ v(this, "data", {});
5542
5045
  }
5543
5046
  get(e) {
5544
5047
  return this.data[e];
@@ -5564,10 +5067,10 @@ class UserPreferences {
5564
5067
  }
5565
5068
  class User {
5566
5069
  constructor() {
5567
- m(this, "_me", null);
5568
- m(this, "_keepOpenOnLogout", !1);
5569
- m(this, "_preferences", new UserPreferences());
5570
- m(this, "_bookmarkedApps", []);
5070
+ v(this, "_me", null);
5071
+ v(this, "_keepOpenOnLogout", !1);
5072
+ v(this, "_preferences", new UserPreferences());
5073
+ v(this, "_bookmarkedApps", []);
5571
5074
  }
5572
5075
  get keepOpenOnLogout() {
5573
5076
  return this._keepOpenOnLogout;
@@ -5598,7 +5101,7 @@ class User {
5598
5101
  let r;
5599
5102
  if (t && t.length && typeof t.concat == "function") {
5600
5103
  this._bookmarkedApps = t, r = {
5601
- bookmarks: t.map((o) => o.name),
5104
+ bookmarks: t.map((u) => u.name),
5602
5105
  applications: []
5603
5106
  }, transport.http.putJson("/userbook/preference/apps", r);
5604
5107
  return;
@@ -5610,16 +5113,16 @@ class User {
5610
5113
  });
5611
5114
  let i = !0;
5612
5115
  const s = [];
5613
- r.bookmarks.forEach((o, u) => {
5614
- const c = this._me.apps.find((a) => a.name === o);
5116
+ r.bookmarks.forEach((u, o) => {
5117
+ const c = this._me.apps.find((a) => a.name === u);
5615
5118
  if (c) {
5616
5119
  let a = Object.assign({}, c);
5617
5120
  this._bookmarkedApps.push(a);
5618
5121
  } else
5619
- s.push(o), i = !1;
5620
- }), s.forEach((o) => {
5621
- let u = r.bookmarks.indexOf(o);
5622
- u !== -1 && r.bookmarks.splice(u, 1);
5122
+ s.push(u), i = !1;
5123
+ }), s.forEach((u) => {
5124
+ let o = r.bookmarks.indexOf(u);
5125
+ o !== -1 && r.bookmarks.splice(o, 1);
5623
5126
  }), i || transport.http.putJson("/userbook/preference/apps", r);
5624
5127
  });
5625
5128
  }
@@ -5639,9 +5142,9 @@ class User {
5639
5142
  const http$1 = transport == null ? void 0 : transport.http;
5640
5143
  class AppConf {
5641
5144
  constructor() {
5642
- m(this, "_publicConf", {});
5643
- m(this, "_currentApp");
5644
- m(this, "_appConf", {});
5145
+ v(this, "_publicConf", {});
5146
+ v(this, "_currentApp");
5147
+ v(this, "_appConf", {});
5645
5148
  }
5646
5149
  get currentApp() {
5647
5150
  var e;
@@ -5665,8 +5168,8 @@ class AppConf {
5665
5168
  "/applications-list"
5666
5169
  )).apps.forEach((s) => {
5667
5170
  if (s != null && s.prefix) {
5668
- const o = s.prefix.replace("/", "");
5669
- this._appConf[o] = s;
5171
+ const u = s.prefix.replace("/", "");
5172
+ this._appConf[u] = s;
5670
5173
  } else
5671
5174
  s != null && s.name && s.name.toLowerCase() == e && (t = s);
5672
5175
  }), (r = this._appConf[e]) != null ? r : t;
@@ -5677,8 +5180,8 @@ class AppConf {
5677
5180
  }
5678
5181
  class Analytics {
5679
5182
  constructor() {
5680
- m(this, "_status", "void");
5681
- m(this, "_params");
5183
+ v(this, "_status", "void");
5184
+ v(this, "_params");
5682
5185
  }
5683
5186
  get status() {
5684
5187
  return this._status;
@@ -5713,9 +5216,9 @@ class Analytics {
5713
5216
  const t = await notify.onSessionReady().promise, r = session.session.description;
5714
5217
  let i;
5715
5218
  for (let l of t.structures) {
5716
- const d = e.structureMap[l];
5717
- if (d && d.collectiviteId && d.UAI) {
5718
- i = d;
5219
+ const p = e.structureMap[l];
5220
+ if (p && p.collectiviteId && p.UAI) {
5221
+ i = p;
5719
5222
  break;
5720
5223
  }
5721
5224
  }
@@ -5726,14 +5229,14 @@ class Analytics {
5726
5229
  );
5727
5230
  if (!s)
5728
5231
  return;
5729
- const o = s.xiti;
5730
- if (!o || !o.LIBELLE_SERVICE || !i.UAI)
5232
+ const u = s.xiti;
5233
+ if (!u || !u.LIBELLE_SERVICE || !i.UAI)
5731
5234
  return;
5732
- function u(l) {
5733
- let d = "";
5235
+ function o(l) {
5236
+ let p = "";
5734
5237
  for (let f = 0; f < l.length; f++)
5735
- d += l.charCodeAt(f);
5736
- return d;
5238
+ p += l.charCodeAt(f);
5239
+ return p;
5737
5240
  }
5738
5241
  const c = {
5739
5242
  Student: "ELEVE",
@@ -5743,22 +5246,22 @@ class Analytics {
5743
5246
  Guest: "AUTRE"
5744
5247
  };
5745
5248
  return {
5746
- LIBELLE_SERVICE: o.LIBELLE_SERVICE,
5747
- TYPE: o.OUTIL ? "TIERS" : "NATIF",
5748
- OUTIL: o.OUTIL ? o.OUTIL : "",
5249
+ LIBELLE_SERVICE: u.LIBELLE_SERVICE,
5250
+ TYPE: u.OUTIL ? "TIERS" : "NATIF",
5251
+ OUTIL: u.OUTIL ? u.OUTIL : "",
5749
5252
  STRUCT_ID: i.collectiviteId,
5750
5253
  STRUCT_UAI: i.UAI,
5751
5254
  PROJET: i.projetId ? i.projetId : e.ID_PROJET,
5752
5255
  EXPLOITANT: e.ID_EXPLOITANT,
5753
5256
  PLATFORME: i.plateformeId ? i.plateformeId : e.ID_PLATEFORME,
5754
- ID_PERSO: u(t.userId),
5257
+ ID_PERSO: o(t.userId),
5755
5258
  PROFILE: r.profiles && r.profiles.length > 0 && (a = c[r.profiles[0]]) != null ? a : ""
5756
5259
  };
5757
5260
  }
5758
5261
  }
5759
5262
  class ConfigurationFramework {
5760
5263
  constructor() {
5761
- m(this, "Platform", {
5264
+ v(this, "Platform", {
5762
5265
  deploymentTag: "",
5763
5266
  cdnDomain: "",
5764
5267
  apps: new AppConf(),
@@ -5767,13 +5270,13 @@ class ConfigurationFramework {
5767
5270
  idiom: new Idiom(),
5768
5271
  listLanguages: () => transport.http.get("/languages")
5769
5272
  });
5770
- m(this, "School", {});
5771
- m(this, "User", new User());
5273
+ v(this, "School", {});
5274
+ v(this, "User", new User());
5772
5275
  }
5773
5276
  async initialize(e, t) {
5774
5277
  if (!e) {
5775
- const i = (a) => (a < 10 ? "0" : "") + a.toFixed(0), s = new Date(), o = s.getFullYear(), u = s.getMonth() + 1, c = s.getDate();
5776
- e = `${o}${i(u)}${i(c)}`;
5278
+ const i = (a) => (a < 10 ? "0" : "") + a.toFixed(0), s = new Date(), u = s.getFullYear(), o = s.getMonth() + 1, c = s.getDate();
5279
+ e = `${u}${i(o)}${i(c)}`;
5777
5280
  }
5778
5281
  const r = e;
5779
5282
  this.Platform.deploymentTag = e, typeof t == "string" && t.length > 0 && (this.Platform.cdnDomain = t), transport.http.setCdn(this.Platform.cdnDomain), await Promise.all([
@@ -5831,7 +5334,8 @@ const WIDGET_POSITION = {
5831
5334
  "maxicours-widget": WIDGET_POSITION.RIGHT,
5832
5335
  "universalis-widget": WIDGET_POSITION.RIGHT,
5833
5336
  "briefme-widget": WIDGET_POSITION.LEFT,
5834
- "school-widget": WIDGET_POSITION.LEFT
5337
+ "school-widget": WIDGET_POSITION.LEFT,
5338
+ "edumalin-widget": WIDGET_POSITION.RIGHT
5835
5339
  }, defaultWidgetOrder = {
5836
5340
  "school-widget": 0,
5837
5341
  "my-apps": 10,
@@ -5850,13 +5354,14 @@ const WIDGET_POSITION = {
5850
5354
  mood: 110,
5851
5355
  birthday: 120,
5852
5356
  "calendar-widget": 130,
5853
- notes: 140
5357
+ notes: 140,
5358
+ "edumalin-widget": 35
5854
5359
  };
5855
5360
  class WidgetFramework {
5856
5361
  constructor() {
5857
- m(this, "_initialized");
5858
- m(this, "_widgets", []);
5859
- m(this, "_userPrefs", {});
5362
+ v(this, "_initialized");
5363
+ v(this, "_widgets", []);
5364
+ v(this, "_userPrefs", {});
5860
5365
  }
5861
5366
  initialize(e, t) {
5862
5367
  return this._initialized || (this._initialized = new Promisified(), notify.onSessionReady().promise.then((r) => {
@@ -5867,8 +5372,8 @@ class WidgetFramework {
5867
5372
  var s;
5868
5373
  (s = this._initialized) == null || s.resolve();
5869
5374
  }).catch((s) => {
5870
- var o;
5871
- (o = this._initialized) == null || o.reject();
5375
+ var u;
5376
+ (u = this._initialized) == null || u.reject();
5872
5377
  })) : (i = this._initialized) == null || i.reject();
5873
5378
  })), this._initialized.promise;
5874
5379
  }
@@ -5899,29 +5404,29 @@ class WidgetFramework {
5899
5404
  this._userPrefs = e != null ? e : this._userPrefs;
5900
5405
  const t = configure.Platform.theme, r = [];
5901
5406
  t.listSkins().then((i) => {
5902
- var u;
5903
- const s = ((u = i.find((c) => c.child === t.skin)) == null ? void 0 : u.parent) === "panda" ? secondLevelWidgets : firstLevelWidgets;
5407
+ var o;
5408
+ const s = ((o = i.find((c) => c.child === t.skin)) == null ? void 0 : o.parent) === "panda" ? secondLevelWidgets : firstLevelWidgets;
5904
5409
  this._widgets = this._widgets.filter((c, a) => {
5905
- var f, p;
5410
+ var f, d;
5906
5411
  const l = c.platformConf.name;
5907
5412
  return s.indexOf(l) !== -1 ? !1 : (this._userPrefs[l] || (this._userPrefs[l] = {
5908
5413
  index: (f = defaultWidgetOrder[l]) != null ? f : 999,
5909
5414
  show: !0,
5910
5415
  position: c.platformConf.position
5911
- }), c.platformConf.mandatory && (this._userPrefs[l].show = !0, this._userPrefs[l].index = (p = defaultWidgetOrder[l]) != null ? p : 999), c.platformConf.i18n && r.push(c.platformConf.i18n), c.applyUserPref(this._userPrefs[l]), !0);
5416
+ }), c.platformConf.mandatory && (this._userPrefs[l].show = !0, this._userPrefs[l].index = (d = defaultWidgetOrder[l]) != null ? d : 999), c.platformConf.i18n && r.push(c.platformConf.i18n), c.applyUserPref(this._userPrefs[l]), !0);
5912
5417
  });
5913
- const o = new Idiom();
5418
+ const u = new Idiom();
5914
5419
  this._widgets = this._widgets.sort((c, a) => {
5915
- const l = o.translate(`timeline.settings.${c.platformConf.name}`).toLowerCase(), d = o.translate(`timeline.settings.${a.platformConf.name}`).toLowerCase();
5916
- return l < d ? -1 : l > d ? 1 : 0;
5420
+ const l = u.translate(`timeline.settings.${c.platformConf.name}`).toLowerCase(), p = u.translate(`timeline.settings.${a.platformConf.name}`).toLowerCase();
5421
+ return l < p ? -1 : l > p ? 1 : 0;
5917
5422
  });
5918
5423
  });
5919
5424
  }
5920
5425
  }
5921
5426
  class Widget {
5922
5427
  constructor(e) {
5923
- m(this, "_schoolConf", {});
5924
- m(this, "_userPref");
5428
+ v(this, "_schoolConf", {});
5429
+ v(this, "_userPref");
5925
5430
  this._platformConf = e, this._userPref = null;
5926
5431
  }
5927
5432
  get platformConf() {
@@ -5971,7 +5476,8 @@ const WIDGET_NAME = {
5971
5476
  MAXICOURS: "maxicours-widget",
5972
5477
  UNIVERSALIS: "universalis-widget",
5973
5478
  BRIEFME: "briefme-widget",
5974
- SCHOOL: "school-widget"
5479
+ SCHOOL: "school-widget",
5480
+ EDUMALIN: "edumalin-widget"
5975
5481
  };
5976
5482
  class WidgetFrameworkFactory {
5977
5483
  static instance() {
@@ -5979,12 +5485,12 @@ class WidgetFrameworkFactory {
5979
5485
  }
5980
5486
  }
5981
5487
  const http = transport == null ? void 0 : transport.http;
5982
- var O;
5983
- const me = (O = session == null ? void 0 : session.session) == null ? void 0 : O.user;
5488
+ var R;
5489
+ const me = (R = session == null ? void 0 : session.session) == null ? void 0 : R.user;
5984
5490
  class Notification {
5985
5491
  constructor(e) {
5986
- m(this, "_id");
5987
- m(this, "model");
5492
+ v(this, "_id");
5493
+ v(this, "model");
5988
5494
  e.reported = e.reporters && e.reporters.length > 0, this._id = e._id, this.model = e;
5989
5495
  }
5990
5496
  isUnread() {
@@ -6003,13 +5509,13 @@ class Notification {
6003
5509
  }
6004
5510
  class TimelineApp {
6005
5511
  constructor() {
6006
- m(this, "_notifications", []);
6007
- m(this, "_notificationTypes", []);
6008
- m(this, "_flashMessages", []);
6009
- m(this, "_pageNumber", 0);
6010
- m(this, "_lastPage", !1);
6011
- m(this, "_loading", !1);
6012
- m(this, "showMine", !1);
5512
+ v(this, "_notifications", []);
5513
+ v(this, "_notificationTypes", []);
5514
+ v(this, "_flashMessages", []);
5515
+ v(this, "_pageNumber", 0);
5516
+ v(this, "_lastPage", !1);
5517
+ v(this, "_loading", !1);
5518
+ v(this, "showMine", !1);
6013
5519
  }
6014
5520
  get notifications() {
6015
5521
  return this._notifications;
@@ -6067,10 +5573,10 @@ class TimelineApp {
6067
5573
  if (this._loading = !1, i.status === "ok")
6068
5574
  if (i.number && i.results) {
6069
5575
  const s = i.results.filter(
6070
- (o) => this._notifications.findIndex(
6071
- (u) => u._id === o._id
5576
+ (u) => this._notifications.findIndex(
5577
+ (o) => o._id === u._id
6072
5578
  ) === -1
6073
- ).map((o) => new Notification(o));
5579
+ ).map((u) => new Notification(u));
6074
5580
  this._notifications = this._notifications.concat(s), this._pageNumber++;
6075
5581
  } else
6076
5582
  this._lastPage = !0;
@@ -6095,7 +5601,7 @@ class ITimelineFactory {
6095
5601
  }
6096
5602
  const x = class {
6097
5603
  constructor(e) {
6098
- m(this, "checkHttpResponse", (e) => {
5604
+ v(this, "checkHttpResponse", (e) => {
6099
5605
  if (this.http.latestResponse.status >= 300)
6100
5606
  throw this.http.latestResponse.statusText;
6101
5607
  return e;
@@ -6294,8 +5800,21 @@ const x = class {
6294
5800
  }
6295
5801
  };
6296
5802
  let ResourceService = x;
6297
- m(ResourceService, "registry", /* @__PURE__ */ new Map());
5803
+ v(ResourceService, "registry", /* @__PURE__ */ new Map());
6298
5804
  class BlogResourceService extends ResourceService {
5805
+ async create(e) {
5806
+ const t = e.thumbnail ? await this.getThumbnailPath(e.thumbnail) : "", r = e.public ? "/blog/pub" : "/blog", i = await this.http.post(r, {
5807
+ title: e.name,
5808
+ description: e.description,
5809
+ visibility: e.public ? "PUBLIC" : "OWNER",
5810
+ thumbnail: t,
5811
+ trashed: !1,
5812
+ slug: e.public ? e.slug : "",
5813
+ "publish-type": e.publishType || "RESTRAINT",
5814
+ "comment-type": "IMMEDIATE"
5815
+ });
5816
+ return this.checkHttpResponse(i), i;
5817
+ }
6299
5818
  async update(e) {
6300
5819
  const t = await this.getThumbnailPath(e.thumbnail), r = await this.http.put(`/blog/${e.entId}`, {
6301
5820
  trashed: e.trashed,
@@ -6330,6 +5849,50 @@ ResourceService.register(
6330
5849
  { application: RESOURCE.BLOG, resourceType: RESOURCE.BLOG },
6331
5850
  (n) => new BlogResourceService(n)
6332
5851
  );
5852
+ class MindmapResourceService extends ResourceService {
5853
+ async create(e) {
5854
+ const t = e.thumbnail ? await this.getThumbnailPath(e.thumbnail) : "", r = await this.http.post("/mindmap", {
5855
+ name: e.name,
5856
+ description: e.description,
5857
+ thumbnail: t,
5858
+ folder: e.folder,
5859
+ map: `<map version="tango" theme="prism"><topic central="true" text="${e.name}"/></map>`,
5860
+ trashed: !1,
5861
+ visibility: "OWNER"
5862
+ });
5863
+ return this.checkHttpResponse(r), { entId: r._id, thumbnail: t };
5864
+ }
5865
+ async update(e) {
5866
+ const t = e.thumbnail ? await this.getThumbnailPath(e.thumbnail) : "", r = await this.http.put(`/mindmap/${e.entId}`, {
5867
+ trashed: e.trashed,
5868
+ _id: e.entId,
5869
+ name: e.name,
5870
+ thumbnail: t,
5871
+ description: e.description,
5872
+ visibility: e.public ? "PUBLIC" : "OWNER"
5873
+ });
5874
+ return this.checkHttpResponse(r), { thumbnail: t, entId: e.entId };
5875
+ }
5876
+ getResourceType() {
5877
+ return RESOURCE.MINDMAP;
5878
+ }
5879
+ getApplication() {
5880
+ return APP.MINDMAP;
5881
+ }
5882
+ getFormUrl(e) {
5883
+ return e ? `/mindmap?folderid=${e}/new` : "/mindmap/new";
5884
+ }
5885
+ getViewUrl(e) {
5886
+ return `/mindmap/id/${e}`;
5887
+ }
5888
+ getPrintUrl(e, t) {
5889
+ return `/mindmap/print/id/${e}?comments=${t || !0}`;
5890
+ }
5891
+ }
5892
+ ResourceService.register(
5893
+ { application: RESOURCE.MINDMAP, resourceType: RESOURCE.MINDMAP },
5894
+ (n) => new MindmapResourceService(n)
5895
+ );
6333
5896
  const globalCache = {}, mutexPromise = {};
6334
5897
  class CacheService {
6335
5898
  constructor(e) {
@@ -6388,15 +5951,17 @@ class ConfService {
6388
5951
  const [t, r] = await Promise.all([
6389
5952
  this.getThemeConf(),
6390
5953
  this.getApplicationsList()
6391
- ]), [i, s] = await Promise.all([
5954
+ ]), [i, s, u] = await Promise.all([
6392
5955
  this.getTheme({ conf: t }),
6393
- this.getWebAppConf({ app: e, applications: r })
5956
+ this.getWebAppConf({ app: e, applications: r }),
5957
+ this.getExtendedTheme()
6394
5958
  ]);
6395
5959
  return {
6396
5960
  applications: r,
6397
5961
  conf: t,
6398
5962
  currentApp: s,
6399
- theme: i
5963
+ theme: i,
5964
+ extendedTheme: u
6400
5965
  };
6401
5966
  }
6402
5967
  getCdnUrl() {
@@ -6418,6 +5983,13 @@ class ConfService {
6418
5983
  "exports.conf"
6419
5984
  );
6420
5985
  }
5986
+ async getExtendedTheme() {
5987
+ try {
5988
+ return await this.http.get("/assets/extended-theme.json");
5989
+ } catch {
5990
+ return console.error("[getExtendedTheme] could not found /assets/extended-theme.json"), {};
5991
+ }
5992
+ }
6421
5993
  async getApplicationsList() {
6422
5994
  return (await this.http.get(
6423
5995
  "/applications-list"
@@ -6439,17 +6011,13 @@ class ConfService {
6439
6011
  const r = await this.http.get("/theme", {
6440
6012
  queryParams: { _: e }
6441
6013
  }), i = r.themeName, s = t == null ? void 0 : t.overriding.find(
6442
- (d) => d.child === i
6443
- ).skins, o = "/assets/themes/ode-bootstrap", u = t == null ? void 0 : t.overriding.find(
6444
- (d) => d.child === i
6445
- ).bootstrapVersion, c = `${this.cdnDomain}/assets/themes/${u}`, a = `${c}/skins/${r.skinName}`, l = (t == null ? void 0 : t.overriding.find((d) => d.child === i).parent) === "panda";
6014
+ (a) => a.child === i
6015
+ ).skins, u = "/assets/themes/edifice-bootstrap", o = t == null ? void 0 : t.overriding.find((a) => a.child === i).bootstrapVersion.split("-").at(-1), c = (t == null ? void 0 : t.overriding.find((a) => a.child === i).parent) === "panda";
6446
6016
  return {
6447
6017
  basePath: `${this.cdnDomain}${r.skin}../../`,
6448
- bootstrap: o,
6449
- bootstrapPath: c,
6450
- bootstrapUrl: a,
6451
- bootstrapVersion: u,
6452
- is1d: l,
6018
+ bootstrapPath: u,
6019
+ bootstrapVersion: o,
6020
+ is1d: c,
6453
6021
  logoutCallback: r.logoutCallback,
6454
6022
  skin: r.skin.split("/assets/themes/")[1].split("/")[0],
6455
6023
  skinName: r.skinName,
@@ -6491,17 +6059,17 @@ class DirectoryService {
6491
6059
  return {
6492
6060
  id: r,
6493
6061
  displayName: i,
6494
- groups: t.map(({ name: o, id: u }) => ({
6495
- displayName: o,
6496
- id: u
6062
+ groups: t.map(({ name: u, id: o }) => ({
6063
+ displayName: u,
6064
+ id: o
6497
6065
  })),
6498
- users: s.map(({ displayName: o, id: u, profile: c }) => ({
6066
+ users: s.map(({ displayName: u, id: o, profile: c }) => ({
6499
6067
  profile: c,
6500
- displayName: o,
6068
+ displayName: u,
6501
6069
  firstName: "",
6502
6070
  lastName: "",
6503
6071
  login: "",
6504
- id: u
6072
+ id: o
6505
6073
  }))
6506
6074
  };
6507
6075
  }
@@ -6511,27 +6079,27 @@ class DirectoryService {
6511
6079
  users: i
6512
6080
  }) {
6513
6081
  this.cache.clearCache("/directory/sharebookmark/all");
6514
- const s = i.map((f) => typeof f == "string" ? f : f.id), o = r.map((f) => typeof f == "string" ? f : f.id), u = t.map(async (f) => {
6082
+ const s = i.map((f) => typeof f == "string" ? f : f.id), u = r.map((f) => typeof f == "string" ? f : f.id), o = t.map(async (f) => {
6515
6083
  if (typeof f == "string") {
6516
- const { displayName: p, groups: E, id: h, users: v } = await this.getBookMarkById(
6084
+ const { displayName: d, groups: m, id: h, users: E } = await this.getBookMarkById(
6517
6085
  f
6518
- ), g = v.map((A) => A.id), b = E.map((A) => A.id);
6086
+ ), g = E.map((y) => y.id), b = m.map((y) => y.id);
6519
6087
  return {
6520
- displayName: p,
6088
+ displayName: d,
6521
6089
  id: h,
6522
6090
  members: [...b, ...g]
6523
6091
  };
6524
6092
  } else
6525
6093
  return Promise.resolve(f);
6526
- }), a = (await Promise.all(u)).map((f) => f.members).reduce((f, p) => [...f, ...p], []), l = {
6094
+ }), a = (await Promise.all(o)).map((f) => f.members).reduce((f, d) => [...f, ...d], []), l = {
6527
6095
  name: e,
6528
- members: [...s, ...o, ...a]
6529
- }, { id: d } = await this.http.postJson(
6096
+ members: [...s, ...u, ...a]
6097
+ }, { id: p } = await this.http.postJson(
6530
6098
  "/directory/sharebookmark",
6531
6099
  l
6532
6100
  );
6533
6101
  return {
6534
- id: d,
6102
+ id: p,
6535
6103
  displayName: e,
6536
6104
  members: l.members
6537
6105
  };
@@ -6540,8 +6108,8 @@ class DirectoryService {
6540
6108
  const loadedScripts = {};
6541
6109
  class HttpService {
6542
6110
  constructor(e, t) {
6543
- m(this, "axios");
6544
- m(this, "_latestResponse");
6111
+ v(this, "axios");
6112
+ v(this, "_latestResponse");
6545
6113
  this.context = e, this.axios = axios.create(t);
6546
6114
  }
6547
6115
  setCdn(e) {
@@ -6675,15 +6243,15 @@ class HttpService {
6675
6243
  }
6676
6244
  getScript(e, t, r) {
6677
6245
  const i = r != null ? r : "exports", s = this.toAxiosConfig(t);
6678
- return s.headers && (s.headers.Accept = "application/javascript"), this.axios.get(this.toCdnUrl(e), s).then((o) => this.mapAxiosResponse(o, t)).then((o) => {
6246
+ return s.headers && (s.headers.Accept = "application/javascript"), this.axios.get(this.toCdnUrl(e), s).then((u) => this.mapAxiosResponse(u, t)).then((u) => {
6679
6247
  try {
6680
- const u = `"use strict";var ${i.split(".")[0]}={};${o};return ${i};`;
6681
- return Function(u)();
6248
+ const o = `"use strict";var ${i.split(".")[0]}={};${u};return ${i};`;
6249
+ return Function(o)();
6682
6250
  } catch {
6683
- return o;
6251
+ return u;
6684
6252
  }
6685
- }).catch((o) => {
6686
- throw this.mapAxiosError(o, t), o;
6253
+ }).catch((u) => {
6254
+ throw this.mapAxiosError(u, t), u;
6687
6255
  });
6688
6256
  }
6689
6257
  loadScript(e, t) {
@@ -6719,13 +6287,13 @@ class RightService {
6719
6287
  return e.map((r) => this.parseResourceRight(r)).filter((r) => r !== void 0);
6720
6288
  }
6721
6289
  hasResourceRight({ id: e, groupIds: t }, r, i) {
6722
- const s = i.map((o) => typeof o == "string" ? this.parseResourceRight(o) : o).filter((o) => o !== void 0);
6723
- for (const o of s) {
6724
- if (o.id === e && o.type === "creator")
6290
+ const s = i.map((u) => typeof u == "string" ? this.parseResourceRight(u) : u).filter((u) => u !== void 0);
6291
+ for (const u of s) {
6292
+ if (u.id === e && u.type === "creator")
6725
6293
  return !0;
6726
- if (o.id === e && o.type === "user" && o.right === r)
6294
+ if (u.id === e && u.type === "user" && u.right === r)
6727
6295
  return !0;
6728
- if (t.includes(o.id) && o.type === "group" && o.right === r)
6296
+ if (t.includes(u.id) && u.type === "group" && u.right === r)
6729
6297
  return !0;
6730
6298
  }
6731
6299
  return !1;
@@ -6821,7 +6389,7 @@ class SessionService {
6821
6389
  r,
6822
6390
  i,
6823
6391
  s,
6824
- o
6392
+ u
6825
6393
  ] = await Promise.all([
6826
6394
  this.getCurrentLanguage(e),
6827
6395
  this.latestQuotaAndUsage(e),
@@ -6835,7 +6403,7 @@ class SessionService {
6835
6403
  currentLanguage: t,
6836
6404
  userDescription: i,
6837
6405
  userProfile: s,
6838
- bookmarkedApps: o
6406
+ bookmarkedApps: u
6839
6407
  };
6840
6408
  }
6841
6409
  login(e, t, r, i) {
@@ -6923,8 +6491,8 @@ class SessionService {
6923
6491
  applications: []
6924
6492
  });
6925
6493
  let s = [];
6926
- return i.bookmarks.forEach((o, u) => {
6927
- const c = e == null ? void 0 : e.apps.find((a) => a.name === o);
6494
+ return i.bookmarks.forEach((u, o) => {
6495
+ const c = e == null ? void 0 : e.apps.find((a) => a.name === u);
6928
6496
  if (c) {
6929
6497
  let a = Object.assign({}, c);
6930
6498
  s.push(a);
@@ -6971,15 +6539,15 @@ class ShareService {
6971
6539
  async searchShareSubjects(e, t, r) {
6972
6540
  const i = StringUtils.removeAccents(r).toLowerCase(), s = await this.cache.httpGetJson(
6973
6541
  `/${e}/share/json/${t}?search=${r}`
6974
- ), o = s.users.visibles.filter(({ username: l, firstName: d, lastName: f, login: p }) => {
6975
- const E = StringUtils.removeAccents(
6542
+ ), u = s.users.visibles.filter(({ username: l, firstName: p, lastName: f, login: d }) => {
6543
+ const m = StringUtils.removeAccents(
6976
6544
  f || ""
6977
6545
  ).toLowerCase(), h = StringUtils.removeAccents(
6978
- d || ""
6979
- ).toLowerCase(), v = StringUtils.removeAccents(
6546
+ p || ""
6547
+ ).toLowerCase(), E = StringUtils.removeAccents(
6980
6548
  l || ""
6981
- ).toLowerCase(), g = StringUtils.removeAccents(p || "").toLowerCase();
6982
- return v.includes(i) || h.includes(i) || E.includes(i) || g.includes(i);
6549
+ ).toLowerCase(), g = StringUtils.removeAccents(d || "").toLowerCase();
6550
+ return E.includes(i) || h.includes(i) || m.includes(i) || g.includes(i);
6983
6551
  }).map((l) => ({
6984
6552
  avatarUrl: this.directory.getAvatarUrl(l.id, "user"),
6985
6553
  directoryUrl: this.directory.getDirectoryUrl(l.id, "user"),
@@ -6987,7 +6555,7 @@ class ShareService {
6987
6555
  id: l.id,
6988
6556
  profile: l.profile,
6989
6557
  type: "user"
6990
- })), u = s.groups.visibles.filter(({ name: l }) => StringUtils.removeAccents(l || "").toLowerCase().includes(i)).map((l) => ({
6558
+ })), o = s.groups.visibles.filter(({ name: l }) => StringUtils.removeAccents(l || "").toLowerCase().includes(i)).map((l) => ({
6991
6559
  avatarUrl: this.directory.getAvatarUrl(l.id, "group"),
6992
6560
  directoryUrl: this.directory.getDirectoryUrl(l.id, "group"),
6993
6561
  displayName: l.name,
@@ -7003,7 +6571,7 @@ class ShareService {
7003
6571
  displayName: l.displayName,
7004
6572
  id: l.id,
7005
6573
  type: "sharebookmark"
7006
- })), ...o, ...u];
6574
+ })), ...u, ...o];
7007
6575
  }
7008
6576
  async getShareMapping(e) {
7009
6577
  const t = await this.cache.httpGetJson(
@@ -7017,85 +6585,85 @@ class ShareService {
7017
6585
  return t;
7018
6586
  }
7019
6587
  getActionsAvailableFor({ id: e, type: t }, r, i) {
7020
- const o = (t === "user" ? r.users.checked[e] : r.groups.checked[e]) || [], u = Object.keys(i), c = [];
7021
- for (const a of u)
6588
+ const u = (t === "user" ? r.users.checked[e] : r.groups.checked[e]) || [], o = Object.keys(i), c = [];
6589
+ for (const a of o)
7022
6590
  i[a].filter(
7023
- (f) => o.includes(f)
6591
+ (f) => u.includes(f)
7024
6592
  ).length > 0 && c.push(a);
7025
6593
  return c;
7026
6594
  }
7027
6595
  async getRightsForResource(e, t) {
7028
6596
  const r = await this.directory.getBookMarks(), i = this.context.resource(e, e).getShareReadUrl(t), s = await this.cache.httpGetJson(
7029
6597
  i
7030
- ), o = await this.getShareMapping(e), u = await this.cache.httpGetJson(
6598
+ ), u = await this.getShareMapping(e), o = await this.cache.httpGetJson(
7031
6599
  "/infra/public/json/sharing-rights.json"
7032
- ), c = Object.keys(s.users.checked).map((p) => s.users.visibles.find(
7033
- (h) => h.id === p
7034
- )).filter((p) => p !== void 0).map((p) => {
7035
- const E = this.getActionsAvailableFor(
7036
- { id: p.id, type: "user" },
6600
+ ), c = Object.keys(s.users.checked).map((d) => s.users.visibles.find(
6601
+ (h) => h.id === d
6602
+ )).filter((d) => d !== void 0).map((d) => {
6603
+ const m = this.getActionsAvailableFor(
6604
+ { id: d.id, type: "user" },
7037
6605
  s,
7038
- o
6606
+ u
7039
6607
  );
7040
6608
  return {
7041
- id: p.id,
6609
+ id: d.id,
7042
6610
  type: "user",
7043
- displayName: p.username,
7044
- profile: p.profile,
7045
- avatarUrl: this.directory.getAvatarUrl(p.id, "user"),
7046
- directoryUrl: this.directory.getDirectoryUrl(p.id, "user"),
7047
- actions: E.map((v) => {
7048
- const g = u[v];
6611
+ displayName: d.username,
6612
+ profile: d.profile,
6613
+ avatarUrl: this.directory.getAvatarUrl(d.id, "user"),
6614
+ directoryUrl: this.directory.getDirectoryUrl(d.id, "user"),
6615
+ actions: m.map((E) => {
6616
+ const g = o[E];
7049
6617
  return {
7050
- displayName: v,
7051
- id: v,
6618
+ displayName: E,
6619
+ id: E,
7052
6620
  priority: g.priority
7053
6621
  };
7054
6622
  })
7055
6623
  };
7056
- }).sort((p, E) => (p.displayName || "").localeCompare(E.displayName)), a = Object.keys(s.groups.checked).map((p) => s.groups.visibles.find(
7057
- (h) => h.id === p
7058
- )).filter((p) => p !== void 0).map((p) => {
7059
- const E = this.getActionsAvailableFor(
7060
- { id: p.id, type: "group" },
6624
+ }).sort((d, m) => (d.displayName || "").localeCompare(m.displayName)), a = Object.keys(s.groups.checked).map((d) => s.groups.visibles.find(
6625
+ (h) => h.id === d
6626
+ )).filter((d) => d !== void 0).map((d) => {
6627
+ const m = this.getActionsAvailableFor(
6628
+ { id: d.id, type: "group" },
7061
6629
  s,
7062
- o
6630
+ u
7063
6631
  );
7064
6632
  return {
7065
- id: p.id,
6633
+ id: d.id,
7066
6634
  type: "group",
7067
- displayName: p.name,
6635
+ displayName: d.name,
7068
6636
  profile: void 0,
7069
- avatarUrl: this.directory.getAvatarUrl(p.id, "group"),
7070
- directoryUrl: this.directory.getDirectoryUrl(p.id, "group"),
7071
- actions: E.map((v) => {
7072
- const g = u[v];
6637
+ avatarUrl: this.directory.getAvatarUrl(d.id, "group"),
6638
+ directoryUrl: this.directory.getDirectoryUrl(d.id, "group"),
6639
+ actions: m.map((E) => {
6640
+ const g = o[E];
7073
6641
  return {
7074
- displayName: v,
7075
- id: v,
6642
+ displayName: E,
6643
+ id: E,
7076
6644
  priority: g.priority
7077
6645
  };
7078
6646
  })
7079
6647
  };
7080
- }).sort((p, E) => (p.displayName || "").localeCompare(E.displayName)), l = [...c, ...a], d = s.groups.visibles.map(
7081
- ({ groupDisplayName: p, id: E, name: h }) => ({
7082
- displayName: p || h,
7083
- id: E
6648
+ }).sort((d, m) => (d.displayName || "").localeCompare(m.displayName)), l = [...c, ...a], p = s.groups.visibles.map(
6649
+ ({ groupDisplayName: d, id: m, name: h }) => ({
6650
+ displayName: d || h,
6651
+ id: m
7084
6652
  })
7085
6653
  ), f = s.users.visibles.map(
7086
- ({ id: p, profile: E, username: h, firstName: v, lastName: g, login: b }) => ({
6654
+ ({ id: d, profile: m, username: h, firstName: E, lastName: g, login: b }) => ({
7087
6655
  displayName: h,
7088
- firstName: v,
6656
+ firstName: E,
7089
6657
  lastName: g,
7090
6658
  login: b,
7091
- profile: E,
7092
- id: p
6659
+ profile: m,
6660
+ id: d
7093
6661
  })
7094
6662
  );
7095
6663
  return {
7096
6664
  rights: l,
7097
6665
  visibleBookmarks: r,
7098
- visibleGroups: d,
6666
+ visibleGroups: p,
7099
6667
  visibleUsers: f
7100
6668
  };
7101
6669
  }
@@ -7106,41 +6674,41 @@ class ShareService {
7106
6674
  users: {}
7107
6675
  };
7108
6676
  for (const a of r) {
7109
- const l = a.actions.map((f) => i[f.id]).reduce((f, p) => [...f, ...p], []), d = [...new Set(l)];
7110
- d.length > 0 && (a.type === "user" ? s.users[a.id] = d : a.type === "group" ? s.groups[a.id] = d : s.bookmarks[a.id] = d);
6677
+ const l = a.actions.map((f) => i[f.id]).reduce((f, d) => [...f, ...d], []), p = [...new Set(l)];
6678
+ p.length > 0 && (a.type === "user" ? s.users[a.id] = p : a.type === "group" ? s.groups[a.id] = p : s.bookmarks[a.id] = p);
7111
6679
  }
7112
- const o = this.context.resource(e, e), u = o.getSaveShareUrl(t);
7113
- return this.cache.clearCache(o.getShareReadUrl(t)), await this.http.putJson(u, s);
6680
+ const u = this.context.resource(e, e), o = u.getSaveShareUrl(t);
6681
+ return this.cache.clearCache(u.getShareReadUrl(t)), await this.http.putJson(o, s);
7114
6682
  }
7115
6683
  async getActionsForApp(e) {
7116
6684
  const t = await this.cache.httpGetJson(
7117
6685
  "/infra/public/json/sharing-rights.json"
7118
6686
  ), r = await this.getShareMapping(e);
7119
6687
  return Object.keys(t).map((s) => {
7120
- const o = t[s];
6688
+ const u = t[s];
7121
6689
  return {
7122
6690
  displayName: s,
7123
6691
  id: s,
7124
- priority: o.priority,
7125
- requires: o.requires
6692
+ priority: u.priority,
6693
+ requires: u.requires
7126
6694
  };
7127
6695
  }).filter((s) => {
7128
- var o;
7129
- return ((o = r[s.id]) == null ? void 0 : o.length) > 0;
7130
- }).sort((s, o) => s.priority - o.priority);
6696
+ var u;
6697
+ return ((u = r[s.id]) == null ? void 0 : u.length) > 0;
6698
+ }).sort((s, u) => s.priority - u.priority);
7131
6699
  }
7132
6700
  }
7133
6701
  const S = class {
7134
6702
  constructor() {
7135
- m(this, "wordExtensions", /* @__PURE__ */ new Set());
7136
- m(this, "excelExtensions", /* @__PURE__ */ new Set());
7137
- m(this, "pptExtensions", /* @__PURE__ */ new Set());
7138
- m(this, "fileExtensionMap", /* @__PURE__ */ new Map());
7139
- m(this, "csvContentType", /* @__PURE__ */ new Set());
7140
- m(this, "csvExtensions", /* @__PURE__ */ new Set());
7141
- m(this, "txtExtensions", /* @__PURE__ */ new Set());
7142
- m(this, "PDF", "application/pdf");
7143
- m(this, "OCTET_STREAM", "application/octet-stream");
6703
+ v(this, "wordExtensions", /* @__PURE__ */ new Set());
6704
+ v(this, "excelExtensions", /* @__PURE__ */ new Set());
6705
+ v(this, "pptExtensions", /* @__PURE__ */ new Set());
6706
+ v(this, "fileExtensionMap", /* @__PURE__ */ new Map());
6707
+ v(this, "csvContentType", /* @__PURE__ */ new Set());
6708
+ v(this, "csvExtensions", /* @__PURE__ */ new Set());
6709
+ v(this, "txtExtensions", /* @__PURE__ */ new Set());
6710
+ v(this, "PDF", "application/pdf");
6711
+ v(this, "OCTET_STREAM", "application/octet-stream");
7144
6712
  this.txtExtensions.add("txt"), this.wordExtensions.add("doc"), this.wordExtensions.add("dot"), this.wordExtensions.add("docx"), this.wordExtensions.add("dotx"), this.wordExtensions.add("docm"), this.wordExtensions.add("dotm"), this.wordExtensions.add("odt"), this.wordExtensions.add("ott"), this.wordExtensions.add("oth"), this.wordExtensions.add("odm"), this.excelExtensions.add("xls"), this.excelExtensions.add("xlt"), this.excelExtensions.add("xla"), this.excelExtensions.add("xlsx"), this.excelExtensions.add("xltx"), this.excelExtensions.add("xlsm"), this.excelExtensions.add("xltm"), this.excelExtensions.add("xlam"), this.excelExtensions.add("xlsb"), this.excelExtensions.add("ods"), this.excelExtensions.add("ots"), this.pptExtensions.add("ppt"), this.pptExtensions.add("pot"), this.pptExtensions.add("pps"), this.pptExtensions.add("ppa"), this.pptExtensions.add("pptx"), this.pptExtensions.add("potx"), this.pptExtensions.add("ppsx"), this.pptExtensions.add("ppam"), this.pptExtensions.add("pptm"), this.pptExtensions.add("potm"), this.pptExtensions.add("ppsm"), this.pptExtensions.add("odp"), this.pptExtensions.add("otp"), this.csvExtensions.add("csv"), this.fileExtensionMap.set("doc", "application/msword"), this.fileExtensionMap.set("dot", "application/msword"), this.fileExtensionMap.set(
7145
6713
  "docx",
7146
6714
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
@@ -7264,7 +6832,7 @@ const S = class {
7264
6832
  }
7265
6833
  };
7266
6834
  let MimeTypeUtils = S;
7267
- m(MimeTypeUtils, "INSTANCE", new S());
6835
+ v(MimeTypeUtils, "INSTANCE", new S());
7268
6836
  class FileTypeUtils {
7269
6837
  static registerContentTypeToFileType(e) {
7270
6838
  this.fileTypes.push(e);
@@ -7274,9 +6842,9 @@ class FileTypeUtils {
7274
6842
  return "unknown";
7275
6843
  this.fileTypes || console.warn("[Element.role] should not have emptyRoles", this);
7276
6844
  for (let s of this.fileTypes || []) {
7277
- const o = s(e, t);
7278
- if (o)
7279
- return o;
6845
+ const u = s(e, t);
6846
+ if (u)
6847
+ return u;
7280
6848
  }
7281
6849
  const i = {
7282
6850
  csv: function(s) {
@@ -7316,7 +6884,7 @@ class FileTypeUtils {
7316
6884
  return "unknown";
7317
6885
  }
7318
6886
  }
7319
- m(FileTypeUtils, "fileTypes", []);
6887
+ v(FileTypeUtils, "fileTypes", []);
7320
6888
  class WorkspaceService {
7321
6889
  constructor(e) {
7322
6890
  this.context = e;
@@ -7325,17 +6893,17 @@ class WorkspaceService {
7325
6893
  return this.context.http();
7326
6894
  }
7327
6895
  async saveFile(e, t) {
7328
- const r = e.name || "", i = r.split("."), s = e.type || "application/octet-stream", o = i.length > 1 ? i[i.length - 1] : "", u = {
6896
+ const r = e.name || "", i = r.split("."), s = e.type || "application/octet-stream", u = i.length > 1 ? i[i.length - 1] : "", o = {
7329
6897
  "content-type": s,
7330
6898
  filename: r,
7331
6899
  size: e.size,
7332
- extension: o,
7333
- role: FileTypeUtils.getFileType(s, !1, o)
7334
- }, c = r.replace("." + u.extension, ""), a = u.extension ? c + "." + u.extension : c, l = new FormData();
6900
+ extension: u,
6901
+ role: FileTypeUtils.getFileType(s, !1, u)
6902
+ }, c = r.replace("." + o.extension, ""), a = o.extension ? c + "." + o.extension : c, l = new FormData();
7335
6903
  l.append("file", e, a);
7336
- const d = [];
7337
- return ((t == null ? void 0 : t.visibility) === "public" || (t == null ? void 0 : t.visibility) === "protected") && d.push(`${t.visibility}=true`), t != null && t.application && d.push(`application=${t.application}`), u.role === "img" && d.push("quality=1"), t != null && t.parentId && d.push(`parentId=${t.parentId}`), await this.http.postFile(
7338
- `/workspace/document?${d.join("&")}`,
6904
+ const p = [];
6905
+ return ((t == null ? void 0 : t.visibility) === "public" || (t == null ? void 0 : t.visibility) === "protected") && p.push(`${t.visibility}=true`), t != null && t.application && p.push(`application=${t.application}`), o.role === "img" && p.push("quality=1"), t != null && t.parentId && p.push(`parentId=${t.parentId}`), await this.http.postFile(
6906
+ `/workspace/document?${p.join("&")}`,
7339
6907
  l
7340
6908
  );
7341
6909
  }
@@ -7586,10 +7154,10 @@ class IdiomService {
7586
7154
  else {
7587
7155
  const s = new Promisified();
7588
7156
  promises[t] = s.promise;
7589
- const o = {};
7590
- e && (o["Accept-Language"] = e), this.http.get(t, { headers: o }).then((u) => {
7591
- Object.assign(bundle, u), typeof r == "function" && r(), s.resolve();
7592
- }).catch((u) => {
7157
+ const u = {};
7158
+ e && (u["Accept-Language"] = e), this.http.get(t, { headers: u }).then((o) => {
7159
+ Object.assign(bundle, o), typeof r == "function" && r(), s.resolve();
7160
+ }).catch((o) => {
7593
7161
  typeof r == "function" && r(), s.reject();
7594
7162
  });
7595
7163
  }
@@ -7697,9 +7265,9 @@ class AnalyticsService {
7697
7265
  if (!(t != null && t.structures))
7698
7266
  return;
7699
7267
  for (let l of t.structures) {
7700
- const d = n.structureMap[l];
7701
- if (d && d.collectiviteId && d.UAI) {
7702
- i = d;
7268
+ const p = n.structureMap[l];
7269
+ if (p && p.collectiviteId && p.UAI) {
7270
+ i = p;
7703
7271
  break;
7704
7272
  }
7705
7273
  }
@@ -7708,14 +7276,14 @@ class AnalyticsService {
7708
7276
  const s = await configure.Platform.apps.getPublicConf(e);
7709
7277
  if (!s)
7710
7278
  return;
7711
- const o = s.xiti;
7712
- if (!o || !o.LIBELLE_SERVICE || !i.UAI)
7279
+ const u = s.xiti;
7280
+ if (!u || !u.LIBELLE_SERVICE || !i.UAI)
7713
7281
  return;
7714
- function u(l) {
7715
- let d = "";
7282
+ function o(l) {
7283
+ let p = "";
7716
7284
  for (let f = 0; f < l.length; f++)
7717
- d += l.charCodeAt(f);
7718
- return d;
7285
+ p += l.charCodeAt(f);
7286
+ return p;
7719
7287
  }
7720
7288
  const c = {
7721
7289
  Student: "ELEVE",
@@ -7725,31 +7293,31 @@ class AnalyticsService {
7725
7293
  Guest: "AUTRE"
7726
7294
  };
7727
7295
  return {
7728
- LIBELLE_SERVICE: o.LIBELLE_SERVICE,
7729
- TYPE: o.OUTIL ? "TIERS" : "NATIF",
7730
- OUTIL: o.OUTIL ? o.OUTIL : "",
7296
+ LIBELLE_SERVICE: u.LIBELLE_SERVICE,
7297
+ TYPE: u.OUTIL ? "TIERS" : "NATIF",
7298
+ OUTIL: u.OUTIL ? u.OUTIL : "",
7731
7299
  STRUCT_ID: i.collectiviteId,
7732
7300
  STRUCT_UAI: i.UAI,
7733
7301
  PROJET: i.projetId ? i.projetId : n.ID_PROJET,
7734
7302
  EXPLOITANT: n.ID_EXPLOITANT,
7735
7303
  PLATFORME: i.plateformeId ? i.plateformeId : n.ID_PLATEFORME,
7736
- ID_PERSO: u(t.userId),
7304
+ ID_PERSO: o(t.userId),
7737
7305
  PROFILE: r && r.length > 0 && (a = c[r[0]]) != null ? a : ""
7738
7306
  };
7739
7307
  }
7740
7308
  }
7741
7309
  class OdeServices {
7742
7310
  constructor() {
7743
- m(this, "_analytics");
7744
- m(this, "_cache");
7745
- m(this, "_conf");
7746
- m(this, "_directory");
7747
- m(this, "_http");
7748
- m(this, "_idiom");
7749
- m(this, "_rights");
7750
- m(this, "_session");
7751
- m(this, "_share");
7752
- m(this, "_workspace");
7311
+ v(this, "_analytics");
7312
+ v(this, "_cache");
7313
+ v(this, "_conf");
7314
+ v(this, "_directory");
7315
+ v(this, "_http");
7316
+ v(this, "_idiom");
7317
+ v(this, "_rights");
7318
+ v(this, "_session");
7319
+ v(this, "_share");
7320
+ v(this, "_workspace");
7753
7321
  this._analytics = new AnalyticsService(this), this._cache = new CacheService(this), this._conf = new ConfService(this), this._directory = new DirectoryService(this), this._http = new HttpService(this), this._idiom = new IdiomService(this), this._rights = new RightService(this), this._session = new SessionService(this), this._share = new ShareService(this), this._workspace = new WorkspaceService(this);
7754
7322
  }
7755
7323
  analytics() {
@@ -7794,7 +7362,6 @@ export {
7794
7362
  ConfigurationFrameworkFactory,
7795
7363
  ERROR_CODE,
7796
7364
  EVENT_NAME,
7797
- ExplorerFrameworkFactory,
7798
7365
  FOLDER,
7799
7366
  ITimelineFactory,
7800
7367
  LAYER_NAME,