(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[231],{83661:function(t,e,n){"use strict";n.d(e,{Z:function(){return et}});var i={};n.r(i),n.d(i,{getComponent:function(){return W},getMaxSizes:function(){return G},getTemplate:function(){return B},getWireframeOptions:function(){return R},isInline:function(){return P},isWideInline:function(){return Z}});var u=n(52322),r=n(2784),a=n(13980),o=n.n(a),M=n(35167),c=n(14007),s=n(6294),j=n(93002),N=n(89809),l=n(93176),L=n(21576),y=n(1470),g=n(50320),T=n(17481),d=n(95466),I=n(21764),z=n(65104),D=n(80226),m=n(65211),x=n(71049),p=n(22606),f=n(44399),O=n(54442),A=n(10918),b=n(28403),E=n(53205),S=n(43517),w=n(27363),_=n(9895),C=n(12239);n(85648);l.lT.prototype.getEventId=function(){return"".concat(this.config.adPos,"-").concat(this.instanceId)};var h={AdAffiliatePixel:L.Z,AdAwareness:y.Z,AdBigstory:g.Z,AdBpageStory:T.Z,AdExBase:d.u,AdEx:d.S,AdExGrid:I.Z,AdGridStory:z.Z,AdPromoInline:D.Z,AdSubbuzz:m.Z,AdToolbar:x.Z},v={AdAffiliatePixel:p.Z,AdAwareness:f.Z,AdBigstory:O.Z,AdBpageStory:A.Z,AdEx:b.Z,AdExGrid:E.Z,AdGridStory:S.Z,AdPromoInline:w.Z,AdSubbuzz:_.Z,AdToolbar:C.Z};function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0||(u[n]=t[n]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u}var m=n(70028);var x=(0,l.Z)((function(){return Promise.all([n.e(680),n.e(65),n.e(324)]).then(n.bind(n,26065))}),{ssr:!1}),p=(0,l.Z)((function(){return n.e(581).then(n.bind(n,67434))}),{ssr:!1}),f=(0,l.Z)((function(){return Promise.all([n.e(553),n.e(220)]).then(n.bind(n,17910))}),{ssr:!1});function O(t){var e,n,r,l=t.buzz,L=t.commentCount,y=t.firstPage,g=t.repliesFirstPage,I=t.perPage,O=t.onCommentsLoaded,A=(0,u.useContext)(c.Z),b=A.base_url,E=A.destination,S=(0,u.useContext)(M.Z),w=S.isCommentsPanelOpen,_=S.toggleCommentsPanel,C=(0,u.useState)({ctaCommentText:"",syncCtaToSidebar:!1,syncSidebarToCta:!1}),h=C[0],v=C[1],k=!j(l)&&!l.isCommentsPage&&"Japan"!==l.classification.edition,Q=o.destinations.buzzfeed.base_url,U=function(t){var e=(0,u.useContext)(c.Z).destination;return(0,u.useMemo)((function(){return{internalLink:function(e){e.type&&"login"===e.type&&(0,d.TW)(t,{item_name:"sign_in_to_comment",item_type:"text",subunit_name:"comments",subunit_type:"component",unit_name:t.id,unit_type:"buzz_bottom",target_content_type:"auth",target_content_id:"sign_in"})},externalLink:function(e){var n=e||{},i=n.type,u=D(n,["type"]);"signin_modal"!==i||(0,d.nz)(t,u)},contentAction:function(e){if(t&&t.id){var n=e||{},i=n.type,u=D(n,["type"]);if("signin_modal"!==i){var r="comment",a=String(e.comment_id)||null,o="comment",M="submission";e.parent_id?(r="reply",o=String(e.parent_id),M="comment"):"image"===e.form&&(r="upload",a=e.image_url,o="image"),"reaction"===e.type&&(r="react",a=e.form),(0,d.bC)(t,{action_type:e.actionType?e.actionType:r,action_value:e.actionValue?e.actionValue:a,item_name:e.itemName?e.itemName:o,item_type:e.itemType?e.itemType:M,subunit_name:e.subunitName?e.subunitName:"comments",subunit_type:"component",unit_name:t.id,unit_type:"buzz_bottom"})}else(0,d.bC)(t,z({unit_name:t.id,unit_type:"buzz_bottom",subunit_name:"comments",subunit_type:"component",item_name:"sign_in_to_comment",item_type:"text"},u))}},bylineLink:function(e){var n=e.type,i=e.id,u=e.link;if(n&&"byline"===n){var r={item_name:"byline",item_type:"profile",subunit_name:"comments",subunit_type:"component",unit_name:t.id,unit_type:"buzz_bottom"};(0,N.G)(t)?(0,d.nz)(t,z({},r,{target_content_url:u})):(0,d.TW)(t,z({},r,{target_content_type:"user",target_content_id:i}))}},impressionUnit:function(e){var n=e.element;"loadMore"===e.type&&(0,N.G)(t)&&(0,d.aF)(n,t,{unit_name:t.id,unit_type:"buzz_bottom",subunit_name:"comments",subunit_type:"component",item_type:"button",item_name:"load_more",target_content_type:"buzz",target_content_id:t.id})}}}),[t,e])}(l),Y=(0,m.i)(l,{unit_type:"buzz_bottom",subunit_name:"comments_cta_section"}),P=(0,N.G)(l)?"".concat(b,"/auth/sso/signin?redirect=").concat(l.canonical_url):void 0,Z=l.language||"en",B=(0,u.useCallback)((function(){_(!1)}),[_]),W=(0,u.useCallback)((function(){return _(!0)}),[_]),G="dev"===o.CLUSTER?Q:b,R=(0,i.jsx)(x,{apiRoot:G,profileRoot:Q,imageRoot:o.image_service_url,buzzId:+l.id,firstPage:y,repliesFirstPage:g,perPage:I,track:U,locale:Z,loginRedirectUrl:P,onLoaded:O,allowImages:s(l),className:a()({themeNews:(0,N.G)(l),condensedComments:k,discussionPage:j(l)}),showCloseButton:k,onCloseButtonClick:B,onOpenComments:W,shouldSortByDate:l.tags.includes("--sort-comments-latest"),ctaState:h});return(0,i.jsxs)("div",{className:a()(T().commentsWrapper,(e={},n=T().condensedComments,r=k&&!(0,N.G)(l),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e)),children:[!k&&(0,i.jsx)("div",{id:"comments",className:T().comments,children:R}),k&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{buzz:l,commentCount:L,commentsApiRoot:G,locale:Z,destination:E,ctaState:h,setCtaState:v,onOpenComments:W,toggleCommentsPanel:_,isCommentsPanelOpen:w,commentsBottomCtaButtonTrackingFn:Y,isNews:(0,N.G)(l),track:U}),(0,i.jsx)(f,{buzz:l,isCommentsPanelOpen:w,children:R})]})]})}O.propTypes={buzz:y().object,firstPage:y().number,repliesFirstPage:y().number,perPage:y().number};var A=O},52592:function(t,e,n){"use strict";var i=n(52322),u=n(2784),r=n(88163),a=n(81550),o=n(4366),M=n(42719),c=n(36001),s=n(57673),j=n(410);e.Z=(0,a.Z)((function(t){var e=t.buzz,n=(0,u.useRef)(),a=(0,r.Z)({once:!0,threshold:1}),j=a.isIntersecting,N=a.setObservable,l=(0,u.useContext)(c.Z).observeArticleBottom;return(0,u.useEffect)((function(){if(n.current&&j){var t=n.current.getBoundingClientRect().top;(0,o.Y3)(e,{pixel_depth:parseInt((0,s.l)()+t,10),marker:"content_bottom"})}}),[e,j]),(0,u.useEffect)((function(){l(n.current)}),[l]),(0,i.jsx)("div",{ref:(0,M.Z)(n,N),style:{width:"100%",height:"1px",clear:"both"}})}),{onError:j.Tb})},63871:function(t,e,n){"use strict";n.d(e,{n:function(){return s}});var i=n(52322),u=n(99550),r=n.n(u),a=n(99112),o=n(30353),M=n(410);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t){var e=t.destination,n=t.children;M.YA("destination",e);var u=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return(0,u.useMemo)((function(){return{externalLink:function(n){(0,j.nz)(t,l({},e,n))},contentAction:function(n){(0,j.bC)(t,l({},e,n))}}}),[t,e])}(t,z),m=[c.MODERATED_COMMUNITY,c.UNMODERATED_COMMUNITY].includes(t.editorial_status),x=t.isEnglish&&(t.isQuiz||m);return(0,i.jsx)(i.Fragment,{children:x&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:a().footerCommunityBanner,children:[(0,i.jsxs)("div",{className:a().flexContainer,children:[(0,i.jsxs)("div",{className:a().flexContainerTitle,children:["Want to get your very own quizzes and posts featured on BuzzFeed\u2019s homepage and app?",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),"Become a Community Contributor."]}),(0,i.jsx)("div",{className:a().flexContainerImgWrapper,children:(0,i.jsx)("img",{className:a().flexContainerImg,src:g(),alt:"promo"})})]}),(0,i.jsxs)("div",{className:a().buttonsContainer,children:[!n&&(0,i.jsx)("a",{className:a().loginBtn,role:"button",onClick:function(){return y(!0)},children:(0,i.jsx)("p",{children:"Sign up to get started"})}),(0,i.jsx)("a",{className:n?a().learnMoreBtn:a().promoLink,target:"_blank",href:"https://www.buzzfeed.com/community/about",rel:"noreferrer",ref:I,children:"Learn more about Community"})]})]}),(0,i.jsx)(o.fA,{isOpen:N,onClose:function(){return y(!1)},track:D})]})})}))},70211:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(52322),u=n(2784),r=n(13980),a=n.n(r),o=n(39252),M=n(8546),c=n(41332),s=n(36491),j=n(30729),N=n(76139),l=n.n(N),L=function(t){var e=t.dateline,n="https://img.buzzfeed.com/buzzfeed-static".concat(e.dateline_image);return(0,i.jsxs)("div",{className:l().dateline,children:[(0,i.jsx)(o.lS,{src:(0,j.Z)(n),className:l().dateline_map,alt:"Map of ".concat(e.name)}),(0,i.jsxs)("div",{className:"xs-flex-grow-1",children:[(0,i.jsx)("p",{className:l().datelineTitle,children:"Reporting From"}),(0,i.jsx)("strong",{className:l().datelineName,children:e.name})]})]})};L.propTypes={dateline:a().shape({name:a().string.isRequired,dateline_image:a().string.isRequired})};var y=L,g=n(50381),T=n.n(g),d=n(3695),I=(0,s.Z)((function(){return n.e(33).then(n.bind(n,67740))}),{ssr:!1});function z(t){var e=t.byline,n=t.advertiserClass,r=t.index,a=t.isSingle,s=void 0!==a&&a,N=(0,u.useContext)(c.Z),l="1"===e.description_id,L=(0,d.G)(N)?"/author/".concat(e.username):"/".concat(e.username),y=(0,u.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:L,unit_type:"buzz_head",unit_name:N.id,item_name:"byline",item_type:"profile",position_in_unit:r,target_content_type:"user",target_content_id:e.id}}),[N,e.id,L,r]),g=(0,M.R)(y);return e?(0,i.jsxs)("div",{className:"".concat((0,d.G)(N)?T().newsByline:""," ").concat((0,d.G)(N)&&s?T().singleByline:""),children:[(0,i.jsx)("a",{ref:g,href:L,className:T().headlineByline,children:(0,i.jsxs)("div",{className:T().bylineContainer,children:[(0,i.jsx)(o.lS,{src:(0,j.Z)(e.avatar),className:"".concat(T().avatar," ").concat(n," embed-byline-avatar"),alt:e.display_name}),(0,i.jsxs)("div",{className:"".concat(T().bylineText," embed-byline-text"),children:[(0,i.jsx)("span",{className:"".concat(T().text," ").concat(n),children:"by "}),(0,i.jsx)("span",{className:"metadata-link ".concat(T().bylineName),dangerouslySetInnerHTML:{__html:e.display_name}}),(0,i.jsx)("p",{className:T().position,children:e.title})]})]})}),l&&(0,i.jsx)("div",{className:T().internetPointsContainer,children:(0,i.jsx)("div",{className:T().internetPointsContainerInner,children:(0,i.jsx)(I,{className:T().desktopShow,userId:e.id})})})]}):null}function D(t){var e=t.byline,n=t.advertiserClass,r=t.isLastByline,a=t.index,s=(0,u.useContext)(c.Z),N=(0,u.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:"/".concat(e.username),unit_type:"buzz_head",unit_name:s.id,item_name:"byline",item_type:"profile",position_in_unit:a,target_content_type:"user",target_content_id:e.id}}),[s,e.id,e.username,a]),l=(0,M.R)(N);return(0,i.jsxs)("a",{ref:l,href:"/".concat(e.username),className:"".concat(T().headlineByline," ").concat(T().twoAuthors),children:[(0,i.jsxs)("div",{className:T().bylineContainer,children:[(0,i.jsx)(o.lS,{src:(0,j.Z)(e.avatar),className:"".concat(T().avatar," ").concat(T().desktopShow," ").concat(n),alt:e.display_name}),(0,i.jsxs)("div",{className:T().bylineText,children:[(0,i.jsxs)("span",{className:"".concat(T().desktopShow," ").concat(T().text," ").concat(n),children:["by"," "]}),(0,i.jsx)("span",{className:"metadata-link ".concat(T().bylineName),dangerouslySetInnerHTML:{__html:e.display_name}}),(0,i.jsx)("p",{className:T().desktopShow,children:e.title})]})]}),!r&&(0,i.jsx)("span",{className:T().desktopHide,children:", "})]})}function m(){var t=(0,u.useContext)(c.Z),e=(0,u.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:"/community/about",unit_type:"buzz_head",unit_name:t.id,item_name:"byline",item_type:"profile",position_in_unit:1,target_content_type:"feed",target_content_id:"community_about"}}),[t.id]),n=(0,M.R)(e);return(0,i.jsx)("a",{ref:n,href:"/community/about",className:"".concat(T().headlineByline," ").concat(T().communityTeamByline),children:(0,i.jsxs)("div",{className:T().bylineContainer,children:[(0,i.jsx)(o.lS,{src:(0,j.Z)("https://img.buzzfeed.com/store-an-image-prod-us-east-1/p9aVli648.png"),className:"".concat(T().avatar," ").concat(T().desktopShow),alt:"BuzzFeed Community Team"}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{className:"".concat(T().text," ").concat(T().communityTeamBy),children:["Approved and edited by"," "]}),(0,i.jsx)("span",{className:"metadata-link ".concat(T().bylineName),children:"BuzzFeed Community Team"})]})]})})}function x(t){var e=t.byline,n=t.isLastByline,r=t.index,a=(0,u.useContext)(c.Z),o=(0,u.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:"/".concat(e.username),unit_type:"buzz_head",unit_name:a.id,item_name:"byline",item_type:"profile",position_in_unit:r,target_content_type:"user",target_content_id:e.id}}),[a,e.id,e.username,r]),s=(0,M.R)(o);return(0,i.jsxs)("span",{className:T().textByline,children:[(0,i.jsx)("a",{className:T().headlineByline,ref:s,href:"/".concat(e.username),children:(0,i.jsx)("span",{className:"metadata-link ".concat(T().bylineName),dangerouslySetInnerHTML:{__html:e.display_name}})}),!n&&", "]})}function p(t){var e=t.bylines,n=void 0===e?[]:e,u=t.isAd,r=void 0!==u&&u,a=t.buzz,o=void 0===a?{}:a,M=r?T().isAdvertiser:"",c=o.isCommunity&&o.isModerated,s=o.datelines;return(0,d.G)(o)?(0,i.jsxs)("div",{className:"".concat(T().newsHeadlineByline," ").concat(1!==n.length||s.length?"":[T().singleHeadlineByline]," embed-byline"),children:[(0,i.jsx)("span",{className:T().text,children:"By "}),n.map((function(t,e){return(0,i.jsxs)("span",{className:T().bylineWrap,children:[(0,i.jsx)(z,{byline:t,advertiserClass:M,index:e,isSingle:1===n.length&&!s.length},t.id),e!==n.length-1&&(0,i.jsx)("span",{className:T().text,children:" and "})]},t.id)})),!!s.length&&s.map((function(t){return(0,i.jsx)(y,{dateline:t},t.name)}))]}):n.length>2?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:T().text,children:"by "}),n.map((function(t,e){var u=n.length===e+1;return(0,i.jsx)(x,{byline:t,isLastByline:u,index:e},t.id)}))]}):2===n.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"".concat(T().desktopHide," ").concat(T().text," ").concat(M),children:["by"," "]}),n.map((function(t,e){var n=1===e;return(0,i.jsx)(D,{byline:t,advertiserClass:M,isLastByline:n,index:e},t.id)}))]}):n.map((function(t,e){return(0,i.jsxs)("div",{className:T().adaptiveBylineContainer,children:[(0,i.jsx)(z,{byline:t,advertiserClass:M,index:e},t.id),c&&(0,i.jsx)(m,{})]},t.id)}))}p.propTypes={bylines:a().arrayOf(a().object).isRequired,isAd:a().bool.isRequired};var f=p},15185:function(t,e,n){"use strict";var i=n(52322),u=(n(2784),n(13980)),r=n.n(u),a=n(84225),o=n(5103),M=n(38362),c=n.n(M);function s(t){return new Date(1e3*t).toISOString()}function j(t){var e=t.timestampPublishedUnix,n=t.timestampUpdatedUnix,u=t.showUpdatedTimestampOnly,r=t.countryCode,o=t.t,M=t.destination;if(!e||!r)return null;var j,N,l,L,y="buzzfeed_news"===M,g=s(e),T=s(n);return y?(u||(j=(0,a.i$)(e,r,{month:"long",hour:"numeric",minute:"numeric"})).hasTimestampString||(j.formattedTimestamp=j.formattedTimestamp.replace(" AM"," am").replace(" PM"," pm")),(n||u)&&((N=(0,a.i$)(n||e,r,{month:"long",hour:"numeric",minute:"numeric"})).hasTimestampString||(N.formattedTimestamp=N.formattedTimestamp.replace(" AM"," am").replace(" PM"," pm")))):n>e?N=(0,a.i$)(n,r):j=(0,a.i$)(e,r),j&&(l=j.hasTimestampString?o("posted"):o("posted_on")),N&&(L=N.hasTimestampString?o("updated"):o("updated_on")),(0,i.jsxs)("span",{className:"".concat(y?c().timestampNews:c().timestamp," embed-timestamp"),children:[!y&&N&&(0,i.jsxs)("time",{dateTime:T,children:[L," ",N.formattedTimestamp]}),!y&&j&&(0,i.jsxs)("time",{dateTime:g,children:[l," ",j.formattedTimestamp]}),y&&(0,i.jsx)("span",{className:"".concat(c().timestampNews," embed-timestamp"),children:(0,i.jsxs)("time",{dateTime:N?T:g,children:[N&&(0,i.jsxs)("span",{className:c().timeDisplay,children:[L," ",N.formattedTimestamp]}),j&&(0,i.jsxs)("span",{className:c().timeDisplay,children:[l," ",j.formattedTimestamp]})]})})]})}j.defaultProps={timestampPublishedUnix:0,timestampUpdatedUnix:0,showUpdatedTimestampOnly:!1,countryCode:"en-us",destination:"buzzfeed"},j.propTypes={timestampPublishedUnix:r().number.isRequired,timestampUpdatedUnix:r().number.isRequired,showUpdatedTimestampOnly:r().bool,countryCode:r().string.isRequired,destination:r().string},e.Z=(0,o.withTranslation)("common")(j)},35693:function(t,e,n){"use strict";n.d(e,{Z:function(){return an}});var i=n(52322),u=n(2784),r=n(13980),a=n.n(r),o=["trending","viral"],M=["news"],c=["1999","2018","2018midterms","2020election","2020protests","amtodm","areaofexpertise","blackfutures","bodyweek2021","bodyweek2022","climate","climatechange","coronavirus","emergingwriters","endgame","fincen-files","followthis","futurefood","futurehistory","goodnews","hopesweek","impeachingtrump","investigatingtonyrobbins","itsbrutalouthere","jpg","letsgetphysical","loveyourlibrary","mentalhealthweek","moneyweek","newyearsrevolution","opinion","opportunitycosts","outsideyourbubble","parentingweek2020","popculturenostalgia","robertdurstontrial","securethebag","sex","sexweek","sexweek2021","sneakylinks","stanweek","thatwas2020","thefacebookleaks","themoneytrail","themuellermemos","theroyaltea","thingsweloved","travelweek2021","unpacking","weinsteinontrial","whatnow","whatweowe","wwfsecretwar","ukraine"],s=n(3695),j=n(30353);function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{}).max,n=void 0===e?4:e,i=[],u=L(t),r=y(t);return u.filter((function(t){return!t.tags.some((function(t){return r.find((function(e){return e.feed_tags.includes(t)}))}))})).forEach((function(t){i.push({text:t.title,url:t.url})})),r.forEach((function(t){i.push({text:"".concat(t.name," Quiz"),url:"/quizzes".concat(t.url)})})),i.splice(n),i}(t);if(n.length)return{primary:n,secondary:[]}}var i,u=t.classification.section||t.category,r=t.all_classifications.sections,a=(t.laser_tags||{}).subbuzz,N=(void 0===a?{}:a).commerce_category,l=(void 0===N?[]:N).map((function(t){return t.tag_name}))||[],g=[],T=[],d=u,z=u.toLowerCase();if("buzzfeed"===z&&(z=(d=r&&"BuzzFeed"!==r[0]?r[0]:"Buzz").toLowerCase()),z in m){var p=m[z];d=p.text,i=p.url}else x.includes(z)&&(d="Entertainment",i="/entertainment");if(g.push({text:d,url:i||"/".concat(d.toLowerCase().replace(/&/g,"and").replace(/ /g,"-"))}),"Shopping"===u&&(T=I(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return e;var n,i=D.find((function(e){return t.includes(e.laser_tag)}))||"";if(i&&(e.push({text:i.name,url:"/shopping/".concat(i.id)}),null===(n=i.children)||void 0===n?void 0:n.length)){var u,r=i.children.find((function(e){return t.includes(e.laser_tag)}))||"";if(r&&(e.push({text:r.name,url:"/shopping/".concat(i.id,"/").concat(r.id)}),null===(u=r.children)||void 0===u?void 0:u.length)){var a=r.children.find((function(e){return t.includes(e.laser_tag)}))||"";e.push({text:a.name,url:"/shopping/".concat(i.id,"/").concat(r.id,"/").concat(a.id)})}}return e}(l)).concat(I(T))),(0,s.G)(t)){if(e.length){var f=j.destinations.buzzfeed.base_url,O=e[0];o.includes(O.badge_type)||("opinion"===O.type?T.push({text:"opinion",url:"/collection/opinion"}):c.includes(O.link_to)?T.push({text:O.name,url:"/collection/".concat(O.link_to)}):T.push({text:O.name,url:"".concat(f,"/badge/").concat(O.link_to||O.type)}))}if(!T.length){var A,b,E=null===(A=t.laser_tags)||void 0===A||null===(b=A.bf_content_description)||void 0===b?void 0:b.topic;E&&E.length&&(T=I(function(t){return t&&t.length?[{text:t[0].tag_display_name,url:"/topic/".concat(t[0].tag_name.replace(/_/g,"-"))}]:[]}(E)).concat(I(T)))}(g=g.filter((function(t){return!M.includes(t.text.toLowerCase())}))).forEach((function(t){t.url="/section".concat(t.url)}))}return{primary:g,secondary:T}}var f=n(81298),O=n(67654),A=n.n(O),b=n(8546),E=n(41332),S=n(3207),w={comma:(0,i.jsxs)("span",{className:A().comma,"aria-hidden":"true",children:[","," "]}),caret:(0,i.jsx)(f.QU,{className:"caret-separator ".concat(A().caret),"aria-hidden":"true"}),midot:(0,i.jsx)("span",{className:"bold ".concat(A().midot),children:"\xb7"})};function _(t){var e=t.buzz,n=t.text,r=t.url,a=t.index,o=(0,u.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:r,unit_type:"buzz_head",unit_name:e.id,item_name:(0,s.G)(e)?n:(0,S.z)(r),item_type:"text",position_in_unit:(0,s.G)(e)?null:a,position_in_subunit:(0,s.G)(e)?a:null,subunit_name:(0,s.G)(e)?"breadcrumbs":"",subunit_type:(0,s.G)(e)?"component":"",target_content_type:"feed",target_content_id:(0,S.z)(r)}}),[e.id,a,r]),M=(0,b.R)(o);return(0,i.jsx)("a",{ref:M,className:"metadata-link",href:r,children:n})}function C(t){var e=t.breadcrumbs,n=t.hasSecondaryBreadcrumbs,r=void 0!==n&&n,a=(0,u.useContext)(E.Z),o=function(t){var e;switch(!0){case t.isNews:e="default";break;case t.isQuiz:e="midot";break;default:e="caret"}return w[e]}(a);return(0,i.jsx)(i.Fragment,{children:e.map((function(t,n){var u=e.length===n+1,M=a.isNews?A().breadcrumbNewsItem:A().breadcrumbItem;return(0,i.jsxs)("li",{className:M,children:[(0,i.jsx)(_,{buzz:a,text:t.text,url:t.url,index:n}),(!u||r)&&o]},"".concat(t,"--").concat(n))}))})}function h(t){var e=t.breadcrumbs,n=t.secondaryBreadcrumbs,u=void 0===n?[]:n,r=Boolean(u.length);return(0,i.jsxs)("ol",{children:[(0,i.jsx)(C,{breadcrumbs:e,hasSecondaryBreadcrumbs:r}),r&&(0,i.jsx)(C,{breadcrumbs:u})]})}h.propTypes={breadcrumbs:a().array.isRequired,secondaryBreadcrumbs:a().array};var v=n(15185),k=n(70211),Q=n(5103),U=n(81677),Y=n.n(U);var P=(0,Q.withTranslation)("common")((function(t){var e=t.t,n=(0,u.useContext)(E.Z),r=(0,u.useMemo)((function(){return{unit_type:"buzz_head",unit_name:n.id,item_name:"return_to_article",item_type:"text",target_content_type:"buzz",target_content_id:n.id}}),[n]),a=(0,b.R)(r);return(0,i.jsxs)("div",{className:Y().headlineComments,children:[(0,i.jsxs)("a",{ref:a,href:n.canonical_url,className:"blue-link ".concat(Y().returnLink),children:[(0,i.jsx)(f.BN,{className:Y().returnIcon}),(0,i.jsx)("span",{children:e("return_to_article")})]}),(0,i.jsx)("div",{className:Y().commentOn,children:e("comments_on")})]})}));function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=5e4&&(0,i.jsxs)("div",{className:"".concat(V().trendingTitle," ").concat(V().trendingViewCount),children:[(0,H.x)(a)," ",n("views")]})]})]})}X.propTypes={buzzId:a().string.isRequired};var $=(0,Q.withTranslation)("common")(X),tt=n(39252),et=n(14257),nt=n.n(et),it=n(89732),ut=n.n(it),rt=n(23679),at=n.n(rt),ot=n(71962),Mt=n.n(ot),ct=n(74756),st=n.n(ct),jt=n(58724),Nt=n.n(jt),lt=n(24958),Lt=n.n(lt),yt=n(39751),gt=n.n(yt),Tt=n(84818),dt=n.n(Tt),It=n(62660),zt=n.n(It),Dt=n(63847),mt=n.n(Dt),xt=n(99139),pt=n.n(xt),ft=n(33175),Ot=n.n(ft),At=n(37943),bt=n.n(At),Et=n(55805),St=n.n(Et),wt=n(24560),_t=n.n(wt),Ct=n(19519),ht=n.n(Ct),vt=n(84006),kt=n.n(vt),Qt=n(14446),Ut=n.n(Qt),Yt=n(63453),Pt=n.n(Yt),Zt=n(628),Bt=n.n(Zt),Wt=n(12803),Gt=n.n(Wt),Rt=n(51326),Ht=n.n(Rt),Ft=n(89089),Jt=n.n(Ft),Vt=n(49432),qt=n.n(Vt),Kt=n(2915),Xt=n.n(Kt),$t=n(54116),te=n.n($t),ee=n(33455),ne=n.n(ee),ie=n(64742),ue=n.n(ie),re=n(40073),ae=n.n(re),oe=n(61623),Me=n.n(oe),ce=n(59922),se=n.n(ce),je=n(40583),Ne=n.n(je),le=n(98217),Le=n.n(le),ye=n(8150),ge=n.n(ye),Te=n(7870),de=n.n(Te),Ie=n(15700),ze=n.n(Ie),De=n(64651),me=n.n(De),xe=n(51716),pe=n.n(xe),fe=n(12371),Oe=n.n(fe),Ae=n(60937),be=n.n(Ae),Ee=n(48061),Se=n.n(Ee),we=n(42340),_e=n.n(we),Ce=n(87351),he=n.n(Ce),ve=n(71529),ke=n.n(ve),Qe=n(47756),Ue=n.n(Qe),Ye={de:{cute:nt(),fail:ut(),lol:at(),omg:Mt(),win:st(),wtf:Nt()},en:{cute:Lt(),fail:gt(),lol:dt(),omg:zt(),win:mt(),wtf:pt()},es:{cute:Ot(),fail:bt(),lol:St(),omg:_t(),win:ht(),wtf:kt()},"es-es":{cute:Ut(),fail:Pt(),lol:Bt(),omg:Gt(),win:Ht(),wtf:Jt()},fr:{cute:qt(),fail:Xt(),lol:te(),omg:ne(),win:ue(),wtf:ae()},general:{fail:se(),quiz:Me(),trending:Ne(),viral:Le()},ja:{cute:ge(),fail:de(),lol:ze(),omg:me(),win:pe(),wtf:Oe()},pt:{cute:be(),fail:Se(),lol:_e(),omg:he(),win:ke(),wtf:Ue()}};function Pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ze={Triggered:{priority:1},Editorial:{priority:2},Reaction:{priority:3},Others:{priority:4}},Be=["cute","omg","win","fail","wtf","lol","trending","viral","quiz"],We=["cute","omg","win","fail","wtf","lol"];function Ge(t){var e=t.index,n=t.badge,r=t.buzzId,a=(0,u.useMemo)((function(){return{eventCategory:"Buzz:content",eventAction:n.badge_type,eventLabel:null,unit_type:"buzz_head",unit_name:r,item_name:n.link_to,item_type:"badge",position_in_unit:e,target_content_type:"feed",target_content_id:n.link_to}}),[n.badge_type,r,e]),o=(0,b.R)(a);return(0,i.jsx)("a",{ref:o,className:V().badge,href:"/badge/".concat(n.link_to),children:n.has_svg&&n.badge_language?(0,i.jsx)("img",{src:Ye[n.badge_language][n.badge_type],alt:"".concat(n.name," badge")}):(0,i.jsx)(tt.lS,{src:"".concat(j.image_service_url).concat(n.path),alt:"".concat(n.name," badge")})},e)}function Re(t){var e=t.badges,n=t.countryCode,u=t.flags,r=t.buzzId;if(!e)return null;var a=e.find((function(t){return"trending"===t.badge_type})),o=e.filter((function(t){return!G.includes(t.badge_type)&&!function(t,e){var n=0===e.sensitive,i=0===e.sensitive&&0===e.nsfw&&1===e.brand_safe,u=["Editorial","Reaction"].includes(t.category),r=["Custom","Thematic"].includes(t.category),a=!t.path;return!n&&u||!i&&r||a}(t,u)&&(!a||a&&"viral"!==t.badge_type)})).map((function(t){var e=t.badge_type;return t.badge_language=We.includes(e)?function(t){if("es-es"===t)return t;var e=B((t||"").split("-"),1)[0];return W.includes(e)?e:"en"}(n):"general",t.has_svg=Be.includes(e),t.link_to=t.link_to||e,t.category in Ze||(t.category="Others"),function(t){for(var e=1;ee.priority?1:t.prioritye.price?1:t.price0,A={unit_type:"buzz_head",unit_name:e.id,item_type:"button"},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,u.useMemo)((function(){return{internalLink:function(n){(0,en.TW)(t,un({},e,n))},contentAction:function(n){(0,en.bC)(t,un({},e,n))},impression:function(n){(0,en.Oz)(t,un({},e,n))}}}),[t,e])}(e,A),E=e.longform_custom_header&&e.longform_custom_header.style&&e.longform_custom_header.style.text_over;if(e.hasQuizSharedResult){var S=n[0];return S.has_svg=!0,S.badge_language="general",(0,i.jsxs)("div",{className:Je().sharedResultHeadlineWrapper,children:[(0,i.jsxs)("div",{className:Je().sharedResultBadge,children:[(0,i.jsx)(Ge,{index:0,badge:S,buzzId:e.buzzId}),(0,i.jsx)("p",{children:"Result from"})]}),(0,i.jsx)("h1",{className:Je().sharedResultTitle,children:(0,i.jsx)("a",{href:e.canonical_url,children:e.title})})]})}var w=(0,i.jsxs)("div",{className:"".concat(Je().container," embed-breadcrumbs"),children:[g?(0,i.jsx)("span",{className:Je().paidPostBreadcrumb,children:r("paid_post")}):(0,i.jsxs)("nav",{"aria-label":"Breadcrumb",className:(0,s.G)(e)?Je().breadcrumbContainerNews:Je().breadcrumbContainer,children:[(0,i.jsx)(h,{breadcrumbs:I,secondaryBreadcrumbs:z}),"buzzfeed"===a&&0!==I.length&&M>0&&(0,i.jsx)("span",{className:"bold ".concat(Je().middot),children:"\xb7"})]}),"buzzfeed"===a&&(0,i.jsx)(v.Z,{timestampPublishedUnix:M,timestampUpdatedUnix:c,countryCode:T,destination:a})]}),_={adDisclaimer:!o&&D,badges:!o&&!e.isAd&&"buzzfeed"===a,breadcrumbAboveTitle:!o&&O,breadcrumbBelowTitle:o&&O,byline:!o,commerceDisclaimer:!o,communityDisclaimer:!o&&!e.isModerated,timestamp:!o&&"buzzfeed_news"===a};return(0,i.jsxs)("div",{className:"".concat(Je().headline," ").concat(Je()[e.bfpTheme]||""," ").concat(Je()[a]," embed-buzz-header"),children:[_.badges&&(0,i.jsx)("div",{className:Je().container,children:(0,i.jsx)(He,{badges:n,buzzId:e.id,countryCode:T,flags:e.flags})}),o&&(0,i.jsx)(P,{}),_.commerceDisclaimer&&(0,i.jsx)(Xe,{buzz:e}),_.communityDisclaimer&&(0,i.jsxs)("div",{className:"".concat(Je().disclaimer," ").concat(Je().container),children:[r("community_disclaimer"),(0,i.jsxs)("a",{className:"blue-link",href:"http://community.buzzfeed.com/",children:[" ",r("community_try")]})]}),_.adDisclaimer&&(0,i.jsx)("div",{className:"".concat(Je().disclaimer," ").concat(Je().container),children:r("ad_disclaimer")}),_.breadcrumbAboveTitle&&w,"taylor_swift"===L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($e.Z,{topic:"Taylor Swift",subscriptions:[{subscriptionId:"buzzfeed_email_taylor-swift-weekly-rundown",title:"Weekly Rundown",description:"Our weekly Taylor Swift rundown right to your inbox.",isSubscribed:!0},{subscriptionId:"buzzfeed_email_taylor-swift-daily-rundown",title:"Daily Rundown",description:"Can\u2019t wait a whole week? Get updated on all things Taylor Swift daily.",isSubscribed:!1}],isSignedIn:!!(0,tn.zk)(),siteCaptchaKey:j.site_captcha_key,track:b}),(0,i.jsx)("br",{})]}),"arcade"===L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($e.Z,{topic:"Arcade",description:"Be notified on the launch of new games, AI image generators, filters, and experiments \u2014 no more than once a week!",descriptionLoggedOut:"Be notified on the launch of new games, AI image generators, filters, and experiments \u2014 no more than once a week!",subscriptions:[{subscriptionId:"buzzfeed_email_arcade-highlights-weekly",title:"Arcade Highlights",description:"",isSubscribed:!0}],isSignedIn:!!(0,tn.zk)(),siteCaptchaKey:j.site_captcha_key,track:b}),(0,i.jsx)("br",{})]}),"quizzes"===L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($e.Z,{topic:"Quizzes",description:"The quizzes you know and love delivered straight to your inbox!",descriptionLoggedOut:"The quizzes you know and love delivered straight to your inbox!",subscriptions:[{subscriptionId:"buzzfeed_email_quizzes",title:"Quizzes",description:"",isSubscribed:!0}],isSignedIn:!!(0,tn.zk)(),siteCaptchaKey:j.site_captcha_key,track:b}),(0,i.jsx)("br",{})]}),"shopping"===L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($e.Z,{topic:"Shopping",description:"Find great products - plus cool stuff you didn\u2019t even know you needed.",descriptionLoggedOut:"Find great products - plus cool stuff you didn\u2019t even know you needed.",subscriptions:[{subscriptionId:"buzzfeed_email_shopping",title:"Shopping",description:"",isSubscribed:!0}],isSignedIn:!!(0,tn.zk)(),siteCaptchaKey:j.site_captcha_key,track:b}),(0,i.jsx)("br",{})]}),"daily"===L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($e.Z,{topic:"BuzzFeed Daily",description:"Keep up with the latest daily buzz with the BuzzFeed Daily newsletter!",descriptionLoggedOut:"Keep up with the latest daily buzz with the BuzzFeed Daily newsletter!",subscriptions:[{subscriptionId:"buzzfeed_email_daily",title:"BuzzFeed Daily",description:"",isSubscribed:!0}],isSignedIn:!!(0,tn.zk)(),siteCaptchaKey:j.site_captcha_key,track:b}),(0,i.jsx)("br",{})]}),(0,i.jsxs)("div",{className:"".concat(Je().container," ").concat(E?Je().hideTitle:""," embed-headline"),children:[(0,i.jsx)("h1",{className:"".concat(Je().title," embed-headline-title"),dangerouslySetInnerHTML:{__html:x}}),(0,i.jsx)("p",{className:"".concat(Je().description," embed-headline-description"),dangerouslySetInnerHTML:{__html:f}})]}),_.breadcrumbBelowTitle&&w,_.byline&&(0,i.jsx)(k.Z,{bylines:e.bylines,isAd:g,buzz:e}),_.timestamp&&(0,i.jsx)(v.Z,{timestampPublishedUnix:M,timestampUpdatedUnix:c,showUpdatedTimestampOnly:N,countryCode:T,destination:a})]})}rn.propTypes={buzz:a().object.isRequired,badges:a().array};var an=(0,Ve.Z)((0,Q.withTranslation)("common")(rn),{onError:qe.Tb})},54761:function(t,e,n){"use strict";n.d(e,{Z:function(){return M}});var i=n(52322),u=n(2784),r=n(88163),a=n(41332);function o(t,e){if(null==t)return{};var n,i,u=function(t,e){if(null==t)return{};var n,i,u={},r=Object.keys(t);for(i=0;i=0||(u[n]=t[n]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u}function M(t){var e=t.children,n=t.lazy,M=void 0===n||n,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.preloadDistance,n=void 0===e?2:e,i=t.rootMargin,o=(0,u.useContext)(a.Z).id;if(void 0===i){var M="undefined"!==typeof document?document.documentElement.clientHeight:0;i="".concat(M*n,"px 0px")}var c=(0,r.Z)({rootMargin:i,once:!0,pageId:o}),s=c.isIntersecting,j=c.setObservable;return{canLoad:s,setObservable:j}}(o(t,["children","lazy"])),s=c.canLoad,j=c.setObservable;return(0,i.jsx)("div",{ref:M?j:null,children:!M||s?e:null})}},29583:function(t,e,n){"use strict";n.d(e,{Z:function(){return j}});var i=n(52322),u=n(2784),r=n(41332),a=n(36491),o=n(54761);function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"",e=document.createElement("div");return e.innerHTML=t,e.textContent};function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0||(u[n]=t[n]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u}function ct(t){var e=t.isNewDesign,n=Mt(t,["isNewDesign"]);return(0,u.jsx)(r.Z,{children:e?(0,u.jsx)(rt,{}):(0,u.jsx)(K,ot({},n))})}},41719:function(t,e,n){"use strict";n.d(e,{Z:function(){return vu}});var i=n(52322),u=n(2784),r=n(13980),a=n.n(r),o=n(9772),M=n(410),c=n(16938),s=n(21871),j=n(32561),N=n(3695),l=function(t){var e;return(null===t||void 0===t||null===(e=t.bylines)||void 0===e?void 0:e.length)&&t.bylines.some((function(t){return"Brand Publisher"===(null===t||void 0===t?void 0:t.title)}))},L=n(91136),y=n.n(L),g=n(70733),T=n.n(g),d=n(48492),I=n(49101),z=n(70028),D=n(4366),m=n(36491),x=(0,m.Z)((function(){return Promise.resolve().then(n.bind(n,64762))}),{ssr:!1});function p(t){var e=t.buzz,n=t.commentCount,r=t.showShareBar,a=t.className,o=void 0===a?"":a,M=t.destination,c=void 0===M?"buzzfeed":M,s=(0,z.i)(e),j=(0,u.useContext)(I.Z),l=j.commentsEnabled,L=j.isCommentsPanelOpen,g=j.toggleCommentsPanel,m=(0,N.G)(e)?function(t){var n=t.element,i=t.index,u=t.platform,r=t.shareUrl;(0,D.aF)(n,e,{subunit_name:"share",subunit_type:"component",unit_type:"buzz_head",unit_name:e.id,item_name:u,item_type:"button",position_in_subunit:i,target_content_type:"url",target_content_id:r})}:void 0;(0,u.useEffect)((function(){var t=window.localStorage.getItem("COMMENT_"+window.location.host+window.location.pathname),e=new URLSearchParams(window.location.search).has("open_comments");null!==n&&(t||e)&&g(!0)}),[n]);var p=l&&(0,i.jsx)(x,{commentCount:n,track:s,locale:e.language||"en",destination:c,onCtaClick:function(){return g(!0)},disabled:L}),f=r&&(0,i.jsx)(d.ZP,{buzz:e,type:"pagelevel",position:"top_share_bar",className:T().shareTop,onLoaded:m});return e.hasQuizSharedResult?null:(0,i.jsx)("div",{className:"".concat(y().actionBar," ").concat(y()[c]," ").concat(o," embed-action-bar"),children:(0,N.G)(e)?(0,i.jsxs)(i.Fragment,{children:[f,p]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:y().commentsCtaWrapper,children:p}),f]})})}p.propTypes={buzz:a().object.isRequired,isMobile:a().bool};var f=p,O=n(83661),A=n(5103),b=n(13715),E=n.n(b),S=n(39252),w=n(30729);function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);ne&&(t=(n=[e,t])[0],e=n[1]);return Math.floor(Math.random()*(e-t+1))+t},R=function(t){var e=t.className,n=void 0===e?"":e,r=t.emoji,a=void 0===r?"\ud83e\udd2f":r,o=t.onTransitionEndComplete,M=t.range,c=void 0===M?[10,15]:M,s=(0,u.useRef)(G.apply(void 0,W(c))),j=(0,u.useRef)(function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.degreeMax,i=void 0===n?45:n,u=e.degreeMin,r=void 0===u?-45:u,a=e.distributionFactor,o=void 0===a?1:a,M=[],c=i-r,s=0;s1&&void 0!==arguments[1]?arguments[1]:1;if(!t)return"0";var n={billion:"B",million:"M",thousand:"K"};return t>=1e9?(t/1e9).toFixed(e).replace(/\.0+$/,"")+n.billion:t>=1e6?(t/1e6).toFixed(e).replace(/\.0+$/,"")+n.million:t>=1e3?(t/1e3).toFixed(e).replace(/\.0+$/,"")+n.thousand:t.toString()},X="user-entries",$=n(83816),tt=n.n($);function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=t.namespace,n=void 0===e?X:e,i=t.limit,u=void 0===i?100:i;return{getAll:function(){try{return JSON.parse(window.localStorage.getItem(n))||[]}catch(t){return[]}},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)throw new Error("An `entry` value is required.");var e=this.getAll();return e.find((function(e){return e.startsWith(t)}))||""},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)throw new Error("An `entry` value is required.");var e=this.getAll();e.includes(t)?e.splice(e.indexOf(t),1):e.unshift(t),u&&e.length>u&&(e=e.slice(0,u)),window.localStorage.setItem(n,JSON.stringify(e))}}}({namespace:"localUserEmojis"}),at=function(t){var e=t.name,n=t.localEmojiName,r=t.count,a=void 0===r?0:r,o=t.onClick,M=void 0===o?function(){}:o,c=t.isClicked,s=void 0!==c&&c,j=(0,u.useState)(!1),N=j[0],l=j[1];return(0,i.jsxs)("li",{className:"".concat(tt().reactionsItem," ").concat(!s&&tt().reactionsItemActive),children:[(0,i.jsx)("button",{className:tt().reactionBtn,disabled:s,onClick:function(){rt.set(n),M(e),l(!0)},children:e}),0!==a&&(0,i.jsx)("span",{className:tt().count,children:K(a)}),N&&(0,i.jsx)(H,{className:tt().confetti,emoji:e,onTransitionEndComplete:function(){return l(!1)}})]},e)};at.propTypes={count:a().number.isRequired,onClick:a().func.isRequired,name:a().string.isRequired,localEmojiName:a().string.isRequired};var ot=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.className,n=void 0===e?"":e,r=t.contentId,a=t.contentType,o=void 0===a?"content-object":a,M=t.isSponsored,c=(0,A.useTranslation)("common").t,s=(0,u.useState)(null),j=s[0],N=s[1],l=(0,u.useState)(null),L=l[0],y=l[1],g=(0,u.useState)(null),T=g[0],d=g[1],I=ut(Y.T).concat(ut(Y.n));(0,u.useEffect)((function(){var t=rt.get("".concat(o,":").concat(r));if(t){var e=t.split(":").pop();(!M&&I.includes(e)||M&&Y.T.includes(e))&&N(e)}}),[r,o]);var z=function(t){L||y(t.name),t.increment();var e=T.map((function(e){return e.name===t.name?e.count++:e.name===j&&e.count--,e}));d(e),N(t.name)},D=(0,u.useContext)(F.Z),m=(0,J.z)((0,q.h)(D),!0),x=m.reactions,p=m.serverError;if(!x.length)return null;L&&L!=j&&x.forEach((function(t){t.name==L&&(t.count--,y(j))}));var f=[];x.forEach((function(t){t.displayPriority=Y.n.includes(t.name)?1/(Y.n.indexOf(t.name)+Y.T.length+1):1/(Y.T.indexOf(t.name)+1),M&&Y.n.includes(t.name)||f.push(t)}));var O=f.sort((function(t,e){return e.count+e.displayPriority-(t.count+t.displayPriority)}));return(null===T||void 0===T?void 0:T.length)||d(O),(0,i.jsxs)("section",{className:"".concat(n," ").concat(tt().reactions),children:[(0,i.jsx)(V.Z,{id:"reactions-title",children:c("what_do_you_think")}),p&&(0,i.jsx)("p",{className:tt().error,children:c("server_error")}),(0,i.jsx)("ul",{"aria-label":"Emoji Reactions","aria-controls":"dialog",className:"".concat(tt().reactionsList," ").concat(x.some((function(t){return t.count>0}))&&tt().hasReactions," ").concat((null===T||void 0===T?void 0:T.length)<8&&tt().restrictedReactions),children:T&&T.map((function(t){return(0,i.jsx)(at,it({isClicked:j==t.name,localEmojiName:"".concat(o,":").concat(r,":").concat(t.name),onClick:function(){z(t)}},t),t.name)}))})]})};ot.propTypes={className:a().string,contentId:a().string,contentType:a().string};var Mt=ot,ct=n(45243),st=n.n(ct),jt=n(81550),Nt=(0,m.Z)((function(){return n.e(36).then(n.bind(n,10305))}),{ssr:!1});function lt(t){var e=t.data,n=void 0===e?{}:e,r=n.images,a=(0,u.useContext)(F.Z),o=(0,u.useContext)(U.Z).destination,M=a.longform_custom_header.style&&a.longform_custom_header.style.text_over,c=M&&a.longform_custom_header.style.text_over.gradient&&"no_gradient"!==a.longform_custom_header.style.text_over.gradient,s=a.longform_custom_header,j=s.title,N=s.description;if(!r)return null;var l=r.mobile||r.standard||{width:1,height:1},L=l.width,y=l.height,g=parseInt(y/L*100,10);return(0,i.jsxs)("div",{className:"".concat(st().featureImageWrapper," ").concat(st()["featureImage-".concat(o)]," embed-feature-image"),children:[(0,i.jsx)("div",{style:{paddingBottom:"".concat(g,"%")},className:st().featureImagePlaceholder,children:(0,i.jsx)(Nt,{data:n})}),M&&(0,i.jsx)("div",{className:"".concat(st().featureText," ").concat(c?st().featureImageShadow:""),children:(0,i.jsxs)("div",{className:st().featureTextInner,children:[(0,i.jsx)("div",{className:st().title,dangerouslySetInnerHTML:{__html:j}}),(0,i.jsx)("p",{className:st().description,dangerouslySetInnerHTML:{__html:N}})]})})]})}lt.propTypes={data:a().object};var Lt=(0,jt.Z)(lt,{onError:M.Tb}),yt=n(28182),gt=n(35693),Tt=n(64762),dt=n(80266),It=n.n(dt),zt=n(26349),Dt=n.n(zt),mt=n(15185),xt=n(70211);function pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ft=function(t){var e,n=t.primaryColor,i=t.textColor,u=void 0===i?"#000":i,r=t.subbuzzHeaderBackgroundColor,a=void 0===r?n:r,o=t.subbuzzHeaderOpacity,M=void 0===o?.3:o;return pt(e={},Dt().primaryColor,n),pt(e,Dt().textColor,u),pt(e,Dt().subbuzzHeaderBackground,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),u=parseInt(t.slice(5,7),16);return"rgba(".concat(n,",").concat(i,",").concat(u,",").concat(e,")")}(a,M)),e},Ot={core_peach:ft({primaryColor:"#FFE3D4",subbuzzHeaderOpacity:1}),rose:ft({primaryColor:"#FFC0C5"}),watermelon:ft({primaryColor:"#F4A2A2"}),sand:ft({primaryColor:"#F7C597"}),hunter:ft({primaryColor:"#587E6F",textColor:"#fff"}),mint:ft({primaryColor:"#B4DBC8"}),periwinkle:ft({primaryColor:"#6772E5",textColor:"#fff",subbuzzHeaderBackgroundColor:"#8CA2E9"}),stone:ft({primaryColor:"#B0C1D1"}),black:ft({primaryColor:"#2B3249",textColor:"#fff"}),orange:ft({primaryColor:"#BB6719"})},At={6213166:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/2wr8eZ7PB.png",alt:"foo bar",caption:"Image caption here"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/mrut2VKAq.png",alt:"foo bar",caption:"Image caption here"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/2wr8eZ7PB.png",alt:"foo bar",caption:"Image caption here"}]},6318306:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Kkep1TlKv.png",alt:": A woman in a vibrant floral suit and a woman in a mid-length lilac shirt dress",caption:"via Nordstrom"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/m4991T6wJ.png",alt:": A woman in a vibrant floral suit and a woman in a mid-length lilac shirt dress",caption:"via Nordstrom"}]},6317663:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/ojJJkGRzs.png",alt:"smiling young woman holding gift",caption:"via Nordstrom Rack"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/EFWAnH_vV.png",alt:"smiling young woman holding gift",caption:"via Nordstrom Rack"}]},6328731:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_urLEETyh.png",alt:"GUESS Originals - Betty Boop Capsule",caption:"via GUESS Originals"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Vnh84j7By.png",alt:"GUESS Originals - Betty Boop Capsule",caption:"via GUESS Originals"}]},6338670:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/YgB-ffkzG.png",alt:"woman wearing a purple suit jacket",caption:"via Express"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/QqTTkj6UI.png",alt:"two women wearing grey outfits",caption:"via Express"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/YgB-ffkzG.png",alt:"woman wearing a purple suit jacket",caption:"via Express"}]},6343747:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_LYFS3vSe.png",alt:"Inga hosting a potluck party",caption:"Shannon Soule & Morgan Demeter / BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/M3zC6OHNV.png",alt:"Jasmine hosting a cocktail party",caption:"Morgan Demeter / BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/pMMRuj_bo.png",alt:"Inga hosting a potluck party",caption:"Shannon Soule / BuzzFeed"}]},6345368:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DS46CxGjP.png",alt:"Elise sits on couch to wrap presents",caption:"BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/bOUr4sHDm.png",alt:"Elise writes holiday cards",caption:"BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/wmD5lwXnY.png",alt:"Elise sits on couch to wrap presents",caption:"BuzzFeed"}]},6345370:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/mVAhnRJRK.png",alt:"Rie puts flannels into boxes lined with tissue paper",caption:"BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Qsxen0jb1.png",alt:"Rie holds out ribbon above table with wrapping",caption:"BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/AqNNrXv8f.png",alt:"Rie puts flannels into boxes lined with tissue paper",caption:"BuzzFeed"}]},6356153:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/BROOyjyP9.png",alt:"Krista wrapping a present",caption:"Shannon Soule / BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/SpwcsDXYJ.png",alt:"Krista opening a present",caption:"Shannon Soule / BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/vPCt23PGQ.png",alt:"Krista wrapping a present",caption:"Shannon Soule / BuzzFeed"}]},6356259:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/WALG2BALK.png",alt:"Woman models silver sequin one-shouldered top and skirt",caption:"Express"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/6addLd8V9.png",alt:"Woman walks down city crosswalk wearing long black sequin dress and open-toed black heels",caption:"Express"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/mKXQxIrY-.png",alt:"Woman models silver sequin one-shouldered top and skirt",caption:"Express"}]},7372811:{desktop:[{src:"https://img.buzzfeed.com/thumbnailer-prod-us-east-1/hive/binaries/491935.jpg",alt:"Models lounge in leggings, bras, shorts, and shirts from the Hanes Originals Collection",caption:"Hanes"},{src:"https://img.buzzfeed.com/thumbnailer-prod-us-east-1/hive/binaries/491939.jpg",alt:"Man wears boxers and tank while woman wears bra and underwear from the Hanes Originals Collection",caption:"Hanes"}],mobile:[{src:"https://img.buzzfeed.com/thumbnailer-prod-us-east-1/hive/binaries/491937.jpg",alt:"Models lounge in leggings, bras, shorts, and shirts from the Hanes Originals Collection",caption:"Hanes"}]},7538615:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/v6ckgPVfn.png",alt:"Two women dressed in fairy halloween costumes taking a selfie outside",caption:"Party City"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/v6ckgPVfn.png",alt:"Two women dressed in fairy halloween costumes taking a selfie outside",caption:"Party City"}]},7562607:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DyHTTsHRn.png",alt:"Two dogs lying in front of a christmas tree and fireplace",caption:"Petsmart"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DyHTTsHRn.png",alt:"Two dogs lying in front of a christmas tree and fireplace",caption:"Petsmart"}]},7633098:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/dl0YcJ-Rt.png",alt:"Two women standing in a field against a cloud back drop",caption:"via Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/dl0YcJ-Rt.png",alt:"Two women standing in a field against a cloud back drop",caption:"via Walmart Canada"}]},7727906:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/8C5A6X2CW.png?output-format=jpg&output-quality=95",alt:'dog in front of a "happy halloween" sign, jack-o-lanterns and decorative bats.',caption:"via Getty Images"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/8C5A6X2CW.png?output-format=jpg&output-quality=95",alt:'dog in front of a "happy halloween" sign, jack-o-lanterns and decorative bats.',caption:"via Getty Images"}]},7757785:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/eA2VM7NFv.png?output-format=jpg&output-quality=95",alt:"Two kids opening presents from Dick's Sporting Good by a Christmas tree",caption:"DICK'S Sporting Goods"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/eA2VM7NFv.png?output-format=jpg&output-quality=95",alt:"Two kids opening presents from Dick's Sporting Good by a Christmas tree",caption:"DICK'S Sporting Goods"}]},7765663:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/GVKPPABas.png?output-format=jpg&output-quality=95",alt:"a tin of cookies, a vanilla scented candkle, and two holiday themed mugs",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/GVKPPABas.png?output-format=jpg&output-quality=95",alt:"a tin of cookies, a vanilla scented candkle, and two holiday themed mugs",caption:"Walmart Canada"}]},7765768:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/tONV_zSyk.png?output-format=jpg&output-quality=95",alt:'table setting with a champagne flute, and pink and green plates that say "noel" with cupcakes on it. table is decorated with a pink and green tree and a disco ball',caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/tONV_zSyk.png?output-format=jpg&output-quality=95",alt:'table setting with a champagne flute, and pink and green plates that say "noel" with cupcakes on it. table is decorated with a pink and green tree and a disco ball',caption:"Walmart Canada"}]}};function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return A.i18n.t(t.toLowerCase(),e)},Oe=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.baseUrl=e,this.abeagle=n,this.addBehavior=ye.Application.addBehavior.bind(ye.Application),this.addModule=ye.Application.addModule.bind(ye.Application),this.broadcast=ye.Application.broadcast.bind(ye.Application),this.on=ye.Application.on.bind(ye.Application),this.off=ye.Application.off.bind(ye.Application),this.start=ye.Application.start.bind(ye.Application),this.startAll=ye.Application.startAll.bind(ye.Application),this.stop=ye.Application.stop.bind(ye.Application),this.getGlobalConfig=ye.Application.getGlobalConfig.bind(ye.Application)}var e,n,i;return e=t,(n=[{key:"init",value:function(t){var e={abeagle:this.abeagle,bf_url:this.baseUrl,canonical_path:t.canonical_path,category:t.category,country:t.country_code,edition:t.classification.edition,debug:"dev"===ze.ENV||"stage"===ze.ENV,description:t.description,formatDate:pe(t),isAd:t.isAd,language:t.language,mango_url:ze.mango_url,picture:t.picture,shareBehavior:"share-behavior",tags:t.tags,laser_tags:t.laser_tags,title:t.title,tracking:this.tracking,translate:fe};ye.Application.init(e),ye.Application.addBehavior("share-behavior",Ie.bind(null,t))}},{key:"destroy",value:function(){ye.Application.destroy()}},{key:"_setTrackingFns",value:function(t){this.tracking=t}}])&&xe(e.prototype,n),i&&xe(e,i),t}();function Ae(){var t=(0,u.useState)(null),e=t[0],n=t[1],i=(0,u.useContext)(F.Z),r=(0,u.useContext)(U.Z).base_url,a=(0,De.Z)(i),o=(0,me.Z)();return(0,u.useEffect)((function(){window.BZFD.App=window.BZFD.App||new Oe(r,o),window.BZFD.App._setTrackingFns(a),n(window.BZFD.App)}),[i.id,a]),e}function be(t,e,n,i,u,r,a){try{var o=t[r](a),M=o.value}catch(c){return void n(c)}o.done?e(M):Promise.resolve(M).then(i,u)}function Ee(t){return function(){var e=this,n=arguments;return new Promise((function(i,u){var r=t.apply(e,n);function a(t){be(r,i,u,a,o,"next",t)}function o(t){be(r,i,u,a,o,"throw",t)}a(void 0)}))}}var Se=n(73035);function we(t){var e=t.buzz,n=void 0===e?{}:e,i=t.index,r=(0,u.useRef)(null),a=(0,u.useContext)(kt.Z),o=a.experiments,M=a.getFeatureFlagValue;return(0,u.useEffect)((function(){var t=r.current,e=M("ads_amazon_nca");t&&o.loaded&&e&&t.querySelectorAll("a[href]").forEach((function(t){(0,re.D1)(t.href)&&(t.classList.contains("js-aagc-modified")||(t.classList.add("js-aagc-modified"),function(t){var e=t.element;if(e){var n=e.href.match("/([a-zA-Z0-9]{10})(?:[/?]|$)"),i=new URL(e.href);e.setAttribute("data-aps-asin",n&&!(0,Se.B$)(e.href)?n[1]:null),e.setAttribute("data-aps-asc-tag",i.searchParams.get("tag")),e.setAttribute("data-aps-asc-subtag",i.searchParams.get("ascsubtag"))}}({element:t,buzz:n,index:i})))}))}),[o]),r}function _e(t){t.buzz;var e=(0,u.useRef)(null),n=(0,u.useContext)(kt.Z),i=n.experiments,r=n.getExperimentValue,a=(n.getFeatureFlagValue,(0,u.useState)(!1)),o=a[0],M=a[1];return(0,u.useEffect)((function(){i&&i.loaded&&M("control"===r("RT-1150-ButtonPostTap-abtest",{rejectErrors:!1}))}),[i,r]),(0,u.useEffect)((function(){var t=e.current;t&&o&&t.querySelectorAll("a[href]").forEach((function(t){(0,re.D1)(t.href)&&(t.classList.contains("js-buttonposttap-modified")||(t.classList.add("js-buttonposttap-modified"),t.classList.add("noskim"),function(t){var e=t.element,n=t.experiments;if(e){var i={platform:(0,Se.b5)(),origin:(0,Se.P$)({origin:(0,Se.wH)(e)}),experiment:(0,Se.wp)(n),pubhubId:(0,Se.hp)(),bioId:(0,Se.pw)(),linkId:e.getAttribute("data-vars-link-id")||"0",module:"0",rank:"0"},u=!0,r=!1,a=void 0;try{for(var o,M=["origin","linkId"][Symbol.iterator]();!(u=(o=M.next()).done);u=!0){var c=o.value;i[c]&&"0"!==i[c]||delete i[c]}}catch(j){r=!0,a=j}finally{try{u||null==M.return||M.return()}finally{if(r)throw a}}var s=(0,re.mL)(e.href,i);e.href="https://r.bttn.io?btn_ref=org-21949126c81417e9&btn_url="+encodeURIComponent(s+"%2C".concat((0,Se.o6)()||"0"))}}({element:t,experiments:i})))}))}),[o,i]),e}var Ce=["japan"],he=["--disable-skimlinks-lib","noskimlinks"],ve=["advertiser","aunews","business","canadanews","community","francenews","japannews","lgbt","politics","quickpost","science","tech","uknews","ukpolitics","usnews","world"];function ke(t){var e=t.buzz,n=void 0===e?{}:e,i=(0,u.useRef)(null),r=(0,u.useContext)(kt.Z).experiments;return(0,u.useEffect)((function(){var t=i.current,e=-1!==Ce.indexOf(n.classification.edition.toLowerCase()),u=-1!==ve.indexOf(n.classification.section.toLowerCase()),a=he.some((function(t){return n.tags.includes(t)})),o="uk"===n.classification.edition.toLowerCase()&&"shopping"!==n.classification.section.toLowerCase();if(!(!t||e||u||a||n.isAd||0!==n.flags.sensitive||0!==n.flags.nsfw||o)){var M=(0,Se.wp)(r);t.querySelectorAll("a[href]").forEach((function(t){t.classList.contains("js-skimlink-subtag-modified")||(t.classList.add("js-skimlink-subtag-modified"),t.hasAttribute("data-skimlinks-tracking")||t.setAttribute("data-skimlinks-tracking",n.id||""),t.addEventListener("click",(function(t){!function(t){var e=t.element,n=t.experimentSubtags;if(e){var i="https://go.redirectingat.com/".replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),u=i+"/?\\?id=(.*)&sref=(.*)&url=(http.*)&xs=(.*)",r=new RegExp(i+"/?\\?id=(.*)&site=(.*)&xs=(.*)&url=(http.*)"),a=new RegExp(u),o=(0,re.nC)(e)["link-id"];if(r.test(e.href)||a.test(e.href)){var M=decodeURIComponent((0,re.Wy)(e).xcust||"").split("|")||"";M[1]=(0,Se.b5)(),M[2]=(0,Se.o6)(),M[3]=n,M[4]=o,(0,re.tF)(e,{xcust:encodeURIComponent(M.join("|"))})}}}({element:t.target.closest("a"),experimentSubtags:M})}),{once:!0}))})),document.querySelector('script[src*="skimresources"]')||(0,ht.v)("https://s.skimresources.com/js/74679X1524629.skimlinks.js")}}),[n.id,r.loaded]),i}var Qe=n(33402),Ue=n(5291),Ye=n(95829),Pe=n(81732);function Ze(t,e,n,i,u,r,a){try{var o=t[r](a),M=o.value}catch(c){return void n(c)}o.done?e(M):Promise.resolve(M).then(i,u)}function Be(t){return function(){var e=this,n=arguments;return new Promise((function(i,u){var r=t.apply(e,n);function a(t){Ze(r,i,u,a,o,"next",t)}function o(t){Ze(r,i,u,a,o,"throw",t)}a(void 0)}))}}var We=!1,Ge=function(){return We||(We=new Pe.$P({cluster:ze.CLUSTER})),We};function Re(){return He.apply(this,arguments)}function He(){return(He=Be(Le().mark((function t(){return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ge();case 2:t.sent.trackEvent();case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Fe=n(13607);function Je(t,e,n,i,u,r,a){try{var o=t[r](a),M=o.value}catch(c){return void n(c)}o.done?e(M):Promise.resolve(M).then(i,u)}var Ve=function(){var t,e=(t=Le().mark((function t(e){var n,i,u,r,a,o,M;return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.subbuzzElement,i=e.element,u=e.buzz,r=e.isPermutiveEnabled,i.hasAttribute("data-affiliate")&&(a=(0,re.nC)(i),o=n?n.querySelector("div.subbuzz-anchor"):null,M=o&&o.id?o.id:null,(0,Qe.iZ)(u.destination_name,u,{section:u.classification.section,currency:a["price.currency"],contents:a.href,value:a["price.value"],linkId:a["link-id"],"subbuzz-id":M}),r&&(0,Ye.m)({affiliate:a.affiliate,campaign:a.campaign,href:a.href,name:a.name,price:{value:Number(parseFloat(a["price.value"]||0).toFixed(2)),currency:a["price.currency"]||""},redirectUrl:a.redirecturl,keywords:"string"===typeof a.keywords?a.keywords.split(","):[],retailers:"string"===typeof a.retailers?a.retailers.split(","):[],affiliateLinkId:a["link-id"]},u),(0,Ue.w)(),Re());case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,u){var r=t.apply(e,n);function a(t){Je(r,i,u,a,o,"next",t)}function o(t){Je(r,i,u,a,o,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();function qe(t){var e=t.buzz,n=void 0===e?{}:e,i=(0,u.useRef)(null),r=(0,u.useContext)(Fe.Z).tracking,a=r.consentValue,o=r.isConsentReady,M=(0,(0,u.useContext)(kt.Z).getFeatureFlagValue)("ADSGROUP-442-permutive");return(0,u.useEffect)((function(){var t=i.current;t&&o&&(!o||a)&&null!==M&&t.querySelectorAll("a[href]").forEach((function(e){(0,Se.Uz)(e)&&e.addEventListener("click",(function(e){Ve({subbuzzElement:t,element:e.target.closest("a"),buzz:n,isPermutiveEnabled:M})}))}))}),[n,o,a,M]),i}var Ke=n(90093);function Xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $e(t){for(var e=1;e/g,"p>"):j.replace(//g,"p>"))}}),(0,i.jsxs)("div",{className:Mn().infoWrapper,children:[(0,i.jsx)("div",{className:"bold xs-text-4 xs-mt2 text-gray",children:e.product_price}),(0,i.jsxs)("div",{className:"xs-text-6 text-gray-lightest ",children:["on ",e.retailer]})]})]})]})},ln=n(50060),Ln=n.n(ln);function yn(t,e,n,i,u,r,a){try{var o=t[r](a),M=o.value}catch(c){return void n(c)}o.done?e(M):Promise.resolve(M).then(i,u)}function gn(t){return function(){var e=this,n=arguments;return new Promise((function(i,u){var r=t.apply(e,n);function a(t){yn(r,i,u,a,o,"next",t)}function o(t){yn(r,i,u,a,o,"throw",t)}a(void 0)}))}}function Tn(){return Tn=gn(Le().mark((function t(e){var n,i,u,r,a,o;return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.productId,i=e.setProducts,u=e.pageSize,r="https://recsys-api.buzzfeed.com/web/related-product-unit/product?product_id=".concat(n,"&page_size=").concat(u),t.prev=2,t.next=5,fetch(r,{});case 5:return a=t.sent,t.next=8,a.json();case 8:(o=t.sent)&&o.results&&i(o.results),t.next=15;break;case 12:return t.prev=12,t.t0=t.catch(2),t.abrupt("return",t.t0);case 15:return t.abrupt("return",{});case 16:case"end":return t.stop()}}),t,null,[[2,12]])}))),Tn.apply(this,arguments)}function dn(t){for(var e=t.buzz,n=t.hasRelatedProductsLasertag,i=(0,u.useState)(),r=i[0],a=i[1],o="",M=0;M4&&(0,i.jsx)("div",{className:Mn().seeMoreButtonWrapper,children:(0,i.jsxs)("button",{className:Mn().seeMoreButton,onClick:Z,children:["See ",v.length-A," more"]})})]}),(0,i.jsxs)("div",{className:Mn().feedbackWrapper,children:[(0,i.jsx)("span",{children:" Have thoughts on this unit?"}),(0,i.jsx)("a",{href:"https://docs.google.com/forms/d/e/1FAIpQLSf5D1hohLfrGtwLP5nhS6lqPoVtZ7YydJhpncqwxlMAvllUnQ/viewform",className:Mn().feedbackLink,target:"_blank",rel:"noreferrer",children:"Submit your feedback."})]})]})}),S)}),[o,v,B,Z,_,Y,M,S,A,L,T,k,j]),(0,i.jsx)(i.Fragment,{})},pn=n(33528),fn=n.n(pn),On=function(t){var e=t.className,n=t.fill,u=void 0===n?"none":n,r=t.title,a=void 0===r?"":r,o=t.stroke,M=void 0===o?"":o;return(0,i.jsxs)("svg",{className:e,fill:u,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:[(0,i.jsx)("title",{children:a}),(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M5.5 3L10.5 8L5.5 13",stroke:M||"#5246f5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})};function An(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bn(t,e){if(null==t)return{};var n,i,u=function(t,e){if(null==t)return{};var n,i,u={},r=Object.keys(t);for(i=0;i=0||(u[n]=t[n]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u}var En=function(t){var e=t.className,n=t.title,u=void 0===n?"BuzzFeed Trending":n,r=bn(t,["className","title"]);return(0,i.jsxs)("svg",function(t){for(var e=1;e90&&k?fn().longVisualPromoTitle:""),style:{"--promoThemeColor1":Q.color1,"--promoThemeColor2":Q.color2,"--promoThemeTextColor":Q.textColor},children:[k&&(0,i.jsx)("img",{alt:"",className:fn().visualPromoImage,src:k,"aria-hidden":!0}),(0,i.jsxs)("div",{className:fn().visualPromoContent,children:[(0,i.jsxs)("div",{className:fn().visualPromoCopy,children:[(0,i.jsxs)("div",{className:fn().visualPromoPill,children:[(0,i.jsx)(En,{className:fn().visualPromoIcon,"aria-hidden":!0}),"Hot Topic"]}),(0,i.jsx)("div",{className:fn().visualPromoTitle,children:h})]}),(0,i.jsxs)("div",{className:fn().visualPromoCta,children:[v,(0,i.jsx)(On,{className:fn().carret,stroke:Q.textColor})]})]})]})};wn.propTypes={buzz:a().object.isRequired,itemType:a().oneOf(["text","card"]),positionInUnit:a().number,subunitName:a().string,subunitType:a().string};var _n=wn,Cn=n(35167),hn=n(15449),vn=n(48570),kn=n(51171),Qn=n(71520),Un=n(14125);var Yn=n(29014),Pn=n.n(Yn);function Zn(t){var e,n=t.buzz,r=void 0===n?{}:n,a=t.showOnTopQuiz,M=void 0!==a&&a,c=(0,u.useState)(null),s=c[0],j=c[1],l=(0,u.useContext)(o.$),L=(0,u.useState)(null),y=L[0],g=L[1],T=(0,u.useRef)(null),d=(0,u.useRef)(!1),z=(0,Un.yR)(r)||M,D=(0,u.useContext)(I.Z).isCommentsPanelOpen,m=null===l||void 0===l||null===(e=l.env)||void 0===e?void 0:e.userCountry,x=(0,N.G)(r)?"buzzfeed_news":"buzzfeed",p=(0,Qn.Q)("backfill",x,M),f=p.embedId,O=p.playerId,A="player-".concat(f);return(0,u.useEffect)((function(){if(z&&m&&!d.current){if(d.current=!0,!s){var t="https://capi.connatix.com/tr/si?token=".concat(O,"&cid=").concat(Qn.k),e=new Image;e.src=t,j(e)}window.cnx.cmd.push((function(){window.cnx({playerId:O,settings:{rendering:{insertPosition:window.cnx.configEnums.InsertPositionEnum.WithinContainer}}}).render(A,(function(t,e){t?console.error("Player rendering failed:",t):g(e)}))}))}}),[z,m,O,A,s]),function(t,e,n){var i=(0,u.useRef)(!1);(0,u.useEffect)((function(){if(!n)return null===t||void 0===t||t.disableFloatingMode(),void(i.current=!1);if(n&&e.current&&"function"===typeof t.enableFloatingMode&&"function"===typeof t.disableFloatingMode&&"undefined"!==typeof IntersectionObserver){var u=e.current;u&&(u.style.minHeight="100px");var r=new IntersectionObserver((function(e){e.forEach((function(e){var n=e.boundingClientRect,u=window.innerHeight||document.documentElement.clientHeight;!e.isIntersecting&&n.top<0&&!i.current?(t.enableFloatingMode(),i.current=!0):e.isIntersecting&&n.bottom<=u&&i.current&&(t.disableFloatingMode(),i.current=!1)}))}),{threshold:[0,.1],rootMargin:"0px"});return u&&r.observe(u),function(){u&&r.unobserve(u)}}}),[n,t,e])}(y,T,y&&window.innerWidth<=1025&&(0,Un.$0)(r)&&!D||!1),z&&m?(0,i.jsx)("div",{className:"bf-cnx-override ".concat(M?Pn().bfElementsWrapperQuiz:Pn().bfElementsWrapper),children:(0,i.jsx)("div",{id:A,ref:T,className:"bf-cnx-player"})}):""}var Bn=n(89013),Wn=n.n(Bn);function Gn(){var t=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=document.createElement("script");e.type="text/javascript",e.innerHTML='(apscustom = window.apscustom || []).push({ id: "93b7dd52-a8ce-11ed-afa1-0242ac120002:1"});',t.current.appendChild(e)}),[t]),(0,i.jsx)("div",{className:Wn().amazonAiWrapper,children:(0,i.jsx)("div",{ref:t,className:"apscustom",id:"93b7dd52-a8ce-11ed-afa1-0242ac120002:1"})})}function Rn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hn=(0,jt.Z)((function(t){var e,n=t.config.adPos,r=(0,u.useContext)(F.Z),a=(0,u.useContext)(o.$),M=null===a||void 0===a||null===(e=a.env)||void 0===e?void 0:e.userCountry,c=(0,Un.yR)(r),s=(0,u.useState)("control"),j=s[0],N=s[1],l=(0,u.useContext)(kt.Z),L=l.experiments,y=l.getExperimentValue;return(0,u.useEffect)((function(){L&&L.loaded&&N(y("RT-583-amazon-recommendation-abtest",{rejectErrors:!1}))}),[L,y]),L.loaded?"on"===j&&"promo-inline2"===n?(0,i.jsx)(Gn,{}):c&&"promo-inline2"===n&&"jp"===M?(0,i.jsx)(Zn,{buzz:r}):(0,i.jsx)(O.Z,function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t||_)&&j.current&&E.sort((function(t,e){var n,i;return((null===t||void 0===t||null===(n=t.messageData)||void 0===n?void 0:n.subbuzzIndex)||0)-((null===e||void 0===e||null===(i=e.messageData)||void 0===i?void 0:i.subbuzzIndex)||0)})).forEach((function(t){j.current.onBFPReady(t.messageData)}))}),[E,j,r.id,_]),(0,u.useEffect)((function(){if(!I.loaded)return function(){};if("loaded"!==a.status)return function(){};var t,e,n=2;return r.is_quiz&&!r.isBFPQuiz&&((c||p)&&(n=1),(t=(0,vn.Z)({AdUnit:O.Z,buzz:r,disablePromo1Native:m,element:s.current,onAdsReady:function(t){return y(L.concat(t))},pixiedust:T,presetDensity:n,skipNUnits:!1})).init()),(e=(0,hn.Z)({AdUnit:Hn,buzz:r,element:s.current,onAdsReady:function(t){y(L.concat(t))},pixiedust:T,skipNUnits:!1,presetDensity:"increase"===A?"density_increase":c||x||"variant1"===f?"density_200":"variant2"===f&&"density_275",presetPlacements:"increase"===A?"placements_increase":c||x||"variant1"===f?"placements_1":"variant2"===f&&"placements_2",looseTitles:"increase"===A})).init(),function(){e&&e.destroy(),t&&t.destroy()}}),[r.id,a,I.loaded]),(0,u.useEffect)((function(){if(!I.loaded)return function(){};if("loaded"!==a.status)return function(){};var t=2;return r.is_quiz&&r.bfpFormats.length>0&&((c||p||"increase"===A)&&(t=1),j.current=(0,kn.Z)({AdUnit:O.Z,disablePromo1Native:m,element:s.current,onAdsReady:function(t){return y(L.concat(t))},pixiedust:T,presetDensity:t,skipNUnits:!1}),j.current.init()),function(){j.current&&j.current.destroy()}}),[r.id,a,I.loaded]),(0,u.useEffect)((function(){if((0,N.G)(r)&&(null===s||void 0===s?void 0:s.current)&&!window.pgmApi&&L.length&&"disabled"!==a.status){var t=document.createElement("div");t.setAttribute("id","publicGood"),t.classList.add("loading","clearfix","ad-ex");var e={partnerId:"buzzfeed-buzzfeed-news"};"dev"!==ze.CLUSTER&&"stage"!==ze.CLUSTER||(e.attributes={targetId:"2d3d74ba-3807-4e28-875a-dfc5d67706f8",targetType:"campaign"}),(0,ht.v)("https://assets.publicgood.com/pgm/v1/pgm-api.js",document.body).then(function(){var n,i=(n=Le().mark((function n(i){var u;return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i.onload();case 2:u=Math.floor(L.length/2),s.current.querySelectorAll(".js-ad-placement")[u].insertAdjacentElement("afterend",t),window.pgmApi.create(t,qn({},e,{onShow:function(){t.classList.remove("loading");var e=document.createElement("h2");e.classList.add("ad__disclosure--ex"),e.innerText="ARTICLE CONTINUES BELOW",t.insertAdjacentElement("afterbegin",e)},onHide:function(){window.pgmApi.remove(),t.remove()}}));case 6:case"end":return n.stop()}}),n)})),function(){var t=this,e=arguments;return new Promise((function(i,u){var r=n.apply(t,e);function a(t){Jn(r,i,u,a,o,"next",t)}function o(t){Jn(r,i,u,a,o,"throw",t)}a(void 0)}))});return function(t){return i.apply(this,arguments)}}())}}),[r,a,L,s,ht.v]),(0,i.jsxs)("div",{ref:s,children:["jp"!==M&&(0,i.jsx)(Zn,{buzz:r}),(0,i.jsx)(t,qn({},e)),L.map((function(t,e){return(0,i.jsx)(t,{},e)}))]})}};function ti(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=Ae(),n=(0,u.useState)(!1),i=n[0],r=n[1],a=(0,u.useRef)(t).current;return(0,u.useEffect)((function(){if(!i){if(t.inline_js){var e=document.body,n=document.createElement("script");n.innerHTML=t.inline_js,e.appendChild(n)}t.js&&function(){u.apply(this,arguments)}()}function u(){return u=Ee(Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all(t.js.map(function(){var t=Ee(Le().mark((function t(e){return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ht.v)(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:r(!0),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),(0,M.Tb)(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),u.apply(this,arguments)}}),[a,i]),e&&i?e:null}(r.assets);!function(){var t=(0,u.useContext)(F.Z);(0,u.useEffect)((function(){window.clientEventTracking={getPageContextLayer:function(){return(0,D.z4)(t)},env:ze.CLUSTER}}),[t])}();var s=(0,A.useTranslation)("common").t,j=r.subbuzzes?ei(r.subbuzzes):[],N=["list","long"].reduce((function(t,n){return e.format.page_type.includes(n)&&(t+="buzz--".concat(n)),t}),"");if("breaking"===e.format.page_type&&j.length){var l=j.find((function(t){return t.includes("buzz__update")}));if(l){var L=j.indexOf(l);j.splice(L,0,'

