scorm-again 3.1.5 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/cross-frame-api.js +6 -13
- package/dist/cross-frame-api.js.map +1 -1
- package/dist/cross-frame-api.min.js +1 -1
- package/dist/cross-frame-lms.js +2 -6
- package/dist/cross-frame-lms.js.map +1 -1
- package/dist/esm/scorm-again.js +48 -11
- package/dist/esm/scorm-again.js.map +1 -1
- package/dist/esm/scorm-again.min.js +1 -1
- package/dist/esm/scorm-again.min.js.map +1 -1
- package/dist/esm/scorm12.js +46 -10
- package/dist/esm/scorm12.js.map +1 -1
- package/dist/esm/scorm12.min.js +1 -1
- package/dist/esm/scorm12.min.js.map +1 -1
- package/dist/esm/scorm2004.js +48 -11
- package/dist/esm/scorm2004.js.map +1 -1
- package/dist/esm/scorm2004.min.js +1 -1
- package/dist/esm/scorm2004.min.js.map +1 -1
- package/dist/scorm-again.js +697 -1070
- package/dist/scorm-again.js.map +1 -1
- package/dist/scorm-again.min.js +1 -1
- package/dist/scorm12.js +293 -406
- package/dist/scorm12.js.map +1 -1
- package/dist/scorm12.min.js +1 -1
- package/dist/scorm2004.js +597 -911
- package/dist/scorm2004.js.map +1 -1
- package/dist/scorm2004.min.js +1 -1
- package/dist/types/BaseAPI.d.ts +1 -1
- package/dist/types/interfaces/services.d.ts +1 -1
- package/dist/types/services/AsynchronousHttpService.d.ts +1 -0
- package/dist/types/services/ErrorHandlingService.d.ts +4 -4
- package/dist/types/services/SynchronousHttpService.d.ts +1 -0
- package/dist/types/types/api_types.d.ts +4 -0
- package/dist/types/utilities/core.d.ts +2 -0
- package/package.json +4 -4
package/dist/scorm2004.js
CHANGED
|
@@ -13,7 +13,9 @@ this.Scorm2004API = (function () {
|
|
|
13
13
|
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
14
14
|
}
|
|
15
15
|
function _iterable_to_array$b(iter) {
|
|
16
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
16
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
17
|
+
return Array.from(iter);
|
|
18
|
+
}
|
|
17
19
|
}
|
|
18
20
|
function _iterable_to_array_limit$6(arr, i) {
|
|
19
21
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -40,10 +42,10 @@ this.Scorm2004API = (function () {
|
|
|
40
42
|
return _arr;
|
|
41
43
|
}
|
|
42
44
|
function _non_iterable_rest$6() {
|
|
43
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
45
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44
46
|
}
|
|
45
47
|
function _non_iterable_spread$b() {
|
|
46
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
48
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
47
49
|
}
|
|
48
50
|
function _sliced_to_array$6(arr, i) {
|
|
49
51
|
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$6();
|
|
@@ -63,6 +65,24 @@ this.Scorm2004API = (function () {
|
|
|
63
65
|
var SECONDS_PER_MINUTE = 60;
|
|
64
66
|
var SECONDS_PER_HOUR = 60 * SECONDS_PER_MINUTE;
|
|
65
67
|
var SECONDS_PER_DAY = 24 * SECONDS_PER_HOUR;
|
|
68
|
+
var CORS_SAFELISTED_CONTENT_TYPES = [
|
|
69
|
+
"text/plain",
|
|
70
|
+
"application/x-www-form-urlencoded",
|
|
71
|
+
"multipart/form-data"
|
|
72
|
+
];
|
|
73
|
+
function isCorsSafelistedContentType(contentType) {
|
|
74
|
+
var _split_;
|
|
75
|
+
var essence = ((_split_ = (contentType || "").split(";")[0]) !== null && _split_ !== void 0 ? _split_ : "").trim().toLowerCase();
|
|
76
|
+
return CORS_SAFELISTED_CONTENT_TYPES.includes(essence);
|
|
77
|
+
}
|
|
78
|
+
function isCrossOriginUrl(url) {
|
|
79
|
+
if (typeof location === "undefined" || !location || !location.origin) return false;
|
|
80
|
+
try {
|
|
81
|
+
return new URL(url, location.href).origin !== location.origin;
|
|
82
|
+
} catch (unused) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
66
86
|
var designations = {
|
|
67
87
|
D: SECONDS_PER_DAY,
|
|
68
88
|
H: SECONDS_PER_HOUR,
|
|
@@ -303,9 +323,7 @@ this.Scorm2004API = (function () {
|
|
|
303
323
|
};
|
|
304
324
|
|
|
305
325
|
function _assert_this_initialized$q(self) {
|
|
306
|
-
if (self === void 0)
|
|
307
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
308
|
-
}
|
|
326
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
309
327
|
return self;
|
|
310
328
|
}
|
|
311
329
|
function _call_super$q(_this, derived, args) {
|
|
@@ -313,9 +331,7 @@ this.Scorm2004API = (function () {
|
|
|
313
331
|
return _possible_constructor_return$q(_this, _is_native_reflect_construct$q() ? Reflect.construct(derived, args || [], _get_prototype_of$q(_this).constructor) : derived.apply(_this, args));
|
|
314
332
|
}
|
|
315
333
|
function _class_call_check$1c(instance, Constructor) {
|
|
316
|
-
if (!(instance instanceof Constructor))
|
|
317
|
-
throw new TypeError("Cannot call a class as a function");
|
|
318
|
-
}
|
|
334
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
319
335
|
}
|
|
320
336
|
function _defineProperties$19(target, props) {
|
|
321
337
|
for(var i = 0; i < props.length; i++){
|
|
@@ -349,10 +365,16 @@ this.Scorm2004API = (function () {
|
|
|
349
365
|
});
|
|
350
366
|
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
351
367
|
}
|
|
368
|
+
function _is_native_reflect_construct$q() {
|
|
369
|
+
try {
|
|
370
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
371
|
+
} catch (_) {}
|
|
372
|
+
return (_is_native_reflect_construct$q = function() {
|
|
373
|
+
return !!result;
|
|
374
|
+
})();
|
|
375
|
+
}
|
|
352
376
|
function _possible_constructor_return$q(self, call) {
|
|
353
|
-
if (call && (_type_of$18(call) === "object" || typeof call === "function"))
|
|
354
|
-
return call;
|
|
355
|
-
}
|
|
377
|
+
if (call && (_type_of$18(call) === "object" || typeof call === "function")) return call;
|
|
356
378
|
return _assert_this_initialized$q(self);
|
|
357
379
|
}
|
|
358
380
|
function _set_prototype_of$q(o, p) {
|
|
@@ -366,14 +388,6 @@ this.Scorm2004API = (function () {
|
|
|
366
388
|
"@swc/helpers - typeof";
|
|
367
389
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
368
390
|
}
|
|
369
|
-
function _is_native_reflect_construct$q() {
|
|
370
|
-
try {
|
|
371
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
372
|
-
} catch (_) {}
|
|
373
|
-
return (_is_native_reflect_construct$q = function() {
|
|
374
|
-
return !!result;
|
|
375
|
-
})();
|
|
376
|
-
}
|
|
377
391
|
var __defProp$15 = Object.defineProperty;
|
|
378
392
|
var __defNormalProp$15 = function __defNormalProp(obj, key, value) {
|
|
379
393
|
return key in obj ? __defProp$15(obj, key, {
|
|
@@ -445,7 +459,7 @@ this.Scorm2004API = (function () {
|
|
|
445
459
|
*/ key: "setStartTime",
|
|
446
460
|
value: function setStartTime() {
|
|
447
461
|
if (this._start_time === void 0) {
|
|
448
|
-
this._start_time = /* @__PURE__ */ new Date().getTime();
|
|
462
|
+
this._start_time = (/* @__PURE__ */ new Date()).getTime();
|
|
449
463
|
} else {
|
|
450
464
|
throw new Error("Start time has already been set.");
|
|
451
465
|
}
|
|
@@ -456,9 +470,7 @@ this.Scorm2004API = (function () {
|
|
|
456
470
|
}(BaseCMI);
|
|
457
471
|
|
|
458
472
|
function _assert_this_initialized$p(self) {
|
|
459
|
-
if (self === void 0)
|
|
460
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
461
|
-
}
|
|
473
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
462
474
|
return self;
|
|
463
475
|
}
|
|
464
476
|
function _call_super$p(_this, derived, args) {
|
|
@@ -466,14 +478,11 @@ this.Scorm2004API = (function () {
|
|
|
466
478
|
return _possible_constructor_return$p(_this, _is_native_reflect_construct$p() ? Reflect.construct(derived, args || [], _get_prototype_of$p(_this).constructor) : derived.apply(_this, args));
|
|
467
479
|
}
|
|
468
480
|
function _class_call_check$1b(instance, Constructor) {
|
|
469
|
-
if (!(instance instanceof Constructor))
|
|
470
|
-
throw new TypeError("Cannot call a class as a function");
|
|
471
|
-
}
|
|
481
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
472
482
|
}
|
|
473
483
|
function _construct(Parent, args, Class) {
|
|
474
|
-
if (_is_native_reflect_construct$p())
|
|
475
|
-
|
|
476
|
-
} else {
|
|
484
|
+
if (_is_native_reflect_construct$p()) _construct = Reflect.construct;
|
|
485
|
+
else {
|
|
477
486
|
_construct = function construct(Parent, args, Class) {
|
|
478
487
|
var a = [
|
|
479
488
|
null
|
|
@@ -522,10 +531,16 @@ this.Scorm2004API = (function () {
|
|
|
522
531
|
function _is_native_function(fn) {
|
|
523
532
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
524
533
|
}
|
|
534
|
+
function _is_native_reflect_construct$p() {
|
|
535
|
+
try {
|
|
536
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
537
|
+
} catch (_) {}
|
|
538
|
+
return (_is_native_reflect_construct$p = function() {
|
|
539
|
+
return !!result;
|
|
540
|
+
})();
|
|
541
|
+
}
|
|
525
542
|
function _possible_constructor_return$p(self, call) {
|
|
526
|
-
if (call && (_type_of$17(call) === "object" || typeof call === "function"))
|
|
527
|
-
return call;
|
|
528
|
-
}
|
|
543
|
+
if (call && (_type_of$17(call) === "object" || typeof call === "function")) return call;
|
|
529
544
|
return _assert_this_initialized$p(self);
|
|
530
545
|
}
|
|
531
546
|
function _set_prototype_of$p(o, p) {
|
|
@@ -541,11 +556,9 @@ this.Scorm2004API = (function () {
|
|
|
541
556
|
}
|
|
542
557
|
function _wrap_native_super(Class) {
|
|
543
558
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
544
|
-
_wrap_native_super = function
|
|
559
|
+
_wrap_native_super = function(Class) {
|
|
545
560
|
if (Class === null || !_is_native_function(Class)) return Class;
|
|
546
|
-
if (typeof Class !== "function")
|
|
547
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
548
|
-
}
|
|
561
|
+
if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
|
|
549
562
|
if (typeof _cache !== "undefined") {
|
|
550
563
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
551
564
|
_cache.set(Class, Wrapper);
|
|
@@ -565,14 +578,6 @@ this.Scorm2004API = (function () {
|
|
|
565
578
|
};
|
|
566
579
|
return _wrap_native_super(Class);
|
|
567
580
|
}
|
|
568
|
-
function _is_native_reflect_construct$p() {
|
|
569
|
-
try {
|
|
570
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
571
|
-
} catch (_) {}
|
|
572
|
-
return (_is_native_reflect_construct$p = function() {
|
|
573
|
-
return !!result;
|
|
574
|
-
})();
|
|
575
|
-
}
|
|
576
581
|
var __defProp$14 = Object.defineProperty;
|
|
577
582
|
var __defNormalProp$14 = function __defNormalProp(obj, key, value) {
|
|
578
583
|
return key in obj ? __defProp$14(obj, key, {
|
|
@@ -836,9 +841,7 @@ this.Scorm2004API = (function () {
|
|
|
836
841
|
};
|
|
837
842
|
|
|
838
843
|
function _assert_this_initialized$o(self) {
|
|
839
|
-
if (self === void 0)
|
|
840
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
841
|
-
}
|
|
844
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
842
845
|
return self;
|
|
843
846
|
}
|
|
844
847
|
function _call_super$o(_this, derived, args) {
|
|
@@ -846,9 +849,7 @@ this.Scorm2004API = (function () {
|
|
|
846
849
|
return _possible_constructor_return$o(_this, _is_native_reflect_construct$o() ? Reflect.construct(derived, args || [], _get_prototype_of$o(_this).constructor) : derived.apply(_this, args));
|
|
847
850
|
}
|
|
848
851
|
function _class_call_check$1a(instance, Constructor) {
|
|
849
|
-
if (!(instance instanceof Constructor))
|
|
850
|
-
throw new TypeError("Cannot call a class as a function");
|
|
851
|
-
}
|
|
852
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
852
853
|
}
|
|
853
854
|
function _get_prototype_of$o(o) {
|
|
854
855
|
_get_prototype_of$o = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
@@ -869,10 +870,16 @@ this.Scorm2004API = (function () {
|
|
|
869
870
|
});
|
|
870
871
|
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
871
872
|
}
|
|
873
|
+
function _is_native_reflect_construct$o() {
|
|
874
|
+
try {
|
|
875
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
876
|
+
} catch (_) {}
|
|
877
|
+
return (_is_native_reflect_construct$o = function() {
|
|
878
|
+
return !!result;
|
|
879
|
+
})();
|
|
880
|
+
}
|
|
872
881
|
function _possible_constructor_return$o(self, call) {
|
|
873
|
-
if (call && (_type_of$16(call) === "object" || typeof call === "function"))
|
|
874
|
-
return call;
|
|
875
|
-
}
|
|
882
|
+
if (call && (_type_of$16(call) === "object" || typeof call === "function")) return call;
|
|
876
883
|
return _assert_this_initialized$o(self);
|
|
877
884
|
}
|
|
878
885
|
function _set_prototype_of$o(o, p) {
|
|
@@ -886,14 +893,6 @@ this.Scorm2004API = (function () {
|
|
|
886
893
|
"@swc/helpers - typeof";
|
|
887
894
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
888
895
|
}
|
|
889
|
-
function _is_native_reflect_construct$o() {
|
|
890
|
-
try {
|
|
891
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
892
|
-
} catch (_) {}
|
|
893
|
-
return (_is_native_reflect_construct$o = function() {
|
|
894
|
-
return !!result;
|
|
895
|
-
})();
|
|
896
|
-
}
|
|
897
896
|
var scorm12_errors$1 = scorm12_constants.error_descriptions;
|
|
898
897
|
var Scorm12ValidationError = /*#__PURE__*/ function(ValidationError) {
|
|
899
898
|
_inherits$o(Scorm12ValidationError, ValidationError);
|
|
@@ -925,9 +924,7 @@ this.Scorm2004API = (function () {
|
|
|
925
924
|
}(ValidationError);
|
|
926
925
|
|
|
927
926
|
function _assert_this_initialized$n(self) {
|
|
928
|
-
if (self === void 0)
|
|
929
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
930
|
-
}
|
|
927
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
931
928
|
return self;
|
|
932
929
|
}
|
|
933
930
|
function _call_super$n(_this, derived, args) {
|
|
@@ -935,9 +932,7 @@ this.Scorm2004API = (function () {
|
|
|
935
932
|
return _possible_constructor_return$n(_this, _is_native_reflect_construct$n() ? Reflect.construct(derived, args || [], _get_prototype_of$n(_this).constructor) : derived.apply(_this, args));
|
|
936
933
|
}
|
|
937
934
|
function _class_call_check$19(instance, Constructor) {
|
|
938
|
-
if (!(instance instanceof Constructor))
|
|
939
|
-
throw new TypeError("Cannot call a class as a function");
|
|
940
|
-
}
|
|
935
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
941
936
|
}
|
|
942
937
|
function _get_prototype_of$n(o) {
|
|
943
938
|
_get_prototype_of$n = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
@@ -958,10 +953,16 @@ this.Scorm2004API = (function () {
|
|
|
958
953
|
});
|
|
959
954
|
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
960
955
|
}
|
|
956
|
+
function _is_native_reflect_construct$n() {
|
|
957
|
+
try {
|
|
958
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
959
|
+
} catch (_) {}
|
|
960
|
+
return (_is_native_reflect_construct$n = function() {
|
|
961
|
+
return !!result;
|
|
962
|
+
})();
|
|
963
|
+
}
|
|
961
964
|
function _possible_constructor_return$n(self, call) {
|
|
962
|
-
if (call && (_type_of$15(call) === "object" || typeof call === "function"))
|
|
963
|
-
return call;
|
|
964
|
-
}
|
|
965
|
+
if (call && (_type_of$15(call) === "object" || typeof call === "function")) return call;
|
|
965
966
|
return _assert_this_initialized$n(self);
|
|
966
967
|
}
|
|
967
968
|
function _set_prototype_of$n(o, p) {
|
|
@@ -975,14 +976,6 @@ this.Scorm2004API = (function () {
|
|
|
975
976
|
"@swc/helpers - typeof";
|
|
976
977
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
977
978
|
}
|
|
978
|
-
function _is_native_reflect_construct$n() {
|
|
979
|
-
try {
|
|
980
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
981
|
-
} catch (_) {}
|
|
982
|
-
return (_is_native_reflect_construct$n = function() {
|
|
983
|
-
return !!result;
|
|
984
|
-
})();
|
|
985
|
-
}
|
|
986
979
|
var scorm2004_errors$1 = scorm2004_constants.error_descriptions;
|
|
987
980
|
var Scorm2004ValidationError = /*#__PURE__*/ function(ValidationError) {
|
|
988
981
|
_inherits$n(Scorm2004ValidationError, ValidationError);
|
|
@@ -1020,9 +1013,7 @@ this.Scorm2004API = (function () {
|
|
|
1020
1013
|
configurable: true,
|
|
1021
1014
|
writable: true
|
|
1022
1015
|
});
|
|
1023
|
-
} else
|
|
1024
|
-
obj[key] = value;
|
|
1025
|
-
}
|
|
1016
|
+
} else obj[key] = value;
|
|
1026
1017
|
return obj;
|
|
1027
1018
|
}
|
|
1028
1019
|
function _object_spread$f(target) {
|
|
@@ -1050,9 +1041,8 @@ this.Scorm2004API = (function () {
|
|
|
1050
1041
|
}
|
|
1051
1042
|
function _object_spread_props$5(target, source) {
|
|
1052
1043
|
source = source != null ? source : {};
|
|
1053
|
-
if (Object.getOwnPropertyDescriptors)
|
|
1054
|
-
|
|
1055
|
-
} else {
|
|
1044
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1045
|
+
else {
|
|
1056
1046
|
ownKeys$5(Object(source)).forEach(function(key) {
|
|
1057
1047
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1058
1048
|
});
|
|
@@ -1138,9 +1128,7 @@ this.Scorm2004API = (function () {
|
|
|
1138
1128
|
});
|
|
1139
1129
|
|
|
1140
1130
|
function _assert_this_initialized$m(self) {
|
|
1141
|
-
if (self === void 0)
|
|
1142
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1143
|
-
}
|
|
1131
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1144
1132
|
return self;
|
|
1145
1133
|
}
|
|
1146
1134
|
function _call_super$m(_this, derived, args) {
|
|
@@ -1148,9 +1136,7 @@ this.Scorm2004API = (function () {
|
|
|
1148
1136
|
return _possible_constructor_return$m(_this, _is_native_reflect_construct$m() ? Reflect.construct(derived, args || [], _get_prototype_of$m(_this).constructor) : derived.apply(_this, args));
|
|
1149
1137
|
}
|
|
1150
1138
|
function _class_call_check$18(instance, Constructor) {
|
|
1151
|
-
if (!(instance instanceof Constructor))
|
|
1152
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1153
|
-
}
|
|
1139
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
1154
1140
|
}
|
|
1155
1141
|
function _defineProperties$17(target, props) {
|
|
1156
1142
|
for(var i = 0; i < props.length; i++){
|
|
@@ -1184,10 +1170,16 @@ this.Scorm2004API = (function () {
|
|
|
1184
1170
|
});
|
|
1185
1171
|
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
1186
1172
|
}
|
|
1173
|
+
function _is_native_reflect_construct$m() {
|
|
1174
|
+
try {
|
|
1175
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1176
|
+
} catch (_) {}
|
|
1177
|
+
return (_is_native_reflect_construct$m = function() {
|
|
1178
|
+
return !!result;
|
|
1179
|
+
})();
|
|
1180
|
+
}
|
|
1187
1181
|
function _possible_constructor_return$m(self, call) {
|
|
1188
|
-
if (call && (_type_of$14(call) === "object" || typeof call === "function"))
|
|
1189
|
-
return call;
|
|
1190
|
-
}
|
|
1182
|
+
if (call && (_type_of$14(call) === "object" || typeof call === "function")) return call;
|
|
1191
1183
|
return _assert_this_initialized$m(self);
|
|
1192
1184
|
}
|
|
1193
1185
|
function _set_prototype_of$m(o, p) {
|
|
@@ -1201,14 +1193,6 @@ this.Scorm2004API = (function () {
|
|
|
1201
1193
|
"@swc/helpers - typeof";
|
|
1202
1194
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1203
1195
|
}
|
|
1204
|
-
function _is_native_reflect_construct$m() {
|
|
1205
|
-
try {
|
|
1206
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1207
|
-
} catch (_) {}
|
|
1208
|
-
return (_is_native_reflect_construct$m = function() {
|
|
1209
|
-
return !!result;
|
|
1210
|
-
})();
|
|
1211
|
-
}
|
|
1212
1196
|
var __defProp$13 = Object.defineProperty;
|
|
1213
1197
|
var __defNormalProp$13 = function __defNormalProp(obj, key, value) {
|
|
1214
1198
|
return key in obj ? __defProp$13(obj, key, {
|
|
@@ -1339,11 +1323,8 @@ this.Scorm2004API = (function () {
|
|
|
1339
1323
|
reject(error);
|
|
1340
1324
|
return;
|
|
1341
1325
|
}
|
|
1342
|
-
if (info.done)
|
|
1343
|
-
|
|
1344
|
-
} else {
|
|
1345
|
-
Promise.resolve(value).then(_next, _throw);
|
|
1346
|
-
}
|
|
1326
|
+
if (info.done) resolve(value);
|
|
1327
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
1347
1328
|
}
|
|
1348
1329
|
function _async_to_generator$5(fn) {
|
|
1349
1330
|
return function() {
|
|
@@ -1468,8 +1449,10 @@ this.Scorm2004API = (function () {
|
|
|
1468
1449
|
lmsCommitUrl: false,
|
|
1469
1450
|
dataCommitFormat: "json",
|
|
1470
1451
|
commitRequestDataType: "application/json;charset=UTF-8",
|
|
1452
|
+
terminationCommitContentType: "text/plain;charset=UTF-8",
|
|
1471
1453
|
autoProgress: false,
|
|
1472
1454
|
logLevel: LogLevelEnum.ERROR,
|
|
1455
|
+
uninitializedGetLogLevel: LogLevelEnum.WARN,
|
|
1473
1456
|
selfReportSessionTime: false,
|
|
1474
1457
|
alwaysSendTotalTime: false,
|
|
1475
1458
|
renderCommonCommitFields: false,
|
|
@@ -1897,9 +1880,7 @@ this.Scorm2004API = (function () {
|
|
|
1897
1880
|
configurable: true,
|
|
1898
1881
|
writable: true
|
|
1899
1882
|
});
|
|
1900
|
-
} else
|
|
1901
|
-
obj[key] = value;
|
|
1902
|
-
}
|
|
1883
|
+
} else obj[key] = value;
|
|
1903
1884
|
return obj;
|
|
1904
1885
|
}
|
|
1905
1886
|
function _object_spread$e(target) {
|
|
@@ -2413,11 +2394,8 @@ this.Scorm2004API = (function () {
|
|
|
2413
2394
|
reject(error);
|
|
2414
2395
|
return;
|
|
2415
2396
|
}
|
|
2416
|
-
if (info.done)
|
|
2417
|
-
|
|
2418
|
-
} else {
|
|
2419
|
-
Promise.resolve(value).then(_next, _throw);
|
|
2420
|
-
}
|
|
2397
|
+
if (info.done) resolve(value);
|
|
2398
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
2421
2399
|
}
|
|
2422
2400
|
function _async_to_generator$4(fn) {
|
|
2423
2401
|
return function() {
|
|
@@ -2435,9 +2413,7 @@ this.Scorm2004API = (function () {
|
|
|
2435
2413
|
};
|
|
2436
2414
|
}
|
|
2437
2415
|
function _class_call_check$17(instance, Constructor) {
|
|
2438
|
-
if (!(instance instanceof Constructor))
|
|
2439
|
-
throw new TypeError("Cannot call a class as a function");
|
|
2440
|
-
}
|
|
2416
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
2441
2417
|
}
|
|
2442
2418
|
function _defineProperties$16(target, props) {
|
|
2443
2419
|
for(var i = 0; i < props.length; i++){
|
|
@@ -2452,10 +2428,6 @@ this.Scorm2004API = (function () {
|
|
|
2452
2428
|
if (protoProps) _defineProperties$16(Constructor.prototype, protoProps);
|
|
2453
2429
|
return Constructor;
|
|
2454
2430
|
}
|
|
2455
|
-
function _type_of$13(obj) {
|
|
2456
|
-
"@swc/helpers - typeof";
|
|
2457
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2458
|
-
}
|
|
2459
2431
|
function _ts_generator$4(thisArg, body) {
|
|
2460
2432
|
var f, y, t, _ = {
|
|
2461
2433
|
label: 0,
|
|
@@ -2555,6 +2527,10 @@ this.Scorm2004API = (function () {
|
|
|
2555
2527
|
};
|
|
2556
2528
|
}
|
|
2557
2529
|
}
|
|
2530
|
+
function _type_of$13(obj) {
|
|
2531
|
+
"@swc/helpers - typeof";
|
|
2532
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2533
|
+
}
|
|
2558
2534
|
var __defProp$12 = Object.defineProperty;
|
|
2559
2535
|
var __defNormalProp$12 = function __defNormalProp(obj, key, value) {
|
|
2560
2536
|
return key in obj ? __defProp$12(obj, key, {
|
|
@@ -2635,9 +2611,7 @@ this.Scorm2004API = (function () {
|
|
|
2635
2611
|
];
|
|
2636
2612
|
|
|
2637
2613
|
function _assert_this_initialized$l(self) {
|
|
2638
|
-
if (self === void 0)
|
|
2639
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2640
|
-
}
|
|
2614
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2641
2615
|
return self;
|
|
2642
2616
|
}
|
|
2643
2617
|
function _call_super$l(_this, derived, args) {
|
|
@@ -2645,9 +2619,7 @@ this.Scorm2004API = (function () {
|
|
|
2645
2619
|
return _possible_constructor_return$l(_this, _is_native_reflect_construct$l() ? Reflect.construct(derived, args || [], _get_prototype_of$l(_this).constructor) : derived.apply(_this, args));
|
|
2646
2620
|
}
|
|
2647
2621
|
function _class_call_check$16(instance, Constructor) {
|
|
2648
|
-
if (!(instance instanceof Constructor))
|
|
2649
|
-
throw new TypeError("Cannot call a class as a function");
|
|
2650
|
-
}
|
|
2622
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
2651
2623
|
}
|
|
2652
2624
|
function _defineProperties$15(target, props) {
|
|
2653
2625
|
for(var i = 0; i < props.length; i++){
|
|
@@ -2686,14 +2658,18 @@ this.Scorm2004API = (function () {
|
|
|
2686
2658
|
"@swc/helpers - instanceof";
|
|
2687
2659
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
2688
2660
|
return !!right[Symbol.hasInstance](left);
|
|
2689
|
-
} else
|
|
2690
|
-
|
|
2691
|
-
|
|
2661
|
+
} else return left instanceof right;
|
|
2662
|
+
}
|
|
2663
|
+
function _is_native_reflect_construct$l() {
|
|
2664
|
+
try {
|
|
2665
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
2666
|
+
} catch (_) {}
|
|
2667
|
+
return (_is_native_reflect_construct$l = function() {
|
|
2668
|
+
return !!result;
|
|
2669
|
+
})();
|
|
2692
2670
|
}
|
|
2693
2671
|
function _possible_constructor_return$l(self, call) {
|
|
2694
|
-
if (call && (_type_of$12(call) === "object" || typeof call === "function"))
|
|
2695
|
-
return call;
|
|
2696
|
-
}
|
|
2672
|
+
if (call && (_type_of$12(call) === "object" || typeof call === "function")) return call;
|
|
2697
2673
|
return _assert_this_initialized$l(self);
|
|
2698
2674
|
}
|
|
2699
2675
|
function _set_prototype_of$l(o, p) {
|
|
@@ -2707,14 +2683,6 @@ this.Scorm2004API = (function () {
|
|
|
2707
2683
|
"@swc/helpers - typeof";
|
|
2708
2684
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2709
2685
|
}
|
|
2710
|
-
function _is_native_reflect_construct$l() {
|
|
2711
|
-
try {
|
|
2712
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
2713
|
-
} catch (_) {}
|
|
2714
|
-
return (_is_native_reflect_construct$l = function() {
|
|
2715
|
-
return !!result;
|
|
2716
|
-
})();
|
|
2717
|
-
}
|
|
2718
2686
|
var __defProp$11 = Object.defineProperty;
|
|
2719
2687
|
var __defNormalProp$11 = function __defNormalProp(obj, key, value) {
|
|
2720
2688
|
return key in obj ? __defProp$11(obj, key, {
|
|
@@ -3496,9 +3464,7 @@ this.Scorm2004API = (function () {
|
|
|
3496
3464
|
}(BaseCMI);
|
|
3497
3465
|
|
|
3498
3466
|
function _class_call_check$15(instance, Constructor) {
|
|
3499
|
-
if (!(instance instanceof Constructor))
|
|
3500
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3501
|
-
}
|
|
3467
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
3502
3468
|
}
|
|
3503
3469
|
function _defineProperties$14(target, props) {
|
|
3504
3470
|
for(var i = 0; i < props.length; i++){
|
|
@@ -3796,9 +3762,7 @@ this.Scorm2004API = (function () {
|
|
|
3796
3762
|
}();
|
|
3797
3763
|
|
|
3798
3764
|
function _class_call_check$14(instance, Constructor) {
|
|
3799
|
-
if (!(instance instanceof Constructor))
|
|
3800
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3801
|
-
}
|
|
3765
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
3802
3766
|
}
|
|
3803
3767
|
function _defineProperties$13(target, props) {
|
|
3804
3768
|
for(var i = 0; i < props.length; i++){
|
|
@@ -4337,9 +4301,7 @@ this.Scorm2004API = (function () {
|
|
|
4337
4301
|
}();
|
|
4338
4302
|
|
|
4339
4303
|
function _class_call_check$13(instance, Constructor) {
|
|
4340
|
-
if (!(instance instanceof Constructor))
|
|
4341
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4342
|
-
}
|
|
4304
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
4343
4305
|
}
|
|
4344
4306
|
function _type_of$$(obj) {
|
|
4345
4307
|
"@swc/helpers - typeof";
|
|
@@ -4418,9 +4380,7 @@ this.Scorm2004API = (function () {
|
|
|
4418
4380
|
}(FlowSubprocessMode || {});
|
|
4419
4381
|
|
|
4420
4382
|
function _class_call_check$12(instance, Constructor) {
|
|
4421
|
-
if (!(instance instanceof Constructor))
|
|
4422
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4423
|
-
}
|
|
4383
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
4424
4384
|
}
|
|
4425
4385
|
function _defineProperties$12(target, props) {
|
|
4426
4386
|
for(var i = 0; i < props.length; i++){
|
|
@@ -4771,9 +4731,7 @@ this.Scorm2004API = (function () {
|
|
|
4771
4731
|
}();
|
|
4772
4732
|
|
|
4773
4733
|
function _assert_this_initialized$k(self) {
|
|
4774
|
-
if (self === void 0)
|
|
4775
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4776
|
-
}
|
|
4734
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4777
4735
|
return self;
|
|
4778
4736
|
}
|
|
4779
4737
|
function _call_super$k(_this, derived, args) {
|
|
@@ -4781,9 +4739,7 @@ this.Scorm2004API = (function () {
|
|
|
4781
4739
|
return _possible_constructor_return$k(_this, _is_native_reflect_construct$k() ? Reflect.construct(derived, args || [], _get_prototype_of$k(_this).constructor) : derived.apply(_this, args));
|
|
4782
4740
|
}
|
|
4783
4741
|
function _class_call_check$11(instance, Constructor) {
|
|
4784
|
-
if (!(instance instanceof Constructor))
|
|
4785
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4786
|
-
}
|
|
4742
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
4787
4743
|
}
|
|
4788
4744
|
function _defineProperties$11(target, props) {
|
|
4789
4745
|
for(var i = 0; i < props.length; i++){
|
|
@@ -4817,10 +4773,16 @@ this.Scorm2004API = (function () {
|
|
|
4817
4773
|
});
|
|
4818
4774
|
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
4819
4775
|
}
|
|
4776
|
+
function _is_native_reflect_construct$k() {
|
|
4777
|
+
try {
|
|
4778
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
4779
|
+
} catch (_) {}
|
|
4780
|
+
return (_is_native_reflect_construct$k = function() {
|
|
4781
|
+
return !!result;
|
|
4782
|
+
})();
|
|
4783
|
+
}
|
|
4820
4784
|
function _possible_constructor_return$k(self, call) {
|
|
4821
|
-
if (call && (_type_of$Z(call) === "object" || typeof call === "function"))
|
|
4822
|
-
return call;
|
|
4823
|
-
}
|
|
4785
|
+
if (call && (_type_of$Z(call) === "object" || typeof call === "function")) return call;
|
|
4824
4786
|
return _assert_this_initialized$k(self);
|
|
4825
4787
|
}
|
|
4826
4788
|
function _set_prototype_of$k(o, p) {
|
|
@@ -4834,14 +4796,6 @@ this.Scorm2004API = (function () {
|
|
|
4834
4796
|
"@swc/helpers - typeof";
|
|
4835
4797
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
4836
4798
|
}
|
|
4837
|
-
function _is_native_reflect_construct$k() {
|
|
4838
|
-
try {
|
|
4839
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
4840
|
-
} catch (_) {}
|
|
4841
|
-
return (_is_native_reflect_construct$k = function() {
|
|
4842
|
-
return !!result;
|
|
4843
|
-
})();
|
|
4844
|
-
}
|
|
4845
4799
|
var __defProp$Y = Object.defineProperty;
|
|
4846
4800
|
var __defNormalProp$Y = function __defNormalProp(obj, key, value) {
|
|
4847
4801
|
return key in obj ? __defProp$Y(obj, key, {
|
|
@@ -5356,9 +5310,7 @@ this.Scorm2004API = (function () {
|
|
|
5356
5310
|
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
5357
5311
|
}
|
|
5358
5312
|
function _class_call_check$10(instance, Constructor) {
|
|
5359
|
-
if (!(instance instanceof Constructor))
|
|
5360
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5361
|
-
}
|
|
5313
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
5362
5314
|
}
|
|
5363
5315
|
function _defineProperties$10(target, props) {
|
|
5364
5316
|
for(var i = 0; i < props.length; i++){
|
|
@@ -5374,10 +5326,12 @@ this.Scorm2004API = (function () {
|
|
|
5374
5326
|
return Constructor;
|
|
5375
5327
|
}
|
|
5376
5328
|
function _iterable_to_array$a(iter) {
|
|
5377
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
5329
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
5330
|
+
return Array.from(iter);
|
|
5331
|
+
}
|
|
5378
5332
|
}
|
|
5379
5333
|
function _non_iterable_spread$a() {
|
|
5380
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
5334
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5381
5335
|
}
|
|
5382
5336
|
function _to_consumable_array$a(arr) {
|
|
5383
5337
|
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$a();
|
|
@@ -5585,9 +5539,7 @@ this.Scorm2004API = (function () {
|
|
|
5585
5539
|
}();
|
|
5586
5540
|
|
|
5587
5541
|
function _class_call_check$$(instance, Constructor) {
|
|
5588
|
-
if (!(instance instanceof Constructor))
|
|
5589
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5590
|
-
}
|
|
5542
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
5591
5543
|
}
|
|
5592
5544
|
function _defineProperties$$(target, props) {
|
|
5593
5545
|
for(var i = 0; i < props.length; i++){
|
|
@@ -6044,9 +5996,7 @@ this.Scorm2004API = (function () {
|
|
|
6044
5996
|
}();
|
|
6045
5997
|
|
|
6046
5998
|
function _class_call_check$_(instance, Constructor) {
|
|
6047
|
-
if (!(instance instanceof Constructor))
|
|
6048
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6049
|
-
}
|
|
5999
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
6050
6000
|
}
|
|
6051
6001
|
function _defineProperties$_(target, props) {
|
|
6052
6002
|
for(var i = 0; i < props.length; i++){
|
|
@@ -6213,9 +6163,7 @@ this.Scorm2004API = (function () {
|
|
|
6213
6163
|
}();
|
|
6214
6164
|
|
|
6215
6165
|
function _class_call_check$Z(instance, Constructor) {
|
|
6216
|
-
if (!(instance instanceof Constructor))
|
|
6217
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6218
|
-
}
|
|
6166
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
6219
6167
|
}
|
|
6220
6168
|
function _defineProperties$Z(target, props) {
|
|
6221
6169
|
for(var i = 0; i < props.length; i++){
|
|
@@ -6542,9 +6490,7 @@ this.Scorm2004API = (function () {
|
|
|
6542
6490
|
}();
|
|
6543
6491
|
|
|
6544
6492
|
function _class_call_check$Y(instance, Constructor) {
|
|
6545
|
-
if (!(instance instanceof Constructor))
|
|
6546
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6547
|
-
}
|
|
6493
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
6548
6494
|
}
|
|
6549
6495
|
function _defineProperties$Y(target, props) {
|
|
6550
6496
|
for(var i = 0; i < props.length; i++){
|
|
@@ -6729,9 +6675,7 @@ this.Scorm2004API = (function () {
|
|
|
6729
6675
|
}();
|
|
6730
6676
|
|
|
6731
6677
|
function _class_call_check$X(instance, Constructor) {
|
|
6732
|
-
if (!(instance instanceof Constructor))
|
|
6733
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6734
|
-
}
|
|
6678
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
6735
6679
|
}
|
|
6736
6680
|
function _defineProperties$X(target, props) {
|
|
6737
6681
|
for(var i = 0; i < props.length; i++){
|
|
@@ -6880,9 +6824,7 @@ this.Scorm2004API = (function () {
|
|
|
6880
6824
|
}();
|
|
6881
6825
|
|
|
6882
6826
|
function _class_call_check$W(instance, Constructor) {
|
|
6883
|
-
if (!(instance instanceof Constructor))
|
|
6884
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6885
|
-
}
|
|
6827
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
6886
6828
|
}
|
|
6887
6829
|
function _defineProperties$W(target, props) {
|
|
6888
6830
|
for(var i = 0; i < props.length; i++){
|
|
@@ -7228,9 +7170,7 @@ this.Scorm2004API = (function () {
|
|
|
7228
7170
|
}();
|
|
7229
7171
|
|
|
7230
7172
|
function _class_call_check$V(instance, Constructor) {
|
|
7231
|
-
if (!(instance instanceof Constructor))
|
|
7232
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7233
|
-
}
|
|
7173
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
7234
7174
|
}
|
|
7235
7175
|
function _defineProperties$V(target, props) {
|
|
7236
7176
|
for(var i = 0; i < props.length; i++){
|
|
@@ -7253,9 +7193,7 @@ this.Scorm2004API = (function () {
|
|
|
7253
7193
|
configurable: true,
|
|
7254
7194
|
writable: true
|
|
7255
7195
|
});
|
|
7256
|
-
} else
|
|
7257
|
-
obj[key] = value;
|
|
7258
|
-
}
|
|
7196
|
+
} else obj[key] = value;
|
|
7259
7197
|
return obj;
|
|
7260
7198
|
}
|
|
7261
7199
|
function _object_spread$d(target) {
|
|
@@ -7411,11 +7349,8 @@ this.Scorm2004API = (function () {
|
|
|
7411
7349
|
reject(error);
|
|
7412
7350
|
return;
|
|
7413
7351
|
}
|
|
7414
|
-
if (info.done)
|
|
7415
|
-
|
|
7416
|
-
} else {
|
|
7417
|
-
Promise.resolve(value).then(_next, _throw);
|
|
7418
|
-
}
|
|
7352
|
+
if (info.done) resolve(value);
|
|
7353
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
7419
7354
|
}
|
|
7420
7355
|
function _async_to_generator$3(fn) {
|
|
7421
7356
|
return function() {
|
|
@@ -7433,9 +7368,7 @@ this.Scorm2004API = (function () {
|
|
|
7433
7368
|
};
|
|
7434
7369
|
}
|
|
7435
7370
|
function _class_call_check$U(instance, Constructor) {
|
|
7436
|
-
if (!(instance instanceof Constructor))
|
|
7437
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7438
|
-
}
|
|
7371
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
7439
7372
|
}
|
|
7440
7373
|
function _defineProperties$U(target, props) {
|
|
7441
7374
|
for(var i = 0; i < props.length; i++){
|
|
@@ -7458,18 +7391,14 @@ this.Scorm2004API = (function () {
|
|
|
7458
7391
|
configurable: true,
|
|
7459
7392
|
writable: true
|
|
7460
7393
|
});
|
|
7461
|
-
} else
|
|
7462
|
-
obj[key] = value;
|
|
7463
|
-
}
|
|
7394
|
+
} else obj[key] = value;
|
|
7464
7395
|
return obj;
|
|
7465
7396
|
}
|
|
7466
7397
|
function _instanceof$g(left, right) {
|
|
7467
7398
|
"@swc/helpers - instanceof";
|
|
7468
7399
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
7469
7400
|
return !!right[Symbol.hasInstance](left);
|
|
7470
|
-
} else
|
|
7471
|
-
return left instanceof right;
|
|
7472
|
-
}
|
|
7401
|
+
} else return left instanceof right;
|
|
7473
7402
|
}
|
|
7474
7403
|
function _object_spread$c(target) {
|
|
7475
7404
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -7496,19 +7425,14 @@ this.Scorm2004API = (function () {
|
|
|
7496
7425
|
}
|
|
7497
7426
|
function _object_spread_props$4(target, source) {
|
|
7498
7427
|
source = source != null ? source : {};
|
|
7499
|
-
if (Object.getOwnPropertyDescriptors)
|
|
7500
|
-
|
|
7501
|
-
} else {
|
|
7428
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7429
|
+
else {
|
|
7502
7430
|
ownKeys$4(Object(source)).forEach(function(key) {
|
|
7503
7431
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7504
7432
|
});
|
|
7505
7433
|
}
|
|
7506
7434
|
return target;
|
|
7507
7435
|
}
|
|
7508
|
-
function _type_of$R(obj) {
|
|
7509
|
-
"@swc/helpers - typeof";
|
|
7510
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7511
|
-
}
|
|
7512
7436
|
function _ts_generator$3(thisArg, body) {
|
|
7513
7437
|
var f, y, t, _ = {
|
|
7514
7438
|
label: 0,
|
|
@@ -7608,6 +7532,10 @@ this.Scorm2004API = (function () {
|
|
|
7608
7532
|
};
|
|
7609
7533
|
}
|
|
7610
7534
|
}
|
|
7535
|
+
function _type_of$R(obj) {
|
|
7536
|
+
"@swc/helpers - typeof";
|
|
7537
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7538
|
+
}
|
|
7611
7539
|
var __defProp$Q = Object.defineProperty;
|
|
7612
7540
|
var __defNormalProp$Q = function __defNormalProp(obj, key, value) {
|
|
7613
7541
|
return key in obj ? __defProp$Q(obj, key, {
|
|
@@ -7809,14 +7737,16 @@ this.Scorm2004API = (function () {
|
|
|
7809
7737
|
* @private
|
|
7810
7738
|
*/ function performBeacon(url, params) {
|
|
7811
7739
|
return _async_to_generator$3(function() {
|
|
7812
|
-
var _this, _this__prepareRequestBody, body, contentType, beaconSuccess;
|
|
7740
|
+
var _this, _this__prepareRequestBody, body, contentType, beaconContentType, beaconSuccess;
|
|
7813
7741
|
return _ts_generator$3(this, function(_state) {
|
|
7814
7742
|
_this = this;
|
|
7815
7743
|
_this__prepareRequestBody = this._prepareRequestBody(params), body = _this__prepareRequestBody.body, contentType = _this__prepareRequestBody.contentType;
|
|
7744
|
+
beaconContentType = Array.isArray(params) ? contentType : this.settings.terminationCommitContentType;
|
|
7745
|
+
this._warnIfBeaconContentTypeUnsafe(url, beaconContentType);
|
|
7816
7746
|
beaconSuccess = navigator.sendBeacon(url, new Blob([
|
|
7817
7747
|
body
|
|
7818
7748
|
], {
|
|
7819
|
-
type:
|
|
7749
|
+
type: beaconContentType
|
|
7820
7750
|
}));
|
|
7821
7751
|
return [
|
|
7822
7752
|
2,
|
|
@@ -7855,6 +7785,15 @@ this.Scorm2004API = (function () {
|
|
|
7855
7785
|
}).call(this);
|
|
7856
7786
|
}
|
|
7857
7787
|
},
|
|
7788
|
+
{
|
|
7789
|
+
key: "_warnIfBeaconContentTypeUnsafe",
|
|
7790
|
+
value: function _warnIfBeaconContentTypeUnsafe(url, contentType) {
|
|
7791
|
+
if (isCrossOriginUrl(url) && !isCorsSafelistedContentType(contentType)) {
|
|
7792
|
+
var _this_settings_onLogMessage, _this_settings;
|
|
7793
|
+
(_this_settings_onLogMessage = (_this_settings = this.settings).onLogMessage) === null || _this_settings_onLogMessage === void 0 ? void 0 : _this_settings_onLogMessage.call(_this_settings, LogLevelEnum.WARN, 'sendBeacon to cross-origin URL with non-CORS-safelisted Content-Type "'.concat(contentType, '" may be silently dropped by the browser (Beacon cannot preflight). Use fetch (useAsynchronousCommits + asyncModeBeaconBehavior:"never") for cross-origin JSON/auth on terminate.'));
|
|
7794
|
+
}
|
|
7795
|
+
}
|
|
7796
|
+
},
|
|
7858
7797
|
{
|
|
7859
7798
|
key: "transformResponse",
|
|
7860
7799
|
value: /**
|
|
@@ -7976,9 +7915,7 @@ this.Scorm2004API = (function () {
|
|
|
7976
7915
|
}();
|
|
7977
7916
|
|
|
7978
7917
|
function _class_call_check$T(instance, Constructor) {
|
|
7979
|
-
if (!(instance instanceof Constructor))
|
|
7980
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7981
|
-
}
|
|
7918
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
7982
7919
|
}
|
|
7983
7920
|
function _defineProperties$T(target, props) {
|
|
7984
7921
|
for(var i = 0; i < props.length; i++){
|
|
@@ -7997,9 +7934,7 @@ this.Scorm2004API = (function () {
|
|
|
7997
7934
|
"@swc/helpers - instanceof";
|
|
7998
7935
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
7999
7936
|
return !!right[Symbol.hasInstance](left);
|
|
8000
|
-
} else
|
|
8001
|
-
return left instanceof right;
|
|
8002
|
-
}
|
|
7937
|
+
} else return left instanceof right;
|
|
8003
7938
|
}
|
|
8004
7939
|
function _type_of$Q(obj) {
|
|
8005
7940
|
"@swc/helpers - typeof";
|
|
@@ -8390,9 +8325,7 @@ this.Scorm2004API = (function () {
|
|
|
8390
8325
|
}();
|
|
8391
8326
|
|
|
8392
8327
|
function _class_call_check$S(instance, Constructor) {
|
|
8393
|
-
if (!(instance instanceof Constructor))
|
|
8394
|
-
throw new TypeError("Cannot call a class as a function");
|
|
8395
|
-
}
|
|
8328
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
8396
8329
|
}
|
|
8397
8330
|
function _defineProperties$S(target, props) {
|
|
8398
8331
|
for(var i = 0; i < props.length; i++){
|
|
@@ -8611,9 +8544,7 @@ this.Scorm2004API = (function () {
|
|
|
8611
8544
|
}
|
|
8612
8545
|
|
|
8613
8546
|
function _class_call_check$R(instance, Constructor) {
|
|
8614
|
-
if (!(instance instanceof Constructor))
|
|
8615
|
-
throw new TypeError("Cannot call a class as a function");
|
|
8616
|
-
}
|
|
8547
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
8617
8548
|
}
|
|
8618
8549
|
function _defineProperties$R(target, props) {
|
|
8619
8550
|
for(var i = 0; i < props.length; i++){
|
|
@@ -8632,9 +8563,7 @@ this.Scorm2004API = (function () {
|
|
|
8632
8563
|
"@swc/helpers - instanceof";
|
|
8633
8564
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
8634
8565
|
return !!right[Symbol.hasInstance](left);
|
|
8635
|
-
} else
|
|
8636
|
-
return left instanceof right;
|
|
8637
|
-
}
|
|
8566
|
+
} else return left instanceof right;
|
|
8638
8567
|
}
|
|
8639
8568
|
function _type_of$O(obj) {
|
|
8640
8569
|
"@swc/helpers - typeof";
|
|
@@ -8704,13 +8633,14 @@ this.Scorm2004API = (function () {
|
|
|
8704
8633
|
* @throws {ValidationError} - If throwException is true, throws a ValidationError
|
|
8705
8634
|
*/ key: "throwSCORMError",
|
|
8706
8635
|
value: function throwSCORMError(CMIElement, errorNumber, message) {
|
|
8636
|
+
var messageLevel = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : LogLevelEnum.ERROR;
|
|
8707
8637
|
this._lastDiagnostic = message || "";
|
|
8708
8638
|
if (!message) {
|
|
8709
8639
|
message = this._getLmsErrorMessageDetails(errorNumber, true);
|
|
8710
8640
|
}
|
|
8711
8641
|
var formattedMessage = "SCORM Error ".concat(errorNumber, ": ").concat(message).concat(CMIElement ? " [Element: ".concat(CMIElement, "]") : "");
|
|
8712
|
-
this._apiLog("throwSCORMError", errorNumber + ": " + message,
|
|
8713
|
-
this._loggingService.
|
|
8642
|
+
this._apiLog("throwSCORMError", errorNumber + ": " + message, messageLevel, CMIElement);
|
|
8643
|
+
this._loggingService.log(messageLevel, formattedMessage);
|
|
8714
8644
|
this._lastErrorCode = String(errorNumber);
|
|
8715
8645
|
}
|
|
8716
8646
|
},
|
|
@@ -8816,9 +8746,7 @@ this.Scorm2004API = (function () {
|
|
|
8816
8746
|
}
|
|
8817
8747
|
|
|
8818
8748
|
function _class_call_check$Q(instance, Constructor) {
|
|
8819
|
-
if (!(instance instanceof Constructor))
|
|
8820
|
-
throw new TypeError("Cannot call a class as a function");
|
|
8821
|
-
}
|
|
8749
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
8822
8750
|
}
|
|
8823
8751
|
function _defineProperties$Q(target, props) {
|
|
8824
8752
|
for(var i = 0; i < props.length; i++){
|
|
@@ -9109,11 +9037,8 @@ this.Scorm2004API = (function () {
|
|
|
9109
9037
|
reject(error);
|
|
9110
9038
|
return;
|
|
9111
9039
|
}
|
|
9112
|
-
if (info.done)
|
|
9113
|
-
|
|
9114
|
-
} else {
|
|
9115
|
-
Promise.resolve(value).then(_next, _throw);
|
|
9116
|
-
}
|
|
9040
|
+
if (info.done) resolve(value);
|
|
9041
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
9117
9042
|
}
|
|
9118
9043
|
function _async_to_generator$2(fn) {
|
|
9119
9044
|
return function() {
|
|
@@ -9131,9 +9056,7 @@ this.Scorm2004API = (function () {
|
|
|
9131
9056
|
};
|
|
9132
9057
|
}
|
|
9133
9058
|
function _class_call_check$P(instance, Constructor) {
|
|
9134
|
-
if (!(instance instanceof Constructor))
|
|
9135
|
-
throw new TypeError("Cannot call a class as a function");
|
|
9136
|
-
}
|
|
9059
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
9137
9060
|
}
|
|
9138
9061
|
function _defineProperties$P(target, props) {
|
|
9139
9062
|
for(var i = 0; i < props.length; i++){
|
|
@@ -9156,18 +9079,14 @@ this.Scorm2004API = (function () {
|
|
|
9156
9079
|
configurable: true,
|
|
9157
9080
|
writable: true
|
|
9158
9081
|
});
|
|
9159
|
-
} else
|
|
9160
|
-
obj[key] = value;
|
|
9161
|
-
}
|
|
9082
|
+
} else obj[key] = value;
|
|
9162
9083
|
return obj;
|
|
9163
9084
|
}
|
|
9164
9085
|
function _instanceof$d(left, right) {
|
|
9165
9086
|
"@swc/helpers - instanceof";
|
|
9166
9087
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
9167
9088
|
return !!right[Symbol.hasInstance](left);
|
|
9168
|
-
} else
|
|
9169
|
-
return left instanceof right;
|
|
9170
|
-
}
|
|
9089
|
+
} else return left instanceof right;
|
|
9171
9090
|
}
|
|
9172
9091
|
function _object_spread$b(target) {
|
|
9173
9092
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -9194,19 +9113,14 @@ this.Scorm2004API = (function () {
|
|
|
9194
9113
|
}
|
|
9195
9114
|
function _object_spread_props$3(target, source) {
|
|
9196
9115
|
source = source != null ? source : {};
|
|
9197
|
-
if (Object.getOwnPropertyDescriptors)
|
|
9198
|
-
|
|
9199
|
-
} else {
|
|
9116
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9117
|
+
else {
|
|
9200
9118
|
ownKeys$3(Object(source)).forEach(function(key) {
|
|
9201
9119
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9202
9120
|
});
|
|
9203
9121
|
}
|
|
9204
9122
|
return target;
|
|
9205
9123
|
}
|
|
9206
|
-
function _type_of$M(obj) {
|
|
9207
|
-
"@swc/helpers - typeof";
|
|
9208
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9209
|
-
}
|
|
9210
9124
|
function _ts_generator$2(thisArg, body) {
|
|
9211
9125
|
var f, y, t, _ = {
|
|
9212
9126
|
label: 0,
|
|
@@ -9306,6 +9220,10 @@ this.Scorm2004API = (function () {
|
|
|
9306
9220
|
};
|
|
9307
9221
|
}
|
|
9308
9222
|
}
|
|
9223
|
+
function _type_of$M(obj) {
|
|
9224
|
+
"@swc/helpers - typeof";
|
|
9225
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9226
|
+
}
|
|
9309
9227
|
var __defProp$L = Object.defineProperty;
|
|
9310
9228
|
var __defNormalProp$L = function __defNormalProp(obj, key, value) {
|
|
9311
9229
|
return key in obj ? __defProp$L(obj, key, {
|
|
@@ -9897,9 +9815,7 @@ this.Scorm2004API = (function () {
|
|
|
9897
9815
|
}
|
|
9898
9816
|
|
|
9899
9817
|
function _assert_this_initialized$j(self) {
|
|
9900
|
-
if (self === void 0)
|
|
9901
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9902
|
-
}
|
|
9818
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9903
9819
|
return self;
|
|
9904
9820
|
}
|
|
9905
9821
|
function _call_super$j(_this, derived, args) {
|
|
@@ -9907,9 +9823,7 @@ this.Scorm2004API = (function () {
|
|
|
9907
9823
|
return _possible_constructor_return$j(_this, _is_native_reflect_construct$j() ? Reflect.construct(derived, args || [], _get_prototype_of$j(_this).constructor) : derived.apply(_this, args));
|
|
9908
9824
|
}
|
|
9909
9825
|
function _class_call_check$O(instance, Constructor) {
|
|
9910
|
-
if (!(instance instanceof Constructor))
|
|
9911
|
-
throw new TypeError("Cannot call a class as a function");
|
|
9912
|
-
}
|
|
9826
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
9913
9827
|
}
|
|
9914
9828
|
function _defineProperties$O(target, props) {
|
|
9915
9829
|
for(var i = 0; i < props.length; i++){
|
|
@@ -9947,14 +9861,18 @@ this.Scorm2004API = (function () {
|
|
|
9947
9861
|
"@swc/helpers - instanceof";
|
|
9948
9862
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
9949
9863
|
return !!right[Symbol.hasInstance](left);
|
|
9950
|
-
} else
|
|
9951
|
-
|
|
9952
|
-
|
|
9864
|
+
} else return left instanceof right;
|
|
9865
|
+
}
|
|
9866
|
+
function _is_native_reflect_construct$j() {
|
|
9867
|
+
try {
|
|
9868
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
9869
|
+
} catch (_) {}
|
|
9870
|
+
return (_is_native_reflect_construct$j = function() {
|
|
9871
|
+
return !!result;
|
|
9872
|
+
})();
|
|
9953
9873
|
}
|
|
9954
9874
|
function _possible_constructor_return$j(self, call) {
|
|
9955
|
-
if (call && (_type_of$K(call) === "object" || typeof call === "function"))
|
|
9956
|
-
return call;
|
|
9957
|
-
}
|
|
9875
|
+
if (call && (_type_of$K(call) === "object" || typeof call === "function")) return call;
|
|
9958
9876
|
return _assert_this_initialized$j(self);
|
|
9959
9877
|
}
|
|
9960
9878
|
function _set_prototype_of$j(o, p) {
|
|
@@ -9968,14 +9886,6 @@ this.Scorm2004API = (function () {
|
|
|
9968
9886
|
"@swc/helpers - typeof";
|
|
9969
9887
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9970
9888
|
}
|
|
9971
|
-
function _is_native_reflect_construct$j() {
|
|
9972
|
-
try {
|
|
9973
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
9974
|
-
} catch (_) {}
|
|
9975
|
-
return (_is_native_reflect_construct$j = function() {
|
|
9976
|
-
return !!result;
|
|
9977
|
-
})();
|
|
9978
|
-
}
|
|
9979
9889
|
var __defProp$K = Object.defineProperty;
|
|
9980
9890
|
var __defNormalProp$K = function __defNormalProp(obj, key, value) {
|
|
9981
9891
|
return key in obj ? __defProp$K(obj, key, {
|
|
@@ -10564,9 +10474,7 @@ this.Scorm2004API = (function () {
|
|
|
10564
10474
|
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
10565
10475
|
}
|
|
10566
10476
|
function _assert_this_initialized$i(self) {
|
|
10567
|
-
if (self === void 0)
|
|
10568
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10569
|
-
}
|
|
10477
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10570
10478
|
return self;
|
|
10571
10479
|
}
|
|
10572
10480
|
function _call_super$i(_this, derived, args) {
|
|
@@ -10574,9 +10482,7 @@ this.Scorm2004API = (function () {
|
|
|
10574
10482
|
return _possible_constructor_return$i(_this, _is_native_reflect_construct$i() ? Reflect.construct(derived, args || [], _get_prototype_of$i(_this).constructor) : derived.apply(_this, args));
|
|
10575
10483
|
}
|
|
10576
10484
|
function _class_call_check$N(instance, Constructor) {
|
|
10577
|
-
if (!(instance instanceof Constructor))
|
|
10578
|
-
throw new TypeError("Cannot call a class as a function");
|
|
10579
|
-
}
|
|
10485
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
10580
10486
|
}
|
|
10581
10487
|
function _defineProperties$N(target, props) {
|
|
10582
10488
|
for(var i = 0; i < props.length; i++){
|
|
@@ -10600,22 +10506,17 @@ this.Scorm2004API = (function () {
|
|
|
10600
10506
|
configurable: true,
|
|
10601
10507
|
writable: true
|
|
10602
10508
|
});
|
|
10603
|
-
} else
|
|
10604
|
-
obj[key] = value;
|
|
10605
|
-
}
|
|
10509
|
+
} else obj[key] = value;
|
|
10606
10510
|
return obj;
|
|
10607
10511
|
}
|
|
10608
10512
|
function _get$7(target, property, receiver) {
|
|
10609
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
10610
|
-
|
|
10611
|
-
} else {
|
|
10513
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get$7 = Reflect.get;
|
|
10514
|
+
else {
|
|
10612
10515
|
_get$7 = function get(target, property, receiver) {
|
|
10613
10516
|
var base = _super_prop_base$7(target, property);
|
|
10614
10517
|
if (!base) return;
|
|
10615
10518
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
10616
|
-
if (desc.get)
|
|
10617
|
-
return desc.get.call(receiver || target);
|
|
10618
|
-
}
|
|
10519
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
10619
10520
|
return desc.value;
|
|
10620
10521
|
};
|
|
10621
10522
|
}
|
|
@@ -10644,15 +10545,23 @@ this.Scorm2004API = (function () {
|
|
|
10644
10545
|
"@swc/helpers - instanceof";
|
|
10645
10546
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
10646
10547
|
return !!right[Symbol.hasInstance](left);
|
|
10647
|
-
} else
|
|
10648
|
-
|
|
10649
|
-
|
|
10548
|
+
} else return left instanceof right;
|
|
10549
|
+
}
|
|
10550
|
+
function _is_native_reflect_construct$i() {
|
|
10551
|
+
try {
|
|
10552
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
10553
|
+
} catch (_) {}
|
|
10554
|
+
return (_is_native_reflect_construct$i = function() {
|
|
10555
|
+
return !!result;
|
|
10556
|
+
})();
|
|
10650
10557
|
}
|
|
10651
10558
|
function _iterable_to_array$9(iter) {
|
|
10652
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
10559
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
10560
|
+
return Array.from(iter);
|
|
10561
|
+
}
|
|
10653
10562
|
}
|
|
10654
10563
|
function _non_iterable_spread$9() {
|
|
10655
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
10564
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10656
10565
|
}
|
|
10657
10566
|
function _object_spread$a(target) {
|
|
10658
10567
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -10670,9 +10579,7 @@ this.Scorm2004API = (function () {
|
|
|
10670
10579
|
return target;
|
|
10671
10580
|
}
|
|
10672
10581
|
function _possible_constructor_return$i(self, call) {
|
|
10673
|
-
if (call && (_type_of$J(call) === "object" || typeof call === "function"))
|
|
10674
|
-
return call;
|
|
10675
|
-
}
|
|
10582
|
+
if (call && (_type_of$J(call) === "object" || typeof call === "function")) return call;
|
|
10676
10583
|
return _assert_this_initialized$i(self);
|
|
10677
10584
|
}
|
|
10678
10585
|
function _set_prototype_of$i(o, p) {
|
|
@@ -10704,14 +10611,6 @@ this.Scorm2004API = (function () {
|
|
|
10704
10611
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10705
10612
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
10706
10613
|
}
|
|
10707
|
-
function _is_native_reflect_construct$i() {
|
|
10708
|
-
try {
|
|
10709
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
10710
|
-
} catch (_) {}
|
|
10711
|
-
return (_is_native_reflect_construct$i = function() {
|
|
10712
|
-
return !!result;
|
|
10713
|
-
})();
|
|
10714
|
-
}
|
|
10715
10614
|
var __defProp$J = Object.defineProperty;
|
|
10716
10615
|
var __defNormalProp$J = function __defNormalProp(obj, key, value) {
|
|
10717
10616
|
return key in obj ? __defProp$J(obj, key, {
|
|
@@ -13293,9 +13192,7 @@ this.Scorm2004API = (function () {
|
|
|
13293
13192
|
}(BaseCMI);
|
|
13294
13193
|
|
|
13295
13194
|
function _class_call_check$M(instance, Constructor) {
|
|
13296
|
-
if (!(instance instanceof Constructor))
|
|
13297
|
-
throw new TypeError("Cannot call a class as a function");
|
|
13298
|
-
}
|
|
13195
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
13299
13196
|
}
|
|
13300
13197
|
function _defineProperties$M(target, props) {
|
|
13301
13198
|
for(var i = 0; i < props.length; i++){
|
|
@@ -13475,9 +13372,7 @@ this.Scorm2004API = (function () {
|
|
|
13475
13372
|
}();
|
|
13476
13373
|
|
|
13477
13374
|
function _class_call_check$L(instance, Constructor) {
|
|
13478
|
-
if (!(instance instanceof Constructor))
|
|
13479
|
-
throw new TypeError("Cannot call a class as a function");
|
|
13480
|
-
}
|
|
13375
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
13481
13376
|
}
|
|
13482
13377
|
function _defineProperties$L(target, props) {
|
|
13483
13378
|
for(var i = 0; i < props.length; i++){
|
|
@@ -13664,9 +13559,7 @@ this.Scorm2004API = (function () {
|
|
|
13664
13559
|
}();
|
|
13665
13560
|
|
|
13666
13561
|
function _class_call_check$K(instance, Constructor) {
|
|
13667
|
-
if (!(instance instanceof Constructor))
|
|
13668
|
-
throw new TypeError("Cannot call a class as a function");
|
|
13669
|
-
}
|
|
13562
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
13670
13563
|
}
|
|
13671
13564
|
function _defineProperties$K(target, props) {
|
|
13672
13565
|
for(var i = 0; i < props.length; i++){
|
|
@@ -13938,9 +13831,7 @@ this.Scorm2004API = (function () {
|
|
|
13938
13831
|
}();
|
|
13939
13832
|
|
|
13940
13833
|
function _class_call_check$J(instance, Constructor) {
|
|
13941
|
-
if (!(instance instanceof Constructor))
|
|
13942
|
-
throw new TypeError("Cannot call a class as a function");
|
|
13943
|
-
}
|
|
13834
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
13944
13835
|
}
|
|
13945
13836
|
function _defineProperties$J(target, props) {
|
|
13946
13837
|
for(var i = 0; i < props.length; i++){
|
|
@@ -14157,9 +14048,7 @@ this.Scorm2004API = (function () {
|
|
|
14157
14048
|
}();
|
|
14158
14049
|
|
|
14159
14050
|
function _class_call_check$I(instance, Constructor) {
|
|
14160
|
-
if (!(instance instanceof Constructor))
|
|
14161
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14162
|
-
}
|
|
14051
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
14163
14052
|
}
|
|
14164
14053
|
function _defineProperties$I(target, props) {
|
|
14165
14054
|
for(var i = 0; i < props.length; i++){
|
|
@@ -14325,9 +14214,7 @@ this.Scorm2004API = (function () {
|
|
|
14325
14214
|
}();
|
|
14326
14215
|
|
|
14327
14216
|
function _class_call_check$H(instance, Constructor) {
|
|
14328
|
-
if (!(instance instanceof Constructor))
|
|
14329
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14330
|
-
}
|
|
14217
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
14331
14218
|
}
|
|
14332
14219
|
function _defineProperties$H(target, props) {
|
|
14333
14220
|
for(var i = 0; i < props.length; i++){
|
|
@@ -14476,9 +14363,7 @@ this.Scorm2004API = (function () {
|
|
|
14476
14363
|
}();
|
|
14477
14364
|
|
|
14478
14365
|
function _class_call_check$G(instance, Constructor) {
|
|
14479
|
-
if (!(instance instanceof Constructor))
|
|
14480
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14481
|
-
}
|
|
14366
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
14482
14367
|
}
|
|
14483
14368
|
function _defineProperties$G(target, props) {
|
|
14484
14369
|
for(var i = 0; i < props.length; i++){
|
|
@@ -14497,9 +14382,7 @@ this.Scorm2004API = (function () {
|
|
|
14497
14382
|
"@swc/helpers - instanceof";
|
|
14498
14383
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
14499
14384
|
return !!right[Symbol.hasInstance](left);
|
|
14500
|
-
} else
|
|
14501
|
-
return left instanceof right;
|
|
14502
|
-
}
|
|
14385
|
+
} else return left instanceof right;
|
|
14503
14386
|
}
|
|
14504
14387
|
function _type_of$D(obj) {
|
|
14505
14388
|
"@swc/helpers - typeof";
|
|
@@ -14777,9 +14660,7 @@ this.Scorm2004API = (function () {
|
|
|
14777
14660
|
}();
|
|
14778
14661
|
|
|
14779
14662
|
function _class_call_check$F(instance, Constructor) {
|
|
14780
|
-
if (!(instance instanceof Constructor))
|
|
14781
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14782
|
-
}
|
|
14663
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
14783
14664
|
}
|
|
14784
14665
|
function _defineProperties$F(target, props) {
|
|
14785
14666
|
for(var i = 0; i < props.length; i++){
|
|
@@ -14799,9 +14680,7 @@ this.Scorm2004API = (function () {
|
|
|
14799
14680
|
"@swc/helpers - instanceof";
|
|
14800
14681
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
14801
14682
|
return !!right[Symbol.hasInstance](left);
|
|
14802
|
-
} else
|
|
14803
|
-
return left instanceof right;
|
|
14804
|
-
}
|
|
14683
|
+
} else return left instanceof right;
|
|
14805
14684
|
}
|
|
14806
14685
|
function _type_of$C(obj) {
|
|
14807
14686
|
"@swc/helpers - typeof";
|
|
@@ -15097,7 +14976,7 @@ this.Scorm2004API = (function () {
|
|
|
15097
14976
|
activityId: activity.id,
|
|
15098
14977
|
objectiveId: objective.id,
|
|
15099
14978
|
globalState: globalObjective,
|
|
15100
|
-
synchronizationTime: /* @__PURE__ */ new Date().toISOString()
|
|
14979
|
+
synchronizationTime: (/* @__PURE__ */ new Date()).toISOString()
|
|
15101
14980
|
});
|
|
15102
14981
|
}
|
|
15103
14982
|
} catch (err) {
|
|
@@ -15254,7 +15133,7 @@ this.Scorm2004API = (function () {
|
|
|
15254
15133
|
objectiveId: objective.id,
|
|
15255
15134
|
localState: localObjective,
|
|
15256
15135
|
globalState: globalObjective,
|
|
15257
|
-
synchronizationTime: /* @__PURE__ */ new Date().toISOString()
|
|
15136
|
+
synchronizationTime: (/* @__PURE__ */ new Date()).toISOString()
|
|
15258
15137
|
});
|
|
15259
15138
|
} catch (error) {
|
|
15260
15139
|
var _this_eventCallback1, _this1;
|
|
@@ -15262,7 +15141,7 @@ this.Scorm2004API = (function () {
|
|
|
15262
15141
|
activityId: activity.id,
|
|
15263
15142
|
objectiveId: objective.id,
|
|
15264
15143
|
error: _instanceof$9(error, Error) ? error.message : String(error),
|
|
15265
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
15144
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
15266
15145
|
});
|
|
15267
15146
|
}
|
|
15268
15147
|
}
|
|
@@ -15476,7 +15355,7 @@ this.Scorm2004API = (function () {
|
|
|
15476
15355
|
(_this_eventCallback = (_this = this).eventCallback) === null || _this_eventCallback === void 0 ? void 0 : _this_eventCallback.call(_this, "attempt_data_update_error", {
|
|
15477
15356
|
activityId: activity.id,
|
|
15478
15357
|
error: _instanceof$9(error, Error) ? error.message : String(error),
|
|
15479
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
15358
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
15480
15359
|
});
|
|
15481
15360
|
}
|
|
15482
15361
|
}
|
|
@@ -15533,9 +15412,7 @@ this.Scorm2004API = (function () {
|
|
|
15533
15412
|
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
15534
15413
|
}
|
|
15535
15414
|
function _class_call_check$E(instance, Constructor) {
|
|
15536
|
-
if (!(instance instanceof Constructor))
|
|
15537
|
-
throw new TypeError("Cannot call a class as a function");
|
|
15538
|
-
}
|
|
15415
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15539
15416
|
}
|
|
15540
15417
|
function _defineProperties$E(target, props) {
|
|
15541
15418
|
for(var i = 0; i < props.length; i++){
|
|
@@ -15554,15 +15431,15 @@ this.Scorm2004API = (function () {
|
|
|
15554
15431
|
"@swc/helpers - instanceof";
|
|
15555
15432
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
15556
15433
|
return !!right[Symbol.hasInstance](left);
|
|
15557
|
-
} else
|
|
15558
|
-
return left instanceof right;
|
|
15559
|
-
}
|
|
15434
|
+
} else return left instanceof right;
|
|
15560
15435
|
}
|
|
15561
15436
|
function _iterable_to_array$8(iter) {
|
|
15562
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
15437
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
15438
|
+
return Array.from(iter);
|
|
15439
|
+
}
|
|
15563
15440
|
}
|
|
15564
15441
|
function _non_iterable_spread$8() {
|
|
15565
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
15442
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15566
15443
|
}
|
|
15567
15444
|
function _to_consumable_array$8(arr) {
|
|
15568
15445
|
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$8();
|
|
@@ -15614,7 +15491,7 @@ this.Scorm2004API = (function () {
|
|
|
15614
15491
|
var _this_eventCallback, _this, _this_eventCallback1, _this1;
|
|
15615
15492
|
(_this_eventCallback = (_this = this).eventCallback) === null || _this_eventCallback === void 0 ? void 0 : _this_eventCallback.call(_this, "rollup_validation_started", {
|
|
15616
15493
|
activityId: rootActivity.id,
|
|
15617
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
15494
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
15618
15495
|
});
|
|
15619
15496
|
var inconsistencies = [];
|
|
15620
15497
|
this.validateActivityRollupState(rootActivity, inconsistencies);
|
|
@@ -15711,7 +15588,7 @@ this.Scorm2004API = (function () {
|
|
|
15711
15588
|
}
|
|
15712
15589
|
this.rollupStateLog.push({
|
|
15713
15590
|
activity: activityId,
|
|
15714
|
-
timestamp: /* @__PURE__ */ new Date().toISOString(),
|
|
15591
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
15715
15592
|
state: {
|
|
15716
15593
|
measureStatus: activity.objectiveMeasureStatus,
|
|
15717
15594
|
measure: activity.objectiveNormalizedMeasure,
|
|
@@ -15744,9 +15621,7 @@ this.Scorm2004API = (function () {
|
|
|
15744
15621
|
}();
|
|
15745
15622
|
|
|
15746
15623
|
function _class_call_check$D(instance, Constructor) {
|
|
15747
|
-
if (!(instance instanceof Constructor))
|
|
15748
|
-
throw new TypeError("Cannot call a class as a function");
|
|
15749
|
-
}
|
|
15624
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15750
15625
|
}
|
|
15751
15626
|
function _defineProperties$D(target, props) {
|
|
15752
15627
|
for(var i = 0; i < props.length; i++){
|
|
@@ -16006,9 +15881,7 @@ this.Scorm2004API = (function () {
|
|
|
16006
15881
|
}
|
|
16007
15882
|
|
|
16008
15883
|
function _class_call_check$C(instance, Constructor) {
|
|
16009
|
-
if (!(instance instanceof Constructor))
|
|
16010
|
-
throw new TypeError("Cannot call a class as a function");
|
|
16011
|
-
}
|
|
15884
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16012
15885
|
}
|
|
16013
15886
|
function _defineProperties$C(target, props) {
|
|
16014
15887
|
for(var i = 0; i < props.length; i++){
|
|
@@ -16087,7 +15960,7 @@ this.Scorm2004API = (function () {
|
|
|
16087
15960
|
this.transferNonPrimaryObjectives(activity, cmiData);
|
|
16088
15961
|
this.context.fireEvent("onRteDataTransfer", {
|
|
16089
15962
|
activityId: activity.id,
|
|
16090
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
15963
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
16091
15964
|
});
|
|
16092
15965
|
}
|
|
16093
15966
|
},
|
|
@@ -16323,9 +16196,7 @@ this.Scorm2004API = (function () {
|
|
|
16323
16196
|
}();
|
|
16324
16197
|
|
|
16325
16198
|
function _class_call_check$B(instance, Constructor) {
|
|
16326
|
-
if (!(instance instanceof Constructor))
|
|
16327
|
-
throw new TypeError("Cannot call a class as a function");
|
|
16328
|
-
}
|
|
16199
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16329
16200
|
}
|
|
16330
16201
|
function _defineProperties$B(target, props) {
|
|
16331
16202
|
for(var i = 0; i < props.length; i++){
|
|
@@ -16754,7 +16625,7 @@ this.Scorm2004API = (function () {
|
|
|
16754
16625
|
return a.id;
|
|
16755
16626
|
}),
|
|
16756
16627
|
pathLength: activityPath.length,
|
|
16757
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
16628
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
16758
16629
|
});
|
|
16759
16630
|
return {
|
|
16760
16631
|
terminationRequest: SequencingRequestType.SUSPEND_ALL,
|
|
@@ -16831,7 +16702,7 @@ this.Scorm2004API = (function () {
|
|
|
16831
16702
|
activity: activity.id,
|
|
16832
16703
|
sequencingRequest: postResult.sequencingRequest,
|
|
16833
16704
|
terminationRequest: postResult.terminationRequest,
|
|
16834
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
16705
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
16835
16706
|
});
|
|
16836
16707
|
}
|
|
16837
16708
|
return postResult;
|
|
@@ -17141,7 +17012,7 @@ this.Scorm2004API = (function () {
|
|
|
17141
17012
|
activity.wasAutoCompleted = true;
|
|
17142
17013
|
this.fireEvent("onAutoCompletion", {
|
|
17143
17014
|
activityId: activity.id,
|
|
17144
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
17015
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17145
17016
|
});
|
|
17146
17017
|
}
|
|
17147
17018
|
}
|
|
@@ -17156,7 +17027,7 @@ this.Scorm2004API = (function () {
|
|
|
17156
17027
|
activity.wasAutoSatisfied = true;
|
|
17157
17028
|
this.fireEvent("onAutoSatisfaction", {
|
|
17158
17029
|
activityId: activity.id,
|
|
17159
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
17030
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17160
17031
|
});
|
|
17161
17032
|
}
|
|
17162
17033
|
}
|
|
@@ -17216,9 +17087,7 @@ this.Scorm2004API = (function () {
|
|
|
17216
17087
|
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
17217
17088
|
}
|
|
17218
17089
|
function _class_call_check$A(instance, Constructor) {
|
|
17219
|
-
if (!(instance instanceof Constructor))
|
|
17220
|
-
throw new TypeError("Cannot call a class as a function");
|
|
17221
|
-
}
|
|
17090
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
17222
17091
|
}
|
|
17223
17092
|
function _defineProperties$A(target, props) {
|
|
17224
17093
|
for(var i = 0; i < props.length; i++){
|
|
@@ -17241,16 +17110,16 @@ this.Scorm2004API = (function () {
|
|
|
17241
17110
|
configurable: true,
|
|
17242
17111
|
writable: true
|
|
17243
17112
|
});
|
|
17244
|
-
} else
|
|
17245
|
-
obj[key] = value;
|
|
17246
|
-
}
|
|
17113
|
+
} else obj[key] = value;
|
|
17247
17114
|
return obj;
|
|
17248
17115
|
}
|
|
17249
17116
|
function _iterable_to_array$7(iter) {
|
|
17250
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
17117
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
17118
|
+
return Array.from(iter);
|
|
17119
|
+
}
|
|
17251
17120
|
}
|
|
17252
17121
|
function _non_iterable_spread$7() {
|
|
17253
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
17122
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17254
17123
|
}
|
|
17255
17124
|
function _object_spread$9(target) {
|
|
17256
17125
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -17413,7 +17282,7 @@ this.Scorm2004API = (function () {
|
|
|
17413
17282
|
value: function processDeliveryRequest(activity) {
|
|
17414
17283
|
this.fireEvent("onDeliveryRequestProcessing", {
|
|
17415
17284
|
activity: activity.id,
|
|
17416
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
17285
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17417
17286
|
});
|
|
17418
17287
|
if (activity.children.length > 0) {
|
|
17419
17288
|
return new DeliveryRequest(false, null, "DB.1.1-1");
|
|
@@ -17778,9 +17647,7 @@ this.Scorm2004API = (function () {
|
|
|
17778
17647
|
var DeliveryHandler = _DeliveryHandler;
|
|
17779
17648
|
|
|
17780
17649
|
function _class_call_check$z(instance, Constructor) {
|
|
17781
|
-
if (!(instance instanceof Constructor))
|
|
17782
|
-
throw new TypeError("Cannot call a class as a function");
|
|
17783
|
-
}
|
|
17650
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
17784
17651
|
}
|
|
17785
17652
|
function _defineProperties$z(target, props) {
|
|
17786
17653
|
for(var i = 0; i < props.length; i++){
|
|
@@ -18273,9 +18140,7 @@ this.Scorm2004API = (function () {
|
|
|
18273
18140
|
}();
|
|
18274
18141
|
|
|
18275
18142
|
function _class_call_check$y(instance, Constructor) {
|
|
18276
|
-
if (!(instance instanceof Constructor))
|
|
18277
|
-
throw new TypeError("Cannot call a class as a function");
|
|
18278
|
-
}
|
|
18143
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
18279
18144
|
}
|
|
18280
18145
|
function _defineProperties$y(target, props) {
|
|
18281
18146
|
for(var i = 0; i < props.length; i++){
|
|
@@ -19154,9 +19019,7 @@ this.Scorm2004API = (function () {
|
|
|
19154
19019
|
if (Array.isArray(arr)) return arr;
|
|
19155
19020
|
}
|
|
19156
19021
|
function _class_call_check$x(instance, Constructor) {
|
|
19157
|
-
if (!(instance instanceof Constructor))
|
|
19158
|
-
throw new TypeError("Cannot call a class as a function");
|
|
19159
|
-
}
|
|
19022
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
19160
19023
|
}
|
|
19161
19024
|
function _defineProperties$x(target, props) {
|
|
19162
19025
|
for(var i = 0; i < props.length; i++){
|
|
@@ -19179,18 +19042,14 @@ this.Scorm2004API = (function () {
|
|
|
19179
19042
|
configurable: true,
|
|
19180
19043
|
writable: true
|
|
19181
19044
|
});
|
|
19182
|
-
} else
|
|
19183
|
-
obj[key] = value;
|
|
19184
|
-
}
|
|
19045
|
+
} else obj[key] = value;
|
|
19185
19046
|
return obj;
|
|
19186
19047
|
}
|
|
19187
19048
|
function _instanceof$7(left, right) {
|
|
19188
19049
|
"@swc/helpers - instanceof";
|
|
19189
19050
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
19190
19051
|
return !!right[Symbol.hasInstance](left);
|
|
19191
|
-
} else
|
|
19192
|
-
return left instanceof right;
|
|
19193
|
-
}
|
|
19052
|
+
} else return left instanceof right;
|
|
19194
19053
|
}
|
|
19195
19054
|
function _iterable_to_array_limit$5(arr, i) {
|
|
19196
19055
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -19217,7 +19076,7 @@ this.Scorm2004API = (function () {
|
|
|
19217
19076
|
return _arr;
|
|
19218
19077
|
}
|
|
19219
19078
|
function _non_iterable_rest$5() {
|
|
19220
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
19079
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19221
19080
|
}
|
|
19222
19081
|
function _object_spread$8(target) {
|
|
19223
19082
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -19244,9 +19103,8 @@ this.Scorm2004API = (function () {
|
|
|
19244
19103
|
}
|
|
19245
19104
|
function _object_spread_props$2(target, source) {
|
|
19246
19105
|
source = source != null ? source : {};
|
|
19247
|
-
if (Object.getOwnPropertyDescriptors)
|
|
19248
|
-
|
|
19249
|
-
} else {
|
|
19106
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19107
|
+
else {
|
|
19250
19108
|
ownKeys$2(Object(source)).forEach(function(key) {
|
|
19251
19109
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19252
19110
|
});
|
|
@@ -19302,12 +19160,12 @@ this.Scorm2004API = (function () {
|
|
|
19302
19160
|
}
|
|
19303
19161
|
this.fireEvent("onGlobalObjectiveMapInitialized", {
|
|
19304
19162
|
objectiveCount: this.globalObjectiveMap.size,
|
|
19305
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19163
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
19306
19164
|
});
|
|
19307
19165
|
} catch (error) {
|
|
19308
19166
|
this.fireEvent("onGlobalObjectiveMapError", {
|
|
19309
19167
|
error: _instanceof$7(error, Error) ? error.message : String(error),
|
|
19310
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19168
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
19311
19169
|
});
|
|
19312
19170
|
}
|
|
19313
19171
|
}
|
|
@@ -19514,18 +19372,18 @@ this.Scorm2004API = (function () {
|
|
|
19514
19372
|
value: function updateObjective(objectiveId, objectiveData) {
|
|
19515
19373
|
try {
|
|
19516
19374
|
this.globalObjectiveMap.set(objectiveId, _object_spread_props$2(_object_spread$8({}, this.globalObjectiveMap.get(objectiveId), objectiveData), {
|
|
19517
|
-
lastUpdated: /* @__PURE__ */ new Date().toISOString()
|
|
19375
|
+
lastUpdated: (/* @__PURE__ */ new Date()).toISOString()
|
|
19518
19376
|
}));
|
|
19519
19377
|
this.fireEvent("onGlobalObjectiveUpdated", {
|
|
19520
19378
|
objectiveId: objectiveId,
|
|
19521
19379
|
data: objectiveData,
|
|
19522
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19380
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
19523
19381
|
});
|
|
19524
19382
|
} catch (error) {
|
|
19525
19383
|
this.fireEvent("onGlobalObjectiveUpdateError", {
|
|
19526
19384
|
objectiveId: objectiveId,
|
|
19527
19385
|
error: _instanceof$7(error, Error) ? error.message : String(error),
|
|
19528
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19386
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
19529
19387
|
});
|
|
19530
19388
|
}
|
|
19531
19389
|
}
|
|
@@ -19590,7 +19448,7 @@ this.Scorm2004API = (function () {
|
|
|
19590
19448
|
value: function clear() {
|
|
19591
19449
|
this.globalObjectiveMap.clear();
|
|
19592
19450
|
this.fireEvent("onGlobalObjectiveMapCleared", {
|
|
19593
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19451
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
19594
19452
|
});
|
|
19595
19453
|
}
|
|
19596
19454
|
},
|
|
@@ -19639,7 +19497,7 @@ this.Scorm2004API = (function () {
|
|
|
19639
19497
|
}
|
|
19640
19498
|
this.fireEvent("onGlobalObjectiveMapRestored", {
|
|
19641
19499
|
objectiveCount: this.globalObjectiveMap.size,
|
|
19642
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19500
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
19643
19501
|
});
|
|
19644
19502
|
}
|
|
19645
19503
|
},
|
|
@@ -19664,9 +19522,7 @@ this.Scorm2004API = (function () {
|
|
|
19664
19522
|
}();
|
|
19665
19523
|
|
|
19666
19524
|
function _class_call_check$w(instance, Constructor) {
|
|
19667
|
-
if (!(instance instanceof Constructor))
|
|
19668
|
-
throw new TypeError("Cannot call a class as a function");
|
|
19669
|
-
}
|
|
19525
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
19670
19526
|
}
|
|
19671
19527
|
function _defineProperties$w(target, props) {
|
|
19672
19528
|
for(var i = 0; i < props.length; i++){
|
|
@@ -19685,9 +19541,7 @@ this.Scorm2004API = (function () {
|
|
|
19685
19541
|
"@swc/helpers - instanceof";
|
|
19686
19542
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
19687
19543
|
return !!right[Symbol.hasInstance](left);
|
|
19688
|
-
} else
|
|
19689
|
-
return left instanceof right;
|
|
19690
|
-
}
|
|
19544
|
+
} else return left instanceof right;
|
|
19691
19545
|
}
|
|
19692
19546
|
function _type_of$t(obj) {
|
|
19693
19547
|
"@swc/helpers - typeof";
|
|
@@ -19760,7 +19614,7 @@ this.Scorm2004API = (function () {
|
|
|
19760
19614
|
var _this_activityTree_currentActivity, _this_activityTree_suspendedActivity;
|
|
19761
19615
|
return {
|
|
19762
19616
|
version: "1.0",
|
|
19763
|
-
timestamp: /* @__PURE__ */ new Date().toISOString(),
|
|
19617
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
19764
19618
|
contentDelivered: this.contentDeliveredGetter ? this.contentDeliveredGetter() : false,
|
|
19765
19619
|
currentActivity: ((_this_activityTree_currentActivity = this.activityTree.currentActivity) === null || _this_activityTree_currentActivity === void 0 ? void 0 : _this_activityTree_currentActivity.id) || null,
|
|
19766
19620
|
suspendedActivity: ((_this_activityTree_suspendedActivity = this.activityTree.suspendedActivity) === null || _this_activityTree_suspendedActivity === void 0 ? void 0 : _this_activityTree_suspendedActivity.id) || null,
|
|
@@ -20085,7 +19939,7 @@ this.Scorm2004API = (function () {
|
|
|
20085
19939
|
currentActivityId: ((_this_activityTree_currentActivity = this.activityTree.currentActivity) === null || _this_activityTree_currentActivity === void 0 ? void 0 : _this_activityTree_currentActivity.id) || null,
|
|
20086
19940
|
suspendedActivityId: ((_this_activityTree_suspendedActivity = this.activityTree.suspendedActivity) === null || _this_activityTree_suspendedActivity === void 0 ? void 0 : _this_activityTree_suspendedActivity.id) || null,
|
|
20087
19941
|
globalObjectives: this.globalObjectiveService.getSnapshot(),
|
|
20088
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19942
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
20089
19943
|
};
|
|
20090
19944
|
this.fireEvent("onSuspensionStateCaptured", {
|
|
20091
19945
|
hasActivityTree: !!state.activityTree,
|
|
@@ -20107,7 +19961,7 @@ this.Scorm2004API = (function () {
|
|
|
20107
19961
|
if (!state) {
|
|
20108
19962
|
this.fireEvent("onSuspensionStateRestoreError", {
|
|
20109
19963
|
error: "No suspension state provided",
|
|
20110
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19964
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
20111
19965
|
});
|
|
20112
19966
|
return;
|
|
20113
19967
|
}
|
|
@@ -20135,12 +19989,12 @@ this.Scorm2004API = (function () {
|
|
|
20135
19989
|
suspendedActivityId: state.suspendedActivityId,
|
|
20136
19990
|
globalObjectiveCount: state.globalObjectives ? Object.keys(state.globalObjectives).length : 0,
|
|
20137
19991
|
originalTimestamp: state.timestamp,
|
|
20138
|
-
restoreTimestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19992
|
+
restoreTimestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
20139
19993
|
});
|
|
20140
19994
|
} catch (error) {
|
|
20141
19995
|
this.fireEvent("onSuspensionStateRestoreError", {
|
|
20142
19996
|
error: _instanceof$6(error, Error) ? error.message : String(error),
|
|
20143
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
19997
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
20144
19998
|
});
|
|
20145
19999
|
throw error;
|
|
20146
20000
|
}
|
|
@@ -20175,9 +20029,7 @@ this.Scorm2004API = (function () {
|
|
|
20175
20029
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
20176
20030
|
}
|
|
20177
20031
|
function _class_call_check$v(instance, Constructor) {
|
|
20178
|
-
if (!(instance instanceof Constructor))
|
|
20179
|
-
throw new TypeError("Cannot call a class as a function");
|
|
20180
|
-
}
|
|
20032
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
20181
20033
|
}
|
|
20182
20034
|
function _defineProperties$v(target, props) {
|
|
20183
20035
|
for(var i = 0; i < props.length; i++){
|
|
@@ -20193,10 +20045,12 @@ this.Scorm2004API = (function () {
|
|
|
20193
20045
|
return Constructor;
|
|
20194
20046
|
}
|
|
20195
20047
|
function _iterable_to_array$6(iter) {
|
|
20196
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
20048
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
20049
|
+
return Array.from(iter);
|
|
20050
|
+
}
|
|
20197
20051
|
}
|
|
20198
20052
|
function _non_iterable_spread$6() {
|
|
20199
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
20053
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20200
20054
|
}
|
|
20201
20055
|
function _to_consumable_array$6(arr) {
|
|
20202
20056
|
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$6();
|
|
@@ -21144,9 +20998,7 @@ this.Scorm2004API = (function () {
|
|
|
21144
20998
|
}();
|
|
21145
20999
|
|
|
21146
21000
|
function _class_call_check$u(instance, Constructor) {
|
|
21147
|
-
if (!(instance instanceof Constructor))
|
|
21148
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21149
|
-
}
|
|
21001
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21150
21002
|
}
|
|
21151
21003
|
function _defineProperties$u(target, props) {
|
|
21152
21004
|
for(var i = 0; i < props.length; i++){
|
|
@@ -21687,9 +21539,7 @@ this.Scorm2004API = (function () {
|
|
|
21687
21539
|
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
21688
21540
|
}
|
|
21689
21541
|
function _class_call_check$t(instance, Constructor) {
|
|
21690
|
-
if (!(instance instanceof Constructor))
|
|
21691
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21692
|
-
}
|
|
21542
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21693
21543
|
}
|
|
21694
21544
|
function _defineProperties$t(target, props) {
|
|
21695
21545
|
for(var i = 0; i < props.length; i++){
|
|
@@ -21712,16 +21562,16 @@ this.Scorm2004API = (function () {
|
|
|
21712
21562
|
configurable: true,
|
|
21713
21563
|
writable: true
|
|
21714
21564
|
});
|
|
21715
|
-
} else
|
|
21716
|
-
obj[key] = value;
|
|
21717
|
-
}
|
|
21565
|
+
} else obj[key] = value;
|
|
21718
21566
|
return obj;
|
|
21719
21567
|
}
|
|
21720
21568
|
function _iterable_to_array$5(iter) {
|
|
21721
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
21569
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
21570
|
+
return Array.from(iter);
|
|
21571
|
+
}
|
|
21722
21572
|
}
|
|
21723
21573
|
function _non_iterable_spread$5() {
|
|
21724
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
21574
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
21725
21575
|
}
|
|
21726
21576
|
function _object_spread$7(target) {
|
|
21727
21577
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -22413,12 +22263,12 @@ this.Scorm2004API = (function () {
|
|
|
22413
22263
|
var listener = this.eventListeners["onSequencingDebug"];
|
|
22414
22264
|
if (listener && typeof listener === "function") {
|
|
22415
22265
|
listener(event, _object_spread$7({
|
|
22416
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
22266
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
22417
22267
|
}, data));
|
|
22418
22268
|
}
|
|
22419
22269
|
try {
|
|
22420
22270
|
this.eventService.processListeners("Sequencing.onSequencingDebug", event, _object_spread$7({
|
|
22421
|
-
timestamp: /* @__PURE__ */ new Date().toISOString()
|
|
22271
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
22422
22272
|
}, data));
|
|
22423
22273
|
} catch (eventServiceError) {}
|
|
22424
22274
|
} catch (error) {
|
|
@@ -22557,9 +22407,7 @@ this.Scorm2004API = (function () {
|
|
|
22557
22407
|
}();
|
|
22558
22408
|
|
|
22559
22409
|
function _class_call_check$s(instance, Constructor) {
|
|
22560
|
-
if (!(instance instanceof Constructor))
|
|
22561
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22562
|
-
}
|
|
22410
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
22563
22411
|
}
|
|
22564
22412
|
function _defineProperties$s(target, props) {
|
|
22565
22413
|
for(var i = 0; i < props.length; i++){
|
|
@@ -22839,9 +22687,7 @@ this.Scorm2004API = (function () {
|
|
|
22839
22687
|
if (Array.isArray(arr)) return arr;
|
|
22840
22688
|
}
|
|
22841
22689
|
function _class_call_check$r(instance, Constructor) {
|
|
22842
|
-
if (!(instance instanceof Constructor))
|
|
22843
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22844
|
-
}
|
|
22690
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
22845
22691
|
}
|
|
22846
22692
|
function _defineProperties$r(target, props) {
|
|
22847
22693
|
for(var i = 0; i < props.length; i++){
|
|
@@ -22860,9 +22706,7 @@ this.Scorm2004API = (function () {
|
|
|
22860
22706
|
"@swc/helpers - instanceof";
|
|
22861
22707
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
22862
22708
|
return !!right[Symbol.hasInstance](left);
|
|
22863
|
-
} else
|
|
22864
|
-
return left instanceof right;
|
|
22865
|
-
}
|
|
22709
|
+
} else return left instanceof right;
|
|
22866
22710
|
}
|
|
22867
22711
|
function _iterable_to_array_limit$4(arr, i) {
|
|
22868
22712
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -22889,7 +22733,7 @@ this.Scorm2004API = (function () {
|
|
|
22889
22733
|
return _arr;
|
|
22890
22734
|
}
|
|
22891
22735
|
function _non_iterable_rest$4() {
|
|
22892
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
22736
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22893
22737
|
}
|
|
22894
22738
|
function _sliced_to_array$4(arr, i) {
|
|
22895
22739
|
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$4();
|
|
@@ -22967,10 +22811,12 @@ this.Scorm2004API = (function () {
|
|
|
22967
22811
|
var handledPayload = metadata === void 0 ? this.settings.requestHandler(params) : this.settings.requestHandler(params, metadata);
|
|
22968
22812
|
var requestPayload = handledPayload !== null && handledPayload !== void 0 ? handledPayload : params;
|
|
22969
22813
|
var body = this._prepareRequestBody(requestPayload).body;
|
|
22814
|
+
var beaconContentType = this.settings.terminationCommitContentType;
|
|
22815
|
+
this._warnIfBeaconContentTypeUnsafe(url, beaconContentType);
|
|
22970
22816
|
var beaconSuccess = navigator.sendBeacon(url, new Blob([
|
|
22971
22817
|
body
|
|
22972
22818
|
], {
|
|
22973
|
-
type:
|
|
22819
|
+
type: beaconContentType
|
|
22974
22820
|
}));
|
|
22975
22821
|
return {
|
|
22976
22822
|
result: beaconSuccess ? "true" : "false",
|
|
@@ -22978,6 +22824,15 @@ this.Scorm2004API = (function () {
|
|
|
22978
22824
|
};
|
|
22979
22825
|
}
|
|
22980
22826
|
},
|
|
22827
|
+
{
|
|
22828
|
+
key: "_warnIfBeaconContentTypeUnsafe",
|
|
22829
|
+
value: function _warnIfBeaconContentTypeUnsafe(url, contentType) {
|
|
22830
|
+
if (isCrossOriginUrl(url) && !isCorsSafelistedContentType(contentType)) {
|
|
22831
|
+
var _this_settings_onLogMessage, _this_settings;
|
|
22832
|
+
(_this_settings_onLogMessage = (_this_settings = this.settings).onLogMessage) === null || _this_settings_onLogMessage === void 0 ? void 0 : _this_settings_onLogMessage.call(_this_settings, LogLevelEnum.WARN, 'sendBeacon to cross-origin URL with non-CORS-safelisted Content-Type "'.concat(contentType, '" may be silently dropped by the browser (Beacon cannot preflight). Use fetch (useAsynchronousCommits + asyncModeBeaconBehavior:"never") for cross-origin JSON/auth on terminate.'));
|
|
22833
|
+
}
|
|
22834
|
+
}
|
|
22835
|
+
},
|
|
22981
22836
|
{
|
|
22982
22837
|
/**
|
|
22983
22838
|
* Performs a synchronous XMLHttpRequest
|
|
@@ -23056,9 +22911,7 @@ this.Scorm2004API = (function () {
|
|
|
23056
22911
|
}
|
|
23057
22912
|
|
|
23058
22913
|
function _class_call_check$q(instance, Constructor) {
|
|
23059
|
-
if (!(instance instanceof Constructor))
|
|
23060
|
-
throw new TypeError("Cannot call a class as a function");
|
|
23061
|
-
}
|
|
22914
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23062
22915
|
}
|
|
23063
22916
|
function _defineProperties$q(target, props) {
|
|
23064
22917
|
for(var i = 0; i < props.length; i++){
|
|
@@ -23182,9 +23035,7 @@ this.Scorm2004API = (function () {
|
|
|
23182
23035
|
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
23183
23036
|
}
|
|
23184
23037
|
function _class_call_check$p(instance, Constructor) {
|
|
23185
|
-
if (!(instance instanceof Constructor))
|
|
23186
|
-
throw new TypeError("Cannot call a class as a function");
|
|
23187
|
-
}
|
|
23038
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23188
23039
|
}
|
|
23189
23040
|
function _defineProperties$p(target, props) {
|
|
23190
23041
|
for(var i = 0; i < props.length; i++){
|
|
@@ -23207,24 +23058,22 @@ this.Scorm2004API = (function () {
|
|
|
23207
23058
|
configurable: true,
|
|
23208
23059
|
writable: true
|
|
23209
23060
|
});
|
|
23210
|
-
} else
|
|
23211
|
-
obj[key] = value;
|
|
23212
|
-
}
|
|
23061
|
+
} else obj[key] = value;
|
|
23213
23062
|
return obj;
|
|
23214
23063
|
}
|
|
23215
23064
|
function _instanceof$4(left, right) {
|
|
23216
23065
|
"@swc/helpers - instanceof";
|
|
23217
23066
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
23218
23067
|
return !!right[Symbol.hasInstance](left);
|
|
23219
|
-
} else
|
|
23220
|
-
return left instanceof right;
|
|
23221
|
-
}
|
|
23068
|
+
} else return left instanceof right;
|
|
23222
23069
|
}
|
|
23223
23070
|
function _iterable_to_array$4(iter) {
|
|
23224
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
23071
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
23072
|
+
return Array.from(iter);
|
|
23073
|
+
}
|
|
23225
23074
|
}
|
|
23226
23075
|
function _non_iterable_spread$4() {
|
|
23227
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
23076
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23228
23077
|
}
|
|
23229
23078
|
function _object_spread$6(target) {
|
|
23230
23079
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -23251,9 +23100,8 @@ this.Scorm2004API = (function () {
|
|
|
23251
23100
|
}
|
|
23252
23101
|
function _object_spread_props$1(target, source) {
|
|
23253
23102
|
source = source != null ? source : {};
|
|
23254
|
-
if (Object.getOwnPropertyDescriptors)
|
|
23255
|
-
|
|
23256
|
-
} else {
|
|
23103
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
23104
|
+
else {
|
|
23257
23105
|
ownKeys$1(Object(source)).forEach(function(key) {
|
|
23258
23106
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
23259
23107
|
});
|
|
@@ -24201,8 +24049,8 @@ this.Scorm2004API = (function () {
|
|
|
24201
24049
|
* // Throw a "not initialized" error
|
|
24202
24050
|
* this.throwSCORMError(301, "The API must be initialized before calling GetValue");
|
|
24203
24051
|
*/ key: "throwSCORMError",
|
|
24204
|
-
value: function throwSCORMError(CMIElement, errorNumber, message) {
|
|
24205
|
-
this._errorHandlingService.throwSCORMError(CMIElement, errorNumber !== null && errorNumber !== void 0 ? errorNumber : 0, message);
|
|
24052
|
+
value: function throwSCORMError(CMIElement, errorNumber, message, messageLevel) {
|
|
24053
|
+
this._errorHandlingService.throwSCORMError(CMIElement, errorNumber !== null && errorNumber !== void 0 ? errorNumber : 0, message, messageLevel);
|
|
24206
24054
|
}
|
|
24207
24055
|
},
|
|
24208
24056
|
{
|
|
@@ -24585,9 +24433,7 @@ this.Scorm2004API = (function () {
|
|
|
24585
24433
|
}();
|
|
24586
24434
|
|
|
24587
24435
|
function _assert_this_initialized$h(self) {
|
|
24588
|
-
if (self === void 0)
|
|
24589
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24590
|
-
}
|
|
24436
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24591
24437
|
return self;
|
|
24592
24438
|
}
|
|
24593
24439
|
function _call_super$h(_this, derived, args) {
|
|
@@ -24595,9 +24441,7 @@ this.Scorm2004API = (function () {
|
|
|
24595
24441
|
return _possible_constructor_return$h(_this, _is_native_reflect_construct$h() ? Reflect.construct(derived, args || [], _get_prototype_of$h(_this).constructor) : derived.apply(_this, args));
|
|
24596
24442
|
}
|
|
24597
24443
|
function _class_call_check$o(instance, Constructor) {
|
|
24598
|
-
if (!(instance instanceof Constructor))
|
|
24599
|
-
throw new TypeError("Cannot call a class as a function");
|
|
24600
|
-
}
|
|
24444
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
24601
24445
|
}
|
|
24602
24446
|
function _defineProperties$o(target, props) {
|
|
24603
24447
|
for(var i = 0; i < props.length; i++){
|
|
@@ -24631,10 +24475,16 @@ this.Scorm2004API = (function () {
|
|
|
24631
24475
|
});
|
|
24632
24476
|
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
24633
24477
|
}
|
|
24478
|
+
function _is_native_reflect_construct$h() {
|
|
24479
|
+
try {
|
|
24480
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
24481
|
+
} catch (_) {}
|
|
24482
|
+
return (_is_native_reflect_construct$h = function() {
|
|
24483
|
+
return !!result;
|
|
24484
|
+
})();
|
|
24485
|
+
}
|
|
24634
24486
|
function _possible_constructor_return$h(self, call) {
|
|
24635
|
-
if (call && (_type_of$n(call) === "object" || typeof call === "function"))
|
|
24636
|
-
return call;
|
|
24637
|
-
}
|
|
24487
|
+
if (call && (_type_of$n(call) === "object" || typeof call === "function")) return call;
|
|
24638
24488
|
return _assert_this_initialized$h(self);
|
|
24639
24489
|
}
|
|
24640
24490
|
function _set_prototype_of$h(o, p) {
|
|
@@ -24648,14 +24498,6 @@ this.Scorm2004API = (function () {
|
|
|
24648
24498
|
"@swc/helpers - typeof";
|
|
24649
24499
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
24650
24500
|
}
|
|
24651
|
-
function _is_native_reflect_construct$h() {
|
|
24652
|
-
try {
|
|
24653
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
24654
|
-
} catch (_) {}
|
|
24655
|
-
return (_is_native_reflect_construct$h = function() {
|
|
24656
|
-
return !!result;
|
|
24657
|
-
})();
|
|
24658
|
-
}
|
|
24659
24501
|
var __defProp$n = Object.defineProperty;
|
|
24660
24502
|
var __defNormalProp$n = function __defNormalProp(obj, key, value) {
|
|
24661
24503
|
return key in obj ? __defProp$n(obj, key, {
|
|
@@ -24880,9 +24722,7 @@ this.Scorm2004API = (function () {
|
|
|
24880
24722
|
if (Array.isArray(arr)) return arr;
|
|
24881
24723
|
}
|
|
24882
24724
|
function _assert_this_initialized$g(self) {
|
|
24883
|
-
if (self === void 0)
|
|
24884
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24885
|
-
}
|
|
24725
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24886
24726
|
return self;
|
|
24887
24727
|
}
|
|
24888
24728
|
function _call_super$g(_this, derived, args) {
|
|
@@ -24890,9 +24730,7 @@ this.Scorm2004API = (function () {
|
|
|
24890
24730
|
return _possible_constructor_return$g(_this, _is_native_reflect_construct$g() ? Reflect.construct(derived, args || [], _get_prototype_of$g(_this).constructor) : derived.apply(_this, args));
|
|
24891
24731
|
}
|
|
24892
24732
|
function _class_call_check$n(instance, Constructor) {
|
|
24893
|
-
if (!(instance instanceof Constructor))
|
|
24894
|
-
throw new TypeError("Cannot call a class as a function");
|
|
24895
|
-
}
|
|
24733
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
24896
24734
|
}
|
|
24897
24735
|
function _defineProperties$n(target, props) {
|
|
24898
24736
|
for(var i = 0; i < props.length; i++){
|
|
@@ -24908,16 +24746,13 @@ this.Scorm2004API = (function () {
|
|
|
24908
24746
|
return Constructor;
|
|
24909
24747
|
}
|
|
24910
24748
|
function _get$6(target, property, receiver) {
|
|
24911
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
24912
|
-
|
|
24913
|
-
} else {
|
|
24749
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get$6 = Reflect.get;
|
|
24750
|
+
else {
|
|
24914
24751
|
_get$6 = function get(target, property, receiver) {
|
|
24915
24752
|
var base = _super_prop_base$6(target, property);
|
|
24916
24753
|
if (!base) return;
|
|
24917
24754
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
24918
|
-
if (desc.get)
|
|
24919
|
-
return desc.get.call(receiver || target);
|
|
24920
|
-
}
|
|
24755
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
24921
24756
|
return desc.value;
|
|
24922
24757
|
};
|
|
24923
24758
|
}
|
|
@@ -24942,6 +24777,14 @@ this.Scorm2004API = (function () {
|
|
|
24942
24777
|
});
|
|
24943
24778
|
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
24944
24779
|
}
|
|
24780
|
+
function _is_native_reflect_construct$g() {
|
|
24781
|
+
try {
|
|
24782
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
24783
|
+
} catch (_) {}
|
|
24784
|
+
return (_is_native_reflect_construct$g = function() {
|
|
24785
|
+
return !!result;
|
|
24786
|
+
})();
|
|
24787
|
+
}
|
|
24945
24788
|
function _iterable_to_array_limit$3(arr, i) {
|
|
24946
24789
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24947
24790
|
if (_i == null) return;
|
|
@@ -24967,12 +24810,10 @@ this.Scorm2004API = (function () {
|
|
|
24967
24810
|
return _arr;
|
|
24968
24811
|
}
|
|
24969
24812
|
function _non_iterable_rest$3() {
|
|
24970
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
24813
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24971
24814
|
}
|
|
24972
24815
|
function _possible_constructor_return$g(self, call) {
|
|
24973
|
-
if (call && (_type_of$m(call) === "object" || typeof call === "function"))
|
|
24974
|
-
return call;
|
|
24975
|
-
}
|
|
24816
|
+
if (call && (_type_of$m(call) === "object" || typeof call === "function")) return call;
|
|
24976
24817
|
return _assert_this_initialized$g(self);
|
|
24977
24818
|
}
|
|
24978
24819
|
function _set_prototype_of$g(o, p) {
|
|
@@ -25004,14 +24845,6 @@ this.Scorm2004API = (function () {
|
|
|
25004
24845
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
25005
24846
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
25006
24847
|
}
|
|
25007
|
-
function _is_native_reflect_construct$g() {
|
|
25008
|
-
try {
|
|
25009
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
25010
|
-
} catch (_) {}
|
|
25011
|
-
return (_is_native_reflect_construct$g = function() {
|
|
25012
|
-
return !!result;
|
|
25013
|
-
})();
|
|
25014
|
-
}
|
|
25015
24848
|
var __defProp$m = Object.defineProperty;
|
|
25016
24849
|
var __defNormalProp$m = function __defNormalProp(obj, key, value) {
|
|
25017
24850
|
return key in obj ? __defProp$m(obj, key, {
|
|
@@ -25635,9 +25468,7 @@ this.Scorm2004API = (function () {
|
|
|
25635
25468
|
}(BaseCMI);
|
|
25636
25469
|
|
|
25637
25470
|
function _assert_this_initialized$f(self) {
|
|
25638
|
-
if (self === void 0)
|
|
25639
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25640
|
-
}
|
|
25471
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25641
25472
|
return self;
|
|
25642
25473
|
}
|
|
25643
25474
|
function _call_super$f(_this, derived, args) {
|
|
@@ -25645,9 +25476,7 @@ this.Scorm2004API = (function () {
|
|
|
25645
25476
|
return _possible_constructor_return$f(_this, _is_native_reflect_construct$f() ? Reflect.construct(derived, args || [], _get_prototype_of$f(_this).constructor) : derived.apply(_this, args));
|
|
25646
25477
|
}
|
|
25647
25478
|
function _class_call_check$m(instance, Constructor) {
|
|
25648
|
-
if (!(instance instanceof Constructor))
|
|
25649
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25650
|
-
}
|
|
25479
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
25651
25480
|
}
|
|
25652
25481
|
function _defineProperties$m(target, props) {
|
|
25653
25482
|
for(var i = 0; i < props.length; i++){
|
|
@@ -25681,10 +25510,16 @@ this.Scorm2004API = (function () {
|
|
|
25681
25510
|
});
|
|
25682
25511
|
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
25683
25512
|
}
|
|
25513
|
+
function _is_native_reflect_construct$f() {
|
|
25514
|
+
try {
|
|
25515
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
25516
|
+
} catch (_) {}
|
|
25517
|
+
return (_is_native_reflect_construct$f = function() {
|
|
25518
|
+
return !!result;
|
|
25519
|
+
})();
|
|
25520
|
+
}
|
|
25684
25521
|
function _possible_constructor_return$f(self, call) {
|
|
25685
|
-
if (call && (_type_of$l(call) === "object" || typeof call === "function"))
|
|
25686
|
-
return call;
|
|
25687
|
-
}
|
|
25522
|
+
if (call && (_type_of$l(call) === "object" || typeof call === "function")) return call;
|
|
25688
25523
|
return _assert_this_initialized$f(self);
|
|
25689
25524
|
}
|
|
25690
25525
|
function _set_prototype_of$f(o, p) {
|
|
@@ -25698,14 +25533,6 @@ this.Scorm2004API = (function () {
|
|
|
25698
25533
|
"@swc/helpers - typeof";
|
|
25699
25534
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
25700
25535
|
}
|
|
25701
|
-
function _is_native_reflect_construct$f() {
|
|
25702
|
-
try {
|
|
25703
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
25704
|
-
} catch (_) {}
|
|
25705
|
-
return (_is_native_reflect_construct$f = function() {
|
|
25706
|
-
return !!result;
|
|
25707
|
-
})();
|
|
25708
|
-
}
|
|
25709
25536
|
var __defProp$l = Object.defineProperty;
|
|
25710
25537
|
var __defNormalProp$l = function __defNormalProp(obj, key, value) {
|
|
25711
25538
|
return key in obj ? __defProp$l(obj, key, {
|
|
@@ -25883,9 +25710,7 @@ this.Scorm2004API = (function () {
|
|
|
25883
25710
|
}(BaseCMI);
|
|
25884
25711
|
|
|
25885
25712
|
function _assert_this_initialized$e(self) {
|
|
25886
|
-
if (self === void 0)
|
|
25887
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25888
|
-
}
|
|
25713
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25889
25714
|
return self;
|
|
25890
25715
|
}
|
|
25891
25716
|
function _call_super$e(_this, derived, args) {
|
|
@@ -25893,9 +25718,7 @@ this.Scorm2004API = (function () {
|
|
|
25893
25718
|
return _possible_constructor_return$e(_this, _is_native_reflect_construct$e() ? Reflect.construct(derived, args || [], _get_prototype_of$e(_this).constructor) : derived.apply(_this, args));
|
|
25894
25719
|
}
|
|
25895
25720
|
function _class_call_check$l(instance, Constructor) {
|
|
25896
|
-
if (!(instance instanceof Constructor))
|
|
25897
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25898
|
-
}
|
|
25721
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
25899
25722
|
}
|
|
25900
25723
|
function _defineProperties$l(target, props) {
|
|
25901
25724
|
for(var i = 0; i < props.length; i++){
|
|
@@ -25911,16 +25734,13 @@ this.Scorm2004API = (function () {
|
|
|
25911
25734
|
return Constructor;
|
|
25912
25735
|
}
|
|
25913
25736
|
function _get$5(target, property, receiver) {
|
|
25914
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
25915
|
-
|
|
25916
|
-
} else {
|
|
25737
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get$5 = Reflect.get;
|
|
25738
|
+
else {
|
|
25917
25739
|
_get$5 = function get(target, property, receiver) {
|
|
25918
25740
|
var base = _super_prop_base$5(target, property);
|
|
25919
25741
|
if (!base) return;
|
|
25920
25742
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
25921
|
-
if (desc.get)
|
|
25922
|
-
return desc.get.call(receiver || target);
|
|
25923
|
-
}
|
|
25743
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
25924
25744
|
return desc.value;
|
|
25925
25745
|
};
|
|
25926
25746
|
}
|
|
@@ -25945,10 +25765,16 @@ this.Scorm2004API = (function () {
|
|
|
25945
25765
|
});
|
|
25946
25766
|
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
25947
25767
|
}
|
|
25768
|
+
function _is_native_reflect_construct$e() {
|
|
25769
|
+
try {
|
|
25770
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
25771
|
+
} catch (_) {}
|
|
25772
|
+
return (_is_native_reflect_construct$e = function() {
|
|
25773
|
+
return !!result;
|
|
25774
|
+
})();
|
|
25775
|
+
}
|
|
25948
25776
|
function _possible_constructor_return$e(self, call) {
|
|
25949
|
-
if (call && (_type_of$k(call) === "object" || typeof call === "function"))
|
|
25950
|
-
return call;
|
|
25951
|
-
}
|
|
25777
|
+
if (call && (_type_of$k(call) === "object" || typeof call === "function")) return call;
|
|
25952
25778
|
return _assert_this_initialized$e(self);
|
|
25953
25779
|
}
|
|
25954
25780
|
function _set_prototype_of$e(o, p) {
|
|
@@ -25969,14 +25795,6 @@ this.Scorm2004API = (function () {
|
|
|
25969
25795
|
"@swc/helpers - typeof";
|
|
25970
25796
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
25971
25797
|
}
|
|
25972
|
-
function _is_native_reflect_construct$e() {
|
|
25973
|
-
try {
|
|
25974
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
25975
|
-
} catch (_) {}
|
|
25976
|
-
return (_is_native_reflect_construct$e = function() {
|
|
25977
|
-
return !!result;
|
|
25978
|
-
})();
|
|
25979
|
-
}
|
|
25980
25798
|
var __defProp$k = Object.defineProperty;
|
|
25981
25799
|
var __defNormalProp$k = function __defNormalProp(obj, key, value) {
|
|
25982
25800
|
return key in obj ? __defProp$k(obj, key, {
|
|
@@ -26079,9 +25897,7 @@ this.Scorm2004API = (function () {
|
|
|
26079
25897
|
}(CMIScore);
|
|
26080
25898
|
|
|
26081
25899
|
function _assert_this_initialized$d(self) {
|
|
26082
|
-
if (self === void 0)
|
|
26083
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26084
|
-
}
|
|
25900
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26085
25901
|
return self;
|
|
26086
25902
|
}
|
|
26087
25903
|
function _call_super$d(_this, derived, args) {
|
|
@@ -26089,9 +25905,7 @@ this.Scorm2004API = (function () {
|
|
|
26089
25905
|
return _possible_constructor_return$d(_this, _is_native_reflect_construct$d() ? Reflect.construct(derived, args || [], _get_prototype_of$d(_this).constructor) : derived.apply(_this, args));
|
|
26090
25906
|
}
|
|
26091
25907
|
function _class_call_check$k(instance, Constructor) {
|
|
26092
|
-
if (!(instance instanceof Constructor))
|
|
26093
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26094
|
-
}
|
|
25908
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
26095
25909
|
}
|
|
26096
25910
|
function _defineProperties$k(target, props) {
|
|
26097
25911
|
for(var i = 0; i < props.length; i++){
|
|
@@ -26125,10 +25939,16 @@ this.Scorm2004API = (function () {
|
|
|
26125
25939
|
});
|
|
26126
25940
|
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
26127
25941
|
}
|
|
25942
|
+
function _is_native_reflect_construct$d() {
|
|
25943
|
+
try {
|
|
25944
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
25945
|
+
} catch (_) {}
|
|
25946
|
+
return (_is_native_reflect_construct$d = function() {
|
|
25947
|
+
return !!result;
|
|
25948
|
+
})();
|
|
25949
|
+
}
|
|
26128
25950
|
function _possible_constructor_return$d(self, call) {
|
|
26129
|
-
if (call && (_type_of$j(call) === "object" || typeof call === "function"))
|
|
26130
|
-
return call;
|
|
26131
|
-
}
|
|
25951
|
+
if (call && (_type_of$j(call) === "object" || typeof call === "function")) return call;
|
|
26132
25952
|
return _assert_this_initialized$d(self);
|
|
26133
25953
|
}
|
|
26134
25954
|
function _set_prototype_of$d(o, p) {
|
|
@@ -26142,14 +25962,6 @@ this.Scorm2004API = (function () {
|
|
|
26142
25962
|
"@swc/helpers - typeof";
|
|
26143
25963
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
26144
25964
|
}
|
|
26145
|
-
function _is_native_reflect_construct$d() {
|
|
26146
|
-
try {
|
|
26147
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26148
|
-
} catch (_) {}
|
|
26149
|
-
return (_is_native_reflect_construct$d = function() {
|
|
26150
|
-
return !!result;
|
|
26151
|
-
})();
|
|
26152
|
-
}
|
|
26153
25965
|
var __defProp$j = Object.defineProperty;
|
|
26154
25966
|
var __defNormalProp$j = function __defNormalProp(obj, key, value) {
|
|
26155
25967
|
return key in obj ? __defProp$j(obj, key, {
|
|
@@ -26310,9 +26122,7 @@ this.Scorm2004API = (function () {
|
|
|
26310
26122
|
}(BaseCMI);
|
|
26311
26123
|
|
|
26312
26124
|
function _assert_this_initialized$c(self) {
|
|
26313
|
-
if (self === void 0)
|
|
26314
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26315
|
-
}
|
|
26125
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26316
26126
|
return self;
|
|
26317
26127
|
}
|
|
26318
26128
|
function _call_super$c(_this, derived, args) {
|
|
@@ -26320,9 +26130,7 @@ this.Scorm2004API = (function () {
|
|
|
26320
26130
|
return _possible_constructor_return$c(_this, _is_native_reflect_construct$c() ? Reflect.construct(derived, args || [], _get_prototype_of$c(_this).constructor) : derived.apply(_this, args));
|
|
26321
26131
|
}
|
|
26322
26132
|
function _class_call_check$j(instance, Constructor) {
|
|
26323
|
-
if (!(instance instanceof Constructor))
|
|
26324
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26325
|
-
}
|
|
26133
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
26326
26134
|
}
|
|
26327
26135
|
function _defineProperties$j(target, props) {
|
|
26328
26136
|
for(var i = 0; i < props.length; i++){
|
|
@@ -26338,16 +26146,13 @@ this.Scorm2004API = (function () {
|
|
|
26338
26146
|
return Constructor;
|
|
26339
26147
|
}
|
|
26340
26148
|
function _get$4(target, property, receiver) {
|
|
26341
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
26342
|
-
|
|
26343
|
-
} else {
|
|
26149
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get$4 = Reflect.get;
|
|
26150
|
+
else {
|
|
26344
26151
|
_get$4 = function get(target, property, receiver) {
|
|
26345
26152
|
var base = _super_prop_base$4(target, property);
|
|
26346
26153
|
if (!base) return;
|
|
26347
26154
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
26348
|
-
if (desc.get)
|
|
26349
|
-
return desc.get.call(receiver || target);
|
|
26350
|
-
}
|
|
26155
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
26351
26156
|
return desc.value;
|
|
26352
26157
|
};
|
|
26353
26158
|
}
|
|
@@ -26372,10 +26177,16 @@ this.Scorm2004API = (function () {
|
|
|
26372
26177
|
});
|
|
26373
26178
|
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
26374
26179
|
}
|
|
26180
|
+
function _is_native_reflect_construct$c() {
|
|
26181
|
+
try {
|
|
26182
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26183
|
+
} catch (_) {}
|
|
26184
|
+
return (_is_native_reflect_construct$c = function() {
|
|
26185
|
+
return !!result;
|
|
26186
|
+
})();
|
|
26187
|
+
}
|
|
26375
26188
|
function _possible_constructor_return$c(self, call) {
|
|
26376
|
-
if (call && (_type_of$i(call) === "object" || typeof call === "function"))
|
|
26377
|
-
return call;
|
|
26378
|
-
}
|
|
26189
|
+
if (call && (_type_of$i(call) === "object" || typeof call === "function")) return call;
|
|
26379
26190
|
return _assert_this_initialized$c(self);
|
|
26380
26191
|
}
|
|
26381
26192
|
function _set_prototype_of$c(o, p) {
|
|
@@ -26396,14 +26207,6 @@ this.Scorm2004API = (function () {
|
|
|
26396
26207
|
"@swc/helpers - typeof";
|
|
26397
26208
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
26398
26209
|
}
|
|
26399
|
-
function _is_native_reflect_construct$c() {
|
|
26400
|
-
try {
|
|
26401
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26402
|
-
} catch (_) {}
|
|
26403
|
-
return (_is_native_reflect_construct$c = function() {
|
|
26404
|
-
return !!result;
|
|
26405
|
-
})();
|
|
26406
|
-
}
|
|
26407
26210
|
var __defProp$i = Object.defineProperty;
|
|
26408
26211
|
var __defNormalProp$i = function __defNormalProp(obj, key, value) {
|
|
26409
26212
|
return key in obj ? __defProp$i(obj, key, {
|
|
@@ -26666,9 +26469,7 @@ this.Scorm2004API = (function () {
|
|
|
26666
26469
|
}(BaseCMI);
|
|
26667
26470
|
|
|
26668
26471
|
function _assert_this_initialized$b(self) {
|
|
26669
|
-
if (self === void 0)
|
|
26670
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26671
|
-
}
|
|
26472
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26672
26473
|
return self;
|
|
26673
26474
|
}
|
|
26674
26475
|
function _call_super$b(_this, derived, args) {
|
|
@@ -26676,9 +26477,7 @@ this.Scorm2004API = (function () {
|
|
|
26676
26477
|
return _possible_constructor_return$b(_this, _is_native_reflect_construct$b() ? Reflect.construct(derived, args || [], _get_prototype_of$b(_this).constructor) : derived.apply(_this, args));
|
|
26677
26478
|
}
|
|
26678
26479
|
function _class_call_check$i(instance, Constructor) {
|
|
26679
|
-
if (!(instance instanceof Constructor))
|
|
26680
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26681
|
-
}
|
|
26480
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
26682
26481
|
}
|
|
26683
26482
|
function _defineProperties$i(target, props) {
|
|
26684
26483
|
for(var i = 0; i < props.length; i++){
|
|
@@ -26712,10 +26511,16 @@ this.Scorm2004API = (function () {
|
|
|
26712
26511
|
});
|
|
26713
26512
|
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
26714
26513
|
}
|
|
26514
|
+
function _is_native_reflect_construct$b() {
|
|
26515
|
+
try {
|
|
26516
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26517
|
+
} catch (_) {}
|
|
26518
|
+
return (_is_native_reflect_construct$b = function() {
|
|
26519
|
+
return !!result;
|
|
26520
|
+
})();
|
|
26521
|
+
}
|
|
26715
26522
|
function _possible_constructor_return$b(self, call) {
|
|
26716
|
-
if (call && (_type_of$h(call) === "object" || typeof call === "function"))
|
|
26717
|
-
return call;
|
|
26718
|
-
}
|
|
26523
|
+
if (call && (_type_of$h(call) === "object" || typeof call === "function")) return call;
|
|
26719
26524
|
return _assert_this_initialized$b(self);
|
|
26720
26525
|
}
|
|
26721
26526
|
function _set_prototype_of$b(o, p) {
|
|
@@ -26729,14 +26534,6 @@ this.Scorm2004API = (function () {
|
|
|
26729
26534
|
"@swc/helpers - typeof";
|
|
26730
26535
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
26731
26536
|
}
|
|
26732
|
-
function _is_native_reflect_construct$b() {
|
|
26733
|
-
try {
|
|
26734
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26735
|
-
} catch (_) {}
|
|
26736
|
-
return (_is_native_reflect_construct$b = function() {
|
|
26737
|
-
return !!result;
|
|
26738
|
-
})();
|
|
26739
|
-
}
|
|
26740
26537
|
var __defProp$h = Object.defineProperty;
|
|
26741
26538
|
var __defNormalProp$h = function __defNormalProp(obj, key, value) {
|
|
26742
26539
|
return key in obj ? __defProp$h(obj, key, {
|
|
@@ -26805,9 +26602,7 @@ this.Scorm2004API = (function () {
|
|
|
26805
26602
|
}(BaseCMI);
|
|
26806
26603
|
|
|
26807
26604
|
function _assert_this_initialized$a(self) {
|
|
26808
|
-
if (self === void 0)
|
|
26809
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26810
|
-
}
|
|
26605
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26811
26606
|
return self;
|
|
26812
26607
|
}
|
|
26813
26608
|
function _call_super$a(_this, derived, args) {
|
|
@@ -26815,9 +26610,7 @@ this.Scorm2004API = (function () {
|
|
|
26815
26610
|
return _possible_constructor_return$a(_this, _is_native_reflect_construct$a() ? Reflect.construct(derived, args || [], _get_prototype_of$a(_this).constructor) : derived.apply(_this, args));
|
|
26816
26611
|
}
|
|
26817
26612
|
function _class_call_check$h(instance, Constructor) {
|
|
26818
|
-
if (!(instance instanceof Constructor))
|
|
26819
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26820
|
-
}
|
|
26613
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
26821
26614
|
}
|
|
26822
26615
|
function _defineProperties$h(target, props) {
|
|
26823
26616
|
for(var i = 0; i < props.length; i++){
|
|
@@ -26851,10 +26644,16 @@ this.Scorm2004API = (function () {
|
|
|
26851
26644
|
});
|
|
26852
26645
|
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
26853
26646
|
}
|
|
26647
|
+
function _is_native_reflect_construct$a() {
|
|
26648
|
+
try {
|
|
26649
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26650
|
+
} catch (_) {}
|
|
26651
|
+
return (_is_native_reflect_construct$a = function() {
|
|
26652
|
+
return !!result;
|
|
26653
|
+
})();
|
|
26654
|
+
}
|
|
26854
26655
|
function _possible_constructor_return$a(self, call) {
|
|
26855
|
-
if (call && (_type_of$g(call) === "object" || typeof call === "function"))
|
|
26856
|
-
return call;
|
|
26857
|
-
}
|
|
26656
|
+
if (call && (_type_of$g(call) === "object" || typeof call === "function")) return call;
|
|
26858
26657
|
return _assert_this_initialized$a(self);
|
|
26859
26658
|
}
|
|
26860
26659
|
function _set_prototype_of$a(o, p) {
|
|
@@ -26868,14 +26667,6 @@ this.Scorm2004API = (function () {
|
|
|
26868
26667
|
"@swc/helpers - typeof";
|
|
26869
26668
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
26870
26669
|
}
|
|
26871
|
-
function _is_native_reflect_construct$a() {
|
|
26872
|
-
try {
|
|
26873
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26874
|
-
} catch (_) {}
|
|
26875
|
-
return (_is_native_reflect_construct$a = function() {
|
|
26876
|
-
return !!result;
|
|
26877
|
-
})();
|
|
26878
|
-
}
|
|
26879
26670
|
var __defProp$g = Object.defineProperty;
|
|
26880
26671
|
var __defNormalProp$g = function __defNormalProp(obj, key, value) {
|
|
26881
26672
|
return key in obj ? __defProp$g(obj, key, {
|
|
@@ -26952,9 +26743,7 @@ this.Scorm2004API = (function () {
|
|
|
26952
26743
|
}(BaseCMI);
|
|
26953
26744
|
|
|
26954
26745
|
function _assert_this_initialized$9(self) {
|
|
26955
|
-
if (self === void 0)
|
|
26956
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26957
|
-
}
|
|
26746
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26958
26747
|
return self;
|
|
26959
26748
|
}
|
|
26960
26749
|
function _call_super$9(_this, derived, args) {
|
|
@@ -26962,9 +26751,7 @@ this.Scorm2004API = (function () {
|
|
|
26962
26751
|
return _possible_constructor_return$9(_this, _is_native_reflect_construct$9() ? Reflect.construct(derived, args || [], _get_prototype_of$9(_this).constructor) : derived.apply(_this, args));
|
|
26963
26752
|
}
|
|
26964
26753
|
function _class_call_check$g(instance, Constructor) {
|
|
26965
|
-
if (!(instance instanceof Constructor))
|
|
26966
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26967
|
-
}
|
|
26754
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
26968
26755
|
}
|
|
26969
26756
|
function _defineProperties$g(target, props) {
|
|
26970
26757
|
for(var i = 0; i < props.length; i++){
|
|
@@ -26998,10 +26785,16 @@ this.Scorm2004API = (function () {
|
|
|
26998
26785
|
});
|
|
26999
26786
|
if (superClass) _set_prototype_of$9(subClass, superClass);
|
|
27000
26787
|
}
|
|
26788
|
+
function _is_native_reflect_construct$9() {
|
|
26789
|
+
try {
|
|
26790
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26791
|
+
} catch (_) {}
|
|
26792
|
+
return (_is_native_reflect_construct$9 = function() {
|
|
26793
|
+
return !!result;
|
|
26794
|
+
})();
|
|
26795
|
+
}
|
|
27001
26796
|
function _possible_constructor_return$9(self, call) {
|
|
27002
|
-
if (call && (_type_of$f(call) === "object" || typeof call === "function"))
|
|
27003
|
-
return call;
|
|
27004
|
-
}
|
|
26797
|
+
if (call && (_type_of$f(call) === "object" || typeof call === "function")) return call;
|
|
27005
26798
|
return _assert_this_initialized$9(self);
|
|
27006
26799
|
}
|
|
27007
26800
|
function _set_prototype_of$9(o, p) {
|
|
@@ -27015,14 +26808,6 @@ this.Scorm2004API = (function () {
|
|
|
27015
26808
|
"@swc/helpers - typeof";
|
|
27016
26809
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27017
26810
|
}
|
|
27018
|
-
function _is_native_reflect_construct$9() {
|
|
27019
|
-
try {
|
|
27020
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27021
|
-
} catch (_) {}
|
|
27022
|
-
return (_is_native_reflect_construct$9 = function() {
|
|
27023
|
-
return !!result;
|
|
27024
|
-
})();
|
|
27025
|
-
}
|
|
27026
26811
|
var __defProp$f = Object.defineProperty;
|
|
27027
26812
|
var __defNormalProp$f = function __defNormalProp(obj, key, value) {
|
|
27028
26813
|
return key in obj ? __defProp$f(obj, key, {
|
|
@@ -27116,9 +26901,7 @@ this.Scorm2004API = (function () {
|
|
|
27116
26901
|
}(BaseCMI);
|
|
27117
26902
|
|
|
27118
26903
|
function _assert_this_initialized$8(self) {
|
|
27119
|
-
if (self === void 0)
|
|
27120
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27121
|
-
}
|
|
26904
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27122
26905
|
return self;
|
|
27123
26906
|
}
|
|
27124
26907
|
function _call_super$8(_this, derived, args) {
|
|
@@ -27126,9 +26909,7 @@ this.Scorm2004API = (function () {
|
|
|
27126
26909
|
return _possible_constructor_return$8(_this, _is_native_reflect_construct$8() ? Reflect.construct(derived, args || [], _get_prototype_of$8(_this).constructor) : derived.apply(_this, args));
|
|
27127
26910
|
}
|
|
27128
26911
|
function _class_call_check$f(instance, Constructor) {
|
|
27129
|
-
if (!(instance instanceof Constructor))
|
|
27130
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27131
|
-
}
|
|
26912
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
27132
26913
|
}
|
|
27133
26914
|
function _defineProperties$f(target, props) {
|
|
27134
26915
|
for(var i = 0; i < props.length; i++){
|
|
@@ -27162,10 +26943,16 @@ this.Scorm2004API = (function () {
|
|
|
27162
26943
|
});
|
|
27163
26944
|
if (superClass) _set_prototype_of$8(subClass, superClass);
|
|
27164
26945
|
}
|
|
26946
|
+
function _is_native_reflect_construct$8() {
|
|
26947
|
+
try {
|
|
26948
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
26949
|
+
} catch (_) {}
|
|
26950
|
+
return (_is_native_reflect_construct$8 = function() {
|
|
26951
|
+
return !!result;
|
|
26952
|
+
})();
|
|
26953
|
+
}
|
|
27165
26954
|
function _possible_constructor_return$8(self, call) {
|
|
27166
|
-
if (call && (_type_of$e(call) === "object" || typeof call === "function"))
|
|
27167
|
-
return call;
|
|
27168
|
-
}
|
|
26955
|
+
if (call && (_type_of$e(call) === "object" || typeof call === "function")) return call;
|
|
27169
26956
|
return _assert_this_initialized$8(self);
|
|
27170
26957
|
}
|
|
27171
26958
|
function _set_prototype_of$8(o, p) {
|
|
@@ -27179,14 +26966,6 @@ this.Scorm2004API = (function () {
|
|
|
27179
26966
|
"@swc/helpers - typeof";
|
|
27180
26967
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27181
26968
|
}
|
|
27182
|
-
function _is_native_reflect_construct$8() {
|
|
27183
|
-
try {
|
|
27184
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27185
|
-
} catch (_) {}
|
|
27186
|
-
return (_is_native_reflect_construct$8 = function() {
|
|
27187
|
-
return !!result;
|
|
27188
|
-
})();
|
|
27189
|
-
}
|
|
27190
26969
|
var __defProp$e = Object.defineProperty;
|
|
27191
26970
|
var __defNormalProp$e = function __defNormalProp(obj, key, value) {
|
|
27192
26971
|
return key in obj ? __defProp$e(obj, key, {
|
|
@@ -27315,7 +27094,7 @@ this.Scorm2004API = (function () {
|
|
|
27315
27094
|
value: function getCurrentTotalTime(start_time) {
|
|
27316
27095
|
var sessionTime = this._session_time;
|
|
27317
27096
|
if (typeof start_time !== "undefined") {
|
|
27318
|
-
var seconds = /* @__PURE__ */ new Date().getTime() - start_time;
|
|
27097
|
+
var seconds = (/* @__PURE__ */ new Date()).getTime() - start_time;
|
|
27319
27098
|
sessionTime = getSecondsAsISODuration(seconds / 1e3);
|
|
27320
27099
|
}
|
|
27321
27100
|
return addTwoDurations(this._total_time, sessionTime, scorm2004_regex.CMITimespan);
|
|
@@ -27344,9 +27123,7 @@ this.Scorm2004API = (function () {
|
|
|
27344
27123
|
}(BaseCMI);
|
|
27345
27124
|
|
|
27346
27125
|
function _assert_this_initialized$7(self) {
|
|
27347
|
-
if (self === void 0)
|
|
27348
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27349
|
-
}
|
|
27126
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27350
27127
|
return self;
|
|
27351
27128
|
}
|
|
27352
27129
|
function _call_super$7(_this, derived, args) {
|
|
@@ -27354,9 +27131,7 @@ this.Scorm2004API = (function () {
|
|
|
27354
27131
|
return _possible_constructor_return$7(_this, _is_native_reflect_construct$7() ? Reflect.construct(derived, args || [], _get_prototype_of$7(_this).constructor) : derived.apply(_this, args));
|
|
27355
27132
|
}
|
|
27356
27133
|
function _class_call_check$e(instance, Constructor) {
|
|
27357
|
-
if (!(instance instanceof Constructor))
|
|
27358
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27359
|
-
}
|
|
27134
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
27360
27135
|
}
|
|
27361
27136
|
function _defineProperties$e(target, props) {
|
|
27362
27137
|
for(var i = 0; i < props.length; i++){
|
|
@@ -27390,10 +27165,16 @@ this.Scorm2004API = (function () {
|
|
|
27390
27165
|
});
|
|
27391
27166
|
if (superClass) _set_prototype_of$7(subClass, superClass);
|
|
27392
27167
|
}
|
|
27168
|
+
function _is_native_reflect_construct$7() {
|
|
27169
|
+
try {
|
|
27170
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27171
|
+
} catch (_) {}
|
|
27172
|
+
return (_is_native_reflect_construct$7 = function() {
|
|
27173
|
+
return !!result;
|
|
27174
|
+
})();
|
|
27175
|
+
}
|
|
27393
27176
|
function _possible_constructor_return$7(self, call) {
|
|
27394
|
-
if (call && (_type_of$d(call) === "object" || typeof call === "function"))
|
|
27395
|
-
return call;
|
|
27396
|
-
}
|
|
27177
|
+
if (call && (_type_of$d(call) === "object" || typeof call === "function")) return call;
|
|
27397
27178
|
return _assert_this_initialized$7(self);
|
|
27398
27179
|
}
|
|
27399
27180
|
function _set_prototype_of$7(o, p) {
|
|
@@ -27407,14 +27188,6 @@ this.Scorm2004API = (function () {
|
|
|
27407
27188
|
"@swc/helpers - typeof";
|
|
27408
27189
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27409
27190
|
}
|
|
27410
|
-
function _is_native_reflect_construct$7() {
|
|
27411
|
-
try {
|
|
27412
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27413
|
-
} catch (_) {}
|
|
27414
|
-
return (_is_native_reflect_construct$7 = function() {
|
|
27415
|
-
return !!result;
|
|
27416
|
-
})();
|
|
27417
|
-
}
|
|
27418
27191
|
var __defProp$d = Object.defineProperty;
|
|
27419
27192
|
var __defNormalProp$d = function __defNormalProp(obj, key, value) {
|
|
27420
27193
|
return key in obj ? __defProp$d(obj, key, {
|
|
@@ -27509,9 +27282,7 @@ this.Scorm2004API = (function () {
|
|
|
27509
27282
|
}(BaseCMI);
|
|
27510
27283
|
|
|
27511
27284
|
function _assert_this_initialized$6(self) {
|
|
27512
|
-
if (self === void 0)
|
|
27513
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27514
|
-
}
|
|
27285
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27515
27286
|
return self;
|
|
27516
27287
|
}
|
|
27517
27288
|
function _call_super$6(_this, derived, args) {
|
|
@@ -27519,9 +27290,7 @@ this.Scorm2004API = (function () {
|
|
|
27519
27290
|
return _possible_constructor_return$6(_this, _is_native_reflect_construct$6() ? Reflect.construct(derived, args || [], _get_prototype_of$6(_this).constructor) : derived.apply(_this, args));
|
|
27520
27291
|
}
|
|
27521
27292
|
function _class_call_check$d(instance, Constructor) {
|
|
27522
|
-
if (!(instance instanceof Constructor))
|
|
27523
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27524
|
-
}
|
|
27293
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
27525
27294
|
}
|
|
27526
27295
|
function _defineProperties$d(target, props) {
|
|
27527
27296
|
for(var i = 0; i < props.length; i++){
|
|
@@ -27555,10 +27324,16 @@ this.Scorm2004API = (function () {
|
|
|
27555
27324
|
});
|
|
27556
27325
|
if (superClass) _set_prototype_of$6(subClass, superClass);
|
|
27557
27326
|
}
|
|
27327
|
+
function _is_native_reflect_construct$6() {
|
|
27328
|
+
try {
|
|
27329
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27330
|
+
} catch (_) {}
|
|
27331
|
+
return (_is_native_reflect_construct$6 = function() {
|
|
27332
|
+
return !!result;
|
|
27333
|
+
})();
|
|
27334
|
+
}
|
|
27558
27335
|
function _possible_constructor_return$6(self, call) {
|
|
27559
|
-
if (call && (_type_of$c(call) === "object" || typeof call === "function"))
|
|
27560
|
-
return call;
|
|
27561
|
-
}
|
|
27336
|
+
if (call && (_type_of$c(call) === "object" || typeof call === "function")) return call;
|
|
27562
27337
|
return _assert_this_initialized$6(self);
|
|
27563
27338
|
}
|
|
27564
27339
|
function _set_prototype_of$6(o, p) {
|
|
@@ -27572,14 +27347,6 @@ this.Scorm2004API = (function () {
|
|
|
27572
27347
|
"@swc/helpers - typeof";
|
|
27573
27348
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27574
27349
|
}
|
|
27575
|
-
function _is_native_reflect_construct$6() {
|
|
27576
|
-
try {
|
|
27577
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27578
|
-
} catch (_) {}
|
|
27579
|
-
return (_is_native_reflect_construct$6 = function() {
|
|
27580
|
-
return !!result;
|
|
27581
|
-
})();
|
|
27582
|
-
}
|
|
27583
27350
|
var __defProp$c = Object.defineProperty;
|
|
27584
27351
|
var __defNormalProp$c = function __defNormalProp(obj, key, value) {
|
|
27585
27352
|
return key in obj ? __defProp$c(obj, key, {
|
|
@@ -27709,9 +27476,7 @@ this.Scorm2004API = (function () {
|
|
|
27709
27476
|
}(BaseCMI);
|
|
27710
27477
|
|
|
27711
27478
|
function _assert_this_initialized$5(self) {
|
|
27712
|
-
if (self === void 0)
|
|
27713
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27714
|
-
}
|
|
27479
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27715
27480
|
return self;
|
|
27716
27481
|
}
|
|
27717
27482
|
function _call_super$5(_this, derived, args) {
|
|
@@ -27719,9 +27484,7 @@ this.Scorm2004API = (function () {
|
|
|
27719
27484
|
return _possible_constructor_return$5(_this, _is_native_reflect_construct$5() ? Reflect.construct(derived, args || [], _get_prototype_of$5(_this).constructor) : derived.apply(_this, args));
|
|
27720
27485
|
}
|
|
27721
27486
|
function _class_call_check$c(instance, Constructor) {
|
|
27722
|
-
if (!(instance instanceof Constructor))
|
|
27723
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27724
|
-
}
|
|
27487
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
27725
27488
|
}
|
|
27726
27489
|
function _defineProperties$c(target, props) {
|
|
27727
27490
|
for(var i = 0; i < props.length; i++){
|
|
@@ -27755,10 +27518,16 @@ this.Scorm2004API = (function () {
|
|
|
27755
27518
|
});
|
|
27756
27519
|
if (superClass) _set_prototype_of$5(subClass, superClass);
|
|
27757
27520
|
}
|
|
27521
|
+
function _is_native_reflect_construct$5() {
|
|
27522
|
+
try {
|
|
27523
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27524
|
+
} catch (_) {}
|
|
27525
|
+
return (_is_native_reflect_construct$5 = function() {
|
|
27526
|
+
return !!result;
|
|
27527
|
+
})();
|
|
27528
|
+
}
|
|
27758
27529
|
function _possible_constructor_return$5(self, call) {
|
|
27759
|
-
if (call && (_type_of$b(call) === "object" || typeof call === "function"))
|
|
27760
|
-
return call;
|
|
27761
|
-
}
|
|
27530
|
+
if (call && (_type_of$b(call) === "object" || typeof call === "function")) return call;
|
|
27762
27531
|
return _assert_this_initialized$5(self);
|
|
27763
27532
|
}
|
|
27764
27533
|
function _set_prototype_of$5(o, p) {
|
|
@@ -27772,14 +27541,6 @@ this.Scorm2004API = (function () {
|
|
|
27772
27541
|
"@swc/helpers - typeof";
|
|
27773
27542
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27774
27543
|
}
|
|
27775
|
-
function _is_native_reflect_construct$5() {
|
|
27776
|
-
try {
|
|
27777
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27778
|
-
} catch (_) {}
|
|
27779
|
-
return (_is_native_reflect_construct$5 = function() {
|
|
27780
|
-
return !!result;
|
|
27781
|
-
})();
|
|
27782
|
-
}
|
|
27783
27544
|
var __defProp$b = Object.defineProperty;
|
|
27784
27545
|
var __defNormalProp$b = function __defNormalProp(obj, key, value) {
|
|
27785
27546
|
return key in obj ? __defProp$b(obj, key, {
|
|
@@ -27884,9 +27645,7 @@ this.Scorm2004API = (function () {
|
|
|
27884
27645
|
}(BaseCMI);
|
|
27885
27646
|
|
|
27886
27647
|
function _assert_this_initialized$4(self) {
|
|
27887
|
-
if (self === void 0)
|
|
27888
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27889
|
-
}
|
|
27648
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27890
27649
|
return self;
|
|
27891
27650
|
}
|
|
27892
27651
|
function _call_super$4(_this, derived, args) {
|
|
@@ -27894,9 +27653,7 @@ this.Scorm2004API = (function () {
|
|
|
27894
27653
|
return _possible_constructor_return$4(_this, _is_native_reflect_construct$4() ? Reflect.construct(derived, args || [], _get_prototype_of$4(_this).constructor) : derived.apply(_this, args));
|
|
27895
27654
|
}
|
|
27896
27655
|
function _class_call_check$b(instance, Constructor) {
|
|
27897
|
-
if (!(instance instanceof Constructor))
|
|
27898
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27899
|
-
}
|
|
27656
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
27900
27657
|
}
|
|
27901
27658
|
function _defineProperties$b(target, props) {
|
|
27902
27659
|
for(var i = 0; i < props.length; i++){
|
|
@@ -27912,16 +27669,13 @@ this.Scorm2004API = (function () {
|
|
|
27912
27669
|
return Constructor;
|
|
27913
27670
|
}
|
|
27914
27671
|
function _get$3(target, property, receiver) {
|
|
27915
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
27916
|
-
|
|
27917
|
-
} else {
|
|
27672
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get$3 = Reflect.get;
|
|
27673
|
+
else {
|
|
27918
27674
|
_get$3 = function get(target, property, receiver) {
|
|
27919
27675
|
var base = _super_prop_base$3(target, property);
|
|
27920
27676
|
if (!base) return;
|
|
27921
27677
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
27922
|
-
if (desc.get)
|
|
27923
|
-
return desc.get.call(receiver || target);
|
|
27924
|
-
}
|
|
27678
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
27925
27679
|
return desc.value;
|
|
27926
27680
|
};
|
|
27927
27681
|
}
|
|
@@ -27946,10 +27700,16 @@ this.Scorm2004API = (function () {
|
|
|
27946
27700
|
});
|
|
27947
27701
|
if (superClass) _set_prototype_of$4(subClass, superClass);
|
|
27948
27702
|
}
|
|
27703
|
+
function _is_native_reflect_construct$4() {
|
|
27704
|
+
try {
|
|
27705
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27706
|
+
} catch (_) {}
|
|
27707
|
+
return (_is_native_reflect_construct$4 = function() {
|
|
27708
|
+
return !!result;
|
|
27709
|
+
})();
|
|
27710
|
+
}
|
|
27949
27711
|
function _possible_constructor_return$4(self, call) {
|
|
27950
|
-
if (call && (_type_of$a(call) === "object" || typeof call === "function"))
|
|
27951
|
-
return call;
|
|
27952
|
-
}
|
|
27712
|
+
if (call && (_type_of$a(call) === "object" || typeof call === "function")) return call;
|
|
27953
27713
|
return _assert_this_initialized$4(self);
|
|
27954
27714
|
}
|
|
27955
27715
|
function _set_prototype_of$4(o, p) {
|
|
@@ -27970,14 +27730,6 @@ this.Scorm2004API = (function () {
|
|
|
27970
27730
|
"@swc/helpers - typeof";
|
|
27971
27731
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27972
27732
|
}
|
|
27973
|
-
function _is_native_reflect_construct$4() {
|
|
27974
|
-
try {
|
|
27975
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
27976
|
-
} catch (_) {}
|
|
27977
|
-
return (_is_native_reflect_construct$4 = function() {
|
|
27978
|
-
return !!result;
|
|
27979
|
-
})();
|
|
27980
|
-
}
|
|
27981
27733
|
var __defProp$a = Object.defineProperty;
|
|
27982
27734
|
var __defNormalProp$a = function __defNormalProp(obj, key, value) {
|
|
27983
27735
|
return key in obj ? __defProp$a(obj, key, {
|
|
@@ -28505,9 +28257,7 @@ this.Scorm2004API = (function () {
|
|
|
28505
28257
|
}(BaseRootCMI);
|
|
28506
28258
|
|
|
28507
28259
|
function _assert_this_initialized$3(self) {
|
|
28508
|
-
if (self === void 0)
|
|
28509
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
28510
|
-
}
|
|
28260
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
28511
28261
|
return self;
|
|
28512
28262
|
}
|
|
28513
28263
|
function _call_super$3(_this, derived, args) {
|
|
@@ -28515,9 +28265,7 @@ this.Scorm2004API = (function () {
|
|
|
28515
28265
|
return _possible_constructor_return$3(_this, _is_native_reflect_construct$3() ? Reflect.construct(derived, args || [], _get_prototype_of$3(_this).constructor) : derived.apply(_this, args));
|
|
28516
28266
|
}
|
|
28517
28267
|
function _class_call_check$a(instance, Constructor) {
|
|
28518
|
-
if (!(instance instanceof Constructor))
|
|
28519
|
-
throw new TypeError("Cannot call a class as a function");
|
|
28520
|
-
}
|
|
28268
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
28521
28269
|
}
|
|
28522
28270
|
function _defineProperties$a(target, props) {
|
|
28523
28271
|
for(var i = 0; i < props.length; i++){
|
|
@@ -28540,22 +28288,17 @@ this.Scorm2004API = (function () {
|
|
|
28540
28288
|
configurable: true,
|
|
28541
28289
|
writable: true
|
|
28542
28290
|
});
|
|
28543
|
-
} else
|
|
28544
|
-
obj[key] = value;
|
|
28545
|
-
}
|
|
28291
|
+
} else obj[key] = value;
|
|
28546
28292
|
return obj;
|
|
28547
28293
|
}
|
|
28548
28294
|
function _get$2(target, property, receiver) {
|
|
28549
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
28550
|
-
|
|
28551
|
-
} else {
|
|
28295
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get$2 = Reflect.get;
|
|
28296
|
+
else {
|
|
28552
28297
|
_get$2 = function get(target, property, receiver) {
|
|
28553
28298
|
var base = _super_prop_base$2(target, property);
|
|
28554
28299
|
if (!base) return;
|
|
28555
28300
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
28556
|
-
if (desc.get)
|
|
28557
|
-
return desc.get.call(receiver || target);
|
|
28558
|
-
}
|
|
28301
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
28559
28302
|
return desc.value;
|
|
28560
28303
|
};
|
|
28561
28304
|
}
|
|
@@ -28580,6 +28323,14 @@ this.Scorm2004API = (function () {
|
|
|
28580
28323
|
});
|
|
28581
28324
|
if (superClass) _set_prototype_of$3(subClass, superClass);
|
|
28582
28325
|
}
|
|
28326
|
+
function _is_native_reflect_construct$3() {
|
|
28327
|
+
try {
|
|
28328
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
28329
|
+
} catch (_) {}
|
|
28330
|
+
return (_is_native_reflect_construct$3 = function() {
|
|
28331
|
+
return !!result;
|
|
28332
|
+
})();
|
|
28333
|
+
}
|
|
28583
28334
|
function _object_spread$5(target) {
|
|
28584
28335
|
for(var i = 1; i < arguments.length; i++){
|
|
28585
28336
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -28596,9 +28347,7 @@ this.Scorm2004API = (function () {
|
|
|
28596
28347
|
return target;
|
|
28597
28348
|
}
|
|
28598
28349
|
function _possible_constructor_return$3(self, call) {
|
|
28599
|
-
if (call && (_type_of$9(call) === "object" || typeof call === "function"))
|
|
28600
|
-
return call;
|
|
28601
|
-
}
|
|
28350
|
+
if (call && (_type_of$9(call) === "object" || typeof call === "function")) return call;
|
|
28602
28351
|
return _assert_this_initialized$3(self);
|
|
28603
28352
|
}
|
|
28604
28353
|
function _set_prototype_of$3(o, p) {
|
|
@@ -28619,14 +28368,6 @@ this.Scorm2004API = (function () {
|
|
|
28619
28368
|
"@swc/helpers - typeof";
|
|
28620
28369
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
28621
28370
|
}
|
|
28622
|
-
function _is_native_reflect_construct$3() {
|
|
28623
|
-
try {
|
|
28624
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
28625
|
-
} catch (_) {}
|
|
28626
|
-
return (_is_native_reflect_construct$3 = function() {
|
|
28627
|
-
return !!result;
|
|
28628
|
-
})();
|
|
28629
|
-
}
|
|
28630
28371
|
var __defProp$9 = Object.defineProperty;
|
|
28631
28372
|
var __defNormalProp$9 = function __defNormalProp(obj, key, value) {
|
|
28632
28373
|
return key in obj ? __defProp$9(obj, key, {
|
|
@@ -29349,9 +29090,7 @@ this.Scorm2004API = (function () {
|
|
|
29349
29090
|
}(BaseCMI);
|
|
29350
29091
|
|
|
29351
29092
|
function _assert_this_initialized$2(self) {
|
|
29352
|
-
if (self === void 0)
|
|
29353
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
29354
|
-
}
|
|
29093
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
29355
29094
|
return self;
|
|
29356
29095
|
}
|
|
29357
29096
|
function _call_super$2(_this, derived, args) {
|
|
@@ -29359,9 +29098,7 @@ this.Scorm2004API = (function () {
|
|
|
29359
29098
|
return _possible_constructor_return$2(_this, _is_native_reflect_construct$2() ? Reflect.construct(derived, args || [], _get_prototype_of$2(_this).constructor) : derived.apply(_this, args));
|
|
29360
29099
|
}
|
|
29361
29100
|
function _class_call_check$9(instance, Constructor) {
|
|
29362
|
-
if (!(instance instanceof Constructor))
|
|
29363
|
-
throw new TypeError("Cannot call a class as a function");
|
|
29364
|
-
}
|
|
29101
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
29365
29102
|
}
|
|
29366
29103
|
function _defineProperties$9(target, props) {
|
|
29367
29104
|
for(var i = 0; i < props.length; i++){
|
|
@@ -29377,16 +29114,13 @@ this.Scorm2004API = (function () {
|
|
|
29377
29114
|
return Constructor;
|
|
29378
29115
|
}
|
|
29379
29116
|
function _get$1(target, property, receiver) {
|
|
29380
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
29381
|
-
|
|
29382
|
-
} else {
|
|
29117
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get$1 = Reflect.get;
|
|
29118
|
+
else {
|
|
29383
29119
|
_get$1 = function get(target, property, receiver) {
|
|
29384
29120
|
var base = _super_prop_base$1(target, property);
|
|
29385
29121
|
if (!base) return;
|
|
29386
29122
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
29387
|
-
if (desc.get)
|
|
29388
|
-
return desc.get.call(receiver || target);
|
|
29389
|
-
}
|
|
29123
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
29390
29124
|
return desc.value;
|
|
29391
29125
|
};
|
|
29392
29126
|
}
|
|
@@ -29415,14 +29149,18 @@ this.Scorm2004API = (function () {
|
|
|
29415
29149
|
"@swc/helpers - instanceof";
|
|
29416
29150
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
29417
29151
|
return !!right[Symbol.hasInstance](left);
|
|
29418
|
-
} else
|
|
29419
|
-
|
|
29420
|
-
|
|
29152
|
+
} else return left instanceof right;
|
|
29153
|
+
}
|
|
29154
|
+
function _is_native_reflect_construct$2() {
|
|
29155
|
+
try {
|
|
29156
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
29157
|
+
} catch (_) {}
|
|
29158
|
+
return (_is_native_reflect_construct$2 = function() {
|
|
29159
|
+
return !!result;
|
|
29160
|
+
})();
|
|
29421
29161
|
}
|
|
29422
29162
|
function _possible_constructor_return$2(self, call) {
|
|
29423
|
-
if (call && (_type_of$8(call) === "object" || typeof call === "function"))
|
|
29424
|
-
return call;
|
|
29425
|
-
}
|
|
29163
|
+
if (call && (_type_of$8(call) === "object" || typeof call === "function")) return call;
|
|
29426
29164
|
return _assert_this_initialized$2(self);
|
|
29427
29165
|
}
|
|
29428
29166
|
function _set_prototype_of$2(o, p) {
|
|
@@ -29443,14 +29181,6 @@ this.Scorm2004API = (function () {
|
|
|
29443
29181
|
"@swc/helpers - typeof";
|
|
29444
29182
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
29445
29183
|
}
|
|
29446
|
-
function _is_native_reflect_construct$2() {
|
|
29447
|
-
try {
|
|
29448
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
29449
|
-
} catch (_) {}
|
|
29450
|
-
return (_is_native_reflect_construct$2 = function() {
|
|
29451
|
-
return !!result;
|
|
29452
|
-
})();
|
|
29453
|
-
}
|
|
29454
29184
|
var __defProp$8 = Object.defineProperty;
|
|
29455
29185
|
var __defNormalProp$8 = function __defNormalProp(obj, key, value) {
|
|
29456
29186
|
return key in obj ? __defProp$8(obj, key, {
|
|
@@ -29857,9 +29587,7 @@ this.Scorm2004API = (function () {
|
|
|
29857
29587
|
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
29858
29588
|
}
|
|
29859
29589
|
function _assert_this_initialized$1(self) {
|
|
29860
|
-
if (self === void 0)
|
|
29861
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
29862
|
-
}
|
|
29590
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
29863
29591
|
return self;
|
|
29864
29592
|
}
|
|
29865
29593
|
function _call_super$1(_this, derived, args) {
|
|
@@ -29867,9 +29595,7 @@ this.Scorm2004API = (function () {
|
|
|
29867
29595
|
return _possible_constructor_return$1(_this, _is_native_reflect_construct$1() ? Reflect.construct(derived, args || [], _get_prototype_of$1(_this).constructor) : derived.apply(_this, args));
|
|
29868
29596
|
}
|
|
29869
29597
|
function _class_call_check$8(instance, Constructor) {
|
|
29870
|
-
if (!(instance instanceof Constructor))
|
|
29871
|
-
throw new TypeError("Cannot call a class as a function");
|
|
29872
|
-
}
|
|
29598
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
29873
29599
|
}
|
|
29874
29600
|
function _defineProperties$8(target, props) {
|
|
29875
29601
|
for(var i = 0; i < props.length; i++){
|
|
@@ -29892,22 +29618,17 @@ this.Scorm2004API = (function () {
|
|
|
29892
29618
|
configurable: true,
|
|
29893
29619
|
writable: true
|
|
29894
29620
|
});
|
|
29895
|
-
} else
|
|
29896
|
-
obj[key] = value;
|
|
29897
|
-
}
|
|
29621
|
+
} else obj[key] = value;
|
|
29898
29622
|
return obj;
|
|
29899
29623
|
}
|
|
29900
29624
|
function _get(target, property, receiver) {
|
|
29901
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
29902
|
-
|
|
29903
|
-
} else {
|
|
29625
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
|
|
29626
|
+
else {
|
|
29904
29627
|
_get = function get(target, property, receiver) {
|
|
29905
29628
|
var base = _super_prop_base(target, property);
|
|
29906
29629
|
if (!base) return;
|
|
29907
29630
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
29908
|
-
if (desc.get)
|
|
29909
|
-
return desc.get.call(receiver || target);
|
|
29910
|
-
}
|
|
29631
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
29911
29632
|
return desc.value;
|
|
29912
29633
|
};
|
|
29913
29634
|
}
|
|
@@ -29936,15 +29657,23 @@ this.Scorm2004API = (function () {
|
|
|
29936
29657
|
"@swc/helpers - instanceof";
|
|
29937
29658
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
29938
29659
|
return !!right[Symbol.hasInstance](left);
|
|
29939
|
-
} else
|
|
29940
|
-
|
|
29941
|
-
|
|
29660
|
+
} else return left instanceof right;
|
|
29661
|
+
}
|
|
29662
|
+
function _is_native_reflect_construct$1() {
|
|
29663
|
+
try {
|
|
29664
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
29665
|
+
} catch (_) {}
|
|
29666
|
+
return (_is_native_reflect_construct$1 = function() {
|
|
29667
|
+
return !!result;
|
|
29668
|
+
})();
|
|
29942
29669
|
}
|
|
29943
29670
|
function _iterable_to_array$3(iter) {
|
|
29944
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
29671
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
29672
|
+
return Array.from(iter);
|
|
29673
|
+
}
|
|
29945
29674
|
}
|
|
29946
29675
|
function _non_iterable_spread$3() {
|
|
29947
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
29676
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
29948
29677
|
}
|
|
29949
29678
|
function _object_spread$4(target) {
|
|
29950
29679
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -29962,9 +29691,7 @@ this.Scorm2004API = (function () {
|
|
|
29962
29691
|
return target;
|
|
29963
29692
|
}
|
|
29964
29693
|
function _possible_constructor_return$1(self, call) {
|
|
29965
|
-
if (call && (_type_of$7(call) === "object" || typeof call === "function"))
|
|
29966
|
-
return call;
|
|
29967
|
-
}
|
|
29694
|
+
if (call && (_type_of$7(call) === "object" || typeof call === "function")) return call;
|
|
29968
29695
|
return _assert_this_initialized$1(self);
|
|
29969
29696
|
}
|
|
29970
29697
|
function _set_prototype_of$1(o, p) {
|
|
@@ -29996,14 +29723,6 @@ this.Scorm2004API = (function () {
|
|
|
29996
29723
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
29997
29724
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
29998
29725
|
}
|
|
29999
|
-
function _is_native_reflect_construct$1() {
|
|
30000
|
-
try {
|
|
30001
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
30002
|
-
} catch (_) {}
|
|
30003
|
-
return (_is_native_reflect_construct$1 = function() {
|
|
30004
|
-
return !!result;
|
|
30005
|
-
})();
|
|
30006
|
-
}
|
|
30007
29726
|
var __defProp$7 = Object.defineProperty;
|
|
30008
29727
|
var __defNormalProp$7 = function __defNormalProp(obj, key, value) {
|
|
30009
29728
|
return key in obj ? __defProp$7(obj, key, {
|
|
@@ -30272,9 +29991,7 @@ this.Scorm2004API = (function () {
|
|
|
30272
29991
|
}(BaseCMI);
|
|
30273
29992
|
|
|
30274
29993
|
function _class_call_check$7(instance, Constructor) {
|
|
30275
|
-
if (!(instance instanceof Constructor))
|
|
30276
|
-
throw new TypeError("Cannot call a class as a function");
|
|
30277
|
-
}
|
|
29994
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
30278
29995
|
}
|
|
30279
29996
|
function _defineProperties$7(target, props) {
|
|
30280
29997
|
for(var i = 0; i < props.length; i++){
|
|
@@ -30531,9 +30248,7 @@ this.Scorm2004API = (function () {
|
|
|
30531
30248
|
}();
|
|
30532
30249
|
|
|
30533
30250
|
function _class_call_check$6(instance, Constructor) {
|
|
30534
|
-
if (!(instance instanceof Constructor))
|
|
30535
|
-
throw new TypeError("Cannot call a class as a function");
|
|
30536
|
-
}
|
|
30251
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
30537
30252
|
}
|
|
30538
30253
|
function _defineProperties$6(target, props) {
|
|
30539
30254
|
for(var i = 0; i < props.length; i++){
|
|
@@ -30717,9 +30432,7 @@ this.Scorm2004API = (function () {
|
|
|
30717
30432
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
30718
30433
|
}
|
|
30719
30434
|
function _class_call_check$5(instance, Constructor) {
|
|
30720
|
-
if (!(instance instanceof Constructor))
|
|
30721
|
-
throw new TypeError("Cannot call a class as a function");
|
|
30722
|
-
}
|
|
30435
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
30723
30436
|
}
|
|
30724
30437
|
function _defineProperties$5(target, props) {
|
|
30725
30438
|
for(var i = 0; i < props.length; i++){
|
|
@@ -30742,13 +30455,13 @@ this.Scorm2004API = (function () {
|
|
|
30742
30455
|
configurable: true,
|
|
30743
30456
|
writable: true
|
|
30744
30457
|
});
|
|
30745
|
-
} else
|
|
30746
|
-
obj[key] = value;
|
|
30747
|
-
}
|
|
30458
|
+
} else obj[key] = value;
|
|
30748
30459
|
return obj;
|
|
30749
30460
|
}
|
|
30750
30461
|
function _iterable_to_array$2(iter) {
|
|
30751
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
30462
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
30463
|
+
return Array.from(iter);
|
|
30464
|
+
}
|
|
30752
30465
|
}
|
|
30753
30466
|
function _iterable_to_array_limit$2(arr, i) {
|
|
30754
30467
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -30775,10 +30488,10 @@ this.Scorm2004API = (function () {
|
|
|
30775
30488
|
return _arr;
|
|
30776
30489
|
}
|
|
30777
30490
|
function _non_iterable_rest$2() {
|
|
30778
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
30491
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
30779
30492
|
}
|
|
30780
30493
|
function _non_iterable_spread$2() {
|
|
30781
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
30494
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
30782
30495
|
}
|
|
30783
30496
|
function _object_spread$3(target) {
|
|
30784
30497
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -31554,9 +31267,7 @@ this.Scorm2004API = (function () {
|
|
|
31554
31267
|
if (Array.isArray(arr)) return _array_like_to_array$3(arr);
|
|
31555
31268
|
}
|
|
31556
31269
|
function _class_call_check$4(instance, Constructor) {
|
|
31557
|
-
if (!(instance instanceof Constructor))
|
|
31558
|
-
throw new TypeError("Cannot call a class as a function");
|
|
31559
|
-
}
|
|
31270
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
31560
31271
|
}
|
|
31561
31272
|
function _defineProperties$4(target, props) {
|
|
31562
31273
|
for(var i = 0; i < props.length; i++){
|
|
@@ -31572,10 +31283,12 @@ this.Scorm2004API = (function () {
|
|
|
31572
31283
|
return Constructor;
|
|
31573
31284
|
}
|
|
31574
31285
|
function _iterable_to_array$1(iter) {
|
|
31575
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
31286
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
31287
|
+
return Array.from(iter);
|
|
31288
|
+
}
|
|
31576
31289
|
}
|
|
31577
31290
|
function _non_iterable_spread$1() {
|
|
31578
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
31291
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
31579
31292
|
}
|
|
31580
31293
|
function _to_consumable_array$1(arr) {
|
|
31581
31294
|
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread$1();
|
|
@@ -31906,9 +31619,7 @@ this.Scorm2004API = (function () {
|
|
|
31906
31619
|
if (Array.isArray(arr)) return arr;
|
|
31907
31620
|
}
|
|
31908
31621
|
function _class_call_check$3(instance, Constructor) {
|
|
31909
|
-
if (!(instance instanceof Constructor))
|
|
31910
|
-
throw new TypeError("Cannot call a class as a function");
|
|
31911
|
-
}
|
|
31622
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
31912
31623
|
}
|
|
31913
31624
|
function _defineProperties$3(target, props) {
|
|
31914
31625
|
for(var i = 0; i < props.length; i++){
|
|
@@ -31931,9 +31642,7 @@ this.Scorm2004API = (function () {
|
|
|
31931
31642
|
configurable: true,
|
|
31932
31643
|
writable: true
|
|
31933
31644
|
});
|
|
31934
|
-
} else
|
|
31935
|
-
obj[key] = value;
|
|
31936
|
-
}
|
|
31645
|
+
} else obj[key] = value;
|
|
31937
31646
|
return obj;
|
|
31938
31647
|
}
|
|
31939
31648
|
function _iterable_to_array_limit$1(arr, i) {
|
|
@@ -31961,7 +31670,7 @@ this.Scorm2004API = (function () {
|
|
|
31961
31670
|
return _arr;
|
|
31962
31671
|
}
|
|
31963
31672
|
function _non_iterable_rest$1() {
|
|
31964
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
31673
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
31965
31674
|
}
|
|
31966
31675
|
function _object_spread$2(target) {
|
|
31967
31676
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -32555,11 +32264,8 @@ this.Scorm2004API = (function () {
|
|
|
32555
32264
|
reject(error);
|
|
32556
32265
|
return;
|
|
32557
32266
|
}
|
|
32558
|
-
if (info.done)
|
|
32559
|
-
|
|
32560
|
-
} else {
|
|
32561
|
-
Promise.resolve(value).then(_next, _throw);
|
|
32562
|
-
}
|
|
32267
|
+
if (info.done) resolve(value);
|
|
32268
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
32563
32269
|
}
|
|
32564
32270
|
function _async_to_generator$1(fn) {
|
|
32565
32271
|
return function() {
|
|
@@ -32577,9 +32283,7 @@ this.Scorm2004API = (function () {
|
|
|
32577
32283
|
};
|
|
32578
32284
|
}
|
|
32579
32285
|
function _class_call_check$2(instance, Constructor) {
|
|
32580
|
-
if (!(instance instanceof Constructor))
|
|
32581
|
-
throw new TypeError("Cannot call a class as a function");
|
|
32582
|
-
}
|
|
32286
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
32583
32287
|
}
|
|
32584
32288
|
function _defineProperties$2(target, props) {
|
|
32585
32289
|
for(var i = 0; i < props.length; i++){
|
|
@@ -32602,18 +32306,14 @@ this.Scorm2004API = (function () {
|
|
|
32602
32306
|
configurable: true,
|
|
32603
32307
|
writable: true
|
|
32604
32308
|
});
|
|
32605
|
-
} else
|
|
32606
|
-
obj[key] = value;
|
|
32607
|
-
}
|
|
32309
|
+
} else obj[key] = value;
|
|
32608
32310
|
return obj;
|
|
32609
32311
|
}
|
|
32610
32312
|
function _instanceof$1(left, right) {
|
|
32611
32313
|
"@swc/helpers - instanceof";
|
|
32612
32314
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
32613
32315
|
return !!right[Symbol.hasInstance](left);
|
|
32614
|
-
} else
|
|
32615
|
-
return left instanceof right;
|
|
32616
|
-
}
|
|
32316
|
+
} else return left instanceof right;
|
|
32617
32317
|
}
|
|
32618
32318
|
function _object_spread$1(target) {
|
|
32619
32319
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -32630,10 +32330,6 @@ this.Scorm2004API = (function () {
|
|
|
32630
32330
|
}
|
|
32631
32331
|
return target;
|
|
32632
32332
|
}
|
|
32633
|
-
function _type_of$2(obj) {
|
|
32634
|
-
"@swc/helpers - typeof";
|
|
32635
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
32636
|
-
}
|
|
32637
32333
|
function _ts_generator$1(thisArg, body) {
|
|
32638
32334
|
var f, y, t, _ = {
|
|
32639
32335
|
label: 0,
|
|
@@ -32733,6 +32429,10 @@ this.Scorm2004API = (function () {
|
|
|
32733
32429
|
};
|
|
32734
32430
|
}
|
|
32735
32431
|
}
|
|
32432
|
+
function _type_of$2(obj) {
|
|
32433
|
+
"@swc/helpers - typeof";
|
|
32434
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
32435
|
+
}
|
|
32736
32436
|
var __defProp$2 = Object.defineProperty;
|
|
32737
32437
|
var __defNormalProp$2 = function __defNormalProp(obj, key, value) {
|
|
32738
32438
|
return key in obj ? __defProp$2(obj, key, {
|
|
@@ -32787,7 +32487,7 @@ this.Scorm2004API = (function () {
|
|
|
32787
32487
|
learnerId: this.context.learnerId || "unknown",
|
|
32788
32488
|
courseId: settings.courseId || "unknown",
|
|
32789
32489
|
attemptNumber: 1,
|
|
32790
|
-
lastUpdated: /* @__PURE__ */ new Date().toISOString(),
|
|
32490
|
+
lastUpdated: (/* @__PURE__ */ new Date()).toISOString(),
|
|
32791
32491
|
version: settings.sequencingStatePersistence.stateVersion || "1.0"
|
|
32792
32492
|
}, metadata);
|
|
32793
32493
|
config = settings.sequencingStatePersistence;
|
|
@@ -32915,7 +32615,7 @@ this.Scorm2004API = (function () {
|
|
|
32915
32615
|
var settings = this.context.getSettings();
|
|
32916
32616
|
var state = {
|
|
32917
32617
|
version: ((_settings_sequencingStatePersistence = settings.sequencingStatePersistence) === null || _settings_sequencingStatePersistence === void 0 ? void 0 : _settings_sequencingStatePersistence.stateVersion) || "1.0",
|
|
32918
|
-
timestamp: /* @__PURE__ */ new Date().toISOString(),
|
|
32618
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
32919
32619
|
sequencing: null,
|
|
32920
32620
|
currentActivityId: null,
|
|
32921
32621
|
globalObjectives: this.globalObjectiveManager.globalObjectives.map(function(obj) {
|
|
@@ -33091,9 +32791,7 @@ this.Scorm2004API = (function () {
|
|
|
33091
32791
|
if (Array.isArray(arr)) return arr;
|
|
33092
32792
|
}
|
|
33093
32793
|
function _class_call_check$1(instance, Constructor) {
|
|
33094
|
-
if (!(instance instanceof Constructor))
|
|
33095
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33096
|
-
}
|
|
32794
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
33097
32795
|
}
|
|
33098
32796
|
function _defineProperties$1(target, props) {
|
|
33099
32797
|
for(var i = 0; i < props.length; i++){
|
|
@@ -33133,7 +32831,7 @@ this.Scorm2004API = (function () {
|
|
|
33133
32831
|
return _arr;
|
|
33134
32832
|
}
|
|
33135
32833
|
function _non_iterable_rest() {
|
|
33136
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
32834
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33137
32835
|
}
|
|
33138
32836
|
function _sliced_to_array(arr, i) {
|
|
33139
32837
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest();
|
|
@@ -33334,9 +33032,7 @@ this.Scorm2004API = (function () {
|
|
|
33334
33032
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
33335
33033
|
}
|
|
33336
33034
|
function _assert_this_initialized(self) {
|
|
33337
|
-
if (self === void 0)
|
|
33338
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
33339
|
-
}
|
|
33035
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
33340
33036
|
return self;
|
|
33341
33037
|
}
|
|
33342
33038
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -33347,11 +33043,8 @@ this.Scorm2004API = (function () {
|
|
|
33347
33043
|
reject(error);
|
|
33348
33044
|
return;
|
|
33349
33045
|
}
|
|
33350
|
-
if (info.done)
|
|
33351
|
-
|
|
33352
|
-
} else {
|
|
33353
|
-
Promise.resolve(value).then(_next, _throw);
|
|
33354
|
-
}
|
|
33046
|
+
if (info.done) resolve(value);
|
|
33047
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
33355
33048
|
}
|
|
33356
33049
|
function _async_to_generator(fn) {
|
|
33357
33050
|
return function() {
|
|
@@ -33373,9 +33066,7 @@ this.Scorm2004API = (function () {
|
|
|
33373
33066
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
33374
33067
|
}
|
|
33375
33068
|
function _class_call_check(instance, Constructor) {
|
|
33376
|
-
if (!(instance instanceof Constructor))
|
|
33377
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33378
|
-
}
|
|
33069
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
33379
33070
|
}
|
|
33380
33071
|
function _defineProperties(target, props) {
|
|
33381
33072
|
for(var i = 0; i < props.length; i++){
|
|
@@ -33398,9 +33089,7 @@ this.Scorm2004API = (function () {
|
|
|
33398
33089
|
configurable: true,
|
|
33399
33090
|
writable: true
|
|
33400
33091
|
});
|
|
33401
|
-
} else
|
|
33402
|
-
obj[key] = value;
|
|
33403
|
-
}
|
|
33092
|
+
} else obj[key] = value;
|
|
33404
33093
|
return obj;
|
|
33405
33094
|
}
|
|
33406
33095
|
function _get_prototype_of(o) {
|
|
@@ -33426,15 +33115,23 @@ this.Scorm2004API = (function () {
|
|
|
33426
33115
|
"@swc/helpers - instanceof";
|
|
33427
33116
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
33428
33117
|
return !!right[Symbol.hasInstance](left);
|
|
33429
|
-
} else
|
|
33430
|
-
|
|
33431
|
-
|
|
33118
|
+
} else return left instanceof right;
|
|
33119
|
+
}
|
|
33120
|
+
function _is_native_reflect_construct() {
|
|
33121
|
+
try {
|
|
33122
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
33123
|
+
} catch (_) {}
|
|
33124
|
+
return (_is_native_reflect_construct = function() {
|
|
33125
|
+
return !!result;
|
|
33126
|
+
})();
|
|
33432
33127
|
}
|
|
33433
33128
|
function _iterable_to_array(iter) {
|
|
33434
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
33129
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
33130
|
+
return Array.from(iter);
|
|
33131
|
+
}
|
|
33435
33132
|
}
|
|
33436
33133
|
function _non_iterable_spread() {
|
|
33437
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
33134
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33438
33135
|
}
|
|
33439
33136
|
function _object_spread(target) {
|
|
33440
33137
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -33461,9 +33158,8 @@ this.Scorm2004API = (function () {
|
|
|
33461
33158
|
}
|
|
33462
33159
|
function _object_spread_props(target, source) {
|
|
33463
33160
|
source = source != null ? source : {};
|
|
33464
|
-
if (Object.getOwnPropertyDescriptors)
|
|
33465
|
-
|
|
33466
|
-
} else {
|
|
33161
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
33162
|
+
else {
|
|
33467
33163
|
ownKeys(Object(source)).forEach(function(key) {
|
|
33468
33164
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
33469
33165
|
});
|
|
@@ -33471,9 +33167,7 @@ this.Scorm2004API = (function () {
|
|
|
33471
33167
|
return target;
|
|
33472
33168
|
}
|
|
33473
33169
|
function _possible_constructor_return(self, call) {
|
|
33474
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
33475
|
-
return call;
|
|
33476
|
-
}
|
|
33170
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
33477
33171
|
return _assert_this_initialized(self);
|
|
33478
33172
|
}
|
|
33479
33173
|
function _set_prototype_of(o, p) {
|
|
@@ -33486,26 +33180,6 @@ this.Scorm2004API = (function () {
|
|
|
33486
33180
|
function _to_consumable_array(arr) {
|
|
33487
33181
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
33488
33182
|
}
|
|
33489
|
-
function _type_of(obj) {
|
|
33490
|
-
"@swc/helpers - typeof";
|
|
33491
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
33492
|
-
}
|
|
33493
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
33494
|
-
if (!o) return;
|
|
33495
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
33496
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
33497
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
33498
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
33499
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
33500
|
-
}
|
|
33501
|
-
function _is_native_reflect_construct() {
|
|
33502
|
-
try {
|
|
33503
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
33504
|
-
} catch (_) {}
|
|
33505
|
-
return (_is_native_reflect_construct = function() {
|
|
33506
|
-
return !!result;
|
|
33507
|
-
})();
|
|
33508
|
-
}
|
|
33509
33183
|
function _ts_generator(thisArg, body) {
|
|
33510
33184
|
var f, y, t, _ = {
|
|
33511
33185
|
label: 0,
|
|
@@ -33605,6 +33279,18 @@ this.Scorm2004API = (function () {
|
|
|
33605
33279
|
};
|
|
33606
33280
|
}
|
|
33607
33281
|
}
|
|
33282
|
+
function _type_of(obj) {
|
|
33283
|
+
"@swc/helpers - typeof";
|
|
33284
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
33285
|
+
}
|
|
33286
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
33287
|
+
if (!o) return;
|
|
33288
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
33289
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
33290
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
33291
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
33292
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
33293
|
+
}
|
|
33608
33294
|
var __defProp = Object.defineProperty;
|
|
33609
33295
|
var __defNormalProp = function __defNormalProp(obj, key, value) {
|
|
33610
33296
|
return key in obj ? __defProp(obj, key, {
|
|
@@ -34508,7 +34194,7 @@ this.Scorm2004API = (function () {
|
|
|
34508
34194
|
if (returnValue !== "") return;
|
|
34509
34195
|
if (this._setCMIElements.has(CMIElement)) return;
|
|
34510
34196
|
if (!NO_DEFAULT_2004_ELEMENTS.has(normalizeCMIIndices(CMIElement))) return;
|
|
34511
|
-
this.throwSCORMError(CMIElement, (_this__error_codes_VALUE_NOT_INITIALIZED = this._error_codes.VALUE_NOT_INITIALIZED) !== null && _this__error_codes_VALUE_NOT_INITIALIZED !== void 0 ? _this__error_codes_VALUE_NOT_INITIALIZED : 403, "The data model element passed to GetValue (".concat(CMIElement, ") has not been initialized."));
|
|
34197
|
+
this.throwSCORMError(CMIElement, (_this__error_codes_VALUE_NOT_INITIALIZED = this._error_codes.VALUE_NOT_INITIALIZED) !== null && _this__error_codes_VALUE_NOT_INITIALIZED !== void 0 ? _this__error_codes_VALUE_NOT_INITIALIZED : 403, "The data model element passed to GetValue (".concat(CMIElement, ") has not been initialized."), this.settings.uninitializedGetLogLevel);
|
|
34512
34198
|
}
|
|
34513
34199
|
},
|
|
34514
34200
|
{
|