@carbon/ibmdotcom-services 1.45.0 → 1.46.0-alpha.4800372592.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/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -3
- package/es/services/Analytics/Analytics.js +1 -1
- package/es/services/CloudAccountAuth/CloudAccountAuth.js +1 -1
- package/es/services/Locale/Locale.js +1 -1
- package/es/services/Profile/Profile.js +66 -1
- package/es/services/SearchTypeahead/SearchTypeahead.js +1 -1
- package/es/services/VideoPlayer/VideoPlayer.js +1 -1
- package/es/services/global/global.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +16 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -3
- package/lib/services/Analytics/Analytics.js +1 -1
- package/lib/services/CloudAccountAuth/CloudAccountAuth.js +1 -1
- package/lib/services/KalturaPlayer/KalturaPlayer.js +6 -1
- package/lib/services/Locale/Locale.js +1 -1
- package/lib/services/Profile/Profile.js +66 -1
- package/lib/services/SearchTypeahead/SearchTypeahead.js +1 -1
- package/lib/services/VideoPlayer/VideoPlayer.js +6 -1
- package/lib/services/global/global.js +1 -1
- package/package.json +3 -3
- package/umd/ibmdotcom-services.js +73 -9
- package/umd/ibmdotcom-services.min.js +3 -3
|
@@ -8,7 +8,7 @@ function _typeof(obj) {
|
|
|
8
8
|
}, _typeof(obj);
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Copyright IBM Corp. 2016,
|
|
11
|
+
* Copyright IBM Corp. 2016, 2023
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2020,
|
|
2
|
+
* Copyright IBM Corp. 2020, 2023
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* @exports ibmdotcom.settings
|
|
12
12
|
* @type {object} Settings object
|
|
13
13
|
* @property {string} [prefix=dds]
|
|
14
|
-
* Carbon for IBM.com v1.
|
|
14
|
+
* Carbon for IBM.com v1.46.0',
|
|
15
15
|
*/
|
|
16
16
|
var settings = {
|
|
17
|
-
version: 'Carbon for IBM.com v1.
|
|
17
|
+
version: 'Carbon for IBM.com v1.46.0',
|
|
18
18
|
stablePrefix: 'dds'
|
|
19
19
|
};
|
|
20
20
|
export default settings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
/**
|
|
4
|
-
* Copyright IBM Corp. 2020,
|
|
4
|
+
* Copyright IBM Corp. 2020, 2023
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
|
6
|
-
* Copyright IBM Corp. 2021,
|
|
6
|
+
* Copyright IBM Corp. 2021, 2023
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -4,7 +4,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
/**
|
|
7
|
-
* Copyright IBM Corp. 2020,
|
|
7
|
+
* Copyright IBM Corp. 2020, 2023
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3,12 +3,13 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
|
6
|
-
* Copyright IBM Corp. 2020,
|
|
6
|
+
* Copyright IBM Corp. 2020, 2023
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import axios from 'axios';
|
|
12
|
+
import Cookies from 'js-cookie';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* @constant {string | string} Host for the profile status API call
|
|
@@ -30,6 +31,14 @@ var _version = process && process.env.PROFILE_VERSION || 'v1';
|
|
|
30
31
|
*/
|
|
31
32
|
var _endpoint = "".concat(_host, "/").concat(_version, "/mgmt/idaas/user/status/");
|
|
32
33
|
|
|
34
|
+
/**
|
|
35
|
+
* The cookie name for determining user login status for cloud.ibm.com.
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
var _cookieName = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
41
|
+
|
|
33
42
|
/**
|
|
34
43
|
* Profile API class with methods for checking user authentication for ibm.com
|
|
35
44
|
*/
|
|
@@ -84,6 +93,62 @@ var ProfileAPI = /*#__PURE__*/function () {
|
|
|
84
93
|
}
|
|
85
94
|
return getUserStatus;
|
|
86
95
|
}()
|
|
96
|
+
/**
|
|
97
|
+
* retrieve the cloud login status via cookie
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @returns {string} string determining login status
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
103
|
+
key: "checkCloudCookie",
|
|
104
|
+
value: function checkCloudCookie() {
|
|
105
|
+
var cloudLogin = Cookies.get(_cookieName);
|
|
106
|
+
return {
|
|
107
|
+
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* retrieve the cloud login status via api
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* @returns {string} string determining login status
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "checkCloudDocsAPI",
|
|
119
|
+
value: function () {
|
|
120
|
+
var _checkCloudDocsAPI = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
121
|
+
var cloudLogin;
|
|
122
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
123
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
124
|
+
case 0:
|
|
125
|
+
_context2.next = 2;
|
|
126
|
+
return axios.get('/api/v6/selected-account?profile=true', {
|
|
127
|
+
headers: {
|
|
128
|
+
Accept: 'application/json'
|
|
129
|
+
}
|
|
130
|
+
}).then(function (response) {
|
|
131
|
+
return response.status === 200 ? 'authenticated' : 'anonymous';
|
|
132
|
+
}).catch(function (error) {
|
|
133
|
+
console.error(error);
|
|
134
|
+
return 'anonymous';
|
|
135
|
+
});
|
|
136
|
+
case 2:
|
|
137
|
+
cloudLogin = _context2.sent;
|
|
138
|
+
return _context2.abrupt("return", {
|
|
139
|
+
user: cloudLogin
|
|
140
|
+
});
|
|
141
|
+
case 4:
|
|
142
|
+
case "end":
|
|
143
|
+
return _context2.stop();
|
|
144
|
+
}
|
|
145
|
+
}, _callee2);
|
|
146
|
+
}));
|
|
147
|
+
function checkCloudDocsAPI() {
|
|
148
|
+
return _checkCloudDocsAPI.apply(this, arguments);
|
|
149
|
+
}
|
|
150
|
+
return checkCloudDocsAPI;
|
|
151
|
+
}()
|
|
87
152
|
}]);
|
|
88
153
|
return ProfileAPI;
|
|
89
154
|
}();
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
|
6
|
-
* Copyright IBM Corp. 2020,
|
|
6
|
+
* Copyright IBM Corp. 2020, 2023
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -8,7 +8,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
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); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
/**
|
|
11
|
-
* Copyright IBM Corp. 2020,
|
|
11
|
+
* Copyright IBM Corp. 2020, 2023
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -60,7 +60,12 @@ function _arrayWithHoles(arr) {
|
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/
|
|
63
|
+
*/ /**
|
|
64
|
+
* Copyright IBM Corp. 2020, 2021
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/
|
|
64
69
|
|
|
65
70
|
/**
|
|
66
71
|
* Fires the given event if focus goes out of the given element.
|
|
@@ -71,7 +76,16 @@ function _arrayWithHoles(arr) {
|
|
|
71
76
|
* If these nodes gets focus, we see it as focus went out of the `element`.
|
|
72
77
|
* @param {string} [eventRequestFocusWrap=dds-request-focus-wrap] The event name.
|
|
73
78
|
* @returns {Function} The handle to remove the event handler.
|
|
74
|
-
*/
|
|
79
|
+
*/ /**
|
|
80
|
+
* Fires the given event if focus goes out of the given element.
|
|
81
|
+
*
|
|
82
|
+
* @param {Element} element The element to monitor the focus on.
|
|
83
|
+
* @param {Element[]} sentinelNodes
|
|
84
|
+
* The focus sentinel nodes.
|
|
85
|
+
* If these nodes gets focus, we see it as focus went out of the `element`.
|
|
86
|
+
* @param {string} [eventRequestFocusWrap=dds-request-focus-wrap] The event name.
|
|
87
|
+
* @returns {Function} The handle to remove the event handler.
|
|
88
|
+
*/
|
|
75
89
|
function focuswrap(element, sentinelNodes) {
|
|
76
90
|
var eventRequestFocusWrap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'dds-request-focus-wrap';
|
|
77
91
|
return (0, _on.default)(element, 'focusout', function handleFocusout(event) {
|
package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js
CHANGED
|
@@ -10,7 +10,7 @@ var _marked = require("marked");
|
|
|
10
10
|
var _settings = _interopRequireDefault(require("carbon-components/umd/globals/js/settings"));
|
|
11
11
|
var _striptags = _interopRequireDefault(require("striptags"));
|
|
12
12
|
/**
|
|
13
|
-
* Copyright IBM Corp. 2020,
|
|
13
|
+
* Copyright IBM Corp. 2020, 2023
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -14,7 +14,7 @@ function _typeof(obj) {
|
|
|
14
14
|
}, _typeof(obj);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Copyright IBM Corp. 2016,
|
|
17
|
+
* Copyright IBM Corp. 2016, 2023
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _striptags = _interopRequireDefault(require("striptags"));
|
|
9
9
|
/**
|
|
10
|
-
* Copyright IBM Corp. 2020,
|
|
10
|
+
* Copyright IBM Corp. 2020, 2023
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* Copyright IBM Corp. 2020,
|
|
8
|
+
* Copyright IBM Corp. 2020, 2023
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -17,10 +17,10 @@ exports.default = void 0;
|
|
|
17
17
|
* @exports ibmdotcom.settings
|
|
18
18
|
* @type {object} Settings object
|
|
19
19
|
* @property {string} [prefix=dds]
|
|
20
|
-
* Carbon for IBM.com v1.
|
|
20
|
+
* Carbon for IBM.com v1.46.0',
|
|
21
21
|
*/
|
|
22
22
|
var settings = {
|
|
23
|
-
version: 'Carbon for IBM.com v1.
|
|
23
|
+
version: 'Carbon for IBM.com v1.46.0',
|
|
24
24
|
stablePrefix: 'dds'
|
|
25
25
|
};
|
|
26
26
|
var _default = settings;
|
|
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
|
|
11
11
|
/**
|
|
12
|
-
* Copyright IBM Corp. 2020,
|
|
12
|
+
* Copyright IBM Corp. 2020, 2023
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -12,7 +12,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _axios = _interopRequireDefault(require("axios"));
|
|
13
13
|
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
14
14
|
/**
|
|
15
|
-
* Copyright IBM Corp. 2021,
|
|
15
|
+
* Copyright IBM Corp. 2021, 2023
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -13,7 +13,12 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
13
13
|
var _Analytics = require("../Analytics");
|
|
14
14
|
var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
|
|
15
15
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /**
|
|
17
|
+
* Copyright IBM Corp. 2020, 2022
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
17
22
|
/**
|
|
18
23
|
* Sets the Kaltura Partner ID, set by environment variable "KALTURA_PARTNER_ID"
|
|
19
24
|
*
|
|
@@ -15,7 +15,7 @@ var _geolocation = _interopRequireDefault(require("../../internal/vendor/@carbon
|
|
|
15
15
|
var _ipcinfoCookie = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie"));
|
|
16
16
|
var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
|
|
17
17
|
/**
|
|
18
|
-
* Copyright IBM Corp. 2020,
|
|
18
|
+
* Copyright IBM Corp. 2020, 2023
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -10,8 +10,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _axios = _interopRequireDefault(require("axios"));
|
|
13
|
+
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
13
14
|
/**
|
|
14
|
-
* Copyright IBM Corp. 2020,
|
|
15
|
+
* Copyright IBM Corp. 2020, 2023
|
|
15
16
|
*
|
|
16
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -37,6 +38,14 @@ var _version = process && process.env.PROFILE_VERSION || 'v1';
|
|
|
37
38
|
*/
|
|
38
39
|
var _endpoint = "".concat(_host, "/").concat(_version, "/mgmt/idaas/user/status/");
|
|
39
40
|
|
|
41
|
+
/**
|
|
42
|
+
* The cookie name for determining user login status for cloud.ibm.com.
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
var _cookieName = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
48
|
+
|
|
40
49
|
/**
|
|
41
50
|
* Profile API class with methods for checking user authentication for ibm.com
|
|
42
51
|
*/
|
|
@@ -91,6 +100,62 @@ var ProfileAPI = /*#__PURE__*/function () {
|
|
|
91
100
|
}
|
|
92
101
|
return getUserStatus;
|
|
93
102
|
}()
|
|
103
|
+
/**
|
|
104
|
+
* retrieve the cloud login status via cookie
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @returns {string} string determining login status
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: "checkCloudCookie",
|
|
111
|
+
value: function checkCloudCookie() {
|
|
112
|
+
var cloudLogin = _jsCookie.default.get(_cookieName);
|
|
113
|
+
return {
|
|
114
|
+
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* retrieve the cloud login status via api
|
|
120
|
+
*
|
|
121
|
+
*
|
|
122
|
+
* @returns {string} string determining login status
|
|
123
|
+
*/
|
|
124
|
+
}, {
|
|
125
|
+
key: "checkCloudDocsAPI",
|
|
126
|
+
value: function () {
|
|
127
|
+
var _checkCloudDocsAPI = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
128
|
+
var cloudLogin;
|
|
129
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
130
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
131
|
+
case 0:
|
|
132
|
+
_context2.next = 2;
|
|
133
|
+
return _axios.default.get('/api/v6/selected-account?profile=true', {
|
|
134
|
+
headers: {
|
|
135
|
+
Accept: 'application/json'
|
|
136
|
+
}
|
|
137
|
+
}).then(function (response) {
|
|
138
|
+
return response.status === 200 ? 'authenticated' : 'anonymous';
|
|
139
|
+
}).catch(function (error) {
|
|
140
|
+
console.error(error);
|
|
141
|
+
return 'anonymous';
|
|
142
|
+
});
|
|
143
|
+
case 2:
|
|
144
|
+
cloudLogin = _context2.sent;
|
|
145
|
+
return _context2.abrupt("return", {
|
|
146
|
+
user: cloudLogin
|
|
147
|
+
});
|
|
148
|
+
case 4:
|
|
149
|
+
case "end":
|
|
150
|
+
return _context2.stop();
|
|
151
|
+
}
|
|
152
|
+
}, _callee2);
|
|
153
|
+
}));
|
|
154
|
+
function checkCloudDocsAPI() {
|
|
155
|
+
return _checkCloudDocsAPI.apply(this, arguments);
|
|
156
|
+
}
|
|
157
|
+
return checkCloudDocsAPI;
|
|
158
|
+
}()
|
|
94
159
|
}]);
|
|
95
160
|
return ProfileAPI;
|
|
96
161
|
}();
|
|
@@ -12,7 +12,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _axios = _interopRequireDefault(require("axios"));
|
|
13
13
|
var _Locale = require("../Locale");
|
|
14
14
|
/**
|
|
15
|
-
* Copyright IBM Corp. 2020,
|
|
15
|
+
* Copyright IBM Corp. 2020, 2023
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -15,7 +15,12 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
15
15
|
var _deprecate = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/deprecate"));
|
|
16
16
|
var _KalturaPlayer = _interopRequireDefault(require("../KalturaPlayer/KalturaPlayer"));
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /**
|
|
19
|
+
* Copyright IBM Corp. 2020, 2023
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
19
24
|
/**
|
|
20
25
|
* @deprecated in favor of KalturaPlayerAPI
|
|
21
26
|
* VideoPlayerAPI class with methods of checking script state and
|
|
@@ -10,7 +10,7 @@ var _DDO = require("../DDO");
|
|
|
10
10
|
var _loadNonLatinPlex = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex"));
|
|
11
11
|
var _Locale = require("../Locale");
|
|
12
12
|
/**
|
|
13
|
-
* Copyright IBM Corp. 2020,
|
|
13
|
+
* Copyright IBM Corp. 2020, 2023
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibmdotcom-services",
|
|
3
3
|
"description": "Carbon for IBM.com Services",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.46.0-alpha.4800372592.0+2bf75a8",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@babel/runtime": "^7.5.0",
|
|
51
|
-
"@carbon/ibmdotcom-utilities": "1.
|
|
51
|
+
"@carbon/ibmdotcom-utilities": "1.46.0-alpha.4800372592.0+2bf75a8",
|
|
52
52
|
"@carbon/telemetry": "0.1.0",
|
|
53
53
|
"axios": "^0.27.2",
|
|
54
54
|
"marked": "^4.0.10",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"release": {
|
|
96
96
|
"branch": "main"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "2bf75a8b306ee7ec7885b68b0393165315c21a95"
|
|
99
99
|
}
|
|
@@ -2748,7 +2748,7 @@
|
|
|
2748
2748
|
* @type {string}
|
|
2749
2749
|
* @private
|
|
2750
2750
|
*/
|
|
2751
|
-
var _cookieName$
|
|
2751
|
+
var _cookieName$2 = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
2752
2752
|
var CloudAccountAuthAPI = /*#__PURE__*/function () {
|
|
2753
2753
|
function CloudAccountAuthAPI() {
|
|
2754
2754
|
_classCallCheck$1(this, CloudAccountAuthAPI);
|
|
@@ -2766,7 +2766,7 @@
|
|
|
2766
2766
|
* @returns {string} string determining login status
|
|
2767
2767
|
*/
|
|
2768
2768
|
function checkCookie() {
|
|
2769
|
-
var cloudLogin = Cookies.get(_cookieName$
|
|
2769
|
+
var cloudLogin = Cookies.get(_cookieName$2);
|
|
2770
2770
|
return {
|
|
2771
2771
|
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
2772
2772
|
};
|
|
@@ -2822,7 +2822,7 @@
|
|
|
2822
2822
|
var CloudAccountAuthAPI$1 = CloudAccountAuthAPI;
|
|
2823
2823
|
|
|
2824
2824
|
/**
|
|
2825
|
-
* Copyright IBM Corp. 2020,
|
|
2825
|
+
* Copyright IBM Corp. 2020, 2023
|
|
2826
2826
|
*
|
|
2827
2827
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
2828
2828
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -2834,10 +2834,10 @@
|
|
|
2834
2834
|
* @exports ibmdotcom.settings
|
|
2835
2835
|
* @type {object} Settings object
|
|
2836
2836
|
* @property {string} [prefix=dds]
|
|
2837
|
-
* Carbon for IBM.com v1.
|
|
2837
|
+
* Carbon for IBM.com v1.46.0',
|
|
2838
2838
|
*/
|
|
2839
2839
|
var settings = {
|
|
2840
|
-
version: 'Carbon for IBM.com v1.
|
|
2840
|
+
version: 'Carbon for IBM.com v1.46.0',
|
|
2841
2841
|
stablePrefix: 'dds'
|
|
2842
2842
|
};
|
|
2843
2843
|
var ddsSettings = settings;
|
|
@@ -3635,7 +3635,7 @@
|
|
|
3635
3635
|
* @type {string}
|
|
3636
3636
|
* @private
|
|
3637
3637
|
*/
|
|
3638
|
-
var _cookieName = 'ipcInfo';
|
|
3638
|
+
var _cookieName$1 = 'ipcInfo';
|
|
3639
3639
|
|
|
3640
3640
|
/**
|
|
3641
3641
|
* Utility to set and get the ipcInfo cookie needed to determine country and language code
|
|
@@ -3657,7 +3657,7 @@
|
|
|
3657
3657
|
* const info = ipcinfoCookie.get();
|
|
3658
3658
|
*/
|
|
3659
3659
|
function get() {
|
|
3660
|
-
var ipcinfo = Cookies.get(_cookieName);
|
|
3660
|
+
var ipcinfo = Cookies.get(_cookieName$1);
|
|
3661
3661
|
if (ipcinfo) {
|
|
3662
3662
|
var cc;
|
|
3663
3663
|
var lc;
|
|
@@ -3693,7 +3693,7 @@
|
|
|
3693
3693
|
var cc = _ref.cc,
|
|
3694
3694
|
lc = _ref.lc;
|
|
3695
3695
|
var info = "cc=".concat(cc, ";lc=").concat(lc);
|
|
3696
|
-
Cookies.set(_cookieName, encodeURIComponent(info), {
|
|
3696
|
+
Cookies.set(_cookieName$1, encodeURIComponent(info), {
|
|
3697
3697
|
expires: 365,
|
|
3698
3698
|
domain: '.ibm.com'
|
|
3699
3699
|
});
|
|
@@ -4192,7 +4192,7 @@
|
|
|
4192
4192
|
var LocaleAPI$1 = LocaleAPI;
|
|
4193
4193
|
|
|
4194
4194
|
/**
|
|
4195
|
-
* Copyright IBM Corp. 2020,
|
|
4195
|
+
* Copyright IBM Corp. 2020, 2023
|
|
4196
4196
|
*
|
|
4197
4197
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
4198
4198
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -4369,6 +4369,14 @@
|
|
|
4369
4369
|
*/
|
|
4370
4370
|
var _endpoint$1 = "".concat(_host$2, "/").concat(_version$1, "/mgmt/idaas/user/status/");
|
|
4371
4371
|
|
|
4372
|
+
/**
|
|
4373
|
+
* The cookie name for determining user login status for cloud.ibm.com.
|
|
4374
|
+
*
|
|
4375
|
+
* @type {string}
|
|
4376
|
+
* @private
|
|
4377
|
+
*/
|
|
4378
|
+
var _cookieName = 'com.ibm.cloud.iam.LoggedIn.prod';
|
|
4379
|
+
|
|
4372
4380
|
/**
|
|
4373
4381
|
* Profile API class with methods for checking user authentication for ibm.com
|
|
4374
4382
|
*/
|
|
@@ -4423,6 +4431,62 @@
|
|
|
4423
4431
|
}
|
|
4424
4432
|
return getUserStatus;
|
|
4425
4433
|
}()
|
|
4434
|
+
/**
|
|
4435
|
+
* retrieve the cloud login status via cookie
|
|
4436
|
+
*
|
|
4437
|
+
*
|
|
4438
|
+
* @returns {string} string determining login status
|
|
4439
|
+
*/
|
|
4440
|
+
}, {
|
|
4441
|
+
key: "checkCloudCookie",
|
|
4442
|
+
value: function checkCloudCookie() {
|
|
4443
|
+
var cloudLogin = Cookies.get(_cookieName);
|
|
4444
|
+
return {
|
|
4445
|
+
user: cloudLogin === '1' ? 'authenticated' : 'anonymous'
|
|
4446
|
+
};
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* retrieve the cloud login status via api
|
|
4451
|
+
*
|
|
4452
|
+
*
|
|
4453
|
+
* @returns {string} string determining login status
|
|
4454
|
+
*/
|
|
4455
|
+
}, {
|
|
4456
|
+
key: "checkCloudDocsAPI",
|
|
4457
|
+
value: function () {
|
|
4458
|
+
var _checkCloudDocsAPI = _asyncToGenerator$1( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
4459
|
+
var cloudLogin;
|
|
4460
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
4461
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4462
|
+
case 0:
|
|
4463
|
+
_context2.next = 2;
|
|
4464
|
+
return axios.get('/api/v6/selected-account?profile=true', {
|
|
4465
|
+
headers: {
|
|
4466
|
+
Accept: 'application/json'
|
|
4467
|
+
}
|
|
4468
|
+
}).then(function (response) {
|
|
4469
|
+
return response.status === 200 ? 'authenticated' : 'anonymous';
|
|
4470
|
+
}).catch(function (error) {
|
|
4471
|
+
console.error(error);
|
|
4472
|
+
return 'anonymous';
|
|
4473
|
+
});
|
|
4474
|
+
case 2:
|
|
4475
|
+
cloudLogin = _context2.sent;
|
|
4476
|
+
return _context2.abrupt("return", {
|
|
4477
|
+
user: cloudLogin
|
|
4478
|
+
});
|
|
4479
|
+
case 4:
|
|
4480
|
+
case "end":
|
|
4481
|
+
return _context2.stop();
|
|
4482
|
+
}
|
|
4483
|
+
}, _callee2);
|
|
4484
|
+
}));
|
|
4485
|
+
function checkCloudDocsAPI() {
|
|
4486
|
+
return _checkCloudDocsAPI.apply(this, arguments);
|
|
4487
|
+
}
|
|
4488
|
+
return checkCloudDocsAPI;
|
|
4489
|
+
}()
|
|
4426
4490
|
}]);
|
|
4427
4491
|
return ProfileAPI;
|
|
4428
4492
|
}();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IBMDotcomServices={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var o=n(r.exports),i={exports:{}},a={exports:{}},c={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c);var s=n(c.exports),u={exports:{}};!function(e){var t=c.exports.default;e.exports=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var t=c.exports.default,n=u.exports;e.exports=function(e){var r=n(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports}(a),function(e){var t=a.exports;function n(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var l=n(i.exports),f="object"===("undefined"==typeof self?"undefined":s(self))&&self.self===self&&self||"object"===s(t)&&t.global===t&&t||t,p=process&&"true"===process.env.SCROLL_TRACKING||!1,d=process?"production":"development",h=function(){function e(){o(this,e)}return l(e,null,[{key:"registerEvent",value:function(e){f.ibmStats&&f.ibmStats.event(e)}},{key:"initAll",value:function(){this.initScrollTracker(),this.initDynamicTabs(),this.initModals()}},{key:"initScrollTracker",value:function(){p&&console.warn("Scroll tracker service has been deprecated. Please refer to documentation for IBM DBDM gestures 2.0.")}},{key:"initDynamicTabs",value:function(){var e=this.triggerTabSelected.bind(this);f.document.addEventListener("tab-selected",(function(t){e(t.target.id,t.detail.item.innerText)}))}},{key:"triggerTabSelected",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"CLICK",eventCategoryGroup:"TABS DYNAMIC",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering tab event:",e)}}},{key:"initModals",value:function(){var e=this.triggerModalHide.bind(this);f.document.addEventListener("modal-hidden",(function(t){e(t.target.id,t.detail.launchingElement.innerText)}));var t=this.triggerModalShow.bind(this);f.document.addEventListener("modal-shown",(function(e){t(e.target.id,e.detail.launchingElement.innerText)}))}},{key:"triggerModalHide",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"HIDE",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal hide event:",e)}}},{key:"triggerModalShow",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"SHOW",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal show event:",e)}}},{key:"videoPlayerStats",value:function(e){var t=(null==e?void 0:e.playerState)||"",n=Math.floor(e.currentTime),r=Math.floor(e.duration),o=Math.floor(n/r*100);switch(e.playerState){case 0:t="launched";break;case 1:t="paused";break;case 2:t="played";break;case 3:t="ended";break;case 99:t="error";break;default:"number"==typeof t&&(t="")}if(0===n&&(n="start",o="0"),(n>=r||3===e.playerState)&&(n="end",o="100"),"end"!==n||1!==e.playerState){var i={type:"video",primaryCategory:"VIDEO",eventName:e.title,eventCategoryGroup:e.playerType,executionPath:e.videoId||e.mediaId,execPathReturnCode:t,eventVidStatus:e.playerState,eventVidTimeStamp:n,eventVidLength:r,eventVidPlayed:o+"%"};null!=e&&e.customMetricsData&&Object.keys(e.customMetricsData).forEach((function(t){i[t]=e.customMetricsData[t]}));try{this.registerEvent(i)}catch(e){"production"!==d&&console.error("Error firing video metrics:",e)}}}}]),e}(),v=h,y={exports:{}};!function(e){function t(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function c(e){t(a,o,i,c,s,"next",e)}function s(e){t(a,o,i,c,s,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}(y);var m=n(y.exports),g={exports:{}};!function(e){var t=c.exports.default;function n(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new A(r||[]);return a(i,"_invoke",{value:O(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var h={};function v(){}function y(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==o&&i.call(w,s)&&(g=w);var x=m.prototype=v.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,n){function r(o,a,c,s){var u=d(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(m,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},E(S.prototype),f(S.prototype,u,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new S(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),f(x,l,"Generator"),f(x,s,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(g);var b=g.exports(),w=b;try{regeneratorRuntime=b}catch(e){"object"===("undefined"==typeof globalThis?"undefined":s(globalThis))?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}var x,E={exports:{}},S=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},O=S,_=Object.prototype.toString,T=(x=Object.create(null),function(e){var t=_.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())});function k(e){return e=e.toLowerCase(),function(t){return T(t)===e}}function A(e){return Array.isArray(e)}function L(e){return void 0===e}var P=k("ArrayBuffer");function R(e){return null!==e&&"object"===s(e)}function j(e){if("object"!==T(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var C=k("Date"),I=k("File"),N=k("Blob"),D=k("FileList");function M(e){return"[object Function]"===_.call(e)}var U=k("URLSearchParams");function B(e,t){if(null!=e)if("object"!==s(e)&&(e=[e]),A(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var F,H=(F="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return F&&e instanceof F}),G={isArray:A,isArrayBuffer:P,isBuffer:function(e){return null!==e&&!L(e)&&null!==e.constructor&&!L(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||_.call(e)===t||M(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:R,isPlainObject:j,isUndefined:L,isDate:C,isFile:I,isBlob:N,isFunction:M,isStream:function(e){return R(e)&&M(e.pipe)},isURLSearchParams:U,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:B,merge:function e(){var t={};function n(n,r){j(t[r])&&j(n)?t[r]=e(t[r],n):j(n)?t[r]=e({},n):A(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)B(arguments[r],n);return t},extend:function(e,t,n){return B(t,(function(t,r){e[r]=n&&"function"==typeof t?O(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:k,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(L(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:H,isFileList:D},q=G;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var W=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(q.isURLSearchParams(t))r=t.toString();else{var o=[];q.forEach(t,(function(e,t){null!=e&&(q.isArray(e)?t+="[]":e=[e],q.forEach(e,(function(e){q.isDate(e)?e=e.toISOString():q.isObject(e)&&(e=JSON.stringify(e)),o.push(J(t)+"="+J(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},V=G;function K(){this.handlers=[]}K.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},K.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},K.prototype.forEach=function(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var z=K,Y=G,$=G;function X(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}$.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Q=X.prototype,Z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){Z[e]={value:e}})),Object.defineProperties(X,Z),Object.defineProperty(Q,"isAxiosError",{value:!0}),X.from=function(e,t,n,r,o,i){var a=Object.create(Q);return $.toFlatObject(e,a,(function(e){return e!==Error.prototype})),X.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var ee=X,te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne=G;var re=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":ne.isDate(e)?e.toISOString():ne.isArrayBuffer(e)||ne.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(ne.isPlainObject(o)||ne.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),ne.forEach(o,(function(n,o){if(!ne.isUndefined(n)){var a,c=i?i+"."+o:o;if(n&&!i&&"object"===s(n))if(ne.endsWith(o,"{}"))n=JSON.stringify(n);else if(ne.endsWith(o,"[]")&&(a=ne.toArray(n)))return void a.forEach((function(e){!ne.isUndefined(e)&&t.append(c,r(e))}));e(n,c)}})),n.pop()}else t.append(i,r(o))}(e),t},oe=ee,ie=G,ae=ie.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),ie.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ie.isString(r)&&a.push("path="+r),ie.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ce=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},se=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},ue=function(e,t){return e&&!ce(t)?se(e,t):t},le=G,fe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],pe=G,de=pe.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=pe.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},he=ee;function ve(e){he.call(this,null==e?"canceled":e,he.ERR_CANCELED),this.name="CanceledError"}G.inherits(ve,he,{__CANCEL__:!0});var ye=ve,me=G,ge=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},be=ae,we=W,xe=ue,Ee=function(e){var t,n,r,o={};return e?(le.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=le.trim(e.substr(0,r)).toLowerCase(),n=le.trim(e.substr(r+1)),t){if(o[t]&&fe.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o},Se=de,Oe=te,_e=ee,Te=ye,ke=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},Ae=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,a=e.responseType;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}me.isFormData(o)&&me.isStandardBrowserEnv()&&delete i["Content-Type"];var s=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(u+":"+l)}var f=xe(e.baseURL,e.url);function p(){if(s){var r="getAllResponseHeaders"in s?Ee(s.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s};ge((function(e){t(e),c()}),(function(e){n(e),c()}),o),s=null}}if(s.open(e.method.toUpperCase(),we(f,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(p)},s.onabort=function(){s&&(n(new _e("Request aborted",_e.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new _e("Network Error",_e.ERR_NETWORK,e,s,s)),s=null},s.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||Oe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new _e(t,r.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,s)),s=null},me.isStandardBrowserEnv()){var d=(e.withCredentials||Se(f))&&e.xsrfCookieName?be.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in s&&me.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:s.setRequestHeader(t,e)})),me.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){s&&(n(!e||e&&e.type?new Te:e),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h=ke(f);h&&-1===["http","https","file"].indexOf(h)?n(new _e("Unsupported protocol "+h+":",_e.ERR_BAD_REQUEST,e)):s.send(o)}))},Le=G,Pe=function(e,t){Y.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Re=ee,je=re,Ce={"Content-Type":"application/x-www-form-urlencoded"};function Ie(e,t){!Le.isUndefined(e)&&Le.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Ne,De={transitional:te,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Ne=Ae),Ne),transformRequest:[function(e,t){if(Pe(t,"Accept"),Pe(t,"Content-Type"),Le.isFormData(e)||Le.isArrayBuffer(e)||Le.isBuffer(e)||Le.isStream(e)||Le.isFile(e)||Le.isBlob(e))return e;if(Le.isArrayBufferView(e))return e.buffer;if(Le.isURLSearchParams(e))return Ie(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=Le.isObject(e),o=t&&t["Content-Type"];if((n=Le.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return je(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(Ie(t,"application/json"),function(e,t,n){if(Le.isString(e))try{return(t||JSON.parse)(e),Le.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||De.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Le.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Re.from(e,Re.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Le.forEach(["delete","get","head"],(function(e){De.headers[e]={}})),Le.forEach(["post","put","patch"],(function(e){De.headers[e]=Le.merge(Ce)}));var Me=De,Ue=G,Be=Me,Fe=function(e){return!(!e||!e.__CANCEL__)},He=G,Ge=function(e,t,n){var r=this||Be;return Ue.forEach(n,(function(n){e=n.call(r,e,t)})),e},qe=Fe,Je=Me,We=ye;function Ve(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new We}var Ke=G,ze=function(e,t){t=t||{};var n={};function r(e,t){return Ke.isPlainObject(e)&&Ke.isPlainObject(t)?Ke.merge(e,t):Ke.isPlainObject(t)?Ke.merge({},t):Ke.isArray(t)?t.slice():t}function o(n){return Ke.isUndefined(t[n])?Ke.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!Ke.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return Ke.isUndefined(t[n])?Ke.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function c(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return Ke.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=s[e]||o,r=t(e);Ke.isUndefined(r)&&t!==c||(n[e]=r)})),n},Ye="0.27.2",$e=Ye,Xe=ee,Qe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Qe[e]=function(n){return s(n)===e||"a"+(t<1?"n ":" ")+e}}));var Ze={};Qe.transitional=function(e,t,n){function r(e,t){return"[Axios v"+$e+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Xe(r(o," has been removed"+(t?" in "+t:"")),Xe.ERR_DEPRECATED);return t&&!Ze[o]&&(Ze[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var et={assertOptions:function(e,t,n){if("object"!==s(e))throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],u=void 0===c||a(c,i,e);if(!0!==u)throw new Xe("option "+i+" must be "+u,Xe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Xe("Unknown option "+i,Xe.ERR_BAD_OPTION)}},validators:Qe},tt=G,nt=W,rt=z,ot=function(e){return Ve(e),e.headers=e.headers||{},e.data=Ge.call(e,e.data,e.headers,e.transformRequest),e.headers=He.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),He.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Je.adapter)(e).then((function(t){return Ve(e),t.data=Ge.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return qe(t)||(Ve(e),t&&t.response&&(t.response.data=Ge.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},it=ze,at=ue,ct=et,st=ct.validators;function ut(e){this.defaults=e,this.interceptors={request:new rt,response:new rt}}ut.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=it(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&ct.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var c=[ot,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(a),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var s=t;r.length;){var u=r.shift(),l=r.shift();try{s=u(s)}catch(e){l(e);break}}try{i=ot(s)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ut.prototype.getUri=function(e){e=it(this.defaults,e);var t=at(e.baseURL,e.url);return nt(t,e.params,e.paramsSerializer)},tt.forEach(["delete","get","head","options"],(function(e){ut.prototype[e]=function(t,n){return this.request(it(n||{},{method:e,url:t,data:(n||{}).data}))}})),tt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(it(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ut.prototype[e]=t(),ut.prototype[e+"Form"]=t(!0)}));var lt=ut,ft=ye;function pt(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new ft(e),t(n.reason))}))}pt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},pt.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},pt.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},pt.source=function(){var e;return{token:new pt((function(t){e=t})),cancel:e}};var dt=pt,ht=G,vt=G,yt=S,mt=lt,gt=ze;var bt=function e(t){var n=new mt(t),r=yt(mt.prototype.request,n);return vt.extend(r,mt.prototype,n),vt.extend(r,n),r.create=function(n){return e(gt(t,n))},r}(Me);bt.Axios=mt,bt.CanceledError=ye,bt.CancelToken=dt,bt.isCancel=Fe,bt.VERSION=Ye,bt.toFormData=re,bt.AxiosError=ee,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=function(e){return function(t){return e.apply(null,t)}},bt.isAxiosError=function(e){return ht.isObject(e)&&!0===e.isAxiosError},E.exports=bt,E.exports.default=bt;var wt=E.exports,xt={exports:{}};
|
|
3
|
+
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new A(r||[]);return a(i,"_invoke",{value:O(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var h={};function v(){}function y(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==o&&i.call(w,s)&&(g=w);var x=m.prototype=v.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,n){function r(o,a,c,s){var u=d(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(m,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},E(S.prototype),f(S.prototype,u,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new S(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),f(x,l,"Generator"),f(x,s,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(g);var b=g.exports(),w=b;try{regeneratorRuntime=b}catch(e){"object"===("undefined"==typeof globalThis?"undefined":s(globalThis))?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}var x,E={exports:{}},S=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},O=S,_=Object.prototype.toString,k=(x=Object.create(null),function(e){var t=_.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())});function T(e){return e=e.toLowerCase(),function(t){return k(t)===e}}function A(e){return Array.isArray(e)}function L(e){return void 0===e}var P=T("ArrayBuffer");function R(e){return null!==e&&"object"===s(e)}function C(e){if("object"!==k(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var j=T("Date"),I=T("File"),N=T("Blob"),D=T("FileList");function M(e){return"[object Function]"===_.call(e)}var U=T("URLSearchParams");function B(e,t){if(null!=e)if("object"!==s(e)&&(e=[e]),A(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var F,H=(F="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return F&&e instanceof F}),G={isArray:A,isArrayBuffer:P,isBuffer:function(e){return null!==e&&!L(e)&&null!==e.constructor&&!L(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||_.call(e)===t||M(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:R,isPlainObject:C,isUndefined:L,isDate:j,isFile:I,isBlob:N,isFunction:M,isStream:function(e){return R(e)&&M(e.pipe)},isURLSearchParams:U,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:B,merge:function e(){var t={};function n(n,r){C(t[r])&&C(n)?t[r]=e(t[r],n):C(n)?t[r]=e({},n):A(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)B(arguments[r],n);return t},extend:function(e,t,n){return B(t,(function(t,r){e[r]=n&&"function"==typeof t?O(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:k,kindOfTest:T,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(L(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:H,isFileList:D},q=G;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var W=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(q.isURLSearchParams(t))r=t.toString();else{var o=[];q.forEach(t,(function(e,t){null!=e&&(q.isArray(e)?t+="[]":e=[e],q.forEach(e,(function(e){q.isDate(e)?e=e.toISOString():q.isObject(e)&&(e=JSON.stringify(e)),o.push(J(t)+"="+J(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},V=G;function K(){this.handlers=[]}K.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},K.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},K.prototype.forEach=function(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var z=K,Y=G,$=G;function X(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}$.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Q=X.prototype,Z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){Z[e]={value:e}})),Object.defineProperties(X,Z),Object.defineProperty(Q,"isAxiosError",{value:!0}),X.from=function(e,t,n,r,o,i){var a=Object.create(Q);return $.toFlatObject(e,a,(function(e){return e!==Error.prototype})),X.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var ee=X,te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne=G;var re=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":ne.isDate(e)?e.toISOString():ne.isArrayBuffer(e)||ne.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(ne.isPlainObject(o)||ne.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),ne.forEach(o,(function(n,o){if(!ne.isUndefined(n)){var a,c=i?i+"."+o:o;if(n&&!i&&"object"===s(n))if(ne.endsWith(o,"{}"))n=JSON.stringify(n);else if(ne.endsWith(o,"[]")&&(a=ne.toArray(n)))return void a.forEach((function(e){!ne.isUndefined(e)&&t.append(c,r(e))}));e(n,c)}})),n.pop()}else t.append(i,r(o))}(e),t},oe=ee,ie=G,ae=ie.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),ie.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ie.isString(r)&&a.push("path="+r),ie.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ce=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},se=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},ue=function(e,t){return e&&!ce(t)?se(e,t):t},le=G,fe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],pe=G,de=pe.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=pe.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},he=ee;function ve(e){he.call(this,null==e?"canceled":e,he.ERR_CANCELED),this.name="CanceledError"}G.inherits(ve,he,{__CANCEL__:!0});var ye=ve,me=G,ge=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},be=ae,we=W,xe=ue,Ee=function(e){var t,n,r,o={};return e?(le.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=le.trim(e.substr(0,r)).toLowerCase(),n=le.trim(e.substr(r+1)),t){if(o[t]&&fe.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o},Se=de,Oe=te,_e=ee,ke=ye,Te=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},Ae=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,a=e.responseType;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}me.isFormData(o)&&me.isStandardBrowserEnv()&&delete i["Content-Type"];var s=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(u+":"+l)}var f=xe(e.baseURL,e.url);function p(){if(s){var r="getAllResponseHeaders"in s?Ee(s.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s};ge((function(e){t(e),c()}),(function(e){n(e),c()}),o),s=null}}if(s.open(e.method.toUpperCase(),we(f,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(p)},s.onabort=function(){s&&(n(new _e("Request aborted",_e.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new _e("Network Error",_e.ERR_NETWORK,e,s,s)),s=null},s.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||Oe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new _e(t,r.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,s)),s=null},me.isStandardBrowserEnv()){var d=(e.withCredentials||Se(f))&&e.xsrfCookieName?be.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in s&&me.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:s.setRequestHeader(t,e)})),me.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){s&&(n(!e||e&&e.type?new ke:e),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h=Te(f);h&&-1===["http","https","file"].indexOf(h)?n(new _e("Unsupported protocol "+h+":",_e.ERR_BAD_REQUEST,e)):s.send(o)}))},Le=G,Pe=function(e,t){Y.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Re=ee,Ce=re,je={"Content-Type":"application/x-www-form-urlencoded"};function Ie(e,t){!Le.isUndefined(e)&&Le.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Ne,De={transitional:te,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Ne=Ae),Ne),transformRequest:[function(e,t){if(Pe(t,"Accept"),Pe(t,"Content-Type"),Le.isFormData(e)||Le.isArrayBuffer(e)||Le.isBuffer(e)||Le.isStream(e)||Le.isFile(e)||Le.isBlob(e))return e;if(Le.isArrayBufferView(e))return e.buffer;if(Le.isURLSearchParams(e))return Ie(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=Le.isObject(e),o=t&&t["Content-Type"];if((n=Le.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return Ce(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(Ie(t,"application/json"),function(e,t,n){if(Le.isString(e))try{return(t||JSON.parse)(e),Le.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||De.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Le.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Re.from(e,Re.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Le.forEach(["delete","get","head"],(function(e){De.headers[e]={}})),Le.forEach(["post","put","patch"],(function(e){De.headers[e]=Le.merge(je)}));var Me=De,Ue=G,Be=Me,Fe=function(e){return!(!e||!e.__CANCEL__)},He=G,Ge=function(e,t,n){var r=this||Be;return Ue.forEach(n,(function(n){e=n.call(r,e,t)})),e},qe=Fe,Je=Me,We=ye;function Ve(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new We}var Ke=G,ze=function(e,t){t=t||{};var n={};function r(e,t){return Ke.isPlainObject(e)&&Ke.isPlainObject(t)?Ke.merge(e,t):Ke.isPlainObject(t)?Ke.merge({},t):Ke.isArray(t)?t.slice():t}function o(n){return Ke.isUndefined(t[n])?Ke.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!Ke.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return Ke.isUndefined(t[n])?Ke.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function c(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return Ke.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=s[e]||o,r=t(e);Ke.isUndefined(r)&&t!==c||(n[e]=r)})),n},Ye="0.27.2",$e=Ye,Xe=ee,Qe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Qe[e]=function(n){return s(n)===e||"a"+(t<1?"n ":" ")+e}}));var Ze={};Qe.transitional=function(e,t,n){function r(e,t){return"[Axios v"+$e+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Xe(r(o," has been removed"+(t?" in "+t:"")),Xe.ERR_DEPRECATED);return t&&!Ze[o]&&(Ze[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var et={assertOptions:function(e,t,n){if("object"!==s(e))throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],u=void 0===c||a(c,i,e);if(!0!==u)throw new Xe("option "+i+" must be "+u,Xe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Xe("Unknown option "+i,Xe.ERR_BAD_OPTION)}},validators:Qe},tt=G,nt=W,rt=z,ot=function(e){return Ve(e),e.headers=e.headers||{},e.data=Ge.call(e,e.data,e.headers,e.transformRequest),e.headers=He.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),He.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Je.adapter)(e).then((function(t){return Ve(e),t.data=Ge.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return qe(t)||(Ve(e),t&&t.response&&(t.response.data=Ge.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},it=ze,at=ue,ct=et,st=ct.validators;function ut(e){this.defaults=e,this.interceptors={request:new rt,response:new rt}}ut.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=it(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&ct.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var c=[ot,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(a),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var s=t;r.length;){var u=r.shift(),l=r.shift();try{s=u(s)}catch(e){l(e);break}}try{i=ot(s)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ut.prototype.getUri=function(e){e=it(this.defaults,e);var t=at(e.baseURL,e.url);return nt(t,e.params,e.paramsSerializer)},tt.forEach(["delete","get","head","options"],(function(e){ut.prototype[e]=function(t,n){return this.request(it(n||{},{method:e,url:t,data:(n||{}).data}))}})),tt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(it(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ut.prototype[e]=t(),ut.prototype[e+"Form"]=t(!0)}));var lt=ut,ft=ye;function pt(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new ft(e),t(n.reason))}))}pt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},pt.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},pt.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},pt.source=function(){var e;return{token:new pt((function(t){e=t})),cancel:e}};var dt=pt,ht=G,vt=G,yt=S,mt=lt,gt=ze;var bt=function e(t){var n=new mt(t),r=yt(mt.prototype.request,n);return vt.extend(r,mt.prototype,n),vt.extend(r,n),r.create=function(n){return e(gt(t,n))},r}(Me);bt.Axios=mt,bt.CanceledError=ye,bt.CancelToken=dt,bt.isCancel=Fe,bt.VERSION=Ye,bt.toFormData=re,bt.AxiosError=ee,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=function(e){return function(t){return e.apply(null,t)}},bt.isAxiosError=function(e){return ht.isObject(e)&&!0===e.isAxiosError},E.exports=bt,E.exports.default=bt;var wt=E.exports,xt={exports:{}};
|
|
4
4
|
/*!
|
|
5
5
|
* JavaScript Cookie v2.2.1
|
|
6
6
|
* https://github.com/js-cookie/js-cookie
|
|
@@ -8,6 +8,6 @@ e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exp
|
|
|
8
8
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
9
9
|
* Released under the MIT license
|
|
10
10
|
*/
|
|
11
|
-
!function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in i)i[s]&&(c+="; "+s,!0!==i[s]&&(c+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+c}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var c=i[a].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var u=t(c[0]);if(s=(r.read||r)(s,u)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(o[u]=s,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},e.exports=n()}(xt);var Et=xt.exports,St=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"checkCookie",value:function(){return{user:"1"===Et.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(t=m(w.mark((function e(){var t;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),Ot=St,_t={version:"Carbon for IBM.com v1.
|
|
11
|
+
!function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in i)i[s]&&(c+="; "+s,!0!==i[s]&&(c+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+c}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var c=i[a].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var u=t(c[0]);if(s=(r.read||r)(s,u)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(o[u]=s,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},e.exports=n()}(xt);var Et=xt.exports,St=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"checkCookie",value:function(){return{user:"1"===Et.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(t=m(w.mark((function e(){var t;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),Ot=St,_t={version:"Carbon for IBM.com v1.46.0",stablePrefix:"dds"};var kt;function Tt(){return kt||(kt=new Promise((function(e,t){var n=0;!function r(){f.digitalData&&f.digitalData.page&&f.digitalData.page.isDataLayerReady?e():++n<50?setTimeout((function(){r()}),100):t(new Error("Timeout polling for digital data object."))}()}))),kt}var At=function(){function e(){o(this,e)}var t,n,r;return l(e,null,[{key:"isReady",value:function(){return Tt()}},{key:"getAll",value:(r=m(w.mark((function e(){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData})).catch((function(){return null}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"setVersion",value:(n=m(w.mark((function e(){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){f.digitalData.page.pageInfo.version=_t.version}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getLanguage",value:(t=m(w.mark((function e(){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.page.pageInfo.language}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),Lt=At,Pt="https://1.www.s81c.com/common/carbon/plex",Rt={ar:{entry:"sans-arabic",family:"IBM Plex Sans Arabic"},ja:{entry:"sans-jp",family:"IBM Plex Sans JP"},ko:{entry:"sans-kr",family:"IBM Plex Sans KR"}},Ct={100:"thin",200:"extralight",300:"light",400:"regular",450:"text",500:"medium",600:"semibold",700:"bold"};function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Rt[e]&&(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length){var n=document.createElement("link");n.href="".concat(Pt,"/").concat(Rt[e].entry,".css"),n.type="text/css",n.rel="stylesheet",n.media="screen,print",document.getElementsByTagName("head")[0].appendChild(n)}else t.forEach((function(t){var n=document.createElement("link");n.href="".concat(Pt,"/").concat(Rt[e].entry,"-").concat(Ct[t],".css"),n.type="text/css",n.rel="stylesheet",n.media="screen,print",document.getElementsByTagName("head")[0].appendChild(n)}))}(e,t),function(e){document.body.style.fontFamily="".concat(Rt[e].family,",IBM Plex Sans,Helvetica Neue,Arial,sans-serif")}(e))}var It={exports:{}},Nt={exports:{}},Dt={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Dt),function(e){var t=Dt.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Nt);var Mt={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Mt);var Ut={exports:{}};!function(e){var t=Dt.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ut);var Bt={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(Bt),function(e){var t=Nt.exports,n=Mt.exports,r=Ut.exports,o=Bt.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(It);var Ft=n(It.exports);function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}function Gt(){
|
|
12
12
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
13
|
-
qt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new _(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(T([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var s=l(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Gt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=s(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Jt(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var Wt=process&&process.env.GEO_API||"https://api.www.s81c.com/webmaster/dbip/";function Vt(){return Kt.apply(this,arguments)}function Kt(){var e;return e=qt().mark((function e(){var t,n;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get(Wt,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 2:return t=e.sent,n=t&&t.country,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})),Kt=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Jt(i,r,o,a,c,"next",e)}function c(e){Jt(i,r,o,a,c,"throw",e)}a(void 0)}))},Kt.apply(this,arguments)}function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==zt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===zt(i)?i:String(i)),r)}var o,i}var $t="ipcInfo",Xt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"get",value:function(){var e,t,n=Et.get($t);if(n)return decodeURIComponent(n).split(";").map((function(n){var r=n.split("=");"cc"===r[0]&&(e=r[1]),"lc"===r[0]&&(t=r[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,n=e.lc,r="cc=".concat(t,";lc=").concat(n);Et.set($t,encodeURIComponent(r),{expires:365,domain:".ibm.com"})}}],(n=null)&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qt=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Zt={lc:"en",cc:"us"},en="".concat(Qt,"/common/js/dynamicnav/www/countrylist/jsononly"),tn={headers:{"Content-Type":"application/json; charset=utf-8"}},nn="dds-countrylist",rn={};var on=function(){function e(){o(this,e)}var t,n,r;return l(e,null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(rn).forEach((function(e){return delete rn[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(nn)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(r=m(w.mark((function e(){var t,n,r,o,i,a,c;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Xt.get(),e.next=3,this.getLang();case 3:if(!(n=e.sent)){e.next=8;break}return e.abrupt("return",n);case 8:if(!(t&&t.cc&&t.lc)){e.next=14;break}return e.next=11,this.getList(t);case 11:return e.abrupt("return",t);case 14:return e.next=16,Vt();case 16:if(r=e.sent,o=f.navigator.language,i=o.split("-")[0],!r||!i){e.next=26;break}return e.next=22,this.getList({cc:r,lc:i});case 22:return a=e.sent,c=this.verifyLocale(r,i,a),Xt.set(c),e.abrupt("return",c);case 26:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLang",value:function(){return new Promise((function(e){var t=function(){var e,t,n=Object.assign({},f.digitalData||{});if(null!==(e=n.page)&&void 0!==e&&null!==(t=e.pageInfo)&&void 0!==t&&t.language){var r,o,i,a,c,s={};return null!==(r=n.page)&&void 0!==r&&null!==(o=r.pageInfo)&&void 0!==o&&o.language.includes("-")&&null!==(i=n.page)&&void 0!==i&&null!==(a=i.pageInfo)&&void 0!==a&&null!==(c=a.ibm)&&void 0!==c&&c.country?(s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s.cc=n.page.pageInfo.ibm.country.toLowerCase().trim(),s.cc.indexOf(",")>-1&&(s.cc=s.cc.substring(0,s.cc.indexOf(",")).trim()),"gb"===s.cc&&(s.cc="uk"),"zz"===s.cc&&(s.cc="us")):s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s}return!1}();e(t||function(){var e,t;if(null!==(e=f.document)&&void 0!==e&&null!==(t=e.documentElement)&&void 0!==t&&t.lang){var n=f.document.documentElement.lang.toLowerCase();if(-1===n.indexOf("-"))return{lc:n};var r=n.split("-");return{cc:r[1],lc:r[0]}}return Zt}())}))}},{key:"getLangDisplay",value:(n=m(w.mark((function e(t){var n,r,o,i;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLang();case 6:e.t0=e.sent;case 7:return n=e.t0,e.next=10,this.getList(n);case 10:if(r=e.sent,o=[],r.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(i=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(n.lc,"-").concat(n.cc)}))){var t,r=e.locale.filter((function(e){return e.includes("".concat(n.lc,"-").concat(n.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(Ht(r))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(i[0].name," — ").concat(i[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getList",value:(t=m(w.mark((function e(t){var n,r,o=this;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cc,r=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(n,r,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"fetchList",value:function(e,t,n,r){var o=this,i="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),a="".concat(nn,"-").concat(i),c=this.getSessionCache(a);if(c)n(c);else{if(!rn[i]){var s="".concat(en,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");rn[i]=wt.get(s,tn).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(nn,"-").concat(i),JSON.stringify(t)),t}))}rn[i].then(n,(function(i){e===Zt.cc&&t===Zt.lc?r(i):o.fetchList(Zt.cc,Zt.lc,n,r)}))}}},{key:"verifyLocale",value:function(e,t,n){var r,o;return!(n&&n.regionList.forEach((function(n){return n.countryList.forEach((function(n){var i=n.locale[0][0].split("-"),a=i[1],c=i[0];a===e&&c===t?o={cc:e,lc:t}:a!==e||r||(r=c)}))})))&&r&&(o={cc:e,lc:r}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),an=on,cn=!1;var sn=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",un=process&&process.env.MARKETING_SEARCH_VERSION||"v3",ln="".concat(sn,"/marketplace/api/search/").concat(un,"/combined_suggestions"),fn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=m(w.mark((function e(t){var n;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(ln,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,wt.get(n,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),pn=fn,dn=function(){function e(){o(this,e)}return l(e,null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),n=e.end?Date.parse(e.end):null,r=!!(n&&t>n);return!(null===e.svg||r||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}]),e}(),hn=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",vn=process&&process.env.PROFILE_VERSION||"v1",yn="".concat(hn,"/").concat(vn,"/mgmt/idaas/user/status/"),mn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getUserStatus",value:(t=m(w.mark((function e(){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get(yn,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),gn=mn,bn=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",wn=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",xn="".concat(bn,"/search/typeahead/").concat(wn),En=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=m(w.mark((function e(t){var n,r,o,i,a=arguments;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"",e.next=3,an.getLang();case 3:return r=e.sent,o=["lang=".concat(r.lc).concat(r.cc?"&cc=".concat(r.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(n?"appid=".concat(n):"")].filter((function(e){return e})).join("&"),i="".concat(xn,"?").concat(o),e.next=8,wt.get(i,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),Sn=En,On=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",_n="/common/carbon-for-ibm-dotcom/translations/masthead-footer",Tn=process&&(process.env.REACT_APP_DDS_TRANSLATION_ENDPOINT||process.env.DDS_TRANSLATION_ENDPOINT)||_n,kn={},An="en",Ln="us",Pn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(kn).forEach((function(e){return delete kn[e]}));for(var n=0;n<sessionStorage.length;++n){var r=sessionStorage.key(n);0===r.indexOf(t)&&sessionStorage.removeItem(r)}}}},{key:"getTranslation",value:(t=m(w.mark((function e(t,n){var r,o,i,a=this;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}r=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,an.getLocale();case 9:i=e.sent,r=i.lc,o=i.cc;case 12:return e.abrupt("return",new Promise((function(e,t){a.fetchTranslation(r,o,n,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,n,r,o){var i=this,a=this.getSessionKey(n),c="".concat(a,"-").concat(t,"-").concat(e),s=this.getSessionCache(c);if(s)r(s);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!kn[u]){var l=n||Tn,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(n)?"":On,d="".concat(p).concat(l,"/").concat(f,".json");kn[u]=wt.get(d,{headers:{"Content-Type":"text/plain",origin:On}}).then((function(e){return i.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(a,"-").concat(u),JSON.stringify(e)),e}))}kn[u].then(r,(function(a){t===Ln&&e===An?o(a):i.fetchTranslation(An,Ln,n,r,o)}))}}},{key:"getSessionKey",value:function(e){var t="dds-translation";(_n!==Tn||e)&&(t=(e||Tn).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,n=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(n){var r="state=https%3A%2F%2Fwww.ibm.com",o=n.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(r))}));if(-1!==o&&f.location){var i=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=n[o].url.replace(r,"state=".concat(i))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),Rn=Pn,jn={exports:{}};!function(e){var t=a.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(jn);var Cn=n(jn.exports);function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dn=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,Mn=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,Un="https://cdnapisec.kaltura.com/p/".concat(Dn,"/sp/").concat(Dn,"00/embedIframeJs/uiconf_id/").concat(Mn,"/partner_id/").concat(Dn),Bn="https://cdnsecakmi.kaltura.com/p/".concat(Dn,"/thumbnail/entry_id/"),Fn=50,Hn=0,Gn=!1;function qn(e,t){f.kWidget?(Gn=!1,e()):Gn?++Hn<Fn?setTimeout((function(){qn(e,t)}),100):t():(!function(){Gn=!0;var e=document.createElement("script");e.src=Un,e.async=!0,document.body.appendChild(e)}(),qn(e,t))}var Jn={},Wn=function(){function e(){o(this,e)}var t,n;return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){qn(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,n=e.height,r=e.width,o=Bn+t;return n&&(o+="/height/".concat(n)),r&&(o+="/width/".concat(r)),o}},{key:"embedMedia",value:(n=m(w.mark((function e(t,n){var r,o,i,a,c=arguments;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},o=!(c.length>3&&void 0!==c[3])||c[3],i=c.length>4&&void 0!==c[4]?c[4]:function(){},a=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var c;if(!document.getElementById(n)&&document.querySelector("dds-tabs-extended-media")){var s=document.createElement("div");s.classList.add("bx--video-player__video"),s.setAttribute("id",n),document.body.append(s),c=!0}f.kWidget.embed({targetId:n,wid:"_"+Dn,uiconf_id:Mn,entry_id:t,flashvars:Nn(Nn({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),r),params:{wmode:"transparent"},readyCallback:function(n){var r=document.getElementById(n);o&&(r.addJsListener("playerPaused.ibm",(function(){a({playerState:1,kdp:r,mediaId:t})})),r.addJsListener("playerPlayed.ibm",(function(){a({playerState:2,kdp:r,mediaId:t})})),r.addJsListener("playerPlayEnd.ibm",(function(){a({playerState:3,kdp:r,mediaId:t})})),r.addJsListener("IbmCtaEvent.ibm",(function(e){var n=(null==e?void 0:e.customMetricsData)||{};a({playerState:101,kdp:r,mediaId:t,customMetricsData:n})}))),i(r),e(r)}}),c&&document.querySelector("dds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active dds-video-player").lastChild.parentElement.appendChild(document.getElementById(n))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,n=e.kdp,r=e.mediaId,o=e.customMetricsData,i=void 0===o?{}:o,a=Math.round(n.evaluate("{video.player.currentTime}"));2===t&&0===a&&(t=0);var c={playerType:"kaltura",title:n.evaluate("{mediaProxy.entry.name}"),currentTime:a,duration:n.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:r,customMetricsData:i};v.videoPlayerStats(c)}},{key:"api",value:(t=m(w.mark((function e(t){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return Jn&&Jn[t]?Jn[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+Dn}).doRequest({service:"media",action:"get",entryId:t},(function(t){Jn[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var n=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",n=n<10?"0"+n:n,t&&"("+o+r+":"+n+")"}var i=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},a=(null==i?void 0:i.hours)||0,c=(null==i?void 0:i.minutes)||0,s=(null==i?void 0:i.seconds)||0;return c=(a>0?"0"+c:c).toString().slice(-2),(a=a>0?a+":":"")+c+":"+(s=("0"+s).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=t;(arguments.length>1?arguments[1]:void 0)||(n=1e3*t);var r=Math.floor(n/1e3%60),o=Math.floor(n/6e4%60),i=Math.floor(n/36e5%24),a=e.formatTime(r,"second"),c=i||o?e.formatTime(o,"minute"):"",s=i?e.formatTime(i,"hour"):"";return"".concat(s," ").concat(c," ").concat(a).trim()}},{key:"formatTime",value:function(e,t){var n=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(n,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]),e}(),Vn=Wn;e.AnalyticsAPI=v,e.CloudAccountAuthAPI=Ot,e.DDOAPI=Pt,e.KalturaPlayerAPI=Vn,e.LocaleAPI=an,e.MarketingSearchAPI=pn,e.MastheadLogo=dn,e.ProfileAPI=gn,e.SearchTypeaheadAPI=Sn,e.TranslationAPI=Rn,e.globalInit=function(){cn||(cn=!0,Pt.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),an.getLang().then((function(e){It(e.lc)})),v.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
13
|
+
Gt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new _(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(k([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var s=l(e[r],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ht(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=s(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function qt(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var Jt=process&&process.env.GEO_API||"https://api.www.s81c.com/webmaster/dbip/";function Wt(){return Vt.apply(this,arguments)}function Vt(){var e;return e=Gt().mark((function e(){var t,n;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get(Jt,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 2:return t=e.sent,n=t&&t.country,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})),Vt=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){qt(i,r,o,a,c,"next",e)}function c(e){qt(i,r,o,a,c,"throw",e)}a(void 0)}))},Vt.apply(this,arguments)}function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Kt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Kt(i)?i:String(i)),r)}var o,i}var Yt="ipcInfo",$t=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"get",value:function(){var e,t,n=Et.get(Yt);if(n)return decodeURIComponent(n).split(";").map((function(n){var r=n.split("=");"cc"===r[0]&&(e=r[1]),"lc"===r[0]&&(t=r[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,n=e.lc,r="cc=".concat(t,";lc=").concat(n);Et.set(Yt,encodeURIComponent(r),{expires:365,domain:".ibm.com"})}}],(n=null)&&zt(t.prototype,n),r&&zt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Xt=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Qt={lc:"en",cc:"us"},Zt="".concat(Xt,"/common/js/dynamicnav/www/countrylist/jsononly"),en={headers:{"Content-Type":"application/json; charset=utf-8"}},tn="dds-countrylist",nn={};var rn=function(){function e(){o(this,e)}var t,n,r;return l(e,null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(nn).forEach((function(e){return delete nn[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(tn)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(r=m(w.mark((function e(){var t,n,r,o,i,a,c;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=$t.get(),e.next=3,this.getLang();case 3:if(!(n=e.sent)){e.next=8;break}return e.abrupt("return",n);case 8:if(!(t&&t.cc&&t.lc)){e.next=14;break}return e.next=11,this.getList(t);case 11:return e.abrupt("return",t);case 14:return e.next=16,Wt();case 16:if(r=e.sent,o=f.navigator.language,i=o.split("-")[0],!r||!i){e.next=26;break}return e.next=22,this.getList({cc:r,lc:i});case 22:return a=e.sent,c=this.verifyLocale(r,i,a),$t.set(c),e.abrupt("return",c);case 26:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLang",value:function(){return new Promise((function(e){var t=function(){var e,t,n=Object.assign({},f.digitalData||{});if(null!==(e=n.page)&&void 0!==e&&null!==(t=e.pageInfo)&&void 0!==t&&t.language){var r,o,i,a,c,s={};return null!==(r=n.page)&&void 0!==r&&null!==(o=r.pageInfo)&&void 0!==o&&o.language.includes("-")&&null!==(i=n.page)&&void 0!==i&&null!==(a=i.pageInfo)&&void 0!==a&&null!==(c=a.ibm)&&void 0!==c&&c.country?(s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s.cc=n.page.pageInfo.ibm.country.toLowerCase().trim(),s.cc.indexOf(",")>-1&&(s.cc=s.cc.substring(0,s.cc.indexOf(",")).trim()),"gb"===s.cc&&(s.cc="uk"),"zz"===s.cc&&(s.cc="us")):s.lc=n.page.pageInfo.language.substring(0,2).toLowerCase(),s}return!1}();e(t||function(){var e,t;if(null!==(e=f.document)&&void 0!==e&&null!==(t=e.documentElement)&&void 0!==t&&t.lang){var n=f.document.documentElement.lang.toLowerCase();if(-1===n.indexOf("-"))return{lc:n};var r=n.split("-");return{cc:r[1],lc:r[0]}}return Qt}())}))}},{key:"getLangDisplay",value:(n=m(w.mark((function e(t){var n,r,o,i;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLang();case 6:e.t0=e.sent;case 7:return n=e.t0,e.next=10,this.getList(n);case 10:if(r=e.sent,o=[],r.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(i=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(n.lc,"-").concat(n.cc)}))){var t,r=e.locale.filter((function(e){return e.includes("".concat(n.lc,"-").concat(n.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(Ft(r))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(i[0].name," — ").concat(i[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getList",value:(t=m(w.mark((function e(t){var n,r,o=this;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cc,r=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(n,r,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"fetchList",value:function(e,t,n,r){var o=this,i="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),a="".concat(tn,"-").concat(i),c=this.getSessionCache(a);if(c)n(c);else{if(!nn[i]){var s="".concat(Zt,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");nn[i]=wt.get(s,en).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(tn,"-").concat(i),JSON.stringify(t)),t}))}nn[i].then(n,(function(i){e===Qt.cc&&t===Qt.lc?r(i):o.fetchList(Qt.cc,Qt.lc,n,r)}))}}},{key:"verifyLocale",value:function(e,t,n){var r,o;return!(n&&n.regionList.forEach((function(n){return n.countryList.forEach((function(n){var i=n.locale[0][0].split("-"),a=i[1],c=i[0];a===e&&c===t?o={cc:e,lc:t}:a!==e||r||(r=c)}))})))&&r&&(o={cc:e,lc:r}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),on=rn,an=!1;var cn=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",sn=process&&process.env.MARKETING_SEARCH_VERSION||"v3",un="".concat(cn,"/marketplace/api/search/").concat(sn,"/combined_suggestions"),ln=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=m(w.mark((function e(t){var n;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(un,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,wt.get(n,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),fn=ln,pn=function(){function e(){o(this,e)}return l(e,null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),n=e.end?Date.parse(e.end):null,r=!!(n&&t>n);return!(null===e.svg||r||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}]),e}(),dn=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",hn=process&&process.env.PROFILE_VERSION||"v1",vn="".concat(dn,"/").concat(hn,"/mgmt/idaas/user/status/"),yn=function(){function e(){o(this,e)}var t,n;return l(e,null,[{key:"getUserStatus",value:(n=m(w.mark((function e(){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get(vn,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"checkCloudCookie",value:function(){return{user:"1"===Et.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkCloudDocsAPI",value:(t=m(w.mark((function e(){var t;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wt.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),mn=yn,gn=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",bn=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",wn="".concat(gn,"/search/typeahead/").concat(bn),xn=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"getResults",value:(t=m(w.mark((function e(t){var n,r,o,i,a=arguments;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"",e.next=3,on.getLang();case 3:return r=e.sent,o=["lang=".concat(r.lc).concat(r.cc?"&cc=".concat(r.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(n?"appid=".concat(n):"")].filter((function(e){return e})).join("&"),i="".concat(wn,"?").concat(o),e.next=8,wt.get(i,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),En=xn,Sn=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",On="/common/carbon-for-ibm-dotcom/translations/masthead-footer",_n=process&&(process.env.REACT_APP_DDS_TRANSLATION_ENDPOINT||process.env.DDS_TRANSLATION_ENDPOINT)||On,kn={},Tn="en",An="us",Ln=function(){function e(){o(this,e)}var t;return l(e,null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(kn).forEach((function(e){return delete kn[e]}));for(var n=0;n<sessionStorage.length;++n){var r=sessionStorage.key(n);0===r.indexOf(t)&&sessionStorage.removeItem(r)}}}},{key:"getTranslation",value:(t=m(w.mark((function e(t,n){var r,o,i,a=this;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}r=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,on.getLocale();case 9:i=e.sent,r=i.lc,o=i.cc;case 12:return e.abrupt("return",new Promise((function(e,t){a.fetchTranslation(r,o,n,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,n,r,o){var i=this,a=this.getSessionKey(n),c="".concat(a,"-").concat(t,"-").concat(e),s=this.getSessionCache(c);if(s)r(s);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!kn[u]){var l=n||_n,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(n)?"":Sn,d="".concat(p).concat(l,"/").concat(f,".json");kn[u]=wt.get(d,{headers:{"Content-Type":"text/plain",origin:Sn}}).then((function(e){return i.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(a,"-").concat(u),JSON.stringify(e)),e}))}kn[u].then(r,(function(a){t===An&&e===Tn?o(a):i.fetchTranslation(Tn,An,n,r,o)}))}}},{key:"getSessionKey",value:function(e){var t="dds-translation";(On!==_n||e)&&(t=(e||_n).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,n=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(n){var r="state=https%3A%2F%2Fwww.ibm.com",o=n.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(r))}));if(-1!==o&&f.location){var i=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=n[o].url.replace(r,"state=".concat(i))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]),e}(),Pn=Ln,Rn={exports:{}};!function(e){var t=a.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Rn);var Cn=n(Rn.exports);function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nn=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,Dn=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,Mn="https://cdnapisec.kaltura.com/p/".concat(Nn,"/sp/").concat(Nn,"00/embedIframeJs/uiconf_id/").concat(Dn,"/partner_id/").concat(Nn),Un="https://cdnsecakmi.kaltura.com/p/".concat(Nn,"/thumbnail/entry_id/"),Bn=0,Fn=!1;function Hn(e,t){f.kWidget?(Fn=!1,e()):Fn?++Bn<50?setTimeout((function(){Hn(e,t)}),100):t():(!function(){Fn=!0;var e=document.createElement("script");e.src=Mn,e.async=!0,document.body.appendChild(e)}(),Hn(e,t))}var Gn={},qn=function(){function e(){o(this,e)}var t,n;return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){Hn(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,n=e.height,r=e.width,o=Un+t;return n&&(o+="/height/".concat(n)),r&&(o+="/width/".concat(r)),o}},{key:"embedMedia",value:(n=m(w.mark((function e(t,n){var r,o,i,a,c=arguments;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},o=!(c.length>3&&void 0!==c[3])||c[3],i=c.length>4&&void 0!==c[4]?c[4]:function(){},a=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var c;if(!document.getElementById(n)&&document.querySelector("dds-tabs-extended-media")){var s=document.createElement("div");s.classList.add("bx--video-player__video"),s.setAttribute("id",n),document.body.append(s),c=!0}f.kWidget.embed({targetId:n,wid:"_"+Nn,uiconf_id:Dn,entry_id:t,flashvars:In(In({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),r),params:{wmode:"transparent"},readyCallback:function(n){var r=document.getElementById(n);o&&(r.addJsListener("playerPaused.ibm",(function(){a({playerState:1,kdp:r,mediaId:t})})),r.addJsListener("playerPlayed.ibm",(function(){a({playerState:2,kdp:r,mediaId:t})})),r.addJsListener("playerPlayEnd.ibm",(function(){a({playerState:3,kdp:r,mediaId:t})})),r.addJsListener("IbmCtaEvent.ibm",(function(e){var n=(null==e?void 0:e.customMetricsData)||{};a({playerState:101,kdp:r,mediaId:t,customMetricsData:n})}))),i(r),e(r)}}),c&&document.querySelector("dds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active dds-video-player").lastChild.parentElement.appendChild(document.getElementById(n))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,n=e.kdp,r=e.mediaId,o=e.customMetricsData,i=void 0===o?{}:o,a=Math.round(n.evaluate("{video.player.currentTime}"));2===t&&0===a&&(t=0);var c={playerType:"kaltura",title:n.evaluate("{mediaProxy.entry.name}"),currentTime:a,duration:n.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:r,customMetricsData:i};v.videoPlayerStats(c)}},{key:"api",value:(t=m(w.mark((function e(t){return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return Gn&&Gn[t]?Gn[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+Nn}).doRequest({service:"media",action:"get",entryId:t},(function(t){Gn[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var n=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",n=n<10?"0"+n:n,t&&"("+o+r+":"+n+")"}var i=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},a=(null==i?void 0:i.hours)||0,c=(null==i?void 0:i.minutes)||0,s=(null==i?void 0:i.seconds)||0;return c=(a>0?"0"+c:c).toString().slice(-2),(a=a>0?a+":":"")+c+":"+(s=("0"+s).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=t;(arguments.length>1?arguments[1]:void 0)||(n=1e3*t);var r=Math.floor(n/1e3%60),o=Math.floor(n/6e4%60),i=Math.floor(n/36e5%24),a=e.formatTime(r,"second"),c=i||o?e.formatTime(o,"minute"):"",s=i?e.formatTime(i,"hour"):"";return"".concat(s," ").concat(c," ").concat(a).trim()}},{key:"formatTime",value:function(e,t){var n=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(n,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]),e}(),Jn=qn;e.AnalyticsAPI=v,e.CloudAccountAuthAPI=Ot,e.DDOAPI=Lt,e.KalturaPlayerAPI=Jn,e.LocaleAPI=on,e.MarketingSearchAPI=fn,e.MastheadLogo=pn,e.ProfileAPI=mn,e.SearchTypeaheadAPI=En,e.TranslationAPI=Pn,e.globalInit=function(){an||(an=!0,Lt.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),on.getLang().then((function(e){jt(e.lc)})),v.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
|