(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4405,8500],{45385:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...index]]",function(){return i(15798)}])},7192:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var l=i(11527),a=i(50959),o=i(41249),n=i(88566),r=i(80936),s=i(16920),d=i(76892),c=i(97941),_=i.n(c),u=i(45276),v=function(){let[e,t]=(0,a.useState)(""),i=(0,n.$)(),{leaf:c}=(0,o.Vy)(),{isMobile:v}=(0,n.Sj)(),m=(0,a.useMemo)(()=>(0,r.vy)(i.key)||e.includes("sport.quotidiano")||e.includes("testsport")?"Continua a leggere tutte le notizie di sport su":"Continua a leggere su",[e]),p=(0,a.useMemo)(()=>{if(c.url){var e;let i=new URL(null!==(e=c.url)&&void 0!==e?e:"");return t(i.host),i.origin}return""},[]);return(0,a.useCallback)(e=>{switch(e){case"sport.quotidiano.net":case"testsport.quotidiano.net":return d.Lc.QuotidianoSportivo;case"quotidiano.net":return d.Lc.QN;case"lanazione.it":return d.Lc.LaNazione;case"ilrestodelcarlino.it":return d.Lc.IlRestoDelCarlino;case"ilgiorno.it":return d.Lc.IlGiorno;case"iltelegrafolivorno.it":return d.Lc.IlTelegrafoDiLivorno;default:return i.key}},[]),e.includes("sport")?(0,l.jsxs)(s.ZP,{href:p,className:_().link__container,"data-k5a-pos":"continua-leggere",children:[(0,l.jsx)("p",{children:m}),(0,l.jsx)(d.TR,{variant:u.Y0.QuotidianoSportivo,color:d.Or.Original,size:v?d.tF.XS:d.tF.MD,className:_().link__logo})]}):(0,l.jsx)(l.Fragment,{})}},16148:function(e,t,i){"use strict";i.d(t,{Z:function(){return o}});var l=i(11527),a=i(50959);function o(e){let[t,i]=(0,a.useState)(0),[o,n]=(0,a.useState)(0),[r,s]=(0,a.useState)(0),[d,c]=(0,a.useState)(0);return(0,l.jsx)("div",{onTouchStart:function(e){n(0),i(e.targetTouches[0].clientX),c(0),s(e.targetTouches[0].clientY)},onTouchMove:function(e){n(e.targetTouches[0].clientX),c(e.targetTouches[0].clientY)},onTouchEnd:function(){t&&o&&function(){let i=t-o;!(Math.abs(r-d)>=Math.abs(i))&&(i>50&&e.onSwipeLeft&&e.onSwipeLeft(),i<-50&&e.onSwipeRight&&e.onSwipeRight())}(),r&&d&&function(){let i=r-d;!(Math.abs(t-o)>=Math.abs(i))&&(i<-50&&e.onSwipeDown&&e.onSwipeDown(),i>50&&e.onSwipeUp&&e.onSwipeUp())}()},children:e.children})}},69995:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var l=i(11527),a=i(41895),o=i(59271),n=i(58090),r=i(58290),s=i(50959),d=i(41249),c=i(19800),_=i(66770),u=()=>{let{leaf:e,section:t}=(0,d.Vy)(),i=(0,c.$)(),{user:l}=(0,c.aF)(),a=(0,s.useMemo)(()=>{switch(l.loginStatus){case c.$u.Anonymous:return"anon";case c.$u.Registered:return"lgdin";case c.$u.Subscriber:case c.$u.SubscriberFull:return"paid";default:return"unknown"}},[l.loginStatus]),o=(0,s.useMemo)(()=>{var l,a,o,n,r,s;let d=(null==t?void 0:t.path)==="/"||(null==e?void 0:e.path)==="/itinerari"||(null==e?void 0:e.path)==="/luce"||(null==e?void 0:e.path)==="/salute"?"HP":(0,c.sI)(i.key)?"/luce".concat(null!==(l=null==t?void 0:t.path)&&void 0!==l?l:""):(0,c.v2)(i.key)?"/itinerari".concat(null!==(a=null==t?void 0:t.path)&&void 0!==a?a:""):(0,c.a1)(i.key)?"/salute".concat(null!==(o=null==t?void 0:t.path)&&void 0!==o?o:""):null!==(n=null==t?void 0:t.path)&&void 0!==n?n:"";return{authors:(0,c.AP)(null==e?void 0:e.hideAuthor,null==e?void 0:e.byline,Array.isArray(null==e?void 0:e.authors)&&e.authors.length>0?[{name:e.authors[0].name,bio:e.authors[0].bio}]:[],(0,_.GH)(e),null==e?void 0:e.sourceArticle,null==e?void 0:e.publishedDate,i.key),currentSection:d,currentPath:null!==(r=null==e?void 0:e.path)&&void 0!==r?r:"",currentTitle:null!==(s=null==e?void 0:e.title)&&void 0!==s?s:""}},[e,t]);return(0,s.useEffect)(()=>{window.pSUPERFLY&&(null==e?void 0:e.path)&&window.pSUPERFLY.virtualPage({sections:o.currentSection,authors:o.authors,path:o.currentPath,title:o.currentTitle})},[o,e]),(0,s.useEffect)(()=>{window._sf_async_config||(window._sf_async_config={},window._sf_async_config.uid=67195,window._sf_async_config.domain=(0,c.sI)(i.key)?"www.quotidiano.net/luce":i.virtual_url,window._sf_async_config.useCanonical=!0,window._sf_async_config.useCanonicalDomain=!0,window._sf_async_config.sections=o.currentSection,window._sf_async_config.authors=o.authors,(0,_.GH)(e)&&(window._sf_async_config.flickerControl=!1),(window._cbq=window._cbq||[]).push(["_acct",a]),[{src:"//static.chartbeat.com/js/chartbeat.js"},...(0,_.GH)(e)?[{src:"//static.chartbeat.com/js/chartbeat_mab.js"}]:[]].forEach(e=>{let t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=e.src,document.head.appendChild(t)}))},[o,a,i.url]),null},v=i(32774),m=function(e){let{isPreview:t=!1,userAgent:i=!1}=e,s=(0,c.$)();return t?null:(0,l.jsxs)(l.Fragment,{children:[!1===s.skipSubscription&&(0,l.jsx)(v.ZP,{}),(0,l.jsx)(a.Z,{}),(0,l.jsx)(r.Z,{}),(0,l.jsx)(n.Z,{}),(0,l.jsx)(o.Z,{}),(0,l.jsx)(u,{})]})}},59271:function(e,t,i){"use strict";var l=i(11527),a=i(20407),o=i.n(a),n=i(19800),r=i(83171),s=i.n(r),d=i(41249),c=i(47615);t.Z=function(){var e,t;let{leaf:i}=(0,d.Vy)(),{cxsense_id:a}=(0,n.$)(),r=(null==i?void 0:null===(e=i.tags)||void 0===e?void 0:e.map(e=>e.name).join(", "))||"";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s(),{children:[(0,l.jsx)("meta",{name:"cXenseParse:keywords",content:r}),(0,l.jsx)("meta",{name:"cXenseParse:keywords",content:(0,c.$)(null!==(t=null==i?void 0:i.title)&&void 0!==t?t:"").join()})]}),(0,l.jsx)(o(),{id:"cxsense-init",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"\n var cX = window.cX = window.cX || {};\n cX.callQueue = cX.callQueue || [];\n "}}),(0,l.jsx)(o(),{id:"cxsense-cce",strategy:"beforeInteractive",src:"https://cdn.cxense.com/cx.cce.js"}),(0,l.jsx)(o(),{id:"cxsense-config",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n (function() {\n function initCx() {\n if (typeof window.cX === 'undefined' || typeof window.cX.callQueue === 'undefined') {\n setTimeout(initCx, 50);\n return;\n }\n window.cX.callQueue.push(['setSiteId', '".concat(a,"']);\n }\n initCx();\n })();\n ")}})]})}},17479:function(e,t,i){"use strict";i.d(t,{Z:function(){return l.Z}});var l=i(69995)},5502:function(e,t,i){"use strict";i.d(t,{Z:function(){return l.Z}});var l=i(52759)},17332:function(e,t,i){"use strict";i.d(t,{Z:function(){return eN}});var l,a,o=i(11527),n=i(45924),r=i(19800),s=i(34801),d=i(8857),c=i(37766),_=i.n(c),u=i(20407),v=i.n(u),m=i(50959),p=i(41249),h=i(41138);(l=a||(a={})).Image="image",l.Gallery="gallery",l.Article="article",l.Quote="quote",l.Facebook="facebook",l.X="x",l.Instagram="instagram",l.Youtube="youtube",l.YT="yt",l.DailyMotion="daily-motion",l.DM="dm",l.GenericIframe="generic-iframe",l.Video="video";var g=i(34436),y=i.n(g),f=function(e){let{embed:t}=e,{embedChildren:i}=t;return i?(0,o.jsxs)("div",{className:y().quote,children:[(0,o.jsx)("svg",{className:y().quote__icon,width:"35",height:"35",viewBox:"0 0 35 35",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("circle",{fill:"#4F9EFF",cx:"17.5",cy:"17.5",r:"17.5"}),(0,o.jsx)("g",{fill:"#FFF",fillRule:"nonzero",children:(0,o.jsx)("path",{d:"M20.48 25c-.269 0-.52-.056-.727-.202-.215-.15-.47-.46-.459-1.078.015-.854.686-1.232 1.177-1.508l.156-.089c.642-.374 1.133-.716 1.544-1.074.818-.715 1.207-1.345 1.162-1.505 0 0-.024-.028-.11-.06-.126-.045-.283-.057-.448-.07a3.37 3.37 0 0 1-.402-.048c-1.902-.373-3.084-1.84-3.084-3.827 0-2.503 1.954-4.539 4.356-4.539C26.087 11 28 12.994 28 15.54c0 2.974-1.453 7.086-5.548 8.875l-.098.045c-.47.206-1.223.54-1.874.54zm3.164-13.176c-1.965 0-3.563 1.667-3.563 3.715 0 1.613.888 2.712 2.438 3.016.101.02.208.027.315.036.199.016.424.034.644.113.474.169.601.504.633.69.14.779-.838 1.768-1.433 2.287-.45.393-.98.762-1.665 1.161l-.167.096c-.47.263-.757.45-.762.796-.003.198.034.326.11.38.235.166.857.025 1.848-.414l.104-.046c3.737-1.634 5.062-5.392 5.062-8.115 0-2.083-1.566-3.715-3.564-3.715zM10.192 25c-.269 0-.52-.056-.727-.202-.215-.15-.47-.46-.46-1.078.014-.854.687-1.233 1.178-1.509l.155-.088c.643-.374 1.133-.716 1.544-1.074.819-.714 1.208-1.344 1.163-1.505 0 0-.024-.028-.111-.06-.125-.045-.282-.057-.448-.07a3.426 3.426 0 0 1-.402-.048C10.18 18.993 9 17.526 9 15.539 9 13.036 10.954 11 13.355 11c2.443 0 4.356 1.994 4.356 4.54 0 2.974-1.453 7.085-5.548 8.875l-.098.045c-.47.206-1.222.54-1.873.54zm3.163-13.176c-1.964 0-3.563 1.667-3.563 3.715 0 1.613.888 2.713 2.438 3.017.102.02.209.027.316.036.199.016.424.034.645.112.474.17.6.505.632.69.14.78-.839 1.77-1.434 2.289-.449.39-.978.759-1.665 1.16l-.165.095c-.47.263-.756.45-.762.796-.003.198.033.326.11.38.349.249 1.477-.25 1.846-.414l.103-.046c3.738-1.634 5.064-5.392 5.064-8.115 0-2.083-1.566-3.715-3.565-3.715z"})})]})}),i]}):null},x=i(95238),w=i(76576),b=i.n(w),j=function(e){var t;let{embed:i}=e,{height:l,baseUrl:a,title:n,width:s,description:d,imageFormat:c="16x9",embedCaption:_}=i,{leaf:u}=(0,p.Vy)(),v=u.publishedDate<"2024-07-23T12:00:00.970Z",h=(0,m.useMemo)(()=>c.replace("x",":"),[c]);return a?(0,o.jsxs)("div",{className:b().imageEmbed,children:[(0,o.jsx)(r.Ee,{height:l,src:a,width:s,alt:null!==(t=n||d)&&void 0!==t?t:"",format:h,sizes:x.u_,style:{maxWidth:"100%",height:"auto"}}),n&&"Migration"!==n&&(0,o.jsx)("div",{className:b().imageEmbed__caption,children:v?n||"":_||""})]}):null},S=i(93675),N=i.n(S),C=function(e){let{embed:t}=e,{source:i}=t,l=(0,m.useMemo)(()=>i?new URL(i).searchParams.get("href"):null,[i]);return i?(0,o.jsxs)("div",{className:N().facebook__embed,children:[(0,o.jsx)(v(),{src:"https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v14.0",async:!0,defer:!0,crossOrigin:"anonymous"}),(0,o.jsx)("div",{className:"fb-post","data-href":l,"data-show-text":"true"})]}):null},L=i(62197),k=i.n(L),P=function(e){let{embed:t}=e,{source:i}=t,l=(0,m.useMemo)(()=>i?new URL(i).pathname.replace(/\/+$/,"").split("/").pop():null,[i]);return l?(0,o.jsx)("iframe",{title:"instagram-embed",frameBorder:0,src:"https://instagram.com/p/".concat(l,"/embed"),className:k().instagram__embed,loading:"lazy"}):null},I=i(98569),A=i.n(I),T=function(e){let{embed:t}=e,{source:i}=t,l=(0,m.useMemo)(()=>i?new URL(i).pathname.replace(/\/+$/,"").split("/").pop():null,[]);return l?(0,o.jsxs)("div",{className:A().x,children:[(0,o.jsx)("blockquote",{className:"twitter-tweet",children:(0,o.jsx)("a",{href:"https://x.com/x/status/".concat(l)})}),(0,o.jsx)(v(),{strategy:"lazyOnload",async:!0,src:"https://platform.x.com/widgets.js",charSet:"utf-8"})]}):null},E=i(7331),z=i.n(E),V=function(e){let{embed:t}=e,{source:i}=t,l=(0,m.useRef)(null),a=(0,r.c_)(l,{rootMargin:"300px 0px"}),n=!!(null==a?void 0:a.isIntersecting),s=(0,m.useMemo)(()=>i?new URL(i).pathname.replace(/\/+$/,"").split("/").pop():null,[i]);return(0,o.jsx)("div",{className:z().youtube__embed,ref:l,children:n?(0,o.jsx)("iframe",{title:"youtube-embed",src:"https://www.youtube.com/embed/".concat(s),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):void 0})},O=i(89583),M=i.n(O),R=function(e){let{embed:t}=e;return(0,o.jsx)("div",{className:M().generic__iframe__embed,children:(0,o.jsx)("iframe",{...t.iframeAttribs,title:t.originalType,loading:"lazy"})})},Z=i(26812),D=i.n(Z),F=i(14714),W=function(e){let{parentArticleType:t,embed:i}=e,{title:l,teaserImage:a,path:d,byline:c}=i,_=(0,m.useMemo)(()=>(0,F.U)(a)&&t!==s.Iq.EditorialArticle,[a,t]),u=(0,m.useMemo)(()=>!(c&&/^[\s\n\t]+$/.test(c))&&c&&t===s.Iq.EditorialArticle,[t,c]),[v]=(0,r.t6)();return d&&l?(0,o.jsxs)("div",{className:(0,n.Z)(D().article__embed,t&&D()["article__embed--".concat(t)]),"data-k5a-pos":"approfondisci",onClick:()=>{v(r.Sc.ART_CLICK,{position:r.vt.APPROFONDISCI})},children:[(0,o.jsx)("div",{className:D().article__embed__head,children:"Approfondisci:"}),(0,o.jsxs)(r.rU,{href:d,className:D().article__embed__content,children:[(0,o.jsx)("h4",{children:l}),_&&(0,o.jsx)("div",{children:(0,o.jsx)(r.Ee,{alt:l,src:a.baseUrl||"",width:140,maintainAspectRatio:!1})}),u&&(0,o.jsxs)("div",{className:D().article__embed__author,children:["di ",(0,o.jsx)("span",{children:c})]})]})]}):null},B=i(66605),U=i(47615),G=i(66770),q=function(e){let{embed:t}=e,{source:i,video:l,params:a}=t,n=(0,m.useMemo)(()=>{if(i){var e;return null===(e=new URL(i).pathname.replace(/\/+$/,"").split("/").pop())||void 0===e?void 0:e.replace(/\.js+$/,"")}return null},[i]),{leaf:r}=(0,p.Vy)(),s=(0,m.useMemo)(()=>null==a?void 0:a.includes("mute=true"),[a]),d=(0,m.useCallback)(()=>{let e=(0,B.K)();if(n){var t,i,a;null===(i=window)||void 0===i||null===(t=i.dailymotion)||void 0===t||t.createPlayer(n,{video:l,player:n,referrerPolicy:"no-referrer-when-downgrade",params:{mute:s,customConfig:{customParams:(0,G.ay)(r)?"advoff":"advon",keyvalues:"vsegments=".concat(e.join(","),"&keywords=").concat((0,U.$)(null!==(a=null==r?void 0:r.title)&&void 0!==a?a:""))}}})}},[n]);return n?(0,o.jsxs)("div",{style:{position:"relative",width:"100%",paddingBottom:"56.25%",background:"#000"},children:[(0,o.jsx)("div",{id:n,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:"My player placeholder"}),(0,o.jsx)(v(),{strategy:"lazyOnload",src:"https://geo.dailymotion.com/libs/player/".concat(n,".js"),onReady:d})]}):null},H=i(64968),X=i(61538),Y=i(64392),$=i.n(Y);function Q(e){let{embed:t}=e,i=(null==t?void 0:t.playerType)===H.L.AutoplayPipOn,[l,a]=(0,m.useState)(i),[n,s]=(0,m.useState)(!1),d=(0,r.$)(),c="/og/vertical/".concat(d.key,".svg"),_=(0,m.useMemo)(()=>({media:{mediaId:null==t?void 0:t.mediaId,embedCode:null==t?void 0:t.embedCode},content:{mediaId:null==t?void 0:t.mediaId,publishedDate:null==t?void 0:t.publishedDate},title:(null==t?void 0:t.title)||""}),[null==t?void 0:t.mediaId,null==t?void 0:t.embedCode,null==t?void 0:t.title,null==t?void 0:t.publishedDate]),{getThumbnailUrl:u,isLoading:v}=(0,X.U)([_],"720"),p=n?c:u(_,c);return l?(0,o.jsx)("div",{className:$().reelEmbed,children:(0,o.jsx)("div",{className:$().reelEmbed__player,children:(0,o.jsx)(H.Z,{videoId:null==t?void 0:t.mediaId,embedCode:null==t?void 0:t.embedCode,playlist:null==t?void 0:t.playlist,playerType:null==t?void 0:t.playerType,aspectRatio:null==t?void 0:t.format})})}):(0,o.jsx)("div",{className:$().reelEmbed,children:(0,o.jsx)("button",{className:$().reelEmbed__card,onClick:()=>a(!0),"aria-label":"Riproduci video: ".concat((0,r.Vt)(null==t?void 0:t.title)),children:(0,o.jsx)("div",{className:$().reelEmbed__imageContainer,children:(0,o.jsxs)("div",{className:$().reelEmbed__wrapper,children:[(0,o.jsx)("div",{className:$().reelEmbed__overlay}),(0,o.jsx)("div",{className:$().reelEmbed__playIcon,children:(0,o.jsx)(ee,{})}),(0,o.jsx)(J,{className:$().reelEmbed__playerLogo}),(0,o.jsx)(r.Ee,{className:$().reelEmbed__thumbnail,width:330,height:588,src:p,alt:(0,r.Vt)(null==t?void 0:t.title)||"",onError:()=>s(!0)}),(0,o.jsxs)("div",{className:$().reelEmbed__info,children:[(0,o.jsx)("div",{className:$().reelEmbed__gradient}),(0,o.jsx)("div",{className:$().reelEmbed__infoContent,children:(0,o.jsx)("span",{className:$().reelEmbed__title,children:(0,r.Vt)(null==t?void 0:t.title)})}),(null==t?void 0:t.publishedDate)&&(0,o.jsx)("span",{className:$().reelEmbed__date,children:function(e){let t=new Date(e),i=t.getDate().toString().padStart(2,"0"),l=(t.getMonth()+1).toString().padStart(2,"0"),a=t.getFullYear();return"".concat(i,"/").concat(l,"/").concat(a)}(t.publishedDate)})]})]})})})})}var K=function(e){let{embed:t,parentArticleType:i}=e;return t.subType?(null==t?void 0:t.format)==="9:16"?(0,o.jsx)(Q,{embed:t}):(0,o.jsx)(H.Z,{videoId:null==t?void 0:t.mediaId,embedCode:null==t?void 0:t.embedCode,playlist:null==t?void 0:t.playlist,playerType:null==t?void 0:t.playerType,aspectRatio:null==t?void 0:t.format}):null};let J=e=>{let{className:t}=e;return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",className:t,children:[(0,o.jsx)("rect",{width:"40",height:"40",rx:"20",fill:"white",fillOpacity:"0.15"}),(0,o.jsx)("path",{d:"M16 14.8028L16 25.1972C16 26.3953 17.3352 27.1099 18.332 26.4453L26.1279 21.2481C27.0185 20.6543 27.0185 19.3457 26.1279 18.7519L18.3321 13.5547C17.3352 12.8901 16 13.6047 16 14.8028Z",fill:"white"})]})},ee=()=>(0,o.jsx)("svg",{width:"12",height:"18",viewBox:"0 0 12 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 0C0.447716 0 0 0.447716 0 1V17C0 17.5523 0.447715 18 1 18H11C11.5523 18 12 17.5523 12 17V1C12 0.447715 11.5523 0 11 0H1ZM4.5 10.9393V7.06066C4.5 6.61362 4.99472 6.34697 5.36406 6.59495L8.25252 8.53428C8.58249 8.75583 8.58249 9.24417 8.25252 9.46572L5.36406 11.4051C4.99471 11.653 4.5 11.3864 4.5 10.9393Z",fill:"white"})});var et=i(23396),ei=i.n(et),el=function(e){var t,i;let{embed:l}=e,{images:a,caption:n,path:s}=l,d=null==a?void 0:a[0],{leaf:c}=(0,p.Vy)();return(0,r.$)(),d&&d.baseUrl&&s?(0,o.jsxs)("div",{className:ei().galleryEmbed,children:[(0,o.jsx)(r.rU,{href:null==l?void 0:l.url,children:(0,o.jsxs)("div",{className:ei().galleryEmbed__gallery,children:[(0,o.jsx)(r.Ee,{sizes:x.u_,src:d.baseUrl,width:null!==(t=d.width)&&void 0!==t?t:700,height:null!==(i=d.height)&&void 0!==i?i:400,alt:"",style:{maxWidth:"100%",height:"auto"}}),(0,o.jsxs)("span",{children:[null==a?void 0:a.length," foto"]})]})}),n&&(0,o.jsx)("div",{className:ei().galleryEmbed__caption,dangerouslySetInnerHTML:{__html:n}})]}):null},ea=function(e){let{parentArticleType:t,type:i,embed:l}=e;return(0,m.useMemo)(()=>{switch(i){case a.Image:return(0,o.jsx)(j,{embed:l});case a.Gallery:return(0,o.jsx)(el,{embed:l});case a.Article:return(0,o.jsx)(W,{parentArticleType:t,embed:l});case a.Quote:return(0,o.jsx)(f,{embed:l});case a.Facebook:return(0,o.jsx)(C,{embed:l});case a.Instagram:return(0,o.jsx)(P,{embed:l});case a.X:return(0,o.jsx)(T,{embed:l});case a.YT:case a.Youtube:return(0,o.jsx)(V,{embed:l});case a.DM:case a.DailyMotion:return(0,o.jsx)(q,{embed:l});case a.Video:return(0,o.jsx)(K,{parentArticleType:t,embed:l});case a.GenericIframe:return(0,o.jsx)(R,{embed:l});default:return console.error("No embeds are matching this type:",i),null}},[i,l])},eo=function(e){var t,i,l,o;if(e.some(e=>{var t,i,l,a;return(null==e?void 0:null===(i=e.attribs)||void 0===i?void 0:null===(t=i.class)||void 0===t?void 0:t.includes("blz_card"))&&(null==e?void 0:null===(a=e.attribs)||void 0===a?void 0:null===(l=a.class)||void 0===l?void 0:l.includes("amz"))}))return{type:a.GenericIframe,embed:{originalType:"card Amazon",preserveAmazonAdv:!0,preventInlettura:!0}};if(e.some(e=>{var t,i;return null==e?void 0:null===(i=e.attribs)||void 0===i?void 0:null===(t=i.src)||void 0===t?void 0:t.includes("facebook.com")})){let t=null===(l=e.find(e=>{var t;return null==e?void 0:null===(t=e.attribs)||void 0===t?void 0:t.src.includes("facebook.com")}))||void 0===l?void 0:l.attribs;return{type:a.Facebook,embed:{source:null==t?void 0:t.src,height:null==t?void 0:t.height,width:null==t?void 0:t.width}}}if(e.some(e=>{var t,i;return null==e?void 0:null===(i=e.attribs)||void 0===i?void 0:null===(t=i.src)||void 0===t?void 0:t.includes("youtube.com")}))return{type:a.Youtube,embed:{source:null===(i=e.find(e=>{var t;return null==e?void 0:null===(t=e.attribs)||void 0===t?void 0:t.src.includes("youtube.com")}))||void 0===i?void 0:null===(t=i.attribs)||void 0===t?void 0:t.src}};if(e.some(e=>{var t,i;return null==e?void 0:null===(i=e.attribs)||void 0===i?void 0:null===(t=i.src)||void 0===t?void 0:t.includes("geo.dailymotion.com")})){let t=null===(o=e.find(e=>{var t,i;return null==e?void 0:null===(i=e.attribs)||void 0===i?void 0:null===(t=i.src)||void 0===t?void 0:t.includes("geo.dailymotion.com")}))||void 0===o?void 0:o.attribs;return{type:a.DailyMotion,embed:{source:null==t?void 0:t.src,video:null==t?void 0:t["data-video"],params:null==t?void 0:t["data-params"]}}}},en=i(80616),er=i(80805),es=i(4054),ed=i(94671),ec=i.n(ed),e_=i(99775),eu=function(e){let{frontendData:t,options:i,index:l}=e,a=(0,e_.Z)({frontendData:t}),{isMobile:s}=(0,r.Sj)(),c=0;a.sortedEvents.forEach((e,t)=>{var i;"adv"===e.type&&("adv"===a.sortedEvents[t-1].type||"adv"===a.sortedEvents[t+1].type)&&a.sortedEvents.splice(t,1),"adv"!==e.type&&(c+=null==e?void 0:null===(i=e.description)||void 0===i?void 0:i.length,0!==t&&t!==a.sortedEvents.length-1&&c>1e3&&(c=0,a.sortedEvents.splice(t+1,0,{type:"adv",headline:"",description:"
adv
"})))});let _=1;return a.sortedEvents.forEach(e=>{"adv"===e.type&&(e.advIndex="".concat(l,"-").concat(_),_++)}),(0,o.jsx)("div",{className:(0,n.Z)(ec().liveblogpost__container),children:a.sortedEvents.map((e,t)=>(0,o.jsxs)("div",{id:null==e?void 0:e.anchorId,className:(0,n.Z)(ec().liveblogpost__container__row,"adv"===e.type&&ec()["liveblogpost__container__row--adv"]),children:["adv"===e.type&&(0,o.jsx)(en.Z,{index:s?"".concat(null==e?void 0:e.advIndex,"-mobile"):"".concat(null==e?void 0:e.advIndex,"-desktop"),name:s?"300x250-Inlettura":"Inlettura-desktop",nameIndex:null==e?void 0:e.advIndex,style:{margin:"12px 0 12px 40px"}}),"adv"!==e.type&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:(0,n.Z)(ec()["liveblogpost__container__row__left-col"])}),(0,o.jsxs)("div",{className:(0,n.Z)(ec()["liveblogpost__container__row__right-col"]),children:[(0,o.jsx)("div",{className:(0,n.Z)(ec()["liveblogpost__container__row__hour-badge"],0===t?ec()["liveblogpost__container__row__hour-badge__first"]:ec()["liveblogpost__container__row__hour-badge__others"]),children:a.getHours(e.date)}),(0,o.jsx)("div",{className:(0,n.Z)(ec().liveblogpost__container__row__title),dangerouslySetInnerHTML:{__html:e&&e.headline?e.headline.replace(/

