@carbon/ibmdotcom-services 1.10.1 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,54 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.10.2](https://github.com/carbon-design-system/ibm-dotcom-library/compare/@carbon/ibmdotcom-services@1.10.2-rc.2...@carbon/ibmdotcom-services@1.10.2) (2020-09-08)
7
+
8
+ **Note:** Version bump only for package @carbon/ibmdotcom-services
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
15
+ ## [1.10.2-rc.2](https://github.com/carbon-design-system/ibm-dotcom-library/compare/@carbon/ibmdotcom-services@1.10.2-rc.1...@carbon/ibmdotcom-services@1.10.2-rc.2) (2020-09-03)
16
+
17
+ ### Bug Fixes
18
+
19
+ - **translation:** adding string/replace of login url state param
20
+ ([#3852](https://github.com/carbon-design-system/ibm-dotcom-library/issues/3852))
21
+ ([435500c](https://github.com/carbon-design-system/ibm-dotcom-library/commit/435500c)),
22
+ closes
23
+ [#3851](https://github.com/carbon-design-system/ibm-dotcom-library/issues/3851)
24
+
25
+ # Change Log
26
+
27
+ All notable changes to this project will be documented in this file. See
28
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
29
+
30
+ ## [1.10.2-rc.1](https://github.com/carbon-design-system/ibm-dotcom-library/compare/@carbon/ibmdotcom-services@1.10.2-rc.0...@carbon/ibmdotcom-services@1.10.2-rc.1) (2020-09-02)
31
+
32
+ **Note:** Version bump only for package @carbon/ibmdotcom-services
33
+
34
+ # Change Log
35
+
36
+ All notable changes to this project will be documented in this file. See
37
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
38
+
39
+ ## [1.10.2-rc.0](https://github.com/carbon-design-system/ibm-dotcom-library/compare/@carbon/ibmdotcom-services@1.10.1...@carbon/ibmdotcom-services@1.10.2-rc.0) (2020-09-01)
40
+
41
+ ### Bug Fixes
42
+
43
+ - **lang:** get immediate lang value rather than waiting for DDO
44
+ ([#3822](https://github.com/carbon-design-system/ibm-dotcom-library/issues/3822))
45
+ ([49e1308](https://github.com/carbon-design-system/ibm-dotcom-library/commit/49e1308)),
46
+ closes
47
+ [#3824](https://github.com/carbon-design-system/ibm-dotcom-library/issues/3824)
48
+
49
+ # Change Log
50
+
51
+ All notable changes to this project will be documented in this file. See
52
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
53
+
6
54
  ## [1.10.1](https://github.com/carbon-design-system/ibm-dotcom-library/compare/@carbon/ibmdotcom-services@1.10.1-rc.0...@carbon/ibmdotcom-services@1.10.1) (2020-08-28)
7
55
 
8
56
  **Note:** Version bump only for package @carbon/ibmdotcom-services
@@ -1,8 +1,8 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
5
  import _createClass from "@babel/runtime/helpers/createClass";
5
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
6
6
 
7
7
  var _root$location;
8
8
 
@@ -13,7 +13,6 @@ var _root$location;
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
15
  import axios from 'axios';
16
- import DDOAPI from '../DDO/DDO';
17
16
  import geolocation from '@carbon/ibmdotcom-utilities/es/utilities/geolocation/geolocation';
18
17
  import ipcinfoCookie from '@carbon/ibmdotcom-utilities/es/utilities/ipcinfoCookie/ipcinfoCookie';
19
18
  import root from 'window-or-global';
@@ -112,7 +111,9 @@ var _sessionListKey = 'dds-countrylist';
112
111
  */
113
112
 
114
113
  var _getLocaleByLangAttr = function _getLocaleByLangAttr() {
115
- if (root.document.documentElement.lang) {
114
+ var _root$document, _root$document$docume;
115
+
116
+ if ((_root$document = root.document) === null || _root$document === void 0 ? void 0 : (_root$document$docume = _root$document.documentElement) === null || _root$document$docume === void 0 ? void 0 : _root$document$docume.lang) {
116
117
  var lang = root.document.documentElement.lang.toLowerCase();
117
118
 
118
119
  if (lang.indexOf('-') === -1) {
@@ -145,76 +146,37 @@ var _requestsList = {};
145
146
  */
146
147
 
147
148
  function _getLocaleFromDDO() {
148
- return _getLocaleFromDDO2.apply(this, arguments);
149
- }
150
- /**
151
- * Locale API class with method of fetching user's locale for
152
- * ibm.com
153
- */
149
+ var _ddoLocal$page, _ddoLocal$page$pageIn, _ddoLocal$page2, _ddoLocal$page2$pageI, _ddoLocal$page2$pageI2;
154
150
 
151
+ var ddoLocal = Object.assign({}, root.digitalData || {});
155
152
 
156
- function _getLocaleFromDDO2() {
157
- _getLocaleFromDDO2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
158
- var ddoLocal, pageInfoIBM;
159
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
160
- while (1) {
161
- switch (_context5.prev = _context5.next) {
162
- case 0:
163
- _context5.next = 2;
164
- return DDOAPI.getAll();
153
+ if (((_ddoLocal$page = ddoLocal.page) === null || _ddoLocal$page === void 0 ? void 0 : (_ddoLocal$page$pageIn = _ddoLocal$page.pageInfo) === null || _ddoLocal$page$pageIn === void 0 ? void 0 : _ddoLocal$page$pageIn.language) && ((_ddoLocal$page2 = ddoLocal.page) === null || _ddoLocal$page2 === void 0 ? void 0 : (_ddoLocal$page2$pageI = _ddoLocal$page2.pageInfo) === null || _ddoLocal$page2$pageI === void 0 ? void 0 : (_ddoLocal$page2$pageI2 = _ddoLocal$page2$pageI.ibm) === null || _ddoLocal$page2$pageI2 === void 0 ? void 0 : _ddoLocal$page2$pageI2.country)) {
154
+ var lang = {}; // Set proper LC for us to use.
165
155
 
166
- case 2:
167
- ddoLocal = _context5.sent;
156
+ lang.lc = ddoLocal.page.pageInfo.language.substring(0, 2).toLowerCase();
157
+ lang.cc = ddoLocal.page.pageInfo.ibm.country.toLowerCase().trim(); // If there are multiple countries use just the first one for the CC value
168
158
 
169
- if (!(ddoLocal && ddoLocal.page && ddoLocal.page.pageInfo)) {
170
- _context5.next = 10;
171
- break;
172
- }
173
-
174
- pageInfoIBM = ddoLocal.page.pageInfo.ibm; // Set proper LC for us to use.
175
-
176
- if (ddoLocal.page.pageInfo.language) {
177
- pageInfoIBM.lc = ddoLocal.page.pageInfo.language.substring(0, 2).toLowerCase();
178
- }
159
+ if (lang.cc.indexOf(',') > -1) lang.cc = lang.cc.substring(0, lang.cc.indexOf(',')).trim(); // Gb will be uk elsewhere
179
160
 
180
- if (pageInfoIBM) {
181
- // Set proper CC for us to use.
182
- if (pageInfoIBM.country) {
183
- pageInfoIBM.cc = pageInfoIBM.country.toLowerCase().trim(); // If there are multiple countries use just the first one for the CC value
161
+ if (lang.cc === 'gb') {
162
+ lang.cc = 'uk';
163
+ } // Map worldwide (ZZ) pages to US
184
164
 
185
- if (pageInfoIBM.cc.indexOf(',') > -1) pageInfoIBM.cc = pageInfoIBM.cc.substring(0, pageInfoIBM.cc.indexOf(',')).trim(); // Gb will be uk elsewhere
186
165
 
187
- if (pageInfoIBM.cc === 'gb') pageInfoIBM.cc = 'uk'; // Map worldwide (ZZ) pages to US
188
-
189
- if (pageInfoIBM.cc === 'zz') pageInfoIBM.cc = 'us';
190
- }
191
- }
192
-
193
- if (!(!pageInfoIBM.lc || !pageInfoIBM.cc)) {
194
- _context5.next = 9;
195
- break;
196
- }
197
-
198
- return _context5.abrupt("return", false);
199
-
200
- case 9:
201
- return _context5.abrupt("return", {
202
- cc: pageInfoIBM.cc,
203
- lc: pageInfoIBM.lc
204
- });
166
+ if (lang.cc === 'zz') {
167
+ lang.cc = 'us';
168
+ }
205
169
 
206
- case 10:
207
- return _context5.abrupt("return", false);
170
+ return lang;
171
+ }
208
172
 
209
- case 11:
210
- case "end":
211
- return _context5.stop();
212
- }
213
- }
214
- }, _callee5);
215
- }));
216
- return _getLocaleFromDDO2.apply(this, arguments);
173
+ return false;
217
174
  }
175
+ /**
176
+ * Locale API class with method of fetching user's locale for
177
+ * ibm.com
178
+ */
179
+
218
180
 
219
181
  var LocaleAPI = /*#__PURE__*/function () {
220
182
  function LocaleAPI() {
@@ -361,43 +323,17 @@ var LocaleAPI = /*#__PURE__*/function () {
361
323
 
362
324
  }, {
363
325
  key: "getLang",
364
- value: function () {
365
- var _getLang = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
366
- var getLocaleFromDDO;
367
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
368
- while (1) {
369
- switch (_context2.prev = _context2.next) {
370
- case 0:
371
- _context2.next = 2;
372
- return _getLocaleFromDDO();
373
-
374
- case 2:
375
- getLocaleFromDDO = _context2.sent;
376
-
377
- if (!getLocaleFromDDO) {
378
- _context2.next = 7;
379
- break;
380
- }
381
-
382
- return _context2.abrupt("return", getLocaleFromDDO);
383
-
384
- case 7:
385
- return _context2.abrupt("return", _getLocaleByLangAttr());
386
-
387
- case 8:
388
- case "end":
389
- return _context2.stop();
390
- }
391
- }
392
- }, _callee2);
393
- }));
394
-
395
- function getLang() {
396
- return _getLang.apply(this, arguments);
397
- }
326
+ value: function getLang() {
327
+ return new Promise(function (resolve) {
328
+ var getLocaleFromDDO = _getLocaleFromDDO();
398
329
 
399
- return getLang;
400
- }()
330
+ if (getLocaleFromDDO) {
331
+ resolve(getLocaleFromDDO);
332
+ } else {
333
+ resolve(_getLocaleByLangAttr());
334
+ }
335
+ });
336
+ }
401
337
  /**
402
338
  * This fetches the language display name based on language/locale combo
403
339
  *
@@ -409,35 +345,35 @@ var LocaleAPI = /*#__PURE__*/function () {
409
345
  }, {
410
346
  key: "getLangDisplay",
411
347
  value: function () {
412
- var _getLangDisplay = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(langCode) {
348
+ var _getLangDisplay = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(langCode) {
413
349
  var lang, list, countries, location;
414
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
350
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
415
351
  while (1) {
416
- switch (_context3.prev = _context3.next) {
352
+ switch (_context2.prev = _context2.next) {
417
353
  case 0:
418
354
  if (!langCode) {
419
- _context3.next = 4;
355
+ _context2.next = 4;
420
356
  break;
421
357
  }
422
358
 
423
- _context3.t0 = langCode;
424
- _context3.next = 7;
359
+ _context2.t0 = langCode;
360
+ _context2.next = 7;
425
361
  break;
426
362
 
427
363
  case 4:
428
- _context3.next = 6;
364
+ _context2.next = 6;
429
365
  return this.getLang();
430
366
 
431
367
  case 6:
432
- _context3.t0 = _context3.sent;
368
+ _context2.t0 = _context2.sent;
433
369
 
434
370
  case 7:
435
- lang = _context3.t0;
436
- _context3.next = 10;
371
+ lang = _context2.t0;
372
+ _context2.next = 10;
437
373
  return this.getList(lang);
438
374
 
439
375
  case 10:
440
- list = _context3.sent;
376
+ list = _context2.sent;
441
377
  // combines the countryList arrays
442
378
  countries = [];
443
379
  list.regionList.forEach(function (region) {
@@ -463,21 +399,21 @@ var LocaleAPI = /*#__PURE__*/function () {
463
399
  });
464
400
 
465
401
  if (!location.length) {
466
- _context3.next = 18;
402
+ _context2.next = 18;
467
403
  break;
468
404
  }
469
405
 
470
- return _context3.abrupt("return", "".concat(location[0].name, " \u2014 ").concat(location[0].locale[0][1]));
406
+ return _context2.abrupt("return", "".concat(location[0].name, " \u2014 ").concat(location[0].locale[0][1]));
471
407
 
472
408
  case 18:
473
- return _context3.abrupt("return", _localeNameDefault);
409
+ return _context2.abrupt("return", _localeNameDefault);
474
410
 
475
411
  case 19:
476
412
  case "end":
477
- return _context3.stop();
413
+ return _context2.stop();
478
414
  }
479
415
  }
480
- }, _callee3, this);
416
+ }, _callee2, this);
481
417
  }));
482
418
 
483
419
  function getLangDisplay(_x) {
@@ -508,36 +444,36 @@ var LocaleAPI = /*#__PURE__*/function () {
508
444
  }, {
509
445
  key: "getList",
510
446
  value: function () {
511
- var _getList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_ref) {
447
+ var _getList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref) {
512
448
  var _this = this;
513
449
 
514
450
  var cc, lc, key, cachedRequest;
515
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
451
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
516
452
  while (1) {
517
- switch (_context4.prev = _context4.next) {
453
+ switch (_context3.prev = _context3.next) {
518
454
  case 0:
519
455
  cc = _ref.cc, lc = _ref.lc;
520
456
  key = "".concat(lc, "-").concat(cc);
521
457
  cachedRequest = _requestsList[key];
522
458
 
523
459
  if (!cachedRequest) {
524
- _context4.next = 5;
460
+ _context3.next = 5;
525
461
  break;
526
462
  }
527
463
 
528
- return _context4.abrupt("return", cachedRequest);
464
+ return _context3.abrupt("return", cachedRequest);
529
465
 
530
466
  case 5:
531
- return _context4.abrupt("return", _requestsList[key] = new Promise(function (resolve, reject) {
467
+ return _context3.abrupt("return", _requestsList[key] = new Promise(function (resolve, reject) {
532
468
  _this.fetchList(cc, lc, resolve, reject);
533
469
  }));
534
470
 
535
471
  case 6:
536
472
  case "end":
537
- return _context4.stop();
473
+ return _context3.stop();
538
474
  }
539
475
  }
540
- }, _callee4);
476
+ }, _callee3);
541
477
  }));
542
478
 
543
479
  function getList(_x2) {
@@ -252,6 +252,21 @@ var TranslationAPI = /*#__PURE__*/function () {
252
252
  }, {
253
253
  key: "transformData",
254
254
  value: function transformData(data) {
255
+ var _data$profileMenu;
256
+
257
+ var signedout = (_data$profileMenu = data.profileMenu) === null || _data$profileMenu === void 0 ? void 0 : _data$profileMenu.signedout;
258
+ var strReplace = 'state=https%3A%2F%2Fwww.ibm.com';
259
+ var loginIdx = signedout.findIndex(function (elem) {
260
+ var _elem$url;
261
+
262
+ return ((_elem$url = elem.url) === null || _elem$url === void 0 ? void 0 : _elem$url.indexOf(strReplace)) !== -1;
263
+ });
264
+
265
+ if (loginIdx !== -1 && root.location) {
266
+ var location = encodeURIComponent(root.location.href);
267
+ data.profileMenu.signedout[loginIdx].url = signedout[loginIdx].url.replace(strReplace, "state=".concat(location));
268
+ }
269
+
255
270
  data.footerMenu.push(data.socialFollow);
256
271
  return data;
257
272
  }
@@ -11,16 +11,14 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
11
11
 
12
12
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
13
13
 
14
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
15
+
14
16
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
17
 
16
18
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
19
 
18
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
19
-
20
20
  var _axios = _interopRequireDefault(require("axios"));
21
21
 
22
- var _DDO = _interopRequireDefault(require("../DDO/DDO"));
23
-
24
22
  var _geolocation = _interopRequireDefault(require("@carbon/ibmdotcom-utilities/lib/utilities/geolocation/geolocation"));
25
23
 
26
24
  var _ipcinfoCookie = _interopRequireDefault(require("@carbon/ibmdotcom-utilities/lib/utilities/ipcinfoCookie/ipcinfoCookie"));
@@ -123,7 +121,9 @@ var _sessionListKey = 'dds-countrylist';
123
121
  */
124
122
 
125
123
  var _getLocaleByLangAttr = function _getLocaleByLangAttr() {
126
- if (_windowOrGlobal.default.document.documentElement.lang) {
124
+ var _root$document, _root$document$docume;
125
+
126
+ if ((_root$document = _windowOrGlobal.default.document) === null || _root$document === void 0 ? void 0 : (_root$document$docume = _root$document.documentElement) === null || _root$document$docume === void 0 ? void 0 : _root$document$docume.lang) {
127
127
  var lang = _windowOrGlobal.default.document.documentElement.lang.toLowerCase();
128
128
 
129
129
  if (lang.indexOf('-') === -1) {
@@ -156,76 +156,37 @@ var _requestsList = {};
156
156
  */
157
157
 
158
158
  function _getLocaleFromDDO() {
159
- return _getLocaleFromDDO2.apply(this, arguments);
160
- }
161
- /**
162
- * Locale API class with method of fetching user's locale for
163
- * ibm.com
164
- */
165
-
166
-
167
- function _getLocaleFromDDO2() {
168
- _getLocaleFromDDO2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
169
- var ddoLocal, pageInfoIBM;
170
- return _regenerator.default.wrap(function _callee5$(_context5) {
171
- while (1) {
172
- switch (_context5.prev = _context5.next) {
173
- case 0:
174
- _context5.next = 2;
175
- return _DDO.default.getAll();
176
-
177
- case 2:
178
- ddoLocal = _context5.sent;
179
-
180
- if (!(ddoLocal && ddoLocal.page && ddoLocal.page.pageInfo)) {
181
- _context5.next = 10;
182
- break;
183
- }
159
+ var _ddoLocal$page, _ddoLocal$page$pageIn, _ddoLocal$page2, _ddoLocal$page2$pageI, _ddoLocal$page2$pageI2;
184
160
 
185
- pageInfoIBM = ddoLocal.page.pageInfo.ibm; // Set proper LC for us to use.
161
+ var ddoLocal = Object.assign({}, _windowOrGlobal.default.digitalData || {});
186
162
 
187
- if (ddoLocal.page.pageInfo.language) {
188
- pageInfoIBM.lc = ddoLocal.page.pageInfo.language.substring(0, 2).toLowerCase();
189
- }
190
-
191
- if (pageInfoIBM) {
192
- // Set proper CC for us to use.
193
- if (pageInfoIBM.country) {
194
- pageInfoIBM.cc = pageInfoIBM.country.toLowerCase().trim(); // If there are multiple countries use just the first one for the CC value
163
+ if (((_ddoLocal$page = ddoLocal.page) === null || _ddoLocal$page === void 0 ? void 0 : (_ddoLocal$page$pageIn = _ddoLocal$page.pageInfo) === null || _ddoLocal$page$pageIn === void 0 ? void 0 : _ddoLocal$page$pageIn.language) && ((_ddoLocal$page2 = ddoLocal.page) === null || _ddoLocal$page2 === void 0 ? void 0 : (_ddoLocal$page2$pageI = _ddoLocal$page2.pageInfo) === null || _ddoLocal$page2$pageI === void 0 ? void 0 : (_ddoLocal$page2$pageI2 = _ddoLocal$page2$pageI.ibm) === null || _ddoLocal$page2$pageI2 === void 0 ? void 0 : _ddoLocal$page2$pageI2.country)) {
164
+ var lang = {}; // Set proper LC for us to use.
195
165
 
196
- if (pageInfoIBM.cc.indexOf(',') > -1) pageInfoIBM.cc = pageInfoIBM.cc.substring(0, pageInfoIBM.cc.indexOf(',')).trim(); // Gb will be uk elsewhere
166
+ lang.lc = ddoLocal.page.pageInfo.language.substring(0, 2).toLowerCase();
167
+ lang.cc = ddoLocal.page.pageInfo.ibm.country.toLowerCase().trim(); // If there are multiple countries use just the first one for the CC value
197
168
 
198
- if (pageInfoIBM.cc === 'gb') pageInfoIBM.cc = 'uk'; // Map worldwide (ZZ) pages to US
199
-
200
- if (pageInfoIBM.cc === 'zz') pageInfoIBM.cc = 'us';
201
- }
202
- }
169
+ if (lang.cc.indexOf(',') > -1) lang.cc = lang.cc.substring(0, lang.cc.indexOf(',')).trim(); // Gb will be uk elsewhere
203
170
 
204
- if (!(!pageInfoIBM.lc || !pageInfoIBM.cc)) {
205
- _context5.next = 9;
206
- break;
207
- }
171
+ if (lang.cc === 'gb') {
172
+ lang.cc = 'uk';
173
+ } // Map worldwide (ZZ) pages to US
208
174
 
209
- return _context5.abrupt("return", false);
210
175
 
211
- case 9:
212
- return _context5.abrupt("return", {
213
- cc: pageInfoIBM.cc,
214
- lc: pageInfoIBM.lc
215
- });
176
+ if (lang.cc === 'zz') {
177
+ lang.cc = 'us';
178
+ }
216
179
 
217
- case 10:
218
- return _context5.abrupt("return", false);
180
+ return lang;
181
+ }
219
182
 
220
- case 11:
221
- case "end":
222
- return _context5.stop();
223
- }
224
- }
225
- }, _callee5);
226
- }));
227
- return _getLocaleFromDDO2.apply(this, arguments);
183
+ return false;
228
184
  }
185
+ /**
186
+ * Locale API class with method of fetching user's locale for
187
+ * ibm.com
188
+ */
189
+
229
190
 
230
191
  var LocaleAPI = /*#__PURE__*/function () {
231
192
  function LocaleAPI() {
@@ -373,43 +334,17 @@ var LocaleAPI = /*#__PURE__*/function () {
373
334
 
374
335
  }, {
375
336
  key: "getLang",
376
- value: function () {
377
- var _getLang = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
378
- var getLocaleFromDDO;
379
- return _regenerator.default.wrap(function _callee2$(_context2) {
380
- while (1) {
381
- switch (_context2.prev = _context2.next) {
382
- case 0:
383
- _context2.next = 2;
384
- return _getLocaleFromDDO();
385
-
386
- case 2:
387
- getLocaleFromDDO = _context2.sent;
388
-
389
- if (!getLocaleFromDDO) {
390
- _context2.next = 7;
391
- break;
392
- }
393
-
394
- return _context2.abrupt("return", getLocaleFromDDO);
395
-
396
- case 7:
397
- return _context2.abrupt("return", _getLocaleByLangAttr());
398
-
399
- case 8:
400
- case "end":
401
- return _context2.stop();
402
- }
403
- }
404
- }, _callee2);
405
- }));
337
+ value: function getLang() {
338
+ return new Promise(function (resolve) {
339
+ var getLocaleFromDDO = _getLocaleFromDDO();
406
340
 
407
- function getLang() {
408
- return _getLang.apply(this, arguments);
409
- }
410
-
411
- return getLang;
412
- }()
341
+ if (getLocaleFromDDO) {
342
+ resolve(getLocaleFromDDO);
343
+ } else {
344
+ resolve(_getLocaleByLangAttr());
345
+ }
346
+ });
347
+ }
413
348
  /**
414
349
  * This fetches the language display name based on language/locale combo
415
350
  *
@@ -421,35 +356,35 @@ var LocaleAPI = /*#__PURE__*/function () {
421
356
  }, {
422
357
  key: "getLangDisplay",
423
358
  value: function () {
424
- var _getLangDisplay = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(langCode) {
359
+ var _getLangDisplay = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(langCode) {
425
360
  var lang, list, countries, location;
426
- return _regenerator.default.wrap(function _callee3$(_context3) {
361
+ return _regenerator.default.wrap(function _callee2$(_context2) {
427
362
  while (1) {
428
- switch (_context3.prev = _context3.next) {
363
+ switch (_context2.prev = _context2.next) {
429
364
  case 0:
430
365
  if (!langCode) {
431
- _context3.next = 4;
366
+ _context2.next = 4;
432
367
  break;
433
368
  }
434
369
 
435
- _context3.t0 = langCode;
436
- _context3.next = 7;
370
+ _context2.t0 = langCode;
371
+ _context2.next = 7;
437
372
  break;
438
373
 
439
374
  case 4:
440
- _context3.next = 6;
375
+ _context2.next = 6;
441
376
  return this.getLang();
442
377
 
443
378
  case 6:
444
- _context3.t0 = _context3.sent;
379
+ _context2.t0 = _context2.sent;
445
380
 
446
381
  case 7:
447
- lang = _context3.t0;
448
- _context3.next = 10;
382
+ lang = _context2.t0;
383
+ _context2.next = 10;
449
384
  return this.getList(lang);
450
385
 
451
386
  case 10:
452
- list = _context3.sent;
387
+ list = _context2.sent;
453
388
  // combines the countryList arrays
454
389
  countries = [];
455
390
  list.regionList.forEach(function (region) {
@@ -475,21 +410,21 @@ var LocaleAPI = /*#__PURE__*/function () {
475
410
  });
476
411
 
477
412
  if (!location.length) {
478
- _context3.next = 18;
413
+ _context2.next = 18;
479
414
  break;
480
415
  }
481
416
 
482
- return _context3.abrupt("return", "".concat(location[0].name, " \u2014 ").concat(location[0].locale[0][1]));
417
+ return _context2.abrupt("return", "".concat(location[0].name, " \u2014 ").concat(location[0].locale[0][1]));
483
418
 
484
419
  case 18:
485
- return _context3.abrupt("return", _localeNameDefault);
420
+ return _context2.abrupt("return", _localeNameDefault);
486
421
 
487
422
  case 19:
488
423
  case "end":
489
- return _context3.stop();
424
+ return _context2.stop();
490
425
  }
491
426
  }
492
- }, _callee3, this);
427
+ }, _callee2, this);
493
428
  }));
494
429
 
495
430
  function getLangDisplay(_x) {
@@ -520,36 +455,36 @@ var LocaleAPI = /*#__PURE__*/function () {
520
455
  }, {
521
456
  key: "getList",
522
457
  value: function () {
523
- var _getList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(_ref) {
458
+ var _getList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref) {
524
459
  var _this = this;
525
460
 
526
461
  var cc, lc, key, cachedRequest;
527
- return _regenerator.default.wrap(function _callee4$(_context4) {
462
+ return _regenerator.default.wrap(function _callee3$(_context3) {
528
463
  while (1) {
529
- switch (_context4.prev = _context4.next) {
464
+ switch (_context3.prev = _context3.next) {
530
465
  case 0:
531
466
  cc = _ref.cc, lc = _ref.lc;
532
467
  key = "".concat(lc, "-").concat(cc);
533
468
  cachedRequest = _requestsList[key];
534
469
 
535
470
  if (!cachedRequest) {
536
- _context4.next = 5;
471
+ _context3.next = 5;
537
472
  break;
538
473
  }
539
474
 
540
- return _context4.abrupt("return", cachedRequest);
475
+ return _context3.abrupt("return", cachedRequest);
541
476
 
542
477
  case 5:
543
- return _context4.abrupt("return", _requestsList[key] = new Promise(function (resolve, reject) {
478
+ return _context3.abrupt("return", _requestsList[key] = new Promise(function (resolve, reject) {
544
479
  _this.fetchList(cc, lc, resolve, reject);
545
480
  }));
546
481
 
547
482
  case 6:
548
483
  case "end":
549
- return _context4.stop();
484
+ return _context3.stop();
550
485
  }
551
486
  }
552
- }, _callee4);
487
+ }, _callee3);
553
488
  }));
554
489
 
555
490
  function getList(_x2) {
@@ -261,6 +261,21 @@ var TranslationAPI = /*#__PURE__*/function () {
261
261
  }, {
262
262
  key: "transformData",
263
263
  value: function transformData(data) {
264
+ var _data$profileMenu;
265
+
266
+ var signedout = (_data$profileMenu = data.profileMenu) === null || _data$profileMenu === void 0 ? void 0 : _data$profileMenu.signedout;
267
+ var strReplace = 'state=https%3A%2F%2Fwww.ibm.com';
268
+ var loginIdx = signedout.findIndex(function (elem) {
269
+ var _elem$url;
270
+
271
+ return ((_elem$url = elem.url) === null || _elem$url === void 0 ? void 0 : _elem$url.indexOf(strReplace)) !== -1;
272
+ });
273
+
274
+ if (loginIdx !== -1 && _windowOrGlobal.default.location) {
275
+ var location = encodeURIComponent(_windowOrGlobal.default.location.href);
276
+ data.profileMenu.signedout[loginIdx].url = signedout[loginIdx].url.replace(strReplace, "state=".concat(location));
277
+ }
278
+
264
279
  data.footerMenu.push(data.socialFollow);
265
280
  return data;
266
281
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibmdotcom-services",
3
3
  "description": "IBM.com Library Services",
4
- "version": "1.10.1",
4
+ "version": "1.10.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -34,7 +34,7 @@
34
34
  "jsdoc": "rimraf docs && jsdoc -c ./jsdoc.json ./README.md"
35
35
  },
36
36
  "dependencies": {
37
- "@carbon/ibmdotcom-utilities": "1.10.1",
37
+ "@carbon/ibmdotcom-utilities": "1.10.2",
38
38
  "axios": "^0.19.0",
39
39
  "jsonp": "^0.2.1",
40
40
  "window-or-global": "^1.0.1"
@@ -85,5 +85,5 @@
85
85
  "release": {
86
86
  "branch": "master"
87
87
  },
88
- "gitHead": "acfad6a886196e2a51946e6b4ade2d9e64208b0c"
88
+ "gitHead": "7446b254f747436c427f05b1500f41eb606e77db"
89
89
  }
@@ -1163,7 +1163,7 @@
1163
1163
  *
1164
1164
  */
1165
1165
  var settings = {
1166
- version: 'dds.v1.10.1',
1166
+ version: 'Carbon:IBM.com Library v1.10.2',
1167
1167
  stablePrefix: 'dds'
1168
1168
  };
1169
1169
 
@@ -3115,9 +3115,8 @@
3115
3115
  lc = _ref.lc;
3116
3116
  var info = "cc=".concat(cc, ";lc=").concat(lc);
3117
3117
  js_cookie.set(_cookieName, encodeURIComponent(info), {
3118
- expires: 365
3119
- }, {
3120
- secure: true
3118
+ expires: 365,
3119
+ domain: '.ibm.com'
3121
3120
  });
3122
3121
  }
3123
3122
  }]);
@@ -3221,7 +3220,9 @@
3221
3220
  */
3222
3221
 
3223
3222
  var _getLocaleByLangAttr = function _getLocaleByLangAttr() {
3224
- if (lib.document.documentElement.lang) {
3223
+ var _root$document, _root$document$docume;
3224
+
3225
+ if ((_root$document = lib.document) === null || _root$document === void 0 ? void 0 : (_root$document$docume = _root$document.documentElement) === null || _root$document$docume === void 0 ? void 0 : _root$document$docume.lang) {
3225
3226
  var lang = lib.document.documentElement.lang.toLowerCase();
3226
3227
 
3227
3228
  if (lang.indexOf('-') === -1) {
@@ -3254,76 +3255,37 @@
3254
3255
  */
3255
3256
 
3256
3257
  function _getLocaleFromDDO() {
3257
- return _getLocaleFromDDO2.apply(this, arguments);
3258
- }
3259
- /**
3260
- * Locale API class with method of fetching user's locale for
3261
- * ibm.com
3262
- */
3263
-
3264
-
3265
- function _getLocaleFromDDO2() {
3266
- _getLocaleFromDDO2 = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee5() {
3267
- var ddoLocal, pageInfoIBM;
3268
- return regenerator.wrap(function _callee5$(_context5) {
3269
- while (1) {
3270
- switch (_context5.prev = _context5.next) {
3271
- case 0:
3272
- _context5.next = 2;
3273
- return DDOAPI.getAll();
3258
+ var _ddoLocal$page, _ddoLocal$page$pageIn, _ddoLocal$page2, _ddoLocal$page2$pageI, _ddoLocal$page2$pageI2;
3274
3259
 
3275
- case 2:
3276
- ddoLocal = _context5.sent;
3277
-
3278
- if (!(ddoLocal && ddoLocal.page && ddoLocal.page.pageInfo)) {
3279
- _context5.next = 10;
3280
- break;
3281
- }
3282
-
3283
- pageInfoIBM = ddoLocal.page.pageInfo.ibm; // Set proper LC for us to use.
3260
+ var ddoLocal = Object.assign({}, lib.digitalData || {});
3284
3261
 
3285
- if (ddoLocal.page.pageInfo.language) {
3286
- pageInfoIBM.lc = ddoLocal.page.pageInfo.language.substring(0, 2).toLowerCase();
3287
- }
3288
-
3289
- if (pageInfoIBM) {
3290
- // Set proper CC for us to use.
3291
- if (pageInfoIBM.country) {
3292
- pageInfoIBM.cc = pageInfoIBM.country.toLowerCase().trim(); // If there are multiple countries use just the first one for the CC value
3293
-
3294
- if (pageInfoIBM.cc.indexOf(',') > -1) pageInfoIBM.cc = pageInfoIBM.cc.substring(0, pageInfoIBM.cc.indexOf(',')).trim(); // Gb will be uk elsewhere
3262
+ if (((_ddoLocal$page = ddoLocal.page) === null || _ddoLocal$page === void 0 ? void 0 : (_ddoLocal$page$pageIn = _ddoLocal$page.pageInfo) === null || _ddoLocal$page$pageIn === void 0 ? void 0 : _ddoLocal$page$pageIn.language) && ((_ddoLocal$page2 = ddoLocal.page) === null || _ddoLocal$page2 === void 0 ? void 0 : (_ddoLocal$page2$pageI = _ddoLocal$page2.pageInfo) === null || _ddoLocal$page2$pageI === void 0 ? void 0 : (_ddoLocal$page2$pageI2 = _ddoLocal$page2$pageI.ibm) === null || _ddoLocal$page2$pageI2 === void 0 ? void 0 : _ddoLocal$page2$pageI2.country)) {
3263
+ var lang = {}; // Set proper LC for us to use.
3295
3264
 
3296
- if (pageInfoIBM.cc === 'gb') pageInfoIBM.cc = 'uk'; // Map worldwide (ZZ) pages to US
3265
+ lang.lc = ddoLocal.page.pageInfo.language.substring(0, 2).toLowerCase();
3266
+ lang.cc = ddoLocal.page.pageInfo.ibm.country.toLowerCase().trim(); // If there are multiple countries use just the first one for the CC value
3297
3267
 
3298
- if (pageInfoIBM.cc === 'zz') pageInfoIBM.cc = 'us';
3299
- }
3300
- }
3268
+ if (lang.cc.indexOf(',') > -1) lang.cc = lang.cc.substring(0, lang.cc.indexOf(',')).trim(); // Gb will be uk elsewhere
3301
3269
 
3302
- if (!(!pageInfoIBM.lc || !pageInfoIBM.cc)) {
3303
- _context5.next = 9;
3304
- break;
3305
- }
3270
+ if (lang.cc === 'gb') {
3271
+ lang.cc = 'uk';
3272
+ } // Map worldwide (ZZ) pages to US
3306
3273
 
3307
- return _context5.abrupt("return", false);
3308
3274
 
3309
- case 9:
3310
- return _context5.abrupt("return", {
3311
- cc: pageInfoIBM.cc,
3312
- lc: pageInfoIBM.lc
3313
- });
3275
+ if (lang.cc === 'zz') {
3276
+ lang.cc = 'us';
3277
+ }
3314
3278
 
3315
- case 10:
3316
- return _context5.abrupt("return", false);
3279
+ return lang;
3280
+ }
3317
3281
 
3318
- case 11:
3319
- case "end":
3320
- return _context5.stop();
3321
- }
3322
- }
3323
- }, _callee5);
3324
- }));
3325
- return _getLocaleFromDDO2.apply(this, arguments);
3282
+ return false;
3326
3283
  }
3284
+ /**
3285
+ * Locale API class with method of fetching user's locale for
3286
+ * ibm.com
3287
+ */
3288
+
3327
3289
 
3328
3290
  var LocaleAPI = /*#__PURE__*/function () {
3329
3291
  function LocaleAPI() {
@@ -3470,43 +3432,17 @@
3470
3432
 
3471
3433
  }, {
3472
3434
  key: "getLang",
3473
- value: function () {
3474
- var _getLang = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
3475
- var getLocaleFromDDO;
3476
- return regenerator.wrap(function _callee2$(_context2) {
3477
- while (1) {
3478
- switch (_context2.prev = _context2.next) {
3479
- case 0:
3480
- _context2.next = 2;
3481
- return _getLocaleFromDDO();
3435
+ value: function getLang() {
3436
+ return new Promise(function (resolve) {
3437
+ var getLocaleFromDDO = _getLocaleFromDDO();
3482
3438
 
3483
- case 2:
3484
- getLocaleFromDDO = _context2.sent;
3485
-
3486
- if (!getLocaleFromDDO) {
3487
- _context2.next = 7;
3488
- break;
3489
- }
3490
-
3491
- return _context2.abrupt("return", getLocaleFromDDO);
3492
-
3493
- case 7:
3494
- return _context2.abrupt("return", _getLocaleByLangAttr());
3495
-
3496
- case 8:
3497
- case "end":
3498
- return _context2.stop();
3499
- }
3500
- }
3501
- }, _callee2);
3502
- }));
3503
-
3504
- function getLang() {
3505
- return _getLang.apply(this, arguments);
3506
- }
3507
-
3508
- return getLang;
3509
- }()
3439
+ if (getLocaleFromDDO) {
3440
+ resolve(getLocaleFromDDO);
3441
+ } else {
3442
+ resolve(_getLocaleByLangAttr());
3443
+ }
3444
+ });
3445
+ }
3510
3446
  /**
3511
3447
  * This fetches the language display name based on language/locale combo
3512
3448
  *
@@ -3518,35 +3454,35 @@
3518
3454
  }, {
3519
3455
  key: "getLangDisplay",
3520
3456
  value: function () {
3521
- var _getLangDisplay = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(langCode) {
3457
+ var _getLangDisplay = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(langCode) {
3522
3458
  var lang, list, countries, location;
3523
- return regenerator.wrap(function _callee3$(_context3) {
3459
+ return regenerator.wrap(function _callee2$(_context2) {
3524
3460
  while (1) {
3525
- switch (_context3.prev = _context3.next) {
3461
+ switch (_context2.prev = _context2.next) {
3526
3462
  case 0:
3527
3463
  if (!langCode) {
3528
- _context3.next = 4;
3464
+ _context2.next = 4;
3529
3465
  break;
3530
3466
  }
3531
3467
 
3532
- _context3.t0 = langCode;
3533
- _context3.next = 7;
3468
+ _context2.t0 = langCode;
3469
+ _context2.next = 7;
3534
3470
  break;
3535
3471
 
3536
3472
  case 4:
3537
- _context3.next = 6;
3473
+ _context2.next = 6;
3538
3474
  return this.getLang();
3539
3475
 
3540
3476
  case 6:
3541
- _context3.t0 = _context3.sent;
3477
+ _context2.t0 = _context2.sent;
3542
3478
 
3543
3479
  case 7:
3544
- lang = _context3.t0;
3545
- _context3.next = 10;
3480
+ lang = _context2.t0;
3481
+ _context2.next = 10;
3546
3482
  return this.getList(lang);
3547
3483
 
3548
3484
  case 10:
3549
- list = _context3.sent;
3485
+ list = _context2.sent;
3550
3486
  // combines the countryList arrays
3551
3487
  countries = [];
3552
3488
  list.regionList.forEach(function (region) {
@@ -3572,21 +3508,21 @@
3572
3508
  });
3573
3509
 
3574
3510
  if (!location.length) {
3575
- _context3.next = 18;
3511
+ _context2.next = 18;
3576
3512
  break;
3577
3513
  }
3578
3514
 
3579
- return _context3.abrupt("return", "".concat(location[0].name, " \u2014 ").concat(location[0].locale[0][1]));
3515
+ return _context2.abrupt("return", "".concat(location[0].name, " \u2014 ").concat(location[0].locale[0][1]));
3580
3516
 
3581
3517
  case 18:
3582
- return _context3.abrupt("return", _localeNameDefault);
3518
+ return _context2.abrupt("return", _localeNameDefault);
3583
3519
 
3584
3520
  case 19:
3585
3521
  case "end":
3586
- return _context3.stop();
3522
+ return _context2.stop();
3587
3523
  }
3588
3524
  }
3589
- }, _callee3, this);
3525
+ }, _callee2, this);
3590
3526
  }));
3591
3527
 
3592
3528
  function getLangDisplay(_x) {
@@ -3617,36 +3553,36 @@
3617
3553
  }, {
3618
3554
  key: "getList",
3619
3555
  value: function () {
3620
- var _getList = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(_ref) {
3556
+ var _getList = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(_ref) {
3621
3557
  var _this = this;
3622
3558
 
3623
3559
  var cc, lc, key, cachedRequest;
3624
- return regenerator.wrap(function _callee4$(_context4) {
3560
+ return regenerator.wrap(function _callee3$(_context3) {
3625
3561
  while (1) {
3626
- switch (_context4.prev = _context4.next) {
3562
+ switch (_context3.prev = _context3.next) {
3627
3563
  case 0:
3628
3564
  cc = _ref.cc, lc = _ref.lc;
3629
3565
  key = "".concat(lc, "-").concat(cc);
3630
3566
  cachedRequest = _requestsList[key];
3631
3567
 
3632
3568
  if (!cachedRequest) {
3633
- _context4.next = 5;
3569
+ _context3.next = 5;
3634
3570
  break;
3635
3571
  }
3636
3572
 
3637
- return _context4.abrupt("return", cachedRequest);
3573
+ return _context3.abrupt("return", cachedRequest);
3638
3574
 
3639
3575
  case 5:
3640
- return _context4.abrupt("return", _requestsList[key] = new Promise(function (resolve, reject) {
3576
+ return _context3.abrupt("return", _requestsList[key] = new Promise(function (resolve, reject) {
3641
3577
  _this.fetchList(cc, lc, resolve, reject);
3642
3578
  }));
3643
3579
 
3644
3580
  case 6:
3645
3581
  case "end":
3646
- return _context4.stop();
3582
+ return _context3.stop();
3647
3583
  }
3648
3584
  }
3649
- }, _callee4);
3585
+ }, _callee3);
3650
3586
  }));
3651
3587
 
3652
3588
  function getList(_x2) {
@@ -4883,6 +4819,21 @@
4883
4819
  }, {
4884
4820
  key: "transformData",
4885
4821
  value: function transformData(data) {
4822
+ var _data$profileMenu;
4823
+
4824
+ var signedout = (_data$profileMenu = data.profileMenu) === null || _data$profileMenu === void 0 ? void 0 : _data$profileMenu.signedout;
4825
+ var strReplace = 'state=https%3A%2F%2Fwww.ibm.com';
4826
+ var loginIdx = signedout.findIndex(function (elem) {
4827
+ var _elem$url;
4828
+
4829
+ return ((_elem$url = elem.url) === null || _elem$url === void 0 ? void 0 : _elem$url.indexOf(strReplace)) !== -1;
4830
+ });
4831
+
4832
+ if (loginIdx !== -1 && lib.location) {
4833
+ var location = encodeURIComponent(lib.location.href);
4834
+ data.profileMenu.signedout[loginIdx].url = signedout[loginIdx].url.replace(strReplace, "state=".concat(location));
4835
+ }
4836
+
4886
4837
  data.footerMenu.push(data.socialFollow);
4887
4838
  return data;
4888
4839
  }
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).IBMDotcomServices={})}(this,function(e){"use strict";var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function n(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,r.key,r)}}var r=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e,t){return e(t={exports:{}},t.exports),t.exports}var i=a(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}function n(r){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},n(r)}e.exports=n}),c="object"===("undefined"==typeof self?"undefined":i(self))&&self.self===self&&self||"object"===i(o)&&o.global===o&&o||o,s=process&&"true"===process.env.SCROLL_TRACKING||!1,u=process?"production":"development",f=function(){function e(){t(this,e)}return r(e,null,[{key:"registerEvent",value:function(e){c.ibmStats&&c.ibmStats.event(e)}},{key:"initAll",value:function(){this.initScrollTracker(),this.initDynamicTabs(),this.initModals()}},{key:"initScrollTracker",value:function(){if(s){var e=0,t=0,n=!1,r=this.registerEvent;c.addEventListener("scroll",function(){n=!0}),setInterval(function(){n&&(n=!1,(t=Math.floor(c.pageYOffset/400))>e&&r({type:"element",primaryCategory:"SCROLL DISTANCE",eventName:400*(e=t),executionPath:c.innerWidth,execPathReturnCode:c.innerHeight}))},50)}}},{key:"initDynamicTabs",value:function(){var e=this.triggerTabSelected.bind(this);c.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"!==u&&console.error("Error triggering tab event:",e)}}},{key:"initModals",value:function(){var e=this.triggerModalHide.bind(this);c.document.addEventListener("modal-hidden",function(t){e(t.target.id,t.detail.launchingElement.innerText)});var t=this.triggerModalShow.bind(this);c.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"!==u&&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"!==u&&console.error("Error triggering modal show event:",e)}}},{key:"videoPlayerStats",value:function(e){var t="",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"}if(0===n&&(n="start",o="0"),(n>=r||3===e.playerState)&&(n="end",o="100"),"end"!==n||1!==e.playerState){var a={type:"video",primaryCategory:"VIDEO",eventName:e.title,eventCategoryGroup:e.playerType,executionPath:e.videoId,execPathReturnCode:t,eventVidStatus:e.playerState,eventVidTimeStamp:n,eventVidLength:r,eventVidPlayed:o+"%"};try{this.registerEvent(a)}catch(e){"production"!==u&&console.error("Error firing video metrics:",e)}}}}]),e}(),l=a(function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new L(r||[]);return a._invoke=function(e,t,n){var r=l;return function(o,a){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return O()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=T(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=f(e,t,n);if("normal"===s.type){if(r=n.done?h:p,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,i),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function v(){}function y(){}function g(){}var w={};w[a]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(R([])));x&&x!==n&&r.call(x,a)&&(w=x);var E=g.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){var t;this._invoke=function(n,o){function a(){return new Promise(function(t,a){!function t(n,o,a,c){var s=f(e[n],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"===i(l)&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,a,c)},function(e){t("throw",e,a,c)}):Promise.resolve(l).then(function(e){u.value=e,a(u)},function(e){return t("throw",e,a,c)})}c(s.arg)}(n,o,t,a)})}return t=t?t.then(a,a):a()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=f(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function R(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:O}}function O(){return{value:t,done:!0}}return y.prototype=E.constructor=g,g.constructor=y,g[s]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(k.prototype),k.prototype[c]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,o){var a=new k(u(t,n,r,o));return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(E),E[s]="Generator",E[a]=function(){return this},E.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},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 n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},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),m},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),A(n),m}},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;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}});function p(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var d=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){p(a,r,o,i,c,"next",e)}function c(e){p(a,r,o,i,c,"throw",e)}i(void 0)})}},h="dds.v1.10.1";var m,v=50;function y(){return m||(m=new Promise(function(e,t){var n=0;!function r(){c.digitalData&&c.digitalData.page&&c.digitalData.page.isDataLayerReady?e():++n<v?setTimeout(function(){r()},100):t(new Error("Timeout polling for digital data object."))}()})),m}var g=function(){function e(){t(this,e)}return r(e,null,[{key:"isReady",value:function(){return y()}},{key:"getAll",value:function(){var e=d(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then(function(){return c.digitalData}).catch(function(){return null});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"setVersion",value:function(){var e=d(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then(function(){c.digitalData.page.pageInfo.version=h});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getLanguage",value:function(){var e=d(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then(function(){return c.digitalData.page.pageInfo.language});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}]),e}(),w=!1;var b=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}};var x=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)};var E=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var S=function(e){return b(e)||x(e)||E()},k=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)}},T=Object.prototype.toString;function C(e){return"[object Array]"===T.call(e)}function A(e){return null!==e&&"object"===i(e)}function L(e){return"[object Function]"===T.call(e)}function R(e,t){if(null!=e)if("object"!==i(e)&&(e=[e]),C(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 O={isArray:C,isArrayBuffer:function(e){return"[object ArrayBuffer]"===T.call(e)},isBuffer:function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:A,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===T.call(e)},isFile:function(e){return"[object File]"===T.call(e)},isBlob:function(e){return"[object Blob]"===T.call(e)},isFunction:L,isStream:function(e){return A(e)&&L(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:R,merge:function e(){var t={};function n(n,r){"object"===i(t[r])&&"object"===i(n)?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)R(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===i(t[r])&&"object"===i(n)?t[r]=e(t[r],n):"object"===i(n)?t[r]=e({},n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)R(arguments[r],n);return t},extend:function(e,t,n){return R(t,function(t,r){e[r]=n&&"function"==typeof t?k(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}};function I(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var P=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(O.isURLSearchParams(t))r=t.toString();else{var o=[];O.forEach(t,function(e,t){null!=e&&(O.isArray(e)?t+="[]":e=[e],O.forEach(e,function(e){O.isDate(e)?e=e.toISOString():O.isObject(e)&&(e=JSON.stringify(e)),o.push(I(t)+"="+I(e))}))}),r=o.join("&")}if(r){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function N(){this.handlers=[]}N.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},N.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},N.prototype.forEach=function(e){O.forEach(this.handlers,function(t){null!==t&&e(t)})};var j=N,_=function(e,t,n){return O.forEach(n,function(n){e=n(e,t)}),e},D=function(e){return!(!e||!e.__CANCEL__)},U=function(e,t){O.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})},B=function(e,t,n,r,o){return function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.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}},e}(new Error(e),t,n,r,o)},M=["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"],H=O.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=O.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},F=O.isStandardBrowserEnv()?{write:function(e,t,n,r,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),O.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),O.isString(r)&&i.push("path="+r),O.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.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(){}},q=function(e){return new Promise(function(t,n){var r=e.data,o=e.headers;O.isFormData(r)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var i=e.auth.username||"",c=e.auth.password||"";o.Authorization="Basic "+btoa(i+":"+c)}if(a.open(e.method.toUpperCase(),P(e.url,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var r,o,i,c,s,u="getAllResponseHeaders"in a?(r=a.getAllResponseHeaders(),s={},r?(O.forEach(r.split("\n"),function(e){if(c=e.indexOf(":"),o=O.trim(e.substr(0,c)).toLowerCase(),i=O.trim(e.substr(c+1)),o){if(s[o]&&M.indexOf(o)>=0)return;s[o]="set-cookie"===o?(s[o]?s[o]:[]).concat([i]):s[o]?s[o]+", "+i:i}}),s):s):null,f={data:e.responseType&&"text"!==e.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:u,config:e,request:a};!function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(B("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,f),a=null}},a.onabort=function(){a&&(n(B("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(B("Network Error",e,null,a)),a=null},a.ontimeout=function(){n(B("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",a)),a=null},O.isStandardBrowserEnv()){var s=F,u=(e.withCredentials||H(e.url))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;u&&(o[e.xsrfHeaderName]=u)}if("setRequestHeader"in a&&O.forEach(o,function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)}),e.withCredentials&&(a.withCredentials=!0),e.responseType)try{a.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){a&&(a.abort(),n(e),a=null)}),void 0===r&&(r=null),a.send(r)})},G={"Content-Type":"application/x-www-form-urlencoded"};function J(e,t){!O.isUndefined(e)&&O.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var V,z={adapter:("undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)?V=q:"undefined"!=typeof XMLHttpRequest&&(V=q),V),transformRequest:[function(e,t){return U(t,"Accept"),U(t,"Content-Type"),O.isFormData(e)||O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)?e:O.isArrayBufferView(e)?e.buffer:O.isURLSearchParams(e)?(J(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):O.isObject(e)?(J(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};z.headers={common:{Accept:"application/json, text/plain, */*"}},O.forEach(["delete","get","head"],function(e){z.headers[e]={}}),O.forEach(["post","put","patch"],function(e){z.headers[e]=O.merge(G)});var W=z;function Y(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var X=function(e){var t,n,r;return Y(e),e.baseURL&&(r=e.url,!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r))&&(e.url=(t=e.baseURL,(n=e.url)?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t)),e.headers=e.headers||{},e.data=_(e.data,e.headers,e.transformRequest),e.headers=O.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),O.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||W.adapter)(e).then(function(t){return Y(e),t.data=_(t.data,t.headers,e.transformResponse),t},function(t){return D(t)||(Y(e),t&&t.response&&(t.response.data=_(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},K=function(e,t){t=t||{};var n={};return O.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(n[e]=t[e])}),O.forEach(["headers","auth","proxy"],function(r){O.isObject(t[r])?n[r]=O.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:O.isObject(e[r])?n[r]=O.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])}),O.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n};function $(e){this.defaults=e,this.interceptors={request:new j,response:new j}}$.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=K(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[X,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},$.prototype.getUri=function(e){return e=K(this.defaults,e),P(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},O.forEach(["delete","get","head","options"],function(e){$.prototype[e]=function(t,n){return this.request(O.merge(n||{},{method:e,url:t}))}}),O.forEach(["post","put","patch"],function(e){$.prototype[e]=function(t,n,r){return this.request(O.merge(r||{},{method:e,url:t,data:n}))}});var Z=$;function Q(e){this.message=e}Q.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Q.prototype.__CANCEL__=!0;var ee=Q;function te(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;e(function(e){n.reason||(n.reason=new ee(e),t(n.reason))})}te.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},te.source=function(){var e;return{token:new te(function(t){e=t}),cancel:e}};var ne=te;function re(e){var t=new Z(e),n=k(Z.prototype.request,t);return O.extend(n,Z.prototype,t),O.extend(n,t),n}var oe=re(W);oe.Axios=Z,oe.create=function(e){return re(K(oe.defaults,e))},oe.Cancel=ee,oe.CancelToken=ne,oe.isCancel=D,oe.all=function(e){return Promise.all(e)},oe.spread=function(e){return function(t){return e.apply(null,t)}};var ae=oe,ie=oe;ae.default=ie;var ce=ae;function se(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var ue=process&&process.env.GEO_API||"https://api.www.s81c.com/webmaster/dbip/";function fe(){return le.apply(this,arguments)}function le(){var e;return e=l.mark(function e(){var t,n;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce.get(ue,{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)}),(le=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){se(a,r,o,i,c,"next",e)}function c(e){se(a,r,o,i,c,"throw",e)}i(void 0)})}).apply(this,arguments)}var pe=a(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 a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}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 a)a[s]&&(c+="; "+s,!0!==a[s]&&(c+="="+a[s].split(";")[0]));return document.cookie=t+"="+n+c}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var c=a[i].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=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}(function(){})},e.exports=n()});function de(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,r.key,r)}}var he,me=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=pe.get("ipcInfo");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);pe.set("ipcInfo",encodeURIComponent(r),{expires:365},{secure:!0})}}],(n=null)&&de(t.prototype,n),r&&de(t,r),e}(),ve=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://www.ibm.com",ye="www.ibm.com"===(null===(he=c.location)||void 0===he?void 0:he.host)?"":process&&(process.env.REACT_APP_CORS_PROXY||process.env.CORS_PROXY)||"",ge={lc:"en",cc:"us"},we="".concat(ye).concat(ve,"/common/js/dynamicnav/www/countrylist/jsononly"),be={},xe=0,Ee={headers:{"Content-Type":"application/json; charset=utf-8"}},Se=function(){if(c.document.documentElement.lang){var e=c.document.documentElement.lang.toLowerCase();if(-1===e.indexOf("-"))return ge;var t=e.split("-");return{cc:t[1],lc:t[0]}}return ge},ke={};function Te(){return Ce.apply(this,arguments)}function Ce(){return(Ce=d(l.mark(function e(){var t,n;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.getAll();case 2:if(!((t=e.sent)&&t.page&&t.page.pageInfo)){e.next=10;break}if(n=t.page.pageInfo.ibm,t.page.pageInfo.language&&(n.lc=t.page.pageInfo.language.substring(0,2).toLowerCase()),n&&n.country&&(n.cc=n.country.toLowerCase().trim(),n.cc.indexOf(",")>-1&&(n.cc=n.cc.substring(0,n.cc.indexOf(",")).trim()),"gb"===n.cc&&(n.cc="uk"),"zz"===n.cc&&(n.cc="us")),n.lc&&n.cc){e.next=9;break}return e.abrupt("return",!1);case 9:return e.abrupt("return",{cc:n.cc,lc:n.lc});case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Ae=function(){function e(){t(this,e)}return r(e,null,[{key:"clearCache",value:function(){Object.keys(ke).forEach(function(e){return delete ke[e]});for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf("dds-countrylist")&&sessionStorage.removeItem(t)}}},{key:"getLocale",value:function(){var e=d(l.mark(function e(){var t,n,r,o,a,i,s;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=me.get(),e.next=3,this.getLang();case 3:if(!(n=e.sent)){e.next=10;break}return e.next=7,this.getList(n);case 7:return e.abrupt("return",n);case 10:if(!(t&&t.cc&&t.lc)){e.next=16;break}return e.next=13,this.getList(t);case 13:return e.abrupt("return",t);case 16:return e.next=18,fe();case 18:if(r=e.sent,o=c.navigator.language,a=o.split("-")[0],!r||!a){e.next=28;break}return e.next=24,this.getList({cc:r,lc:a});case 24:return i=e.sent,s=this.verifyLocale(r,a,i),me.set(s),e.abrupt("return",s);case 28:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getLang",value:function(){var e=d(l.mark(function e(){var t;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Te();case 2:if(!(t=e.sent)){e.next=7;break}return e.abrupt("return",t);case 7:return e.abrupt("return",Se());case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},{key:"getLangDisplay",value:function(){var e=d(l.mark(function e(t){var n,r,o,a;return l.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)}),!(a=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(S(r))),e}})).length){e.next=18;break}return e.abrupt("return","".concat(a[0].name," — ").concat(a[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getList",value:function(){var e=d(l.mark(function e(t){var n,r,o,a,i=this;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.cc,r=t.lc,o="".concat(r,"-").concat(n),!(a=ke[o])){e.next=5;break}return e.abrupt("return",a);case 5:return e.abrupt("return",ke[o]=new Promise(function(e,t){i.fetchList(n,r,e,t)}));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"fetchList",value:function(e,t,n,r){var o=this,a=JSON.parse(sessionStorage.getItem("".concat("dds-countrylist","-").concat(e,"-").concat(t)));if(a)n(a);else if(be["".concat(e,"-").concat(t)])++xe<50?setTimeout(function(){o.fetchList(e,t,n,r)},100):r();else{var i="".concat(we,"/").concat(e).concat(t,"-utf8.json");xe=0,be["".concat(e,"-").concat(t)]=!0,ce.get(i,Ee).then(function(r){sessionStorage.setItem("".concat("dds-countrylist","-").concat(e,"-").concat(t),JSON.stringify(r.data)),be["".concat(e,"-").concat(t)]=!1,n(r.data)}).catch(function(){e===ge.cc&&t===ge.lc?(be["".concat(e,"-").concat(t)]=!1,r()):o.fetchList(ge.cc,ge.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 a=n.locale[0][0].split("-"),i=a[1],c=a[0];i===e&&c===t?o={cc:e,lc:t}:i!==e||r||(r=c)})}))&&r&&(o={cc:e,lc:r}),o}}]),e}(),Le=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",Re=process&&process.env.MARKETING_SEARCH_VERSION||"v3",Oe="".concat(Le,"/marketplace/api/search/").concat(Re,"/combined_suggestions"),Ie=function(){function e(){t(this,e)}return r(e,null,[{key:"getResults",value:function(){var e=d(l.mark(function e(t){var n;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"en","us",n="".concat(Oe,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,ce.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)}));return function(t){return e.apply(this,arguments)}}()}]),e}(),Pe=1e3,Ne=60*Pe,je=60*Ne,_e=24*je,De=365.25*_e,Ue=function(e,t){t=t||{};var n=i(e);if("string"===n&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*De;case"days":case"day":case"d":return n*_e;case"hours":case"hour":case"hrs":case"hr":case"h":return n*je;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ne;case"seconds":case"second":case"secs":case"sec":case"s":return n*Pe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(e);if("number"===n&&!1===isNaN(e))return t.long?function(e){return Be(e,_e,"day")||Be(e,je,"hour")||Be(e,Ne,"minute")||Be(e,Pe,"second")||e+" ms"}(e):function(e){if(e>=_e)return Math.round(e/_e)+"d";if(e>=je)return Math.round(e/je)+"h";if(e>=Ne)return Math.round(e/Ne)+"m";if(e>=Pe)return Math.round(e/Pe)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Be(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var Me=a(function(e,t){var n;function r(e){function r(){if(r.enabled){var e=r,o=+new Date,a=o-(n||o);e.diff=a,e.prev=n,e.curr=o,n=o;for(var i=new Array(arguments.length),c=0;c<i.length;c++)i[c]=arguments[c];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;s++;var o=t.formatters[r];if("function"==typeof o){var a=i[s];n=o.call(e,a),i.splice(s,1),s--}return n}),t.formatArgs.call(e,i),(r.log||t.log||console.log.bind(console)).apply(e,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=Ue,t.names=[],t.skips=[],t.formatters={}}),He=(Me.coerce,Me.disable,Me.enable,Me.enabled,Me.humanize,Me.names,Me.skips,Me.formatters,a(function(e,t){function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=Me).log=function(){return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))}),e.splice(a,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(n())})),Fe=(He.log,He.formatArgs,He.save,He.load,He.useColors,He.storage,He.colors,He("jsonp")),qe=function(e,t,n){"function"==typeof t&&(n=t,t={});t||(t={});var r,o,a=t.prefix||"__jp",i=t.name||a+Ge++,c=t.param||"callback",s=null!=t.timeout?t.timeout:6e4,u=encodeURIComponent,f=document.getElementsByTagName("script")[0]||document.head;s&&(o=setTimeout(function(){l(),n&&n(new Error("Timeout"))},s));function l(){r.parentNode&&r.parentNode.removeChild(r),window[i]=Je,o&&clearTimeout(o)}return window[i]=function(e){Fe("jsonp got",e),l(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+c+"="+u(i)).replace("?&","?"),Fe('jsonp req "%s"',e),(r=document.createElement("script")).src=e,f.parentNode.insertBefore(r,f),function(){window[i]&&l()}},Ge=0;function Je(){}var Ve,ze=process&&process.env.PROFILE_HOST||"https://idaas.iam.ibm.com",We=process&&process.env.PROFILE_VERSION||"v1",Ye="".concat(ze,"/").concat(We,"/mgmt/idaas/user/status/"),Xe=function(){function e(){t(this,e)}return r(e,null,[{key:"getUserStatus",value:function(){var e=Ye;return new Promise(function(t,n){return qe(e,null,function(e,r){return e?n(e):t(r)})})}},{key:"monitorUserStatus",value:function(e){return qe(Ye,null,e)}}]),e}(),Ke=process&&process.env.SEARCH_TYPEAHEAD_HOST||"https://www-api.ibm.com",$e=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",Ze="".concat(Ke,"/search/typeahead/").concat($e),Qe=function(){function e(){t(this,e)}return r(e,null,[{key:"getResults",value:function(){var e=d(l.mark(function e(t){var n,r,o;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae.getLang();case 2:return n=e.sent,r=["lang=".concat(n.lc),"cc=".concat(n.cc),"query=".concat(encodeURIComponent(t))].join("&"),o="".concat(Ze,"?").concat(r),e.next=7,ce.get(o,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then(function(e){return e.data.response});case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()}]),e}(),et=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://www.ibm.com",tt="www.ibm.com"===(null===(Ve=c.location)||void 0===Ve?void 0:Ve.host)?"":process&&(process.env.REACT_APP_CORS_PROXY||process.env.CORS_PROXY)||"",nt="".concat(et,"/common/v18/js/data/jsononly"),rt={},ot=0,at={},it=function(){function e(){t(this,e)}return r(e,null,[{key:"clearCache",value:function(){Object.keys(at).forEach(function(e){return delete at[e]});for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf("dds-translation")&&sessionStorage.removeItem(t)}}},{key:"getTranslation",value:function(){var e=d(l.mark(function e(t){var n,r,o,a,i,c=this;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n="en",r="us",!(t&&t.lc&&t.cc)){e.next=7;break}n=t.lc,r=t.cc,e.next=12;break;case 7:return e.next=9,Ae.getLocale();case 9:o=e.sent,n=o.lc,r=o.cc;case 12:if(a="".concat(n,"-").concat(r),!(i=at[a])){e.next=16;break}return e.abrupt("return",i);case 16:return e.abrupt("return",at[a]=new Promise(function(e,t){c.fetchTranslation(n,r,e,t)}));case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"fetchTranslation",value:function(e,t,n,r){var o=this,a=JSON.parse(sessionStorage.getItem("".concat("dds-translation","-").concat(t,"-").concat(e)));if(a)n(a);else if(rt["".concat(t,"-").concat(e)])++ot<50?setTimeout(function(){o.fetchTranslation(e,t,n,r)},100):r();else{var i="";if(c.location)i="".concat(c.location.protocol,"//").concat(c.location.host)!==et?tt:"";var s="".concat(i).concat(nt,"/").concat(t).concat(e,".json");ot=0,rt["".concat(t,"-").concat(e)]=!0,ce.get(s,{headers:{"Content-Type":"text/plain",origin:et}}).then(function(r){var a=o.transformData(r.data);sessionStorage.setItem("".concat("dds-translation","-").concat(t,"-").concat(e),JSON.stringify(a)),rt["".concat(t,"-").concat(e)]=!1,n(a)}).catch(function(n){rt["".concat(t,"-").concat(e)]=!1,r(n)})}}},{key:"transformData",value:function(e){return e.footerMenu.push(e.socialFollow),e}}]),e}(),ct=process.env.KALTURA_PARTNER_ID||1773841,st=process.env.KALTURA_UICONF_ID||27941801,ut="https://cdnapisec.kaltura.com/p/".concat(ct,"/sp/").concat(ct,"00/embedIframeJs/uiconf_id/").concat(st,"/partner_id/").concat(ct),ft="https://cdnsecakmi.kaltura.com/p/".concat(ct,"/thumbnail/entry_id/"),lt=50,pt=0,dt=!1;function ht(e,t){c.kWidget?(dt=!1,e()):dt?++pt<lt?setTimeout(function(){ht(e,t)},100):t():(!function(){dt=!0;var e=document.createElement("script");e.src=ut,e.async=!0,document.body.appendChild(e)}(),ht(e,t))}var mt={},vt=function(){function e(){t(this,e)}return r(e,null,[{key:"checkScript",value:function(){return new Promise(function(e,t){ht(e,t)})}},{key:"getThumbnailUrl",value:function(e){var t=e.videoId,n=e.height,r=e.width,o=ft+t;return n&&(o+="/height/".concat(n)),r&&(o+="/width/".concat(r)),o}},{key:"embedVideo",value:function(){var e=d(l.mark(function e(t,n,r){var o;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.fireEvent,e.next=3,this.checkScript().then(function(){var e=new Promise(function(e){c.kWidget.embed({targetId:n,wid:"_"+ct,uiconf_id:st,entry_id:t,flashvars:{autoPlay:r,titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"}},readyCallback:function(n){var r=document.getElementById(n);r.addJsListener("playerPaused",function(){o({playerState:1,kdp:r,videoId:t})}),r.addJsListener("playerPlayed",function(){o({playerState:2,kdp:r,videoId:t})}),r.addJsListener("playerPlayEnd",function(){o({playerState:3,kdp:r,videoId:t})}),e(r)}})});return{kWidget:function(){return e}}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"fireEvent",value:function(e){var t=e.playerState,n=e.kdp,r=e.videoId,o=Math.round(n.evaluate("{video.player.currentTime}"));2===t&&0===o&&(t=0);var a={playerType:"kaltura",title:n.evaluate("{mediaProxy.entry.name}"),currentTime:o,duration:n.evaluate("{mediaProxy.entry.duration}"),playerState:t,videoId:r};f.videoPlayerStats(a)}},{key:"api",value:function(){var e=d(l.mark(function e(t){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then(function(){return mt&&mt[t]?mt[t]:new Promise(function(e){return new c.kWidget.api({wid:"_"+ct}).doRequest({service:"media",action:"get",entryId:t},function(t){mt[t.id]=t,e(t)})})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getVideoDuration",value:function(e){var t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24);return r=r>0?r+":":"",t=t<10?"0"+t:t,e&&"("+r+n+":"+t+")"}}]),e}();e.AnalyticsAPI=f,e.DDOAPI=g,e.LocaleAPI=Ae,e.MarketingSearchAPI=Ie,e.ProfileAPI=Xe,e.SearchTypeaheadAPI=Qe,e.TranslationAPI=it,e.VideoPlayerAPI=vt,e.globalInit=function(){w||(w=!0,g.setVersion().catch(function(e){console.error("Error setting the version of the library in the DDO:",e)}),f.initAll())},Object.defineProperty(e,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).IBMDotcomServices={})}(this,function(e){"use strict";var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function n(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,r.key,r)}}var r=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e,t){return e(t={exports:{}},t.exports),t.exports}var i=a(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}function n(r){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},n(r)}e.exports=n}),c="object"===("undefined"==typeof self?"undefined":i(self))&&self.self===self&&self||"object"===i(o)&&o.global===o&&o||o,s=process&&"true"===process.env.SCROLL_TRACKING||!1,u=process?"production":"development",f=function(){function e(){t(this,e)}return r(e,null,[{key:"registerEvent",value:function(e){c.ibmStats&&c.ibmStats.event(e)}},{key:"initAll",value:function(){this.initScrollTracker(),this.initDynamicTabs(),this.initModals()}},{key:"initScrollTracker",value:function(){if(s){var e=0,t=0,n=!1,r=this.registerEvent;c.addEventListener("scroll",function(){n=!0}),setInterval(function(){n&&(n=!1,(t=Math.floor(c.pageYOffset/400))>e&&r({type:"element",primaryCategory:"SCROLL DISTANCE",eventName:400*(e=t),executionPath:c.innerWidth,execPathReturnCode:c.innerHeight}))},50)}}},{key:"initDynamicTabs",value:function(){var e=this.triggerTabSelected.bind(this);c.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"!==u&&console.error("Error triggering tab event:",e)}}},{key:"initModals",value:function(){var e=this.triggerModalHide.bind(this);c.document.addEventListener("modal-hidden",function(t){e(t.target.id,t.detail.launchingElement.innerText)});var t=this.triggerModalShow.bind(this);c.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"!==u&&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"!==u&&console.error("Error triggering modal show event:",e)}}},{key:"videoPlayerStats",value:function(e){var t="",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"}if(0===n&&(n="start",o="0"),(n>=r||3===e.playerState)&&(n="end",o="100"),"end"!==n||1!==e.playerState){var a={type:"video",primaryCategory:"VIDEO",eventName:e.title,eventCategoryGroup:e.playerType,executionPath:e.videoId,execPathReturnCode:t,eventVidStatus:e.playerState,eventVidTimeStamp:n,eventVidLength:r,eventVidPlayed:o+"%"};try{this.registerEvent(a)}catch(e){"production"!==u&&console.error("Error firing video metrics:",e)}}}}]),e}(),l=a(function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new A(r||[]);return a._invoke=function(e,t,n){var r=l;return function(o,a){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return R()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=T(i,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=f(e,t,n);if("normal"===s.type){if(r=n.done?h:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,i),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",p="suspendedYield",d="executing",h="completed",v={};function m(){}function y(){}function g(){}var w={};w[a]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(O([])));x&&x!==n&&r.call(x,a)&&(w=x);var E=g.prototype=m.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){var t;this._invoke=function(n,o){function a(){return new Promise(function(t,a){!function t(n,o,a,c){var s=f(e[n],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"===i(l)&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,a,c)},function(e){t("throw",e,a,c)}):Promise.resolve(l).then(function(e){u.value=e,a(u)},function(e){return t("throw",e,a,c)})}c(s.arg)}(n,o,t,a)})}return t=t?t.then(a,a):a()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function O(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:R}}function R(){return{value:t,done:!0}}return y.prototype=E.constructor=g,g.constructor=y,g[s]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(k.prototype),k.prototype[c]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,o){var a=new k(u(t,n,r,o));return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(E),E[s]="Generator",E[a]=function(){return this},E.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},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 n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},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),v},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),L(n),v}},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;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}});function p(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var d=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){p(a,r,o,i,c,"next",e)}function c(e){p(a,r,o,i,c,"throw",e)}i(void 0)})}},h="Carbon:IBM.com Library v1.10.2";var v,m=50;function y(){return v||(v=new Promise(function(e,t){var n=0;!function r(){c.digitalData&&c.digitalData.page&&c.digitalData.page.isDataLayerReady?e():++n<m?setTimeout(function(){r()},100):t(new Error("Timeout polling for digital data object."))}()})),v}var g=function(){function e(){t(this,e)}return r(e,null,[{key:"isReady",value:function(){return y()}},{key:"getAll",value:function(){var e=d(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then(function(){return c.digitalData}).catch(function(){return null});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"setVersion",value:function(){var e=d(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then(function(){c.digitalData.page.pageInfo.version=h});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getLanguage",value:function(){var e=d(l.mark(function e(){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then(function(){return c.digitalData.page.pageInfo.language});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}]),e}(),w=!1;var b=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}};var x=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)};var E=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var S=function(e){return b(e)||x(e)||E()},k=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)}},T=Object.prototype.toString;function C(e){return"[object Array]"===T.call(e)}function L(e){return null!==e&&"object"===i(e)}function A(e){return"[object Function]"===T.call(e)}function O(e,t){if(null!=e)if("object"!==i(e)&&(e=[e]),C(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 R={isArray:C,isArrayBuffer:function(e){return"[object ArrayBuffer]"===T.call(e)},isBuffer:function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:L,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===T.call(e)},isFile:function(e){return"[object File]"===T.call(e)},isBlob:function(e){return"[object Blob]"===T.call(e)},isFunction:A,isStream:function(e){return L(e)&&A(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:O,merge:function e(){var t={};function n(n,r){"object"===i(t[r])&&"object"===i(n)?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)O(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===i(t[r])&&"object"===i(n)?t[r]=e(t[r],n):"object"===i(n)?t[r]=e({},n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)O(arguments[r],n);return t},extend:function(e,t,n){return O(t,function(t,r){e[r]=n&&"function"==typeof t?k(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}};function I(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var P=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(R.isURLSearchParams(t))r=t.toString();else{var o=[];R.forEach(t,function(e,t){null!=e&&(R.isArray(e)?t+="[]":e=[e],R.forEach(e,function(e){R.isDate(e)?e=e.toISOString():R.isObject(e)&&(e=JSON.stringify(e)),o.push(I(t)+"="+I(e))}))}),r=o.join("&")}if(r){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function N(){this.handlers=[]}N.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},N.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},N.prototype.forEach=function(e){R.forEach(this.handlers,function(t){null!==t&&e(t)})};var j=N,_=function(e,t,n){return R.forEach(n,function(n){e=n(e,t)}),e},D=function(e){return!(!e||!e.__CANCEL__)},U=function(e,t){R.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})},M=function(e,t,n,r,o){return function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.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}},e}(new Error(e),t,n,r,o)},B=["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"],H=R.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=R.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},F=R.isStandardBrowserEnv()?{write:function(e,t,n,r,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),R.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),R.isString(r)&&i.push("path="+r),R.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.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(){}},q=function(e){return new Promise(function(t,n){var r=e.data,o=e.headers;R.isFormData(r)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var i=e.auth.username||"",c=e.auth.password||"";o.Authorization="Basic "+btoa(i+":"+c)}if(a.open(e.method.toUpperCase(),P(e.url,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var r,o,i,c,s,u="getAllResponseHeaders"in a?(r=a.getAllResponseHeaders(),s={},r?(R.forEach(r.split("\n"),function(e){if(c=e.indexOf(":"),o=R.trim(e.substr(0,c)).toLowerCase(),i=R.trim(e.substr(c+1)),o){if(s[o]&&B.indexOf(o)>=0)return;s[o]="set-cookie"===o?(s[o]?s[o]:[]).concat([i]):s[o]?s[o]+", "+i:i}}),s):s):null,f={data:e.responseType&&"text"!==e.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:u,config:e,request:a};!function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(M("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,f),a=null}},a.onabort=function(){a&&(n(M("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(M("Network Error",e,null,a)),a=null},a.ontimeout=function(){n(M("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",a)),a=null},R.isStandardBrowserEnv()){var s=F,u=(e.withCredentials||H(e.url))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;u&&(o[e.xsrfHeaderName]=u)}if("setRequestHeader"in a&&R.forEach(o,function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)}),e.withCredentials&&(a.withCredentials=!0),e.responseType)try{a.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){a&&(a.abort(),n(e),a=null)}),void 0===r&&(r=null),a.send(r)})},G={"Content-Type":"application/x-www-form-urlencoded"};function J(e,t){!R.isUndefined(e)&&R.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var V,z={adapter:("undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)?V=q:"undefined"!=typeof XMLHttpRequest&&(V=q),V),transformRequest:[function(e,t){return U(t,"Accept"),U(t,"Content-Type"),R.isFormData(e)||R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)?e:R.isArrayBufferView(e)?e.buffer:R.isURLSearchParams(e)?(J(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):R.isObject(e)?(J(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};z.headers={common:{Accept:"application/json, text/plain, */*"}},R.forEach(["delete","get","head"],function(e){z.headers[e]={}}),R.forEach(["post","put","patch"],function(e){z.headers[e]=R.merge(G)});var W=z;function Y(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var X=function(e){var t,n,r;return Y(e),e.baseURL&&(r=e.url,!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r))&&(e.url=(t=e.baseURL,(n=e.url)?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t)),e.headers=e.headers||{},e.data=_(e.data,e.headers,e.transformRequest),e.headers=R.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),R.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||W.adapter)(e).then(function(t){return Y(e),t.data=_(t.data,t.headers,e.transformResponse),t},function(t){return D(t)||(Y(e),t&&t.response&&(t.response.data=_(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},K=function(e,t){t=t||{};var n={};return R.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(n[e]=t[e])}),R.forEach(["headers","auth","proxy"],function(r){R.isObject(t[r])?n[r]=R.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:R.isObject(e[r])?n[r]=R.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])}),R.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n};function $(e){this.defaults=e,this.interceptors={request:new j,response:new j}}$.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=K(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[X,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},$.prototype.getUri=function(e){return e=K(this.defaults,e),P(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},R.forEach(["delete","get","head","options"],function(e){$.prototype[e]=function(t,n){return this.request(R.merge(n||{},{method:e,url:t}))}}),R.forEach(["post","put","patch"],function(e){$.prototype[e]=function(t,n,r){return this.request(R.merge(r||{},{method:e,url:t,data:n}))}});var Z=$;function Q(e){this.message=e}Q.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Q.prototype.__CANCEL__=!0;var ee=Q;function te(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;e(function(e){n.reason||(n.reason=new ee(e),t(n.reason))})}te.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},te.source=function(){var e;return{token:new te(function(t){e=t}),cancel:e}};var ne=te;function re(e){var t=new Z(e),n=k(Z.prototype.request,t);return R.extend(n,Z.prototype,t),R.extend(n,t),n}var oe=re(W);oe.Axios=Z,oe.create=function(e){return re(K(oe.defaults,e))},oe.Cancel=ee,oe.CancelToken=ne,oe.isCancel=D,oe.all=function(e){return Promise.all(e)},oe.spread=function(e){return function(t){return e.apply(null,t)}};var ae=oe,ie=oe;ae.default=ie;var ce=ae;function se(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var ue=process&&process.env.GEO_API||"https://api.www.s81c.com/webmaster/dbip/";function fe(){return le.apply(this,arguments)}function le(){var e;return e=l.mark(function e(){var t,n;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce.get(ue,{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)}),(le=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){se(a,r,o,i,c,"next",e)}function c(e){se(a,r,o,i,c,"throw",e)}i(void 0)})}).apply(this,arguments)}var pe=a(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 a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}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 a)a[s]&&(c+="; "+s,!0!==a[s]&&(c+="="+a[s].split(";")[0]));return document.cookie=t+"="+n+c}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var c=a[i].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=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}(function(){})},e.exports=n()});function de(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,r.key,r)}}var he,ve=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=pe.get("ipcInfo");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);pe.set("ipcInfo",encodeURIComponent(r),{expires:365,domain:".ibm.com"})}}],(n=null)&&de(t.prototype,n),r&&de(t,r),e}(),me=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://www.ibm.com",ye="www.ibm.com"===(null===(he=c.location)||void 0===he?void 0:he.host)?"":process&&(process.env.REACT_APP_CORS_PROXY||process.env.CORS_PROXY)||"",ge={lc:"en",cc:"us"},we="".concat(ye).concat(me,"/common/js/dynamicnav/www/countrylist/jsononly"),be={},xe=0,Ee={headers:{"Content-Type":"application/json; charset=utf-8"}},Se={};var ke=function(){function e(){t(this,e)}return r(e,null,[{key:"clearCache",value:function(){Object.keys(Se).forEach(function(e){return delete Se[e]});for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf("dds-countrylist")&&sessionStorage.removeItem(t)}}},{key:"getLocale",value:function(){var e=d(l.mark(function e(){var t,n,r,o,a,i,s;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=ve.get(),e.next=3,this.getLang();case 3:if(!(n=e.sent)){e.next=10;break}return e.next=7,this.getList(n);case 7:return e.abrupt("return",n);case 10:if(!(t&&t.cc&&t.lc)){e.next=16;break}return e.next=13,this.getList(t);case 13:return e.abrupt("return",t);case 16:return e.next=18,fe();case 18:if(r=e.sent,o=c.navigator.language,a=o.split("-")[0],!r||!a){e.next=28;break}return e.next=24,this.getList({cc:r,lc:a});case 24:return i=e.sent,s=this.verifyLocale(r,a,i),ve.set(s),e.abrupt("return",s);case 28:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getLang",value:function(){return new Promise(function(e){var t=function(){var e,t,n,r,o,a=Object.assign({},c.digitalData||{});if((null===(e=a.page)||void 0===e?void 0:null===(t=e.pageInfo)||void 0===t?void 0:t.language)&&(null===(n=a.page)||void 0===n?void 0:null===(r=n.pageInfo)||void 0===r?void 0:null===(o=r.ibm)||void 0===o?void 0:o.country)){var i={};return i.lc=a.page.pageInfo.language.substring(0,2).toLowerCase(),i.cc=a.page.pageInfo.ibm.country.toLowerCase().trim(),i.cc.indexOf(",")>-1&&(i.cc=i.cc.substring(0,i.cc.indexOf(",")).trim()),"gb"===i.cc&&(i.cc="uk"),"zz"===i.cc&&(i.cc="us"),i}return!1}();e(t||function(){var e,t;if(null===(e=c.document)||void 0===e?void 0:null===(t=e.documentElement)||void 0===t?void 0:t.lang){var n=c.document.documentElement.lang.toLowerCase();if(-1===n.indexOf("-"))return ge;var r=n.split("-");return{cc:r[1],lc:r[0]}}return ge}())})}},{key:"getLangDisplay",value:function(){var e=d(l.mark(function e(t){var n,r,o,a;return l.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)}),!(a=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(S(r))),e}})).length){e.next=18;break}return e.abrupt("return","".concat(a[0].name," — ").concat(a[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getList",value:function(){var e=d(l.mark(function e(t){var n,r,o,a,i=this;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.cc,r=t.lc,o="".concat(r,"-").concat(n),!(a=Se[o])){e.next=5;break}return e.abrupt("return",a);case 5:return e.abrupt("return",Se[o]=new Promise(function(e,t){i.fetchList(n,r,e,t)}));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"fetchList",value:function(e,t,n,r){var o=this,a=JSON.parse(sessionStorage.getItem("".concat("dds-countrylist","-").concat(e,"-").concat(t)));if(a)n(a);else if(be["".concat(e,"-").concat(t)])++xe<50?setTimeout(function(){o.fetchList(e,t,n,r)},100):r();else{var i="".concat(we,"/").concat(e).concat(t,"-utf8.json");xe=0,be["".concat(e,"-").concat(t)]=!0,ce.get(i,Ee).then(function(r){sessionStorage.setItem("".concat("dds-countrylist","-").concat(e,"-").concat(t),JSON.stringify(r.data)),be["".concat(e,"-").concat(t)]=!1,n(r.data)}).catch(function(){e===ge.cc&&t===ge.lc?(be["".concat(e,"-").concat(t)]=!1,r()):o.fetchList(ge.cc,ge.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 a=n.locale[0][0].split("-"),i=a[1],c=a[0];i===e&&c===t?o={cc:e,lc:t}:i!==e||r||(r=c)})}))&&r&&(o={cc:e,lc:r}),o}}]),e}(),Te=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",Ce=process&&process.env.MARKETING_SEARCH_VERSION||"v3",Le="".concat(Te,"/marketplace/api/search/").concat(Ce,"/combined_suggestions"),Ae=function(){function e(){t(this,e)}return r(e,null,[{key:"getResults",value:function(){var e=d(l.mark(function e(t){var n;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"en","us",n="".concat(Le,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,ce.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)}));return function(t){return e.apply(this,arguments)}}()}]),e}(),Oe=1e3,Re=60*Oe,Ie=60*Re,Pe=24*Ie,Ne=365.25*Pe,je=function(e,t){t=t||{};var n=i(e);if("string"===n&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*Ne;case"days":case"day":case"d":return n*Pe;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ie;case"minutes":case"minute":case"mins":case"min":case"m":return n*Re;case"seconds":case"second":case"secs":case"sec":case"s":return n*Oe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(e);if("number"===n&&!1===isNaN(e))return t.long?function(e){return _e(e,Pe,"day")||_e(e,Ie,"hour")||_e(e,Re,"minute")||_e(e,Oe,"second")||e+" ms"}(e):function(e){if(e>=Pe)return Math.round(e/Pe)+"d";if(e>=Ie)return Math.round(e/Ie)+"h";if(e>=Re)return Math.round(e/Re)+"m";if(e>=Oe)return Math.round(e/Oe)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function _e(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var De=a(function(e,t){var n;function r(e){function r(){if(r.enabled){var e=r,o=+new Date,a=o-(n||o);e.diff=a,e.prev=n,e.curr=o,n=o;for(var i=new Array(arguments.length),c=0;c<i.length;c++)i[c]=arguments[c];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;s++;var o=t.formatters[r];if("function"==typeof o){var a=i[s];n=o.call(e,a),i.splice(s,1),s--}return n}),t.formatArgs.call(e,i),(r.log||t.log||console.log.bind(console)).apply(e,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=je,t.names=[],t.skips=[],t.formatters={}}),Ue=(De.coerce,De.disable,De.enable,De.enabled,De.humanize,De.names,De.skips,De.formatters,a(function(e,t){function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=De).log=function(){return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))}),e.splice(a,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(n())})),Me=(Ue.log,Ue.formatArgs,Ue.save,Ue.load,Ue.useColors,Ue.storage,Ue.colors,Ue("jsonp")),Be=function(e,t,n){"function"==typeof t&&(n=t,t={});t||(t={});var r,o,a=t.prefix||"__jp",i=t.name||a+He++,c=t.param||"callback",s=null!=t.timeout?t.timeout:6e4,u=encodeURIComponent,f=document.getElementsByTagName("script")[0]||document.head;s&&(o=setTimeout(function(){l(),n&&n(new Error("Timeout"))},s));function l(){r.parentNode&&r.parentNode.removeChild(r),window[i]=Fe,o&&clearTimeout(o)}return window[i]=function(e){Me("jsonp got",e),l(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+c+"="+u(i)).replace("?&","?"),Me('jsonp req "%s"',e),(r=document.createElement("script")).src=e,f.parentNode.insertBefore(r,f),function(){window[i]&&l()}},He=0;function Fe(){}var qe,Ge=process&&process.env.PROFILE_HOST||"https://idaas.iam.ibm.com",Je=process&&process.env.PROFILE_VERSION||"v1",Ve="".concat(Ge,"/").concat(Je,"/mgmt/idaas/user/status/"),ze=function(){function e(){t(this,e)}return r(e,null,[{key:"getUserStatus",value:function(){var e=Ve;return new Promise(function(t,n){return Be(e,null,function(e,r){return e?n(e):t(r)})})}},{key:"monitorUserStatus",value:function(e){return Be(Ve,null,e)}}]),e}(),We=process&&process.env.SEARCH_TYPEAHEAD_HOST||"https://www-api.ibm.com",Ye=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",Xe="".concat(We,"/search/typeahead/").concat(Ye),Ke=function(){function e(){t(this,e)}return r(e,null,[{key:"getResults",value:function(){var e=d(l.mark(function e(t){var n,r,o;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ke.getLang();case 2:return n=e.sent,r=["lang=".concat(n.lc),"cc=".concat(n.cc),"query=".concat(encodeURIComponent(t))].join("&"),o="".concat(Xe,"?").concat(r),e.next=7,ce.get(o,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then(function(e){return e.data.response});case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()}]),e}(),$e=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://www.ibm.com",Ze="www.ibm.com"===(null===(qe=c.location)||void 0===qe?void 0:qe.host)?"":process&&(process.env.REACT_APP_CORS_PROXY||process.env.CORS_PROXY)||"",Qe="".concat($e,"/common/v18/js/data/jsononly"),et={},tt=0,nt={},rt=function(){function e(){t(this,e)}return r(e,null,[{key:"clearCache",value:function(){Object.keys(nt).forEach(function(e){return delete nt[e]});for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf("dds-translation")&&sessionStorage.removeItem(t)}}},{key:"getTranslation",value:function(){var e=d(l.mark(function e(t){var n,r,o,a,i,c=this;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n="en",r="us",!(t&&t.lc&&t.cc)){e.next=7;break}n=t.lc,r=t.cc,e.next=12;break;case 7:return e.next=9,ke.getLocale();case 9:o=e.sent,n=o.lc,r=o.cc;case 12:if(a="".concat(n,"-").concat(r),!(i=nt[a])){e.next=16;break}return e.abrupt("return",i);case 16:return e.abrupt("return",nt[a]=new Promise(function(e,t){c.fetchTranslation(n,r,e,t)}));case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"fetchTranslation",value:function(e,t,n,r){var o=this,a=JSON.parse(sessionStorage.getItem("".concat("dds-translation","-").concat(t,"-").concat(e)));if(a)n(a);else if(et["".concat(t,"-").concat(e)])++tt<50?setTimeout(function(){o.fetchTranslation(e,t,n,r)},100):r();else{var i="";if(c.location)i="".concat(c.location.protocol,"//").concat(c.location.host)!==$e?Ze:"";var s="".concat(i).concat(Qe,"/").concat(t).concat(e,".json");tt=0,et["".concat(t,"-").concat(e)]=!0,ce.get(s,{headers:{"Content-Type":"text/plain",origin:$e}}).then(function(r){var a=o.transformData(r.data);sessionStorage.setItem("".concat("dds-translation","-").concat(t,"-").concat(e),JSON.stringify(a)),et["".concat(t,"-").concat(e)]=!1,n(a)}).catch(function(n){et["".concat(t,"-").concat(e)]=!1,r(n)})}}},{key:"transformData",value:function(e){var t,n=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout,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&&c.location){var a=encodeURIComponent(c.location.href);e.profileMenu.signedout[o].url=n[o].url.replace(r,"state=".concat(a))}return e.footerMenu.push(e.socialFollow),e}}]),e}(),ot=process.env.KALTURA_PARTNER_ID||1773841,at=process.env.KALTURA_UICONF_ID||27941801,it="https://cdnapisec.kaltura.com/p/".concat(ot,"/sp/").concat(ot,"00/embedIframeJs/uiconf_id/").concat(at,"/partner_id/").concat(ot),ct="https://cdnsecakmi.kaltura.com/p/".concat(ot,"/thumbnail/entry_id/"),st=50,ut=0,ft=!1;function lt(e,t){c.kWidget?(ft=!1,e()):ft?++ut<st?setTimeout(function(){lt(e,t)},100):t():(!function(){ft=!0;var e=document.createElement("script");e.src=it,e.async=!0,document.body.appendChild(e)}(),lt(e,t))}var pt={},dt=function(){function e(){t(this,e)}return r(e,null,[{key:"checkScript",value:function(){return new Promise(function(e,t){lt(e,t)})}},{key:"getThumbnailUrl",value:function(e){var t=e.videoId,n=e.height,r=e.width,o=ct+t;return n&&(o+="/height/".concat(n)),r&&(o+="/width/".concat(r)),o}},{key:"embedVideo",value:function(){var e=d(l.mark(function e(t,n,r){var o;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.fireEvent,e.next=3,this.checkScript().then(function(){var e=new Promise(function(e){c.kWidget.embed({targetId:n,wid:"_"+ot,uiconf_id:at,entry_id:t,flashvars:{autoPlay:r,titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"}},readyCallback:function(n){var r=document.getElementById(n);r.addJsListener("playerPaused",function(){o({playerState:1,kdp:r,videoId:t})}),r.addJsListener("playerPlayed",function(){o({playerState:2,kdp:r,videoId:t})}),r.addJsListener("playerPlayEnd",function(){o({playerState:3,kdp:r,videoId:t})}),e(r)}})});return{kWidget:function(){return e}}});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"fireEvent",value:function(e){var t=e.playerState,n=e.kdp,r=e.videoId,o=Math.round(n.evaluate("{video.player.currentTime}"));2===t&&0===o&&(t=0);var a={playerType:"kaltura",title:n.evaluate("{mediaProxy.entry.name}"),currentTime:o,duration:n.evaluate("{mediaProxy.entry.duration}"),playerState:t,videoId:r};f.videoPlayerStats(a)}},{key:"api",value:function(){var e=d(l.mark(function e(t){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then(function(){return pt&&pt[t]?pt[t]:new Promise(function(e){return new c.kWidget.api({wid:"_"+ot}).doRequest({service:"media",action:"get",entryId:t},function(t){pt[t.id]=t,e(t)})})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getVideoDuration",value:function(e){var t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24);return r=r>0?r+":":"",t=t<10?"0"+t:t,e&&"("+r+n+":"+t+")"}}]),e}();e.AnalyticsAPI=f,e.DDOAPI=g,e.LocaleAPI=ke,e.MarketingSearchAPI=Ae,e.ProfileAPI=ze,e.SearchTypeaheadAPI=Ke,e.TranslationAPI=rt,e.VideoPlayerAPI=dt,e.globalInit=function(){w||(w=!0,g.setVersion().catch(function(e){console.error("Error setting the version of the library in the DDO:",e)}),f.initAll())},Object.defineProperty(e,"__esModule",{value:!0})});