1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2741,3263],{83717:function(e,t,n){n.d(t,{Z:function(){return o}});n(2784);var i=n(61585),r=n(86929),s=n(52322);function o(e){var t=e.uniqueId,n=e.bannerStyle,o=(0,i.rZ)().expInfo;return(0,s.jsx)("div",{className:"mb-4 md:mb-8",children:null!==o&&void 0!==o&&o.config.dualArticleBottomAd?(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3 md:gap-4 items-start",children:[(0,s.jsx)(r.nN,{uniqueId:"".concat(t,"-end-of-article-1"),placementId:"psm-pmi-nbcom-web-articlebottomsmall-prod"}),(0,s.jsx)(r.nN,{uniqueId:"".concat(t,"-end-of-article-2"),placementId:"psm-pmi-nbcom-web-articlebottomsmall-prod"})]}):(0,s.jsx)(r.nN,{uniqueId:"".concat(t,"-end-of-article"),placementId:"psm-pmi-nbcom-web-articlebottom-prod",bannerStyle:n})})}},74028:function(e,t,n){n.d(t,{Z:function(){return _}});var i=n(95235),r=n(81333),s=n(2784),o=n(6277),c=n(26128),a=n(40869),l=n(77245),d=n(43022),u=n(951),m=n(84970),f=n(39097),x=n.n(f),p=n(97374),h=n(32636),b=n(75817),v=n(58333),g=n(71474),j=n(24060),y=n(49404),w=n(5632),N=n(52322);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e){var t,n,a,f,_,k,S=(0,s.useState)(!1),O=S[0],Z=S[1],F=(0,h.Z)(),P=(0,r.Z)(F,2),E=P[0],A=P[1],R=(0,s.useState)(!1),T=R[0],L=R[1],M=(0,w.useRouter)(),D=(0,s.useCallback)((function(e){e.stopPropagation(),(0,v.VU)("homeSignOut",{version:"v3"}),(0,b.kS)().finally((function(){A(null),window.location.href="/"}))}),[]);if(!e.info)return null;var U,B=e.info,q=(null===E||void 0===E?void 0:E.profileId)&&(null===E||void 0===E?void 0:E.profileId)===B.profileId,V=M.asPath.startsWith("/u/")&&!(M.asPath.endsWith("/subscribings")||M.asPath.endsWith("/subscribers")),H=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.subRelatedInfo),W=new Date(1e3*B.join_ts),z="".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][W.getMonth()]," ").concat(W.getFullYear());try{U=new URL(B.website).hostname}catch(G){}var Y=function(){B.certifications_badge&&L(!0)},J=function(){L(!1)},K=!e.noLink&&B.name&&B.mediaId?(0,m.d$)(B.name,B.mediaId,"",!1):"",$="mp_default"==B.mp_source_type&&B.certifications_badge?"Partner Publisher":"mp_default"==B.mp_source_type?"Website":null!==(t=null===(n=B.certifications_badge)||void 0===n?void 0:n.text)&&void 0!==t?t:"";return B.mediaId?(0,N.jsxs)("div",{className:"px-5 py-4 bg-[#FAFAFA] rounded-[10px] border border-[#E3E3E3] mb-4 font-roboto space-y-3",children:[(0,N.jsxs)("div",{className:"flex items-center justify-between",children:[(0,N.jsxs)("div",{className:(0,o.Z)("flex items-center gap-2 font-bold text-base tracking-[0.15px]",B.certifications_badge&&"cursor-pointer"),onClick:Y,children:[(0,N.jsx)(c.Z,{baseUrl:B.icon,size:{width:48,height:48},imgAlt:"media avatar",borderRadius:12,className:"w-6 h-6"}),""!=K?(0,N.jsx)(x(),{href:K,prefetch:!1,children:(0,N.jsx)("a",{"aria-label":K,children:B.name})}):(0,N.jsx)("span",{children:B.name}),B.certifications_badge&&(0,N.jsx)(c.Z,{baseUrl:B.certifications_badge.light_icon,size:{width:144,height:144},imgAlt:"media badge",title:B.certifications_badge.description,borderRadius:50,className:"w-4 h-4"})]}),(0,N.jsx)(j.u,{subRelatedInfo:e.subRelatedInfo})]}),(0,N.jsx)("div",{onClick:Y,className:(0,o.Z)("text-xs text-[#656565]",B.certifications_badge&&"cursor-pointer"),children:"mp_default"==B.mp_source_type&&B.certifications_badge?(0,N.jsx)("div",{children:"Partner Publisher"}):(0,N.jsx)("div",{className:"flex items-center gap-1",children:"mp_default"!=B.mp_source_type?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(u.nf1,{}),"User since ",z]}):(0,N.jsx)(N.Fragment,{children:"Website"})})}),B.location&&(0,N.jsxs)("div",{className:"flex items-center gap-1 text-xs text-[#656565]",children:[(0,N.jsx)(d.Ts9,{}),B.location]}),U&&(0,N.jsxs)("p",{className:"flex items-center text-black/60 gap-1",children:[(0,N.jsx)(l.Wlb,{}),(0,N.jsx)("a",{href:B.website,target:"_blank",rel:"noreferrer",className:"text-blue-500 text-xs",children:U})]}),B.about&&(0,N.jsxs)("div",{className:"flex items-start tracking-[0.15px]",children:[(0,N.jsx)("p",{className:"text-xs text-[#656565] ".concat(O?"":"textoverflow-3"),children:B.about}),B.about.length>120&&(0,N.jsx)("div",{className:"cursor-pointer w-8 h-8 shrink-0 text-center mr-[-10px]",onClick:function(){return Z(!O)},children:(0,N.jsx)("span",{className:(0,o.Z)("border-[2px] border-gray-500 inline-block p-[3px] border-t-transparent border-l-transparent ",O?"rotate-[-135deg] translate-y-[2px]":"rotate-45 translate-y-[-5px]")})})]}),(0,N.jsx)("div",{className:"h-[1px] bg-[#E3E3E3]"}),(0,N.jsxs)("div",{className:"flex items-center gap-3",children:[B.media_subscription_type&&(0,N.jsx)(I,{nums:B.subscriber_counts,text:"Subscribers"}),(0,N.jsx)(I,{nums:B.post,text:"Posts"}),(0,N.jsx)(I,{nums:B.follower_count,text:"Followers"})]}),q?(0,N.jsx)(N.Fragment,{children:V&&(0,N.jsx)("div",{onClick:D,className:"text-sm leading-[34px] mt-5 text-black/60 hover:text-black/40 cursor-pointer border-t pt-2",children:"Sign out"})}):(0,N.jsx)(N.Fragment,{children:H.media_subscription_type&&H.media_id&&"creator"!==(null===E||void 0===E?void 0:E.accountType)?(0,N.jsxs)("div",{className:"flex items-start w-full justify-end gap-2 min-h-[34px]",children:[(0,N.jsx)(j.Z,{mediaName:B.name,initialState:null===(a=H.media_sub_info)||void 0===a?void 0:a.subscription_status,initialPaidStatus:null===(f=H.media_sub_info)||void 0===f?void 0:f.paid_status,paidChannel:null===(_=H.media_sub_info)||void 0===_?void 0:_.subscription_channel,media_subscription_type:H.media_subscription_type,mediaId:H.media_id,uiStates:{notSubscribed:(0,N.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-white tracking-[0.25px] font-semibold text-sm bg-[#C49F64] hover:brightness-110 transition-all ease-in-out",children:"Subscribe"}),fullySubscribed:(0,N.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-[#656565] tracking-[0.25px] font-semibold text-sm bg-[#F2F2F2]",children:"Subscribed"}
1),canUpgrade:(0,N.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-white tracking-[0.25px] font-semibold text-sm bg-[#C49F64] hover:brightness-110 transition-all ease-in-out",children:"Upgrade to Full Access"}),needRenew:(0,N.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-[#656565] tracking-[0.25px] font-semibold text-sm bg-[#F2F2F2]",children:"Renew Now"})},expireAt:{time:null===(k=H.media_sub_info)||void 0===k?void 0:k.expire_at},allowFreeUnsub:!0,fullWidth:!0}),(0,N.jsx)(p.ZP,{account:{media_id:B.mediaId,name:B.name,image:B.icon},followBtn:(0,N.jsx)("button",{className:"flex items-center justify-center w-[34px] h-[34px] rounded-lg bg-[#F2F2F2] hover:brightness-95 transition-all ease-in-out",children:(0,N.jsx)(y.w,{})}),unfollowBtn:(0,N.jsx)("button",{className:"flex items-center justify-center w-[34px] h-[34px] rounded-lg bg-[#F2F2F2] hover:brightness-95 transition-all ease-in-out",children:(0,N.jsx)(y.m,{})})})]}):(0,N.jsx)(p.ZP,{followBtn:(0,N.jsx)("div",{className:"bg-black/85 cursor-pointer hover:bg-black/60 mt-5 text-white text-center leading-[34px] rounded-full",children:"Follow"}),unfollowBtn:(0,N.jsx)("div",{className:"text-center leading-[34px] mt-5 rounded-full text-black/60 hover:text-black/40 cursor-pointer border border-black/60 hover:border-black/40",children:"Following"}),account:{media_id:B.mediaId,name:B.name,image:B.icon}})}),T&&B.certifications_badge&&(0,N.jsxs)(g.Z,{showLogo:!1,onClose:J,children:[(0,N.jsxs)("div",{className:"flex flex-row my-3 items-center md:mt-0 md:mb-4",children:[(0,N.jsx)("p",{className:"font-black text-xl mr-2 md:text-3xl md:mr-3",children:$}),(0,N.jsx)("img",{alt:"".concat($," badge"),src:B.certifications_badge.light_icon,style:{margin:0,height:24,width:24}})]}),(0,N.jsx)("p",{className:"text-gray-dark",children:B.certifications_badge.description}),(0,N.jsx)("div",{className:"flex flex-row justify-end items-center mt-8 mb-2 space-x-3 md:space-x-4 md:mb-0",children:(0,N.jsx)("button",{onClick:J,className:"w-32 h-12 text-white font-medium bg-red-primary rounded-3xl hover:bg-red-hoverColor",children:"Dismiss"})})]})]}):null}var I=function(e){var t=Number(e.nums||"");return t=isNaN(t)?0:t,(0,N.jsxs)("div",{className:"space-y-1 w-20",children:[(0,N.jsx)("p",{className:"text-base leading-[18px] font-black text-[#252525] tracking-[-0.31px]",children:(0,a.$s)(t,"",1)||0}),(0,N.jsx)("p",{className:"text-sm text-[#646464]",children:e.text})]})}},86855:function(e,t,n){n.d(t,{J1:function(){return C},_K:function(){return w},do:function(){return O},lY:function(){return N},mg:function(){return y},nS:function(){return k},qT:function(){return I},u6:function(){return _}});var i=n(95235),r=n(81333),s=n(29093),o=n(45297),c=n(15123),a=n(44672),l=n(61585),d=n(84970),u=n(58333),m=n(39097),f=n.n(m),x=n(5632),p=n(2784),h=n(21899),b=n(52087),v=n(57641),g=n(52322);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function y(e){var t;return"https://www.newsbreak.com".concat((0,d.nN)(e.id,e.title||(null!==(t=e.summary)&&void 0!==t?t:""),e.mediaAccount||e.source||void 0,e.mediaId||void 0,!1))}function w(){var e=(0,p.useState)(!1),t=e[0],n=e[1],i=(0,x.useRouter)().asPath.split("/")[1],r=!["local-business-spotlight"].some((function(e){return i.includes(e)}));return(0,p.useEffect)((function(){n(r)}),[r]),[t]}var N=p.memo((function(e){var t,n=(0,x.useRouter)(),i=(0,l.rZ)().deviceInfo,r=(0,p.useCallback)((function(){(0,u.VU)("readInAppContinueClick")}),[]);return n.query.nb_nl_paid&&"app_share"!==n.query._f?(0,g.jsx)(s.Z,{cityInfo:null===e||void 0===e||null===(t=e.localChannelInfo)||void 0===t?void 0:t.cityInfo}):null!==i&&void 0!==i&&i.isMobile?"VIDEO"!==e.contentType?(0,g.jsx)(o.default,{onContinueClick:r,contentType:e.contentType}):(0,g.jsx)("div",{}):null})),C=p.memo((function(e){var t;return e.topicList&&0!==e.topicList.length?(0,g.jsxs)("div",{className:"py-5 mb-4 rounded-lg",children:[(0,g.jsx)("h2",{className:"font-semibold text-black/60 tracking-widest text-base pb-5 uppercase",children:"Related Topics"}),(0,g.jsx)("ul",{className:"mr-[-8px]",children:null===(t=e.topicList)||void 0===t?void 0:t.map((function(e){return(0,g.jsx)("li",{className:"inline-block",children:(0,g.jsx)(f(),{href:(0,d.cV)(e.name,e.id),prefetch:!1,children:(0,g.jsx)("a",{rel:"unfollow",className:"hover:opacity-75 text-[rgba(51,31,0,1)] gap-1 bg-[rgba(255,245,232,1)] px-3 py-2 rounded-full flex items-center mb-3 mr-2",target:"_blank",children:(0,g.jsx)("span",{className:"line-clamp-1",children:e.name})})})},e.id)}))})]}):null})),_=p.memo((function(e){var t,n;return null!==(t=e.docInfo)&&void 0!==t&&t.city_name?S(null===(n=e.docInfo)||void 0===n?void 0:n.city_name)?(0,g.jsx)(f(),{href:(0,b.o0)(e.docInfo.city_name),prefetch:!1,children:(0,g.jsxs)("a",{"aria-label":e.docInfo.city_name,className:"flex items-center hover:text-[#017ef9] text-base font-bold mb-1",children:[(0,g.jsx)(h.Z,{className:"w-4 h-4 mr-[3px]"})," ",e.docInfo.city_name.split(",").shift()]})}):(0,g.jsxs)("div",{className:"flex items-center text-base font-bold mb-1",children:[(0,g.jsx)(h.Z,{className:"w-4 h-4 mr-[3px]"})," ",e.docInfo.city_name]}):null})),I=p.memo((function(e){var t=(0,x.useRouter)();return(0,g.jsx)("section",{className:"bg-white pb-2 mt-",children:(0,g.jsxs)("div",{className:"flex border-t py-5",children:[(0,g.jsx)("div",{className:"flex-grow",children:(0,g.jsxs)("div",{className:"flex items-center",children:[e.likeCount>0&&e.docInfo.emoji_count&&(0,g.jsx)("div",{className:"mr-4",children:(0,g.jsx)(c.V,{docid:e.docInfo.docid,emojis:e.docInfo.emoji_count})}),(0,g.jsx)(c.Z,{docId:e.docInfo.docid,from:"feed",pannelAlign:"left"})]})}),(0,g.jsx)("div",{className:"space-x-2 flex items-center",children:(0,g.jsx)(a.default,{url:"https://www.newsbreak.com".concat(t.asPath),title:e.title,size:30})})]})})})),k=function(){var e=(0,l.rZ)().deviceInfo;return null===e||void 0===e?void 0:e.isMobile},S=function(e){if(!e)return!1;var t=e.toLowerCase();if([" county"," area"," township"].some((function(e){return t.includes(e)})))return!1;var n=e.split(", "),i=(0,r.Z)(n,2),s=i[0],o=i[1];return!(!o||s.includes(o))},O=function(e){var t=(0,x.useRouter)().pathname,n=(null===e||void 0===e?void 0:e.eventName)||"web-vitals-metrics",r=(null===e||void 0===e?void 0:e.additionalData)||{};return(0,p.useEffect)((function(){function e(e){try{Object.keys(e).forEach((function(t){var n=e[t];"number"===typeof n&&(e[t]=Math.round(n))})),(0,u.VU)(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?j(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:t,metricInfo:e},r))}catch(s){console.error("Error sending web vitals metrics:",s)}}t&&((0,v.mw)(e),(0,v.Yn)(e),(0,v.NO)(e),(0,v.mr)(e),(0,v.a4)(e))}),[t]),null}},22813:function(e,t,n){n.r(t),n.d(t,{default:function(){return M}});var i=n(95235),r=n(81333),s=n(94333),o=n(2784),c=n(59806),a=n(11941),l=n(37482),d=n(17516),u=n(66159),m=n(26128),f=n(52322),x=function(e){try{var t=new URL(e),n=t.searchParams.get("utm_source");return n?t.searchParams.set("utm_source","".concat(n,"-newsbreakweb")):t.searchParams.set("utm_source","newsbreakweb"),t.toString()}catch(r){var i=e.includes("?")?"&":"?";return"".concat(e).concat(i,"utm_source=newsbreakweb")}},p=function(e){var t=e.stories;if(!t||0===t.length)return null;var n=t[0].story;return(0,f.jsxs)("section",{className:"mb-6 md:mb-10",children:[(0,f.jsx)("div",{className:"border-b pb-2",children:n.subletter_cover&&(0,f.jsx)(m.Z,{baseUrl:n.subletter_cover,size:{width:72,height:48},imgAlt:n.title,borderRadius:4,className:"w-[72px] h-12 object-cover"})}),(0,f.jsx)("a",{href:x(n.url),target:"_blank",rel:"noopener noreferrer",className:"block mt-4 group",children:(0,f.jsxs)("div",{className:"flex flex-col-reverse md:flex-row gap-4 pb-4",children:[(0,f.jsxs)("div",{className:"flex flex-col flex-grow justify-between",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("h3",{className:"text-xl leading-[30px] tracking-[0.15px] font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:n.title}),n.subtitle&&(0,f.jsx)("p",{className:"text-sm text-gray-600 mb-3",children:n.subtitle}),n.content_txt&&(0,f.jsx)("p",{className:"text-sm text-gray-700 mb-4",children:n.content_txt})]}),(0,f.jsx)("div",{className:"flex items-center",children:(0,f.jsxs)("span",{className:"inline-flex items-center px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-full group-hover:bg-blue-700 transition-colors",children:[n.cta_text||"Learn More",(0,f.jsx)("svg",{className:"ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]}),n.image&&(0,f.jsx)("div",{className:"flex-shrink-0 w-full md:w-48 h-48 overflow-hidden rounded-lg",children:(0,f.jsx)(m.Z,{baseUrl:n.image,size:{width:192,height:192},imgAlt:n.title,borderRadius:8,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-200"})})]})})]})},h=n(40869),b=n(70906),v=n(86929),g=n(83717),j=n(86855),y=n(61585),w=n(58333),N=n(5632),C=n(74028),_=n(39097),I=n.n(_),k=n(46075),S=n(84970),O=n(48035),Z=function(e){var t=e.locations,n=null===t||void 0===t?void 0:t.map((function(e){return{cityName:e.city_code.split(",")[0],cityCode:e.city_code}})).filter((function(e){return!!e.cityName}));return n&&0!==n.length?(0,f.jsxs)("div",{className:"rounded-[10px] bg-[#FAFAFA] border border-[#E3E3E3] p-5 font-roboto",children:[(0,f.jsx)("h2",{className:"text-xs tracking-[0.4px] font-bold text-[#656565] pb-1 border-b border-[#E3E3E3]",children:"NEARBY LOCATION"}),(0,f.jsx)("ul",{className:"list-disc mt-5 mb-3",children:n.map((function(e,t){var n=e.cityName,i=e.cityCode;return(0,f.jsx)("li",{className:"mb-3 text-[#9b9b9b] list-none inline-block mr-2",children:(0,f.jsx)(I(),{href:"/".concat((0,S.LT)(i.replace(",",""))),prefetch:!1,children:(0,f.jsxs)("a",{className:"hover:opacity-75 text-[#003264] inline-flex items-center gap-1 bg-[#E6F2FE] px-3 py-2 rounded-full",children:[(0,f.jsx)(k.Z,{className:"w-4 h-4 mt-[2px]"})," ",n]})})},"nearby-".concat(t))}))}),(0,f.jsx)(I(),{href:"/locations",prefetch:!1,children:(0,f.jsxs)("a",{className:"text-right block hover:underline w-full h-5 leading-5 text-black",children:["See all locations",(0,f.jsx)(O.Z,{})]})})]}):null},F=n(24060),P=n(94758),E=n(51563),A=n(32636),R=n(87077);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e){var t,n,i,x,_,I=(0,d.Z)().window_width,k=e.contentType,S=(0,N.useRouter)(),O=(0,j._K)(),T=(0,r.Z)(O,1)[0],M=(0,o.useRef)(null),D=(0,j.nS)(),U=e.commentCount>0?"/ "+(0,h.$s)(e.commentCount,"",0,""):"",B=e.isFullArticle&&"ARTICLE"===e.contentType?"big":"small",q=(0,y.rZ)().expInfo,V=(0,A.Z)(),H=(0,r.Z)(V,1)[0],W=L(L({},null===(t=e.media)||void 0===t?void 0:t.profile),{},{profileId:null===(n=e.media)||void 0===n?void 0:n.profile_id}),z=(0,o.useMemo)((function(){try{return e.originalUrl?new URL(e.originalUrl):void 0}catch(t){}}),[e.originalUrl]);(0,o.useEffect)((function(){var t,n;(0,w.VU)("docLayoutView",{layoutVariant:"default",docId:e.id,contentType:k,pagePath:null===(t=S.asPath)||void 0===t?void 0:t.split("?")[0],buckets:null===q||void 0===q||null===(n=q.buckets)||void 0===n?void 0:n.join(","),expConfig:null===q||void 0===q?void 0:q.config})}),[e.id]);var Y=L({},null===(i=e.docInfo)||void 0===i?void 0:i.media_sub_info),J=(0,R.Z)(W.mediaId,"cancel"===Y.paid_status?"cancel":Y.subscription_status||"unsubscribed"),K=(0,r.Z)(J,1)[0],$=(0,f.jsx)("section",{className:"w-[320px]",children:(0,f.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,f.jsx)(C.Z,{info:W,subRelatedInfo:e.docInfo}),I>=768&&e.mediaId&&(0,f.jsx)(v.o,{}),(0,f.jsx)(Z,{locations:null===(x=e.localInfo)||void 0===x?void 0:x.nearby})]})}),G=!((null===H||void 0===H?void 0:H.userId)&&String(H.userId)===String(null===W||void 0===W?void 0:W.mediaId))&&!(null===(_=e.docInfo)||void 0===_||!_.premium)&&!["paid","cancel"].includes(K)&&"paid"===W.media_subscription_type,Q=(0,o.useMemo)((function(){return function(e){var t=e.isFreeArticle,n=e.hide;return!W||n?(0,f.jsx)(f.Fragment,{}):(0,f.jsxs)("div",{className:"flex flex-col items-center justify-end space-y-4",children:[!t&&(0,f.jsxs)(o.Fragment,{children:[(0,f.jsx)("div",{className:"rounded-full bg-[#F2F2F2] p-2",children:(0,f.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,f.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.75 8V6.79054C8.75 5.78845 9.14268 4.82541 9.8448 4.11379C10.5473 3.40184 11.5022 3 12.5 3C13.4978 3 14.4527 3.40184 15.1552 4.11379C15.8573 4.82541 16.25 5.78845 16.25 6.79054V8H19.0909C19.929 8 20.5 8.72008 20.5 9.46875V19.5312C20.5 20.2799 19.929 21 19.0909 21H5.90909C5.07102 21 4.5 20.2799 4.5 19.5312V9.46875C4.5 8.72008 5.07102 8 5.90909 8H8.75ZM10.9126 5.16731C11.3353 4.73884 11.9065 4.5 12.5 4.5C13.0935 4.5 13.6647 4.73884 14.0874 5.16731C14.5105 5.59612 14.75 6.17983 14.75 6.79054V8H10.25V6.79054C10.25 6.17983 10.4895 5.59612 10.9126 5.16731ZM12.5 15.25C12.9142 15.25 13.25 14.9142 13.25 14.5C13.25 14.0858 12.9142 13.75 12.5 13.75C12.0858 13.75 11.75 14.0858 11.75 14.5C11.75 14.9142 12.0858 15.25 12.5 15.25Z",fill:"#242424"})})}),(0,f.jsxs)("div",{className:"space-y-1 text-center",children:[(0,f.jsx)("h1",{className:"font-black text-[#262626] text-base",children:"Paid Subscribers Only"}),(0,f.jsx)("span",{className:"text-xs text-[656565]",children:"Subscribe to unlock the full story"})]}),(0,f.jsxs)("div",{className:"w-[60%]",children:[(0,f.jsx)(F.Z,{mediaName:W.name,initialState:"cancel"===K?"paid":K,initialPaidStatus:Y.paid_status,paidChannel:Y.subscription_channel,media_subscription_type:W.media_subscription_type,mediaId:W.mediaId,uiStates:{notSubscribed:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-white tracking-[0.25px] font-semibold text-sm bg-[#C49F64] hover:brightness-110 transition-all ease-in-out",children:"Subscribe"}),fullySubscribed:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-[#656565] tracking-[0.25px] font-semibold text-sm bg-[#F2F2F2]",children:"Subscribed"}),canUpgrade:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-white tracking-[0.25px] font-semibold text-sm bg-[#C49F64] hover:brightness-110 transition-all ease-in-out",children:"Upgrade to Full Access"}),needRenew:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-[#656565] tracking-[0.25px] font-semibold text-sm bg-[#F2F2F2]",children:"Renew Subscription"})},expireAt:{time:Y.expire_at},fullWidth:!0}),(0,f.jsx)("div",{className:"mt-2 text-center text-[11px] leading-[13px] tracking-[0.12px] text-[#B2B2B2]",children:"Billed monthly. Cancel anytime."})]})]}),(0,f.jsxs)("div",{className:"pt-8 space-y-3 text-center w-full",children:[(0,f.jsxs)("div",{className:"flex items-center gap-3",children:[(0,f.jsx)("div",{className:"bg-[#BD9E6B] h-0.5 grow"}),(0,f.jsx)(P.Z,{href:"/m/".concat(W.mediaId),children:(0,f.jsx)("a",{target:"_blank",children:(0,f.jsx)(m.Z,{baseUrl:W.icon,size:{width:48,height:48},imgAlt:"media avatar",borderRadius:100,className:"w-12 h-12"})})}),(0,f.jsx)("div",{className:"bg-[#BD9E6B] h-0.5 grow"})]}),(0,f.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,f.jsx)(P.Z,{href:"/m/".concat(W.mediaId),children:(0,f.jsx)("a",{target:"_blank",children:(0,f.jsx)("h2",{className:"text-base leading-[22px] tracking-[-0.31px] text-[#242424] font-bold",children:W.name})})}),(0,f.jsxs)("span",{className:"text-xs text-[#656565]",children:[W.post<100?W.post:"99+"," Content"]})]}),(0,f.jsx)("h3",{className:"max-w-[60%] mx-auto break-words text-base textoverflow-3",children:W.about}),t&&("cancel"===Y.paid_status||K!==W.media_subscription_type)&&(0,f.jsx)("div",{className:"flex justify-center",children:(0,f.jsx)("div",{className:"w-[60%]",children:(0,f.jsx)(F.Z,{mediaName:W.name,initialState:"cancel"===K?"paid":K,initialPaidStatus:Y.paid_status,paidChannel:Y.subscription_channel,media_subscription_type:W.media_subscription_type,mediaId:"".concat(Y.media_id),uiStates:{notSubscribed:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-white tracking-[0.25px] font-semibold text-sm bg-[#C49F64] hover:brightness-110 transition-all ease-in-out",children:"Subscribe"}),fullySubscribed:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-[#656565] tracking-[0.25px] font-semibold text-sm bg-[#F2F2F2]",children:"Subscribed"}
1),canUpgrade:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-white tracking-[0.25px] font-semibold text-sm bg-[#C49F64] hover:brightness-110 transition-all ease-in-out",children:"Upgrade to Full Access"}),needRenew:(0,f.jsx)("div",{className:"rounded-full h-[34px] flex items-center justify-center text-white tracking-[0.25px] font-semibold text-sm bg-[#C49F64] hover:brightness-110 transition-all ease-in-out]",children:"Renew Subscription"})},expireAt:void 0,fullWidth:!0})})})]})]})}}),[K]),X=function(e){var t=e.children;return(0,f.jsxs)(f.Fragment,{children:[t,(0,f.jsx)(Q,{isFreeArticle:!0,hide:K===W.media_subscription_type||!W.media_subscription_type})]})};G&&(X=function(e){var t=e.children;return(0,f.jsxs)("div",{className:"overflow-y-hidden h-fit relative font-roboto",children:[t,(0,f.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-full pointer-events-none max-h-[800px]",style:{background:"linear-gradient(to top, white 50%, transparent 100%)"}}),(0,f.jsx)("div",{className:"relative",children:(0,f.jsx)(Q,{})})]})});var ee=!!W.media_subscription_type;return(0,f.jsxs)(c.Z,{rightNode:$,children:[(0,f.jsxs)("div",{children:[(0,f.jsxs)("section",{className:"pb-6 md:pb-7 flex flex-col max-w-[100vw]",children:[(null===e||void 0===e?void 0:e.isSoftPaywallFlag)&&!(null!==e&&void 0!==e&&e.isFullArticle)&&(0,f.jsx)("div",{className:"h-7 md:h-8 mb-2",children:(0,f.jsx)("span",{className:"text-yellow-600 text-sm md:text-base font-semibold bg-yellow-50 px-1.5 py-1 rounded-sm",children:"May need paid subscription"})}),I<768&&W&&(0,f.jsx)("div",{className:"mb-6",children:(0,f.jsx)(E.Z,{info:W,subRelatedInfo:{media_id:W.mediaId,media_sub_info:Y,media_subscription_type:W.media_subscription_type}})}),"SHORT_POST"===k?(0,f.jsx)(f.Fragment,{children:e.docInfo&&(0,f.jsx)(s.Z,{card:e.docInfo})}):(0,f.jsx)(X,{children:e.isFullArticle?(0,f.jsx)(l.Z,L(L({docId:e.id},e),{},{noAds:ee})):(0,f.jsx)(b.Z,{docId:e.id,summary:e.summary,cover:e.cover,mediaIcon:e.mediaIcon||(e.faviconId?"http://static.particlenews.com/fav/".concat(e.faviconId):""),origiUrl:z,authors:e.authors,title:e.title,dateStr:e.dateStr,source:e.source})})]}),!G&&(0,f.jsx)(j.qT,L({},e)),e.mediaId&&T&&!ee&&(0,f.jsx)(g.Z,{uniqueId:e.id,bannerStyle:B}),I<768&&(0,f.jsx)(j.J1,L({},e)),(0,f.jsxs)("section",{className:"bg-white flex flex-col py-5 pt-5 md:pt-6 pb-10",ref:M,children:[(0,f.jsxs)("h2",{className:"font-semibold text-black/60 tracking-widest text-base pb-5 uppercase",children:["Comments ",U]}),(0,f.jsx)(a.Z,{docId:e.id,focus:!1})]}),e.newsletterStories&&e.newsletterStories.length>0&&(0,f.jsx)(p,{stories:e.newsletterStories}),e.relatedNewsCard&&e.relatedNewsCard.length>0&&(0,f.jsx)(u.Z,{relatedNews:e.relatedNewsCard,categoryInfo:e.catChannel,relatedNewsChannelId:e.relatedNewsChannelId||"",readInApp:D})]}),(0,f.jsx)(j.lY,L({},e)),e.useMediaScripts&&(0,f.jsx)("iframe",{className:"h-0 w-0 border-none",src:"/api/h5/mp-scripts/".concat(e.id)})]})}},66159:function(e,t,n){n(2784);var i=n(44398),r=n(86929),s=n(52322);t.Z=function(e){return(0,s.jsx)(s.Fragment,{children:e.relatedNews&&e.relatedNews.length>0&&(0,s.jsxs)("section",{className:"mb-2 md:mt-0 md:mb-16",children:[(0,s.jsx)("h2",{className:"font-semibold text-black/60 tracking-widest text-base border-b pb-5 uppercase",children:"YOU MAY ALSO LIKE"}),e.relatedNews.map((function(e,t){return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"border-b border-b-gray-100",children:(0,s.jsx)(i.Z,{card:e})}),t%3===2?(0,s.jsx)(r.nN,{uniqueId:"Related-".concat(t),placementId:"psm-pmi-nbcom-web-articlerelated-prod",withWrap:!0}):(0,s.jsx)(s.Fragment,{})]},'"related-'.concat(t,'"'))}))]})})}},94758:function(e,t,n){n.d(t,{Z:function(){return f}});var i=n(95235),r=n(82269),s=n(39097),o=n.n(s),c=n(5632),a=n(2784),l=n(52322),d=["href","children"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?u(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=e.href,n=e.children,i=(0,r.Z)(e,d),s=(0,c.useRouter)(),u=(0,a.useMemo)((function(){if(s.query.rid){if("string"===typeof t)return{pathname:t,query:{rid:s.query.rid}};if("object"===typeof t&&("object"===typeof t.query||"undefined"===typeof t.query))return m(m({},t),{},{query:m(m({},t.query),{},{rid:s.query.rid})})}return t}),[t,s]);return(0,l.jsx)(o(),m(m({href:u},i),{},{children:n}))}},45297:function(e,t,n){n.r(t),n.d(t,{Banner:function(){return h.Z},default:function(){return v}});var i=n(81333),r=n(2784),s=n(6525),o=n(56683),c=n(65777),a=n(36834),l=n(91695),d=n(58333),u=n(52322);function m(e){var t=e.onClose,n=e.onContinueClick,m=(0,a.Z)(),x=(0,c.Z)(),p=(0,i.Z)(x,2),h=(p[0],p[1]);return(0,r.useEffect)((function(){(0,d.VU)("continueModalShow",{})}),[]),(0,u.jsxs)("div",{className:"bg-white py-4 px-6 rounded-t-lg",children:[(0,u.jsx)("div",{className:"text-center border-b pb-2 mb-2",children:(0,u.jsx)("span",{className:"font-bold text-base",children:"Read the content in..."})}),(0,u.jsxs)("div",{children:[(0,u.jsx)(l.ZP,{query:{triggerFrom:"ReadInApp",contentType:e.contentType},children:(0,u.jsx)(f,{icon:(0,u.jsx)(o.Z,{type:"NewsBreak"}),label:"NewsBreak App",children:(0,u.jsx)(s.Z,{text:"Open",color:"primary"})})}),(0,u.jsx)(f,{icon:(0,u.jsx)(o.Z,{type:m}),label:m,onClick:function(){n&&n(),t&&t(),h.hideDrawer()},children:(0,u.jsx)(s.Z,{text:"Continue",color:"secondary"})})]})]})}function f(e){var t=e.icon,n=e.label,i=e.children,r=e.onClick;return(0,u.jsxs)("div",{className:"flex justify-between my-4",children:[(0,u.jsxs)("div",{className:"flex items-center",children:[t,(0,u.jsx)("span",{className:"text-gray-600",children:n})]}),(0,u.jsx)("div",{onClick:r,children:i})]})}var x=n(6277),p=function(e){var t=e.children,n=e.position,s=void 0===n?"bottom":n,o=e.zIndex,a=void 0===o?50:o,l=(0,r.useState)(!0),d=l[0],m=l[1],f=(0,c.Z)(),p=(0,i.Z)(f,1)[0];if(!t||!r.Children.only(t)||!d)return(0,u.jsx)("div",{});var h=function(){m(!1)};return(0,u.jsx)("div",{className:(0,x.Z)("fixed left-0 right-0 flex items-end overflow-hidden z-".concat(a),void 0===p||"forced"===p?"w-screen h-[calc(100vh+200px)]":"","top"===s?"top-0":"bottom-0",void 0===p?"":"bg-black/60"),children:(0,u.jsx)("div",{className:"w-full opacity-100 relative",children:r.Children.map(t,(function(e){return r.cloneElement(e,{onClose:h})}))})})},h=n(71507),b=n(61585);function v(e){var t=(0,c.Z)(),n=(0,i.Z)(t,1)[0],r=(0,b.rZ)().deviceInfo;return null!==r&&void 0!==r&&r.isMobile&&"none"!==n&&null!=n?(0,u.jsx)(p,{position:"bottom",zIndex:"forced"===n?50:40,children:"forced"===n?(0,u.jsx)(m,{onContinueClick:e.onContinueClick,contentType:e.contentType}):"banner"===n?(0,u.jsx)(h.Z,{contentType:e.contentType}):(0,u.jsx)("div",{})}):null}},11941:function(e,t,n){n.d(t,{Z:function(){return p}});var i=n(2784),r=n(91167),s=n(3916),o=n(43442),c=n.n(o),a=n(52322),l=(0,i.memo)((function(e){var t,n,r=e.commentsData,o=e.onLoadMoreComments,l=e.noMoreComments,u=e.source,m=r.commentCnt-r.comments.length>1&&!l,f=(0,i.useState)("Hottest"),x=f[0],p=f[1],h=r.comments.filter((function(e){return"Most recent"===x||!r.hotComments.map((function(e){return e.commentId})).includes(e.commentId)}));return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{style:{position:"relative"},children:[r.hotComments.length>
10&&(0,a.jsxs)("div",{className:c().commentSortNav,children:[(0,a.jsx)("button",{className:"Hottest"===x?c().active:"",onClick:function(){return p("Hottest")},children:"Hottest"}),(0,a.jsx)("button",{className:"Most recent"===x?c().active:"",onClick:function(){return p("Most recent")},children:"Most recent"})]}),(0,a.jsxs)("div",{children:[(null!==(t=r.newComments)&&void 0!==t?t:[]).map((function(t){return(0,a.jsx)(s.Z,{comment:t,source:u,docId:e.docId,onReplyAddSuccess:e.onReplyAddSuccess,onReplyDeleteSuccess:e.onReplyDeleteSuccess},t.commentId)})),"Hottest"===x&&(0,a.jsx)(a.Fragment,{children:(null!==(n=r.hotComments)&&void 0!==n?n:[]).map((function(t){return(0,a.jsx)(s.Z,{comment:t,source:u,docId:e.docId,onReplyAddSuccess:e.onReplyAddSuccess,onReplyDeleteSuccess:e.onReplyDeleteSuccess},t.commentId)}))}),h.map((function(t){return(0,a.jsx)(s.Z,{comment:t,source:u,docId:e.docId,onReplyAddSuccess:e.onReplyAddSuccess,onReplyDeleteSuccess:e.onReplyDeleteSuccess},t.commentId)})),m&&(0,a.jsx)(d,{onClick:o})]})]})})})),d=function(e){var t=e.onClick,n=(0,i.useState)(!1),r=n[0],s=n[1];return(0,a.jsx)("div",{className:"flex justify-center items-center py-3",children:(0,a.jsx)("button",{className:"px-8 border border-solid rounded-full h-10 leading-10",onClick:function(){s(!0),t().finally((function(){return s(!1)}))},children:r?"Loading\xb7\xb7\xb7":"View more comments"})})},u=l,m=n(58333),f=n(87849),x=n(61585),p=i.memo((function(e){var t,n=(0,i.useState)(!1),s=n[0],o=n[1],c=(0,i.useState)({commentCnt:null!==(t=e.commentCnt)&&void 0!==t?t:0,newComments:[],comments:[],hotComments:[]}),l=c[0],d=c[1],p=(0,x.rZ)().expInfo,h=null===p||void 0===p?void 0:p.config.showFewerComments,b=(0,i.useRef)();(0,i.useEffect)((function(){o(!1)}),[e.docId]);var v=(0,i.useCallback)((function(){return e.docId?((0,m.VU)("commentListLoadMoreComments",{type:"list",docId:e.docId}),(0,f.Jl)({docId:e.docId,count:10,lastCommentId:b.current}).then((function(e){return d((function(t){return{commentCnt:e.commentCnt,newComments:t.newComments,hotComments:t.hotComments,comments:t.comments.concat(e.comments)}})),e.comments.length>0?b.current=e.comments[e.comments.length-1].commentId:o(!0),e.comments.length}))):Promise.resolve(0)}),[e.docId]),g=(0,i.useCallback)((function(e){d((function(t){return{commentCnt:t.commentCnt+1,newComments:[e].concat(t.newComments),comments:t.comments,hotComments:t.hotComments}}))}),[]),j=(0,i.useCallback)((function(){d((function(e){return{commentCnt:e.commentCnt+1,newComments:e.newComments,comments:e.comments,hotComments:e.hotComments}}))}),[]),y=(0,i.useCallback)((function(){d((function(e){return{commentCnt:e.commentCnt-1,newComments:e.newComments,comments:e.comments,hotComments:e.hotComments}}))}),[]);return(0,i.useEffect)((function(){e.docId&&(0,f.Jl)({count:h?2:20,docId:e.docId}).then((function(e){d({commentCnt:e.commentCnt,hotComments:h?e.hotComments.slice(0,3):e.hotComments,comments:e.comments,newComments:[]}),e.comments.length>0&&(b.current=e.comments[e.comments.length-1].commentId),e.comments.length<(h?2:20)-1&&o(!0)})).catch((function(){d({commentCnt:0,newComments:[],comments:[],hotComments:[]})}))}),[e.docId]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[!e.hideComposer&&e.docId&&(0,a.jsx)(r.Z,{docId:e.docId,onSuccess:g,autoFocus:e.focus||!1}),!e.hideComposer&&(0,a.jsx)("div",{className:"text-xs text-right py-2",children:(0,a.jsx)("a",{className:"text-blue-500",href:"https://www.newsbreak.com/community-policy",target:"_blank",children:"Community Policy"})}),e.docId&&l.commentCnt>0&&(0,a.jsx)(u,{commentCnt:l.commentCnt,docId:e.docId,commentsData:l,onLoadMoreComments:v,onReplyAddSuccess:j,onReplyDeleteSuccess:y,noMoreComments:s,source:"list"})]})})}))},36834:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(81333),r=n(2784);function s(){var e=r.useState("Browser"),t=(0,i.Z)(e,2),n=t[0],s=t[1];return(0,r.useEffect)((function(){var e,t;null!==(e=navigator)&&void 0!==e&&e.userAgent&&s(function(e){if(!e)return"unknown";if(/Chrome/.test(e))return"Chrome";if(/Firefox/.test(e))return"Firefox";if(/Edg/.test(e))return"Edge";if(/Safari/.test(e))return"Safari";return"Browser"}(null===(t=navigator)||void 0===t?void 0:t.userAgent))}),[]),n}},48035:function(e,t,n){n.d(t,{Z:function(){return r}});n(2784);var i=n(52322);function r(){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",className:"inline-block relative top-[-1px] ml-1",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.34835 2.19026C5.10616 2.44393 5.10616 2.85522 5.34835 3.10889L10.3362 8.33333L5.34835 13.5578C5.10616 13.8115 5.10616 14.2227 5.34835 14.4764C5.59053 14.7301 5.98319 14.7301 6.22538 14.4764L11.6517 8.79265C11.8939 8.53898 11.8939 8.12769 11.6517 7.87402L6.22538 2.19026C5.98319 1.93658 5.59053 1.93658 5.34835 2.19026Z",fill:"#242424"})})}},57641:function(e,t,n){n.d(t,{NO:function(){return B},Yn:function(){return M},a4:function(){return w},mr:function(){return H},mw:function(){return C}});var i,r=-1,s=function(e){addEventListener("pageshow",(function(t){t.persisted&&(r=t.timeStamp,e(t))}),!0)},o=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},c=function(){var e=o();return e&&e.activationStart||0},a=function(e,t){var n=o(),i="navigate";return r>=0?i="back-forward-cache":n&&(document.prerendering||c()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},l=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},d=function(e,t,n,i){var r,s;return function(o){t.value>=0&&(o||i)&&((s=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=s,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},u=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},m=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},f=function(e){var t=!1;return function(){t||(e(),t=!0)}},x=-1,p=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},h=function(e){"hidden"===document.visibilityState&&x>-1&&(x="visibilitychange"===e.type?e.timeStamp:0,v())},b=function(){addEventListener("visibilitychange",h,!0),addEventListener("prerenderingchange",h,!0)},v=function(){removeEventListener("visibilitychange",h,!0),removeEventListener("prerenderingchange",h,!0)},g=function(){return x<0&&(x=p(),b(),s((function(){setTimeout((function(){x=p(),b()}),0)}))),{get firstHiddenTime(){return x}}},j=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},y=[1800,3e3],w=function(e,t){t=t||{},j((function(){var n,i=g(),r=a("FCP"),o=l("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=Math.max(e.startTime-c(),0),r.entries.push(e),n(!0)))}))}));o&&(n=d(e,r,y,t.reportAllChanges),s((function(i){r=a("FCP"),n=d(e,r,y,t.reportAllChanges),u((function(){r.value=performance.now()-i.timeStamp,n(!0)}))})))}))},N=[.1,.25],C=function(e,t){t=t||{},w(f((function(){var n,i=a("CLS",0),r=0,o=[],c=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=o[0],n=o[o.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e])}})),r>
vendor: 2,989 bytes, line 1
1i.value&&(i.value=r,i.entries=o,n())},f=l("layout-shift",c);f&&(n=d(e,i,N,t.reportAllChanges),m((function(){c(f.takeRecords()),n(!0)})),s((function(){r=0,i=a("CLS",0),n=d(e,i,N,t.reportAllChanges),u((function(){return n()}))})),setTimeout(n,0))})))},_=0,I=1/0,k=0,S=function(e){e.forEach((function(e){e.interactionId&&(I=Math.min(I,e.interactionId),k=Math.max(k,e.interactionId),_=k?(k-I)/7+1:0)}))},O=function(){return i?_:performance.interactionCount||0},Z=function(){"interactionCount"in performance||i||(i=l("event",S,{type:"event",buffered:!0,durationThreshold:0}))},F=[],P=new Map,E=0,A=[],R=function(e){if(A.forEach((function(t){return t(e)})),e.interactionId||"first-input"===e.entryType){var t=F[F.length-1],n=P.get(e.interactionId);if(n||F.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};P.set(i.id,i),F.push(i)}F.sort((function(e,t){return t.latency-e.latency})),F.length>10&&F.splice(10).forEach((function(e){return P.delete(e.id)}))}}},T=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=f(e),"hidden"===document.visibilityState?e():(n=t(e),m(e)),n},L=[200,500],M=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},j((function(){var n;Z();var i,r=a("INP"),o=function(e){T((function(){e.forEach(R);var t=function(){var e=Math.min(F.length-1,Math.floor((O()-E)/50));return F[e]}();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,i())}))},c=l("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=d(e,r,L,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),m((function(){o(c.takeRecords()),i(!0)})),s((function(){E=O(),F.length=0,P.clear(),r=a("INP"),i=d(e,r,L,t.reportAllChanges)})))})))},D=[2500,4e3],U={},B=function(e,t){t=t||{},j((function(){var n,i=g(),r=a("LCP"),o=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime<i.firstHiddenTime&&(r.value=Math.max(e.startTime-c(),0),r.entries=[e],n())}))},x=l("largest-contentful-paint",o);if(x){n=d(e,r,D,t.reportAllChanges);var p=f((function(){U[r.id]||(o(x.takeRecords()),x.disconnect(),U[r.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return T(p)}),!0)})),m(p),s((function(i){r=a("LCP"),n=d(e,r,D,t.reportAllChanges),u((function(){r.value=performance.now()-i.timeStamp,U[r.id]=!0,n(!0)}))}))}}))},q=[800,1800],V=function e(t){document.prerendering?j((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},H=function(e,t){t=t||{};var n=a("TTFB"),i=d(e,n,q,t.reportAllChanges);V((function(){var r=o();r&&(n.value=Math.max(r.responseStart-c(),0),n.entries=[r],i(!0),s((function(){n=a("TTFB",0),(i=d(e,n,q,t.reportAllChanges))(!0)})))}))};new Date}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.