/g,"").replace(/<\/p>/g,"").replace(/\/n/g,""):""}}),(0,o.jsx)("div",{className:(0,n.Z)(ec().liveblogpost__container__row__description),children:(0,d.ZP)("".concat(e.description,"

"),i)})]},t)]})]},"live-blog-data"+t))})},ev=i(6018),em=i(82309),ep=i.n(em),eh={ADD_TAGS:["a","abbr","acronym","article","audio","b","bdi","bdo","big","blockquote","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","del","details","em","embed","fieldset","figcaption","figure","form","frame","frameset","h1","h2","h3","h4","h5","h6","hr","i","iframe","img","input","label","legend","li","link","map","mark","object","ol","p","picture","pre","script","small","span","strike","strong","style","sub","summary","sup","svg","table","textarea","u","ul","video","reverse-view"],ADD_ATTR:["target","data-src"],ALLOW_DATA_ATTR:!0},eg=i(16920),ey=i(10734),ef=i(60197),ex=i.n(ef);function ew(e){let{showSpeakupPlayer:t,isPremium:i,total:l,dateIn:a}=e,n=new Date(String(a||Date.now()))>new Date("2025-05-01T00:00:00Z");return t&&!i&&l>=500&&n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v(),{id:"speakup-player-script",src:"https://cdn.speakup.ai/loader.speakup.min.js","data-lang":"it","data-layout":"boxed-small","data-theme":"default","data-loading-delay":"1000",strategy:"afterInteractive",onLoad:()=>{},onError:e=>{console.error("ko loaded:",e)}}),(0,o.jsx)("div",{id:"speakup-player",className:ex().audioboostWrapper})]}):null}let eb=["iframeOlimpiadi2026","dynamicIframe","iframe-quiz-container"],ej=["img","iframe","video","picture","svg"],eS=e=>{let{index:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(en.Z,{name:"Inlettura-desktop",index:"".concat(t,"-desktop"),nameIndex:t,style:{margin:"20px auto"}}),(0,o.jsx)(en.Z,{name:"300x250-Inlettura",index:"".concat(t,"-mobile"),nameIndex:t,style:{margin:"20px auto"}})]})};var eN=function(e){var t,i;let{isPremium:l,typePremium:c,articleType:u,body:g,embeds:y,renderArticleEmbed:f,index:x,contentPath:w,isReload:b,isLastReloadArticle:j,frontendData:S,publishedDate:N}=e,{leaf:C,section:L}=(0,p.Vy)(),k=(0,r.$)(),P=_().sanitize,I=/

\s*<\/h2>|]*)?>(?:\s| | |)*<\/p>/gi,A=P((null!=g?g:"").replace(I,""),eh).replace(I,""),T=/class=["'][^"']*flourish-embed/i.test(A);T&&(A=A.replace(/]*public\.flourish\.studio[^>]*>\s*<\/script>/gi,""));let E=A.length,z=(0,r.zO)(A,100),{user:V}=(0,r.aF)(),O="qn"===k.key&&(null==C?void 0:C.articleType)==="standard",M=C.disableAds||(null==L?void 0:L.disableAds),R={replace:e=>{if(e instanceof d.W_){var t,i,l,n,r,_,p,g,w,b,j,S,N;if(u===s.Iq.LiveArticle&&(0,h.w)(e),"a"===e.name&&(null===(t=e.attribs)||void 0===t?void 0:t.href)&&!(null===(i=e.attribs.href)||void 0===i?void 0:i.startsWith("#"))&&!(null===(l=e.attribs)||void 0===l?void 0:l["data-onecms-id"])){let t=e.attribs.href,i=(0,eg.FS)(t,k.virtual_url);return(0,o.jsx)("a",{rel:i?"follow":"nofollow",...(0,d.e_)(e.attribs),...!i&&{target:"_blank"},children:(0,d.du)(e.children)})}if("a"===e.name&&!(null===(n=e.attribs)||void 0===n?void 0:n.href)&&!(null===(r=e.attribs)||void 0===r?void 0:r["data-onecms-id"]))return(0,o.jsx)("a",{...(0,d.e_)(e.attribs),style:{marginTop:120},children:(0,d.du)(e.children)});if((null===(p=e.attribs)||void 0===p?void 0:null===(_=p.id)||void 0===_?void 0:_.startsWith("inlettura-"))&&"hard"!==c&&"registration"!==c&&!0!==M&&!(0,G.F2)(C)&&!(0,G.ay)(C)&&!(0,G.N9)(C))return(0,o.jsx)(eS,{index:"".concat(x,"-").concat(e.attribs.id.split("inlettura-")[1])});let L=null===(w=e.children[0])||void 0===w?void 0:null===(g=w.attribs)||void 0===g?void 0:g["data-onecms-type"];if(f&&"p"===e.name&&(!L||"article"===L)){let t=(function e(t){return t.children.flatMap(t=>{var i;return t instanceof d.W_?(null===(i=t.attribs)||void 0===i?void 0:i["data-onecms-type"])==="article"?[t]:e(t):[]})})(e).flatMap(e=>{let t=null==y?void 0:y.find(t=>"Article"===t.__typename&&t.id===e.attribs["data-onecms-id"]);return t?[{anchor:e,embed:t}]:[]});if(t.length){let i=new Set(t.map(e=>{let{anchor:t}=e;return t})),l=t.map((e,t)=>{let{embed:i}=e;return(0,o.jsx)(m.Fragment,{children:f(i)},t)});return!function e(t,i){return!!i.has(t)||(t instanceof d.xv?!t.data.replace(/\u00a0/g," ").trim():!(t instanceof d.W_)||!ej.includes(t.name)&&t.children.every(t=>e(t,i)))}(e,i)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{...(0,d.e_)(e.attribs),children:(0,d.du)(e.children,{...R,replace:e=>{var t;return i.has(e)?(0,o.jsx)(o.Fragment,{}):null===(t=R.replace)||void 0===t?void 0:t.call(R,e)}})}),l]}):(0,o.jsx)(o.Fragment,{children:l})}}"tag"===e.type&&"p"===e.name&&(null===(j=e.children[0])||void 0===j?void 0:null===(b=j.attribs)||void 0===b?void 0:b["data-onecms-type"])&&(e=e.children[0]);let{attribs:P,type:I,name:A,children:T}=e;if("script"===I&&"script"===A)return(0,o.jsx)(v(),{...P});if("tag"===I&&"iframe"===A&&eb.includes(null==P?void 0:P.id))return(0,o.jsx)(ey.Z,{children:(0,o.jsx)("iframe",{...(0,d.e_)(P)})});if("tag"===I&&"blockquote"===A&&0===Object.keys(P).length)return(0,o.jsx)(ea,{type:a.Quote,embed:{embedChildren:(0,d.du)(T)}});if("tag"===I&&(null==P?void 0:P["data-embedcode"])){let e=eo(T),t=()=>(0,o.jsx)("div",{className:"embedcode-widget",children:(0,d.du)(T,{replace:e=>{if(e instanceof d.W_){var t,i,l,a;if((null===(t=e.attribs)||void 0===t?void 0:t.id)&&e.attribs.id.includes("div-gpt-ad-")||(null===(i=e.attribs)||void 0===i?void 0:i["data-testid"])&&e.attribs["data-testid"].includes("div-gpt-ad-")||(null===(l=e.attribs)||void 0===l?void 0:l.class)&&(e.attribs.class.includes("OB-REACT-WRAPPER")||e.attribs.class.includes("adv")||e.attribs.class.includes("ad-")||e.attribs.class.includes("amp__watermark"))||(null===(a=e.attribs)||void 0===a?void 0:a.id)&&e.attribs.id.startsWith("inlettura-"))return null}}})});if(!e){let e=null==T?void 0:T.find(e=>(null==e?void 0:e.name)==="iframe");return e?eb.includes(null===(S=e.attribs)||void 0===S?void 0:S.id)?(0,o.jsx)(ey.Z,{children:(0,o.jsx)("iframe",{...(0,d.e_)(e.attribs)})}):(0,o.jsx)(ea,{type:a.GenericIframe,embed:{originalType:P["data-embedcode"],iframeAttribs:(0,d.e_)(null==e?void 0:e.attribs)}}):t()}return"card Amazon"===e.embed.originalType?(0,o.jsx)(ea,{type:e.type,embed:e.embed}):t()}let E=null==P?void 0:P["data-onecms-type"],z=null==P?void 0:P["data-onecms-id"];if(!E||!z)return;let V=null==y?void 0:y.find(e=>e.id===z);if(!V)return;if(f&&"Article"===V.__typename)return(0,o.jsx)(o.Fragment,{children:f(V)});if("Video"===V.__typename){let e=null==y?void 0:y.find(e=>"Video"===e.__typename),t=(null==C?void 0:null===(N=C.topMedia)||void 0===N?void 0:N.__typename)!=="Video"&&V.id===(null==e?void 0:e.id);return(0,o.jsx)(ea,{parentArticleType:u,type:a.Video,embed:{...V,playerType:t?H.L.AutoplayPipOn:H.L.Click2PlayPipOn}})}return(0,o.jsx)(ea,{parentArticleType:u,type:E,embed:{...V,imageFormat:null==P?void 0:P["data-attr-f"],embedAltText:null==P?void 0:P["data-attr-img-alt"],embedCaption:null==P?void 0:P["data-attr-caption"],embedLink:null==P?void 0:P["data-attr-link"],embedLinkTarget:null==P?void 0:P["data-attr-link-target"],embedAlign:null==P?void 0:P["data-attr-align"]}})}return null}},Z=null==C?void 0:null===(t=C.path)||void 0===t?void 0:t.includes("pubbliredazionali"),D=u===s.Iq.LiveBlog?"AR_12":"AR_2",F=(()=>{let e="https://".concat(k.url).concat(null==C?void 0:C.path);return k.url.includes("local.")&&k.url.includes(":3010")?e.replace(/^https?:\/\/local\./,"https://www.").replace(":3010",""):e})(),W=e=>C.disableAds?"":0!==e||b?'
'):Z||"hard"===c||"registration"===c?"":'
'),B=e=>e.replace(/<.+?>/gm,"").length,U=(0,m.useMemo)(()=>e=>{let t,i,a;if((0,G.F2)(C)||(0,G.ay)(C)||(0,G.N9)(C))return e;let o="";if((null==C?void 0:C.articleType)===s.Iq.LiveArticle){let t=e.lastIndexOf("]*href="https:\/\/(?:www\.)?amazon\.(?:it|com)[^"]*(?:tag=|linkCode=)[^"]*"[^>]*>.*?<\/a>/gm;for(;null!=(t=r.exec(e));){let i=Math.max(0,t.index-100),l=Math.min(e.length,t.index+t[0].length+100);n.push({start:i,end:l})}let d=/

.+?<\/p>/gm,c=[];for(;null!=(i=d.exec(e));)c.push({start:i.index,end:i.index+i.join("").length});if(l||!(0,er._c)(V)||!c)return e+o;if(c.length<=1)return e+W(0)+o;let _=B(e),u=_>1500&&c.length>3?3:_>1e3&&c.length>2?2:1,v=/<.+?>/gm,m=[];for(;null!=(a=v.exec(e));)m.push({start:a.index,end:a.index+a[0].length});let p=0,h=0,g=c.map(e=>{for(;p{let i=g[t],a=g[t];return!n.some(t=>e.start>=t.start&&e.end<=t.end)&&t>y&&(i>l||a>l&&Math.abs(i-l)<\/div>$/;x.test(f.trim())&&(f=f.replace(x,""));let w=/(

)([\s\S]*?)(]*data-onecms-type="image"[^>]*>.*?<\/div>)(\s*<\/p>)$/,b=/data-onecms-type="image"[^>]*>.*?<\/div>\s*<\/p>$/.test(f)&&f.match(w);if(b){let[e,t,i,l,a]=b,o="".concat(t).concat(l).concat(i).concat(a);f=f.replace(w,o)}return f+o},[l,V,C]),q=(0,m.useMemo)(()=>(0,d.ZP)(U("".concat(A,'

')),R),[g,A]),{isDesktop:X}=(0,r.Sj)();return(0,m.useEffect)(()=>{let e=(e,t)=>{let i=[],l=e.querySelectorAll('[id^="div-gpt-ad-Inlettura"], [id^="inlettura-"]');if(i.push(...Array.from(l)),e.shadowRoot){let t=e.shadowRoot.querySelectorAll('[id^="div-gpt-ad-Inlettura"], [id^="inlettura-"]');i.push(...Array.from(t))}return Array.from(e.querySelectorAll("*")).forEach((e,t)=>{if(e.shadowRoot){let t=e.shadowRoot.querySelectorAll('[id^="div-gpt-ad-Inlettura"], [id^="inlettura-"]');i.push(...Array.from(t))}}),i},t=()=>{document.querySelectorAll(".OB-REACT-WRAPPER, .OUTBRAIN").forEach((t,i)=>{e(t,"card ".concat(i)).forEach(e=>{e.remove()})}),document.querySelectorAll(".blz_promo").forEach((e,t)=>{let i=e.querySelector(".blz_card.amz, .OB-REACT-WRAPPER, .OUTBRAIN");if(i){let t=i.cloneNode(!0);e.parentNode&&(e.parentNode.insertBefore(t,e),e.remove())}}),document.querySelectorAll('[id^="div-gpt-ad-Inlettura"], [id^="inlettura-"]').forEach((e,t)=>{var i,l,a;(e.closest(".OB-REACT-WRAPPER")||(null===(i=e.parentElement)||void 0===i?void 0:i.querySelector(".OB-REACT-WRAPPER, .OUTBRAIN"))||(null===(l=e.nextElementSibling)||void 0===l?void 0:l.classList.contains("OB-REACT-WRAPPER"))||(null===(a=e.previousElementSibling)||void 0===a?void 0:a.classList.contains("OB-REACT-WRAPPER")))&&e.remove()})};t();let i=new MutationObserver(e=>{let i=!1;e.forEach(e=>{e.addedNodes.forEach(e=>{if(e instanceof HTMLElement){var t,l,a,o,n;((null===(t=e.classList)||void 0===t?void 0:t.contains("OB-REACT-WRAPPER"))||(null===(l=e.classList)||void 0===l?void 0:l.contains("OUTBRAIN"))||(null===(a=e.classList)||void 0===a?void 0:a.contains("blz_promo"))||(null===(o=e.id)||void 0===o?void 0:o.startsWith("div-gpt-ad-Inlettura"))||(null===(n=e.id)||void 0===n?void 0:n.startsWith("inlettura-"))||e.querySelector(".OB-REACT-WRAPPER, .OUTBRAIN, .blz_promo")||e.querySelector('[id^="div-gpt-ad-Inlettura"], [id^="inlettura-"]'))&&(i=!0)}})}),i&&setTimeout(()=>{t()},200)});return i.observe(document.body,{childList:!0,subtree:!0}),()=>{i.disconnect()}},[]),(0,o.jsxs)("div",{className:ep()["article__text__container--".concat(k.key)],children:[T&&(0,o.jsx)(v(),{src:"https://public.flourish.studio/resources/embed.js",strategy:"lazyOnload"}),(0,r.Zj)(k.key)&&X&&(0,o.jsx)(ev.Z,{title:null!==(i=null==C?void 0:C.title)&&void 0!==i?i:""}),(0,o.jsx)(ew,{showSpeakupPlayer:O,isPremium:l,total:E,dateIn:N}),(0,o.jsx)("div",{className:(0,n.Z)(ep().article__text,ep()["article__text--".concat(k.key)],(u===s.Iq.LiveArticle||u===s.Iq.LiveBlog)&&ep()["article__text--live"]),children:(0,o.jsx)(es.Z,{lock:(0,o.jsx)("div",{className:(0,n.Z)(ep().textLock,"registration"===c&&ep().dpw),children:(0,o.jsx)("p",{children:z})}),free:(0,o.jsxs)(o.Fragment,{children:[q,(0,o.jsx)(eu,{frontendData:S,options:R,index:x})]})})})]})}},73840:function(e,t,i){"use strict";var l=i(11527),a=i(19800),o=i(48681),n=i.n(o),r=i(94210),s=i.n(r);let d={ilgiorno:{text:"Ricevi le notizie de Il Giorno su Google",url:"https://profile.google.com/cp/CgovbS8wNWY2bjdt"},lanazione:{text:"Ricevi le notizie de La Nazione su Google",url:"https://profile.google.com/cp/CgovbS8wNXE1eG0x"},qn:{text:"Ricevi le notizie di Quotidiano Nazionale su Google",url:"https://profile.google.com/cp/CgovbS8wNncxa2cw"},ilresto:{text:"Ricevi le notizie de il Resto del Carlino su Google",url:"https://profile.google.com/cp/CgovbS8wNXE5eno3"}};t.Z=function(e){var t,i;let{host:o}=e,[r]=(0,a.t6)();return d[o]&&(0,l.jsx)("section",{className:n().discoveryWrapperWidget,children:(0,l.jsxs)("div",{className:n().discoveryWrapper,children:[(0,l.jsxs)("div",{className:n().discoveryInfo,children:[(0,l.jsx)("figure",{children:(0,l.jsx)("img",{alt:"Google",referrerPolicy:"no-referrer",src:"https://www.gstatic.com/images/branding/googleg/1x/googleg_standard_color_128dp.png"})}),(0,l.jsx)("div",{children:(0,l.jsx)("strong",{children:"".concat(null===(t=d[o])||void 0===t?void 0:t.text)})})]}),(0,l.jsx)(s(),{className:n().discoveryButton,target:"_blank",href:"".concat(null===(i=d[o])||void 0===i?void 0:i.url),children:(0,l.jsx)("span",{children:"Seguici"})})]})})}},17395:function(e,t,i){"use strict";var l=i(11527),a=i(95186),o=i.n(a),n=i(23632),r=i(19800),s=i(45924);t.Z=function(){var e;let t=(0,r.$)();return(0,l.jsx)("div",{className:o().login,children:(0,l.jsxs)("div",{className:o().login__content,children:[(0,l.jsxs)("span",{className:o()["extratext--head"],children:[(0,l.jsx)(r.TR,{className:(0,s.Z)(o().brand,o()[t.key]),variant:t.key,color:r.Or.PrimaryPrimaryWhite}),(0,l.jsx)("strong",{children:"Puoi leggere questo articolo gratuitamente"})]}),(0,l.jsx)("div",{id:"loginInPage"}),(0,l.jsxs)("span",{className:o()["extratext--footer"],children:["Se vuoi l'accesso senza limiti a tutti i contenuti, senza pubblicit\xe0,",(0,l.jsx)(n.Z,{href:null!==(e=null==t?void 0:t.subscribe_url)&&void 0!==e?e:"/abbonati",passHref:!0,children:(0,l.jsx)("a",{children:"Scopri tutte le offerte di abbonamento"})})]})]})})}},1561:function(e,t,i){"use strict";var l=i(11527),a=i(50959),o=i(19800);t.Z=function(e){let{isPremium:t,children:i}=e,n=(0,o.$)(),[r,s]=(0,a.useState)("free_paywall");return(0,a.useEffect)(()=>{s(t?n.dynamic_paywall?"dynamic_paywall":"classic_paywall":"free_paywall")},[t]),(0,l.jsx)("div",{className:r,children:i})}},4054:function(e,t,i){"use strict";var l=i(11527),a=i(50959),o=i(19800);t.Z=function(e){let t=(0,o.gw)(),[i,n]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{n(!0)},[]),i&&["hard"].includes(String(t.premium)))?(0,l.jsx)(l.Fragment,{children:e.lock}):(0,l.jsx)(l.Fragment,{children:e.free})}},18556:function(e,t,i){"use strict";i.d(t,{EH:function(){return p},JP:function(){return r},f1:function(){return s},fb:function(){return u},ff:function(){return _},yW:function(){return d}});var l=i(66770),a=i(44016),o=i(65636);let n=["ultimaora","speciali","pubbliredazionali"];function r(e,t){var i;return!!e.homepage_v3&&(0,l.Wq)(null!=t?t:null)&&!function(e){var t;let i=e.split("/").filter(Boolean);return n.includes(null!==(t=i[0])&&void 0!==t?t:"")||i.some(e=>"video"===e||"reel"===e)}(null!==(i=t.path)&&void 0!==i?i:"")}function s(e,t){return!!e.homepage_v3&&(!(0,l.Wq)(null!=t?t:null)||r(e,t))}function d(e){var t,i;return!e.hidden&&(null!==(i=null===(t=e.teasers)||void 0===t?void 0:t.teasers)&&void 0!==i?i:[]).some(Boolean)}let c=["slot-rullo-condiviso-er","Rullo Condiviso MARCHE","slot-rullo-condiviso-toscana"];function _(e){var t;return!!e&&c.includes(null!==(t=e.name)&&void 0!==t?t:"")&&(0,o.Nr)(e)}function u(e,t,i,l){var o;if(e.hidden||!a.hB.includes(null!==(o=e.layout)&&void 0!==o?o:""))return!1;let n=(0,a.bR)(e,t);return(0,a.PP)(e,n,i,l,1).length>0}let v=["Layout_Rullo","Layout-rullo-20-notizie","Layout-rullo-10-notizie","Layout-rullo-6-notizie","Layout-rullo-3-notizie","Layout-rullo-2-notizie","Layout-rullo-1-notizia"],m=["layout-rullo-40-medium","layout-rullo-50-medium","layout-rullo-100-medium"];function p(e){var t,i;let l=null!==(i=e.layout)&&void 0!==i?i:"";return v.includes(l)||m.includes(l)&&!e.headline&&!(null===(t=e.image)||void 0===t?void 0:t.baseUrl)}},10734:function(e,t,i){"use strict";var l=i(11527),a=i(50959),o=i(30896),n=i.n(o);t.Z=e=>{let{children:t}=e,[i,o]=(0,a.useState)(!1),r=(0,a.useRef)(null),s=(0,a.useRef)(null),d=["dpa-resize","quiz-resize"];return(0,a.useEffect)(()=>{var e;let t=e=>{if(s.current&&e.source===s.current.contentWindow){let t=e.data;if("string"==typeof t)try{t=JSON.parse(t)}catch(e){return}if(t&&d.includes(t.type)){let e=t.height;e&&(s.current.style.height="".concat(e,"px"),o(!0))}}};window.addEventListener("message",t);let i=null===(e=r.current)||void 0===e?void 0:e.querySelector("iframe");return i&&(s.current=i),()=>{window.removeEventListener("message",t)}},[]),(0,l.jsx)("div",{className:"".concat(n()["iframeResize-wrapper"]," ").concat(i?"loaded":""),id:"iframeResize-wrapper",ref:r,children:(0,l.jsx)("div",{className:n()["iframeResize-container"],children:t})})}},47157:function(e,t,i){"use strict";i.d(t,{R:function(){return _},s:function(){return u}});var l=i(11527),a=i(83171),o=i.n(a),n=i(19800),r=i(34801),s=i(24721),d=i(66770);function c(e,t){var i;return{logoraIdEnv:(null===n.E7||void 0===n.E7?void 0:null===(i=n.E7.find(t=>t.key==e.key))||void 0===i?void 0:i.logoraId)||void 0,logoraConfigName:t&&t>0?"logora_config_".concat(t):"logora_config"}}function _(e){var t,i,a,n,_;let{leaf:u,section:v,host:m,index:p}=e,{jwtToken:h}=(0,s.T)(),{logoraIdEnv:g,logoraConfigName:y}=c(m,p),f=!v.disableComments&&u.articleType!==r.Iq.BrandedContent&&"CLOSED"!==u.commentStatus||u.articleType===r.Iq.LiveArticle;if(!g||"noUser"===h||!f)return null;let x=null===(t=u.path)||void 0===t?void 0:t.split("/").at(-1),w=(null===(i=u.contentPath)||void 0===i?void 0:i.filter(e=>"Section"===e.__typename))||[],b=w.map((e,t)=>0===t?{name:e.title,uid:e.title.replace(" ","-")}:{name:"".concat(e.title,"-").concat(w[t-1].title),uid:"".concat(e.title,"-").concat(w[t-1].title).replace(" ","-")}),j=p&&p>0?"logora_script_".concat(p):"logora_script";return(0,l.jsx)(o(),{children:(0,l.jsx)("script",{id:j,dangerouslySetInnerHTML:{__html:"\n var ".concat(y,' = {\n "shortname": "').concat(g,'",\n "remote_auth":"').concat(h,'",\n "resource":{\n "name":"synthesis",\n "id":"').concat(x,'"\n },\n "source": {\n "tag_objects": ').concat(JSON.stringify(b),',\n "source_url": \'https://').concat(m.url).concat(u.path,"',\n \"description\": '").concat((0,d.Cb)((null==u?void 0:u.lead)||(null==u?void 0:u.caption)||"").replace(/[^a-zA-Z0-9 ]/g,""),"',\n \"origin_image_url\": '").concat(null!==(_=(null==u?void 0:null===(a=u.socialImage)||void 0===a?void 0:a.baseUrl)||(null==u?void 0:null===(n=u.image)||void 0===n?void 0:n.baseUrl))&&void 0!==_?_:"","',\n \"published_date\": '").concat(u.publishedDate,"',\n \"title\": '").concat((0,d.Cb)((null==u?void 0:u.title)||"").replace(/[^a-zA-Z0-9 ]/g,""),"',\n \"publisher\": '").concat(m.name,"',\n }\n };\n\n (function() {\n var d = document,\n s = d.createElement('script');\n s.src = 'https://cdn.logora.com/embed.js';\n s.defer = true;\n (d.head || d.body).appendChild(s);\n })();\n ")}})})}function u(e){let{host:t,index:i}=e,{logoraIdEnv:a,logoraConfigName:o}=c(t,i);return!a||null==i||i>2?null:(0,l.jsx)("div",{className:"logora_embed","data-object-id":o})}},55104:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var l=i(11527);function a(e){let{children:t}=e;return(0,l.jsx)("div",{style:{position:"relative"},children:t})}},18379:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var l=i(11527),a=i(8857),o=i(50959),n=i(14666),r=i.n(n),s=function(e){let{body:t}=e,i=(0,o.useCallback)(e=>{Array.from(document.getElementsByClassName(r().miniMenu__active)).forEach(e=>{e.classList.remove(r().miniMenu__active)}),e.currentTarget.classList.toggle(r().miniMenu__active)},[]),n=(0,o.useMemo)(()=>{if(t)return(0,a.ZP)(t,{replace:e=>{if(e instanceof a.W_){var t,o;if((null===(t=e.attribs)||void 0===t?void 0:t.id)==="longform-navigation-container")return null;if("ul"===e.name&&(null===(o=e.attribs)||void 0===o?void 0:o.id)==="longform-navigation")return(0,l.jsxs)("div",{className:r().miniMenu,children:[(0,l.jsx)("p",{children:"Naviga nell'articolo:"}),(0,l.jsx)("ul",{children:e.children.map((e,t)=>{if(e instanceof a.W_){var o;if((null===(o=e.children)||void 0===o?void 0:o[0])&&e.children[0]instanceof a.W_)return(0,l.jsx)("li",{onClick:i,children:(0,l.jsx)("a",{...(0,a.e_)(e.children[0].attribs),children:(0,a.du)(e.children[0].children)})},t)}})})]})}return(0,l.jsx)(l.Fragment,{})}})},[]);return(0,l.jsx)(l.Fragment,{children:n})}},13293:function(e,t,i){"use strict";i.d(t,{p:function(){return a}});var l,a,o=i(11527),n=i(50959),r=i(45924),s=i(88220),d=i.n(s),c=i(63426),_=i(64968),u=i(19800);(l=a||(a={})).ONE="one",l.TWO="two",l.THREE="three",t.Z=function(e){var t,i;let{teasersOrSlot:l,slotName:a="",cols:s="two",showTitle:v=!1}=e,m=(0,n.useRef)(null),{isMobile:p}=(0,u.Sj)(),h=(0,u.$)(),[g,y]=(0,n.useState)(!1),f=(0,n.useRef)(a),x=(0,n.useRef)(1),w=(0,u.c_)(m,{rootMargin:"0px"}),b=(0,n.useRef)((()=>{if(!l)return[];if(Array.isArray(l))return l.filter(e=>"Teaser"===e.__typename);{let e=l.teasers;return(f.current=l.name+"",e)?e&&e.teasers&&e.teasers.filter(e=>"Teaser"===e.__typename):[]}})()),[j,S]=(0,n.useState)(b.current?b.current.slice(0,10*x.current):