Merge branch 'master' into pr/338
This commit is contained in:
222
dist/aicc.min.js
vendored
222
dist/aicc.min.js
vendored
@@ -419,7 +419,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
||||
|
||||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
@@ -548,6 +548,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
||||
|
||||
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
||||
|
||||
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
||||
|
||||
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
||||
@@ -581,17 +585,17 @@ var BaseAPI = /*#__PURE__*/function () {
|
||||
function BaseAPI(error_codes, settings) {
|
||||
_classCallCheck(this, BaseAPI);
|
||||
|
||||
_timeout.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _timeout, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_error_codes.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _error_codes, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_settings.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _settings, {
|
||||
writable: true,
|
||||
value: {
|
||||
autocommit: false,
|
||||
@@ -1871,22 +1875,22 @@ var ScheduledCommit = /*#__PURE__*/function () {
|
||||
function ScheduledCommit(API, when, callback) {
|
||||
_classCallCheck(this, ScheduledCommit);
|
||||
|
||||
_API.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _API, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_cancelled.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _cancelled, {
|
||||
writable: true,
|
||||
value: false
|
||||
});
|
||||
|
||||
_timeout2.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _timeout2, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_callback.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _callback, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
@@ -1971,7 +1975,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
||||
|
||||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
@@ -2347,6 +2351,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
||||
|
||||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
||||
|
||||
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
||||
|
||||
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
||||
|
||||
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
||||
@@ -2373,7 +2381,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
||||
|
||||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
@@ -2605,27 +2613,27 @@ var AICCStudentPreferences = /*#__PURE__*/function (_Scorm12CMI$CMIStuden) {
|
||||
|
||||
_this3 = _super4.call(this, aicc_constants.student_preference_children);
|
||||
|
||||
_lesson_type.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _lesson_type, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_text_color.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _text_color, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_text_location.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _text_location, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_text_size.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _text_size, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_video.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _video, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -2809,7 +2817,7 @@ var AICCCMIStudentData = /*#__PURE__*/function (_Scorm12CMI$CMIStuden2) {
|
||||
|
||||
_this4 = _super5.call(this, aicc_constants.student_data_children);
|
||||
|
||||
_tries_during_lesson.set(_assertThisInitialized(_this4), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _tries_during_lesson, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -2927,72 +2935,72 @@ var CMIStudentDemographics = /*#__PURE__*/function (_BaseCMI2) {
|
||||
|
||||
_this5 = _super6.call(this);
|
||||
|
||||
_children.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _children, {
|
||||
writable: true,
|
||||
value: aicc_constants.student_demographics_children
|
||||
});
|
||||
|
||||
_city.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _city, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_class.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _class, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_company.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _company, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_country.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _country, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_experience.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _experience, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_familiar_name.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _familiar_name, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_instructor_name.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _instructor_name, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_title.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _title, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_native_language.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _native_language, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_state.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _state, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_street_address.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _street_address, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_telephone.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _telephone, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_years_experience.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _years_experience, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -3363,32 +3371,32 @@ var CMIPathsObject = /*#__PURE__*/function (_BaseCMI3) {
|
||||
|
||||
_this6 = _super8.call(this);
|
||||
|
||||
_location_id.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _location_id, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_date.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _date, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_time.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _time, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_status.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _status, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_why_left.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _why_left, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_time_in_element.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _time_in_element, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -3600,12 +3608,12 @@ var CMITriesObject = /*#__PURE__*/function (_BaseCMI4) {
|
||||
|
||||
_this7 = _super10.call(this);
|
||||
|
||||
_status2.set(_assertThisInitialized(_this7), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _status2, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_time2.set(_assertThisInitialized(_this7), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _time2, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -3750,7 +3758,7 @@ var CMIAttemptRecordsObject = /*#__PURE__*/function (_BaseCMI5) {
|
||||
|
||||
_this8 = _super12.call(this);
|
||||
|
||||
_lesson_status.set(_assertThisInitialized(_this8), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _lesson_status, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -3853,17 +3861,17 @@ var CMIEvaluationCommentsObject = /*#__PURE__*/function (_BaseCMI6) {
|
||||
|
||||
_this9 = _super13.call(this);
|
||||
|
||||
_content.set(_assertThisInitialized(_this9), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _content, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_location.set(_assertThisInitialized(_this9), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _location, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_time3.set(_assertThisInitialized(_this9), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _time3, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -3987,7 +3995,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
||||
|
||||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
@@ -4001,6 +4009,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
||||
|
||||
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
||||
@@ -4084,12 +4096,12 @@ var BaseCMI = /*#__PURE__*/function () {
|
||||
|
||||
_defineProperty(this, "jsonString", false);
|
||||
|
||||
_initialized.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _initialized, {
|
||||
writable: true,
|
||||
value: false
|
||||
});
|
||||
|
||||
_start_time.set(this, {
|
||||
_classPrivateFieldInitSpec(this, _start_time, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
@@ -4201,52 +4213,52 @@ var CMIScore = /*#__PURE__*/function (_BaseCMI) {
|
||||
|
||||
_this = _super.call(this);
|
||||
|
||||
_children2.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_score_range.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _score_range, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_invalid_error_code.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_error_code, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_invalid_type_code.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_type_code, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_invalid_range_code.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_range_code, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_decimal_regex.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _decimal_regex, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_error_class.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _error_class, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_raw.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _raw, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_min.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _min, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_max.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
@@ -4406,17 +4418,17 @@ var CMIArray = /*#__PURE__*/function (_BaseCMI2) {
|
||||
|
||||
_this2 = _super2.call(this);
|
||||
|
||||
_errorCode.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorCode, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_errorClass.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorClass, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_children3.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
@@ -4542,7 +4554,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
||||
|
||||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
@@ -4552,6 +4564,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
||||
|
||||
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
||||
|
||||
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
||||
|
||||
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
||||
@@ -4645,27 +4661,27 @@ var CMI = /*#__PURE__*/function (_BaseCMI) {
|
||||
|
||||
_this = _super.call(this);
|
||||
|
||||
_children2.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_version2.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version2, {
|
||||
writable: true,
|
||||
value: '3.4'
|
||||
});
|
||||
|
||||
_launch_data.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _launch_data, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_comments.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_comments_from_lms.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments_from_lms, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -4913,62 +4929,62 @@ var CMICore = /*#__PURE__*/function (_BaseCMI2) {
|
||||
|
||||
_this2 = _super2.call(this);
|
||||
|
||||
_children3.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
|
||||
writable: true,
|
||||
value: scorm12_constants.core_children
|
||||
});
|
||||
|
||||
_student_id.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_id, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_student_name.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_name, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_lesson_location.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_location, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_credit.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _credit, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_lesson_status.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_status, {
|
||||
writable: true,
|
||||
value: 'not attempted'
|
||||
});
|
||||
|
||||
_entry.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _entry, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_total_time.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _total_time, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_lesson_mode.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_mode, {
|
||||
writable: true,
|
||||
value: 'normal'
|
||||
});
|
||||
|
||||
_exit.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _exit, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_session_time.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _session_time, {
|
||||
writable: true,
|
||||
value: '00:00:00'
|
||||
});
|
||||
|
||||
_suspend_data.set(_assertThisInitialized(_this2), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _suspend_data, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -5349,22 +5365,22 @@ var CMIStudentData = /*#__PURE__*/function (_BaseCMI3) {
|
||||
|
||||
_this3 = _super4.call(this);
|
||||
|
||||
_children4.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _children4, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_mastery_score.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _mastery_score, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_max_time_allowed.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _max_time_allowed, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_time_limit_action.set(_assertThisInitialized(_this3), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _time_limit_action, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -5510,27 +5526,27 @@ var CMIStudentPreference = /*#__PURE__*/function (_BaseCMI4) {
|
||||
|
||||
_this4 = _super5.call(this);
|
||||
|
||||
_children5.set(_assertThisInitialized(_this4), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _children5, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_audio.set(_assertThisInitialized(_this4), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _audio, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_language.set(_assertThisInitialized(_this4), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _language, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_speed.set(_assertThisInitialized(_this4), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _speed, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_text.set(_assertThisInitialized(_this4), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _text, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -5733,37 +5749,37 @@ var CMIInteractionsObject = /*#__PURE__*/function (_BaseCMI5) {
|
||||
|
||||
_this5 = _super7.call(this);
|
||||
|
||||
_id.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _id, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_time.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _time, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_type.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _type, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_weighting.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _weighting, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_student_response.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _student_response, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_result.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _result, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_latency.set(_assertThisInitialized(_this5), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _latency, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -6002,12 +6018,12 @@ var CMIObjectivesObject = /*#__PURE__*/function (_BaseCMI6) {
|
||||
|
||||
_this6 = _super8.call(this);
|
||||
|
||||
_id2.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _id2, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
|
||||
_status.set(_assertThisInitialized(_this6), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _status, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -6115,7 +6131,7 @@ var CMIInteractionsObjectivesObject = /*#__PURE__*/function (_BaseCMI7) {
|
||||
|
||||
_this7 = _super9.call(this);
|
||||
|
||||
_id3.set(_assertThisInitialized(_this7), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _id3, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -6191,7 +6207,7 @@ var CMIInteractionsCorrectResponsesObject = /*#__PURE__*/function (_BaseCMI8) {
|
||||
|
||||
_this8 = _super10.call(this);
|
||||
|
||||
_pattern.set(_assertThisInitialized(_this8), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _pattern, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -6266,7 +6282,7 @@ var NAV = /*#__PURE__*/function (_BaseCMI9) {
|
||||
|
||||
_this9 = _super11.call(this);
|
||||
|
||||
_event.set(_assertThisInitialized(_this9), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _event, {
|
||||
writable: true,
|
||||
value: ''
|
||||
});
|
||||
@@ -6770,7 +6786,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
||||
|
||||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
@@ -6786,6 +6802,10 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
||||
|
||||
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
||||
|
||||
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
||||
|
||||
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
||||
@@ -6827,17 +6847,17 @@ var ValidationError = /*#__PURE__*/function (_Error) {
|
||||
|
||||
_this = _super.call(this, errorMessage);
|
||||
|
||||
_errorCode.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorCode, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_errorMessage.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorMessage, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
_detailedMessage.set(_assertThisInitialized(_this), {
|
||||
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _detailedMessage, {
|
||||
writable: true,
|
||||
value: void 0
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user