@times-components/article-skeleton 1.137.8-alpha.1 → 1.137.8-alpha.14

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,151 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.140.6](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.140.5...@times-components/article-skeleton@1.140.6) (2024-10-28)
7
+
8
+ **Note:** Version bump only for package @times-components/article-skeleton
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.140.5](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.140.4...@times-components/article-skeleton@1.140.5) (2024-10-23)
15
+
16
+ **Note:** Version bump only for package @times-components/article-skeleton
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.140.4](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.140.3...@times-components/article-skeleton@1.140.4) (2024-10-19)
23
+
24
+ **Note:** Version bump only for package @times-components/article-skeleton
25
+
26
+
27
+
28
+
29
+
30
+ ## [1.140.3](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.140.2...@times-components/article-skeleton@1.140.3) (2024-10-18)
31
+
32
+ **Note:** Version bump only for package @times-components/article-skeleton
33
+
34
+
35
+
36
+
37
+
38
+ ## [1.140.2](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.140.1...@times-components/article-skeleton@1.140.2) (2024-10-18)
39
+
40
+ **Note:** Version bump only for package @times-components/article-skeleton
41
+
42
+
43
+
44
+
45
+
46
+ ## [1.140.1](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.140.0...@times-components/article-skeleton@1.140.1) (2024-10-17)
47
+
48
+ **Note:** Version bump only for package @times-components/article-skeleton
49
+
50
+
51
+
52
+
53
+
54
+ # [1.140.0](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.139.3...@times-components/article-skeleton@1.140.0) (2024-10-15)
55
+
56
+
57
+ ### Features
58
+
59
+ * **TMD-119:** add extra ad slots to preview articles ([#3953](https://github.com/newsuk/times-components/issues/3953)) ([63c3abe](https://github.com/newsuk/times-components/commit/63c3abe92105f8f22609543bf62fd9046af961dc))
60
+
61
+
62
+
63
+
64
+
65
+ ## [1.139.3](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.139.2...@times-components/article-skeleton@1.139.3) (2024-10-15)
66
+
67
+ **Note:** Version bump only for package @times-components/article-skeleton
68
+
69
+
70
+
71
+
72
+
73
+ ## [1.139.2](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.139.1...@times-components/article-skeleton@1.139.2) (2024-10-15)
74
+
75
+ **Note:** Version bump only for package @times-components/article-skeleton
76
+
77
+
78
+
79
+
80
+
81
+ ## [1.139.1](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.139.0...@times-components/article-skeleton@1.139.1) (2024-10-14)
82
+
83
+ **Note:** Version bump only for package @times-components/article-skeleton
84
+
85
+
86
+
87
+
88
+
89
+ # [1.139.0](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.138.1...@times-components/article-skeleton@1.139.0) (2024-10-10)
90
+
91
+
92
+ ### Features
93
+
94
+ * **TMD-897:** Add article schema to live blog ([#3951](https://github.com/newsuk/times-components/issues/3951)) ([fc57bbe](https://github.com/newsuk/times-components/commit/fc57bbe8a85657b2ec396024f23b213245bf4a07))
95
+
96
+
97
+
98
+
99
+
100
+ ## [1.138.1](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.138.0...@times-components/article-skeleton@1.138.1) (2024-10-01)
101
+
102
+ **Note:** Version bump only for package @times-components/article-skeleton
103
+
104
+
105
+
106
+
107
+
108
+ # [1.138.0](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.137.11...@times-components/article-skeleton@1.138.0) (2024-10-01)
109
+
110
+
111
+ ### Features
112
+
113
+ * **TMC-27:** Opening links in new tab ([#3939](https://github.com/newsuk/times-components/issues/3939)) ([bb3dd33](https://github.com/newsuk/times-components/commit/bb3dd33664157f6ec796f70b815dbe6c30017f17))
114
+
115
+
116
+
117
+
118
+
119
+ ## [1.137.11](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.137.10...@times-components/article-skeleton@1.137.11) (2024-10-01)
120
+
121
+ **Note:** Version bump only for package @times-components/article-skeleton
122
+
123
+
124
+
125
+
126
+
127
+ ## [1.137.10](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.137.9...@times-components/article-skeleton@1.137.10) (2024-09-30)
128
+
129
+ **Note:** Version bump only for package @times-components/article-skeleton
130
+
131
+
132
+
133
+
134
+
135
+ ## [1.137.9](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.137.8...@times-components/article-skeleton@1.137.9) (2024-09-16)
136
+
137
+ **Note:** Version bump only for package @times-components/article-skeleton
138
+
139
+
140
+
141
+
142
+
143
+ ## [1.137.8](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.137.7...@times-components/article-skeleton@1.137.8) (2024-09-16)
144
+
145
+ **Note:** Version bump only for package @times-components/article-skeleton
146
+
147
+
148
+
149
+
150
+
6
151
  ## [1.137.7](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.137.6...@times-components/article-skeleton@1.137.7) (2024-09-09)
7
152
 
8
153
  **Note:** Version bump only for package @times-components/article-skeleton
@@ -75,8 +75,12 @@ var _newsletterPuff = _interopRequireDefault(require("./contentModifiers/newslet
75
75
 
76
76
  var _inlineAd = _interopRequireDefault(require("./contentModifiers/inline-ad"));
77
77
 
78
+ var _shouldIncludeDisclaimer = _interopRequireDefault(require("./contentModifiers/should-include-disclaimer"));
79
+
78
80
  var _dataHelper = require("./data-helper");
79
81
 
82
+ var _setExternalLinkTargets = _interopRequireDefault(require("./contentModifiers/setExternalLinkTargets"));
83
+
80
84
  var _keylines = require("./keylines");
81
85
 
82
86
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -202,7 +206,7 @@ const ArticleSkeleton = _ref => {
202
206
  breadcrumbs = _ref2.breadcrumbs;
203
207
 
204
208
  const articleUrl = hostName && canonicalUrl ? "".concat(hostName).concat(canonicalUrl) : url;
205
- const articleContentReducers = [(0, _dropcapUtil.default)(template, dropcapsDisabled), (0, _newsletterPuff.default)(section, isPreview, expirableFlags), _inlineAd.default, _articleTrackingLastParagraph.default];
209
+ const articleContentReducers = [(0, _dropcapUtil.default)(template, dropcapsDisabled), _shouldIncludeDisclaimer.default, (0, _newsletterPuff.default)(section, isPreview, expirableFlags), (0, _inlineAd.default)(isPreview), _articleTrackingLastParagraph.default, _setExternalLinkTargets.default];
206
210
  const newContent = reduceArticleContent(content, articleContentReducers);
207
211
  const HeaderAdContainer = (0, _responsive.getHeaderAdStyles)(template);
208
212
 
@@ -11,10 +11,23 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
11
11
 
12
12
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
13
 
14
- const insertInlineAd = children => {
14
+ const insertInlineAd = isPreview => children => {
15
15
  const clonedChildren = [...children];
16
- const child = clonedChildren.find(item => item.name === "paywall");
17
- const paragraph = clonedChildren.filter(item => item.name === "paragraph");
16
+ let adIndex;
17
+
18
+ const getChild = () => {
19
+ if (isPreview) {
20
+ adIndex = clonedChildren.findIndex(item => item.name === "ad");
21
+ return {
22
+ children: clonedChildren.slice(adIndex)
23
+ };
24
+ }
25
+
26
+ return clonedChildren.find(item => item.name === "paywall");
27
+ };
28
+
29
+ const child = getChild();
30
+ const paragraph = isPreview ? clonedChildren.slice(0, adIndex).filter(item => item.name === "paragraph") : clonedChildren.filter(item => item.name === "paragraph");
18
31
 
19
32
  if (!child) {
20
33
  return clonedChildren;
@@ -42,7 +55,7 @@ const insertInlineAd = children => {
42
55
  }
43
56
  }
44
57
  });
45
- return clonedChildren;
58
+ return isPreview ? [...children.slice(0, adIndex), ...paywallChildren] : clonedChildren;
46
59
  };
47
60
 
48
61
  var _default = insertInlineAd;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
+
10
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
+
12
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+
14
+ const setExternalLinkTargets = children => {
15
+ const clonedChildren = [...children];
16
+
17
+ const checkAndSetLinkTarget = elements => elements.map(el => {
18
+ let newElement = _objectSpread({}, el); // Check if element is a link or an interactive element with a URL
19
+
20
+
21
+ if (newElement.name === "link" || newElement.name === "interactive" && newElement.attributes && newElement.attributes.element && newElement.attributes.element.value === "times-travel-cta") {
22
+ const _newElement = newElement,
23
+ attributes = _newElement.attributes;
24
+
25
+ const _ref = attributes || {},
26
+ element = _ref.element;
27
+
28
+ const _ref2 = element || {},
29
+ elementAttributes = _ref2.attributes;
30
+
31
+ const href = newElement.name === "interactive" ? elementAttributes.url || "" : attributes.href || ""; // If the link is external, set target to _blank
32
+
33
+ if (href && !href.startsWith("https://www.thetimes.co.uk") && !href.startsWith("https://www.thetimes.com")) {
34
+ newElement = _objectSpread(_objectSpread({}, newElement), {}, {
35
+ attributes: _objectSpread(_objectSpread({}, attributes), {}, {
36
+ target: "_blank"
37
+ })
38
+ });
39
+ }
40
+ }
41
+
42
+ if (newElement.children && newElement.children.length) {
43
+ newElement.children = checkAndSetLinkTarget(newElement.children);
44
+ }
45
+
46
+ return newElement;
47
+ });
48
+
49
+ return checkAndSetLinkTarget(clonedChildren);
50
+ };
51
+
52
+ var _default = setExternalLinkTargets;
53
+ exports.default = _default;
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
+
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+
14
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
15
+
16
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
17
+
18
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
19
+
20
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21
+
22
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
+
24
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25
+
26
+ function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
27
+
28
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
+
30
+ // eslint-disable-line
31
+ const newDisclaimerText = {
32
+ name: "paragraph",
33
+ children: [{
34
+ name: "italic",
35
+ children: [{
36
+ name: "text",
37
+ children: [],
38
+ attributes: {
39
+ value: "All recommendations within this article are informed by expert editorial opinion. If you click on a link in this story we may earn affiliate revenue."
40
+ }
41
+ }]
42
+ }]
43
+ };
44
+ const oldDisclaimerTexts = ["This article contains affiliate links that can earn us revenue", "This article contains affiliate links that may earn us revenue", "This article contains affiliate links which may earn us revenue", "This article contains affiliate links, which can earn us revenue", "This article contains affiliate links, which may earn us revenue", "This article contains affiliate links, which may earn�us revenue", "This article contains affiliate links, which�may earn us revenue", "This article contains�affiliate links, which may earn us revenue", "This article contains affiliate links", "This article contains links that can earn us revenue", "This article contains links which may earn us revenue", "This article contains links, which can earn us revenue", "This article contains links, which may earn us revenu", "This article contains links from which we may earn revenue"];
45
+ const domainJson = ["(clicks.)?trx-hub.com", "go.skimresources.com", "go.redirectingat.com", "(www.)?fave.co", "beavertownbrewery.pxf.io", "wilko.sjv.io", "fanatics.93n6tx.net", "ticketmaster-uk.tm7559.net", "(www.)?prf.hn", "nastygal.prf.hn", "selfridges.prf.hn", "bloomwild.prf.hn", "go.linkby.com", "(www.)?awin1.com", "track.webgains.com", "click.linksynergy.com", "(www.)?dpbolvw.net", "(www.)?kqzyfj.com", "(www.)?anrdoezrs.net", "(www.)?veneficus.co.uk", "(www.)?shareasale.com", "(www.)?privadovpn.com", "(www.)?amzn.to", "(www.)?amazon.[\\S]*?\\/(dp|gp)\\/[\\S]*?tag=", "(www.)?planethowl.com"];
46
+
47
+ const isLinkAffiliate = function isLinkAffiliate() {
48
+ let url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
49
+ let adsDomains = arguments.length > 1 ? arguments[1] : undefined;
50
+ const affiliateStrPattern = "<a\\s[^>]*?href=\"https?:\\/\\/(".concat(adsDomains.join("|"), ")");
51
+ const anchorEl = "<a href=\"".concat(url, "\"></a>");
52
+ const affiliateLinkPattern = new RegExp(affiliateStrPattern, "i");
53
+ return affiliateLinkPattern.test(anchorEl);
54
+ };
55
+
56
+ const shouldIncludeDisclaimer = children => {
57
+ const _useState = (0, _react.useState)(domainJson),
58
+ _useState2 = _slicedToArray(_useState, 2),
59
+ domainListing = _useState2[0],
60
+ setDomainListing = _useState2[1]; // eslint-disable-line
61
+ // eslint-disable-next-line
62
+
63
+
64
+ (0, _react.useEffect)(() => {
65
+ function getDomainListing() {
66
+ return _getDomainListing.apply(this, arguments);
67
+ }
68
+
69
+ function _getDomainListing() {
70
+ _getDomainListing = _asyncToGenerator(function* () {
71
+ let domainList = domainJson;
72
+
73
+ try {
74
+ const getDomains = yield fetch("https://ads.thetimes.com/affiliates/domains.json").then(response => response.text());
75
+ const formattedRes = getDomains.replaceAll("'", '"');
76
+ const parsedRes = JSON.parse("{\"response\": ".concat(formattedRes, " }"));
77
+ domainList = parsedRes.response;
78
+ } catch (error) {
79
+ console.log("Fetching domain listing failed. Using default."); // eslint-disable-line
80
+ }
81
+
82
+ setDomainListing(domainList);
83
+ });
84
+ return _getDomainListing.apply(this, arguments);
85
+ }
86
+
87
+ getDomainListing();
88
+ }, []);
89
+ const clonedChildren = [...children];
90
+ let affiliateLinkExist = false;
91
+ let affiliateDisclaimerExist = false;
92
+
93
+ const checkForAffiliate = elements => {
94
+ elements.some(el => {
95
+ // Check if disclaimer text already exists.
96
+ const isTextCollapseComponent = !!(el.name === "interactive" && el.attributes && el.attributes.element && el.attributes.element.value && el.attributes.element.value === "times-text-collapse");
97
+
98
+ if (!affiliateDisclaimerExist && (el.name === "text" || isTextCollapseComponent)) {
99
+ const textComponentVal = el.name === "text" && el.attributes && el.attributes.value ? el.attributes.value : "";
100
+ const interactiveComponentVal = isTextCollapseComponent && el.attributes && el.attributes.element && el.attributes.element.attributes && el.attributes.element.attributes.disclaimer_text ? el.attributes.element.attributes.disclaimer_text : "";
101
+ const text = textComponentVal || interactiveComponentVal;
102
+
103
+ if (oldDisclaimerTexts.some(contentText => text.includes(contentText))) {
104
+ affiliateDisclaimerExist = true;
105
+ }
106
+ }
107
+
108
+ if (affiliateDisclaimerExist) {
109
+ return true;
110
+ } // Move to next iteration if element is not link, and doesn't have children.
111
+
112
+
113
+ if (el.name !== "interactive" && el.name !== "link" && (el.children === undefined || !el.children.length)) {
114
+ return false;
115
+ } // Check for affiliate links.
116
+
117
+
118
+ const isTravelCtaComponent = !!(el.name === "interactive" && el.attributes && el.attributes.element && el.attributes.element.value && el.attributes.element.value === "times-travel-cta");
119
+
120
+ if (!affiliateLinkExist && (el.name === "link" || isTravelCtaComponent)) {
121
+ const linkComponentVal = el.name === "link" && el.attributes && el.attributes.href ? el.attributes.href : "";
122
+ const ctaComponentVal = isTravelCtaComponent && el.attributes && el.attributes.element && el.attributes.element.attributes && el.attributes.element.attributes.url ? el.attributes.element.attributes.url : "";
123
+ const href = linkComponentVal || ctaComponentVal;
124
+
125
+ if (!href || !isLinkAffiliate(href, domainListing)) {
126
+ return false;
127
+ }
128
+
129
+ affiliateLinkExist = true;
130
+ } // Check recursively for nested children.
131
+
132
+
133
+ if (el.children !== undefined && el.children.length) {
134
+ checkForAffiliate(el.children);
135
+ }
136
+
137
+ return affiliateLinkExist;
138
+ });
139
+ return {
140
+ affiliateLinkExist,
141
+ affiliateDisclaimerExist
142
+ };
143
+ };
144
+
145
+ const affiliatesCheck = checkForAffiliate(clonedChildren); // Add disclaimer after first paragraph (in case disclaimer doesn't already exist).
146
+
147
+ if (!affiliatesCheck.affiliateDisclaimerExist && affiliatesCheck.affiliateLinkExist) {
148
+ const firstParagraph = clonedChildren.find(el => el.name === "paragraph");
149
+
150
+ if (firstParagraph) {
151
+ clonedChildren.splice(clonedChildren.indexOf(firstParagraph) + 1, 0, newDisclaimerText);
152
+ }
153
+ }
154
+
155
+ return clonedChildren;
156
+ };
157
+
158
+ var _default = shouldIncludeDisclaimer;
159
+ exports.default = _default;
package/dist/head.js CHANGED
@@ -287,8 +287,7 @@ function Head(_ref4) {
287
287
  updatedTime = article.updatedTime,
288
288
  hasVideo = article.hasVideo,
289
289
  seoDescription = article.seoDescription,
290
- keywords = article.keywords,
291
- id = article.id;
290
+ keywords = article.keywords;
292
291
 
293
292
  const _ref5 = leadAsset || {},
294
293
  brightcoveAccountId = _ref5.brightcoveAccountId,
@@ -362,7 +361,6 @@ function Head(_ref4) {
362
361
  author: authorSchema,
363
362
  articleSection: sectionname,
364
363
  keywords: sectionNameList,
365
- articleId: id,
366
364
  url: articleUrl
367
365
  };
368
366
 
@@ -408,8 +406,7 @@ function Head(_ref4) {
408
406
  publisher: publisherSchema,
409
407
  author: authorSchema,
410
408
  liveBlogUpdate: liveBlogUpdateSchema,
411
- articleSection: sectionname,
412
- articleId: id
409
+ articleSection: sectionname
413
410
  };
414
411
  const isSyndicatedArticle = SYNDICATED_ARTICLE_IDS.includes(article.id);
415
412
  const breadcrumbJsonLD = breadcrumbs && breadcrumbs.length ? {
@@ -475,9 +472,9 @@ function Head(_ref4) {
475
472
  }), leadassetUrl && /*#__PURE__*/_react.default.createElement("meta", {
476
473
  content: leadassetUrl,
477
474
  name: "twitter:image"
478
- }), isLiveBlogArticle ? /*#__PURE__*/_react.default.createElement("script", {
475
+ }), isLiveBlogArticle && /*#__PURE__*/_react.default.createElement("script", {
479
476
  type: "application/ld+json"
480
- }, JSON.stringify(liveBlogJsonLD)) : /*#__PURE__*/_react.default.createElement("script", {
477
+ }, JSON.stringify(liveBlogJsonLD)), /*#__PURE__*/_react.default.createElement("script", {
481
478
  type: "application/ld+json"
482
479
  }, JSON.stringify(jsonLD)), videoJsonLD && /*#__PURE__*/_react.default.createElement("script", {
483
480
  type: "application/ld+json"
@@ -110,7 +110,7 @@ exports.Heading6 = Heading6;
110
110
  const InlineAdWrapper = _styledComponents.default.div.withConfig({
111
111
  displayName: "responsive__InlineAdWrapper",
112
112
  componentId: "sc-4v1r4q-14"
113
- })(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:970px){min-height:283px;}"]);
113
+ })(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:1024px){min-height:283px;}"]);
114
114
 
115
115
  exports.InlineAdWrapper = InlineAdWrapper;
116
116
 
@@ -20,7 +20,7 @@ const getHeaderAdStyles = template => {
20
20
  return (0, _styledComponents.default)(_utils.TcView).withConfig({
21
21
  displayName: "responsive",
22
22
  componentId: "sc-15gvuj2-0"
23
- })(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:", ";border-bottom-color:", ";border-bottom-width:", ";padding-top:", ";padding-bottom:", ";@media (min-width:768px){min-height:90px;}@media (min-width:970px){min-height:250px;}"], _tsStyleguide.colours.functional.keyline, _tsStyleguide.colours.functional.keyline, hideKeylines ? "0" : "1px", (0, _tsStyleguide.spacing)(2), hideKeylines ? "0" : (0, _tsStyleguide.spacing)(2));
23
+ })(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:", ";border-bottom-color:", ";border-bottom-width:", ";padding-top:", ";padding-bottom:", ";@media (min-width:768px){min-height:90px;}@media (min-width:1024px){min-height:250px;}"], _tsStyleguide.colours.functional.keyline, _tsStyleguide.colours.functional.keyline, hideKeylines ? "0" : "1px", (0, _tsStyleguide.spacing)(2), hideKeylines ? "0" : (0, _tsStyleguide.spacing)(2));
24
24
  };
25
25
 
26
26
  exports.getHeaderAdStyles = getHeaderAdStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-components/article-skeleton",
3
- "version": "1.137.8-alpha.1+99fa43b471",
3
+ "version": "1.137.8-alpha.14+23ab1999c5",
4
4
  "description": "The article skeleton",
5
5
  "main": "dist/article-skeleton",
6
6
  "dev": "src/article-skeleton",
@@ -11,7 +11,7 @@
11
11
  "lint": "eslint . && stylelint . && yarn prettier:diff && yarn depcheck",
12
12
  "prepublishOnly": "yarn transpile && yarn bundle",
13
13
  "test:web": "jest --config='./__tests__/jest.config.js' --updateSnapshot",
14
- "test:web:updatesnapshot": "yarn test:web -u",
14
+ "test:web:updatesnapshot": "TZ=UTC yarn test:web -u",
15
15
  "cleanup-dist": "rm -rf dist",
16
16
  "watch": "watch 'yarn bundle' ./src --ignoreDotFiles --ignoreUnreadable",
17
17
  "transpile": "yarn cleanup-dist && babel src -d dist",
@@ -40,7 +40,7 @@
40
40
  "@times-components/eslint-config-thetimes": "^0.8.18",
41
41
  "@times-components/jest-configurator-web": "^0.8.2",
42
42
  "@times-components/jest-serializer": "^3.13.20",
43
- "@times-components/provider-test-tools": "^1.30.3",
43
+ "@times-components/provider-test-tools": "^1.30.4",
44
44
  "@times-components/storybook": "^4.12.34",
45
45
  "@times-components/tealium-utils": "^0.9.1",
46
46
  "@times-components/test-utils": "^2.4.2",
@@ -62,30 +62,30 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@times-components/ad": "^2.22.23",
65
- "@times-components/article-extras": "^0.32.7-alpha.1+99fa43b471",
65
+ "@times-components/article-extras": "^0.32.7-alpha.14+23ab1999c5",
66
66
  "@times-components/article-image": "^7.18.1",
67
- "@times-components/article-paragraph": "^1.9.328-alpha.1+99fa43b471",
67
+ "@times-components/article-paragraph": "^1.9.328-alpha.14+23ab1999c5",
68
68
  "@times-components/article-topics": "^4.11.55",
69
69
  "@times-components/caption": "^3.8.55",
70
70
  "@times-components/context": "^1.24.0",
71
71
  "@times-components/interactive-wrapper": "^0.9.89",
72
- "@times-components/key-facts": "^2.12.97",
72
+ "@times-components/key-facts": "^2.12.98-alpha.16+23ab1999c5",
73
73
  "@times-components/lazy-load": "^0.20.0",
74
74
  "@times-components/link": "^3.17.34",
75
- "@times-components/markup": "^3.8.61",
75
+ "@times-components/markup": "^3.9.0",
76
76
  "@times-components/markup-forest": "^1.9.2",
77
77
  "@times-components/message-bar": "^0.7.85",
78
- "@times-components/provider-queries": "^2.23.2",
78
+ "@times-components/provider-queries": "^2.23.3",
79
79
  "@times-components/pull-quote": "^3.15.40",
80
- "@times-components/save-and-share-bar": "^0.23.5-alpha.1+99fa43b471",
80
+ "@times-components/save-and-share-bar": "^0.23.5-alpha.14+23ab1999c5",
81
81
  "@times-components/sticky": "^0.5.84",
82
82
  "@times-components/tracking": "^2.22.34",
83
- "@times-components/ts-components": "^1.103.4",
83
+ "@times-components/ts-components": "^1.103.5-alpha.16+23ab1999c5",
84
84
  "@times-components/ts-styleguide": "^1.50.34",
85
85
  "@times-components/typeset": "^0.3.3",
86
86
  "@times-components/user-state": "^0.5.51",
87
87
  "@times-components/utils": "^6.26.0",
88
- "@times-components/video": "^4.18.26",
88
+ "@times-components/video": "^4.19.0",
89
89
  "lodash.get": "4.4.2",
90
90
  "lodash.pick": "4.4.0",
91
91
  "memoize-one": "5.1.1",
@@ -105,5 +105,5 @@
105
105
  "publishConfig": {
106
106
  "access": "public"
107
107
  },
108
- "gitHead": "99fa43b4711ba31c13aef13fa2da1516918c10d7"
108
+ "gitHead": "23ab1999c5d03b97da9ba9974c110f2f97ac4aca"
109
109
  }
package/rnw.js CHANGED
@@ -1 +1 @@
1
- module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var p,u=Array.prototype,m=Function.prototype,g=Object.prototype,f=d["__core-js_shared__"],h=(p=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,y=g.hasOwnProperty,v=g.toString,w=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,j=u.splice,E=N(d,"Map"),x=N(Object,"create"),k=O?O.prototype:void 0,P=k?k.toString:void 0;function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function z(e,t){for(var i,a=0,o=(t=function(e,t){if(B(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||U(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:B(i=t)?i:F(i)).length;null!=e&&a<o;)e=e[D(t[a++])];return a&&a==o?e:void 0}function T(e){return!(!q(e)||(t=e,h&&h in t))&&(function(e){var t=q(e)?v.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function A(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return T(n)?n:void 0}_.prototype.clear=function(){this.__data__=x?x(null):{}},_.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_.prototype.get=function(e){var t=this.__data__;if(x){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},_.prototype.has=function(e){var t=this.__data__;return x?void 0!==t[e]:y.call(t,e)},_.prototype.set=function(e,t){return this.__data__[e]=x&&void 0===t?"__lodash_hash_undefined__":t,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),!0)},S.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},S.prototype.has=function(e){return I(this.__data__,e)>-1},S.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new _,map:new(E||S),string:new _}},C.prototype.delete=function(e){return A(this,e).delete(e)},C.prototype.get=function(e){return A(this,e).get(e)},C.prototype.has=function(e){return A(this,e).has(e)},C.prototype.set=function(e,t){return A(this,e).set(e,t),this};var F=M((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function M(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(M.Cache||C),n}M.Cache=C;var B=Array.isArray;function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==v.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:z(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(6),l=n(7),s=n(17),d=n.n(s),p=n(13),u=n.n(p),m=n(8),g=n.n(m),f=n(10),h=n(3),b=n(1),y=n(12),v=n.n(y),w=n(18);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}var k=function(){var e,t=(e=function*(){try{const e=yield fetch("https://api.thetimes.co.uk/graphql",{method:"POST",body:JSON.stringify({query:"\n query GetPuzzleSections {\n editions {\n list(first: 1, group: date, region: default) {\n id\n publishedTime\n date\n updatedTime\n sections {\n __typename\n id\n title\n slug\n ... on PuzzleSection {\n id\n title\n slug\n slices {\n ... on Puzzle {\n __typename\n id\n title\n url\n hideOnMobile\n type\n slug\n shortIdentifier\n image {\n id\n title\n caption\n credits\n crops {\n ratio\n url\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"})});if(!e.ok)throw new Error("Network response was not ok: ".concat(e.status));const t=yield e.json(),n=(t&&t.data&&t.data.editions&&t.data.editions.list?t.data.editions.list.map(e=>{const t=e.sections.find(e=>e&&"PuzzleSection"===e.__typename);return t?j(j({},t),{},{slices:t.slices.map(e=>j(j({},e),{},{section:{title:t.title,id:t.id}}))}):null}).filter(Boolean):[]).flatMap(e=>e.slices.filter(e=>"Puzzle"===e.__typename&&"polygon"===e.type).map(e=>({slug:e.slug,shortIdentifier:e.shortIdentifier})));return n.map(e=>(e=>{const t="/puzzles/word-puzzles";return e.shortIdentifier?"".concat(t,"/").concat(e.slug,"-").concat(e.shortIdentifier):t})(e))[0]}catch(e){return null}},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){x(a,r,i,o,c,"next",e)}function c(e){x(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I(e){e.children;let t=e.element,n=void 0===t?"div":t,i=e.html,a=C(e,["children","element","html"]);return Object(r.createElement)(n,_(_({},a),{},{undefined:void 0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i}}))}var z=n(19),T=n.n(z),A=n(15),N=n.n(A),F=n(9),D=n.n(F),M=n(20),B=n.n(M),q=n(21),U=n.n(q),L=n(22),R=n.n(L),W=n(23),H=n.n(W),V=n(24),$=n.n(V),K=n(11),G=n.n(K),J=n(14),Q=n.n(J);const Y={base:"\n color: ".concat(b.colours.functional.action,";\n font-family: ").concat(b.fontsWithFallback.bodyRegular,";\n line-height: 26px;\n font-size: ").concat(b.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(b.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(b.fontSizes.body,"px;\n line-height: 30px;\n ")},X={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(b.colours.functional.action,";\n ")};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ne=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(i.a.Fragment,null,0===t.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(Q.a,{responsiveLinkStyles:Y,target:n,onPress:a,url:r},r)," "):i.a.createElement(Q.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?X:Y,target:n,url:r,onPress:a},t))};ne.defaultProps=ee(ee({},Q.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var re,ie=(re=ne,Object(f.withTrackEvents)(re,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),ae=n(2),oe=n.n(ae),ce=n(16),le=n.n(ce);function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pe=oe()(c.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(b.spacing)(2),b.breakpoints.medium),ue=e=>{let t=e.caption,n=e.credits;return i.a.createElement(pe,null,i.a.createElement(le.a,{credits:n,text:t}))};ue.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},le.a.defaultProps);var me=ue;oe.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide),oe.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",";font-family:",";line-height:26px;font-size:","px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],b.colours.functional.primary,b.fontsWithFallback.bodyRegular,b.fontSizes.bodyMobile,Object(b.spacing)(5),b.breakpoints.medium,b.fontSizes.body);const ge=oe.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["margin-bottom:",";",";"],Object(b.spacing)(4),e=>e.fullWidth?Object(ae.css)(["width:100%;"]):Object(ae.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide)),fe=oe()(c.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(5),b.breakpoints.medium,b.breakpoints.wide),he=oe()(c.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(b.spacing)(4)),be=oe()(c.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),Object(b.spacing)(5),b.breakpoints.medium,b.breakpoints.wide),ye=oe()(c.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide),ve=oe()(c.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(b.spacing)(2),Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,Object(b.spacing)(4),Object(b.spacing)(1)),we=oe()(c.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],b.breakpoints.medium,b.breakpoints.wide),Oe="color: ".concat(b.colours.functional.primary,";\n font-family: ").concat(b.fontsWithFallback.headline,";\n font-weight: 400;\n margin: 0 auto ").concat(Object(b.spacing)(2),";\n padding-right: ").concat(Object(b.spacing)(2),";\n padding-left: ").concat(Object(b.spacing)(2),";\n\n @media (min-width: ").concat(b.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(b.breakpoints.wide,"px) {\n width: 56.2%;\n }"),je=oe.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading2Mobile,b.fontSizes.heading2Mobile,b.breakpoints.medium,b.fontSizes.heading2,b.fontSizes.heading2),Ee=oe.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading3Mobile,b.fontSizes.heading3Mobile,b.breakpoints.medium,b.fontSizes.heading3,b.fontSizes.heading3),xe=oe.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading4Mobile,b.fontSizes.heading4Mobile,b.breakpoints.medium,b.fontSizes.heading4,b.fontSizes.heading4),ke=oe.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading5Mobile,b.fontSizes.heading5Mobile,b.breakpoints.medium,b.fontSizes.heading5,b.fontSizes.heading5),Pe=oe.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading5Mobile,b.fontSizes.heading5Mobile,b.breakpoints.medium,b.fontSizes.heading5,b.fontSizes.heading5),_e=oe.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-14"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:970px){min-height:283px;}"]),Se=oe.a.h2.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;"],b.fontSizes.teaser,b.fontsWithFallback.bodyRegular);function Ce(){return(Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ae="https://gobble.timesdev.tools/deck/api/deck-post-action/",Ne=["c8bf6998-d498-11ed-b5c3-54651fc826e9"],Fe=e=>Ne.includes(e),De=e=>{switch(e){case"secondary":return be;case"inline":return ye;case"fullwidth":return he;default:return fe}},Me=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},Be=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,s=e.isPreview,d=e.swgProductId,p=e.inArticlePuffFlag,m=e.isLiveOrBreaking,g=e.articleHeadline,f=e.id;return G()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?ze(ze({},e),{},{attributes:ze(ze({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.isLiveOrBreaking,s=e.section,d=e.articleHeadline,p=e.articleId;return ze(ze({},R.a),{},{ad:e=>Fe(p)?null:i.a.createElement(_e,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>Fe(p)?null:i.a.createElement(_e,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>Fe(p)?null:i.a.createElement(_e,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>Fe(p)?null:i.a.createElement(_e,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd3"})),inlineAd4:e=>Fe(p)?null:i.a.createElement(_e,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd4"})),dropCap:(e,t,n)=>i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?b.colours.section.default:a;return i.a.createElement(A.DropCapView,{colour:o,font:r},n)}),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.credits;const d=De(a);return i.a.createElement(u.a,{key:e,rootMargin:Object(b.spacing)(40),threshold:0},t=>{let p=t.observed,u=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>u(e)},i.a.createElement("div",{id:r},i.a.createElement(d,null,i.a.createElement(T.a,{captionOptions:{caption:l,credits:s},imageOptions:{display:a,highResSize:Me(p,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c}}))))})},interactive(e,t){let n=t.id,c=t.url,l=t.element,d=t.display;const p=l.attributes,u=l.value;switch(u){case"in-article-info-card":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:Ae+p["deck-id"]},i.a.createElement(h.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:Ae+p["deck-id"]},i.a.createElement(h.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:Ae+p["deck-id"]},i.a.createElement(h.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:Ae+p["deck-id"]},i.a.createElement(h.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:Ae+p["deck-id"]},i.a.createElement(h.GalleryCarousel,{sectionColour:t.sectionColour})))});case"newsletter-puff":const t=p.code,l=p.copy,m=p.headline;return a?i.a.createElement("div",{id:n},i.a.createElement(h.PreviewNewsletterPuff,{copy:Object(h.safeDecodeURIComponent)(l),headline:Object(h.safeDecodeURIComponent)(m),section:s})):i.a.createElement("div",{id:n},i.a.createElement(h.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(h.safeDecodeURIComponent)(l),headline:Object(h.safeDecodeURIComponent)(m),section:s}));case"opta-cricket-scorecard":case"opta-cricket-scorecard-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaCricketScorecard,{competition:p.competition,match:p.match}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballSummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbySummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"in-article-puff":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:Ae+p["deck-id"]},i.a.createElement(h.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:o})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(h.ArticleHeader,{updated:p.updated,breaking:p.breaking,headline:p.headline,authorSlug:p.slug,description:p.description}));default:return i.a.createElement(ge,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(B.a,{attributes:p,element:u,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline;return i.a.createElement(h.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,section:s})},keyFacts:(e,t,n,r,a)=>i.a.createElement(U.a,{key:e,ast:a,section:s,headline:d,isLiveOrBreaking:o}),heading2:(e,t,n)=>i.a.createElement(je,null,n),heading3:(e,t,n)=>i.a.createElement(Ee,null,n),heading4:(e,t,n)=>i.a.createElement(xe,null,n),heading5:(e,t,n)=>i.a.createElement(ke,null,n),heading6:(e,t,n)=>i.a.createElement(Pe,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(ie,{dropCap:o,key:e,target:a,url:r},n)},paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(N.a,Ce({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?b.colours.section.default:l;return i.a.createElement(we,null,i.a.createElement(ve,null,i.a.createElement(H.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,l=t.brightcoveAccountId,s=t.brightcovePlayerId,d=t.caption,p=t.posterImageUrl;const u=De("primary");return i.a.createElement(u,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(c.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement($.a,{id:n,is360:r,accountId:l,height:"100%",playerId:s,policyKey:a,poster:{uri:p},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(me,{caption:d}))))}})})({paidContentClassName:a,template:o,isPreview:s,swgProductId:d,inArticlePuffFlag:p,isLiveOrBreaking:m,articleId:f,section:r,articleHeadline:g}))};Be.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var qe=Be;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({account:o.a.string.isRequired}).isRequired,o.a.string,o.a.bool,o.a.bool,o.a.string.isRequired;var Ue=n(5),Le=n.n(Ue);const Re=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},We=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.customerType?e.customerType:""},He=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},Ve=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},$e=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qe=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?Ge(Ge({},e),{},{attributes:Ge(Ge({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?Ge(Ge({},e),{},{children:i}):e)};const Ye=oe.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],b.colours.functional.keyline),Xe=oe()(Ye).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],b.breakpoints.medium,Object(b.spacing)(6),b.breakpoints.medium,b.breakpoints.wide,Object(b.spacing)(2),Object(b.spacing)(2)),Ze=oe.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],b.breakpoints.wide,Object(b.spacing)(4)),et=oe()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;z-index:1;> ","{order:3;}"],Xe),tt=oe.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]),nt=oe.a.div.withConfig({displayName:"responsive__UpdateButtonContainer",componentId:"sc-15gvuj2-4"})(["position:sticky;bottom:50px;display:flex;width:100%;justify-content:center;@media (min-width:","px){bottom:80px;}@media (min-width:","px){bottom:120px;}"],b.breakpoints.medium,b.breakpoints.wide),rt=oe.a.div.withConfig({displayName:"responsive__SidebarWarpper",componentId:"sc-15gvuj2-5"})(["position:sticky;top:162px;display:none;left:100%;@media (min-width:","px){width:19.8333%;display:inline-block;}@media (min-width:","px){width:18.8333%;top:112px;}"],b.breakpoints.wide,b.breakpoints.huge),it=oe.a.div.withConfig({displayName:"responsive__PuzzlesSidebar",componentId:"sc-15gvuj2-6"})(["position:sticky;padding-left:",";z-index:1;@media (min-width:","px){padding-right:",";}@media (min-width:","px){padding-right:",";}"],Object(b.spacing)(4),b.breakpoints.wide,Object(b.spacing)(8),b.breakpoints.huge,Object(b.spacing)(10)),at=oe.a.div.withConfig({displayName:"responsive__ArticleWrapper",componentId:"sc-15gvuj2-7"})(["position:relative;"]),ot=oe.a.div.withConfig({displayName:"responsive__ArticleContent",componentId:"sc-15gvuj2-8"})(["@media (min-width:","px){margin-top:",";transition:margin-top 0.2s ease;}"],b.breakpoints.wide,e=>e.showMargin?"-335px":"0"),ct=oe.a.div.withConfig({displayName:"responsive__EmailBannerContainer",componentId:"sc-15gvuj2-9"})(["position:sticky;top:80px;width:100%;z-index:100;display:flex;justify-content:center;height:100%;@media (max-width:","px){max-width:327px;height:100px;margin:auto;}"],b.breakpoints.medium);function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=e=>{const t=Object(b.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),padding:i(2)},articleLink:st(st({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:st(st({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingLeft:i(2),paddingRight:i(2)},interactiveContainerTablet:{alignSelf:"center",width:b.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingLeft:0,paddingRight:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:st(st({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:st(st({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:st(st({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var ut={articleContainer:{backgroundColor:b.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(b.spacing)(2),paddingRight:Object(b.spacing)(2)}};function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ht=pt(),bt=gt(gt({},ht),{},{ad:gt(gt({},ht.ad),{},{marginBottom:Object(b.spacing)(6),marginTop:Object(b.spacing)(6),width:"100%"}),articleTextElement:gt(gt({},ht.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var yt=gt(gt({},ut),bt),vt=n(25);const wt=["37a19ac4-1cbb-11ee-8198-bf96b6365670"];function Ot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return null;const n=e.reduce((e,t)=>(e.push(...t.slices),e),[]),r=n.reduce((e,t)=>(e.push(...t.sections),e),[]);return r.map(e=>t+e.title)}const jt={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},Et=e=>Le()(e,"crop169.url",null),xt=e=>Et(Le()(e,"leadAsset.posterImage",Le()(e,"leadAsset",null))),kt=e=>Et(Le()(e,"leadAsset",null)),Pt=e=>(e.hasVideo?xt:kt)(e),_t=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?xt(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Le()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Le()(e.listingAsset,"crop169.url",null);return n||Le()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,p=a||o||c||l||s||d;return p?p.url:""};function St(e){let t=e.article,n=e.articleUrl,r=e.logoUrl,a=e.paidContentClassName,o=e.getFallbackThumbnailUrl169,l=e.swgProductId,s=e.breadcrumbs,d=e.domainSpecificUrl;const p=t.descriptionMarkup,u=t.headline,m=t.leadAsset,g=t.publicationName,f=t.shortHeadline,h=t.publishedTime,b=t.updatedTime,y=t.hasVideo,v=t.seoDescription,w=t.keywords,O=t.id,j=m||{},E=j.brightcoveAccountId,x=j.brightcoveVideoId,k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),_=jt[g],S=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object(K.renderTreeAsText)({children:n})}(t),C=v||(Array.isArray(p)&&p.length?Object(K.renderTreeAsText)({children:p}):null),I=function(e){const t=Ot(e.tiles);if(null==t)return null;const n=t.filter(e=>"News"!==e);return n.length?n[0]:"News"}(t),z=function(e){const t=Ot(e.tiles,"Section:");return null==t?null:t.filter((e,t,n)=>n.indexOf(e)===t).slice(0,2).toString()}(t),T=_t(t)||(o?o():null),A=Object(c.appendToImageURL)(Pt(t),"resize",1200)||T,N=function(e,t){return e.bylines?(n=e,n.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let n=e.name,r=e.jobTitle,i=e.twitter,a=e.slug;const o="".concat(t,"/profile/").concat(a);return{"@type":"Person",name:n,jobTitle:r,sameAs:i?[o,"https://twitter.com/".concat(i)]:o}}):[];var n}(t,d),F=Le()(m,"caption",null),D=u||f||"",M=h&&new Date(h).toISOString(),B=b||M,q=S?{"@type":"Person",name:S}:null,U=(N&&N.length?N:q)||{"@type":"Organization",name:"The Times"},L={"@type":"Organization",name:_,logo:{"@type":"ImageObject",url:r}},R=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if(i[l].attributes.element&&"article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Le()(i[l],"children[0].attributes.value","");o.articleBody?o.articleBody+=" ".concat(e):o.articleBody=e}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,L,U),W={"@context":"https://schema.org","@type":"NewsArticle",headline:D,publisher:{"@type":"Organization",name:_,logo:{"@type":"ImageObject",url:r}},mainEntityOfPage:{"@type":"WebPage","@id":n},dateCreated:h,datePublished:M,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a)},image:{"@type":"ImageObject",url:A,caption:F},thumbnailUrl:T,dateModified:B,author:U,articleSection:I,keywords:z,articleId:O,url:n};l&&(W.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:l});const H=y?{"@context":"https://schema.org","@type":"VideoObject",name:m&&m.title?m.title:D,uploadDate:B,thumbnailUrl:T,description:Array.isArray(p)&&p.length?Object(K.renderTreeAsText)({children:p}):v||m.title||D,contentUrl:"https://players.brightcove.net/".concat(E,"/default_default/index.html?videoId=").concat(x)}:null,V={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:u,description:v,mainEntityOfPage:{"@type":"WebPage","@id":n},datePublished:h,dateModified:b,coverageStartTime:h,coverageEndTime:k,url:n,keywords:w,image:{"@type":"ImageObject",url:A,caption:F},publisher:L,author:U,liveBlogUpdate:R,articleSection:I,articleId:O},$=wt.includes(t.id),G=s&&s.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:s.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.title,item:"".concat(d,"/").concat(e.slug)}))}:null;return i.a.createElement(vt.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,D),$&&i.a.createElement("meta",{name:"robots",content:"noindex"}),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:D,name:"article:title"}),i.a.createElement("meta",{content:_,name:"article:publication"}),C&&i.a.createElement("meta",{content:C,name:"description"}),S&&i.a.createElement("meta",{content:S,name:"author"}),i.a.createElement("meta",{content:D,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n,property:"og:url"}),C&&i.a.createElement("meta",{content:C,property:"og:description"}),A&&i.a.createElement("meta",{content:A,property:"og:image"}),y&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:D,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n,name:"twitter:url"}),C&&i.a.createElement("meta",{content:C,name:"twitter:description"}),A&&i.a.createElement("meta",{content:A,name:"twitter:image"}),P?i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(V)):i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(W)),H&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(H)),G&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(G)))}St.defaultProps={swgProductId:null,breadcrumbs:[]};var Ct=St;var It=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Le()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})},zt=n(26),Tt=n.n(zt);function At(){return(At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Nt=oe.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;display:flex;align-items:center;",";"],b.colours.functional.white,e=>e.isClient&&[m.selectors.sizer(Object(ae.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),m.selectors.sticky(Object(ae.css)(["will-change:height,box-shadow;"])),Object(m.computeProgressStyles)(e=>Object(ae.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,b.colours.functional.greyStickyBarBoxShadow,m.selectors.stickySizer(Object(ae.css)(["border-bottom-color:",";"],b.colours.functional.greyStickyBarBorderBottom))))]),Ft=oe.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareItem",componentId:"hqppv0-1"})(["order:3;& + &{margin-top:-1px !important;}@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],b.breakpoints.medium,Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide,Object(b.spacing)(2),Object(b.spacing)(2));function Dt(e){return i.a.createElement(c.ServerClientRender,{client:()=>i.a.createElement(Nt,At({isClient:!0},e)),server:()=>i.a.createElement(Nt,e)})}const Mt=Object(m.mediaQuery)("(max-width: ".concat(b.breakpoints.huge,"px)"));var Bt=function(e){return i.a.createElement(Ft,null,i.a.createElement(g.a,{Component:Dt,shouldBeSticky:Mt},i.a.createElement(Tt.a,e)))};function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rt=["indepth","maincomment","magazinestandard","magazinecomment"],Wt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Le()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return Ut(Ut({},e),{},{attributes:Ut({},e.attributes),children:[Ut(Ut({},t[0]),{},{attributes:Ut(Ut({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),Ut(Ut({},t[0]),{},{attributes:Ut(Ut({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;if("link"===t[0].name&&0===t[0].children.length)return null;const r=Wt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=Ut(Ut({},e),{},{attributes:Ut(Ut({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=Ut(Ut({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},Ht=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?Ht(t.children):e};var Vt=(e,t,n)=>{try{if(t&&Rt.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Wt(t),i=Wt(t);Ht(r.children).splice(1);Ht(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},$t=(e,t)=>n=>{const r=Vt(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qt=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:Gt({label:"In your inbox"},e)}},children:[]}),Yt=[{section:"news",payload:Qt({code:"TNL-101",headline:"Best of Times",copy:"Our flagship newsletter featuring our top stories and analysis, delivered every morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:Qt({code:"TNL-103",headline:"Business briefing",copy:"Morning and midday updates on financial and economic news from our award-winning business team.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:Qt({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories from The Times and Sunday Times Scotland, every Saturday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:Qt({code:"TNL-107",headline:"Money newsletter",copy:"Personal finance and investment news from our money experts, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:Qt({code:"TNL-121",headline:"The Brief",copy:"Get expert analysis, news and commentary in The Brief, our legal editor's insider's guide, every Thursday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:Qt({code:"TNL-113",headline:"Property newsletter",copy:"Inside Britain's most exclusive homes, expert advice and what's really happening in the property market, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"luxury",payload:Qt({code:"TNL-148",headline:"Luxury newsletter",copy:"Do you need more luxury in your life? Sign up to the Times Luxury newsletter with one click.",imageUri:"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fcbd3c7a9-4d25-422a-b4a5-a48072778002.jpg?crop=1990%2C1322%2C0%2C0&resize=800"})},{section:"bricks & mortar",payload:Qt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"ireland",payload:Qt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})},{section:"irish sport",payload:Qt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})}],Xt=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),Zt=(e,t,n)=>Gt(Gt({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),en=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var tn=(e,t,n)=>r=>{if(t||Ve(n))return r;const i=(e=>{const t=Yt.find(t=>t.section===e.toLowerCase());return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(Xt(r)||Xt(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=en(e),i=en(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,Zt(t,3-n,i)]:[...e,t],[])};function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=e=>{const t=[...e],n=t.find(e=>"paywall"===e.name),r=t.filter(e=>"paragraph"===e.name);if(!n)return t;const i=n.children,a=i.map((e,t)=>rn(rn({},e),{},{index:t})).filter(e=>"paragraph"===e.name);a.pop();return[9,14,19,24].forEach((e,t)=>{if(!i.find(e=>e.name==="inlineAd".concat(t+1))){const n=a[e-r.length]?a[e-r.length].index:null;n&&null!==n&&i.splice(n+t+1,0,{name:"inlineAd".concat(t+1),children:[]})}}),t};function cn(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"reduceArticleContent",(function(){return dn})),n.d(t,"KeylineItem",(function(){return Ye})),n.d(t,"ArticleKeylineItem",(function(){return Xe})),n.d(t,"ArticleLink",(function(){return ie}));const dn=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),pn=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.logoUrl,s=e.receiveChildList,p=e.commentingConfig,g=e.articleDataFromRender,f=e.paidContentClassName,y=e.isPreview,O=e.swgProductId,j=e.getFallbackThumbnailUrl169,E=e.zephrDivs,x=e.showAudioPlayer,P=e.storefrontConfig;const _=n.commentsEnabled,S=n.content,C=n.dropcapsDisabled,z=n.id,T=n.section,A=n.url,N=n.headline,F=n.shortHeadline,D=n.expirableFlags,M=n.topics,B=n.relatedArticleSlice,q=n.template,U=n.savingEnabled,L=n.sharingEnabled,R=n.publishedTime,W=n.isSavingEnabled,H=n.isSharingEnabled,V=n.isCommentEnabled,$=n.isEntitlementFeatureEnabled,K=ln(Object(r.useState)(!1),2),G=K[0],J=K[1],Q=Object(r.useRef)(),Y=()=>{const e=Q.current;if(e){const t=document.querySelectorAll(".responsive__InlineAdWrapper-sc-4v1r4q-17, .responsive__InlineAdWrapper-sc-4v1r4q-14, .responsive__FullWidthImg-sc-4v1r4q-4, .responsive__InteractiveContainer-sc-4v1r4q-2");let n=!1;t.forEach(t=>{if(t){const r=t.getBoundingClientRect();r.top<=e.getBoundingClientRect().bottom&&r.bottom>=e.getBoundingClientRect().top&&(n=!0)}}),e.style.opacity=n?"0":"1"}};Object(r.useEffect)(()=>{const e=!!JSON.parse(window.sessionStorage.getItem("verifyEmail"));J(e)},[]),Object(r.useEffect)(()=>{const e=Q.current;return e&&(e.style.transition="opacity 0.2s ease"),Y(),window.addEventListener("scroll",Y),()=>{window.removeEventListener("scroll",Y)}},[]);const X=g||{},Z=X.hostName,ee=X.canonicalUrl,te=X.breadcrumbs,ne=Z&&ee?"".concat(Z).concat(ee):A,re=[$t(q,C),tn(T,y,D),on,Qe],ie=dn(S,re),ae=(e=>{const t="indepth"===e;return oe()(c.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:970px){min-height:250px;}"],b.colours.functional.keyline,b.colours.functional.keyline,t?"0":"1px",Object(b.spacing)(2),t?"0":Object(b.spacing)(2))})(q);s([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const ce=(U||L)&&(W||H),le=Z||"https://www.thetimes.co.uk",se=Ve(D),de=ln(Object(r.useState)([]),2),pe=de[0],ue=de[1],me=function(){var e,t=(e=function*(){const e=yield k();ue(e)},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){cn(a,r,i,o,c,"next",e)}function c(e){cn(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)(()=>{Object(c.CanShowPuzzleSidebar)(T)&&me()},[c.CanShowPuzzleSidebar,T]),i.a.createElement(m.StickyProvider,null,i.a.createElement(h.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:N||F||"",section_details:T}},analyticsStream:t},G&&i.a.createElement(ct,null,i.a.createElement(h.Banner,{title:"Check your inbox",body:"Verify your email by clicking on the link sent to your inbox.",onClose:()=>{window.sessionStorage.setItem("verifyEmail",!1),J(!1)}})),y&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:z,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":T,"data-article-template":q},!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-head"></div>'}),i.a.createElement(Ct,{article:n,articleUrl:ne,logoUrl:o,paidContentClassName:f,getFallbackThumbnailUrl169:j,swgProductId:O,breadcrumbs:te,domainSpecificUrl:le}),!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-below-head"></div>'}),i.a.createElement(r.Fragment,null,i.a.createElement(ae,{key:"headerAd"},i.a.createElement(l.AdContainer,{slotName:"header",style:yt.adMarginStyle})),i.a.createElement(Ze,null,i.a.createElement(h.WelcomeBanner,null),!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-maincontainer"></div>'}),i.a.createElement(et,{showAudioPlayer:x},!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-headercontainer"></div>'}),i.a.createElement(a,null),ce?i.a.createElement(v.a,{state:v.a.showSaveAndShareBar},i.a.createElement(w.MessageContext.Consumer,null,e=>{let t=e.showMessage;return i.a.createElement(Bt,{articleId:z,articleHeadline:N,articleUrl:ne,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:U,sharingEnabled:L,hostName:le})})):null,!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-bottom-headercontainer"></div>'})),i.a.createElement(tt,null,i.a.createElement(at,null,Object(c.CanShowPuzzleSidebar)(T)&&i.a.createElement(rt,null,i.a.createElement(it,{ref:Q},i.a.createElement(h.ArticleSidebar,{pageLink:"".concat(le,"/puzzles"),sectionTitle:"Puzzles",data:[{title:"Crossword",url:"".concat(le,"/puzzles/crossword"),imgUrl:"".concat(le,"/d/img/puzzles/new-illustrations/crossword-c7ae8934ef.png")},{title:"Polygon",url:pe,imgUrl:"".concat(le,"/d/img/puzzles/new-illustrations/polygon-875ea55487.png")},{title:"Sudoku",url:"".concat(le,"/puzzles/sudoku"),imgUrl:"".concat(le,"/d/img/puzzles/new-illustrations/sudoku-ee2aea0209.png")}]}))),i.a.createElement(ot,{showMargin:Object(c.CanShowPuzzleSidebar)(T)},!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-bodycontainer"></div>'}),ie&&i.a.createElement(qe,{id:n.id,analyticsStream:t,content:ie,contextUrl:ne,section:T,articleHeadline:N,paidContentClassName:f,template:q,isPreview:y,isLiveOrBreaking:se}),se&&i.a.createElement(v.a,{state:v.a.showLiveUpdateButton},i.a.createElement(nt,{"data-testid":"Update button container"},i.a.createElement(h.UpdateButtonWithDelay,{delay:8e3,update:!0,display:!0,label:"New update",handleClick:()=>(e=>{e.scroll({left:0,top:0}),e.location.reload(!0)})(window),updatedTime:n.publishedTime,articleId:n.id}))),i.a.createElement(It,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"},!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-paywall"></div>'})))),i.a.createElement(u.a,{rootMargin:Object(b.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(d.a,{analyticsStream:t,articleId:z,articleHeadline:N,articleUrl:ne,section:T,publishedTime:R,savingEnabled:U,sharingEnabled:L,commentsEnabled:_,registerNode:r,relatedArticleSlice:B,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:p,topics:M,isSharingSavingEnabled:ce,isCommentEnabled:V,storefrontConfig:P,breadcrumbs:te,domainSpecificUrl:le,isEntitlementFeatureEnabled:$})}),!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-bottom-bodycontainer"></div>'})),!!E&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-bottom-maincontainer"></div>'}))),i.a.createElement(l.AdContainer,{slotName:"pixel"}),i.a.createElement(l.AdContainer,{slotName:"pixelteads"}),i.a.createElement(l.AdContainer,{slotName:"pixelskin"}))))};pn.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null,zephrDivs:!1};t.default=(e=>Object(f.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Le()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Le()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Le()(t,"headline",""),label:Le()(t,"label",""),pageName:"".concat(Le()(t,"slug",""),"-").concat(Le()(t,"shortIdentifier","")),edition_type:o,publishedTime:Le()(t,"publishedTime",""),parent_site:Le()(t,"publicationName",""),referralUrl:a,section:n||Le()(t,"section",""),template:Le()(t,"template","Default"),registrationType:Re(),customerType:We(),shared:He(),article_flag:$e(l)?$e(l):"no flag",article_template_name:Ve(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(f.withTrackScrollDepth)(pn))}]);
1
+ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var u,p=Array.prototype,m=Function.prototype,f=Object.prototype,h=d["__core-js_shared__"],g=(u=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",b=m.toString,y=f.hasOwnProperty,w=f.toString,v=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,j=p.splice,x=N(d,"Map"),E=N(Object,"create"),k=O?O.prototype:void 0,P=k?k.toString:void 0;function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function T(e,t){for(var i,a=0,o=(t=function(e,t){if(q(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||U(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:q(i=t)?i:F(i)).length;null!=e&&a<o;)e=e[D(t[a++])];return a&&a==o?e:void 0}function z(e){return!(!B(e)||(t=e,g&&g in t))&&(function(e){var t=B(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function A(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return z(n)?n:void 0}S.prototype.clear=function(){this.__data__=E?E(null):{}},S.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},S.prototype.get=function(e){var t=this.__data__;if(E){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},S.prototype.has=function(e){var t=this.__data__;return E?void 0!==t[e]:y.call(t,e)},S.prototype.set=function(e,t){return this.__data__[e]=E&&void 0===t?"__lodash_hash_undefined__":t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),!0)},_.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},_.prototype.has=function(e){return I(this.__data__,e)>-1},_.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new S,map:new(x||_),string:new S}},C.prototype.delete=function(e){return A(this,e).delete(e)},C.prototype.get=function(e){return A(this,e).get(e)},C.prototype.has=function(e){return A(this,e).has(e)},C.prototype.set=function(e,t){return A(this,e).set(e,t),this};var F=M((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function M(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(M.Cache||C),n}M.Cache=C;var q=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:T(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(6),l=n(7),s=n(17),d=n.n(s),u=n(13),p=n.n(u),m=n(8),f=n.n(m),h=n(10),g=n(3),b=n(1),y=n(12),w=n.n(y),v=n(18);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}var k=function(){var e,t=(e=function*(){try{const e=yield fetch("https://api.thetimes.co.uk/graphql",{method:"POST",body:JSON.stringify({query:"\n query GetPuzzleSections {\n editions {\n list(first: 1, group: date, region: default) {\n id\n publishedTime\n date\n updatedTime\n sections {\n __typename\n id\n title\n slug\n ... on PuzzleSection {\n id\n title\n slug\n slices {\n ... on Puzzle {\n __typename\n id\n title\n url\n hideOnMobile\n type\n slug\n shortIdentifier\n image {\n id\n title\n caption\n credits\n crops {\n ratio\n url\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"})});if(!e.ok)throw new Error("Network response was not ok: ".concat(e.status));const t=yield e.json(),n=(t&&t.data&&t.data.editions&&t.data.editions.list?t.data.editions.list.map(e=>{const t=e.sections.find(e=>e&&"PuzzleSection"===e.__typename);return t?j(j({},t),{},{slices:t.slices.map(e=>j(j({},e),{},{section:{title:t.title,id:t.id}}))}):null}).filter(Boolean):[]).flatMap(e=>e.slices.filter(e=>"Puzzle"===e.__typename&&"polygon"===e.type).map(e=>({slug:e.slug,shortIdentifier:e.shortIdentifier})));return n.map(e=>(e=>{const t="/puzzles/word-puzzles";return e.shortIdentifier?"".concat(t,"/").concat(e.slug,"-").concat(e.shortIdentifier):t})(e))[0]}catch(e){return null}},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){E(a,r,i,o,c,"next",e)}function c(e){E(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I(e){e.children;let t=e.element,n=void 0===t?"div":t,i=e.html,a=C(e,["children","element","html"]);return Object(r.createElement)(n,S(S({},a),{},{undefined:void 0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i}}))}var T=n(19),z=n.n(T),A=n(15),N=n.n(A),F=n(9),D=n.n(F),M=n(20),q=n.n(M),B=n(21),U=n.n(B),L=n(22),R=n.n(L),W=n(23),H=n.n(W),V=n(24),$=n.n(V),J=n(11),K=n.n(J),G=n(14),Q=n.n(G);const Y={base:"\n color: ".concat(b.colours.functional.action,";\n font-family: ").concat(b.fontsWithFallback.bodyRegular,";\n line-height: 26px;\n font-size: ").concat(b.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(b.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(b.fontSizes.body,"px;\n line-height: 30px;\n ")},X={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(b.colours.functional.action,";\n ")};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ne=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(i.a.Fragment,null,0===t.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(Q.a,{responsiveLinkStyles:Y,target:n,onPress:a,url:r},r)," "):i.a.createElement(Q.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?X:Y,target:n,url:r,onPress:a},t))};ne.defaultProps=ee(ee({},Q.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var re,ie=(re=ne,Object(h.withTrackEvents)(re,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),ae=n(2),oe=n.n(ae),ce=n(16),le=n.n(ce);function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue=oe()(c.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(b.spacing)(2),b.breakpoints.medium),pe=e=>{let t=e.caption,n=e.credits;return i.a.createElement(ue,null,i.a.createElement(le.a,{credits:n,text:t}))};pe.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},le.a.defaultProps);var me=pe;oe.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide),oe.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",";font-family:",";line-height:26px;font-size:","px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],b.colours.functional.primary,b.fontsWithFallback.bodyRegular,b.fontSizes.bodyMobile,Object(b.spacing)(5),b.breakpoints.medium,b.fontSizes.body);const fe=oe.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["margin-bottom:",";",";"],Object(b.spacing)(4),e=>e.fullWidth?Object(ae.css)(["width:100%;"]):Object(ae.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide)),he=oe()(c.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(5),b.breakpoints.medium,b.breakpoints.wide),ge=oe()(c.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(b.spacing)(4)),be=oe()(c.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),Object(b.spacing)(5),b.breakpoints.medium,b.breakpoints.wide),ye=oe()(c.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide),we=oe()(c.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(b.spacing)(2),Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,Object(b.spacing)(4),Object(b.spacing)(1)),ve=oe()(c.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],b.breakpoints.medium,b.breakpoints.wide),Oe="color: ".concat(b.colours.functional.primary,";\n font-family: ").concat(b.fontsWithFallback.headline,";\n font-weight: 400;\n margin: 0 auto ").concat(Object(b.spacing)(2),";\n padding-right: ").concat(Object(b.spacing)(2),";\n padding-left: ").concat(Object(b.spacing)(2),";\n\n @media (min-width: ").concat(b.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(b.breakpoints.wide,"px) {\n width: 56.2%;\n }"),je=oe.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading2Mobile,b.fontSizes.heading2Mobile,b.breakpoints.medium,b.fontSizes.heading2,b.fontSizes.heading2),xe=oe.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading3Mobile,b.fontSizes.heading3Mobile,b.breakpoints.medium,b.fontSizes.heading3,b.fontSizes.heading3),Ee=oe.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading4Mobile,b.fontSizes.heading4Mobile,b.breakpoints.medium,b.fontSizes.heading4,b.fontSizes.heading4),ke=oe.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading5Mobile,b.fontSizes.heading5Mobile,b.breakpoints.medium,b.fontSizes.heading5,b.fontSizes.heading5),Pe=oe.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Oe,b.fontSizes.heading5Mobile,b.fontSizes.heading5Mobile,b.breakpoints.medium,b.fontSizes.heading5,b.fontSizes.heading5),Se=oe.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-14"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:1024px){min-height:283px;}"]),_e=oe.a.h2.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;"],b.fontSizes.teaser,b.fontsWithFallback.bodyRegular);function Ce(){return(Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ae="https://gobble.timesdev.tools/deck/api/deck-post-action/",Ne=["c8bf6998-d498-11ed-b5c3-54651fc826e9"],Fe=e=>Ne.includes(e),De=e=>{switch(e){case"secondary":return be;case"inline":return ye;case"fullwidth":return ge;default:return he}},Me=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},qe=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,s=e.isPreview,d=e.swgProductId,u=e.inArticlePuffFlag,m=e.isLiveOrBreaking,f=e.articleHeadline,h=e.id;return K()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?Te(Te({},e),{},{attributes:Te(Te({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.isLiveOrBreaking,s=e.section,d=e.articleHeadline,u=e.articleId;return Te(Te({},R.a),{},{ad:e=>Fe(u)?null:i.a.createElement(Se,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>Fe(u)?null:i.a.createElement(Se,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>Fe(u)?null:i.a.createElement(Se,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>Fe(u)?null:i.a.createElement(Se,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd3"})),inlineAd4:e=>Fe(u)?null:i.a.createElement(Se,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd4"})),dropCap:(e,t,n)=>i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?b.colours.section.default:a;return i.a.createElement(A.DropCapView,{colour:o,font:r},n)}),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.credits;const d=De(a);return i.a.createElement(p.a,{key:e,rootMargin:Object(b.spacing)(40),threshold:0},t=>{let u=t.observed,p=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>p(e)},i.a.createElement("div",{id:r},i.a.createElement(d,null,i.a.createElement(z.a,{captionOptions:{caption:l,credits:s},imageOptions:{display:a,highResSize:Me(u,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c}}))))})},interactive(e,t){let n=t.id,c=t.url,l=t.element,d=t.display;const u=l.attributes,p=l.value;switch(p){case"in-article-info-card":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:Ae+u["deck-id"]},i.a.createElement(g.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:Ae+u["deck-id"]},i.a.createElement(g.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:Ae+u["deck-id"]},i.a.createElement(g.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:Ae+u["deck-id"]},i.a.createElement(g.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:Ae+u["deck-id"]},i.a.createElement(g.GalleryCarousel,{sectionColour:t.sectionColour})))});case"newsletter-puff":const t=u.code,l=u.copy,m=u.headline;return a?i.a.createElement("div",{id:n},i.a.createElement(g.PreviewNewsletterPuff,{copy:Object(g.safeDecodeURIComponent)(l),headline:Object(g.safeDecodeURIComponent)(m),section:s})):i.a.createElement("div",{id:n},i.a.createElement(g.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(g.safeDecodeURIComponent)(l),headline:Object(g.safeDecodeURIComponent)(m),section:s}));case"opta-cricket-scorecard":case"opta-cricket-scorecard-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaCricketScorecard,{competition:u.competition,match:u.match}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballFixtures,{season:u.season,competition:u.competition,date_from:u["date-from"],date_to:u["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballStandings,{season:u.season,competition:u.competition,default_nav:u.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballSummary,{season:u.season,competition:u.competition,match:u.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballMatchStats,{season:u.season,competition:u.competition,match:u.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbyFixtures,{season:u.season,competition:u.competition,date_from:u["date-from"],date_to:u["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbyStandings,{season:u.season,competition:u.competition,default_nav:u.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbySummary,{season:u.season,competition:u.competition,match:u.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbyMatchStats,{season:u.season,competition:u.competition,match:u.match}));case"in-article-puff":return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:Ae+u["deck-id"]},i.a.createElement(g.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:o})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(g.ArticleHeader,{updated:u.updated,breaking:u.breaking,headline:u.headline,authorSlug:u.slug,description:u.description}));default:return i.a.createElement(fe,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(q.a,{attributes:u,element:p,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline;return i.a.createElement(g.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,section:s})},keyFacts:(e,t,n,r,a)=>i.a.createElement(U.a,{key:e,ast:a,section:s,headline:d,isLiveOrBreaking:o}),heading2:(e,t,n)=>i.a.createElement(je,null,n),heading3:(e,t,n)=>i.a.createElement(xe,null,n),heading4:(e,t,n)=>i.a.createElement(Ee,null,n),heading5:(e,t,n)=>i.a.createElement(ke,null,n),heading6:(e,t,n)=>i.a.createElement(Pe,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(ie,{dropCap:o,key:e,target:a,url:r},n)},paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(N.a,Ce({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(D.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?b.colours.section.default:l;return i.a.createElement(ve,null,i.a.createElement(we,null,i.a.createElement(H.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,l=t.brightcoveAccountId,s=t.brightcovePlayerId,d=t.caption,u=t.posterImageUrl;const p=De("primary");return i.a.createElement(p,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(c.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement($.a,{id:n,is360:r,accountId:l,height:"100%",playerId:s,policyKey:a,poster:{uri:u},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(me,{caption:d}))))}})})({paidContentClassName:a,template:o,isPreview:s,swgProductId:d,inArticlePuffFlag:u,isLiveOrBreaking:m,articleId:h,section:r,articleHeadline:f}))};qe.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var Be=qe;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({account:o.a.string.isRequired}).isRequired,o.a.string,o.a.bool,o.a.bool,o.a.string.isRequired;var Ue=n(5),Le=n.n(Ue);const Re=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},We=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.customerType?e.customerType:""},He=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},Ve=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},$e=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qe=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?Ke(Ke({},e),{},{attributes:Ke(Ke({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?Ke(Ke({},e),{},{children:i}):e)};const Ye=oe.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],b.colours.functional.keyline),Xe=oe()(Ye).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],b.breakpoints.medium,Object(b.spacing)(6),b.breakpoints.medium,b.breakpoints.wide,Object(b.spacing)(2),Object(b.spacing)(2)),Ze=oe.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],b.breakpoints.wide,Object(b.spacing)(4)),et=oe()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;z-index:1;> ","{order:3;}"],Xe),tt=oe.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]),nt=oe.a.div.withConfig({displayName:"responsive__UpdateButtonContainer",componentId:"sc-15gvuj2-4"})(["position:sticky;bottom:50px;display:flex;width:100%;justify-content:center;@media (min-width:","px){bottom:80px;}@media (min-width:","px){bottom:120px;}"],b.breakpoints.medium,b.breakpoints.wide),rt=oe.a.div.withConfig({displayName:"responsive__SidebarWarpper",componentId:"sc-15gvuj2-5"})(["position:sticky;top:162px;display:none;left:100%;@media (min-width:","px){width:19.8333%;display:inline-block;}@media (min-width:","px){width:18.8333%;top:112px;}"],b.breakpoints.wide,b.breakpoints.huge),it=oe.a.div.withConfig({displayName:"responsive__PuzzlesSidebar",componentId:"sc-15gvuj2-6"})(["position:sticky;padding-left:",";z-index:1;@media (min-width:","px){padding-right:",";}@media (min-width:","px){padding-right:",";}"],Object(b.spacing)(4),b.breakpoints.wide,Object(b.spacing)(8),b.breakpoints.huge,Object(b.spacing)(10)),at=oe.a.div.withConfig({displayName:"responsive__ArticleWrapper",componentId:"sc-15gvuj2-7"})(["position:relative;"]),ot=oe.a.div.withConfig({displayName:"responsive__ArticleContent",componentId:"sc-15gvuj2-8"})(["@media (min-width:","px){margin-top:",";transition:margin-top 0.2s ease;}"],b.breakpoints.wide,e=>e.showMargin?"-335px":"0"),ct=oe.a.div.withConfig({displayName:"responsive__EmailBannerContainer",componentId:"sc-15gvuj2-9"})(["position:sticky;top:80px;width:100%;z-index:100;display:flex;justify-content:center;height:100%;@media (max-width:","px){max-width:327px;height:100px;margin:auto;}"],b.breakpoints.medium);function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ut=e=>{const t=Object(b.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),padding:i(2)},articleLink:st(st({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:st(st({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingLeft:i(2),paddingRight:i(2)},interactiveContainerTablet:{alignSelf:"center",width:b.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingLeft:0,paddingRight:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:st(st({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:st(st({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:st(st({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var pt={articleContainer:{backgroundColor:b.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(b.spacing)(2),paddingRight:Object(b.spacing)(2)}};function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gt=ut(),bt=ft(ft({},gt),{},{ad:ft(ft({},gt.ad),{},{marginBottom:Object(b.spacing)(6),marginTop:Object(b.spacing)(6),width:"100%"}),articleTextElement:ft(ft({},gt.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var yt=ft(ft({},pt),bt),wt=n(25);const vt=["37a19ac4-1cbb-11ee-8198-bf96b6365670"];function Ot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return null;const n=e.reduce((e,t)=>(e.push(...t.slices),e),[]),r=n.reduce((e,t)=>(e.push(...t.sections),e),[]);return r.map(e=>t+e.title)}const jt={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},xt=e=>Le()(e,"crop169.url",null),Et=e=>xt(Le()(e,"leadAsset.posterImage",Le()(e,"leadAsset",null))),kt=e=>xt(Le()(e,"leadAsset",null)),Pt=e=>(e.hasVideo?Et:kt)(e),St=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?Et(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Le()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Le()(e.listingAsset,"crop169.url",null);return n||Le()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,u=a||o||c||l||s||d;return u?u.url:""};function _t(e){let t=e.article,n=e.articleUrl,r=e.logoUrl,a=e.paidContentClassName,o=e.getFallbackThumbnailUrl169,l=e.swgProductId,s=e.breadcrumbs,d=e.domainSpecificUrl;const u=t.descriptionMarkup,p=t.headline,m=t.leadAsset,f=t.publicationName,h=t.shortHeadline,g=t.publishedTime,b=t.updatedTime,y=t.hasVideo,w=t.seoDescription,v=t.keywords,O=m||{},j=O.brightcoveAccountId,x=O.brightcoveVideoId,E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),P=jt[f],S=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object(J.renderTreeAsText)({children:n})}(t),_=w||(Array.isArray(u)&&u.length?Object(J.renderTreeAsText)({children:u}):null),C=function(e){const t=Ot(e.tiles);if(null==t)return null;const n=t.filter(e=>"News"!==e);return n.length?n[0]:"News"}(t),I=function(e){const t=Ot(e.tiles,"Section:");return null==t?null:t.filter((e,t,n)=>n.indexOf(e)===t).slice(0,2).toString()}(t),T=St(t)||(o?o():null),z=Object(c.appendToImageURL)(Pt(t),"resize",1200)||T,A=function(e,t){return e.bylines?(n=e,n.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let n=e.name,r=e.jobTitle,i=e.twitter,a=e.slug;const o="".concat(t,"/profile/").concat(a);return{"@type":"Person",name:n,jobTitle:r,sameAs:i?[o,"https://twitter.com/".concat(i)]:o}}):[];var n}(t,d),N=Le()(m,"caption",null),F=p||h||"",D=g&&new Date(g).toISOString(),M=b||D,q=S?{"@type":"Person",name:S}:null,B=(A&&A.length?A:q)||{"@type":"Organization",name:"The Times"},U={"@type":"Organization",name:P,logo:{"@type":"ImageObject",url:r}},L=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if(i[l].attributes.element&&"article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Le()(i[l],"children[0].attributes.value","");o.articleBody?o.articleBody+=" ".concat(e):o.articleBody=e}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,U,B),R={"@context":"https://schema.org","@type":"NewsArticle",headline:F,publisher:{"@type":"Organization",name:P,logo:{"@type":"ImageObject",url:r}},mainEntityOfPage:{"@type":"WebPage","@id":n},dateCreated:g,datePublished:D,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a)},image:{"@type":"ImageObject",url:z,caption:N},thumbnailUrl:T,dateModified:M,author:B,articleSection:C,keywords:I,url:n};l&&(R.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:l});const W=y?{"@context":"https://schema.org","@type":"VideoObject",name:m&&m.title?m.title:F,uploadDate:M,thumbnailUrl:T,description:Array.isArray(u)&&u.length?Object(J.renderTreeAsText)({children:u}):w||m.title||F,contentUrl:"https://players.brightcove.net/".concat(j,"/default_default/index.html?videoId=").concat(x)}:null,H={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:p,description:w,mainEntityOfPage:{"@type":"WebPage","@id":n},datePublished:g,dateModified:b,coverageStartTime:g,coverageEndTime:E,url:n,keywords:v,image:{"@type":"ImageObject",url:z,caption:N},publisher:U,author:B,liveBlogUpdate:L,articleSection:C},V=vt.includes(t.id),$=s&&s.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:s.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.title,item:"".concat(d,"/").concat(e.slug)}))}:null;return i.a.createElement(wt.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,F),V&&i.a.createElement("meta",{name:"robots",content:"noindex"}),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:F,name:"article:title"}),i.a.createElement("meta",{content:P,name:"article:publication"}),_&&i.a.createElement("meta",{content:_,name:"description"}),S&&i.a.createElement("meta",{content:S,name:"author"}),i.a.createElement("meta",{content:F,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n,property:"og:url"}),_&&i.a.createElement("meta",{content:_,property:"og:description"}),z&&i.a.createElement("meta",{content:z,property:"og:image"}),y&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:F,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n,name:"twitter:url"}),_&&i.a.createElement("meta",{content:_,name:"twitter:description"}),z&&i.a.createElement("meta",{content:z,name:"twitter:image"}),k&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(H)),i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(R)),W&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(W)),$&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify($)))}_t.defaultProps={swgProductId:null,breadcrumbs:[]};var Ct=_t;var It=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Le()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})},Tt=n(26),zt=n.n(Tt);function At(){return(At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Nt=oe.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;display:flex;align-items:center;",";"],b.colours.functional.white,e=>e.isClient&&[m.selectors.sizer(Object(ae.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),m.selectors.sticky(Object(ae.css)(["will-change:height,box-shadow;"])),Object(m.computeProgressStyles)(e=>Object(ae.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,b.colours.functional.greyStickyBarBoxShadow,m.selectors.stickySizer(Object(ae.css)(["border-bottom-color:",";"],b.colours.functional.greyStickyBarBorderBottom))))]),Ft=oe.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareItem",componentId:"hqppv0-1"})(["order:3;& + &{margin-top:-1px !important;}@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],b.breakpoints.medium,Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide,Object(b.spacing)(2),Object(b.spacing)(2));function Dt(e){return i.a.createElement(c.ServerClientRender,{client:()=>i.a.createElement(Nt,At({isClient:!0},e)),server:()=>i.a.createElement(Nt,e)})}const Mt=Object(m.mediaQuery)("(max-width: ".concat(b.breakpoints.huge,"px)"));var qt=function(e){return i.a.createElement(Ft,null,i.a.createElement(f.a,{Component:Dt,shouldBeSticky:Mt},i.a.createElement(zt.a,e)))};function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rt=["indepth","maincomment","magazinestandard","magazinecomment"],Wt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Le()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return Ut(Ut({},e),{},{attributes:Ut({},e.attributes),children:[Ut(Ut({},t[0]),{},{attributes:Ut(Ut({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),Ut(Ut({},t[0]),{},{attributes:Ut(Ut({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;if("link"===t[0].name&&0===t[0].children.length)return null;const r=Wt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=Ut(Ut({},e),{},{attributes:Ut(Ut({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=Ut(Ut({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},Ht=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?Ht(t.children):e};var Vt=(e,t,n)=>{try{if(t&&Rt.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Wt(t),i=Wt(t);Ht(r.children).splice(1);Ht(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},$t=(e,t)=>n=>{const r=Vt(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qt=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:Kt({label:"In your inbox"},e)}},children:[]}),Yt=[{section:"news",payload:Qt({code:"TNL-101",headline:"Best of Times",copy:"Our flagship newsletter featuring our top stories and analysis, delivered every morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:Qt({code:"TNL-103",headline:"Business briefing",copy:"Morning and midday updates on financial and economic news from our award-winning business team.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:Qt({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories from The Times and Sunday Times Scotland, every Saturday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:Qt({code:"TNL-107",headline:"Money newsletter",copy:"Personal finance and investment news from our money experts, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:Qt({code:"TNL-121",headline:"The Brief",copy:"Get expert analysis, news and commentary in The Brief, our legal editor's insider's guide, every Thursday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:Qt({code:"TNL-113",headline:"Property newsletter",copy:"Inside Britain's most exclusive homes, expert advice and what's really happening in the property market, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"luxury",payload:Qt({code:"TNL-148",headline:"Luxury newsletter",copy:"Do you need more luxury in your life? Sign up to the Times Luxury newsletter with one click.",imageUri:"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fcbd3c7a9-4d25-422a-b4a5-a48072778002.jpg?crop=1990%2C1322%2C0%2C0&resize=800"})},{section:"bricks & mortar",payload:Qt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"ireland",payload:Qt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})},{section:"irish sport",payload:Qt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})}],Xt=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),Zt=(e,t,n)=>Kt(Kt({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),en=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var tn=(e,t,n)=>r=>{if(t||Ve(n))return r;const i=(e=>{const t=Yt.find(t=>t.section===e.toLowerCase());return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(Xt(r)||Xt(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=en(e),i=en(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,Zt(t,3-n,i)]:[...e,t],[])};function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=e=>t=>{const n=[...t];let r;const i=e?(r=n.findIndex(e=>"ad"===e.name),{children:n.slice(r)}):n.find(e=>"paywall"===e.name),a=e?n.slice(0,r).filter(e=>"paragraph"===e.name):n.filter(e=>"paragraph"===e.name);if(!i)return n;const o=i.children,c=o.map((e,t)=>rn(rn({},e),{},{index:t})).filter(e=>"paragraph"===e.name);c.pop();return[9,14,19,24].forEach((e,t)=>{if(!o.find(e=>e.name==="inlineAd".concat(t+1))){const n=c[e-a.length]?c[e-a.length].index:null;n&&null!==n&&o.splice(n+t+1,0,{name:"inlineAd".concat(t+1),children:[]})}}),e?[...t.slice(0,r),...o]:n};function cn(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function ln(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){cn(a,r,i,o,c,"next",e)}function c(e){cn(a,r,i,o,c,"throw",e)}o(void 0)}))}}function sn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const un={name:"paragraph",children:[{name:"italic",children:[{name:"text",children:[],attributes:{value:"All recommendations within this article are informed by expert editorial opinion. If you click on a link in this story we may earn affiliate revenue."}}]}]},pn=["This article contains affiliate links that can earn us revenue","This article contains affiliate links that may earn us revenue","This article contains affiliate links which may earn us revenue","This article contains affiliate links, which can earn us revenue","This article contains affiliate links, which may earn us revenue","This article contains affiliate links, which may earn�us revenue","This article contains affiliate links, which�may earn us revenue","This article contains�affiliate links, which may earn us revenue","This article contains affiliate links","This article contains links that can earn us revenue","This article contains links which may earn us revenue","This article contains links, which can earn us revenue","This article contains links, which may earn us revenu","This article contains links from which we may earn revenue"],mn=["(clicks.)?trx-hub.com","go.skimresources.com","go.redirectingat.com","(www.)?fave.co","beavertownbrewery.pxf.io","wilko.sjv.io","fanatics.93n6tx.net","ticketmaster-uk.tm7559.net","(www.)?prf.hn","nastygal.prf.hn","selfridges.prf.hn","bloomwild.prf.hn","go.linkby.com","(www.)?awin1.com","track.webgains.com","click.linksynergy.com","(www.)?dpbolvw.net","(www.)?kqzyfj.com","(www.)?anrdoezrs.net","(www.)?veneficus.co.uk","(www.)?shareasale.com","(www.)?privadovpn.com","(www.)?amzn.to","(www.)?amazon.[\\S]*?\\/(dp|gp)\\/[\\S]*?tag=","(www.)?planethowl.com"];var fn=e=>{const t=sn(Object(r.useState)(mn),2),n=t[0],i=t[1];Object(r.useEffect)(()=>{function e(){return(e=ln((function*(){let e=mn;try{const t=(yield fetch("https://ads.thetimes.com/affiliates/domains.json").then(e=>e.text())).replaceAll("'",'"');e=JSON.parse('{"response": '.concat(t," }")).response}catch(e){console.log("Fetching domain listing failed. Using default.")}i(e)}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()},[]);const a=[...e];let o=!1,c=!1;const l=e=>(e.some(e=>{const t=!!("interactive"===e.name&&e.attributes&&e.attributes.element&&e.attributes.element.value&&"times-text-collapse"===e.attributes.element.value);if(!c&&("text"===e.name||t)){const n="text"===e.name&&e.attributes&&e.attributes.value?e.attributes.value:"",r=t&&e.attributes&&e.attributes.element&&e.attributes.element.attributes&&e.attributes.element.attributes.disclaimer_text?e.attributes.element.attributes.disclaimer_text:"",i=n||r;pn.some(e=>i.includes(e))&&(c=!0)}if(c)return!0;if("interactive"!==e.name&&"link"!==e.name&&(void 0===e.children||!e.children.length))return!1;const r=!!("interactive"===e.name&&e.attributes&&e.attributes.element&&e.attributes.element.value&&"times-travel-cta"===e.attributes.element.value);if(!o&&("link"===e.name||r)){const t="link"===e.name&&e.attributes&&e.attributes.href?e.attributes.href:"",i=r&&e.attributes&&e.attributes.element&&e.attributes.element.attributes&&e.attributes.element.attributes.url?e.attributes.element.attributes.url:"",a=t||i;if(!a||!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n='<a\\s[^>]*?href="https?:\\/\\/('.concat(t.join("|"),")"),r='<a href="'.concat(e,'"></a>'),i=new RegExp(n,"i");return i.test(r)}(a,n))return!1;o=!0}return void 0!==e.children&&e.children.length&&l(e.children),o}),{affiliateLinkExist:o,affiliateDisclaimerExist:c}),s=l(a);if(!s.affiliateDisclaimerExist&&s.affiliateLinkExist){const e=a.find(e=>"paragraph"===e.name);e&&a.splice(a.indexOf(e)+1,0,un)}return a};function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=e=>{const t=[...e],n=e=>e.map(e=>{let t=gn({},e);if("link"===t.name||"interactive"===t.name&&t.attributes&&t.attributes.element&&"times-travel-cta"===t.attributes.element.value){const e=t.attributes,n=((e||{}).element||{}).attributes,r="interactive"===t.name?n.url||"":e.href||"";!r||r.startsWith("https://www.thetimes.co.uk")||r.startsWith("https://www.thetimes.com")||(t=gn(gn({},t),{},{attributes:gn(gn({},e),{},{target:"_blank"})}))}return t.children&&t.children.length&&(t.children=n(t.children)),t});return n(t)};function wn(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function vn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return On(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return On(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"reduceArticleContent",(function(){return jn})),n.d(t,"KeylineItem",(function(){return Ye})),n.d(t,"ArticleKeylineItem",(function(){return Xe})),n.d(t,"ArticleLink",(function(){return ie}));const jn=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),xn=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.logoUrl,s=e.receiveChildList,u=e.commentingConfig,f=e.articleDataFromRender,h=e.paidContentClassName,y=e.isPreview,O=e.swgProductId,j=e.getFallbackThumbnailUrl169,x=e.zephrDivs,E=e.showAudioPlayer,P=e.storefrontConfig;const S=n.commentsEnabled,_=n.content,C=n.dropcapsDisabled,T=n.id,z=n.section,A=n.url,N=n.headline,F=n.shortHeadline,D=n.expirableFlags,M=n.topics,q=n.relatedArticleSlice,B=n.template,U=n.savingEnabled,L=n.sharingEnabled,R=n.publishedTime,W=n.isSavingEnabled,H=n.isSharingEnabled,V=n.isCommentEnabled,$=n.isEntitlementFeatureEnabled,J=vn(Object(r.useState)(!1),2),K=J[0],G=J[1],Q=Object(r.useRef)(),Y=()=>{const e=Q.current;if(e){const t=document.querySelectorAll(".responsive__InlineAdWrapper-sc-4v1r4q-17, .responsive__InlineAdWrapper-sc-4v1r4q-14, .responsive__FullWidthImg-sc-4v1r4q-4, .responsive__InteractiveContainer-sc-4v1r4q-2");let n=!1;t.forEach(t=>{if(t){const r=t.getBoundingClientRect();r.top<=e.getBoundingClientRect().bottom&&r.bottom>=e.getBoundingClientRect().top&&(n=!0)}}),e.style.opacity=n?"0":"1"}};Object(r.useEffect)(()=>{const e=!!JSON.parse(window.sessionStorage.getItem("verifyEmail"));G(e)},[]),Object(r.useEffect)(()=>{const e=Q.current;return e&&(e.style.transition="opacity 0.2s ease"),Y(),window.addEventListener("scroll",Y),()=>{window.removeEventListener("scroll",Y)}},[]);const X=f||{},Z=X.hostName,ee=X.canonicalUrl,te=X.breadcrumbs,ne=Z&&ee?"".concat(Z).concat(ee):A,re=[$t(B,C),fn,tn(z,y,D),on(y),Qe,yn],ie=jn(_,re),ae=(e=>{const t="indepth"===e;return oe()(c.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:1024px){min-height:250px;}"],b.colours.functional.keyline,b.colours.functional.keyline,t?"0":"1px",Object(b.spacing)(2),t?"0":Object(b.spacing)(2))})(B);s([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const ce=(U||L)&&(W||H),le=Z||"https://www.thetimes.co.uk",se=Ve(D),de=vn(Object(r.useState)([]),2),ue=de[0],pe=de[1],me=function(){var e,t=(e=function*(){const e=yield k();pe(e)},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){wn(a,r,i,o,c,"next",e)}function c(e){wn(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)(()=>{Object(c.CanShowPuzzleSidebar)(z)&&me()},[c.CanShowPuzzleSidebar,z]),i.a.createElement(m.StickyProvider,null,i.a.createElement(g.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:N||F||"",section_details:z}},analyticsStream:t},K&&i.a.createElement(ct,null,i.a.createElement(g.Banner,{title:"Check your inbox",body:"Verify your email by clicking on the link sent to your inbox.",onClose:()=>{window.sessionStorage.setItem("verifyEmail",!1),G(!1)}})),y&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:T,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":z,"data-article-template":B},!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-head"></div>'}),i.a.createElement(Ct,{article:n,articleUrl:ne,logoUrl:o,paidContentClassName:h,getFallbackThumbnailUrl169:j,swgProductId:O,breadcrumbs:te,domainSpecificUrl:le}),!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-below-head"></div>'}),i.a.createElement(r.Fragment,null,i.a.createElement(ae,{key:"headerAd"},i.a.createElement(l.AdContainer,{slotName:"header",style:yt.adMarginStyle})),i.a.createElement(Ze,null,i.a.createElement(g.WelcomeBanner,null),!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-maincontainer"></div>'}),i.a.createElement(et,{showAudioPlayer:E},!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-headercontainer"></div>'}),i.a.createElement(a,null),ce?i.a.createElement(w.a,{state:w.a.showSaveAndShareBar},i.a.createElement(v.MessageContext.Consumer,null,e=>{let t=e.showMessage;return i.a.createElement(qt,{articleId:T,articleHeadline:N,articleUrl:ne,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:U,sharingEnabled:L,hostName:le})})):null,!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-bottom-headercontainer"></div>'})),i.a.createElement(tt,null,i.a.createElement(at,null,Object(c.CanShowPuzzleSidebar)(z)&&i.a.createElement(rt,null,i.a.createElement(it,{ref:Q},i.a.createElement(g.ArticleSidebar,{pageLink:"".concat(le,"/puzzles"),sectionTitle:"Puzzles",data:[{title:"Crossword",url:"".concat(le,"/puzzles/crossword"),imgUrl:"".concat(le,"/d/img/puzzles/new-illustrations/crossword-c7ae8934ef.png")},{title:"Polygon",url:ue,imgUrl:"".concat(le,"/d/img/puzzles/new-illustrations/polygon-875ea55487.png")},{title:"Sudoku",url:"".concat(le,"/puzzles/sudoku"),imgUrl:"".concat(le,"/d/img/puzzles/new-illustrations/sudoku-ee2aea0209.png")}]}))),i.a.createElement(ot,{showMargin:Object(c.CanShowPuzzleSidebar)(z)},!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-top-bodycontainer"></div>'}),ie&&i.a.createElement(Be,{id:n.id,analyticsStream:t,content:ie,contextUrl:ne,section:z,articleHeadline:N,paidContentClassName:h,template:B,isPreview:y,isLiveOrBreaking:se}),se&&i.a.createElement(w.a,{state:w.a.showLiveUpdateButton},i.a.createElement(nt,{"data-testid":"Update button container"},i.a.createElement(g.UpdateButtonWithDelay,{delay:8e3,update:!0,display:!0,label:"New update",handleClick:()=>(e=>{e.scroll({left:0,top:0}),e.location.reload(!0)})(window),updatedTime:n.publishedTime,articleId:n.id}))),i.a.createElement(It,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"},!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-paywall"></div>'})))),i.a.createElement(p.a,{rootMargin:Object(b.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(d.a,{analyticsStream:t,articleId:T,articleHeadline:N,articleUrl:ne,section:z,publishedTime:R,savingEnabled:U,sharingEnabled:L,commentsEnabled:S,registerNode:r,relatedArticleSlice:q,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:u,topics:M,isSharingSavingEnabled:ce,isCommentEnabled:V,storefrontConfig:P,breadcrumbs:te,domainSpecificUrl:le,isEntitlementFeatureEnabled:$})}),!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-bottom-bodycontainer"></div>'})),!!x&&i.a.createElement(I,{html:'<div id="nu-zephr-article-target-bottom-maincontainer"></div>'}))),i.a.createElement(l.AdContainer,{slotName:"pixel"}),i.a.createElement(l.AdContainer,{slotName:"pixelteads"}),i.a.createElement(l.AdContainer,{slotName:"pixelskin"}))))};xn.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null,zephrDivs:!1};t.default=(e=>Object(h.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Le()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Le()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Le()(t,"headline",""),label:Le()(t,"label",""),pageName:"".concat(Le()(t,"slug",""),"-").concat(Le()(t,"shortIdentifier","")),edition_type:o,publishedTime:Le()(t,"publishedTime",""),parent_site:Le()(t,"publicationName",""),referralUrl:a,section:n||Le()(t,"section",""),template:Le()(t,"template","Default"),registrationType:Re(),customerType:We(),shared:He(),article_flag:$e(l)?$e(l):"no flag",article_template_name:Ve(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(h.withTrackScrollDepth)(xn))}]);