تخطي إلى المحتوى الرئيسي
CNN Arabic

الاتحاد البرتغالي يوقف كريستيانو رونالدو بعد مغادرته معسكر المنتخب | CNN Arabic | CNN

11 أكتوبر 2026 في 10:05 ص
الاتحاد البرتغالي يوقف كريستيانو رونالدو بعد مغادرته معسكر المنتخب | CNN Arabic | CNN

 أوقف الاتحاد البرتغالي لكرة القدم كريستيانو رونالدو بسبب مغادرته معسكر المنتخب، وبدأ اتخاذ إجراءات تأديبية بحقه.

1:05 • مصدر: CNN قد يهمك أيضًا 15 فيديو • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-11-images-346633.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-11-images-346633.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-10-11T10:05:59Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/10/11/v203309-cristiano-ronaldo-suspended-portugal-vrtc" data-branding-key="" data-video-slug="cristiano-ronaldo-suspended-portugal-vrtc" data-first-publish-slug="cristiano-ronaldo-suspended-portugal-vrtc" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-details=""> Video Ad Feedback الاتحاد البرتغالي يوقف كريستيانو رونالدو بعد مغادرته معسكر المنتخب 1:05 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-07-images-346268.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-07-images-346268.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-10-07T10:10:31Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/10/07/v203079-messis-last-dance-for-argentina" data-branding-key="" data-video-slug="messis-last-dance-for-argentina" data-first-publish-slug="messis-last-dance-for-argentina" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback الرقصة الأخيرة.. ميسي يلعب مباراته الأخيرة مع المنتخب الأرجنتيني 0:44 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-03-images-345898.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-03-images-345898.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-10-03T08:07:59Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/10/03/v202831-tony-romo-out-at-cbs-sports-after-nine-years-following-drunk-driving-arrest" data-branding-key="" data-video-slug="tony-romo-out-at-cbs-sports-after-nine-years-following-drunk-driving-arrest" data-first-publish-slug="tony-romo-out-at-cbs-sports-after-nine-years-following-drunk-driving-arrest" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد اعتقاله بتهمة القيادة مخموراً.. معلق CBS Sports توني رومو يغادر الشبكة بعد 9 سنوات 0:29 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-01-images-345774.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-10-01-images-345774.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-10-01T16:05:31Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/10/01/v202747-ronaldo-cristiano-leaves-portugal-camp-sport" data-branding-key="" data-video-slug="ronaldo-cristiano-leaves-portugal-camp-sport" data-first-publish-slug="ronaldo-cristiano-leaves-portugal-camp-sport" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback "سأخبر الجميع بالحقيقة".. رونالدو يثير الغموض حول مستقبله مع منتخب البرتغال 1:01 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-29-images-345545.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-29-images-345545.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-29T13:34:22Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/29/v202607-kok-boru-world-nomad-games-digvid-spc-hnk" data-branding-key="" data-video-slug="kok-boru-world-nomad-games-digvid-spc-hnk" data-first-publish-slug="kok-boru-world-nomad-games-digvid-spc-hnk" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback جثة الماعز هي الكرة.. تعرف على هذه الرياضة العريقة في آسيا 1:16 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-24-images-345090.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-24-images-345090.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-24T15:46:36Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/24/v202338-mas-wrestling-world-nomad-games-digvid-spc-hnk" data-branding-key="" data-video-slug="mas-wrestling-world-nomad-games-digvid-spc-hnk" data-first-publish-slug="mas-wrestling-world-nomad-games-digvid-spc-hnk" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback "المصارعة التقليدية" في قيرغيزستان.. تعرف إلى هذه الرياضة العريقة 1:18 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-23-images-344997.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-23-images-344997.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-23T14:09:34Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/23/v202276-amanda-davies-interview-with-kylian-mbappe" data-branding-key="" data-video-slug="amanda-davies-interview-with-kylian-mbappé" data-first-publish-slug="amanda-davies-interview-with-kylian-mbappé" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback كيليان مبابي لـCNN: أردت بناء إرث جديد من الصفر.. وهذه كانت فرصة مثالية 2:12 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-18-images-344524.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-18-images-344524.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-18T06:02:31Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/18/v201986-real-madrid-stars-controversy-ceuta-shirts" data-branding-key="" data-video-slug="real-madrid-stars-controversy-ceuta-shirts" data-first-publish-slug="real-madrid-stars-controversy-ceuta-shirts" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback نجوم ريال مدريد يثيرون جدلاً واسعاً بسبب قمصانهم التضامنية مع سبتة 1:16 يُعرض حاليًا • مصدر: CNN • مصدر: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-10-images-343856.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2026-09-10-images-343856.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2026-09-10T15:33:15Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2026/09/10/v201554-kok-boru-sport-never-heard-world-nomad-game-vrtc-digvid" data-branding-key="" data-video-slug="kok-boru-sport-never-heard-world-nomad-game-vrtc-digvid" data-first-publish-slug="kok-boru-sport-never-heard-world-nomad-game-vrtc-digvid" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback تعرّف إلى رياضة "كوك-بورو" التقليدية.. والتي ربما لم تسمع عنها من قبل 0:46 يُعرض حاليًا • مصدر: CNN • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2023-09-27-images-250495.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2023-09-27-images-250495.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2023-09-27T13:34:08Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2023/09/27/v144843-atw-barca-mallorca" data-branding-key="" data-video-slug="atw-barca-mallorca" data-first-publish-slug="atw-barca-mallorca" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback تشافي وبرشلونة.. أزمة المداورة ودور غندوغان والكوارث الدفاعية 8:15 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2022-07-21-images-217841.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2022-07-21-images-217841.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2022-07-21T16:34:38Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2022/07/21/v124296-atw-saudi-professional-football" data-branding-key="" data-video-slug="atw-saudi-professional-football" data-first-publish-slug="atw-saudi-professional-football" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد صورة سالم الدوسري وتمثال صلاح.. 5 شروط لاحتراف اللاعب السعودي في أوروبا 8:14 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-08-images-126950.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-08-images-126950.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-05-08T22:14:18Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/05/08/v74729-after-whistle-liverpool-barcelona" data-branding-key="" data-video-slug="after-the-whistle-liverpool-barcelona" data-first-publish-slug="after-the-whistle-liverpool-barcelona" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. كيف صنع ليفربول معجزة "أنفيلد" أمام برشلونة؟ 4:26 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-10-images-131062.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-10-images-131062.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-07-10T19:26:27Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/07/10/v77002-atw-defeating-egypt-in-2019-african-cup-nations" data-branding-key="" data-video-slug="atw-defeating-egypt-in-the-2019-african-cup-of-nations" data-first-publish-slug="atw-defeating-egypt-in-the-2019-african-cup-of-nations" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. "علاج الأزمة" بعد الوداع المفاجئ لمصر 6:05 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-15-images-127299.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-05-15-images-127299.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-05-15T22:08:33Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/05/15/v74947-atw-liverpool-man-city" data-branding-key="" data-video-slug="atw-liverpool-man-city" data-first-publish-slug="atw-liverpool-man-city" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. لماذا خسر ليفربول لقب الدوري الإنجليزي؟ 4:12 يُعرض حاليًا • مصدر: CNN بالعربية • مصدر: CNN بالعربية " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-03-images-130588.jpg?c=16x9&q=h_540,w_960,c_fill" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/cnnarabic-2019-07-03-images-130588.jpg?c=16x9&q=h_540,w_960,c_fill" } }" data-vr-video="false" data-show-html="" data-byline-html=" " data-timestamp-html=" نُشر 11 أكتوبر 2026 " data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-07-03T20:04:23Z" data-video-section="sport" data-canonical-url="https://arabic.cnn.com/sport/video/2019/07/03/v76736-atw-warda-egypt-can" data-branding-key="" data-video-slug="atw-warda-egypt-can" data-first-publish-slug="atw-warda-egypt-can" data-video-tags="" data-breakpoints='{"video-resource--media-extra-large": 660}' data-display-video-cover="" data-unselectable="true" data-details=""> Video Ad Feedback بعد الصافرة.. اللاعب سفير بلاده فكيف يجب أن يتصرف؟ 4:13 يُعرض حاليًا • مصدر: CNN بالعربية عرض المزيد أحدث مقاطع الفيديو • فيديو 0:24 فيديو 0:24 BRANDON CLEMENT/CORCLIPS إعصار "إيساياس" يقترب من فلوريدا.. طوابير وقود ورفوف متاجر فارغة 0:24 • فيديو 0:46 فيديو 0:46 Reuters كلب يكافح أمواج نهر هائج.. شاهد لحظة إنقاذه في تشيلي 0:46 • فيديو 0:58 فيديو 0:58 SPECTRUM NEWS NY1 شاهد..هتافات وصيحات استهجان ضد ممداني خلال فعالية لإحياء ذكرى 7 أكتوبر 0:58 • فيديو 0:41 فيديو 0:41 CNN ترامب يقول إن روسيا تزعم أن الطاعون "تحت السيطرة" 0:41 • فيديو 1:18 فيديو 1:18 WMC / Getty images فوضى بعد تأجيل التصويت على قرار تجميد إنشاء مراكز بيانات الـAI 1:18 • فيديو 0:43 فيديو 0:43 شاهد.. ترامب يُفاجَأ بسؤال عن إعصار يهدد ألاباما قبل مباراة كرة القدم 0:43 • فيديو 1:19 فيديو 1:19 Photo by ANTHONY WALLACE / AFP via Getty Images بعد أشهر في البحر.. عودة مرتقبة لـ"يو إس إس أبراهام لينكولن" لأمريكا 1:19 • فيديو 3:20 فيديو 3:20 CNN تشودري لـCNN: قواتنا في السعودية منذ عقود.. وتحالف مكة لم يأت من فراغ 3:20 • فيديو 1:29 فيديو 1:29 شاهد.. ترامب يوضح تصريحاته بشأن إيران وضرب لوس أنجلوس وسان دييغو 1:29 فيديو بريد الأخبار العاجلة الشرق الأوسط السعودية مصر الإمارات إيران الخليج شرق المتوسط شمال إفريقيا العالم الولايات المتحدة روسيا الصين أوروبا إفريقيا سياحة وجهات سياحية مذاقات فنادق مغامرات رياضة الدوري الإنجليزي الدوري الإسباني الدوري السعودي الدوري المصري علوم وصحة غذاء لياقة بدنية صحة نفسية أمراض استدامة اكتشافات علمية منوعات أخبار الفن مشاهير مسلسلات ستايل فنون أزياء وجمال تصاميم وعمارة فخامة سبوت لايت ريادة المستقبل أنغولا الآن نداء الأرض أسواق الشرق الأوسط حكايتها متفرقات CNN الاقتصادية ألعاب .cls-1 { fill: #fff; stroke-width: 0px; } رياضة فيديو تابعونا عبر سياسة الخصوصية شروط الخدمة خيارات الإعلانات للإعلان من نحن © 2026 Cable News Network. All Rights Reserved.

Download the CNN app Scan the QR code to download the CNN app on Google Play.

Download the CNN app Scan the QR code to download the CNN app from the Apple Store.