'.concat(s("updates"),"

"))}}return(0,u.useEffect)((function(){return c&&c.init&&c.init(e),function(){c&&c.destroy&&c.destroy()}}),[e,c]),(0,u.useEffect)((function(){var t;if("buzzfeed_news"===a&&(null===o||void 0===o?void 0:o.current)){var e=o.current.querySelectorAll(".js-subbuzz-wrapper"),n=e.length-1;(null===(t=e[n-1])||void 0===t?void 0:t.querySelector(".subbuzz-bfp--related_links"))&&(n-=1)}}),[a,o]),(0,i.jsx)("div",{className:"\n ".concat(N,"\n buzz--").concat(e.category,"\n subbuzzes-wrapper\n subbuzzes--").concat(a,"\n "),ref:o,children:j.map((function(t,n){var r,a,o,M;return(0,i.jsxs)(u.Fragment,{children:[0===n&&"connatix_video"!==(null===(r=null===e||void 0===e?void 0:e.sub_buzzes[0])||void 0===r?void 0:r.format_name)&&(0,i.jsx)(wn,{buzz:e,itemType:"text",positionInUnit:n}),1===n&&"connatix_video"===(null===(a=null===e||void 0===e?void 0:e.sub_buzzes[0])||void 0===a?void 0:a.format_name)&&(0,i.jsx)(wn,{buzz:e,itemType:"text",positionInUnit:n}),(0,i.jsx)(ni,{html:t,buzz:e,index:n},n),(3===n||n===(null===e||void 0===e||null===(o=e.sub_buzzes)||void 0===o?void 0:o.length)-1&&(null===e||void 0===e||null===(M=e.sub_buzzes)||void 0===M?void 0:M.length)<4)&&(0,i.jsx)(wn,{buzz:e,itemType:"card",positionInUnit:n,unitType:3===n?"buzz_body":"buzz_bottom"})]},n)}))})};ii.propTypes={subbuzzData:a().shape({assets:a().object,subbuzzes:a().array})};var ui=$n(ii),ri=n(60319),ai=n.n(ri),oi=n(21038);function Mi(t){var e=t.isMobile,n=t.placement,r=void 0===n?1:n,a=(0,u.useState)(),o=a[0],M=a[1],c=(0,u.useState)(),s=c[0],j=c[1],N=(0,u.useState)(),l=N[0],L=N[1],y=(0,u.useState)(),g=y[0],T=y[1],d=(0,u.useContext)(F.Z),I=d.classification,z=d.flags,D=d.isPreview,m=d.tags;(0,u.useEffect)((function(){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t?"SP":"Desktop",i="taboola-below-article-thumbnails-".concat(t?"sp":"desktop").concat(e),u=1==e?"thumbnails-a":"alternating-thumbnails-a",r="\n window._taboola = window._taboola || [];\n if (publishedDate > firstDecDate) {\n // MG code\n _taboola.push({\n mode: '".concat(u,"',\n container: '").concat(i,"',\n placement: 'Below Article Thumbnails ").concat(n).concat(e,"',\n target_type: 'mix'\n });\n } else {\n //Rev share code\n _taboola.push({\n mode: '").concat(u,"',\n container: '").concat(i,"',\n placement: 'Below Article Thumbnails ").concat(n).concat(e," Past',\n target_type: 'mix'\n });\n }\n ");return{id:i,inline_js:r}}(e,r),n=t.id,i=t.inline_js;L(n),T(i)}),[e]);var x=!z.sensitive&&!z.nsfw&&!z.ad&&!m.includes("--noads")&&!D&&"Japan"===I.edition;return(0,u.useEffect)((function(){oi.hi.getTCData().then((function(t){var e=t.tcData,n=e.gdprApplies,i=e.eventStatus;if(n&&!["useractioncomplete","tcloaded"].includes(i)||document.getElementById("tb_loader_script"))s||o||(oi.hi.setTCFListener((function(t){var e=t.tcData;M("useractioncomplete"===e.eventStatus||"tcloaded"===e.eventStatus)})),j(!0));else{var u=document.createElement("script");u.type="text/javascript",u.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({article:'auto'});\n !function (e, f, u, i) {\n if (!document.getElementById(i)){\n e.async = 1;\n e.src = u;\n e.id = i;\n f.parentNode.insertBefore(e, f);\n }\n }(document.createElement('script'),\n document.getElementsByTagName('script')[0],\n '//cdn.taboola.com/libtrc/buzzfeedjapan/loader.js',\n 'tb_loader_script');\n if(window.performance && typeof window.performance.mark == 'function')\n {window.performance.mark('tbl_ic');}\n",document.head.appendChild(u);var r=document.createElement("script");r.type="text/javascript",r.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({flush: true});\n",document.body.appendChild(r),o||M(!0)}}))}),[s,o]),x&&(0,i.jsxs)("div",{className:ai().taboolaWrapper,children:[1==r&&(0,i.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:'\n var docString = document.documentElement.innerHTML.toString();\n var arrPublished = docString.split("datePublished");\n var publishedDateString = arrPublished[1].split(\'"\')[2];\n var arrModified = docString.split("dateModified");\n var modifiedDateString = arrModified[1].split(\'"\')[2];\n if(modifiedDateString){\n // replacing publishedDate if dateModified has value\n publishedDateString = modifiedDateString;\n }\n var publishedDate = new Date(publishedDateString);\n var firstDecDate = new Date("12/01/2022");\n'}}),(0,i.jsx)("div",{id:l}),(0,i.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:g}})]})}Mi.propTypes={isMobile:a().bool,placement:a().number};var ci=Mi,si=n(94200),ji=n.n(si),Ni=n(84952),li=["IN","PH","SG","ID","MY","PK","HK","TH","KR","BD","VN","LK","TW","NP","KH","BN","PG","MO","LA","BT","TL","MN"];var Li=function(){var t=(0,u.useState)(),e=t[0],n=t[1],r=(0,u.useState)(),a=r[0],o=r[1],M=(0,u.useRef)(null),c=(0,u.useContext)(F.Z),s=c.classification,j=c.flags,N=c.isPreview,l=c.tags,L=!j.sensitive&&!j.nsfw&&!j.ad&&!l.includes("--noads")&&!N&&"Japan"!==s.edition&&-1!==li.indexOf((0,Ni.pP)());return(0,u.useEffect)((function(){L&&oi.hi.getTCData().then((function(t){var i=t.tcData,u=i.gdprApplies,r=i.eventStatus;if(u&&!["useractioncomplete","tcloaded"].includes(r)||document.getElementById("tb_loader_script"))a||e||(oi.hi.setTCFListener((function(t){var e=t.tcData;n("useractioncomplete"===e.eventStatus||"tcloaded"===e.eventStatus)})),o(!0));else{var c=document.createElement("script");c.type="text/javascript",c.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({article:'auto'});\n !function (e, f, u, i) {\n if (!document.getElementById(i)){\n e.async = 1;\n e.src = u;\n e.id = i;\n f.parentNode.insertBefore(e, f);\n }\n }(document.createElement('script'),\n document.getElementsByTagName('script')[0],\n '//cdn.taboola.com/libtrc/buzzfeed-international/loader.js',\n 'tb_loader_script');\n if(window.performance && typeof window.performance.mark == 'function')\n {window.performance.mark('tbl_ic');}\n",document.head.appendChild(c);var s=document.createElement("script");s.type="text/javascript",s.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({\n mode: 'alternating-thumbnails-a',\n container: 'taboola-below-article-thumbnails',\n placement: 'Below Article Thumbnails',\n target_type: 'mix'\n });\n",M.current.appendChild(s);var j=document.createElement("script");j.type="text/javascript",j.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({flush: true});\n",document.body.appendChild(j),e||n(!0)}}))}),[a,e]),L&&(0,i.jsx)("div",{className:ji().taboolaWrapper,ref:M,children:(0,i.jsx)("div",{id:"taboola-below-article-thumbnails"})})},yi=n(31284),gi=n.n(yi),Ti=function(t){var e=t.topic,n=t.buzz,r=t.index,a=e.tag_name.replace(/_/g,"-"),o=(0,u.useMemo)((function(){return{item_type:"button",item_name:e.tag_display_name,subunit_name:"topic_in_article",subunit_type:"component",unit_type:"buzz_body",unit_name:n.id,target_content_type:"feed",target_content_id:"topic_".concat(a),position_in_subunit:r}}),[n.id,e.tag_name,r]),M=(0,Sn.R)(o);return(0,i.jsx)("a",{ref:M,href:"/topic/".concat(a),children:e.tag_display_name})},di=function(t){var e,n,u=t.buzz,r=(null===(e=u.laser_tags)||void 0===e||null===(n=e.bf_content_description)||void 0===n?void 0:n.topic)||[];return r.length?(0,i.jsxs)("div",{className:gi().topics,children:[(0,i.jsx)("h2",{className:gi().heading,children:"Topics in this article"}),(0,i.jsx)("ul",{children:r.slice(0,3).map((function(t,e){return(0,i.jsx)("li",{children:(0,i.jsx)(Ti,{topic:t,buzz:u,index:e})},e)}))})]}):null},Ii=n(48121),zi=n.n(Ii);function Di(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mi=function(t){return(0,i.jsx)("svg",function(t){for(var e=1;e1710959400);(0,u.useEffect)((function(){(0,N.G)(a)&&(document.querySelector("body").style.overflowX="hidden")}),[a,a.format.page_width]),(0,u.useEffect)((function(){var t=S("RT-946-shopping-recirc-bfn",{rejectErrors:!1});(0,N.G)(a)&&"var1"===t&&h(!0)}),[S]),(0,u.useEffect)((function(){if(E&&E.loaded){var t=w("taboola_apac");Z(t)}}),[E,w]);var R=(0,u.useCallback)((function(){g(!1)}),[g]);return(0,i.jsxs)("main",{className:"".concat(T().main," ").concat(T()[z]," embed-content"),id:"buzz-content",ref:d,children:[a.longform_custom_header&&(0,i.jsx)(Lt,{data:a.longform_custom_header}),(0,i.jsx)("div",{className:"".concat(T().article," ").concat(T()[z]," ").concat(T().wide," ").concat(T()[a.bfpTheme]||""," embed-post"),children:(0,i.jsxs)("div",{className:T().content,children:[(0,i.jsxs)("article",{className:"featured-post",children:[a.lookbookPalette?(0,i.jsx)(wt,{buzz:a,commentCount:f,showShareBar:B}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(gt.Z,{buzz:a,badges:L}),(0,i.jsx)(p,{buzz:a,commentCount:f,showShareBar:B,destination:z})]}),(0,i.jsx)(Oi,{buzz:a,postRef:d}),(0,i.jsx)(ui,{buzz:a,subbuzzData:o,pixiedust:{unit_type:"buzz_body",unit_name:a.id,position_in_unit:0}}),a.hasStudiosPromoUnit&&(0,i.jsx)(je,{buzz:a}),(0,N.G)(a)&&(0,i.jsx)(di,{buzz:a}),(0,i.jsx)(v,{buzz:a}),(0,i.jsx)(Q.Z,{buzz:a})]}),(0,i.jsxs)(s.Z,{onError:M.Tb,children:[(0,i.jsx)(O.Z,{type:"subbuzz",pixiedust:{unit_type:"buzz_bottom",unit_name:a.id,position_in_unit:0}}),P&&(0,i.jsx)(_t.Z,{children:(0,i.jsx)(Li,{})}),"Japan"===a.classification.edition&&(0,i.jsx)(_t.Z,{children:(0,i.jsx)(ci,{isMobile:m})}),!G&&(W?(0,i.jsx)(Xt,{}):(0,i.jsx)(Ft,{})),G&&(0,i.jsx)(Mt,{contentId:a.id,isSponsored:l(a)}),D&&(0,i.jsx)(k.Z,{buzz:a,commentCount:f,onCommentsLoaded:A,firstPage:100,repliesFirstPage:2,perPage:100}),D&&(0,i.jsx)(_n,{buzz:a,subunitName:"comments",subunitType:"component",unitType:"buzz_bottom"}),!a.isAd&&(null===(e=a.laser_tags)||void 0===e||null===(n=e.bf_content_description)||void 0===n||null===(r=n.topic)||void 0===r?void 0:r.some((function(t){return"2024_elections"===t.tag_name})))&&(0,i.jsx)(hi,{}),"buzzfeed"===z&&!a.isShopping&&!(0,N.G)(a)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pt.Z,{style:{marginBottom:"3rem"},isNewDesign:!0}),(0,i.jsx)(O.Z,{type:"story-bpage-desktop",pixiedust:{unit_type:"buzz_bottom",unit_name:a.id,position_in_unit:1},style:{marginTop:"-2rem"}})]}),(0,i.jsx)($t.d$,{}),"buzzfeed"===z&&a.isShopping&&!(0,N.G)(a)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.Z,{type:"story-bpage-desktop",pixiedust:{unit_type:"buzz_bottom",unit_name:a.id,position_in_unit:1}}),(0,i.jsx)(Pt.Z,{style:{marginTop:m?"1rem":"-2rem"},isNewDesign:!0})]}),(0,i.jsx)(Ct.Z,{}),(0,i.jsx)(yt.Z,{}),m&&(0,i.jsx)(O.Z,{type:"bigstory",pixiedust:{unit_type:"buzz_bottom",unit_name:a.id,position_in_unit:1}})]})]})}),(0,i.jsxs)(s.Z,{onError:M.Tb,children:[(0,i.jsx)(wi,{}),"Japan"===a.classification.edition&&(0,i.jsx)(_t.Z,{children:(0,i.jsx)(ci,{placement:2,isMobile:m})}),(0,N.G)(a)&&(0,i.jsx)(j.Z,{jumpTo:"news-footer",className:"skipToFooter",label:"Skip to footer"}),(0,N.G)(a)&&(C?(0,i.jsx)(Pt.Z,{style:{marginBottom:"3rem",marginTop:"-2rem"},isNewDesign:!1}):(0,i.jsx)(Yt,{})),(0,i.jsx)($t.cM,{})]}),y&&(0,i.jsx)(Wt,{onOverlayClick:R})]})}vi.propTypes={buzz:a().object.isRequired,badges:a().array,subbuzzData:a().shape({assets:a().object,subbuzzes:a().array})};var ki=vi;function Qi(t){var e=t.pixiedust;return(0,i.jsx)(O.Z,{config:{adType:"ex",adPos:"promo-inline-trending-ad-unit-slot",size:[Cn.J7.PROGRAMMATIC_SMARTPHONE_BANNER,Cn.J7.PROGRAMMATIC_MEDIUM_RECTANGLE,Cn.J7.PROGRAMMATIC_LEADERBOARD,Cn.J7.NATIVE,Cn.J7.FLUID],viewability:"high"},pixiedust:e})}var Ui=function(){var t=(0,u.useContext)(F.Z),e=(0,u.useContext)(Fe.Z).tracking,n=e.consentValue,r=e.isConsentReady,a=!t.isAd&&"news"!==t.metavertical&&!t.flags.sensitive&&!t.flags.nsfw&&t.isUS&&-1!==ve.indexOf(t.category.toLowerCase());return(0,u.useEffect)((function(){a&&n&&r&&(0,ht.v)("//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=8e4d6210-350e-4d17-b9c5-70937cc906ff")}),[a,n,r]),a?(0,i.jsx)("div",{id:"amzn-assoc-ad-8e4d6210-350e-4d17-b9c5-70937cc906ff"}):null};var Yi=function(t){var e,n=t.buzz,u=(0,A.useTranslation)("common").t;return n.tags.forEach((function(t){t.includes("--commerce-seo-links-")&&(e=t.replace("--commerce-seo-links-",""))})),e&&""!==e&&"Choose"!==e&&["US"].some((function(t){return t===n.classification.edition}))&&["en"].some((function(t){return t===n.language}))?(0,i.jsx)("div",{className:"subbuzz subbuzz-text xs-mb4 xs-relative",children:(0,i.jsx)("h2",{dangerouslySetInnerHTML:{__html:u("COMMERCE_SEO_"+e.toUpperCase())}})}):null};var Pi=function(){var t,e=(0,u.useContext)(F.Z),n=(0,u.useContext)(o.$),r=null===n||void 0===n||null===(t=n.env)||void 0===t?void 0:t.userCountry,a=!(0,N.G)(e)&&"Japan"!==e.classification.edition&&!e.isAd&&("au"===r||"nz"===r),M="dev"!==ze.CLUSTER&&"stage"!==ze.CLUSTER,c="\n window.PubFeedHeader = true;\n var script = document.createElement('script');\n script.src = \"https://".concat(M?"pubfeed":"staging-pubfeed",".linkby.com/widget.js\";\n document.getElementsByTagName('head')[0].appendChild(script);\n ");if(!a)return"";if(a&&!window.PubFeedHeader){var s=document.createElement("script");s.type="text/javascript",s.innerHTML=c,document.head.appendChild(s)}return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"linkby-widget","data-type":"listicle"})})},Zi=n(83199);var Bi=function(){var t=(0,u.useContext)(F.Z),e=(0,u.useContext)(kt.Z).getFeatureFlagValue,n=e("RT-1042-Admiral-script-on-BFDC")||e("RT-1042-Admiral-script-on-BFN"),r=(0,u.useState)(!1),a=r[0],o=r[1];return(0,u.useEffect)((function(){n&&!a&&(o(!0),Zi.cL.init(t.destination_name))}),[n]),(0,i.jsx)(i.Fragment,{})},Wi=n(66070),Gi=n.n(Wi),Ri=n(3207),Hi="Take this quiz with friends in real time and compare results",Fi="Can you beat your friends at this quiz? Challenge them to a trivia party!",Ji="Check it out!",Vi="bpage_promo_v2",qi=function(t){return t.quizTrivia?(0,i.jsx)("div",{className:Gi().triviaLogo,children:"\xa0"}):(0,i.jsx)("div",{className:Gi().logo,children:"\xa0"})},Ki=function(t){var e=t.quizTrivia,n=Hi,u=Fi;return e?(0,i.jsx)("p",{className:Gi().triviaDesc,children:u}):(0,i.jsx)("p",{children:n})};var Xi=function(){var t,e,n,r,a,o,M,c,s,j=(0,u.useContext)(F.Z),N="trivia"===(null===(t=j.sub_buzzes)||void 0===t||null===(e=t[0])||void 0===e||null===(n=e.bfp_data)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.type),l=((null===(a=j.laser_tags)||void 0===a||null===(o=a.bf_post_properties)||void 0===o?void 0:o.quiz_render)||[]).find((function(t){return"bfp_quiz"===t.tag_name}));if("en"!==j.language)return null;var L="Advertising"===j.editorial_status&&(null===(M=j.laser_tags)||void 0===M||null===(c=M.bf_content_description)||void 0===c||null===(s=c.frames_and_formats)||void 0===s?void 0:s.some((function(t){return"quiz_party"===t.tag_name}))),y=["Moderated Community","Editorial"].includes(j.editorial_status)||L;if(!l||!y)return null;var g=Ji,T=Vi,d=["qurl=".concat(j.canonical_path),"utm_medium=referral","utm_source=buzzfeed","utm_campaign=".concat(T)],I="/quizparty?".concat(d.join("&"));return(0,i.jsxs)("div",{className:Gi().quizPartyPromo,children:[(0,i.jsx)("div",{className:Gi().title,children:"BuzzFeed Quiz Party!"}),(0,i.jsx)(qi,{quizTrivia:N}),(0,i.jsx)(Ki,{quizTrivia:N}),(0,i.jsx)("a",{className:Gi().quizPartyLink,href:I,onClick:function(){(0,D.TW)(j,{target_content_id:(0,Ri.z)(I),target_content_type:"url",item_name:"cta",item_type:"button",position_in_subunit:0,position_in_unit:0,subunit_name:"quizparty_promo",subunit_type:"component",unit_name:j.id,unit_type:"buzz_head"})},children:g})]})},$i=n(99377),tu=n(95705),eu=n.n(tu);function nu(t){var e=t.content,n=t.onClick,u=t.onClose,r=e.btnText;return(0,i.jsx)("div",{className:eu().container,children:(0,i.jsxs)("div",{className:eu().button,children:[(0,i.jsx)("div",{className:eu().link,onClick:function(){return n()},children:r}),(0,i.jsx)("div",{className:eu().close,onClick:function(){return u()},children:"\xd7"})]})})}var iu=n(35346),uu=n.n(iu);function ru(t){var e=t.content,n=t.onClick,u=t.onClose,r=e.titleText,a=e.descText,o=e.btnText,M=e.closeText;return(0,i.jsxs)("div",{className:uu().container,children:[(0,i.jsx)("div",{className:uu().icon,children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 38 38",children:[(0,i.jsx)("title",{children:"BuzzFeed Trending Arrow"}),(0,i.jsx)("path",{d:"M19 38C8.5 38 0 29.5 0 19S8.5 0 19 0s19 8.5 19 19-8.5 19-19 19zm9.9-19.4l-1.3-9-8.4 3.4 3.3 1.9-3.1 5.4-5.4-3-5.4 9.3 3 1.7 3.6-6.3 5.4 3.1 4.9-8.5 3.4 2z"})]})}),(0,i.jsx)("div",{className:uu().title,children:r}),(0,i.jsx)("div",{className:uu().desc,children:a}),(0,i.jsx)("div",{className:uu().button,onClick:function(){return n()},children:o}),(0,i.jsx)("div",{className:uu().close,onClick:function(){return u()},children:M})]})}var au=[{name:"facebook",enabled:!1,match:function(t,e){return"facebook"==e},content:{promoType:"card",titleText:"Life is better in the app!",descText:"What\u2019s trending, funny tweets, quizzes, games, and more.",btnText:"Get the BuzzFeed app",closeText:"Not now",campaignId:"post-fb"}},{name:"quiz",enabled:!0,match:function(t){return t.isQuiz},content:{promoType:"button",btnText:"More Quizzes in the App!",campaignId:"quiz"}},{name:"default",enabled:!1,match:function(t){return!t.isQuiz},content:{promoType:"button",btnText:"Get the App!",campaignId:"post"}},{name:"quiz-complete",enabled:!0,match:function(t){return t.isQuiz},content:{promoType:"card",titleText:"Quizzes are better in the app!",descText:"What\u2019s trending, funny tweets, quizzes, games, and more.",btnText:"Get the BuzzFeed app",closeText:"Not now",campaignId:"quiz-complete"}}],ou={ios:"https://apps.apple.com/app/apple-store/id352969997?pt=329394&&mt=8&ct=",android:"https://play.google.com/store/apps/details?id=com.buzzfeed.android&utm_campaign=",desktop:"https://www.buzzfeed.com/app?c="},Mu=n(96547),cu=n.n(Mu);function su(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ju(t){for(var e=1;e0?s:c).map((function(t){return t.tag_name.replaceAll("_"," ")})),N=(0,u.useState)([]),l=N[0],L=N[1],y=(0,u.useContext)(U.Z).base_url;return(0,u.useEffect)((function(){function t(){return(t=du(Le().mark((function t(){var e,n,i;return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=4,fetch("".concat(y,"/site-component/v1/commerce-product-search?q=retailer:amazon AND ").concat(encodeURIComponent(j.join(" OR "))));case 4:return n=t.sent,t.next=7,n.json();case 7:i=t.sent,L((null===i||void 0===i||null===(e=i.items)||void 0===e?void 0:e.slice(0,4))||[]),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Error fetching products:",t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)}j.length>0&&function(){t.apply(this,arguments)}()}),[]),l&&l.forEach((function(t,e){delete l[e].latest_subbuzz.id,l[e].latest_subbuzz.parent_buzz_canonical_url=l[e].detail_page_url})),0===l.length?null:(0,i.jsx)(zu,{buzz:M,products:l})}var zu=function(t){var e=t.buzz,n=t.products,r=oe({buzz:e}),a=ke({buzz:e}),o=(0,u.useMemo)((function(){return{unit_type:"buzz_bottom",unit_name:e.id}}),[e.id]);return(0,i.jsxs)("div",{className:gu().retailProductsGridWrapper,children:[(0,i.jsx)(V.Z,{id:"reactions-title",children:"Our Bestselling Products"}),(0,i.jsx)("div",{className:gu().retailProductsGrid,ref:(0,Ne.Z)(r,a),children:(0,i.jsx)(Lu.Z,{offset:0,len:4,products:n,useUnitTracking:Sn.R,tracking:o})})]})},Du=n(66376),mu=n(19925),xu=n.n(mu);var pu=function(t){var e=t.buzz,n=(0,u.useMemo)((function(){return{position_in_unit:0,unit_type:"buzz_body",unit_name:"quiz_result",subunit_type:"component",subunit_name:"quiz_result_links",target_content_id:e.id,target_content_type:"buzz",item_name:e.id,item_type:"card"}}),[e.id]),r=(0,Sn.R)(n);return e.hasQuizSharedResult?(0,i.jsxs)("section",{className:xu().container,children:[(0,i.jsx)(V.Z,{id:"takeQuizYourself",children:"Take this Quiz Yourself"}),(0,i.jsxs)("a",{className:xu().quizLink,href:e.canonical_url,ref:r,children:[(0,i.jsx)("img",{src:e.picture,className:xu().quizImg,alt:e.pictureAlt||""}),(0,i.jsx)("span",{className:xu().quizTitle,children:e.title})]})]}):null},fu=(0,m.Z)((function(){return n.e(520).then(n.bind(n,51336))}),{ssr:!1}),Ou=(0,m.Z)((function(){return n.e(562).then(n.bind(n,4195))}),{ssr:!0}),Au=(0,m.Z)((function(){return n.e(969).then(n.bind(n,77402))}),{ssr:!1}),bu=(0,m.Z)((function(){return n.e(84).then(n.bind(n,89813))}),{ssr:!1});function Eu(t){var e,n,r,a,o,L,y,g=t.buzz,d=t.subbuzzData,z=t.badges,D=t.showOverlay,m=t.setShowOverlay,x=t.giftguideHeader,f=(0,u.useRef)(null),A=(0,u.useContext)(U.Z).destination,b=(0,u.useContext)(I.Z).commentsEnabled,E=(0,c.Z)("(max-width:500px)"),S=(0,c.Z)("(min-width: 64rem)"),w=g.isTrivia||g.isPersonality,_=!(g.shouldHideBuzzSharing||g.shouldShowPostContentOnly)&&!E||(0,N.G)(g),C=(0,u.useState)(null),h=C[0],Y=C[1],P=(0,u.useContext)(kt.Z),Z=P.getFeatureFlagValue,B=P.experiments,W=P.getExperimentValue,G=(0,u.useState)(!1),R=G[0],H=G[1],F=(0,u.useState)(!1),J=F[0],V=F[1],q=(0,u.useState)(!1),K=q[0],X=q[1],$=(0,u.useState)("control"),tt=$[0],et=$[1],nt=(0,u.useState)(!1),it=nt[0],ut=nt[1],rt=!!(g.published&&parseInt(g.published,10)>1710959400);(0,u.useEffect)((function(){var t=Z("shoppybot_bpage_promo"),e=W("shoppy-bpage-test",{rejectErrors:!1});H(!("chat"!==e&&!t))}),[Z,W]),(0,u.useEffect)((function(){var t=W("RT-946-shopping-recirc-bfn",{rejectErrors:!1});(0,N.G)(g)&&"var1"===t&&V(!0)}),[W]),(0,u.useEffect)((function(){B&&B.loaded&&et(W("ads_retail_media_network",{rejectErrors:!1}))}),[B,W]),(0,u.useEffect)((function(){B&&B.loaded&&X(W("RT-1378-us-quiz-top-sticky",{rejectErrors:!1}))}),[B,W]),(0,u.useEffect)((function(){if(B&&B.loaded){var t=Z("taboola_apac");ut(t)}}),[B,Z]);var at=(0,u.useCallback)((function(){m(!1)}),[m]);return(0,i.jsxs)("main",{id:"buzz-content",className:"".concat(T().main," ").concat(T()[A]," embed-content"),ref:f,children:[(0,i.jsxs)(s.Z,{onError:M.Tb,children:[(0,i.jsx)(Bi,{}),(0,i.jsx)(Ui,{buzz:g})]}),(0,i.jsxs)("div",{className:"".concat(T().article," ").concat(T().default," ").concat(T()[A]," embed-post"),children:[(0,i.jsxs)("div",{className:T().content,children:[(0,i.jsxs)("article",{children:[(0,i.jsx)(gt.Z,{buzz:g,badges:z}),(0,i.jsx)(p,{buzz:g,commentCount:h,showShareBar:_,destination:A}),(0,i.jsx)(Oi,{buzz:g,postRef:f}),g.tags.some((function(t){return["etsy-strategy","etsy_strategy","etsy strategy"].includes(t)}))&&(0,i.jsx)(Qi,{pixiedust:{unit_type:"buzz_body",unit_name:g.id,position_in_unit:0}}),(0,i.jsx)(lu,{}),(0,i.jsx)(Xi,{}),"top_video_player_on_quiz"===K&&(0,i.jsx)(Zn,{buzz:g,showOnTopQuiz:!0}),(0,i.jsx)(ui,{buzz:g,subbuzzData:d,pixiedust:{unit_type:"buzz_body",unit_name:g.id,position_in_unit:0}},g.id),g.hasStudiosPromoUnit&&(0,i.jsx)(je,{buzz:g}),(0,N.G)(g)&&(0,i.jsx)(di,{buzz:g}),(0,i.jsx)(Yi,{buzz:g}),(0,i.jsx)(v,{buzz:g}),(0,i.jsx)(Q.Z,{buzz:g}),!S&&g.walmartBundle&&(0,i.jsx)(fu,{buzz:g})]}),(0,i.jsxs)(s.Z,{onError:M.Tb,children:[(0,i.jsx)(pu,{buzz:g}),(0,i.jsx)(O.Z,{type:"subbuzz",pixiedust:{unit_type:"buzz_bottom",unit_name:g.id,position_in_unit:0}}),"Japan"===g.classification.edition&&(0,i.jsx)(ci,{isMobile:E}),it&&(0,i.jsx)(Li,{}),"Shopping"===(null===g||void 0===g||null===(e=g.classification)||void 0===e?void 0:e.section)&&(0,i.jsx)(bu,{buzz:g,giftguideHeader:x}),!g.isShopping&&(0,i.jsxs)(i.Fragment,{children:[!rt&&(w?(0,i.jsx)(Xt,{}):(0,i.jsx)(Ft,{})),rt&&(0,i.jsx)(Mt,{contentId:g.id,isSponsored:l(g)}),b&&(0,i.jsx)(k.Z,{buzz:g,commentCount:h,onCommentsLoaded:Y,firstPage:100,repliesFirstPage:2,perPage:100}),b&&(0,i.jsx)(_n,{buzz:g,subunitName:"comments",subunitType:"component",unitType:"buzz_bottom"}),!g.isAd&&(null===(n=g.laser_tags)||void 0===n||null===(r=n.bf_content_description)||void 0===r||null===(a=r.topic)||void 0===a?void 0:a.some((function(t){return"2024_elections"===t.tag_name})))&&(0,i.jsx)(hi,{}),"var1"===tt&&(0,i.jsx)(Iu,{version:tt,buzz:g})]}),(0,i.jsx)(Pi,{}),g.tags.some((function(t){return"--commerce-user-reviews"===t}))&&(0,i.jsx)(Ou,{buzz:g}),"buzzfeed"===A&&!g.isShopping&&!(0,N.G)(g)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pt.Z,{style:{marginBottom:"3rem"},isNewDesign:!0}),"var2"===tt&&(0,i.jsx)(Iu,{version:tt,buzz:g}),(0,i.jsx)(O.Z,{type:"story-bpage-desktop",pixiedust:{unit_type:"buzz_bottom",unit_name:g.id,position_in_unit:1},style:{marginTop:"-2rem"}})]})||"var2"===tt&&(0,i.jsx)(Iu,{version:tt,buzz:g}),(0,i.jsx)($t.d$,{}),"buzzfeed"===A&&g.isShopping&&!(0,N.G)(g)&&(0,i.jsx)(Pt.Z,{style:{marginTop:E?"1rem":"-2rem"},isNewDesign:!0}),g.isShopping&&(0,i.jsxs)(i.Fragment,{children:[!rt&&(w?(0,i.jsx)(Xt,{}):(0,i.jsx)(Ft,{})),rt&&(0,i.jsx)(Mt,{contentId:g.id,isSponsored:l(g)}),b&&(0,i.jsx)(k.Z,{buzz:g,commentCount:h,onCommentsLoaded:Y,firstPage:100,repliesFirstPage:2,perPage:100}),b&&(0,i.jsx)(_n,{buzz:g,subunitName:"comments",subunitType:"component",unitType:"buzz_bottom"}),!g.isAd&&(null===(o=g.laser_tags)||void 0===o||null===(L=o.bf_content_description)||void 0===L||null===(y=L.topic)||void 0===y?void 0:y.some((function(t){return"2024_elections"===t.tag_name})))&&(0,i.jsx)(hi,{}),"var1"===tt&&(0,i.jsx)(Iu,{version:tt,buzz:g})]}),R&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{style:{height:E?"575px":"700px",margin:"40px 0"},children:(0,i.jsx)("iframe",{border:"0",height:"100%",id:"chatframe",scrolling:"no",src:"/ai-ui/games/shoppy-chat?page=".concat(g.id),width:"100%"})})}),(0,i.jsx)(Ct.Z,{}),(0,i.jsx)(yt.Z,{}),E&&(0,i.jsx)(O.Z,{type:"bigstory",pixiedust:{unit_type:"buzz_bottom",unit_name:g.id,position_in_unit:1}}),w&&(0,i.jsx)(Au,{})]})]}),(0,i.jsx)(Du.Z,{pixiedust:{unit_type:"sidebar",unit_name:"right",position_in_unit:0}})]}),(0,i.jsxs)(s.Z,{onError:M.Tb,children:[(0,i.jsx)(wi,{}),"Japan"===g.classification.edition&&(0,i.jsx)(ci,{placement:2,isMobile:E}),(0,N.G)(g)&&(0,i.jsx)(j.Z,{jumpTo:"news-footer",className:"skipToFooter",label:"Skip to footer"}),(0,N.G)(g)&&(J?(0,i.jsx)(Pt.Z,{style:{marginBottom:"3rem",marginTop:"-2rem"},isNewDesign:!0}):(0,i.jsx)(Yt,{})),(0,i.jsx)($t.cM,{})]}),D&&(0,i.jsx)(Wt,{onOverlayClick:at})]})}Eu.propTypes={buzz:a().object.isRequired,badges:a().array,subbuzzData:a().shape({assets:a().object,subbuzzes:a().array})};var Su=Eu;function wu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _u(t){for(var e=1;e=0||(u[n]=t[n]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u}function hu(t){var e=t.buzz,n=Cu(t,["buzz"]);return function(t,e){(0,u.useEffect)((function(){e&&e.eventBus&&e.eventBus.on("ads:initialized",(function(){(0,ht.v)("https://www.dwin2.com/pub.304459.min.js")}))}),[e,t])}(e,(0,u.useContext)(o.$)),"wide"===e.format.page_width?(0,i.jsx)(ki,_u({buzz:e},n)):(0,i.jsx)(Su,_u({buzz:e},n))}hu.propTypes={buzz:a().object.isRequired};var vu=hu},93935:function(t,e,n){"use strict";function i(t){return!(t.flags.sensitive||"news"===t.metavertical||"Japan"===t.classification.edition||"France"===t.classification.edition||t.tags.includes("--add-yours")||t.tags.includes("--post-content-only"))}n.d(e,{h:function(){return i}})},11455:function(t,e,n){"use strict";function i(t){return!(t.flags.sensitive||"news"===t.metavertical||"Japan"===t.classification.edition||"France"===t.classification.edition||t.tags.includes("--add-yours")||t.tags.includes("--post-content-only"))}n.d(e,{h:function(){return i}})},15208:function(t,e,n){"use strict";function i(t){return![t.flags.sensitive,t.shouldHideRecircSection].some((function(t){return t}))}n.d(e,{h:function(){return i}})},60382:function(t,e,n){"use strict";function i(t){return![t.isAd,t.isShopping,t.bfpFormats.includes("related_links"),"long"===t.format.page_type,t.tags.includes("coronavirus")||t.tags.includes("Coronavirus"),!t.isEnglish,!t.isModerated,t.shouldHideRecircSection].some((function(t){return t}))}n.d(e,{h:function(){return i}})},42494:function(t,e,n){"use strict";n.d(e,{cM:function(){return T},d$:function(){return N},ru:function(){return d}});var i=n(36491),u=n(52322),r=n(2784),a=n(41332),o=n(54761),M=n(60382);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t-1?l("sidebar:debug"):L("sidebar:debug")}),[e,l,L]),(0,o.useEffect)((function(){c&&c.loaded&&(0,W.A)("info","lifecycle","Sidebar Refresh: Refresh Interval:",Q)}),[c,Q]),(0,o.useEffect)((function(){(null===c||void 0===c?void 0:c.loaded)&&e!==h.current&&(h.current=e,S(!1),l("sidebar:preload-item"),clearTimeout(v.current),l("sidebar:timer"),p(!0),v.current=setTimeout((function(){(0,W.A)("info","lifecycle","Sidebar Refresh: Starting timer... (page: ".concat(e,")")),v.current=null,L("sidebar:timer"),p(!1)}),Q))}),[e,l,L,c,Q]),(0,o.useEffect)((function(){return function(){return clearTimeout(v.current)}}),[]),(0,o.useEffect)((function(){x||O||S(!0)}),[z,x,O]),(0,o.useEffect)((function(){d({idx:e%y,props:{mode:"active",sidebarPage:e,acquireLock:function(){l("sidebar:active-item"),A(!0)},releaseLock:function(){L("sidebar:active-item"),A(!1)}}});var t=e+1;D({idx:t%y,props:{mode:"preload",sidebarPage:t,acquireLock:function(){return l("sidebar:preload-item")},releaseLock:function(){return L("sidebar:preload-item")}}})}),[e,y,l,L]),(0,o.useEffect)((function(){a&&(a.pattern=o.Children.map(n,(function(t){return t.type===k})))}),[n,a]),T&&z&&o.Children.map(n,(function(t,n){var u=n===T.idx,r=E&&n===z.idx,a=u?T.props:r?z.props:{mode:"inactive"};return(0,i.jsx)(H,function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.useMemo)((function(){return{trackClick:function(){t&&t.id&&(0,u.bC)(t,o({item_name:"comment-cta",item_type:"button",action_value:"comment-cta",action_type:"navigate",unit_name:t.id,unit_type:"buzz_head"},e))},trackImpression:function(n){(0,r.G)(t)&&(0,u.aF)(n,t,o({unit_type:"buzz_head",unit_name:t.id,item_name:"comment-cta",item_type:"button",target_content_type:"buzz",target_content_id:t.id},e))}}}),[t])}},30332:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(2784),u=n(15404),r=n(4366);var a=n(33402);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(t){for(var e=1;e=0||(u[n]=t[n]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u}function c(t,e){var n=(0,i.useContext)(a.Z).tracking,c=n.consentValue,s=n.isConsentReady,j={subbuzz:{item_name:e,item_type:"subbuzz",subunit_name:"",subunit_type:"",unit_type:"buzz_body"},bottom_share_bar:{subunit_name:"share_buttons",subunit_type:"component",unit_type:"buzz_bottom"},top_share_bar:{subunit_name:"",subunit_type:"",unit_type:"buzz_head"},quiz_results:{subunit_name:"",subunit_type:"",unit_type:"buzz_body"}};return(0,i.useCallback)((function(e){var n=e.platform,i=e.position,a=M(e,["platform","position"]);return function(){if(t&&t.id){var e=j[i.replace(/-/g,"_")]||{};(0,r.bC)(t,function(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],n=(0,i.useContext)(r.Z);(0,u.Z)("tracking");var o=(0,i.useRef)(null);return(0,i.useEffect)((function(){var i=o.current;if(!i)return function(){};var u=(0,a.aF)(i,n,t),r=e?(0,a.W3)(i,n,t):(0,a.Ev)(i,n,t);return function(){u(),r()}}),[t,e]),o}},8546:function(t,e,n){"use strict";n.d(e,{R:function(){return c}});var i=n(2784),u=n(41332),r=n(99112),a=n(4366),o=n(67176);function M(t){return t.replace("http://","").replace("https://","").replace("www.","")}function c(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=(0,i.useRef)(null),s=(0,i.useContext)(u.Z),j=(0,i.useContext)(r.Z).destination;return(0,i.useEffect)((function(){var i=function(n){if(e){var i=n.target.closest("a");if(i){var u=(0,o.nC)(i);t.eventLabel=u.href?M(u.href):void 0}}},u=c.current;if(!u)return function(){};var r=(0,a.aF)(u,s,t),j=n?(0,a.W3)(u,s,t):(0,a.Ev)(u,s,t);return u.addEventListener("click",i),function(){r(),j(),u.removeEventListener("click",i)}}),[s,j,t,e,n]),c}},5875:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(2784),u=n(74967),r=n(32966),a=n(41332);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:1;return function(n){return n.name===t?y({},n,{count:n.count+e}):n}}(t))}))}),[]);return(0,r.useEffect)((function(){if(n&&t){var i="edition=".concat(n.country_code);w(e?"".concat(j,"/content-reactions-api/v2/emoji/buzz/").concat(n.id,"?").concat(i):"".concat(j,"/content-reactions-api/v1/buzz/").concat(n.id,"?").concat(i))}}),[j,n,t,w]),(0,r.useEffect)((function(){E?f(E):S&&S.reactions&&I((function(){var t=S.reactions.sort(T),e=g(t,1)[0],n=(void 0===e?{}:e).count;return t.map((function(t){return y({},t,{increment:function(){return _(t.name)},height:function(t){return function(t,e){return 3*t<90?3*e:e>t?93:Math.round(90*e/t)}(n,t)}})}))}))}),[E,S,_]),(0,r.useEffect)((function(){function t(){return(t=l(u().mark((function t(i){var r,a,o,M;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=["reaction=".concat(i),"client_uuid=".concat(O),"edition=".concat(n.country_code)].join("&"),a=e?"".concat(j,"/content-reactions-api/v2/emoji/buzz/").concat(n.id,"?").concat(r,"&page_type=buzz&page_id=").concat(n.id):"".concat(j,"/content-reactions-api/v1/buzz/").concat(n.id,"?").concat(r),t.next=5,fetch(a,{method:"POST"});case 5:return o=t.sent,t.next=8,o.json();case 8:if((M=t.sent)&&M.success){t.next=12;break}return f("request failed"),t.abrupt("return");case 12:(0,s.bC)(n,{action_type:"react",action_value:i,item_name:i,item_type:"button",subunit_name:"reactions",subunit_type:"component",unit_name:n.id,unit_type:"buzz_bottom"}),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(0),f(t.t0);case 18:case"end":return t.stop()}}),t,null,[[0,15]])})))).apply(this,arguments)}D&&function(e){t.apply(this,arguments)}(D)}),[j,n,N,D,O]),{reactions:d,lastReacted:D,serverError:p}}},8698:function(t,e,n){"use strict";n.d(e,{I:function(){return c}});var i=n(94776),u=n.n(i),r=n(30353),a=n(2784),o=n(29644);function M(t,e,n,i,u,r,a){try{var o=t[r](a),M=o.value}catch(c){return void n(c)}o.done?e(M):Promise.resolve(M).then(i,u)}function c(){var t=(0,a.useState)(null),e=t[0],n=t[1];return(0,a.useEffect)((function(){var t;(t=u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=n,t.next=3,(0,o.n5)({env:r.CLUSTER,legacy:!1});case 3:t.t1=t.sent,(0,t.t0)(t.t1);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,u){var r=t.apply(e,n);function a(t){M(r,i,u,a,o,"next",t)}function o(t){M(r,i,u,a,o,"throw",t)}a(void 0)}))})()}),[]),e}},15382:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(29572),u=n(20238),r=n(30353);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(null==t)return{};var n,i,u=function(t,e){if(null==t)return{};var n,i,u={},r=Object.keys(t);for(i=0;i=0||(u[n]=t[n]);return u}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u}var M={edition:"en-us",page_size:30,buzz_id:"",page:1,lang:"en",country:"us"};function c(t,e){var n=e.pageSize,c=e.buzzId,s=e.language,j=o(e,["pageSize","buzzId","language"]);if(!t)throw new Error("endpoint is required");var N=i.Nl.getIds(),l=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:120;if(!t)return"";var n=t.indexOf("?")>=0?"&":"?",i=t.includes("downsize");return i?t:"".concat(t).concat(n,"downsize=").concat(e,":*")}},36491:function(t,e,n){"use strict";var i=n(52322),u=n(25237);e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.ssr,r=void 0===n||n,a=e.suspense,o=void 0!==a&&a,M=e.loading,c=void 0===M?function(){return null}:M;return window.location.search.match(/(\?|&)layer=content/)?function(){return(0,i.jsx)("div",{})}:(0,u.default)(t,{loading:c,ssr:r,suspense:o})}},32527:function(t,e,n){"use strict";n.d(e,{I:function(){return c}});var i=n(94776),u=n.n(i),r=n(26528),a=n.n(r),o=n(34406);function M(t,e,n,i,u,r,a){try{var o=t[r](a),M=o.value}catch(c){return void n(c)}o.done?e(M):Promise.resolve(M).then(i,u)}var c=function(){var t,e=(t=u().mark((function t(e,n){var i,r,M,c,s;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.req,r=i?"http://localhost:".concat(o.env.PORT):"",M=i?{headers:i.headers}:{},t.prev=3,t.next=6,a()("".concat(r).concat(e),M);case 6:if((c=t.sent).ok){t.next=13;break}return t.next=10,c.text();case 10:s=t.sent;try{s=JSON.parse(s).message}catch(u){}return t.abrupt("return",{error:{error:s,statusCode:c.status}});case 13:return t.abrupt("return",c.json());case 16:return t.prev=16,t.t0=t.catch(3),t.abrupt("return",{error:{error:t.t0.message||"Error fetching API data",statusCode:500}});case 19:case"end":return t.stop()}}),t,null,[[3,16]])})),function(){var e=this,n=arguments;return new Promise((function(i,u){var r=t.apply(e,n);function a(t){M(r,i,u,a,o,"next",t)}function o(t){M(r,i,u,a,o,"throw",t)}a(void 0)}))});return function(t,n){return e.apply(this,arguments)}}()},29572:function(t,e,n){"use strict";n.d(e,{Nl:function(){return M},mH:function(){return c}});var i=n(93002),u=n(2784);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.max_size,u=void 0===n?20:n,a=e.storage_key,o=void 0===a?"buzz_history":a;r(this,t),this.storage=!(0,i.s)()&&localStorage||{},this.max_size=u,this.storage_key=o,this.ids=this.read()}var e,n,u;return e=t,(n=[{key:"getIds",value:function(){return this.ids}},{key:"add",value:function(t){if(t){var e=this.ids.filter((function(e){return e!==t}));e.push(t),this.ids=e.slice(-this.max_size),this.write()}}},{key:"read",value:function(){var t=this.storage[this.storage_key];if(!t)return[];var e=[];try{e=JSON.parse(t)}catch(n){}return e}},{key:"write",value:function(){this.storage[this.storage_key]=JSON.stringify(this.ids)}}])&&a(e.prototype,n),u&&a(e,u),t}(),M=new o;function c(t){(0,u.useEffect)((function(){M.add(t)}),[t])}},12383:function(t,e,n){"use strict";function i(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}n.d(e,{x:function(){return i}})},57673:function(t,e,n){"use strict";n.d(e,{l:function(){return i}});var i=function(){return window.scrollY||window.pageYOffset}},18941:function(t,e,n){"use strict";n.d(e,{B:function(){return d},S:function(){return I}});var i=n(52322),u=n(2784),r=n(28316),a=n(99036),o=n.n(a),M=(n(99377),n(5103)),c=n(13681),s=n(20238),j=n(6294),N=n(30353),l=n(31781);var L=function(t){var e=t.containerEl,n=t.contentEl,r=t.position,a=void 0===r?"top":r,o=t.text,M=t.themes,c=(0,u.useState)(!0),s=c[0],j=c[1],N=u.createRef();return N.current=e,(0,u.useEffect)((function(){setTimeout((function(){j(!1),setTimeout((function(){n&&n.removeChild(e)}),1e3)}),3e3)}),[e,n]),(0,i.jsx)(l.Z,{container:N,position:a,shouldShow:s,themes:M,text:o})},y=n(94470),g=n.n(y),T=n(63778);function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"pagelevel"===t||"pagelevelSticky"===t?"buzzfeed_news"===e.destination_name?["twitter","facebook","copy"]:n&&"bottom_share_bar"!==i?"Japan"===e.classification.edition?["facebook","twitter"]:["facebook","pinterest","copy"]:"Russia"===e.category?["facebook","vk","twitter","email","pinterest","copy"]:["copy","facebook","pinterest","twitter","email"]:"pagelevelList"===t?"Japan"===e.classification.edition?["lineapp","sms","email","pinterest","snapchat","copy"]:["twitter","snapchat","whatsapp","sms","email","copy"]:[]}function I(t,e,n){var u={utm_source:"dynamic",utm_campaign:"bfshare".concat(t)},a=e.canonical_url,l=e.shareData,y=n.itemId,d=n.quizId,I=n.subbuzzId,z=n.getCopyText,D="";y&&d?(u.quiz_result="".concat(d,"_").concat(y),u.quote=o()(n.text||n.title),D=d,"twitter"===t&&(u.rid=y)):I&&(u.sub="0_".concat(I),D=I);var m="".concat(a).concat((0,s.nZ)(u)).concat(D?"#".concat(D):""),x={};"twitter"===t?x.title=o()(n.text||n.title||l.twitter.title||e.title):"facebook"===t?x.fbAppId=N.destinations[e.destination_name].facebook_app_id:["lineapp","whatsapp"].includes(t)?x.title=o()(n.title||e.title):"copy"===t&&z&&(x.getCopyText=z),x.title=(0,T.decodeHtmlEntities)(x.title);var p=(0,c.BN)(m,t,x,!(0,j.tq)());if("copy"===t&&n.element){var f=document.createElement("div");f.className=g().tooltipContainer,n.element.appendChild(f),r.render((0,i.jsx)(L,{containerEl:f,contentEl:n.element,text:p?M.i18n.t("link_copied"):M.i18n.t("unable_to_copy_link"),themes:p?["dark","success"]:["error"]}),f)}}},3207:function(t,e,n){"use strict";n.d(e,{C:function(){return i},z:function(){return u}});var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,n=void 0===e?"":e,i=t.canonical_path,u=void 0===i?"":i,r=t.destination_name,a=void 0===r?"":r,o=t.is_external,M=void 0!==o&&o,c=u.includes("/watch/video/")||M,s=u;return{href:!c&&n.length&&a.length?"/[...slug]":n,hrefAs:u.length?s:n,url:n}},u=function(t){if(!t)return"";var e=t;try{e=new URL(t).pathname}catch(n){}return"/"===e.charAt(0)&&(e=e.slice(1,e.length)),e.replace(/\//g,"_")}},70448:function(t,e,n){"use strict";n.d(e,{zk:function(){return o}});var u=n(3379);function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n