1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9205],{14488:(o,r,t)=>{t.r(r),t.d(r,{default:()=>u});var n=t(60143),c=t(45159),e=t(65389),a=t(69274),i=t(94232);let u=function(o){var r=o.isBeforeStoryList,t=o.isLastItemInZone,u=o.zoneItemData,f=u.enableOrder,h=void 0===f||f,p=u.flipStoryDisplay,l=u.isHeroImage,s=u.label,d=u.largeLeadStory,v=u.limit,m=u.offset,w=u.showCanonicalSite,g=u.stories,x=u.storyListId,_=u.summaryOptions,y=u.useCanonicalUrl,C=o.zoneItemId,M=o.zoneName,b=null!=v?v:10,S=[e.Oo.MAIN,e.Oo.MAIN_SIDE,e.Oo.MAIN_TOP];b=b<20?b:20;var I=g.map(function(o,r){return{index:b<g.length?r+1:r+m,story:o}}),X=(0,c.useMemo)(function(){return{enableOrder:h,label:s,storyListId:x,summaryOptions:_,useCanonicalUrl:y,zoneItemId:C}},[h,s,x,_,y,C]);return g.length>0&&S.includes(M)?(0,n.jsx)(a.A.Provider,{value:X,children:(0,n.jsx)(i.fx,{disableBottomBorder:!1,flipStoryDisplay:p,isBeforeStoryList:void 0!==r&&r,isHeroImage:l,isLastItemInZone:void 0!==t&&t,largeLeadStory:d,limit:b,offset:b<g.length?m:1,showCanonicalSite:w,stories:I,zoneName:M})}):null}},31817:(o,r,t)=>
1{t.d(r,{$8:()=>d,GI:()=>y,Ix:()=>f,JE:()=>x,Pz:()=>i,Sz:()=>l,WO:()=>w,es:()=>p,gf:()=>g,j6:()=>_,py:()=>s,vX:()=>m});var n,c,e=t(76367),a=t(91167),i=((n={}).CROP="crop",n.SCALE="scale",n.MAX="max",n),u={landscape:"aspect-w-16 aspect-h-9",portrait:"",square:"aspect-w-1 aspect-h-1",strap:""};function f(o){return u[function(o){var r="landscape";if(o){var t=o.cropHeight,n=o.cropWidth;void 0!==t&&void 0!==n&&(Math.min(n,t)/Math.max(n,t)>.8?r="square":t/n<.3?r="strap":t>n&&(r="portrait"))}return r}(o)]}var h={c100x66:{f:"crop",h:66,w:100},c105x70:{f:"crop",h:70,w:105},c200x132:{f:"crop",h:132,w:200},c284x270:{f:"crop",h:270,w:284},c370x246:{f:"crop",h:246,w:370},c370x270:{f:"crop",h:270,w:370},c576x298:{f:"crop",h:298,w:576},c627x561:{f:"crop",h:561,w:627},c700x400:{f:"crop",h:400,w:770},c800x561:{f:"crop",h:561,w:800},c1200x678:{f:"crop",h:678,w:1200},cartoon:{f:"crop",h:365,w:500},cartoonLarge:{f:"crop",h:730,w:1e3},deep:{f:"crop",h:630,w:470},exploreTravel:{f:"crop",h:651,w:980},feature:{f:"crop",h:300,w:850},iphone:{f:"crop",h:320,w:320},iphone2x:{f:"scale",h:640,w:640},large:{f:"crop",h:678,w:1200},medium:{f:"crop",h:298,w:576},postcard:{f:"crop",h:180,w:270},small:{f:"crop",h:246,w:370},square:{f:"crop",h:320,w:470},thumbnail:{f:"crop",h:90,w:130},thumbnailLarge:{f:"crop",h:145,w:215},thumbnailSmall:{f:"crop",h:60,w:90},tiny:{f:"crop",h:132,w:200},wide:{f:"crop",h:210,w:370}};function p(o){var r,t,n=o.sourceHeight,c=o.sourceWidth,e={cropHeight:n,cropWidth:c,cropX:0,cropY:0,focalX:Math.round(c/2),focalY:Math.round(n/2),scale:1};return c>=n&&(c/n>16/9?(e.cropHeight=n,e.cropWidth=16*n/9):c/n<16/9&&(e.cropWidth=c,e.cropHeight=9*c/16),e.cropX=(c-(null!=(r=e.cropWidth)?r:0))/2,e.cropY=(n-(null!=(t=e.cropHeight)?t:0))/2),e.cropX<0&&(e.cropX=0),e.cropY<0&&(e.cropY=0),e}function l(o){var r=o.aspect,t=o.focalX,n=o.focalY,c=o.height,e=void 0===c?1:c,a=o.scale,i=void 0===a?1:a,u=o.width,f=void 0===u?1:u,h=f/i,p=e/i;r>f/e?p=h/r:h=p*r;var l=n-n/e*p;return{height:Math.round(p),topX:Math.round(t-t/f*h),topY:Math.round(l),width:Math.round(h)}}var s=((c={}).JPG="jpg",c.WEBP="webp",c);function d(o){var r=o.fit,t=o.height,n=o.ignoreCrop,c=void 0!==n&&n,i=o.image,u=o.outputFormat,f=void 0===u?"jpg":u,p=o.size,s=o.useFocalPoint,d=void 0===s||s,v=o.width,m="cropConfig"in i?i.cropConfig:void 0,w={f:"crop",h:t,w:v};if(p&&!(w=(0,e._)({},h[p])))throw Error("Unsupported transform size ".concat(p));if(r&&(w.f=r),w.path=i.uri.replace(/^\/+|\/+$/g,""),void 0===w.h&&(w.h=0),void 0===w.w&&(w.w=0),void 0===w.f&&(w.f="crop"),c||!((g="cropConfig"in i?i.cropConfig:void 0)&&g.cropWidth))w.transform="resize",w.request=0!==w.h?"w".concat(w.w,"_h").concat(w.h,"_f").concat(c?"max":w.f,".").concat(f):"w".concat(w.w,"_h").concat(w.h,".").concat(f,"?resize_filter=lanczos2&quality=100");else{var g,x,_,y,C=function(o,r){var t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n="cropConfig"in o?o.cropConfig:void 0;if(!n)return[];if(t&&void 0!==n.focalX&&void 0!==n.focalY){var c=l({aspect:r,focalX:n.focalX-n.cropX,focalY:n.focalY-n.cropY,height:n.cropHeight,width:n.cropWidth}),e=Math.round(c.topX+n.cropX),a=Math.round(c.topY+n.cropY);return[[e,a],[Math.round(e+c.width),Math.round(a+c.height)]]}return[[Math.round(n.cropX),Math.round(n.cropY)],[Math.round(n.cropX+(n.cropWidth||0)),Math.round(n.cropY+(n.cropHeight||0))]]}(i,0===w.h?1:w.w/w.h,d);w.transform="crop",x=(0,a._)(C,2),_=(0,a._)(x[0],2),w.x1=_[0],w.y1=_[1],y=(0,a._)(x[1],2),w.x2=y[0],w.y2=y[1],d&&(null==m?void 0:m.focalX)!==void 0&&(w.f="max"),w.request="r".concat(w.x1,"_").concat(w.y1,"_").concat(w.x2,"_").concat(w.y2,"_")+"w".concat(w.w,"_h").concat(w.h,"_f").concat(w.f,".").concat(f)}return w}function v(o){var r=d(o),t="transform/v1/".concat(r.transform,"/frm/").concat(r.path,"/");return"".concat(t).concat(r.request)}function m(o){var r=d(o);return[r.x1+r.x2,r.y1+r.y2]}function w(o){var r=o.fit,t=o.height,n=o.ignoreCrop,c=o.image,e=o.outputFormat,a=o.size,i=o.transformUrl,u=o.useFocalPoint,f=o.width;if(a&&(f||t))throw Error("Cannot use fixedSize and dimensions together");return"".concat(i).concat(v({fit:r,height:t,ignoreCrop:n,image:c,outputFormat:e,size:a,useFocalPoint:u,width:f}))}function g(o){var r=o.fit,t=o.height,n=o.image,c=o.outputFormat,e=o.transformUrl,a=o.width;return"".concat(e).concat(v({fit:void 0===r?"crop":r,height:t,ignoreCrop:!1,image:n,outputFormat:c,useFocalPoint:!1,width:a}))}function x(o){var r=o.height,t=o.image,n=o.outputFormat,c=o.transformUrl,e=o.width;return"".concat(c).concat(v({height:r,ignoreCrop:!0,image:t,outputFormat:void 0===n?"jpg":n,useFocalPoint:!1,width:e}))}function _(o){return"uri"in o&&!!o.uri}function y(o){return new Promise(function(r){var t=new Image;t.onload=function(){return r(!0)},t.onerror=function(){return r(!1)},t.src=o})}},50172:(o,r,t)=>
1{t.d(r,{A:()=>h,m:()=>f});var n=t(76367),c=t(30694),e=t(91167),a=t(60143),i=t(45159),u=t(62715),f=(0,i.createContext)({addStory(){},forStory:()=>null});function h(o){var r=o.children,t=(0,u.GV)(function(o){return o.features.viafoura}),h=(0,e._)((0,i.useState)({}),2),p=h[0],l=h[1];(0,i.useEffect)(function(){t.enabled&&Object.entries(p).forEach(function(o){var r=(0,e._)(o,2),t=r[0],a=Object.entries(r[1]).filter(function(o){return void 0===(0,e._)(o,2)[1]}).map(function(o){return(0,e._)(o,1)[0]});0!==a.length&&(l(function(o){var r=(0,n._)({},o);return a.forEach(function(o){r[t][o]=null}),r}),fetch("https://livecomments.viafoura.co/v4/livecomments/"+"".concat(t,"/content-containers/")+"comment-count-and-status/by-container-ids",{body:JSON.stringify(a),method:"POST"}).then(function(o){if(!o.ok)throw l(function(o){var r=(0,n._)({},o);return a.forEach(function(o){r[t][o]=0}),r}),Error("Viafoura comment count response error");return o}).then(function(o){return o.json()}).then(function(o){l(function(r){var e,a=!1,i=null!=(e=r[t])?e:{};return(o.forEach(function(o){var r=o.commentCount,t=o.containerId;i[t]!==r&&(a=!0,i[t]=r)}),a)?(0,c._)((0,n._)({},r),{[t]:i}):r})}).catch(function(o){console.error(o)}))})},[p,t]);var s=t.enabled?t.data.sectionUuid:"",d=(0,i.useCallback)(function(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;t.enabled&&l(function(t){return t[r]&&o in t[r]?t:(0,c._)((0,n._)({},t),{[r]:(0,c._)((0,n._)({},t[r]),{[o]:void 0})})})},[s,t.enabled]),v=(0,i.useCallback)(function(o){var r,t,n;return null!=(t=null==(n=p[null!=(r=o.viafouraSyndicationSectionUuid)?r:s])?void 0:n[o.id])?t:null},[p,s]),m=(0,i.useMemo)(function(){return{addStory:d,forStory:v}},[d,v]);return t.enabled?(0,a.jsx)(f.Provider,{value:m,children:r}):(0,a.jsx)(a.Fragment,{children:r})}}}]);
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.