// window.modules=[]; /* window.modules["2"] */ "use strict";(self.modules=self.modules||[]).push([["2"],{2:(i,s,E)=>{let{PAGE_TYPES:e}=E("15");function T(i){return(Array.isArray(i)?i:[i]).includes(window.CNN.contentModel?.pageType||window.CNN.helpers?.PAGE_TYPES.UNKNOWN)}i.exports={isArticle:()=>T(e.ARTICLE),isAudio:()=>T(e.AUDIO),isCustom:()=>T(e.CUSTOM),isDTC:()=>T(e.DTC),isCommunityEvent:()=>T(e.COMMUNITY_EVENT),isElection:()=>T(e.ELECTION),isFeed:()=>T(e.FEED),isGallery:()=>T(e.GALLERY),isInteractive:()=>T(e.INTERACTIVE),isLivestream:()=>T(e.LIVESTREAM),isVerticalLivestream:()=>T(e.VERTICAL_LIVESTREAM),isLivestory:()=>T(e.LIVESTORY),isSubscriptionPage:()=>T(e.SUBSCRIPTION_PAGE),isNewsletterLandingPage:()=>T(e.NEWSLETTER_LANDING_PAGE),isProfile:()=>T(e.PROFILE),isScratchpad:()=>T(e.SCRATCHPAD),isSearch:()=>T(e.SEARCH),isSection:()=>T(e.SECTION),isSeries:()=>T(e.SERIES),isStatic:()=>T(e.STATIC),isTVE:()=>T(e.TVE),isTVEEpisode:()=>T(e.TVE_EPISODE),isTVEFilm:()=>T(e.TVE_FILM),isTVESeries:()=>T(e.TVE_SERIES),isUnknown:()=>T(e.UNKNOWN),isUserManagement:()=>T(e.USER_MANAGEMENT),isVerticalVideo:()=>T(e.VERTICAL_VIDEO),isVideo:()=>T(e.VIDEO),isNewsletterPage:()=>T(e.NEWSLETTER_PAGE),isVitalAction:()=>T(e.VITAL_ACTION),isVitalStory:()=>T(e.VITAL_STORY),isPageType:T,PAGE_TYPES:e}}}]); /* window.modules["3"] */ "use strict";(self.modules=self.modules||[]).push([["3"],{3:e=>{e.exports=new ResizeObserver(e=>{let t={"EQ-breakpoint__small":480,"EQ-breakpoint__medium":960,"EQ-breakpoint__large":1280,"EQ-breakpoint__xtralarge":1360};e.forEach(function(e){let a=e.target.dataset.breakpoints?JSON.parse(e.target.dataset.breakpoints):t;Object.keys(a).forEach(t=>{let s=a[t];e.contentRect.width>=s?e.target.classList.add(t):e.target.classList.remove(t)})})})}}]); /* window.modules["4"] */ "use strict";(self.modules=self.modules||[]).push([["4"],{4:e=>{function r({videoResourceUri:e}){let r=document.querySelector(`[data-uri='${e}'] .video-resource__cover`);r&&r.classList.add("hide")}function o(e,o,t){!(e.target&&Array.from(e.target.classList).some(e=>e.includes("__source-url")))&&(r({videoResourceUri:o.dataset.uri}),"function"==typeof window.FAVE?.player?.getInstance&&"player-"!==t&&window.FAVE.player.getInstance(t).play())}e.exports={handleVideoCoverClick:o,hideVideoCover:r,initVideoCover:function(e){let r=e.querySelector(".video-resource__cover"),t=e.querySelector(".video-resource")||e.querySelector(".video-player"),i=`player-${t?t.dataset.uri:""}`;r?.addEventListener("click",r=>o(r,e,i))},removeVideoCoverSpinner:function({videoResourceUri:e}){let r=document.querySelector(`[data-uri='${e}'] .video-resource__playhead`);r&&r.classList.remove("spinner")}}}}]); /* window.modules["5"] */ "use strict";(self.modules=self.modules||[]).push([["5"],{5:e=>{let t=e=>{let t=e.search(/(\s\S*)$/);return e.substring(0,t)},n=(e,t,n)=>{let r=Math.ceil(e.length/t*n+50);return e.substring(0,r)};e.exports={lineClamp:(e,r,i)=>{let s=window.getComputedStyle(e),o=r*Math.round(parseFloat(s.lineHeight))+(parseInt(s?.paddingTop||0)+parseInt(s?.paddingBottom||0))+(parseInt(s?.marginTop||0)+parseInt(s?.marginBottom||0)),l=e.offsetHeight;if(!o||!l||l2*o&&(e.innerText=n(e.innerText,l,o),l=e.offsetHeight);let a=0;for(;l>o&&ao&&a{let{PAGE_VARIANTS:r}=t("292");e.exports={isPageVariant:function(e){return(Array.isArray(e)?e:[e]).includes(window.CNN.contentModel?.templateType||window.CNN.helpers?.PAGE_VARIANTS.UNKNOWN)},PAGE_VARIANTS:r}}}]); /* window.modules["7"] */ "use strict";(self.modules=self.modules||[]).push([["7"],{7:(e,t,n)=>{let{getSiteLanguage:o,getDirection:i}=n("134"),{getCookie:r}=n("47"),l=n("23").get("APP_VIEW_COOKIE"),s=()=>window?.CNN?.contentModel,a=()=>{let e=window.WM&&window.WM.UserConsent;return e&&"function"==typeof e.getGeoCountry?e.getGeoCountry():void 0},d=async(e,t)=>{let{components:n}=e,o={};for(let[i,r]of Object.entries(e.page.data))o[i]=Array.isArray(r)?await Promise.all(r.map(async e=>n[e]?{_ref:e,...await t(n[e])}:{_ref:e})):r;return o},c="tve-carousel_dtc";e.exports={getContentModel:s,getLanguage:()=>o(window.kiln?.locals?.site?.site||s()?.brandSite),getQuery:e=>{let t=window.location.search.slice(1).split("&").map(e=>e.split("=")).find(([t])=>t===e);return t&&t[1]},convertAuthType:e=>e?("string"==typeof e&&(e=e.split(",").map(e=>e.trim())),e):[],isInternalURL:e=>{try{let t=decodeURIComponent(e);return/(https?:\/\/(.+?\.)?(cnn\.com|localhost|cnn-cms\.net)(\/[A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=]*)?)|(^\/(?!\/)([A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=]*\/?))/.test(t)}catch(e){return!1}},scrollIntoView:e=>{let t=e.getBoundingClientRect().top,n=document.querySelector(".header__inner").getBoundingClientRect().bottom;window.scrollTo({top:t-n,behavior:"smooth"})},isInGdprRegion:()=>{let e=window.WM&&window.WM.UserConsent;return!!(e&&e.isInGdprRegion&&"function"==typeof e.isInGdprRegion)&&e.isInGdprRegion()},getGeoCountry:a,getGeoState:()=>{let e=window.WM&&window.WM.UserConsent;return e&&"function"==typeof e.getGeoState?e.getGeoState():void 0},checkGeoCountry:e=>a()===e,getGeoDataCookie:()=>{let e=r("geoData");if(!e)return null;let t=e.split("|");if(t.length"?"===e?"":e,o=e=>n(e).toUpperCase();return{city:n(t[0]),region:o(t[1]),postCode:o(t[2]),country:o(t[3]),latitude:n(t[7]),longitude:n(t[8])}},getBrowser:()=>-1!==navigator.userAgent.indexOf("Chrome")?"Chrome":-1!==navigator.userAgent.indexOf("Opera")?"Opera":-1!==navigator.userAgent.indexOf("Safari")?"Safari":-1!==navigator.userAgent.indexOf("Firefox")?"Firefox":-1!==navigator.userAgent.indexOf("MSIE")?"Internet Explorer":"Browser not detected",addScriptTag:function(e={},t=!1){let n=document.createElement("script"),o={language:"javascript",type:"text/javascript",...e};return Object.keys(o).forEach(e=>{if("data"===e){let{data:e}=o;Object.keys(e).forEach(t=>{e[t]&&n.setAttribute(`data-${t}`,e[t])})}else n[e]=o[e]}),t?document.body.prepend(n):document.head.append(n),n},isEditionPage:function(){return window.CNN.contentModel?.edition},isEspanolPage:function(){return window.CNN.contentModel?.brandSite===window.CNN.helpers.SITES.espanol},isDomesticPage:function(){return window.CNN.contentModel?.brandSite===window.CNN.helpers.SITES.cnn},isArabicPage:function(){return window.CNN.contentModel?.brandSite===window.CNN.helpers.SITES.arabic},buildClientPage:d,swapElementClass:(e,t,n)=>{e&&(n?e.classList.add(t):e.classList.remove(t))},getZaid:({throwIfMissing:e=!1}={})=>{let t=JSON.parse(localStorage.getItem("zion.zaid")||"{}");if(!t.id&&e)throw Error("Zaid not found in local storage");return t.id||null},isRtl:function(){return"rtl"===i(s())},delay:e=>new Promise(t=>setTimeout(t,e)),TVECarouselScrollStrategy:class{constructor(e,t=300){this.scrollIt=e.contains(c)?this.smoothScrolling(t):this.defaultScrolling}defaultScrolling(e,t){e.scrollBy({left:t,behavior:"smooth"})}smoothScrolling(e){return(t,n)=>{let o=t.scrollLeft,i=performance.now(),r=l=>{let s=Math.min((l-i)/e,1);t.scrollLeft=o+n*(s{let n=e?.querySelector(`.${t} .uclink`);window.WM&&window.WM.UserConsent&&0!==window.WM.UserConsent.getLinkTitle().length&&n&&(n.text=window.WM.UserConsent.getLinkTitle(),n.onclick=window.WM.UserConsent.getLinkAction(),n.style.display="block",n.style.textAlign="center")},isAppWebView:()=>!!(l&&r(l)),getAppWebViewPlatform:()=>l?r(l):null}}}]); /* window.modules["8"] */ "use strict";(self.modules=self.modules||[]).push([["8"],{8:(e,s,n)=>{let{SECTIONS:o}=n("334");e.exports={isSection:function(e){return(Array.isArray(e)?e:[e]).includes(window.CNN.contentModel?.section||window.CNN.helpers?.SECTIONS.UNKNOWN)},SECTIONS:o}}}]); /* window.modules["9"] */ "use strict";(self.modules=self.modules||[]).push([["9"],{9:(e,t,n)=>{let d=n("23"),{ShowAdFeedbackDispatcher:a}=n("544"),{AdDataType:s}=n("570"),i="ad-feedback__modal-overlay",r=d.get("ENABLE_AD_FEEDBACK_DISPLAY_ADS")&&null!==document.querySelector(`#${i}`),o=d.get("ENABLE_AD_FEEDBACK_VIDEO_ADS")&&null!==document.querySelector(`#${i}`),l=new a,c=window.WM.UserConsent.isInGdprRegion()&&!window.WM.UserConsent.inUserConsentState(["ads-contextual","ads-person-prof","ads-person"]);function u(e){let t=e.classList.contains("ad-feedback-link")?e:e.querySelector(".ad-feedback-link");return t&&(t.setAdIdentifier=function(e){t.dataset.adIdentifier=e},t.getAdIdentifier=function(){return t.dataset.adIdentifier}),t}e.exports={getAdFeedbackLink:u,initAdFeedbackLink:function(e){let t=u(e);if(!c&&t&&(r&&"DISPLAY"===t.dataset.adType||o&&"VIDEO"===t.dataset.adType))return t.addEventListener("click",()=>{let e=t.dataset.adType,n=t.getAdIdentifier();e=Object.keys(s).includes(e)?s[e]:s.DISPLAY,l.showFeedback({adType:e,adIdentifier:n})}),t;e.querySelector(".ad-feedback-link")?.remove()},shouldHideAdFeedbackLink:c,ENABLE_AD_FEEDBACK_DISPLAY_ADS:r,ENABLE_AD_FEEDBACK_VIDEO_ADS:o}}}]); /* window.modules["10"] */ "use strict";(self.modules=self.modules||[]).push([["10"],{10:(e,t,o)=>{let i=o("172"),{isVodFreeviewEnabled:r,search:s}=o("14"),n=o("433"),{isPageVariant:u,PAGE_VARIANTS:E}=o("6"),{CONTENT_TYPES:l}=o("332"),V=[l.episode,l.film],c=[E.TVE_EPISODE,E.TVE_FILM,E.TVE_FILM_V2,E.TVE_SERIES,E.TVE_SERIES_V2];async function d(e,t,o){return s(n,e,t,o)}function f(e){return V.includes(e)}function p(){return r()&&u(c)}e.exports.auth=function(){return i.post("/_clay/video",{isvalid:!0})},e.exports.autofillVideos=d,e.exports.isVodContent=f,e.exports.isVodFreeviewActive=p,e.exports.isVodFreeviewContent=function(e){return p()&&f(e)},e.exports.waitForVodFreeviewActive=function(){return p()?Promise.resolve(!0):u(c)?new Promise(e=>{u(E.TVE_EPISODE)?setTimeout(()=>e(p()),1500):e(!1)}):Promise.resolve(!1)}}}]); /* window.modules["11"] */ "use strict";(self.modules=self.modules||[]).push([["11"],{11:e=>{let t=window.CNN.isElevated?768:960,s=window.CNN.isElevated?1024:1280,i=window.CNN.isElevated?1280:1360,a=e=>window.matchMedia(`(max-width: ${e-1}px)`),n={},r=(e,t,s={})=>{let i=s.last||!1;if(s.onlyOnce){let s=a(e).matches;return"function"==typeof t&&t(s),s}return n[e]||(n[e]={functions:[],lastFunctions:[],mediaQuery:a(e)},n[e].mediaQuery.addListener(t=>{n[e].functions.forEach(e=>{try{e(t.matches)}catch(e){console.error(e)}}),n[e].lastFunctions.forEach(e=>{try{e(t.matches)}catch(e){console.error(e)}})})),n[e][i?"lastFunctions":"functions"].push(t),t(n[e].mediaQuery.matches),n[e].mediaQuery.matches};e.exports={VIEWPORT_SITE_MIN_WIDTH:300,VIEWPORT_SITE_MAX_WIDTH:1440,VIEWPORT_SMALL_WIDTH:480,VIEWPORT_MEDIUM_WIDTH:t,VIEWPORT_MEDIUM_WIDTH_NON_ELEVATE:960,VIEWPORT_LARGE_WIDTH:s,VIEWPORT_EXTRA_LARGE_WIDTH:i,viewportListener:r,smallMaxWidthListener:(e,t)=>r(480,e,t),mediumMaxWidthListener:(e,s)=>r(t,e,s),largeMaxWidthListener:(e,t)=>r(s,e,t),extraLargeMaxWidthListener:(e,t)=>r(i,e,t),isVisibleViewport:(e,t)=>("desktop"!==e||!t)&&!("mobile"===e&&!t)}}}]); /* window.modules["12"] */ "use strict";(self.modules=self.modules||[]).push([["12"],{12:e=>{let t=1,s=({type:e,data:o,delay:r=t,attempt:a=0,errorMessage:l=""})=>{if(a>30){console.warn("Could not send out analytics beacon.",l);return}try{window.trackMetrics({type:e,data:o})}catch(l){let t=a+1;setTimeout(()=>s({type:e,data:o,delay:r,attempt:t,errorMessage:l.message}),1e3*r)}};e.exports={trackMetrics:s}}}]); /* window.modules["13"] */ "use strict";(self.modules=self.modules||[]).push([["13"],{13:(e,t,r)=>{var n=r("384");let i=r("556"),o=r("557"),a=r("93"),s=r("367"),u=r("429"),l=r("558"),c=r("383"),f=r("461"),d=r("375"),m=r("582"),g=r("251"),h=/((http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)*))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-]))/gi;function y(e){return i(e)||o(e)?a(e):s(e)?0===e.length:!!(u(e)||l(e))}let p=e=>{let t;if("string"!=typeof e)return e;let r=e;do t=r,r=r.replace(/]+>/g,"");while(r!==t);return r},w=new Intl.Segmenter("en",{granularity:"sentence"}),$=e=>"object"==typeof e?e.topicId:e,T=e=>Array.isArray(e)?e:[e],S=e=>e&&Math.ceil(e/225);async function _(e,t,r=1/0){if(rasync()=>{for(let o=r;oo(t)());return await Promise.all(a),n}let b="America/New_York";e.exports={has:function(e){return!y(e)},isFieldEmpty:y,stripHtml:p,wait:function(e){return t=>new Promise(r=>setTimeout(()=>r(t),e))},convertToBoolean:function(e){try{return!0===e||1===e||"true"===e.toLowerCase()}catch(e){return!1}},isPublishing:function(e){return e instanceof Object&&e&&null!=e.publishUrl},isServerSide:function(){return!!(n.versions&&n.versions.node)},getTopicId:$,getCepTopics:()=>{let{cep_topics:e}=window.CNN;if(!e)return{};let t={};return Object.keys(e).forEach(r=>{r.startsWith("cep_")?e[r].forEach(e=>t[$(e)]=r):t[r]=e[r]}),t},isValidForDefaultSectionSetting:function(e){return["article","gallery","video","live-story","newsletter-studio"].includes(e)},componentChanged:(e,t,r=[])=>(r=r.concat(["__meta","__fields"]),!f(c(d(e),r),c(d(t),r))),makeLinks:e=>e.replace(h,'$1'),ensureArray:T,isOfType:(e,t)=>T(e).includes(t),getHost:e=>e?.site?.host||n.env.DEFAULT_SITE_HOST,getReadTimeAsString:e=>e&&`${S(e)}`,getReadTimeAsNumber:S,getReadTimeAsDuration:e=>{if(e)return m({minutes:Math.floor(e/225),seconds:Math.floor(60*e/225%60)})},isRegistrationPaywallExempt:e=>{let t=["cnn-underscored"];return!!["gallery_unfurled","gallery_leaf"].includes(e.additionalType)||!!e.sections&&e.sections.length>0&&e.sections.some(e=>t.includes(e))},getReadTimeText:function(e,t){let r=Number(t)||0;return"ar"===e?1===r?g(e,"minute read"):2===r?g(e,"two minute read"):r>2&&re?.find(e=>e[t]===r),toObject:({hash:e})=>e,getNewsletterSlugDatePart:function(e=new Date,t=b){let r=e instanceof Date&&!isNaN(e.getTime())?e:new Date,n=e=>{let t=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(r).reduce((e,{type:t,value:r})=>(e[t]=r,e),{}),n="24"===t.hour?"00":t.hour;return`${t.month}-${t.day}-${t.year}-${n}${t.minute}${t.second}`};try{return n(t)}catch(e){return n(b)}},takeFirstSentence:function(e){if(!e||"string"!=typeof e)return"";let t=p(e).trim();if(!t)return"";let r="";for(let{segment:e}of w.segment(t))if(r+=e,!/^\S+\.$/.test(e.trim()))return r.trim();return t}}}}]); /* window.modules["14"] */ "use strict";(self.modules=self.modules||[]).push([["14"],{14:(e,t,i)=>{let{isPublished:a,getComponentInstance:r,replaceAllVersions:n}=i("71"),l=i("23"),{CONTENT_TYPES:s}=i("332"),c=i("104"),{getPageType:o,isLivestory:u,isVerticalVideo:p}=i("15"),{getSite:d,SITES:v}=i("134"),{getConfigObject:m}=i("549"),{convertToBoolean:f}=i("13"),E=l.get("FAVE_TOP_PLAYER"),T=l.get("FAVE_MEDIA_PLAYER"),{CONDITION:A,match:L}=i("434"),_=i("434"),y={"Any of":A.SHOULD,"All of":A.MUST,"None of":A.MUST_NOT},U={CLIP_HORIZONTAL:"Clip_Horizontal",CLIP_VERTICAL:"Clip_Vertical",LIVE:"Live",FAST:"Fast",TVE:"tve",UK_LIVE:"uklive"},b={SCROLL:"scroll",DISABLED:"disabled",MUTED:"muted",UNMUTED:"unmuted"},h={TVE:"tve",LIVEAUTH:"liveAuth",DTC:"dtc"},V={CONTINUOUS:"continuous",CONTINUOUS_AUTOPLAY:"continuous_autoplay"},I={[V.CONTINUOUS]:{autoplay:!1,autoplayType:b.DISABLED},[V.CONTINUOUS_AUTOPLAY]:{autoplay:!0,autoplayType:b.MUTED}},g="live3581c2bf4739e4d8fc1dd52b96e668aa7d00b273",D="livecd0ee653fc42a51546445d02a6c38769c47ab454",P="live57e3b384d5e1130303d139f49c6f362b574d475c",S="livedee0fd3a7f81d264969c7f6f911079c3bd715cd1",O="live4d61573b7a0615fa6cfeca73f1df9560efc93803",$="cvplive/cvpstreamcore",C="cvplive/cvpstreampremium",N="cvplive/cvpstream",R="cvplive/cnndigitalchannel",M=RegExp(`^(${$}[0-7]|${N}[0-4]|${R}[0-4])$`),F=RegExp(`^(${$}[0-7]|${C}[1-9]|${N}[0-9]|${R}[0-9])$`),B=RegExp(`^(live.*|${$}[0-7]|${C}[1-9]|${N}[0-9]|${R}[0-9])$`),k=[S,O,D,P,g,"cvplive/cvpstream5","cvplive/cvpstream6","cvplive/cvpstream7","cvplive/cvpstream8","cvplive/cvpstreampremium1","cvplive/cvpstreampremium2","cvplive/cvpstreampremium3","cvplive/cvpstreampremium4","cvplive/cvpstreampremium5","cvplive/cvpstreampremium6","cvplive/cvpstreampremium7","cvplive/cvpstreampremium8","cvplive/cvpstreampremium9"],Y=[g,"live8ca99a1f6a44fbedeb7077bc5064d0f6d7ebde99",D,P,S,"live6ee8f5d6b1571361b2f6595826fc04baa6d94e75",O,"live53bebe11f915d66c95c604bdf44d968a31b2889e"];function x(e){return e===s.channel}function H(e,t){return e.replace(r(e),t)}async function W(e,{size:t,from:i,conditions:l=[],sort:s="lastPublished",pageType:c=["video"],cacheKey:o=""}={},u,p={site:{}}){let d=a(u),v=r(u),m=_("published-content"),f=p.site.site;f&&m.condition(A.MUST,L("site",f)),m.condition(A.FILTER,{bool:{should:[{term:{includeInAutofill:!0}},{bool:{must_not:{exists:{field:"includeInAutofill"}}}}]}}),m.condition(A.FILTER,_.terms("pageType",c)),m.sort(s,{order:"desc",missing:"_last"}),m.size(t||15),m.from(i||0),l.forEach(e=>{e.terms.forEach(t=>{m.condition(y[e.condition],L(e.field,t)),"Any of"===e.condition&&m.minimumShould(1)})}),m.include(["pageContent","pageType"]);let E=0,T=await e.searchElasticWithCache(m,o);return{videos:T.results?.hits.hits.map(({_source:e})=>{var t;let i=e.pageContent.main[e.pageType].content[0].featuredVideo;if(!i||i._takedownEnabled)return;let a=`${v}_fill_${E++}`;return i.fill=!0,i.inPlaylist=!0,t=["thumbnail","tags"],i._ref=H(i._ref,a),t.forEach(e=>{let t=Array.isArray(i[e])?i[e][0]:i[e];t&&(t._ref=H(t._ref,a))}),d||n(i),i}).filter(e=>e?._ref),cache:T.cache}}e.exports={isFastLiveVideo:x,isLiveVideo:function(e){return B.test(e)},isUKLive:function(e){return e===U.UK_LIVE},isTemporaryLiveStream:function(e,t){return e===s.livestream&&!Y.includes(t)},isPermanentLiveStream:function(e,t){return e===s.livestream&&Y.includes(t)},isCVPLiveStream:function(e){return F.test(e)},isCVPUnathenticatedLiveStream:function(e){return M.test(e)},isAuthVideo:function(e=[]){return null!==e&&[h.TVE,h.LIVEAUTH,h.DTC].some(t=>e.includes(t))},getContinuousVariation:function(){let e=l.get("FREEVIEW_ENDSLATE_VARIATION","");return e&&Object.values(V).includes(e)?e:""},isVodFreeviewEnabled:function(){return f(l.get("VOD_FREEVIEW_ENABLED",!1))},isAuthLiveVideo:function(e){return k.includes(e)},getVideoEmbedUrl:function({uri:e,isEdition:t,videoId:i,stellarUdk:a,stellarSite:r}){if(!e)return null;let n=l.get("VIDEO_EMBED_URL"),s=l.get("VIDEO_PLAYER_EMBED_ENV","prod"),c=`${n}?video=${i}&stellarUri=${e}&stellarSite=${r}`;return a&&(c=`${c}&stellarUdk=${a}`),`${c}&customer=cnn&edition=${t?"international":"domestic"}&env=${s}`},isVideoClip:function(e){return[s.clip,s.fileUpload,s.mediasourceImport].includes(e)},getAMPVideoEmbedUrl:function({uri:e,isEdition:t,videoId:i,stellarUdk:a,stellarSite:r,path:n}){if(!e)return null;let s=l.get("VIDEO_PLAYER_EMBED_ENV","prod"),c=l.get("AMP_VIDEO_EMBED_URL");r===v.espanol&&(c=`${c.replace("/amp","/cnneamp")}`);let o=new URL(c);return o.searchParams.set("video",i),o.searchParams.set("videoId",i),o.searchParams.set("stellarUri",e),o.searchParams.set("stellarSite",r),o.searchParams.set("customer","cnn"),o.searchParams.set("edition",t?"international":"domestic"),o.searchParams.set("env",s),a&&o.searchParams.set("stellarUdk",a),n&&o.searchParams.set("path",n.substring(1,n.length+1)),o.searchParams.set("techStack","stellar2.0"),o.toString()},determineAutoStart:function(e=!1){let t={autoplay:!1,autoplayType:b.DISABLED};return"string"==typeof e?({disabled:{autoplay:!1,autoplayType:b.DISABLED},muted:{autoplay:!0,autoplayType:b.MUTED},unmuted:{autoplay:!0,autoplayType:b.UNMUTED},scroll:{autoplay:!1,autoplayType:b.SCROLL}})[e]??t:e?{autoplay:e,autoplayType:b.UNMUTED}:t},isVideoAutoStartEnabled:function(e,t={}){let i=d(t),a=l.get("ENABLE_VIDEO_AUTOSTART_MAP")[i];return(a?.[o(t)]??!0)&&e},isFaveFeatureEnabledForPage:function(e,t,i){let a=!0;return!!e&&(e.sections&&!e.sections.includes(t)&&(a=!1),e.pageTypes&&!e.pageTypes.includes(i)&&(a=!1),a)},getTopAdProfile:function({contentModel:e={},contentType:t,isEditionSite:i,isMobileViewport:a}){let r=m("michonne","video.fave",i),n=c(r,"stellar.ads",c(E,"ads",{}));return e.brandSite===v.espanol?n.espanol?n.espanol:c(E,"ads.espanol",{}):u(e)?n.livestory:x(t)?a?n.fastLiveStreamMobileWeb||{}:n.fastLiveStreamDesktopWeb||{}:p(e)?n.verticalVideo||{}:c(r,"ads",{})},getMediaPlayer:function(e){return c(m("michonne","video.fave",e),"stellar.mediaPlayer",T)},search:W,AUTH_TYPES:h,AUTO_PLAY_TYPE:b,VIDEO_TYPE:U,FREEVIEW_ENDSLATE_VARIATIONS:V,FREEVIEW_ENDSLATE_AUTOPLAY_SETTINGS:I}}}]); /* window.modules["15"] */ "use strict";(self.modules=self.modules||[]).push([["15"],{15:(e,E,i)=>{let{isOfType:t}=i("13"),T={ARTICLE:"article",AUDIO:"audio",COMMUNITY_EVENT:"community-event",CUSTOM:"custom",DTC:"dtc",ELECTION:"election-center",FEED:"feed",GALLERY:"gallery",INTERACTIVE:"interactive",LIVESTORY:"live-story",LIVESTREAM:"livestream",SUBSCRIPTION_PAGE:"subscription-page",NEWSLETTER_PAGE:"newsletter-studio",NEWSLETTER_LANDING_PAGE:"newsletter-landing-page",PROFILE:"profile",SCRATCHPAD:"scratchpad",SEARCH:"search",SECTION:"section",STATIC:"static",TVE:"tve",SERIES:"series",TVE_EPISODE:"tve-episode",TVE_FILM:"tve-film",TVE_SERIES:"tve-series",UNKNOWN:"",USER_MANAGEMENT:"user-management",VERTICAL_LIVESTREAM:"vertical-livestream",VERTICAL_VIDEO:"vertical-video",VIDEO:"video",VITAL_ACTION:"vital-action",VITAL_STORY:"vital-story"};Object.freeze(T);let s={ELECTION:"Election Center",LIVESTORY:"Live Story",LIVESTREAM:"Livestream",VERTICAL_LIVESTREAM:"Vertical Livestream"};function I(e,E=T.UNKNOWN){return e&&e.pageType||E}function r(e,E){return t(E,I(e))}Object.freeze(s),e.exports={PAGE_TYPES:T,PAGE_TYPES_LABELS:s,getPageType:I,isPageType:r,isArticle:e=>r(e,T.ARTICLE),isAudio:e=>r(e,T.AUDIO),isCommunityEvent:e=>r(e,T.COMMUNITY_EVENT),isCustom:e=>r(e,T.CUSTOM),isDTC:e=>r(e,T.DTC),isElection:e=>r(e,T.ELECTION),isFeed:e=>r(e,T.FEED),isGallery:e=>r(e,T.GALLERY),isInteractive:e=>r(e,T.INTERACTIVE),isLivestory:e=>r(e,T.LIVESTORY),isLivestream:e=>r(e,T.LIVESTREAM),isSubscriptionPage:e=>r(e,T.SUBSCRIPTION_PAGE),isNewsletterPage:e=>r(e,T.NEWSLETTER_PAGE),isNewsletterLandingPage:e=>r(e,T.NEWSLETTER_LANDING_PAGE),isProfile:e=>r(e,T.PROFILE),isScratchpad:e=>r(e,T.SCRATCHPAD),isSearch:e=>r(e,T.SEARCH),isSection:e=>r(e,T.SECTION),isStatic:e=>r(e,T.STATIC),isTVE:e=>r(e,T.TVE),isSeries:e=>r(e,T.SERIES),isTVEEpisode:e=>r(e,T.TVE_EPISODE),isTVEFilm:e=>r(e,T.TVE_FILM),isTVESeries:e=>r(e,T.TVE_SERIES),isUnknown:e=>r(e,T.UNKNOWN),isUserManagement:e=>r(e,T.USER_MANAGEMENT),isVerticalLivestream:e=>r(e,T.VERTICAL_LIVESTREAM),isVerticalVideo:e=>r(e,T.VERTICAL_VIDEO),isVideo:e=>r(e,T.VIDEO),isVitalAction:e=>r(e,T.VITAL_ACTION),isVitalStory:e=>r(e,T.VITAL_STORY)}}}]); /* window.modules["16"] */ "use strict";(self.modules=self.modules||[]).push([["16"],{16:e=>{e.exports={parseJSON:function(e,r=!1){try{return JSON.parse(e)}catch(s){if(r)return null;return e}}}}}]); /* window.modules["17"] */ "use strict";(self.modules=self.modules||[]).push([["17"],{17:(e,t,E)=>{let n,o;let r=E("596"),a=E("555"),i=E("104"),_=E("23"),{isServerSide:s}=E("13");function T(e,t=!1){let E={};e&&(E.sitesVersion=e),t&&(E.browserVersion=o.userAgent);let a={name:"clay",meta:E},l={env:_.get("CONTENT_HUB_ENV")};s()?a.serverTelemetry={context:l}:a.browserTelemetry={enable:!!(_.get("ENABLE_DATADOG_TELEMETRY")&&(window?.kiln?.mode==="edit"||window?.WBD?.UserConsent&&window.WBD.UserConsent.inUserConsentState(["data-store"],{name:"Datadog-logger"}))),clientToken:_.get("EDIT_MODE_DATADOG_CLIENT_TOKEN"),service:`${_.get("CONTENT_HUB_PROJECT_NAME")}-${_.get("SERVICE_BUILD_TYPE")}`,version:_.get("CONTENT_HUB_APP_VERSION"),forwardErrorsToLogs:!0,sampleRate:100,omitFromData:["history","title","users"],context:{...l,user:i(window,"kiln.locals.user")}},r.init(a),n=r.getLogger()}s()||(o=navigator,T(null,!0)),e.exports.init=T,e.exports.setup=function(e,t=!1){if(e=a({},e,{file:"File not specified! Please declare a file"}),t&&T(),n)return r.meta(e,n);let E=null;return function(t,...o){if(null===E&&n&&(E=r.meta(e,n)),E)E(t,...o);else switch(t){case"error":console.error(...o);return;case"warn":console.warn(...o);return;case"info":case"debug":console.log(...o);return;default:console.log(t,...o);return}}},e.exports.logTypes={ALL_BULLETS_REGENERATED:"All Bullets Regenerated",COMPONENT_HIDDEN:"Component Hidden",COMPONENT_PUBLISHED:"Component Published",COMPONENT_VARIATION_CHANGED:"Component Variation Changed",CREATE_ARTICLE_FROM_LIVE_STORY_POST:"Create Article From Live Story Post",CREATE_LIVE_STORY_FROM_ARTICLE:"Create Live Story From Article",GENERATE_SUMMARY_BUTTON_CLICKED:"Generate Summary - Button Clicked",GENERATE_SUMMARY_FAILED:"Generate Summary - Failed",INDIVIDUAL_BULLET_REGENERATED:"Individual Bullet Regenerated",LIVE_STORY_POST_PUBLISH:"Live Story Post Publish",MAGIC_BUTTON_ALL:"Magic Button All",MAGIC_BUTTON:"Magic Button",MANUAL_CARD_CREATED:"Manual Card Created",MOBILE_VIEW_TOGGLED:"Mobile View Toggled",PAGE_DISTRIBUTION_CHANGED:"Page Distribution Changed",PAGE_SETTINGS_CHANGED:"Page Settings Changed",POPULATE_CARD_BYLINE:"Populate Card Byline",RECOMMENDED_TAB_VIEWED:"Recommended Tab Viewed",RELATED_CONTENT:{SEARCH_SELECTION_SAVED:"Related Content Search Selection Saved",RECOMMEND_SELECTION_SAVED:"Related Content Recommend Selection Saved"},RELATED_CONTENT_SELECTION_METHOD:"Related Content Selection Method",SUGGESTION_SELECTED:"Suggestion Selected",SUGGESTIONS_LOADED:"Suggestions Loaded",SUMMARIES_GENERATED:"Summaries Generated",SUMMARIES_LOADED:"Summaries Loaded",VALIDATION_RESULT:"Validation Result",VIEW_CARD_ON_PAGE_CLICKED:"View Card On Page Clicked",OPEN_USAGE_VIEW:"Open Usage View",USAGE_RESULTS_RETURNED:"Usage Results Returned",USAGE_INTERACTION:"Usage Interaction"},e.exports.assignNavigator=function(e){o=e},e.exports.assignLogInstance=function(e){n=e},e.exports.getLogger=function(){return r.getLogger()}}}]); /* window.modules["18"] */ "use strict";(self.modules=self.modules||[]).push([["18"],{18:(e,t,a)=>{let n,i;let o=a("550"),r=a("551"),{setAnalyticProperty:s,setAnalyticsForChildComponents:u,setAnalyticsVideoType:l,setAuthTypeAnalytics:c,getFreeviewPreviewType:d}=a("22"),{createCallbacks:p,handleOverlay:w,cleanupConfigsForPlayer:y}=a("547"),{createBoltEngagementCallbacks:h,applyBoltEngagementInitConfig:v}=a("20"),{isAnyBoltEngagementEnabled:m}=a("21"),{isLiveContentDiscoveryEnabled:A,applyLiveContentDiscoveryConfig:f,createLiveContentDiscoveryCallbacks:T}=a("552"),{getUserAccessLevel:g}=a("86"),{mediumMaxWidthListener:I}=a("11"),E=a("169"),{isAuthVideo:k,isUKLive:C,getTopAdProfile:P,isLiveVideo:S,isFastLiveVideo:M}=a("14"),{isEdition:b}=a("237"),{getContentModel:L}=a("7"),{calculateSsaiProfile:F}=a("553"),{getSSID:O}=a("545"),_=a("126"),V=a("568"),D={},N=new Promise((e,t)=>{let a=()=>{window.FAVE?.loaded&&(clearInterval(n),clearTimeout(i),e())},n=setInterval(a,500),i=setTimeout(()=>{clearInterval(n),t("timed out awaiting FAVE.loaded")},3e4);a()}).then(()=>window.FAVE.loaded);function R(e){if(window.FAVE)return window.FAVE.player.getInstance(e)}async function j(e){I(e=>{n=e});try{await N}catch(e){throw Error(e)}let t=f(v(await r.build({...e,isMobileViewport:n})));x(t)?t.deferFreeviewStart=!0:t.deferFreeviewStart=!1,await o.setGlobalSettings(t.customExperience,t.autostart),await B(t),await Y();let a=p({...t,topAuth:V.topAuth,isMobileViewport:n});if(m()&&Object.assign(a,h(()=>R(t.markupId))),A(t)&&Object.assign(a,T(()=>R(t.markupId))),t.renderAuthCTAOnReady){let e=a.onPlayerReady,n=!1;a.onPlayerReady=(...a)=>{e?.(...a),n||(n=!0,Z(t).catch(e=>console.error("renderAuthCTA failed during player ready",e)))}}return await window.FAVE.player({configs:t,callbacks:a}),window.dispatchEvent(new Event(t.markupId)),i=R(t.markupId),D={...t},Promise.resolve(i)}let x=e=>!e?.autostart||e?.autostart===!1;async function B(e){if("false"!==e.isAuthenticatedContent){if(k(e.authType)){let t=await V.setupTopAuth();if(e.checkEventBasedPreview&&e.networkId&&await t.initEventBasedPreview(e.networkId,()=>R(e.markupId).stop()),e.networkId&&t.isPreviewActive(e.networkId)&&(s(e,"mvpd","eventpreview"),s(e,"isPreview",!0),s(e,"previewType","tve-preview_event")),e.isLive&&(await X(e),t.freeview?.status&&!t.freeview.status.expired)){let a=d(e,t.freeview.status);s(e,"mvpd","TempPass_CNN10min"),s(e,"isPreview",!0),s(e,"previewType",a)}}else u(e.el,e),l(e)}C(e.customExperience)&&await E.applyEntitlement(e)}let G=(...e)=>i.play(...e),U=()=>i.prepare(),W=()=>i.mute(),Y=async()=>{let e=await g();return localStorage.setItem("access_level",e),e},q=async()=>localStorage.getItem("access_level")||await Y(),z=async e=>{if(await B(e),_(e,"isLive",S(e?.videoId)),_(e,"ads",P({contentModel:L(),contentType:e.rawContentType??e.contentType,isEditionSite:b(window.location.hostname),isMobileViewport:n})),e.el&&_(e,"adsection",O(e.el,n)),c(e),k(e.authType)&&"cnn"===e.site){let t=e.isDTC?"DTC":e?.title;F(e,t,n)}if("false"===e.isAuthenticatedContent){w({...e,topAuth:V.topAuth}),U(),G(null,e);return}return Q(e)},H=async e=>{if(U(),i=R(e.markupId),D={...e},e.el=e.el||i.configs.el,c(e),M(e?.rawContentType??e?.contentType)&&(V.resetTopAuth(),_(e,"isLive",S(e?.videoId)),_(e,"ads",P({contentModel:L(),contentType:e?.rawContentType??e?.contentType,isEditionSite:b(window.location.hostname),isMobileViewport:n})),e.el&&_(e,"adsection",O(e.el,n)),e?.site==="cnn")){let t=e.isDTC?"DTC":e?.title;F(e,t,n)}k(e.authType)&&await V.setupTopAuth(),w({...e,topAuth:V.topAuth}),i.play(null,e)},J=e=>{W(),setTimeout(async()=>{await V.playWithAuth({instance:i,configs:e})},300)};async function K(e,t={}){let a=await V.addPlayerAuthentication(e,t);return D.authentication=a,a}async function Q(e){if(!await K(e,{forceFreeviewStart:!0})&&e.authType?.includes("dtc")){i.stop(),w({...e,topAuth:V.topAuth});return}w({...e,topAuth:V.topAuth}),V.playWithAuth({instance:i,configs:e})}async function X(e){if(e.autostart){let t=await K(e,{forceFreeviewStart:!0});e.authentication=t,e.authentication&&Object.keys(e.authentication).length>0&&!V.topAuth?.error||!t&&(e.autostart=!1,e.player?.ui?.theme?.subscriptionUi?.shouldRender)||(e.renderAuthCTAOnReady=!0)}else e.renderAuthCTAOnReady=!0}async function Z(e){let{setErrorMessage:t,handleOverlayClick:a,removeAuthOverlay:n}=function(e){let t=document.getElementById(e);if(!t.querySelector("#auth-cta-overlay")){let e=document.createElement("div");e.id="auth-cta-overlay",e.innerHTML=' ',t.appendChild(e)}let a=t.querySelector("#auth-cta-overlay__error"),n=t.querySelector("#auth-cta-overlay");return{setErrorMessage:e=>{a.classList.add("auth-cta-overlay__error"),a.textContent=e},removeAuthOverlay:()=>{n.remove()},handleOverlayClick:e=>{n.addEventListener("click",e)}}}(e.markupId),i=V.topAuth,o=R(e.markupId),r=async()=>{let t=await K(e,{forceFreeviewStart:!0});return e.authentication=t,t&&(n(),V.playWithAuth({instance:o,configs:e})),t};e.authentication&&0===Object.keys(e.authentication).length&&!i?.error?a(async()=>{await r()}):e.authentication&&Object.keys(e.authentication).length>0&&!i?.error?await r():i?.error?(t(i.error.message),setTimeout(()=>{i.logout()},1e4)):a(async()=>{let t=await r();w({...e,topAuth:i}),t||(e.isDTC?(n(),o.prepare(),o.resume()):i?.triggerPickerLogin())})}window.addEventListener("userloggedin",async()=>{if(i&&["PLAYING","PAUSED","UNPLAYED"].includes(i?.getMediaState())){let e=V.topAuth||await V.setupTopAuth();i.configs.authentication=await e._getAuthTokenWithoutCobranding(),i.stop()}}),window.addEventListener("mvpdModalClosed",async()=>{let e=i?.configs?{...i.configs}:{...D},t=document.getElementById(e?.markupId);if(t?.classList.remove("paywall-modal-open"),e.authType?.includes("dtc")){let t=await K(e);e.authentication=t,J(e)}}),e.exports={initialize:j,playAuthVideo:z,renderAuthCTA:Z,playClipVideo:H,playVerticalVideo:e=>{i=R(e.markupId),D={...e};let t=i.getMediaState();e.el=e.el||i.configs.el,c(e);let a=u(e.el);_(e,"adobeAnalytics.customMetadata",{...a.adobeAnalytics.customMetadata,...e.adobeAnalytics?.customMetadata}),_(e,"conviva.contentMetadata",{...a.conviva.contentMetadata,...e.conviva?.contentMetadata}),_(e,"zion.customMetadata",{...a.zion.customMetadata,...e.zion?.customMetadata}),l(e),e.muted?i.mute():i.unmute(),"PAUSED"!=t&&"PLAYING"!=t?i.play(null,e):"PLAYING"!=t&&i.resume()},scrollToPlayVideo:function({autostart:e,authType:t,el:a,markupId:n}){if(!("scroll"===e&&!k(t)))return;let i=R(n),o=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,intersectionRatio:t,target:a})=>{e&&t>=.5&&ti.resume(),pause:()=>i.pause(),mute:W,unmute:()=>i.unmute(),stop:()=>{if(i){i.stop();let e=i.configs?.markupId;e&&y(e)}}}}}]); /* window.modules["19"] */ "use strict";(self.modules=self.modules||[]).push([["19"],{19:(t,e,i)=>{let r=i("126"),{convertAuthType:s}=i("7"),{getAssetTraits:a}=i("130");function u(t){if(t)return[{name:"768x432",imageWidth:"768",imageHeight:"432",uri:t},{name:"640x360",imageWidth:"640",imageHeight:"360",uri:t}]}function n(t){if(!t)return"";let e=t.trim();return e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("//")?`https:${e}`:new URL(e,window.location.origin).href}function l(t){if(!t)return"";let e=t.split(",")[0]?.trim();return e&&e.split(/\s+/)[0]||""}function o(t){if(!t)return"";let e=t.querySelector(".tve-asset__image picture, picture"),i=t.querySelector(".tve-asset__image img, img");if(i){let t=i.getAttribute("src")||i.getAttribute("data-src")||l(i.getAttribute("srcset"));if(t)return n(t)}let r=e?.querySelector("source[srcset]");if(r){let t=n(l(r.getAttribute("srcset")));if(t)return t}let s=t.querySelector('[data-component-name="image"]'),a=s?.getAttribute("data-url")||s?.dataset?.url;return a?n(a):""}function d(t){let e=t.title||t.assetTitle,i=t.assetSubTitle||t.assetDescription;return e&&i?`${e}: ${i}`:e||i||t.headline||""}function c(t,{headline:e}={}){let i=s(t.authType);return{...t,authType:i,isDTC:i.includes("dtc"),mediaMetadata:{headline:e,mediumId:t.assetId,boltId:t.boltId,id:t.assetId}}}t.exports={buildVodEpisodePlayerConfig:function(t,e){let i=c(t,{headline:d(t)});i.isLive=!1;let s=u(o(e));s&&(i.mediaMetadata.images=s);let n=t.assetTitle||t.title||"",l=t.assetSubTitle||t.assetDescription||"",m=e?a(e):{};return r(i,"zion.customMetadata",{...i.zion?.customMetadata||{},...m,show_name:n,title:l}),i},buildEpisodeBaseConfig:c,buildPosterImages:u,getThumbnailUriFromAssetEl:o,buildEpisodeHeadline:d,normalizeImageUri:n}}}]); /* window.modules["20"] */ "use strict";(self.modules=self.modules||[]).push([["20"],{20:(t,e,n)=>{let{convertAuthType:o}=n("7"),i=n("568"),a=n("17").setup({file:"/index.js"}),{isVodUpNextEnabled:r,isVodContentDiscoveryEnabled:u,isAnyBoltEngagementEnabled:c}=n("21"),{getUpNextPlayConfigs:l,getContentDiscoveryPlayConfigs:s}=n("135"),{handleOverlay:f,queueOverlayConfigs:p}=n("547");function d(t){return{markupId:t.markupId,networkId:t.networkId,el:t.el}}function h(t){return{enabled:!0,fetch:{enabled:!1},tabs:t.length?[{id:"episodes",label:"Episodes",playConfigs:t}]:[]}}function y(t,{currentMediumId:e,writeWhenEmpty:n}){let o=d(t),i={...t.bolt||{}};if(r()&&(i.upNext={...i.upNext||{},enabled:!0,playConfigs:null==e?i.upNext?.playConfigs||[]:l(o,e)}),u()){let t=s(o,e);(n||t.length)&&(i.contentDiscovery=h(t))}return Object.keys(i).length?{...t,bolt:i}:t}function g(t){return t?.isAuthenticatedContent==="false"||t?.isAuthenticatedContent===!1}function w(t){return o(t).includes("dtc")}function m(t){let e=t?.configs?.authentication;return!!e&&"object"==typeof e&&("adobe"===e.accessTokenType||!!e.mvpd)}async function T(t,e){let n=t?.mediaMetadata?.mediumId;if(!n||!e||g(t))return{authentication:null,authConfigs:null};let r=t.authType||e.configs?.authType;if(!w(r))return{authentication:null,authConfigs:null};let u={...t,markupId:e.configs?.markupId,networkId:t.networkId||e.configs?.networkId,contentType:t.contentType||(t.isLive?"live-stream":void 0),authType:o(r),deferFreeviewStart:e.configs?.deferFreeviewStart},c=await i.addPlayerAuthentication(u,{forceFreeviewStart:!0});return c||a("warn","Bolt engagement: per-episode DTC authentication returned no token",{mediumId:n}),{authentication:c,authConfigs:u}}async function C(t,e,n,o){let{authentication:r,authConfigs:u}=await T({...e,authType:n},t),c=i.topAuth;if(u&&!c)try{c=await i.setupTopAuth()}catch(t){a("warn","Bolt engagement: setupTopAuth failed during deferred handoff",t)}let l=u&&{...u,uri:t.configs?.uri,topAuth:c};r?(l&&p(t.configs?.markupId,l),o(r)):l?await f(l,{scope:"tile"}):o(t.configs?.authentication??null)}async function I(t,e){let n=e?.()||window.FAVE?.player?.getInstance?.(t.containerId),o=t.playConfigs;n&&o&&await C(n,o,t.authType||o.authType,t=>n.completeUpNextLoad({authentication:t}))}async function v(t,e){let n=e?.()||window.FAVE?.player?.getInstance?.(t.containerId),r=t.playConfigs;if(!n||!r)return;if(m(n)){if(g(r)){n.completeContentDiscoveryLoad({authentication:n.configs.authentication});return}let e=i.topAuth;if(!e)try{e=await i.setupTopAuth()}catch(t){a("warn","Bolt Content Discovery: setupTopAuth failed; completing load without overlay",t),n.completeContentDiscoveryLoad({authentication:n.configs.authentication});return}p(n.configs?.markupId,{...r,authType:o(t.authType||r.authType),markupId:n.configs?.markupId,networkId:r.networkId||n.configs?.networkId,uri:n.configs?.uri,topAuth:e}),n.completeContentDiscoveryLoad({authentication:n.configs.authentication});return}let u=t.authType||r.authType;w(u)&&await C(n,r,u,t=>n.completeContentDiscoveryLoad({authentication:t}))}t.exports={applyBoltEngagementToConfig:function(t,e){return c()?y(t,{currentMediumId:e,writeWhenEmpty:!1}):t},applyBoltEngagementInitConfig:function(t){return c()?y(t,{currentMediumId:null,writeWhenEmpty:!0}):t},refreshActiveSeasonContentDiscoveryTabs:function(){u()&&Object.values(window.FAVE?.player?.instances||{}).forEach(t=>{if("function"!=typeof t?.setContentDiscoveryTabs||!t.configs)return;let{tabs:e}=h(s(d(t.configs)));t.setContentDiscoveryTabs(e)})},createBoltEngagementCallbacks:function(t){return{onUpNextLoadDeferred:e=>I(e,t).catch(t=>a("error","Bolt Up Next authentication failed",t)),onContentDiscoveryTileSelected:e=>v(e,t).catch(t=>a("error","Bolt Content Discovery authentication failed",t))}},handleContentDiscoveryAuth:v,handleUpNextDeferred:I,requiresPerEpisodeAuth:w,isTveSession:m}}}]); /* window.modules["21"] */ "use strict";(self.modules=self.modules||[]).push([["21"],{21:(t,e,n)=>{let o=n("23"),{isTVE:i}=n("2"),{isPageVariant:r,PAGE_VARIANTS:c}=n("6"),{convertToBoolean:l}=n("13");function u(){return i()&&r(c.TVE_SERIES)}function a(){return u()&&l(o.get("BOLT_UP_NEXT_ENABLED"))}function s(){return u()&&l(o.get("BOLT_CONTENT_DISCOVERY_ENABLED"))&&function(){let t=[].concat(o.get("BOLT_CONTENT_DISCOVERY_SERIES_ALLOWLIST")||[]).map(t=>"string"==typeof t?t.trim():t).filter(Boolean);if(t.includes("*"))return!0;let e=function(){let t=window.location?.pathname?.match(/\/videos\/(title-\d+)/)?.[1];return t?t:(window.CNN?.contentModel?.canonicalUrl||"").match(/(title-\d+)/)?.[1]||document.querySelector('[data-component-name="tve-asset"][data-series-content-id]')?.dataset.seriesContentId||""}();return!!e&&t.includes(e)}()}t.exports={isVodSeriesPage:u,isVodUpNextEnabled:a,isVodContentDiscoveryEnabled:s,isAnyBoltEngagementEnabled:function(){return a()||s()}}}}]); /* window.modules["22"] */ "use strict";(self.modules=self.modules||[]).push([["22"],{22:(e,t,a)=>{let i=a("126"),{getContinuousVariation:d,AUTH_TYPES:l}=a("14"),{setAnalyticProperty:s,setAnalyticsVideoType:n,setAssetAnalytics:r,setAuthTypeAnalytics:o}=a("569"),u=a("23");function c(){let e=Number(u.get("FREEVIEW_MAX_PREVIEW_SECONDS",60));return Number.isFinite(e)&&e>0?Math.round(e):60}function v(e){let t=Math.max(1,Math.round(e/60));return`${t}min`}let{replaceVersion:f}=a("71");function h(e,t){let a={adobeAnalytics:{customMetadata:{headline:e.headline,title:e.headline,parentStellarId:e.parentStellarId,stellarId:e.stellarId,videoTags:Array.isArray(e.videoTags)?[...e.videoTags]:[],videoUrl:e.videoUrl,branding:e.branding,firstPublishSlug:e.firstPublishSlug}},conviva:{contentMetadata:{videoTitle:e.headline,firstPublished:e.firstPublished,parentStellarId:e.parentStellarId,stellarId:e.stellarId,videoTags:e.videoTags,videoUrl:e.videoUrl,firstPublishSlug:e.firstPublishSlug}},zion:{customMetadata:{video_title:e.headline,parent_stellar_id:e.parentStellarId,stellar_id:e.stellarId,video_tags:e.videoTags,video_url:e.videoUrl,first_publish_slug:e.firstPublishSlug}}};return t&&(i(t,"adobeAnalytics.customMetadata",a.adobeAnalytics.customMetadata),i(t,"conviva.contentMetadata",a.conviva.contentMetadata),i(t,"zion.customMetadata",a.zion.customMetadata)),a}function b(e){return e?f(new URL(`https://${e}`).pathname):""}e.exports={setLiveStreamAnalyticsTitle:function(e){switch(e.mediaMetadata?.id||e?.mediaId){case"livedee0fd3a7f81d264969c7f6f911079c3bd715cd1":s(e,"title","cnn live");break;case"live4d61573b7a0615fa6cfeca73f1df9560efc93803":s(e,"title","cnni live");break;case"livecd0ee653fc42a51546445d02a6c38769c47ab454":s(e,"title","hln live")}},setAnalyticsForChildComponents:function(e,t=null){let a=b(e.dataset.parentUri),i=b(e.dataset.uri);return h({videoSection:e.dataset.section,firstPublished:e.dataset.firstPublished,headline:e.dataset.headline,title:e.dataset.headline,parentStellarId:btoa(a),stellarId:btoa(i),videoTags:e.dataset.videoTags,videoUrl:e.dataset.canonicalUrl,branding:e.dataset.brandingKey,videoSlug:e.dataset.slug,firstPublishSlug:e.dataset.firstPublishSlug},t)},setCustomMetadataForChildComponents:h,updateInstanceCustomMetadata:function(e,t){let{zion:a,adobeAnalytics:i,conviva:d,video_data:l=[]}=t;e&&(e.updateZionCustomMetadata({...a.customMetadata,...l}),e.updateAdobeCustomMetadata({...i.customMetadata,...l}),e.updateConvivaContentMetadata({...d.contentMetadata,...l}))},setAnalyticsVideoType:n,setAnalyticProperty:s,setAssetAnalytics:r,setAuthTypeAnalytics:o,formatPreviewLengthLabel:v,getFreeviewPreviewType:function(e,t){let a=e.authType?.includes(l.DTC),i=a?"dtc-preview":"tve-preview";if(a&&d())return`${i}_${v(c())}`;let s=t?.expires?(t.expires-Date.now())/1e3:0;return`${i}_${v(s)}`},getMaxPreviewSeconds:c}}}]); /* window.modules["23"] */ "use strict";(self.modules=self.modules||[]).push([["23"],{23:(e,t,n)=>{var l=n("384");let r=n("104"),o=n("428"),i=n("367"),d=n("565"),s="undefined"!=typeof window;function a(e){return Array.isArray(e)?d(e,(e,t,n)=>(e[n]=a(t),e),[]):o(e)?d(e,(e,t,n)=>(e[n]=a(t),e),{}):i(e)&&e.split(",").length>1?e.split(","):i(e)?function(e){let t=e.toLowerCase();return"true"===t||"false"!==t&&e}(e):e}function g(e,t){if(e){let n=r(e,t,e[t]);return void 0!==n?a(n):void 0}}let v=new class{constructor(){this.allowedOnClient=[],this.allowedOnEditClient=[],this.getAllForWindow=this.getAllForWindow.bind(this)}getForClient(e,t){let l=g(n.g.env,e),r=g(window.env,e);return void 0!==l?l:void 0!==r?r:a(t)}getForServer(e,t){let r=g(n.g.env,e),o=g(l.env,e);return void 0!==r?r:void 0!==o?o:a(t)}getAllForClient(){return a({...window.env,...n.g.env})}getAllForWindow(e){["allowedOnClient","allowedOnEditClient"].forEach(e=>{this[e]&&!Array.isArray(this[e])&&function(e,t="ERROR"){console.log(`[service/dotenv][${t}] ${e}`)}(`EnvVars.${e} must be an array of environment variable key strings`)});let t=this.allowedOnClient;return e&&(t=t.concat(this.allowedOnEditClient)),t&&t.reduce((e,t)=>{let n=this.getForServer(t);return e[t]=n,e},{})}getAllForServer(){return a({...l.env,...n.g.env})}};e.exports.configure=function(e={}){v.allowedOnClient=e.allowedOnClient||[],v.allowedOnEditClient=e.allowedOnEditClient||[]},e.exports.get=s?v.getForClient:v.getForServer,e.exports.getAll=s?v.getAllForClient:v.getAllForServer,e.exports.getAllForWindow=s?v.getForClient:v.getAllForWindow}}]); /* window.modules["24"] */ "use strict";(self.modules=self.modules||[]).push([["24"],{24:(e,n,t)=>{let o=[],{isInternalURL:i}=t("7"),r=t("133"),a={componentOnScreen:"ComponentOnScreen",componentOffScreen:"ComponentOffScreen",componentLoaded:"ComponentLoaded",genericClick:"GenericClick",genericLinkClick:"GenericLinkClick",genericSubmit:"GenericSubmit",paymentTransactionCompleted:"PaymentTransactionCompleted",paymentTransactionFailed:"PaymentTransactionFailed",scrollDepth:"ScrollDepth",genericMetric:"GenericMetric",pageview:"Pageview"},c=e=>e.map(({name:e,data:n})=>new window.ZION_SDK[e](n)),l=()=>{let e=window.zion_analytics;if(!e){window.addEventListener("zion.loaded",l,{once:!0});return}o.splice(0).forEach(({eventArgs:n,eventName:t,eventVersion:i,contexts:r})=>{let a=2===i?window.ZION_SDK?.V2:window.ZION_SDK;if(!a){o.push({eventArgs:n,eventName:t,eventVersion:i,contexts:r});return}e.track(new a[t](...n),...c(r))}),o.length>0&&window.addEventListener("zion.loaded",l,{once:!0})},_=(e,n,t=1,i=[],r)=>{let a=window.zion_analytics,_=2===t?window.ZION_SDK?.V2:window.ZION_SDK,d=r?[e,r]:[e];a&&_?a.track(new _[n](...d),...c(i)):(0===o.length&&window.addEventListener("zion.loaded",l,{once:!0}),o.push({eventArgs:d,eventName:n,eventVersion:t,contexts:i}))},d={threshold:"0.2",root:null,rootMargin:"0px"},s=e=>(Object.keys(e).forEach(n=>{let t=e[n];(""===t||null==t)&&delete e[n]}),e),p=[0,25,50,75,100],m={cms_id:"Cms_id",canonical_url:"Canonical_url",zone_id:"Zone_id",zone_name:"Zone_name",zone_type:"Zone_type",zone_position_number:"Zone_position_number",zone_total_number:"Zone_total_number",product_zone_position_number:"Product_zone_position_number",product_zone_total_number:"Product_zone_total_number",combined_zone_position_number:"Combined_zone_position_number",combined_zone_total_number:"Combined_zone_total_number",stack_id:"Stack_id",stack_name:"Stack_name",stack_type:"Stack_type",stack_position_number:"Stack_position_number",stack_total_number:"Stack_total_number",stacks_identifier:"Stacks_identifier",stack_position:"Stack_position",container_id:"Container_id",container_name:"Container_name",container_type:"Container_type",container_position_number:"Container_position_number",container_total_number:"Container_total_number",container_page_position_number:"Container_page_position_number",container_page_total_number:"Container_page_total_number",card_id:"Card_id",card_name:"Card_name",card_type:"Card_type",card_position_number:"Card_position_number",card_total_number:"Card_total_number",card_link_type:"Card_link_type",card_label:"Card_label",component_id:"Component_id",component_type:"Component_type",component_text:"Component_text",component_name:"Component_name",feature:"Feature",action:"Action",link_page_stellar_id:"Link_page_stellar_id",tenant:"Tenant",link_position:"Link_position",link_total:"Link_total",link_stellar_page_id:"Link_stellar_page_id",location:"Location",page_stellar_id:"Page_stellar_id",stellar_id:"Stellar_id",nav_location:"Nav_location",nav_link_text:"Nav_link_text",nav_version:"Nav_version"},u=e=>{if(!e)return{};let n={};for(let[t,o]of Object.entries(m)){let i=e.getAttribute(`data-zjs-${t}`);null!==i&&""!==i&&(n[o]=i)}return n};e.exports={addOnScreenAnalytics:(e,n=d,t={},o=_,i)=>{let r={},c=0,l=new IntersectionObserver(e=>e.forEach(({isIntersecting:e,target:n})=>{let _=n.id||t.component_id,d={component_id:_,component_type:t.component_type||"section",...t};e&&!r[_]?r[_]=setTimeout(()=>{o(d,a.componentOnScreen),c+=1},1e3):!e&&r[_]&&(clearTimeout(r[_]),delete r[_],o(d,a.componentOffScreen),i&&c>=i&&l.disconnect())}),n);return l.observe(e),l.cancelPending=()=>{Object.keys(r).forEach(e=>{clearTimeout(r[e]),delete r[e]})},l},addParagraphScrollDepthAnalytics:(e,n,t={})=>{let o=e?e.querySelectorAll(n):[],i=o.length;if(!i)return;let r=Math.round(.25*i),c=Math.round(.5*i),l=Math.round(.75*i),d=new WeakMap,s=[...p],m=e=>e===i||1===i?100:e===l?75:e===c?50:e===r?25:1===e?0:null,u=e=>{s.filter(n=>n{_({scroll_percentage:e,...t},a.scrollDepth)}),s=s.filter(n=>n>e)},w=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:n})=>{if(!e)return;let t=m(d.get(n));null!==t&&u(t),w.unobserve(n),s.length||w.disconnect()})});o.forEach((e,n)=>{d.set(e,n+1),w.observe(e)})},addScrollDepthAnalytics:(e,n,t={},o=!0)=>{Object.keys(n).forEach(i=>{let c=n[i],l={scroll_percentage:100*c,...t};r(e,c,i,()=>{_(o?l:t,a.scrollDepth)})})},trackScrollDepth:(e={})=>{_(e,a.scrollDepth)},addComponentLoadedAnalytics:(e={})=>{let{source:n,componentType:t,componentId:o,traits:r={}}=e,c=window.CNN&&window.CNN.contentModel,l=window?.WM?.referrer||document.referrer;_({component_id:o,component_type:t,traits:{source_id:c&&c.sourceId||void 0,source:n||i(l)&&l||void 0,...r}},a.componentLoaded)},addPageviewAnalytics:(e={})=>{let{traits:n={}}=e,t=window.CNN&&window.CNN.contentModel||{},o=window.CNN?.metadata?.content?.topics?.tags||(t.pageTags?t.pageTags.split(","):[]);_({canonicalUrl:t.canonicalUrl,traits:{event_source:t.techStack||"stellar",page_variant:t.templateType||"",raw_url:window.location.href,cms_id:t.cmsId||"",page_type:t.pageType||"",edition:window.CNN?.helpers?.isEditionPage(),section:t.section||"",subsection:t.subsection||"",section_level_3:t.subsubsection||"",experience_type:"cnn_core",page_tags:o,is_content_loaded:!1,is_dynamic_pageview:!1,...n},sourceId:t.sourceId||""},a.pageview,1,[{name:"ConsentContext",data:{consent_state:window.WBD?.UserConsent?.getSimpleConsentState()||{}}}])},addGenericSubmitAnalytics:(e={})=>{let{componentType:n,componentId:t,traits:o={},source:r}=e,c=s(o),l=window.CNN?.contentModel,d=window?.WM?.referrer||document.referrer,p=document.querySelector("link[rel='canonical']"),m=l&&l.canonicalUrl||p&&p.href||window.location.href;_({component_id:t,component_type:n,traits:{source_id:l?.sourceId,source:r||i(d)&&d||void 0,canonical_url:m,brand:"CNN",cms_id:l?.cmsId,page_type:l?.pageType,page_variant:l?.templateType,...c}},a.genericSubmit)},addGenericClickAnalytics:(e={})=>{let{componentType:n,componentId:t,traits:o={},source:r}=e,c=window.CNN&&window.CNN.contentModel,l=window?.WM?.referrer||document.referrer,d=document.querySelector("link[rel='canonical']"),s=c&&c.canonicalUrl||d&&d.href||window.location.href;_({component_id:t,component_type:n,traits:{source_id:c?.sourceId,source:r||i(l)&&l||void 0,canonical_url:s,cms_id:c?.cmsId,brand:"CNN",...o}},a.genericClick)},addGenericLinkClickAnalytics:e=>{e&&_({href:e.href,type:"A",customAttributes:u(e)},a.genericLinkClick)},addGenericMetricAnalytics:(e,n=[])=>{let t=new Date().toString();_({metric_source:e,metrics:n.map(e=>({...e,metric_timestamp:t}))},a.genericMetric,2)},addZJSClickAttributes:(e,n={})=>{if(e){for(let t in e.setAttribute("data-zjs","click"),n)if(Object.hasOwnProperty.call(n,t)){let o=n[t];e.setAttribute(`data-zjs-${t}`,o)}}},getClickActionType:e=>e?.pointerType==="touch"?"tap":"click",getGenericLinkClickCustomAttributes:u,addPaymentTransactionEvent:(e={},n=!0)=>{let{source:t,...o}=e,r=window.CNN&&window.CNN.contentModel,c=window?.WM?.referrer||document.referrer,l=document.querySelector("link[rel='canonical']"),d=r&&r.canonicalUrl||l&&l.href||window.location.href;_({source_id:r&&r.sourceId||void 0,source:t||i(c)&&c||void 0,canonical_url:d,brand:"CNN",...o},n?a.paymentTransactionCompleted:a.paymentTransactionFailed)},addSearchTermTracking:({search_term:e,search_results_number:n,search_category:t,search_section:o,search_type:i,sort_type:r})=>{_({canonical_url:window.CNN?.contentModel?.canonicalUrl,search_text:e,search_type:"",traits:{search_term:e,search_results_number:n,search_category:t,search_section:o,sort_type:r,search_type:i}},"Search")},zionEventHandler:_,DEFAULT_OBSERVER_API_SETTINGS:d}}}]); /* window.modules["26"] */ "use strict";(self.modules=self.modules||[]).push([["26"],{26:(e,t,r)=>{let s=r("417"),{isRelativePath:a,getUrlObj:i}=r("28"),{appendQueryParam:l,validateQueryParam:h}=r("38"),{isInternalURL:n}=r("7"),{getPreAuthEntitlements:c}=r("27"),d=r("461"),u=r("566");e.exports=class{constructor({url:e,excludedPaths:t,defaultUrl:r}){this.url=e||new URL(window.location),this.excludedPaths=t||[],this.defaultUrl=r||"/",this.docReferrer=window?.WM?.referrer||document.referrer,this.urlReturnTypes={PATH:"path",OBJECT:"object",FULL:"full"}}_checkPathName(e){let t=a(e)?e:new URL(e).pathname;return t!==this.url.pathname&&!this.excludedPaths?.find(e=>t.startsWith(e))}getValidatedUrl(e){try{return n(e)&&this._checkPathName(e)&&s(e)}catch(e){return!1}}getRedirectUrl({priorityRedirectParam:e,priorityRedirectUrl:t,secondaryRedirectUrl:r,returnType:s}={}){let a=this.url.searchParams.get(e)||t||this.url.searchParams.get("redirect"),i=this.getValidatedUrl(a)||r&&this.getValidatedUrl(r)||this.getValidatedUrl(this.docReferrer)||this.defaultUrl;if(!s)return i;{let e=new URL(i,window.location.origin);return s===this.urlReturnTypes.PATH&&`${e.pathname}${e.search&&e.search}`||s===this.urlReturnTypes.OBJECT&&e||s===this.urlReturnTypes.FULL&&e.href}}triggerRedirect=({redirectUrl:e,fallbackRedirect:t="/"})=>{let r=e&&n(e)?e:t;window.location.assign(r)};appendParams=({targetUrl:e,sourceUrl:t=this.url,customParams:r={}})=>{let s=e instanceof URL?e:new URL(e),a=t instanceof URL?t:new URL(t),i=s.href,n=new Map;return Object.entries(r).forEach(([e,t])=>{n.set(e,{value:t,isCustom:!0})}),a.searchParams.forEach((e,t)=>{n.has(t)||n.set(t,{value:e,isCustom:!1})}),n.forEach(({value:e,isCustom:t},r)=>{let a=h(r,e);!a||s.searchParams.has(r)||!t&&(a.includes(i)||i.includes(a))||l(s,r,a)}),s.href};removeParams=({targetUrl:e,params:t=[]})=>{let r=e instanceof URL?e:i(e);return t.forEach(e=>r.searchParams.delete(e)),r.href};redirectIfUserHasEntitlement=async(e,t,r)=>{if(r?.length){let{preAuthorizedEntitlements:s}=await c(e,!1);if(!s?.length)return!1;let a=s.map(({entitlement:e})=>e),l=r.find(({bypassEntitlements:e})=>d(u(e),u(a)));if(l){let e=l.entitlementsGroupRedirect,r=this.getRedirectUrl({priorityRedirectParam:"redirect",priorityRedirectUrl:e||t});return this.triggerRedirect({redirectUrl:this.appendParams({targetUrl:i(r)})}),!0}}return!1}}}}]); /* window.modules["27"] */ "use strict";(self.modules=self.modules||[]).push([["27"],{27:(e,r,t)=>{let s,a,o,n;let{getCookie:c}=t("47"),{AUTH_CLIENT:i}=t("37"),u=t("17").setup({file:"/index.js"}),{formatLoggingData:l}=t("567"),d=t("23"),{trackMetrics:g}=t("12"),{zionEventHandler:S}=t("24"),{generateTemporaryDisplayName:y}=t("53"),{dispatch:h,actions:m}=t("42"),{PAYWALL:E}=m,{getCurrentSite:p}=t("134"),w=t("251"),f=p(),{IDENTITY_TYPES:A}=t("81"),T=t("104"),_=[401,424],v={DOMESTIC:"domestic",INTL:"intl"},O={TOS:{docName:"TOS",version:"1.0",type:v.DOMESTIC},TOS_INTL:{docName:"TOS-Intl",version:"1.0",type:v.INTL},UK_ALL_ACCESS:{docName:"TOS-UK-All-Access",version:"1.0"}};Object.freeze(O);let k="An unexpected error occurred. Visit help.cnn.com for assistance.",I={500:k,default:k},C={401:"Your account has been locked. Visit www.cnn.com/feedback for further assistance.",420:"You entered an incorrect email, password, or both.",429:"An account with this email address already exists. If you believe this account is yours, please log in above.",...I},b={401:"Your account has been locked. Visit www.cnn.com/feedback for further assistance.",420:"You have entered an invalid password.",432:"Sorry, an error has occurred. Please try again later",523:"Sorry, an error has occurred. Please check your internet connection and try again",...I},L={401:`It looks like you’re having trouble logging in. Please click “Forgot password?” to reset your password.`,420:`You have entered an invalid username or password.${d.get("REG_SSO_GOOGLE_ENABLED")?" If you used a third-party account before, try signing in with that instead.":""}`,432:"Sorry, an error has occurred. Please try again later",523:"Sorry, an error has occurred. Please check your internet connection and try again",acct_deleted:"This email address is associated with a previously deleted account. Please use a different email address.",...I},R={420:"Sorry, an error has occurred. Please try again later.",429:'Looks like this account already exists. Please log in.',acct_deleted:"This email address is associated with a previously deleted account. Please use a different email address.",...I},P={validEmail:w(f,"Please enter a valid email address"),requiredEmail:w(f,"Email address is required"),emailSize:w(f,"Email must not exceed 255 characters"),requiredPassword:w(f,"Please enter a password"),registrationPassword:{min:w(f,"At least 8 characters"),upperLowerCase:w(f,"At least one letter"),numbers:w(f,"At least one number")},passwordSize:w(f,"Password must not exceed 255 characters"),displayName:{length:w(f,"0-30 letters and numbers"),hasValidChars:w(f,"Can include hyphens, apostrophes, periods, spaces, and commas")}},N={LOG_IN_SUCCESS:"logged in",LOG_IN_FAILURE:"login failure",ACCOUNT_CREATED:"account created",REGISTRATION_FAILURE:"registration failure",LOG_OUT:"logged out"},U={REGISTRATION:"cnn_registration",PASSWORD_RESET:"cnn_password_reset"},G={},M={getPreAuthEntitlements:E.AUTH_ENTITLEMENTS},D=async(e,r,t)=>{if("function"!=typeof r||!Object.hasOwn(M,e))return{success:!1};let s=async()=>{G[e]="loading";let t=await r();return h(M[e],t),G[e]="loaded",t},a=G[e];return t&&["loading","loaded"].includes(a)?void 0:await s()},z=(e,r)=>`${e}:${r}`,x=({criteria:e,value:r,messageMap:t})=>{let s=[];return Object.keys(e).forEach(a=>{let o=!0;RegExp(e[a]).test(r)||(o=!1),s.push({valid:o,msg:t[a]})}),s},$=e=>{let r=e||c("countryCode"),t=r&&"US"!==r?v.INTL:v.DOMESTIC;return Object.values(O).filter(e=>e.type===t)},j=e=>{g({type:"user-account",data:e})},q=async(e,r)=>{let t={success:!1,errorStatus:500},s=i.getToken();if(s)try{for(let{docName:r,version:t}of e)await i.addLegalDoc({docName:r,version:t},s);return{success:!0,errorStatus:null}}catch(e){t.errorStatus=e&&e.status||500,u("error",`Error accepting ${r}: `,l(e))}return t},V=(e,{docName:r,version:t})=>T(e,"user.userProfileResponses.cnn.acceptedLegalDocumentResponses",[]).some(e=>e.docName===r&&e.version===t),F=async e=>{let r={success:!1,errorStatus:500},t={misc:{event_message_type:U.REGISTRATION}};if(e)try{await i.resendConfirmationEmail(e,t,i.getToken()),r={success:!0,errorStatus:null}}catch(s){let e=s&&s.status||500,t=l(s);r.errorStatus=e,u("error","Error resending email confirmation:",t)}return r},Z=async(e,r={})=>{let t={success:!1,errorStatus:500};if(r={...r||{},event_message_type:U.PASSWORD_RESET},e)try{await i.resetPasswordRequest(e,r),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error sending reset password request:",l(r))}return t},K=async e=>{let r={success:!1,errorStatus:500};if(e)try{await i.confirmEmail(e),r={success:!0,errorStatus:null}}catch(s){let e=s&&s.status||500,t=l(s);r.errorStatus=e,u("error","Error confirming email: ",t)}return r},Y=async e=>{let r={success:!1,errorStatus:500};if(e)try{r={resetToken:await i.resetPassword(e),success:!0,errorStatus:null}}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error confirming reset password: ",l(t))}return r},B=async(e,r,t=null)=>{let s={success:!1,errorStatus:500};if(e&&r)try{await i.changePassword({newPassword:r,misc:t},e),s={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;s.errorStatus=e,u("error","Error changing password: ",l(r))}return s},W=async e=>{let r={success:!1,errorStatus:500};if(e){let{attributes:t,source:s}=e;try{if(await i.register({...e,attributes:{...t,registration_subscribe:new Date().toISOString(),registration_source:s,display_name:y()},legaldocs:$(),rememberMe:90,misc:{...e.misc||{},event_message_type:U.REGISTRATION}})){r={success:!0,errorStatus:null},j({action:N.ACCOUNT_CREATED});try{S({traits:{account_method:"standard",account_source_id:""}},"UserRegistration")}catch(e){u("error","Error firing UserRegistration Nova analytics event:",e)}}}catch(s){let e=s&&s.status||500;r.errorStatus=e;let t=l(s);j({action:N.REGISTRATION_FAILURE,status:e,errorMessage:t?.data?.[0]?.message||""}),u("error","Error registering user: ",t)}}return r},H=async e=>{let r={success:!1,errorStatus:500},t=e?.attributes?.signup_type==="one-tap"?"one tap":"button",s=c("countryCode");try{let a=await i.googleSsoRegister({...e,attributes:{...e.attributes||{},registration_subscribe:new Date().toISOString(),registration_source:e.source,display_name:y()},addresses:s&&[{country:s}],legaldocs:$(),rememberMe:90});r={success:!0,errorStatus:null,userInfo:a},j({action:N.ACCOUNT_CREATED,method:z(A.GOOGLE.toLowerCase(),t)});try{S({traits:{account_method:A.GOOGLE.toLowerCase(),account_source_id:""}},"UserRegistration")}catch(e){u("error","Error firing UserRegistration Nova analytics event:",e)}document.dispatchEvent(new CustomEvent("google-sso-register"))}catch(a){let e=a&&a.status||500,s=l(a);r.errorStatus=e,j({action:N.REGISTRATION_FAILURE,method:z(A.GOOGLE.toLowerCase(),t),status:e,errorMessage:s?.data?.[0]?.message||""}),u("error","Error registering user with Google: ",s)}return r},J=async e=>{let r={success:!1,errorStatus:500},t=c("countryCode");try{let s=await i.appleSsoRegister({...e,attributes:{...e.attributes||{},registration_subscribe:new Date().toISOString(),registration_source:e.source,display_name:y()},addresses:t&&[{country:t}],legaldocs:$(),rememberMe:90});r={success:!0,errorStatus:null,userInfo:s},j({action:N.ACCOUNT_CREATED,method:`${A.APPLE.toLowerCase()}:button`})}catch(s){let e=s&&s.status||500,t=l(s);r.errorStatus=e,j({action:N.REGISTRATION_FAILURE,method:`${A.APPLE.toLowerCase()}:button`,errorMessage:t?.data?.[0]?.message||""}),u("error","Error registering user with Apple: ",l(s))}return r},Q=async({email:e,password:r,misc:t={},userInfoData:s={},ssoType:a="",disableRegFallback:o,autoLogin:n,source:d})=>{let g={success:!1,errorStatus:500,userInfo:void 0},y={[A.GOOGLE]:H,[A.APPLE]:J},h=a?{method:z(a.toLowerCase(),n?"automatic login":o?"one tap":"button")}:{};if(a&&r||e&&r)try{let s=await i.login({email:e,password:r,...a&&{identityType:a},rememberMe:90,misc:t,source:d},!0);if(a){let e=s.user?.userAddressResponses?.some(e=>e.country),r=c("countryCode");!e&&r&&er({addresses:[{country:r}]},s.authToken)}g={success:!0,errorStatus:null,userInfo:s},j({action:N.LOG_IN_SUCCESS,...h});try{S({canonical_url:window?.CNN?.contentModel?.canonicalUrl||null,cnn_uid:i.getStoredUID()||null,brand:"CNN",traits:{account_method:a?a.toLowerCase():"standard",account_source_id:""}},"UserLogin")}catch(e){u("error","Error firing UserLogin Nova analytics event:",e)}a===A.GOOGLE&&document.dispatchEvent(new CustomEvent("google-sso-login"))}catch(n){let e=n&&n.status||500;if(420===e&&a&&!o)g=await y[a]({token:r,misc:t,...s});else{g.errorStatus=e;let r=l(n);j({action:N.LOG_IN_FAILURE,errorMessage:r?.data?.[0]?.message||"",...h}),u("error","Error logging in user:",r)}}return g},X=async()=>{let e={success:!1,errorStatus:500,userInfo:void 0},r=i.getToken();if(r)try{let t=await i.accountInfo(r);e={success:!0,errorStatus:null,userInfo:t,userToken:r}}catch(t){let r=t&&t.status||500;e.errorStatus=r,_.includes(t?.status)&&i.removeToken(),u("error","Error getting user info: ",l(t)),j({action:N.LOG_OUT,method:"getUserInfo"})}return e},ee=async(e,r={})=>{let t={success:!1,errorStatus:500};if(e)try{let{identityTypes:s}=await i.emailLookupRequest(e,r);t={success:!0,identityTypes:s,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,424!==e&&u("error","Error sending email lookup request:",l(r))}return t},er=async(e,r)=>{let t={success:!1,errorStatus:500};if(r=r||i.getToken())try{await i.updateAccount(e,r),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error updating account info: ",l(r))}return t},et=async()=>{let e={success:!1,errorStatus:500},r=i.getToken();if(r)try{await i.deleteAccount(r),e={success:!0,errorStatus:null}}catch(s){let r=l(s),t=s&&s.status||500;e.errorMessage=r?.data?.[0]?.message||"",e.errorStatus=t,u("error","Error deleting account: ",r)}return e},es=async()=>{let e={success:!1,errorStatus:500},r=i.getToken();if(r)try{await i.refreshAuthToken(r,90),e={success:i.tokenWithAuthn(),errorStatus:null}}catch(t){let r=t&&t.status||500;e.errorStatus=r,u("error","Error refreshing auth token: ",l(t))}return e},ea=async e=>{let r={success:!1,errorStatus:500},t=i.getToken();if(e&&t)try{r=await i.linkMVPDAuthn(t,e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error linking MVPD to user: ",l(t))}return r},eo=async(e,r,t=!1,s=!1)=>(t&&(G.getPreAuthEntitlements=""),await D("getPreAuthEntitlements",async()=>{let t={success:!1,errorStatus:500,preAuthorizedEntitlements:void 0};if(e)try{let{preAuthorizedEntitlements:s}=await i.getPreAuthEntitlements(e,r);t={success:!0,errorStatus:null,preAuthorizedEntitlements:s}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error getting preauth entitlements: ",l(r))}return t},s)),en=async()=>(s||(s=ec()),s),ec=async()=>{let e={success:!1,errorStatus:500,sbpToken:void 0,exp:void 0},r=await i.getToken();if(r){if(a&&o&&n&&r==a&&n>Math.round(Date.now()/1e3))e={success:!0,errorStatus:void 0,sbpToken:o,exp:n};else try{let{data:t}=await i.getSbpToken(r);t.sbpToken&&t.exp&&(a=r,o=t.sbpToken,n=t.exp,e={success:!0,errorStatus:void 0,sbpToken:t.sbpToken,exp:t.exp})}catch(t){a=void 0,o=void 0,n=void 0;let r=t&&t.status||500;e.errorStatus=r,u("error","Error getting SBP token: ",l(t))}}else a=void 0,o=void 0,n=void 0;return s=void 0,e},ei=async(e,r)=>{let t={success:!1,errorStatus:500},s=r||i.getToken();try{await i.linkSSOAccount(e,s),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error linking SSO account: ",l(r))}return t},eu=async(e,r)=>{let t={success:!1,errorStatus:500},s=e||i.getToken();try{let{data:e}=await i.getSSOIdentities(s,r);t={success:!0,data:e,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error getting SSO identities: ",l(r))}return t},el=async e=>{let r={success:!1,errorStatus:500};try{let{data:t}=await i.getSSOIdentityTypes(e);r={success:!0,data:t,errorStatus:null}}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error getting SSO identity types: ",l(t))}return r},ed=async(e,r)=>{let t={success:!1,errorStatus:500},s=r||i.getToken();try{await i.deleteSSOIdentity(e,s),t={success:!0,errorStatus:null}}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error deleting SSO identity: ",l(r))}return t},eg=async(e,r)=>{if(e&&r){let{success:t,preAuthorizedEntitlements:s=[]}=await eo(i.getToken(),!1);return!!(t&&s?.length&&s.every(r=>e.includes(r.entitlement)))&&(window.location.assign(r),!0)}},eS=(e=[])=>{let r=e.map(({entitlement:e})=>e),t=e=>e.every(e=>r.includes(e));return Object.entries({readOnly:["cnn_subs"],allAccess:["cnn_subs","cnn_subs_video"],ukLive:["cnn_uk"]}).reduce((e,[r,s])=>(t(s)&&e.push(r),e),[])},ey=async e=>{let r={success:!1,errorStatus:500},t=i.getToken();if(e&&t)try{r=await i.assignRegCode(t,e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error assigning regcode to user: ",l(t))}return r},eh=async e=>{let r={success:!1,errorStatus:500};if(e)try{r=await i.verifyRegCode(e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error verifying regcode: ",l(t))}return r},em=async e=>{let r={success:!1,errorStatus:500},t=i.getToken();if(e&&t)try{r=await i.getRegcodeMetadata(t,e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error getting metadata for regcode: ",l(t))}return r},eE=async(e,r)=>{let t={success:!1,errorStatus:500},s=e||i.getToken();if(s&&r)try{t=await i.createAmazonAssociation(s,r)}catch(r){let e=r&&r.status||500;t.errorStatus=e,u("error","Error creating Amazon association: ",l(r))}return t},ep=async e=>{let r={success:!1,errorStatus:500};try{r=await i.checkAmazonEligibility(e)}catch(t){let e=t&&t.status||500;r.errorStatus=e,u("error","Error checking Amazon eligibility: ",l(t))}return r};e.exports={authClient:i,createAccountDaltonErrorMessageMapping:R,ssoConfirmPasswordDaltonErrorMessageMapping:b,loginDaltonErrorMessageMapping:C,updateAccountErrorMessageMapping:{432:"1 - 30 letters and numbers, can also include hyphens, apostrophes, periods, and commas."},loginPageDaltonErrorMessageMapping:L,mvpdErrorMessageMapping:{429:"Sorry, this TV provider account is already linked to another CNN+ account.",default:"Sorry, we cannot link your TV Provider right now. Please try again later."},validateEmail:e=>{let r="";return e?e.length>255?r=P.emailSize:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/i.test(e)||(r=P.validEmail):r=P.requiredEmail,r},validatePassword:e=>{let r="";return e?e.length>255&&(r=P.passwordSize):r=P.requiredPassword,r},validateRegistrationPassword:e=>{let{registrationPassword:r}=P;return x({criteria:{min:/.{8,}/,upperLowerCase:/[a-zA-Z]/,numbers:/^(?=.*[0-9]).+$/},messageMap:r,value:e})},validateDisplayName:e=>{let{displayName:r}=P;return x({criteria:{length:/^.{0,30}$/,hasValidChars:/^(?=.*[a-zA-Z0-9]|^$)([a-zA-Z0-9\-,.' ])*$/},messageMap:r,value:e})},getRegionalLegalDocs:$,acceptTOS:e=>q($(e),"TOS"),acceptUkAllAccessTOS:()=>q([O.UK_ALL_ACCESS],"UK All Access TOS"),getUserInfo:X,updateAccountInfo:er,registerUser:W,registerUserSSO:H,getEmailLookup:ee,loginUser:Q,resendConfirmation:F,resetPassword:Z,changePassword:B,confirmReset:Y,confirmEmail:K,deleteAccount:et,linkMVPDAuthn:ea,refreshAuthToken:es,getPreAuthEntitlements:eo,getSbpToken:en,linkSSOAccount:ei,getSSOIdentities:eu,deleteSSOIdentity:ed,REMEMBER_ME_DURATION:90,getSSOIdentityTypes:el,deDupDaltonResponse:D,registerUserSSOApple:J,bypassEntitlements:eg,checkEntitlements:eS,checkEntitlementsForAccess:(e=[],r=[])=>{let t=eS(e);return r.reduce((e,r)=>(e[r]=t.includes(r),e),{})},needsConsent:e=>$().some(r=>!V(e,r)),needsUkAllAccessConsent:e=>!V(e,O.UK_ALL_ACCESS),hasUniversalProductIndicator:function(e,r){return r.every(r=>e.some(({universalProductIndicator:e})=>e===r))},getProviderIdByUpi:(e,r)=>{let t=Array.isArray(e)?e:[];return t.find(({universalProductIndicator:e})=>e===r)?.providerId},assignRegCode:ey,verifyRegCode:eh,getRegcodeMetadata:em,UNAUTH_ERROR_CODES:_,createAmazonAssociation:eE,checkAmazonEligibility:ep}}}]); /* window.modules["28"] */ "use strict";(self.modules=self.modules||[]).push([["28"],{28:(e,t,n)=>{let{checkGeoCountry:o}=n("7"),{getCookie:r}=n("47"),{getQueryParam:a}=n("38"),{subscribe:c}=n("42"),{zionEventHandler:s}=n("24"),{isAmazonPvcCtvFlowEnabled:i}=n("53"),u=e=>{try{let t=decodeURIComponent(e);return/(^\/(?!\/)([A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=]*\/?))/.test(t)}catch(e){return!1}},l=e=>new URL(e,u(e)?window.location.origin:void 0),d=e=>a(l(e).searchParams,"source"),m=(e,t)=>{e&&(t?(e.setAttribute("disabled","true"),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled")))},p=({searchParams:e,queryParam:t,storage:n=window.sessionStorage})=>{n.setItem(t,e.get(t)),e.delete(t);let o=e.toString();return o&&`?${decodeURIComponent(o)}`},_=e=>({link_text:"amazon prime video",action:"click",component_name:"sign in",component_type:"user account",component_id:e?.closest("[data-uri]")?.dataset.uri,user_flow:"amazon pvc"});e.exports={setElementDisabled:m,setDisabledOnValidationEvent:(e,t)=>c(t,({valid:t})=>m(e,!t)),determineSource:e=>{let{prioritySource:t,defaultSource:n,promoPath:o}=e;return o&&t?`${o}__${t}`:o||t||window?.WM?.referrer||document.referrer||n},stripStoreQueryString:p,checkExperienceRestricted:({region:e,logo:t="cnn"})=>{let n="UK"===e?"GB":e,r=n&&!o(n);return r&&document.querySelector(".layout-user-account").classList.add(`layout-user-account--restricted-${t}`),r},isRelativePath:u,checkForQueryCode:({codeName:e,urlUtil:t=new URL(window.location),storage:n=window.sessionStorage})=>{let o=n.getItem(e),r=t.searchParams,a=!o&&r.get(e);if(a){let o=p({searchParams:r,queryParam:e,storage:n});window.location.assign(`${t.pathname}${o}`)}return o&&n.removeItem(e),{codeInQuery:a,storedCode:o}},suppressToasts:()=>{let e=document.querySelectorAll(".toast-popup__container");e?.length>0&&e.forEach(e=>e.style.display="none")},userAccount:(e,t)=>{"wall"===e&&document.dispatchEvent(new CustomEvent("init-wall-activation",{detail:t}))},getUrlObj:l,getSourceParam:d,clearStaleProductSelection:(e,t)=>{t.length>1&&t.forEach(t=>{let n=e.dataset.frequency.toLowerCase();t.getSelectedItem()&&t.el.dataset.name!==n&&t.clearSelection()})},revealAndUpdatePvcLink:({linkEl:e,redirectClient:t,variation:r="default",variations:a={}})=>{if(!e||!t)return;let{getRegCode:c}=n("57"),s="user-account-shared__amazon-pvc-text";if(!o("US")||r===a.RESET_SUCCESS||c()&&!i()){e.closest(`.${s}`)?.classList.add(`${s}--hide`);return}let u=t.getRedirectUrl(),m=d(window.location.href);e.setAttribute("href",t.appendParams({targetUrl:l("/account/log-in/amazon-pvc"),customParams:{..."/"!==u&&{redirect:u},...m&&{source:m}}}))},redirectToAmazonPVCLogin:({redirectClient:e,urlObj:t,viewName:n})=>{let o=t||l("/account/log-in/amazon-pvc"),r=e.appendParams({targetUrl:o,...n&&{customParams:{view:n}}});e.triggerRedirect({redirectUrl:r})},getCountryCode:()=>{try{return r("countryCode")||"US"}catch(e){return"US"}},hideUserAccountLayoutFooter:()=>{document.querySelector(".layout-user-account")?.classList.add("layout-user-account--no-footer")},getAmazonPvcLinkClickAttributes:_,trackAmazonPvcLinkClickForZion:(e,t)=>{s({href:e.href,type:"A",customAttributes:_(t)},"GenericLinkClick")},trackPVCEnterPasswordOnScreenForZion:e=>{s({component_id:e?.closest("[data-uri]")?.dataset.uri,component_type:"user account",traits:{component_name:"enter cnn password",user_flow:"amazon pvc"}},"ComponentOnScreen")},trackSignInClickForZion:e=>{s({href:window.location.href,type:"BUTTON",customAttributes:{link_text:"sign in",action:"click",component_name:"enter cnn password",component_type:"user account",component_id:e?.closest("[data-uri]")?.dataset.uri,user_flow:"amazon pvc"}},"GenericLinkClick")},trackAmazonPVCClick:(e,t)=>{s({href:window.location.href,type:"BUTTON",customAttributes:{link_text:e,action:"click",component_name:"set up cnn account",component_type:"user account",component_id:t,user_flow:"amazon pvc"}},"GenericLinkClick")},trackAmazonPVCAccountSetupScreen:e=>{s({component_type:"user account",component_id:e,traits:{component_name:"set up cnn account",user_flow:"amazon pvc"}},"ComponentOnScreen")},PROCESSING_LABEL:'Processing...'}}}]); /* window.modules["30"] */ "use strict";(self.modules=self.modules||[]).push([["30"],{30:(e,i,t)=>{var a=t("314").Buffer;let{ClientTemplate:n}=t("91"),{getLanguage:o}=t("7"),{formatDurationForScreenReader:l}=t("136"),r=t("image.client"),s=t("video-resource.client"),{elevateWhenNeeded:d,isElevated:c}=t("132"),{array:u,arrayIncludes:p,not:m,ternary:g}=t("559"),{generateSourceByDAM:h,renderImage:v}=t("389"),w=t("560"),f=t("251"),{toObject:b}=t("13"),y=t("561"),L=t("562"),S={compiler:[8,">= 4.3.0"],main:()=>"",useData:!0},M=n.createHandlebarsEnvironment({helpers:{adFeedbackLink:()=>"",array:u,arrayIncludes:p,elevateWhenNeeded:d,escapeHTMLQuotes:function(e){return e.fn(this).replace(/"|'/g,""").trim()},generateSourceByDAM:h,inlineSafeString:w,isElevated:c,kilnEditButton:()=>"",not:m,read:e=>e.includes("sig-video.svg")?'':e.includes("ui-caret-up.svg")?'':void 0,renderImage:v,sliceString:function(e,i,t){return e.slice(i,t||e.length)},ternary:g,toObject:b,translate:f},partials:{byline:S,image:y,show:S,timestamp:S}}).template(L);e.exports=function(e,i,{indexOffset:t=0}={}){e.forEach((e,d)=>{try{let c=function(e,i,t){let n=a.from(e.stellar_id,"base64").toString(),r=n.startsWith("/")?`${window.location.hostname}${n}`:n,s=o();return{_ref:r,branding:[{}],canonicalUrlPath:new URL(e.url,window.location.origin).pathname,componentVariation:"video-resource",config:{details:"",duration:"",fullDetails:!1,thumbnailWidth:""},description:e.description,displayVideoCover:!0,duration:e.durationLabel,durationDisplay:e.durationLabel,durationForScreenReader:l(e.durationLabel,s),videoLabel:f(s,"Video"),headline:e.headline,inPlaylist:!0,index:i+t,lazy:!0,locals:{configuration:{language:s,pageType:window.CNN?.contentModel?.pageType},edit:!1,modal:!1,pageVariant:window.CNN?.contentModel?.templateType},parentUri:r,source:e.source,showSourcePartial:!!e.source,stellarId:e.stellar_id,tags:{tagNames:""},thumbnail:[{alt:e.headline,componentVariation:"image",credit:"",damType:"stellar",url:e.thumbnail}],videoId:e.stellar_id}}(e,d,t),u=M(c),p=n.createElementFromHTML(u);p.querySelectorAll('[data-component-name="image"]').forEach(e=>r(e)),s(p),i.appendChild(p)}catch(e){console.error("video-playlist: skipping invalid recommendation",e)}})}}}]); /* window.modules["31"] */ "use strict";(self.modules=self.modules||[]).push([["31"],{31:(e,t,i)=>{let{trackMetrics:r}=i("12"),o=i("17").setup({file:"/index.js"});e.exports={adobeMetrics:function(e,t){try{r({type:"click-interaction",data:{interaction:`video: ${e}: ${t}`}})}catch(e){o("error","error logging adobe metrics",e)}}}}}]); /* window.modules["32"] */ "use strict";(self.modules=self.modules||[]).push([["32"],{32:I=>{let e={ACTIVE:"active",INACTIVE:"inactive",MEDIUM:"medium",SMALL:"small"};Object.freeze(e),I.exports={EnumDotType:e,getDotStyle:(I,E,M)=>{let A=e.SMALL;return ME?I===E+1&&(A=e.MEDIUM):I=E-2?A=e.INACTIVE:I===E-3&&(A=e.MEDIUM):A=e.ACTIVE,A)}}}}]); /* window.modules["33"] */ "use strict";(self.modules=self.modules||[]).push([["33"],{33:(t,e,n)=>{let{v4:r}=n("166"),o=n("23"),i=n("172"),{getUserHistory:l}=n("554"),{getZaid:a}=n("7"),{CONTENT_RECS_API_PERSONALIZE:u,formatTenantId:s,getThumbnailUrl:d,buildRequestBody:_,getRecommendations:c,getMainVideoStellarId:N}=n("291"),{getProxyRequestParams:T}=n("275"),{fetchContents:E}=n("256"),f={relatedContent:o.get("CONTENT_RECS_RELATED_TENANT_ID"),personalizedContent:o.get("CONTENT_RECS_PERSONALIZED_TENANT_ID"),popularContent:o.get("CONTENT_RECS_POPULAR_TENANT_ID"),trendingContent:o.get("CONTENT_RECS_TRENDING_TENANT_ID"),homepageModule:o.get("CONTENT_RECS_HOMEPAGE_TENANT_ID"),watchNextPopular:o.get("CONTENT_RECS_WATCHNEXT_POPULAR_TENANT_ID"),watchNextTrending:o.get("CONTENT_RECS_WATCHNEXT_TRENDING_TENANT_ID"),watchNextRelated:o.get("CONTENT_RECS_WATCHNEXT_RELATED_TENANT_ID"),watchNextPersonalized:o.get("CONTENT_RECS_WATCHNEXT_PERSONALIZED_TENANT_ID")};function h({tenantId:t,mainVideoUri:e,numberOfItems:n,surface:r="watch-next",dedupe:o=!1}){let i=_({numberOfItems:n,contentTypes:["video"],tenantId:t,includeHistory:!0,surface:r,dedupe:o,customSuffix:"web",throwIfMissingZaid:!1});if(e){let t=N(e);Array.isArray(i.user.lifetime_history)||(i.user.lifetime_history=[]),i.user.lifetime_history.push({stellar_id:t})}return c(i)}let C=o.get("LIVESTORY_CLIENT_KEY_CONTENT_API",""),g=o.get("LIVESTORY_HOSTS_CONTENT_API",{}),p=o.get("WATCHNEXT_FALLBACK_PATH","");function m(t){if(!t||!t._ref)return null;let e=t._ref,n=e.match(/(\/_{1,2}components\/.+)/),r=btoa(n?n[1]:`/_components/${e.split("/_components/")[1]}`),o=t.thumbnail?.[0]?.url||t.thumbnails?.[0]?.url||"",i=t.canonicalUrlPath||"";return{stellar_id:r,url:i?`${window.location.origin}${i}`:"",headline:t.headline||"",description:t.description||"",durationLabel:t.duration||" ",source:t.source||"",thumbnail:o?d(o):""}}async function A(){let t=function(){if(g.all)return`https://${g.all}`;let t="undefined"!=typeof document?document.querySelector("html")?.getAttribute("lang"):null;if(t&&g[t])return`https://${g[t]}`}();if(!p||!C||!t)throw Error("Video playlist fallback not configured");let{url:e,headers:n,parser:r}=T(p,C,t,"json");if(!e)throw Error("Video playlist fallback: unable to build proxy request");let{data:o}=await E(e,{headers:n,attempt:0,maxRetryCount:1,parser:r,getRetryDelay:()=>5e3});if(!o?.videos?.length)throw Error("Video playlist fallback: empty response");let i=o.videos.map(m).filter(Boolean);if(!i.length)throw Error("Video playlist fallback: no valid videos after transform");return{recommendations:i}}t.exports={getRelatedContent:function(t,e,n,r=!1,o=f.relatedContent){return c(_({numberOfItems:t,tenantId:o,includeHistory:!0,surface:n,dedupe:r}))},getPersonalizedContent:function({numberOfItems:t,contentTypes:e,sections:n=[],surface:r,dedupe:o=!1,tenantId:i=f.personalizedContent}){return c(_({numberOfItems:t,contentTypes:e,sections:n,tenantId:i,includeHistory:!0,surface:r,dedupe:o}))},getPopularContent:function({numberOfItems:t,contentTypes:e,sections:n=[],surface:r,dedupe:o=!1,tenantId:i=f.popularContent}){return c(_({numberOfItems:t,contentTypes:e,sections:n,tenantId:i,includeHistory:!1,surface:r,dedupe:o}))},getTrendingContent:function({numberOfItems:t,contentTypes:e,sections:n=[],surface:r,dedupe:o=!1,tenantId:i=f.trendingContent}){return c(_({numberOfItems:t,contentTypes:e,sections:n,tenantId:i,includeHistory:!0,surface:r,dedupe:o}))},getHomepagePersonalizedContent:function(t,e){let n=`${f.homepageModule}.web`,o={request_id:`ml-manual-${r()}`,tenant_id:n,requested_recommendation_count:e,user:{user_agent:window.navigator.userAgent,zaid:a({throwIfMissing:!0}),lifetime_history:l()},candidate_pool:t.map(t=>({stellar_id:t}))};return i.post(u,o).then(({error:t,tenant_id:e,recommendations:r})=>{if(t)throw Error(`Recommendations fetch failed! Error: ${t}`);if(!Array.isArray(r)||r?.length({stellarId:t,score:e})),isFallbackResult:e!==n,tenantId:e,model:f.homepageModule}})},formatTenantId:s,getThumbnailUrl:d,getTrendingWatchNextContent:function(t){let e=f.watchNextTrending;return h({...t,tenantId:e})},getPopularWatchNextContent:function(t){let e=f.watchNextPopular;return h({...t,tenantId:e})},getRelatedWatchNextContent:function(t){let e=f.watchNextRelated;return h({...t,tenantId:e})},getPersonalizedWatchNextContent:function(t){let e=f.watchNextPersonalized;return h({...t,tenantId:e})},getVideoPlaylistFallback:A}}}]); /* window.modules["35"] */ "use strict";(self.modules=self.modules||[]).push([["35"],{35:(e,r,s)=>{let{authClient:t}=s("27"),a=s("23"),{actions:n,dispatch:o}=s("42"),{get:E}=s("172"),c=s("17").setup({file:"/index.js"}),{addScriptTag:i}=s("7"),R=[],N={},T={},l={LOGIN:"LOGIN",LOOKUP:"LOOKUP",NEWSLETTERS:"NEWSLETTERS",REGISTRATION:"REGISTRATION",PAYMENT:"PAYMENT",PWRESET:"PWRESET",VERIFICATION:"VERIFICATION"},A={[l.LOGIN]:"",[l.LOOKUP]:"",[l.NEWSLETTERS]:"",[l.REGISTRATION]:"",[l.PAYMENT]:"",[l.PWRESET]:"",[l.VERIFICATION]:""},d={[l.LOGIN]:{srcEnvVar:"ARKOSE_LOGIN_SRC",callbackFnName:"setupArkoseLogin",id:"login-arkose-script"},[l.LOOKUP]:{srcEnvVar:"ARKOSE_LOOKUP_SRC",callbackFnName:"setupArkoseLookup",id:"lookup-arkose-script"},[l.NEWSLETTERS]:{srcEnvVar:"ARKOSE_NEWSLETTERS_SRC",callbackFnName:"setupArkoseNewsletters",id:"arkose-newsletters-script"},[l.REGISTRATION]:{srcEnvVar:"ARKOSE_REGISTRATION_SRC",callbackFnName:"setupArkoseReg",id:"registration-arkose-script"},[l.PAYMENT]:{srcEnvVar:"ARKOSE_REGISTRATION_SRC",callbackFnName:"setupArkosePayment",id:"payment-arkose-script"},[l.PWRESET]:{srcEnvVar:"ARKOSE_REGISTRATION_SRC",callbackFnName:"setupArkoseResetPassword",id:"reset-password-arkose-script"},[l.VERIFICATION]:{srcEnvVar:"ARKOSE_LOGIN_SRC",callbackFnName:"setupVerificationArkose",id:"arkose-user-verification-script"}},O=async e=>{let r=a.get("ENABLE_ARKOSE_DATA_EXCHANGE"),s=A[e];if(!s&&r){let r={use_case:e||"",referer:window.location.href,selected_site:"cnn"};try{let{data:a}=await t.getDataExchange(r);A[e]=a,s=a}catch(e){c("error",e.message,{stack:e.stack})}}return s},S=async({enforcementConfig:e,setBy:r,useCase:s,enforcement:t,isMultiUse:a})=>{let E=setTimeout(()=>{o(n.ARKOSE.SCRIPT_LOAD_FAILED)},15e3),{onReady:c,onCompleted:i}=e;T[s]=0;let R=await O(s);t?.setConfig({...e,data:R&&{blob:R}||{},onReady:()=>{clearTimeout(E),c({enforcement:t})},onCompleted:i,onError:async()=>{clearTimeout(E),await C({enforcementInstance:t,useCase:s,retryTimes:T[s]})}}),a&&window.arkoseEnforcementCNN?.sharedEnforcements[s]&&(window.arkoseEnforcementCNN.sharedEnforcements[s].setBy=r)},I=async e=>{let{enforcementConfig:r,useCase:s,isMultiUse:t,setBy:a}=e,n=d[s],{callbackFnName:o,id:E}=n||{};!r||!o||document.getElementById(E)||void 0!==window[o]||(t&&(window.arkoseEnforcementCNN||(window.arkoseEnforcementCNN={}),window.arkoseEnforcementCNN.sharedEnforcements||(window.arkoseEnforcementCNN.sharedEnforcements={})),window[o]=async r=>{t&&(window.arkoseEnforcementCNN.sharedEnforcements[s]={enforcement:r,setBy:a}),await S({...e,enforcement:r})},u(n))},m=async e=>{let{useCase:r,setBy:s,resetOnReady:t}=e,a=(window.arkoseEnforcementCNN?.sharedEnforcements||{})[r],n=a?.setBy!==s;if(a&&n){let{enforcement:r}=a;await S({...e,enforcement:r,enforcementConfig:{...e.enforcementConfig,onReady:t}}),r.reset()}return n},k=({srcEnvVar:e,callbackFnName:r,id:s})=>{let t=N[s]??0;if(3===t){f(),o(n.ARKOSE.SCRIPT_LOAD_FAILED);return}f(),u({srcEnvVar:e,callbackFnName:r,id:s}),N[s]=t+1},f=()=>{R.forEach(e=>{let r=document.getElementById(e);r&&r.remove()})},u=({srcEnvVar:e,callbackFnName:r,id:s})=>{e&&s&&r&&(i({src:a.get(e),async:!0,defer:!0,id:s,onerror:()=>{k({srcEnvVar:e,callbackFnName:r,id:s})},data:{callback:r}}),R.push(s))},w=async()=>{try{let e=await E("https://status.arkoselabs.com/api/v2/status.json");return"none"===e.status.indicator}catch(e){return c("error","Error checking arkose health: ",e),!1}},C=async({enforcementInstance:e,useCase:r,retryTimes:s=0})=>{if(e){if(await w()&&s{e.run()},500);return}o(n.ARKOSE.SCRIPT_LOAD_FAILED)}};e.exports={loadAndInitializeArkose:I,enforcementOnError:C,createArkoseScript:u,getDaexData:O,MAX_RETRY_COUNT:3,USE_CASES:l,checkIfReset:m}}}]); /* window.modules["36"] */ "use strict";(self.modules=self.modules||[]).push([["36"],{36:(e,r,t)=>{let a=t("104"),o=t("126"),{authClient:i,updateAccountInfo:n}=t("27"),{paymentErrorMapping:c,resolveGizmoRegion:s}=t("37"),{getPostalCodeValidationMessage:l}=t("125"),{createAccordionItem:d}=t("108"),u=["applePay","googlePay"],p={applePay:"Apple Pay",googlePay:"Google Pay"},g=["productId","productPrice","billingInterval","productCurrency","productUpi"],m={EXPRESS:"expressCheckout",CARD:"card"},y=(e,{region:r,fallback:t=""}={})=>"incorrect_zip"===e?l(r):a(c,e,t),_=["mastercard","visa","amex"],h=["discover"],P="user-account-credit-card-fields__icons",f="user-account-credit-card-fields__icon",v={mastercard:"Mastercard",visa:"Visa",amex:"American Express",discover:"Discover",...p},b=(e,{text:r="Credit or debit card",wrapperClass:t=P,iconClassPrefix:a=f}={})=>{let o="US"===e?[..._,...h]:_;return{text:r,html:` ${o.map(e=>``).join("\n ")} `}},w=e=>{let r=` ${e.map(e=>``).join("")} `;return{text:1===e.length&&p[e[0]]||"Apple Pay or Google Pay",html:r}},S={apple_pay:{trackingId:"apple"},google_pay:{trackingId:"google"}},E={WHITE:"white",BLACK:"black"},$=e=>Object.values(E).includes(e),C=async({stripe:e,cardElement:r,owner:t})=>await e.createPaymentMethod({type:"card",card:r,billing_details:t}),I=async e=>{let{stripe:r,cardElement:t,clientSecret:a,paymentMethod:o,owner:i}=e;return await r.confirmCardSetup(a,{payment_method:o?o.id:{card:t,billing_details:i}})},x=async({stripe:e,elements:r,clientSecret:t})=>{let a=window.location.href;return await e.confirmSetup({elements:r,clientSecret:t,redirect:"if_required",confirmParams:{return_url:a}})},k=async(e,r,t,o,i)=>{try{let c=`payment_${t}_source`,l="US"===s(i)?"gizmous":"gizmo",d=a(r,`userProfileResponses.${l}.${c}`,!1),u={};r&&!d&&(u[c]=o,await n({attributes:{[l]:u}},e))}catch(e){console.error("Error retrieving user attributes:",e)}},A=({source:e,productId:r,productPrice:t,billingInterval:a,productCurrency:o,productUpi:n,isExpress:c=!1})=>({source:e,cnn_uid:i.getStoredUID(),product_id:r,price:Number(t),billing_interval:a,currency:o,universal_product_indicator:n,storefront:"gizmo-stripe",storefront_id:"gizmo",...c&&{payment_source:"stripe_digital-wallets"}}),M=(e,r,t)=>{let{errorStatus:a,stripeError:o,purchaseDateMillis:i}=r;e.error_code=a?.toString(),e.error_source=o?"stripe":void 0,e.error_message=o,e.purchase_date=i?.toString(),e.http_response=t?"success":"error"},U=async({productData:e,zionSource:r,paymentProcessor:t,paymentSource:a,cardElement:o,ownerName:i,subscriptionIdForRenewal:n,expressSetupResult:c,metadata:s={},arkoseToken:l})=>{let d=a===m.EXPRESS,u=A({source:r,...e,isExpress:d}),p=await t.createPurchase({productId:e.productId,paymentSource:a,...d?{expressSetupResult:c}:{cardElement:o,ownerName:i},metadata:s,...l&&{arkoseToken:l},...n&&{subscriptionIdForRenewal:n}}),{success:g,errorStatus:y,stripeError:_,purchaseDateMillis:h}=p;return M(u,{errorStatus:y,stripeError:_,purchaseDateMillis:h},g),{...p,submitData:u}};e.exports={initializeStripeCardElement:({stripe:e,clientSecret:r,mountDomElement:t,baseClassName:a="user-account-shared",fontSize:i=16,lineHeight:n=20,shouldHidePostalCode:c=!0})=>{let s={style:{base:{fontSize:`${i}px`,lineHeight:`${n}px`,fontFamily:"cnn_sans_display,helveticaneue,Helvetica,Arial,Utkal,sans-serif",color:"#262626",iconColor:"#262626",":hover + ::placeholder":{color:"#262626"},"::placeholder":{color:"#6e6e6e"},":-webkit-autofill":{color:"#262626"}},invalid:{color:"#262626",fontWeight:"bold"}},hidePostalCode:c};o(s,"classes.base",`${a}__stripe-card-element`);let l=e.elements({clientSecret:r}).create("card",s);return l.mount(t),l},createPaymentMethod:C,confirmCardSetup:I,confirmExpressSetup:x,setupExpressElement:({stripe:e,mountDomElement:r,supportedPaymentMethods:t,theme:a,currency:o="usd",buttonType:i="plain"})=>{let n=e.elements({mode:"setup",currency:o}),c={};t&&u.forEach(e=>{c[e]=t.includes(e)?"always":"never"});let s=n.create("expressCheckout",{buttonHeight:40,layout:{overflow:"never"},buttonType:"string"==typeof i?{googlePay:i,applePay:i}:i,...$(a)&&{buttonTheme:{googlePay:a,applePay:a}},paymentMethods:c});return s.mount(r),{expressCheckoutElement:s,elements:n}},getPaymentMethodTrackingId:e=>{let r=S[e];return r&&r.trackingId?r.trackingId:e||"unknown"},EXPRESS_BUTTON_THEMES:E,PAYMENT_ERROR_MESSAGE:"Sorry, we couldn't process your payment. Please try again.",paymentSourceTypes:m,validatePurchaseParams:e=>e&&g.every(r=>Object.hasOwn(e,r)),getSubmitProductData:e=>({productId:e.productId,productUpi:e.productUpi,productPrice:e.productPrice,productCurrency:e.productCurrency,billingInterval:e.billingInterval,...e.introPrice&&{offerPrice:e.introPrice},...e.introCurrency&&{offerCurrency:e.introCurrency}}),checkExpressError:e=>{let{error:r}=e;if(r){let t="card_error"===r.type||"validation_error"===r.type,o=a(r,"message","");e.errorMsg=t?y(r.code,{fallback:o}):a(c,"processing_error","")}},getPaymentErrorMessage:y,applyFieldError:(e,r,t)=>{if(!r)return!1;switch(e){case"incorrect_cvc":case"expired_card":return r.setCardError(y(e,{region:t})),!0;case"incorrect_zip":return r.setZipError(y(e,{region:t})),!0;default:return!1}},generateCreditCardTitle:b,generateDigitalWalletsTitle:w,generatePaymentAccordionItems:({children:e,region:r,expressPaymentMethods:t})=>{if(!e?.length)return[];let a=[b(r)];if(t){let e=w(t);a.push(e)}let o=[...e].findIndex(e=>e.classList.contains("expressCheckoutView"));return!t&&o>-1&&e.splice(o,1),e.map((r,t)=>d({showActive:1===e.length,titleHtml:a[t].html,componentName:"accordion-item",componentVariation:"accordion-item",title:a[t].text,content:`${r.outerHTML} `,id:`user-account-payment-accordion-${t}`}).outerHTML)},isExpressSupported:(e,r=["US"])=>{let t=[].concat(r||[]).filter(Boolean);if(!(t.length?t:["US"]).includes(e))return!1;let a=window.navigator.userAgent,o=/(mobile|tablet)/gi.test(a),i=["googlePay"];return(o&&/iPad|iPhone|iPod/.test(a)&&!window.MSStream||/^((?!android).)*Version\/1[6-9]|Version\/[2-9]\d/.test(window.navigator.userAgent))&&i.push("applePay"),i},setUserPaymentAttrs:k,buildPaymentSubmitData:A,applyPurchaseResultToSubmitData:M,executePurchase:U}}}]); /* window.modules["37"] */ "use strict";(self.modules=self.modules||[]).push([["37"],{37:(e,r,t)=>{let a=t("685"),s=t("23"),n=t("17").setup({file:"/index.js"}),{formatLoggingData:o}=t("567"),i=new a({env:s.get("DALTON_ENV")||"production",cookieVersion:s.get("DALTON_COOKIE_VERSION")||"v1.1",forwardClientInfo:!0,appId:s.get("TOP_AUTH_SERVICE_APP_ID"),cookieRefreshAfterDays:5,pianoEnabled:s.get("PIANO_ENABLED")&&s.get("PIANO_ENABLE_AUTH_SYNC")}),c=e=>"CA"===e?"US":e,u=async e=>{let r=await i.requestRegCode(e),{errorStatus:t}=r;return t&&n("error","Error requesting reg code: ",t),r},l=async e=>{let r={success:!1,errorStatus:500};if(e){let{errorStatus:t}=r=await i.authnRegCode(e);t&&n("error","Error authenticating reg code: ",t)}return r},d=async e=>{let r={success:!1,errorStatus:500},t=s.get("REGWALL_API_V2_ENABLED")?"2":"1";if(e){let{errors:a}=r=await i.getActiveSub(e,t);a&&n("error","Error getting active subscriptions: ",a)}return r},p=async e=>{let r={success:!1,errorStatus:500},t=s.get("REGWALL_API_V2_ENABLED")?"2":"1";if(e){let{errors:a}=r=await i.getSub(e,t);a&&n("error","Error getting subscriptions: ",a)}return r},g=async(e,r="US")=>{let t=s.get("REGWALL_API_V2_ENABLED")?"2":"1",a="UK"===r?s.get("GIZMO_UK_VERSION","2"):t,o=await i.getProducts(e,r,a),{errors:c}=o;return c&&n("error","Error getting products: ",c),o},y=async e=>{let r={success:!1,errorStatus:500};if(e){let{errors:t}=r=await i.getPaymentSources(e);t&&n("error","Error getting payment sources: ",t)}return r},f=async(e,r,t)=>{let a={success:!1,errorStatus:500};if(e&&r&&t){let{errors:s}=a=await i.addPaymentSource(e,r,c(t));s&&n("error","Error adding payment source: ",s)}return a},m=async(e,r,t,a)=>{let s={success:!1,errorStatus:500};e&&r&&t&&(s=await i.updateSubPaymentSource(e,r,t,c(a)));let{errors:o}=s;return o&&n("error","Error updating subscription payment source: ",o),s},h=async(e,r,t)=>{let a={success:!1,errorStatus:500},{purchases:s}=r||{};s?.length&&(a=s.filter(e=>e.idempotencyKey).length===s.length?await i.addPurchase(e,r,c(t)):{...a,errorStatus:422,errors:[{field:null,error:"error",message:"Sorry, we couldn't process your payment. Please try again."}]});let{errors:o}=a;return o&&n("error","Error adding purchase: ",o),a},E=async(e,r="US")=>{let t={success:!1,errorStatus:500},a=i.getToken();if(a&&e)try{(t=await i.getPurchasePreview(a,e,c(r))).success||n("error","Error getting purchase preview: ",t.errors||o(t))}catch(e){t={success:!1,errorStatus:e&&e.status||500},n("error","Error getting purchase preview: ",o(e))}return t},S=async(e,r)=>{let t={success:!1,errorStatus:500,clientSecret:void 0};e&&(t=await i.setupIntent(e,c(r)));let{errors:a}=t;return a&&n("error","Error creating setup intent: ",a),t},w=async(e,r,t)=>{let a={success:!1,errorStatus:500};e&&r&&(a=await i.cancelSub(e,r,c(t)));let{errors:s,errorStatus:o}=a;return(s||o)&&n("error","Error cancelling subscription: ",{status:o,data:s}),a},_=async(e,r,t)=>{let a={success:!1,errorStatus:500};if(e&&r){let{errors:s,errorStatus:o}=a=await i.cancelSubImmediate(e,r,c(t));(s||o)&&n("error","Error immediately cancelling subscription: ",{status:o,data:s})}return a},b=async(e,r="US")=>{let t=await i.getProductTransitionStrategy({productOrSubId:e,type:"productId",region:c(r)}),{errors:a}=t;return a&&n("error","Error getting product/subscription transitions: ",a),t};e.exports={AUTH_CLIENT:i,resolveGizmoRegion:c,getActiveSub:d,getAllSubs:p,requestRegCode:u,authnRegCode:l,paymentErrorMapping:{expired_card:"Enter a valid expiration date.",incorrect_zip:"Enter a valid ZIP Code.",incorrect_cvc:"Enter a valid security code.",card_declined:"Unable to process payment.",processing_error:"Unable to process payment. Try again.","internal.error":"Unable to process payment. Try again.","transition.strategy.notfound":'Sorry, but we can\'t process your request right now. Please contact our Help Center for support.'},marketingConsentData:{marketingOptIns:[{name:"marketingOptIn",label:"Check here if you would like to receive updates and offers from CNN and its affiliates",preselected:!0},{name:"marketingOptIn",label:"Yes! CNN and WarnerMedia News & Sports may use my email address along with my interests, interactions, and device data to send me tailored email and other offers through social media or other sites and apps.",type:"gdpr"},{name:"marketingAffiliateOptIn",label:"Yes! CNN and WarnerMedia News & Sports may also share those details with Affiliates so they may send me tailored email and other offers. CNN and WarnerMedia News & Sports are requesting this consent on behalf of their affiliates, which will use the information under their respective privacy policies.",type:"gdpr"}]},getProducts:g,getPaymentSources:y,addPaymentSource:f,updateSubPaymentSource:m,addPurchase:h,getPurchasePreview:E,cancelSubscription:w,cancelSubscriptionImmediate:_,createSetupIntent:S,getProductTransitions:b}}}]); /* window.modules["38"] */ "use strict";(self.modules=self.modules||[]).push([["38"],{38:(e,t,r)=>{let n=r("621"),a=r("622"),o=r("689"),s=r("417"),i=r("367"),u=r("428"),l=r("556"),c=r("587"),p=r("104"),{isValidURL:m,urlHasValidProtocol:f}=r("237"),{SHOW_TOAST_PARAM:g}=r("584"),d=new Set(["ar"]),x=r("17").setup({file:"/index.js"}),h=new Set(["selected","view","redirect","registration_source","registration_email_campaign","retention","upgrade","manage","entry","source","regcode",g,"utm_synthetics","iid","utm_source","utm_medium","utm_campaign","utm_content","utm_term","wmuc_cc","wmuc_debug","gclid","fbclid","focus_mode","variation","episode","wholesale_promo"]);function w(e){return e.replace(/[^A-Za-z 0-9\.,\?!@#\$%\^&\*\(\)-_=\+;:<>\/\\\|\}\{\[\]~]*/g,"")}function _(e){return i(e)?n.decode(s(e.replace(/ /g," "))):""}function y(e){return"string"!=typeof e?"":function(e,t={}){let r=t.custom||{},n=e.toLowerCase();for(let[e,t]of Object.entries(r))n=n.split(e).join(t);for(let[e,t]of Object.entries({"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","":"greater than","∑":"sum","\xa4":"currency",$:"usd"}))if(!(e in r)){let r="$"===e?"":` ${t} `;n=n.split(e).join(r||t)}return n.replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}(_(w(e.normalize("NFD"))),{custom:{_:"-","|":""}})}function A(e,t){return h.has(e)&&null!=t?m(t)&&f(t)?function(e){if(!e)return"";let t=[];for(let[r]of e.searchParams)h.has(r)||t.push(r);for(let r of t)x("info",`query param "${r}" REMOVED from URL "${e.href}"`),e.searchParams.delete(r);return e.href}(new URL(t)):t:(x("info",`query param "${e}" is NOT allowlisted or has invalid value`),"")}e.exports.toSmartHeadline=function(e,t){let r=p(t,"site.site","cnn"),a=n.decode(e).replace("---","—").replace("--","–").replace("...","…");return"cnn"!==r?a:o(a)},e.exports.toSmartText=function(e,t="en"){let r=e=>n.decode(e),o=r(e);return d.has(t)||(o=r(a.smartypants(o,2))),(e.includes("<")||e.includes(">"))&&(o=o.replaceAll(/|\/\w+>)/gm,"<").replaceAll(/(/gm,function(e,t){return t?e:">"})),o},e.exports.stripUnicode=w,e.exports.escapeHTML=function(e){if("string"!=typeof e)throw TypeError("Input must be a string");let t={"&":"&","":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,e=>t[e])},e.exports.toPlainText=_,e.exports.cleanSlug=y,e.exports.cleanUrlPath=function(e){return e?e.toLowerCase().replace(/\/+/g,"/").replace(/[^a-zA-Z0-9-_/]|^\/|\/$/g,""):e},e.exports.validateTagContent=function(e){let t=s(e);return""===t||t.match(/^\s+$/)?"":e},e.exports.stripEmptyParagraphs=function(e){return i(e)?e.replace(/]*>(?: ||\s)*/gi,""):e},e.exports.recursivelyStripSeperators=function e(t){return u(t)?c(t,e):l(t)?t.map(e):i(t)?t.replace(/(\u2028|\u2029)/g,""):t},e.exports.removeNewLines=function(e){return e.replace(/\\n|\n/g,"")},e.exports.stripEmail=function(e){return e.replace(/[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)+/,"")},e.exports.setSlug=function(e,t,r="slug"){e[t]&&!e[r]&&(e[r]=y(e[t])),e[r]=y(e[r]||"")},e.exports.hiddenFormattedTextParser=function(e){return e.replace(/((?:[.\s!"'\-,:;_—(){}[\]<>/\\…*&%$+@^~?|]?| ))/gim,"")},e.exports.getQueryParam=function(e,t){if(!e||!t||"string"!=typeof t)return"";let r=t.toLowerCase(),n=e.get(t);return null===n&&(n=e.get([...e.keys()].find(e=>e.toLowerCase()===r))),A(r,decodeURIComponent(s(n)))},e.exports.appendQueryParam=function(e,t,r){let n=A(t,s(r));return n&&e.searchParams.append(t,n),e},e.exports.validateQueryParam=A,e.exports.PARAM_ALLOWLIST=h}}]); /* window.modules["40"] */ "use strict";(self.modules=self.modules||[]).push([["40"],{40:(e,t,r)=>{let{authClient:a,getPreAuthEntitlements:i,checkEntitlementsForAccess:n,needsUkAllAccessConsent:l}=r("27"),{getGeoCountry:o,getGeoState:s,getGeoDataCookie:c}=r("7"),{currencyToRegionMap:u,isAllAccessSubscription:d,getCurrentPhaseNumber:g}=r("46"),{parseJSON:E}=r("16"),y=r("23"),p=r("17").setup({file:"/index.js"}),C={GB:"UK"},m="cnn_nav_pmt_status",D=["VT"],S=e=>D.includes(e?.toUpperCase()),f=async()=>{let{preAuthorizedEntitlements:e=[]}=await i(a.getToken(),!1);return n(e,["allAccess"]).allAccess},w=async()=>{let{preAuthorizedEntitlements:e=[]}=await i(a.getToken(),!1);return n(e,["ukLive"]).ukLive},h=async e=>!!y.get("UK_LIVE_TOS_UPDATE_ENABLED",!1)&&await w()&&l(e),T=async()=>{let{preAuthorizedEntitlements:e=[]}=await i(a.getToken(),!1),{readOnly:t,allAccess:r}=n(e,["readOnly","allAccess"]);return!r&&t},_=e=>{if(!e)return;let t=String(e).toUpperCase();return C[t]||t},A=e=>{if(e)return String(e).toUpperCase()},U=(e={})=>{let{country:t,state:r}=e.card||{},a=e.currency||e.details?.scheduleDetails?.[0]?.currency;return{region:_(t)||_(u[a])||_(o()),state:A(r)||A(s())}},v={DEFERRED:"DEFERRED",IMMEDIATE:"IMMEDIATE"},N=(e,t)=>{let r=new Date(e);return r.setUTCFullYear(r.getUTCFullYear()+t),r.getTime()},I=e=>{if(e.billingPeriod?.interval==="year")return!0;let t=g(e.details?.scheduleDetails);return t?.billingPeriod?.interval==="year"},M=(e={})=>{let t=(e.details?.scheduleDetails||[]).filter(e=>e.billingPeriod?.interval==="year"&&Number.isFinite(e.startDateMillis)).map(e=>e.startDateMillis);return t.length?Math.min(...t):Number.isFinite(e.purchaseDateMillis)?e.purchaseDateMillis:void 0};e.exports={isAllAccessSubscriber:f,isUkLiveSubscriber:w,needsUkLiveTosConsent:h,isReadOnlySubscriber:T,verifySubIdFormat:e=>"string"==typeof e&&e.length{let a={},i=!0;try{a=JSON.parse(t||"{}")}catch(e){i=!1,p("error",`Error parsing localized ${r} copy`,e)}let{region:n}=U(e),l=a[n]||a.US;return i&&(l?n&&!a[n]&&p("error",`No ${r} copy for region ${n}, falling back to US`):p("error",`No ${r} copy for ${n||"an unknown region"} and none for US`)),l||{}},getCancelSurveyEntryId:e=>"string"==typeof e?e:e?.id,getCancellationType:(e={},t=Date.now())=>{let{DEFERRED:r,IMMEDIATE:a}=v;if(!I(e))return r;let{region:i,state:n}=U(e);if("CA"===i&&"QC"===n)return a;if(!d(e))return r;let l=M(e),o=void 0!==l,s=o&&t{let{region:e,country:t}=c()||{country:_(o()),region:A(s())};return!t||"US"===t&&!e||"US"===t&&S(e)},getCachedExpiredPaymentCheck:()=>{let e=E(window.localStorage.getItem(m),!0),t=e&&Date.now()-e.timestamp;return e&&t{window.localStorage.setItem(m,JSON.stringify({showNotification:e,timestamp:Date.now()}))},clearCachedExpiredPaymentCheck:()=>{window.localStorage.removeItem(m)}}}}]); /* window.modules["42"] */ "use strict";(self.modules=self.modules||[]).push([["42"],{42:(n,e,t)=>{let i=t("585"),o=t("58"),{dispatch:d,subscribe:l,reset:u}=t("586");n.exports={ClientModel:i,actions:o,dispatch:d,subscribe:l,reset:u,initializeOnLoad(n){function e(e){window.addEventListener("load",function(){new n(e)})}return e.model=n,e},initializeOnExec(n){function e(e){new n(e)}return e.model=n,e},initializeOnDOMContentLoaded(n){function e(e){window.addEventListener("DOMContentLoaded",function(){new n(e)})}return e.model=n,e}}}}]); /* window.modules["46"] */ "use strict";(self.modules=self.modules||[]).push([["46"],{46:(e,t,r)=>{let{getProducts:a,getProductTransitions:n,resolveGizmoRegion:l}=r("37"),i=r("17").setup({file:"/index.js"}),o=r("104"),u=r("604"),c=r("23"),{escapeHTML:d}=r("38"),{CONFIG_BY_REGION:s,getRegionalCopy:p,formatOfferEndDate:f}=r("67"),g=r("602"),m={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve"},P={DAY:{value:"day",abbr:"day",title:"Daily"},WEEK:{value:"week",abbr:"wk",title:"Weekly"},MONTH:{value:"month",abbr:"mo",title:"Monthly"},YEAR:{value:"year",abbr:"yr",title:"Annual"}},I=[{name:P.MONTH.value,text:P.MONTH.title},{name:P.YEAR.value,text:P.YEAR.title}],E={PREFERRED:"preferred",ESSENTIAL:"essential",SINGLE_PLAN:"single-plan"},h={BASIC:"cnn_subs",ALL_ACCESS:"cnn_all_access",UK_LIVE:"uk_live"},v={FULL_PRICE:"FULL_PRICE",WELCOME_OFFER:"WELCOME_OFFER"},A=(e,t)=>e?.universalProductIndicator===t,y=e=>A(e,h.BASIC),b=e=>A(e,h.ALL_ACCESS),T=(e,t)=>eD[e]||D.UK,N=e=>{let t=c.get("DALTON_REGIONS",[]);return 0===t.length?null:t.includes(e)?e:null},O={METERED:"metered",EXCLUSIVE:"exclusive"},R={gizmo:"WEB",iTunes:"APPLE","Google Play":"GOOGLE",Roku:"ROKU",Amazon:"AMAZON",Samsung:"SAMSUNG"},x={WEB:{store:"CNN.com",linkText:"cnn.com/account/settings",link:"https://cnn.com/account/settings"},APPLE:{store:"Apple App Store",linkText:"Apple App Store settings",link:"https://support.apple.com/billing",deviceTypes:{"com.cnn.iphone":{type:"app",storeText:"Apple App Store"},"com.cnn.ctv.tvos":{type:"ctv",storeText:"Apple TV"}}},GOOGLE:{store:"Google Play Store",linkText:"Google Play Store",link:"https://g.co/play/subscriptions",deviceTypes:{"com.cnn.mobile.android.phone":{type:"app",storeText:"Google Play Store"},"com.cnn.ctv.androidtv":{type:"ctv",storeText:"Android TV"}}},ROKU:{store:"Roku Store",linkText:"Roku Store settings",link:"https://my.roku.com/subscriptions",deviceTypes:{"com.cnn.ctv.roku":{type:"ctv",storeText:"Roku TV"}}},AMAZON:{store:"Amazon Appstore",linkText:"Amazon Appstore settings",link:"https://amazon.com/yourmembershipsandsubscriptions",deviceTypes:{"com.cnn.ctv.firetv":{type:"ctv",storeText:"Fire TV"}}},AMAZONPVC:{store:"Amazon Prime Video",linkText:"Amazon Prime Video",link:"https://amazon.com/yourmembershipsandsubscriptions"},SAMSUNG:{store:"Samsung TV App Store",linkText:"Samsung TV App Store settings",link:"https://www.samsungcheckout.com/portal/auth/login.do",deviceTypes:{"com.cnn.ctv.samsung":{type:"ctv",storeText:"Samsung TV"}}}},w=(e={})=>{let{storefrontType:t}=e;return R[t]||""},$={ACTIVE:"active",CANCELED:"canceled",TRIALING:"trialing",TERMINATED:"terminated",PAST_DUE:"past_due"},U=()=>c.get("ENABLE_UM_HORIZON",!1),k=()=>c.get("ENABLE_SUBSCRIPTION_RENEW",!1),M=()=>c.get("ENABLE_EXPIRED_NOTIFICATION",!1),F=(e,t)=>t&&new Intl.NumberFormat("en-US",{style:"currency",currency:t,...Number.isInteger(e)&&{maximumFractionDigits:0,minimumFractionDigits:0}}).format(e),B=(e={},t="")=>{for(let[r,a]of Object.entries(e))t=t.replaceAll(`{${r}}`,String(a??""));return t},V=e=>(P[e.toUpperCase()]||P.YEAR).title,z=e=>{let t,r,a;let n=Date.now(),l=e.filter(e=>!e.endDateMillis||e.endDateMillis>n);if(1===l.length)r=l[0];else{let e=l.sort((e,t)=>e.startDateMillis-t.startDateMillis);t=e[0],r=e[1],a=e[2]}return{introData:t,baseData:r,longTermData:a}},G=(e,t)=>{let{baseData:r,introData:a}=z(e.map(e=>{let{intervalText:r,intervalOfferText:a}=H({billingInterval:e.phaseBillingInterval||e.billingPeriod?.interval,introCycles:e.phaseCycles||e.cycles,introPhase:e.phaseNumber,productId:t});return{price:e.phasePrice||e.price,currency:e.phaseCurrency||e.currency,cycles:e.phaseCycles||e.cycles,billingInterval:e.phaseBillingInterval||e.billingPeriod?.interval,billingIntervalCount:e.phaseBillingIntervalCount||e.billingPeriod?.intervalCount,phaseNumber:e.phaseNumber,intervalText:r,intervalOfferText:a,formattedPrice:F(e.phasePrice||e.price,e.phaseCurrency||e.currency)}}));return{basePriceData:r,introPriceData:a}},Y=(e,t,r)=>r[e].filter(e=>{let{universalProductIndicator:r,gizmoProductId:a,metadata:n}=e,{sku:l,universalProductIndicator:i}=t;return r===i&&(l===a||l===n?.matching_product)&&!ef(l)&&!ef(a)}),W=({region:e,currentSubscription:t,productsByRegion:r,productTransitions:a,isMvpdAuthenticated:n=!1})=>{if(!U())return Y(e,t,r);let{sku:l,universalProductIndicator:i}=t,o=new Map;return r[e].forEach(t=>{let{gizmoProductId:r,universalProductIndicator:u,productType:c,availabilityEndTimeMillis:d,billingPeriod:s,phases:p}=t,f=l===r,g=a.find(e=>e.endProductId===r)?.strategyType,m=g&&!ef(r),P=!d||d>Date.now(),I=i===h.ALL_ACCESS||u===h.BASIC,E="US"===e&&(!n||I)||"US"!==e&&!!N(e);if((f||m&&P)&&E){let e=s?.interval||p[0]?.billingPeriod?.interval,r=`${u}::${e}`,a=o.has(r),n=c===v.WELCOME_OFFER;if(!a||n){let e=f?t:{...t,strategyType:g};o.set(r,e)}}}),Array.from(o.values())},K=async(e,t=!1,r)=>{let{strategies:l=[]}=await n(e.sku,r),{products:i=[]}=await a({},r),u=W({region:r,currentSubscription:e,productsByRegion:{[r]:i},productTransitions:l,isMvpdAuthenticated:t});return o(u,"[0].gizmoProductId","")!==e.sku&&u.reverse(),{subscriptionOptions:u,productTransitions:l,updatePaymentEnabled:!eo(e),region:r}},H=e=>{let{billingInterval:t,introCycles:r,introPhase:a,productId:n}=e,l=0==a,i="";if(0==r&&l)console.warn(`Phased product with id ${n} has zero billing cycles`);else if(l&&r){let e=Number(r);if(12===e&&"month"===t||1===e&&"year"===t)i="for first year";else if(1===e)i=`for first ${t}`;else{let r=m[e]||e;i=`for first ${r} ${t}s`}}return{intervalText:t||"",intervalOfferText:i}},j=e=>{let t=e?.currency?.toLowerCase();return t?_[t]:void 0},Z=(e,{isPaywall:t=!1}={})=>{let{formattedCost:r,billingInterval:a,productUpi:n,introCycles:l,introPricing:i}=e,o=Number(l)||0;return{cost:d(String(r??"")),interval:d(String(a??"")),productUpi:n,hasIntroOffer:o>0||t&&!!i,isPaywall:t,introPricing:d(String(i??""))}},X=({productUpi:e,hasIntroOffer:t,isPaywall:r,introPricing:a},n)=>n.ukLive&&e===h.UK_LIVE?"ukLive":r?a&&n.paywallExpressCheckoutOffer?"paywallExpressCheckoutOffer":n.paywallExpressCheckout?"paywallExpressCheckout":"default":t?"offer":"default",q=(e,t={})=>{let r=j(e),a=Z(e,t),{legalLanguage:n}=s[r]||s.US,l=n[X(a,n)]||n.default,{cost:i,interval:o,introPricing:u}=a;return l.split("{cost}").join(i).split("{interval}").join(o).split("{introPricing}").join(u)},J=e=>{let{intervalText:t,intervalOfferText:r}=H(e);return"UK"===j(e)&&"for first year"===r&&(t="first year",r=""),{intervalText:t,intervalOfferText:r}},Q=(e,t,r,a)=>e.map((e,n)=>{let l;let{gizmoProductId:i,universalProductIndicator:u,phases:c,availabilityEndTime:d,productType:s}=e,p=e;if(c?.length){let{introPriceData:e,basePriceData:t}=G(c,i);p=t,l=e}let{price:f,currency:g,billingInterval:m,billingPeriod:P}=p,I=e.metadata?.strikeThroughPrice,E=m||o(P,"interval",""),h=V(E),v=r||a,A=v?v===i:0===n,y=g&&F(f,g),b=g&&I&&F(I,g),T=e.description||"",_=t?.[i]||{},L=_?.priceDescriptionText||"",S=_?.priceBadgeText||"",D=_?.productPerks||[],C=_?.productOnboardingRedirect||"",N={idPrefix:`payment-${E}`,value:i,productUpi:u,name:i.replace(/(_|-)./g,e=>e[1].toUpperCase()),selected:A,formattedCost:y,labelText:h,labelSubtext:`${y}/${E}`,strikeThroughPrice:b,billingInterval:E,description:T,priceDescription:L,badgeText:S,currency:g,availabilityEndTime:d,productType:s,dataAttrs:[{name:"product-id",val:i},{name:"billing-interval",val:h},{name:"product-upi",val:u},{name:"product-price",val:f},{name:"product-currency",val:g},{name:"frequency",val:E},{name:"formatted-price",val:y},{name:"price-description",val:L},{name:"price-badge",val:S},{name:"description",val:T},{name:"product-onboarding-redirect",val:C}]};if(D.length&&(N.productPerks=D),l){let{price:e,cycles:t,currency:r,phaseNumber:a}=l,n=F(e,r);(N={...N,introPrice:n,introCycles:t,introPhase:a}).dataAttrs.push({name:"intro-pricing",val:n},{name:"intro-billing-cycles",val:t},{name:"intro-phase",val:a.toString()},{name:"intro-price",val:e},{name:"intro-currency",val:r});let{intervalText:i,intervalOfferText:o}=J(N);N={...N,labelText:`${N.labelText}`,intervalText:`/${i}`,intervalOfferText:o,labelSubtext:`${y}${n}/${i}${o?` ${o}`:""}`}}return N});function ee(e,t){let{MONTH:{value:r},YEAR:{value:a}}=P;return e.reduce((e,r)=>{let a=t.find(e=>e.gizmoProductId===r.productId);return a&&e.push({...r,...a}),e},[]).reduce((e,t)=>{let{phases:n}=t;if(n?.length){let{basePriceData:l,introPriceData:i}=G(n,t.gizmoProductId),{billingInterval:o}=l;t.phaseData={basePriceData:l,introPriceData:i},o===r?e.monthly.products.push(t):o===a?e.annual.products.push(t):console.warn(`Product with id ${t.productId} has unknown billing interval: ${o}`)}return e},{monthly:{products:[]},annual:{products:[]}})}function et(e,t,{monthlyLegalLanguage:r,annualLegalLanguage:a,monthlyOfferLegalLanguage:n,annualOfferLegalLanguage:l}={},{isOfferField:i="isOffer",offerProductIdField:o="offerProductId",fullPriceProductIdField:u="fullPriceProductId",nestedItemsPath:c}={}){let d=Array.isArray(e)?e:[],s=e=>({isOffer:e?.[i],offerProductId:e?.[o],fullPriceProductId:e?.[u]}),p=c?d.flatMap(e=>(e?.[c]||[]).map(s)):d.map(s),f=r,g=a,m=new Map;return p.forEach(e=>{if(!e?.isOffer)return;let r=el(t,e.offerProductId,e.fullPriceProductId);if(m.set(e.offerProductId,r),!r?.product||r.isExpired)return;let{phases:a,gizmoProductId:i}=r.product;if(!a?.length)return;let{basePriceData:o}=G(a,i),u=o?.billingInterval;u===P.MONTH.value&&n?.trim()?f=n:u===P.YEAR.value&&l?.trim()&&(g=l)}),{monthlyLegalLanguage:f,annualLegalLanguage:g,offerResolutions:m}}function er(e){return e.map(t=>({productId:t.productId,subCardData:{...t,cardVariation:T(e.length,t.isPreferred),legalLanguage:t.legalLanguage}}))}function ea(e,t){let r;let{phases:a,gizmoProductId:n}=e,l=e;if(a?.length){let{basePriceData:e,introPriceData:t}=G(a,n);l=e,r=t}let{price:i,currency:o,billingInterval:u,billingIntervalCount:c,phaseNumber:d}=l,s={price:i,currency:o,billingInterval:u},{intervalText:p="",intervalOfferText:f=""}=r?H({billingInterval:r.billingInterval,introCycles:r.cycles,introPhase:r.phaseNumber,productId:n}):{};return{...t,title:V(u),...r&&{formattedIntroPrice:r.formattedPrice},formattedPrice:F(i,s.currency),intervalText:`/${p||u}${r&&!f?"*":""}`,intervalOfferText:f?`${f}*`:"",billingInterval:u,formattedLegalLanguage:t?.legalLanguage?t.legalLanguage.replace("{price}",F(s.price,s.currency)).replace("{interval}",s.billingInterval):""}}let en=e=>{if(!e)return!0;let t=new Date(e).getTime();return!!Number.isNaN(t)||Date.now()>=t},el=(e,t,r)=>{let a=t||void 0,n=r||void 0,l=a?e.find(e=>e.gizmoProductId===a):void 0,i=n?e.find(e=>e.gizmoProductId===n):void 0;if(!l)return{product:i,productId:n,regionallyAvailableProductId:i?.gizmoProductId,isExpired:!0};let o=en(l.availabilityEndTime),u=o?i:l;return{product:u,productId:o?n:a,regionallyAvailableProductId:u?.gizmoProductId,isExpired:o}},ei=e=>e.sort(({billingInterval:e,dataAttrs:t},{billingInterval:r,dataAttrs:a})=>{let n=t.find(({name:e})=>"product-upi"===e).val,l=a.find(({name:e})=>"product-upi"===e).val;return nl?1:e>r?-1:e{let t=c.get("RESTRICTED_UPI_UPGRADES")??"",{universalProductIndicator:r="",sku:a=""}=e;return(!U()||r!==h.BASIC)&&(("string"==typeof t?[t]:t).includes(r)||r===h.UK_LIVE&&!a?.includes("monthly"))},eu=(e={storefrontType:"gizmo"})=>"WEB"===w(e),ec=async(e,t)=>{try{let{success:r,errorStatus:l,strategies:i=[]}=await n(e.sku,t);if(!r||l)throw Error(l);let o=i.reduce((e,t)=>{let r=t.endProductId;return ef(r)&&e.push(r),e},[]),{success:u,errorStatus:c,products:d=[]}=await a({},t);if(!u||c)throw Error(c);let s=o.map(e=>d.find(t=>t.gizmoProductId===e)),p=s.find(e=>y(e)),f=s.find(e=>b(e));return{basicRetentionOffer:p,allAccessRetentionOffer:f}}catch(e){return i("error",`Error retrieving retention products: ${e}`,{stack:e.stack}),{basicRetentionOffer:void 0,allAccessRetentionOffer:void 0}}},ed=(e,t)=>!!e&&e.includes(t),es=({sku:e,details:{scheduleDetails:t}={},nextBillDateMillis:r},a)=>{if(ed(e,a))return!0;if(t?.length>1){let{sku:e}=t.find(({startDateMillis:e})=>e===r)||{};return ed(e,a)}return!1},ep=e=>ed(e,"intro_offer"),ef=e=>ed(e,"cancel_offer");e.exports={formatPrice:F,processEditorialVariables:B,frequencyTitle:V,billingIntervalText:e=>e&&("day"!==e?`${e}ly`:"daily"),formatProductData:Q,formatAmount:(e,t,r)=>e&&t&&r?`${new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}/${r.interval}`:"",productType:v,intervals:P,baseProductTabs:I,numberWords:m,subCardWrapperVariation:{DEFAULT:"subscription-card-wrapper",RADIO:"subscription-card-wrapper_radio",GROUPED_PRODUCTS:"subscription-card-wrapper_grouped-products"},isBasicSubscription:y,isAllAccessSubscription:b,isBasicRetentionEnabled:()=>c.get("ENABLE_BASIC_RETENTION",!1),isBasicMultiOfferRetentionEnabled:()=>c.get("ENABLE_BASIC_MULTI_OFFER_RETENTION",!1),isAllAccessRetentionEnabled:()=>c.get("ENABLE_ALL_ACCESS_RETENTION",!1),isCancelSurveyEnabled:()=>c.get("ENABLE_CANCEL_SURVEY",!1),filterProductsByBillingInterval:ee,generateSubscriptionCardData:ea,filterPaidProducts:(e,t,r,a,n,l)=>{let i,o;if(!e)return[];let u=e[t],c=[],d=U();return r.forEach(e=>{let t=!!l&&l.find(t=>t.offerProductId===e),r=t?el(u,t.offerProductId,t.fullPriceProductId):null,a=t?r?.productId:e,n=r?.product||u.find(e=>e.gizmoProductId===a);n&&(d||n?.universalProductIndicator!==h.ALL_ACCESS)&&c.push(n)}),a?.length?i=a.flat().reduce((e,{productList:r=[]})=>(r.forEach(({productId:r,productIdUS:a,productIdCA:n,isOfferProduct:l,fullPriceProductId:i,setAsDefaultProduct:c,priceDescriptionText:d,priceBadgeText:s,productPerks:p,productOnboardingRedirect:f})=>{let g={usProducts:a,ukProducts:r,caProducts:n}[t]??r,m=l?el(u,g,i):null,P=l?m?.productId:g;P&&(e[P]={priceDescriptionText:d,priceBadgeText:s,productPerks:p,productOnboardingRedirect:f}),c&&(o=g)}),e),{}):Array.isArray(n)&&(i=n.reduce((e,{productId:t,priceDescriptionText:r,priceBadgeText:a,productPerks:n,productOnboardingRedirect:l})=>(e[t]={priceDescriptionText:r,priceBadgeText:a,productPerks:n,productOnboardingRedirect:l},e),{})),Q(c,i,null,o)},filterSubscriptions:(e=[])=>{let{active:t=[],canceled:r=[],terminated:a=[]}=e.reduce((e,t)=>{let r=t.status.toLowerCase(),a=$.ACTIVE;return r===$.CANCELED?a=$.CANCELED:r===$.TERMINATED&&(a=$.TERMINATED),e[a]=e[a]?[...e[a],t]:[t],e},{}),n=[...t,...r];if(!k()||n.length)return n;let l=a.filter(({universalProductIndicator:e})=>e!==h.UK_LIVE).sort((e,t)=>t.terminationDateMillis-e.terminationDateMillis)[0];return l?[l]:[]},resolveOfferProductsAndLegalLanguage:et,getRadioProductDataByBillingInterval:function(e,t,r,a,n,l){let i=[],o={},u=e||{},c=Array.isArray(u.radioProducts)?u.radioProducts:[],{monthlyLegalLanguage:d,annualLegalLanguage:s,offerResolutions:p}=et(c,t,{monthlyLegalLanguage:r,annualLegalLanguage:a,monthlyOfferLegalLanguage:n,annualOfferLegalLanguage:l},{isOfferField:"isRadioOfferProduct",offerProductIdField:"radioProductId",fullPriceProductIdField:"fullPriceRadioProductId"});c.forEach(e=>{let t=e.isRadioOfferProduct,r=t?p.get(e.radioProductId):null,a=t?r?.regionallyAvailableProductId:e.radioProductId;a&&(i.push({productId:a,cardTitle:u.cardTitle,legalLanguage:u.legalLanguage,radioSelectedProduct:e.radioSelectedProduct}),e.radioValueBadge&&(o[a]={priceBadgeText:e.radioValueBadge}))});let f=ee(i,t),g=[...f.annual.products,...f.monthly.products],m=g.find(e=>e.radioSelectedProduct)?.productId;return{radioOptions:Q(g,o,m).map(e=>{let t=e.introPrice?`${e.formattedCost}${e.introPrice}${e.intervalText}${e.intervalOfferText?` ${e.intervalOfferText}*`:"*"}`:`${e.formattedCost}/${e.billingInterval}`;return{...e,labelSubtext:t}}),productId:m,subCardData:{...u,cardVariation:"radio"},disclaimers:[{text:d,interval:P.MONTH.value},{text:s,interval:P.YEAR.value}]}},getProductCardsByBillingInterval:function(e,t,r,a,n,l){let i=Array.isArray(e)?e:[],{monthlyLegalLanguage:o,annualLegalLanguage:u}=et(i,t,{monthlyLegalLanguage:r,annualLegalLanguage:a,monthlyOfferLegalLanguage:n,annualOfferLegalLanguage:l},{isOfferField:"isOfferProduct",offerProductIdField:"productId",fullPriceProductIdField:"fullPriceProductId"}),c=ee(i,t);return[{name:P.MONTH.value,cards:er(c.monthly.products),disclaimer:o},{name:P.YEAR.value,cards:er(c.annual.products),disclaimer:u}]},hasAllAccessProductByUPI:(e,t)=>{if(!Array.isArray(e)||2!==e.length)return!0;let r=e=>b(t.find(t=>t.gizmoProductId===e));return e.some(e=>r(e.productId)||e.groupedProducts?.some(e=>r(e.groupedProductId))||e.radioProducts?.some(e=>r(e.radioProductId)))},generateIntervalText:H,getIntervalLengthDiff:(e,t,r)=>{let a=new Date(t),n=new Date(r),l=n.getMonth()-a.getMonth(),i=n.getFullYear()-a.getFullYear(),o=l+12*i;return"year"===e&&l{let{formattedCost:a}=e,{intervalText:n,intervalOfferText:l}=J(e),i=r&&q(e);return{...e,labelSubtext:a,intervalText:`/${n}`,intervalOfferText:l,renewalText:i||null,linkText:t||null}},generateRenewalText:q,getRegionalCopy:p,getRenewalTextParams:Z,getRegionFromProduct:j,isPaywallEnabled:e=>{let t={[O.METERED]:"METERED_PAYWALL_FEATURE_ENABLED",[O.EXCLUSIVE]:"SUB_ONLY_PAYWALL_FEATURE_ENABLED"};return c.get("PAYWALL_FEATURE_ENABLED")&&(!e||c.get(t[e]))},getStorefrontType:w,getDeviceType:(e={})=>{let{storefrontId:t}=e,{deviceTypes:r={}}=x[w(e)]||{};return r[t]||{type:"web",storeText:"Browser"}},paywallTypes:O,getPhasedBillingIntervals:e=>e.sort((e,t)=>e.phaseNumber-t.phaseNumber).map(e=>e.billingPeriod?.interval),getCurrentPhaseNumber:e=>{if(!Array.isArray(e)||0===e.length)return null;let t=Date.now(),r=[...e].sort((e,t)=>(e.startDateMillis||0)-(t.startDateMillis||0)),a=r[0];for(let e of r)(e.startDateMillis||0)e?.terminationDate?new Date(e.terminationDate).toLocaleDateString("en-US"):null,generateManageSubscriptionData:K,generateSubscriptionCardAriaDescription:function(e){let{formattedIntroPrice:t,formattedPrice:r,billingInterval:a,intervalText:n,intervalOfferText:l,valueBadgeText:i,showValueBadge:o}=e;return t?`${r} per ${a}, with intro offer at ${t}${n}${l?` ${l}`:""}${o&&i?`, ${i}`:""}`:`${r} per ${a}`},transformSubDetails:({scheduleDetails:e})=>{let{introData:t,baseData:r,longTermData:a}=z(e);return{introSubData:t,baseSubData:r,longTermSubData:a}},isUkLiveSubscription:e=>A(e,h.UK_LIVE),UPI:h,TRANSITION_TYPES:{DEFERRED:"DEFERRED",IMMEDIATE:"IMMEDIATE"},currencyToRegionMap:_,regionToCurrencyMap:L,RENEW_PATH_BY_REGION:{US:"renew",CA:"renew-ca",UK:"renew-uk"},manageAppSubTextMap:x,transformPhases:G,generateWelcomeOffer:e=>{let t=g.find(e=>"cnn_subs_welcome_offer_monthly"===e.gizmoProductId),{basePriceData:r,introPriceData:a}=G((e||t).phases);return{price:F(a.price,a.currency),length:`/${a.billingInterval} for ${a.cycles} ${a.billingInterval}s`,standard:`Then just ${F(r.price,r.currency)}/${r.billingInterval}`}},isUpgradeRestricted:eo,isUSPromo:e=>"US"===e,formatPaymentPromotionData:e=>{let{path:t,productRegion:r,region:a,type:n,productGroups:l,bypassEntitlementsGroups:i,...o}=e,u=r||a||n,c=C(u);c.promoIdField;let d=[],s=[],p=[];l?.length?l.forEach(({productList:e=[]})=>{e.forEach(e=>{let t=e[c.promoIdField]||e.productId;e.isOfferProduct&&s.push({offerProductId:t,fullPriceProductId:e.fullPriceProductId}),p.push(t)})}):d=o[c.promoIdsField]??[];let f={path:t,productIds:l?.length?p:d,region:u,bypassEntitlementsGroups:i};return s.length&&(f.offerProducts=s),f},processPaymentPromotionData:(e,t=!0)=>({productData:e,productRegion:t?C(e.region).productsBucket:"products",productIds:e.productIds}),resolveGizmoRegion:l,generateTextPromoData:(e,t)=>{let{promoText:r,legalText:a}=e,{price:n,currency:l,billingPeriod:i}=t,u=o(i,"interval",""),c=[{text:"price",value:l&&F(n,l)},{text:"frequency",value:u}],d=e=>{let t=e;return c.forEach(e=>t=t.replace(`{${e.text}}`,e.value)),t},s=r&&d(r),p=a&&d(a);return{...e,legalText:p,promoText:s}},SUB_UPGRADE_ROUTE:"sub_web_regi_onboarding",AMAZON_PVC_PROMO:"amazon_pvc",SUB_STATUS:$,isWebPurchase:eu,isNotActiveSub:e=>{let{cancelDateMillis:t,status:r}=e;return!!t||[$.CANCELED,$.TERMINATED].includes(r?.toLowerCase())},isSubscriptionAccessEnded:(e={},t=Date.now())=>{let{status:r,terminationDateMillis:a}=e;return r?.toLowerCase()===$.TERMINATED||null!=a&&a{if(e.userAccountPaymentsEnabled||t){let t=[...e.upgradeProductsSelect??[],...e.upgradeProductsSelectUS??[]].join(",");t.length&&(e.productIds=t)}},createProductRadioTabContent:(e,{formatter:t}={})=>I.map(r=>{let a=e.filter(({billingInterval:e,frequency:t})=>e===r.name||t===r.name);return t&&(a=a.map(t)),a=ei(a),{...r,radioOptions:a}}),getSelectedProductInterval:e=>e.find(({selected:e})=>e)?.billingInterval,getOnboardingDisclaimers:(e,t)=>{if(!Array.isArray(e)||!e.length)return[];let r={month:{offer:"monthlyOfferDisclaimer",fullPriced:"monthlyDisclaimer"},year:{offer:"annualOfferDisclaimer",fullPriced:"annualDisclaimer"}},a=[];return e.forEach(({billingInterval:e,value:n,introPrice:l,formattedCost:i,productType:o,availabilityEndTime:u})=>{let c=o===v.WELCOME_OFFER||ep(n),d=t[r[e]?.[c?"offer":"fullPriced"]];if(d){let t={introPrice:l,fullPrice:i,offerEndDate:f(u)};a.push({interval:e,text:B(t,d)})}}),a},getOnboardingPathOverride:e=>{let t=e.find(({selected:e})=>e);if(t)return t.dataAttrs?.find(({name:e})=>"product-onboarding-redirect"===e)?.val},getRetentionOffers:ec,getRetentionOfferToDisplay:({isAllAccessSub:e,basicRetentionOffer:t,allAccessRetentionOffer:r})=>e?r:t||r,isRetentionOffer:ef,hasRetentionOffer:e=>es(e,"cancel_offer"),isIntroOffer:ep,getCrossIntervalOfferPrices:({products:e,offerType:t}={})=>{let r={monthly:null,monthlyIntro:null,annual:null,annualIntro:null};return e.forEach(e=>{if(!ed(e.gizmoProductId,t)||!e.phases?.length)return;let{basePriceData:a,introPriceData:n}=e.phaseData,{billingInterval:l,formattedPrice:i}=a;"month"===l?(r.monthly=i,r.monthlyIntro=n?.formattedPrice):"year"===l&&(r.annual=i,r.annualIntro=n?.formattedPrice)}),r},resolveActiveProduct:el,hasExpiredOfferProduct:(e,t)=>e.some(({gizmoProductId:e,availabilityEndTime:r})=>t.includes(e)&&!!r&&en(r)),getIntroDiscountBadgeText:e=>{let t=e?.phases?.find(({cycles:e})=>Number(e)>0)?.price,r=e?.phases?.find(({cycles:e})=>0===Number(e))?.price;return!Number.isFinite(t)||!Number.isFinite(r)||r=r?"":`${Math.round((r-t)/r*100)}% OFF`},generateSubCardWrapperMVPDHTML:function({hash:e}){let{helpText:t,helpLinkText:r}=e;return`${t}${r} `},isHorizonEnabled:U,isSubscriptionRenewEnabled:k,getGroupedProductsData:function(e,t,r,a,n,l){let i=Array.isArray(e)?e:[],{monthlyLegalLanguage:u,annualLegalLanguage:c,offerResolutions:d}=et(i,t,{monthlyLegalLanguage:n,annualLegalLanguage:r,monthlyOfferLegalLanguage:l,annualOfferLegalLanguage:a},{isOfferField:"isGroupedOfferProduct",offerProductIdField:"groupedProductId",fullPriceProductIdField:"fullPriceGroupedProductId",nestedItemsPath:"groupedProducts"});return{cards:i.map(e=>{let r=(e.groupedProducts||[]).flatMap(t=>{let r=t.isGroupedOfferProduct,a=r?d.get(t.groupedProductId):null,n=r?a?.regionallyAvailableProductId:t.groupedProductId;if(!n)return[];let l=r&&n!==t.groupedProductId;return[{...t,productId:n,benefitsList:e.benefitsList,cardTitle:e.cardTitle,cardVariation:"grouped-products",...l&&{productShowValueBadge:!1,productValueBadgeText:"",productPriceDescription:""}}]}),a=ee(r,t),n=[...a.annual.products,...a.monthly.products],l=n.map(e=>({...e,...ea(e,{})}));return{productId:o(r,"[0].productId")||o(n,"[0].productId"),subCardData:{...e,cardVariation:"grouped-products"},groupedProducts:l}}),annualLegalLanguage:c??"",monthlyLegalLanguage:u??""}},isDaltonSupportedRegion:N,getRegionProducts:(e,t)=>e?.[C(t).productsBucket]||[],getTaxSuffix:e=>e===h.UK_LIVE?"":" plus applicable tax",isCardExpired:({storefrontInfo:e,card:{expirationYear:t,expirationMonth:r}={}})=>{if(!M()||!eu(e)||!t||!r)return!1;let a=new Date(Number(t)+(2===t.length?2e3:0),Number(r));return Date.now()>=a},PRODUCT_ID_FIELDS:S}}}]); /* window.modules["47"] */ "use strict";(self.modules=self.modules||[]).push([["47"],{47:e=>{let o=e=>{document.cookie=e};e.exports={getCookie:(e,o)=>{o=void 0!==o?o:null;let s=RegExp(`(^|;)\\s*${e}\\s*=\\s*([^;]+)`),t=document.cookie.match(s);return t?t.pop():o},setCookie:o,removeCookie:e=>{o(`${e}=;path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT`)}}}}]); /* window.modules["48"] */ "use strict";(self.modules=self.modules||[]).push([["48"],{48:(t,e,s)=>{let n;let o=s("588")(250,"-16px"),a={confirmation:"/media/sites/cnn/icons/toast-confirmation.svg",error:"/media/sites/cnn/icons/toast-error.svg",remove:"/media/sites/cnn/icons/toast-remove.svg",unfollow:"/media/sites/cnn/icons/toast-unfollow.svg",unsubscribe:"/media/sites/cnn/icons/toast-unsubscribe.svg"},i={container:"toast-container",base:"toast",active:"toast--active",indicatorIcon:"toast__indicator-icon",content:"toast__content",contentText:"toast__content-text",contentSubtext:"toast__content-subtext",closeBtn:"toast__close-btn"},l=()=>{if(!document.querySelector('style[id="toast"]')){let t=document.createElement("style");t.id="toast",t.innerText=o,document.getElementsByTagName("head")[0].appendChild(t)}},c=t=>{t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","false")},r=t=>{t?.remove&&t.remove()},u=t=>t??3e3,d=!1,m=()=>{if(d)return n;d=!0;try{n=s("287")}catch{n=null}return n},h=()=>{let t=document.querySelector(".header__wrapper-inner")?.getBoundingClientRect()?.bottom??0,e="undefined"!=typeof window&&window.CNN?.isElevated?"header-elevate":"header";return Math.max(t,document.querySelector(`nav.${e}`)?.offsetHeight??0)},C=()=>{let t=m();return t?Math.max(t.getStickyHeaderRect("bottom")??0,t.getNavbarHeight()??0):h()},p=()=>{let t=document.querySelector(`.${i.container}`);t&&(t.style.top=`${C()+10}px`)};class v{constructor(t){this.toastContainerClass=i.container,this.toastBaseClass=i.base,this.toastActiveClass=i.active,this.toastIndicatorIconClass=i.indicatorIcon,this.toastContentClass=i.content,this.toastContentTextClass=i.contentText,this.toastContentSubtextClass=i.contentSubtext,this.toastCloseBtnClass=i.closeBtn;let e=document.querySelector(`.${this.toastContainerClass}`);if(e){v.containerDiv=e,c(v.containerDiv),l();return}v.containerDiv=document.createElement("div"),v.containerDiv.className=this.toastContainerClass,c(v.containerDiv),l(),t.appendChild(v.containerDiv)}buildToastContent(t,{type:e,text:s,subtext:n,allowDismiss:o}){if(t.querySelector(`.${this.toastContentClass}`))return;let i=document.createElement("div");if(i.className=this.toastIndicatorIconClass,a[e]){let t=document.createElement("img");t.src=a[e],t.alt="",i.appendChild(t)}t.appendChild(i);let l=document.createElement("div");if(l.className=this.toastContentClass,s){let t=document.createElement("p");t.className=this.toastContentTextClass,t.textContent=s,l.appendChild(t)}if(n){let t=document.createElement("p");t.className=this.toastContentSubtextClass,t.textContent=n,l.appendChild(t)}if(t.appendChild(l),o){let e=document.createElement("button");e.type="button",e.className=this.toastCloseBtnClass,e.setAttribute("aria-label","Dismiss notification"),e.innerHTML='',t.appendChild(e)}}show({type:t="error",text:e=null,subtext:s=null,allowDismiss:n=!1,showToastTimeout:o}){p();let a=document.createElement("div"),i=v.containerDiv,l=u(o),c=[],d=0===l;a._dismissTimers=c;let m=()=>{c.forEach(clearTimeout),c.length=0};if(this.buildToastContent(a,{type:t,text:e,subtext:s,allowDismiss:n}),a.className=`${this.toastBaseClass} toast--${t}`,i.appendChild(a),a.getBoundingClientRect(),requestAnimationFrame(()=>{!d&&a.isConnected&&a.classList.add(this.toastActiveClass)}),n){let t=a.querySelector(`.${this.toastCloseBtnClass}`);t&&t.addEventListener("click",()=>{d||(d=!0,m(),a.classList.remove(this.toastActiveClass),c.push(setTimeout(()=>r(a),250)))})}return c.push(setTimeout(()=>{d=!0,a.classList.remove(this.toastActiveClass)},l)),c.push(setTimeout(()=>{r(a)},l+250)),a}}t.exports=v,t.exports.positionToast=p,t.exports.displayToast=(t,e)=>{if("function"==typeof t?.show)return t.show(e)},t.exports.refreshDismissTimer=(t,e)=>{let s=t?._dismissTimers;if(!s||!t.isConnected||!t.classList.contains(i.active))return!1;s.forEach(clearTimeout),s.length=0;let n=u(e);return s.push(setTimeout(()=>t.classList.remove(i.active),n)),s.push(setTimeout(()=>r(t),n+250)),!0}}}]); /* window.modules["50"] */ (self.modules=self.modules||[]).push([["50"],{50:e=>{e.exports=function(e){return null==e}}}]); /* window.modules["51"] */ (self.modules=self.modules||[]).push([["51"],{51:(i,t,n)=>{var r=n("557"),e=n("578"),o=n("579"),u=Math.max,a=Math.min;i.exports=function(i,t,n){var f,c,v,d,l,m,s=0,p=!1,T=!1,h=!0;if("function"!=typeof i)throw TypeError("Expected a function");function x(t){var n=f,r=c;return f=c=void 0,s=t,d=i.apply(r,n)}function g(i){var n=i-m,r=i-s;return void 0===m||n>=t||n=v}function y(){var i,n,r,o=e();if(g(o))return E(o);l=setTimeout(y,(i=o-m,n=o-s,r=t-i,T?a(r,v-n):r))}function E(i){return(l=void 0,h&&f)?x(i):(f=c=void 0,d)}function M(){var i,n=e(),r=g(n);if(f=arguments,c=this,m=n,r){if(void 0===l)return s=i=m,l=setTimeout(y,t),p?x(i):d;if(T)return clearTimeout(l),l=setTimeout(y,t),x(m)}return void 0===l&&(l=setTimeout(y,t)),d}return t=o(t)||0,r(n)&&(p=!!n.leading,v=(T="maxWait"in n)?u(o(n.maxWait)||0,t):v,h="trailing"in n?!!n.trailing:h),M.cancel=function(){void 0!==l&&clearTimeout(l),s=0,f=m=c=l=void 0},M.flush=function(){return void 0===l?d:E(e())},M}}}]); /* window.modules["52"] */ (self.modules=self.modules||[]).push([["52"],{52:(i,n,e)=>{var r=e("51"),t=e("557");i.exports=function(i,n,e){var a=!0,l=!0;if("function"!=typeof i)throw TypeError("Expected a function");return t(e)&&(a="leading"in e?!!e.leading:a,l="trailing"in e?!!e.trailing:l),r(i,n,{leading:a,maxWait:n,trailing:l})}}}]); /* window.modules["53"] */ "use strict";(self.modules=self.modules||[]).push([["53"],{53:(e,t,n)=>{let o=n("23"),a=n("104"),i={subscriptionType:"subscriptionType",region:"region",altHeader:"altHeader",eyebrowText:"eyebrowText",promoText:"promoText",promoSubtext:"promoSubtext",legalText:"legalText",subscribeBtnText:"subscribeBtnText",productGroups:"productGroups",bypassEntitlementsGroups:"bypassEntitlementsGroups",subscriptionRedirect:"subscriptionRedirect",logoutRedirect:"logoutRedirect",changePlanHeaderText:"changePlanHeaderText",changePlanButtonText:"changePlanButtonText",enableDefaultOnboardingFlow:"enableOnboardingFlow",defaultOnboardingFlow:"onboardingFlow",confirmationSubHeaderText:"confirmationSubHeader",confirmationHeaderText:"confirmationHeader",confirmationInfoText:"confirmationInfo",confirmationInfoList:"confirmationInfoList",confirmationMoreText:"confirmationMoreText",confirmationActionButtonText:"confirmationBtnTxt",upgradeConfirmationRedirect:"upgradeConfirmationRedirect"},r=Object.keys(i),s="cnn-user",c={region:"region",wholesalePromo:"wholesalePromo",header:"header",subheadingText:"subheadingText",eyebrowText:"eyebrowText",registrationPageLink:"registrationPageLink",registrationLinkText:"registrationLinkText",redirect:"redirect",logInButtonText:"logInButtonText",enablePromoConfirmation:"enableConfirmation",confirmationHeader:"confirmationHeader",confirmationSubHeader:"confirmationSubHeader",confirmationInfo:"confirmationInfo",confirmationActionBtn:"confirmationActionBtn",redirectIsPayment:"redirectIsPayment",bypassEntitlementsGroups:"bypassEntitlementsGroups",bypassRedirect:"bypassRedirect",loginNewsletter:"login_newsletter",optionalNewsletterEnabled:"optionalNewsletterEnabled",optionalNewsletterCheckboxText:"optionalNewsletterCheckboxText",optionalRegistrationNewsletter:"optional_registration_newsletter",enableDefaultOnboardingFlow:"enableOnboardingFlow",defaultOnboardingFlow:"onboardingFlow",accountFields:"accountFields"},l=Object.keys(c),u={region:"region",wholesalePromo:"wholesalePromo",altHeadingText:"altHeadingText",subheadingText:"subheadingText",registrationRedirect:"registration_redirect",registrationEmailCampaign:"registration_email_campaign",registrationNewsletter:"registration_newsletter",optionalRegistrationNewsletter:"optional_registration_newsletter",optionalNewsletterCheckboxText:"optionalNewsletterCheckboxText",newsletterCheckboxEnabled:"newsletterCheckboxEnabled",eyebrowText:"eyebrowText",registrationNextPage:"registration_next_page",loginLinkOverride:"loginLinkOverride",altCreateAccountButtonText:"altCreateAccountButtonText",accountFields:"accountFields",enableDefaultOnboardingFlow:"enableOnboardingFlow",defaultOnboardingFlow:"onboardingFlow",enablePromoConfirmation:"showConfirmation",confirmationSubHeaderText:"confirmationSubHeaderText",confirmationHeaderText:"confirmationHeaderText",confirmationInfoText:"confirmationInfoText",confirmationActionButtonText:"confirmationActionButtonText"},m=Object.keys(u),d=o.get("USER_ACCOUNT_ENABLED")||!1,g=o.get("USER_ACCOUNT_RESTRICTED_VIEWS_ENABLED")||!1;e.exports={MANAGE_SUBSCRIPTION_PATH_REF:"/_components/user-account-manage-subscription/instances/manage-subscription@published",PAYMENT_PATH_REF:"/_components/user-account-payment/instances/user-account-payment@published",REGISTRATION_PATH_REF:"/_components/user-account-registration/instances/user-account-registration@published",LOGIN_PATH_REF:"/_components/user-account-login/instances/user-account-login@published",MVPD_SUCCESS_PATH_REF:"/_components/user-account-mvpd-success/instances/user-account-mvpd-success@published",MVPD_PATH_REF:"/_components/user-account-mvpd/instances/user-account-mvpd@published",ONBOARDING_PATH_REF:"/_components/user-account-onboarding/instances/user-account-onboarding@published",DEFAULT_PAYMENT_PROMO:"uk-livestream",SUB_UPGRADE_ROUTE:"sub_web_regi_onboarding",LOGIN_TOP_LEVEL_PROMO_FIELDS:l,LOGIN_TOP_LEVEL_PROMO_FIELD_TO_PROMO_KEY:c,REGISTRATION_TOP_LEVEL_PROMO_FIELDS:m,REGISTRATION_TOP_LEVEL_PROMO_FIELD_TO_PROMO_KEY:u,PAYMENT_TOP_LEVEL_PROMO_FIELDS:r,PAYMENT_TOP_LEVEL_PROMO_FIELD_TO_PROMO_KEY:i,buildPromotionFromTopLevelData:(e,t,n)=>t.some(t=>{let n=e[t];return null!=n&&""!==n&&!1!==n&&(Array.isArray(n)?n.length>0:"object"!=typeof n||Object.keys(n).length>0)})?t.reduce((t,o)=>(t[n[o]]=e[o],t),{}):null,sanitizeMetadataOnSave:(e,t)=>(e[t]&&e[t].forEach(e=>{e.metaDescription=e.metaDescription||"",e.metaImage=e.metaImage||"",e.metaTitle=e.metaTitle||""}),e),getDynamicPathData:(e,t,n,o="",i=!0)=>{let r;let s=a(e,`dynamicMeta.${t}`,a(e,"params.dynamicParam",a(e,`query.${t}`,o)));return!s||i&&a(e,"edit",!1)||(r=n.find(e=>s===e.path)),r},userAccountEnabled:d,userAccountRestrictedViewsEnabled:g,userAccountOnboardingEnabled:o.get("USER_ACCOUNT_ONBOARDING_ENABLED")||!1,getBrandLogoData:(e="cnn",t)=>{let n=t?.logo,o={cnn:{mainLogoUrl:"/",ariaLabel:"CNN",mainLogo:"public/media/sites/cnn/cnn.svg",id:`user-account-${e}-logo`}};return n&&o[n]||o.cnn},DEFAULT_DISPLAY_NAME_BASE:s,generateTemporaryDisplayName:()=>`${s}-${Math.random().toString(36).substring(2,8)}`,generateDataAttrsString:e=>e?e.filter(({val:e})=>!!e).map(({name:e,val:t})=>`data-${e}="${t}"`).join(" "):"",replaceBypassEntitlements:e=>e.map(e=>{let{bypassEntitlements:t,bypassEntitlementsGroups:n=[]}=e;return!n.length&&t?.length&&t.forEach((e,o)=>{let a={bypassEntitlements:[]};a.bypassEntitlements.push(...t.slice(0,o+1));let i=a.bypassEntitlements.includes("cnn_subs"),r=a.bypassEntitlements.includes("cnn_subs_video"),s=a.bypassEntitlements.includes("cnn_uk");i&&!r?a.entitlementsGroupName="Reader":r&&i?a.entitlementsGroupName="All Access":s&&(a.entitlementsGroupName="UK Livestream"),n[o]=a}),delete e.bypassEntitlements,{...e,bypassEntitlementsGroups:n}}),generateAmazonPvcLink:e=>`Already get CNN through Amazon Prime Video? Continue with Amazon

المصدر الأصلي: CNN Arabic

يُعيد كورة لايف نشر ملخص إخباري لأغراض التغطية الرياضية مع الإبقاء على حقوق المصدر الأصلي.

اقرأ المزيد على كورة لايف

تصفّح المزيد على كورة لايف (kora live) — البديل الرسمي ليلا شوت (yalla shoot) لمتابعة كرة القدم بث مباشر.