Yahoo Intrattenimento (2023)

Yahoo Intrattenimento

Registrazione

Posta

Registrazioneper visualizzare la tua posta

  • Divertimento
  • Richiamo di ruolo
  • Festa di anniversario
  • Cambiamenti di gioco
  • La lista IT
  • Sotto le coperte
  • I non-mai stati
  • I bambini stanno bene?
  • Come guardare
  • Interviste
  • Video
  • Shopping
    ':"";if(a){var r=n.promos.showYahooLogo?"":"yns-no-logo";a=a.replace("{notifOnboardBtnLabel}",n.promos.notifOnboardBtnLabel).replace ("{notifOnboardMsg}",n.promos.notifOnboardMsg).replace("{subscriptionTopic}",n.promos.subscriptionTopic).replace("{noLogoClass}",r).replace("{promoLogo}",n. promos.promoLogo)}var s=t.newCount>n.panel.maxCount?t.newCount:"",c=n.panel.notificationCenterPath,l=c?"":B,u=n.panel.headerMsg? "":" "+B,d=c?R:"",p=void 0;t.count?p=t.markup:p='
  • {emptyPanelMsg}

  • '.replace("{emptyPanelMsg}",n.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",a).replace("{hideClass} ",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",n.panel.headerMsg).replace("{hideHeaderClass}", u).replace(/{notificationCenterNavMsg}/g,n.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:"render",value:function(e,t){var n=this;if(n._panelNode){var i=void 0,o=n._panelNode,a=void 0,r=void 0;switch(e){case"expanded_panel":i='

    {headerMsg}

      {promoMarkup}{notifMarkup}

    {notificationCenterNavMsg}

    ',r=n._store.getNotifications(),a=n._generatePanelMarkup(i,r),o.innerHTML=a;break;case"error_panel":a=(i='

    {messaggio di errore}

    ').replace("{errorMsg}",n._config.panel.errorMsg),o.innerHTML=a}t&&t()}else t&&t(new Error("Nessun pannello principale"))}},{key:" createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(M))}},{key:"updateBadgeNode",value:function(e){if(e ){var t=this._store.getNotifications().newCount,n=this._config.badge.maxCount;if(t){var i=t>n?n+"+":t;e.innerHTML=i} else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"unfined"!=typeof window){var t=document.getElementById(this._config.panel. styleTagId);t||((t=document.createElement("style")).type="text/css",t.id=this._config.panel.styleTagId,t.innerText=e,document.head. appendChild(t))}}}]),e}(),P=function(){funzione e(t,n,i){E(this,e);var o=this;o._store=n, o._view=i,o._config=t;var a=o._config.panel;o._panelParentNode=document.querySelector(a.parentSelector),o._badgeNode=o._config.badge.selector&&document.querySelector(o. _config.badge.selector),o._indicatorNode=a.indicatorSelector&&document.querySelector(a.indicatorSelector)}return x(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode ),this._notifPanelNode=document.getElementById(M)}},{key:"refreshPanelNode",value:function(e,t){var n=this;L(n._notifPanelNode,N),n._store.fetchNotifications (e,(function(e,i){var o=window.wafer&&window.wafer.base;o&&o.destroy(n._notifPanelNode),e?n._notifPanelNode.innerHTML||(n._view.render("error_panel" ),L(n._notifPanelNode,N)):(n._view.render("expanded_panel"),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view .addStyles(i.css)),A(n._notifPanelNode,N),o&&o.sync(n._notifPanelNode.parentNode),t&&t(e,i)}))}},{key:"resetBadge",valore: function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),L(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator ",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?L(this._indicatorNode,this._config.panel.indicatorClass):A(this._indicatorNode,this._config.panel.indicatorClass ))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?A(e._badgeNode,e._config.badge.hideClass):L( e._badgeNode,e._config.badge.hideClass)}}]),e}(),q={promos:{eliggedBodyClass:"display-push-promos",enableNotifOnboard:!0,bypassEliggedClassCheck:!1,notifOnboardBtnLabel: "Avvisami", notifOnboardMsg: "Ricevi avvisi per le ultime notizie e le storie più importanti", promoLogo: "https://s.yimg.com/cv/apiv2/ae/news/circle_bell.png", showYahooLogo:!0,subscriptionTopic :"gondor_homerun_news"},badge:{hideClass:"",maxCount:5,selector:""},panel:{emptyPanelMsg:"Non hai nuove notifiche.",errorMsg:"",headerMsg:"Notifiche",imageTag :"img:40x40|2|80",indicatorClass:"yns-indicator",indicatorSelector:null,maxCount:6,notificationCenterNavMsg:"Visualizza tutte le notifiche {newCount}",notificationCenterPath:"",notificationTypes:"",parentSelector: null,styleTagId:"notificationStyles",theme:"default"},service:{attemptCount:1,attemptDelay:2,url:null,resetUrl:null,isRMP:!1,responseType:"json",timeout:1500}} ,D={NotificationClient:function(){function e(t){E(this,e);var n=this;n.config=n._parseConfig(t),n._validateRequiredConfigs()&&(n._request= new C(n.config),n._store=new I(n.config,n._request),n._view=new O(n.config,n._store),n._panelController=new P(n.config ,n._store,n._view),n._panelController.createPanelParentNode(),n._assignHelperMethods())}return x(e,[{key:"_parseConfig",value:function(e){var t={} ;for(var n in T(t,q),t)if(t.hasOwnProperty(n)){var i=t[n],o=e[n];"oggetto"===(void 0= ==i?"unfined":w(i))?T(i,o):t[n]=e[n]}return t}},{key:"_validateRequiredConfigs",value:function(){var e=this.config;return!(!e.panel.parentSelector||!e.service.url)}},{key:"_assignHelperMethods",value:function(){var e=this;e.helpers={ refreshPanelNode:e._panelController.refreshPanelNode.bind(e._panelController),resetBadge:e._panelController.resetBadge.bind(e._panelController),resetIndicator:function(){A(e._panelController._indicatorNode,e.config.panel. indicatoreClass)}}}}]),e}()},H="lnct",U=function(){funzione e(){var e,t;this.personalized=!1,this.ybarElem=document. getElementById("ybar"),this.partnerClasses=null===(t=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0= ==t?void 0:t.match(/ybar-variant-([a-z]*)/),this.client=new D.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function( ){var e,t,n,i=this,o={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},a=(null=== (e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(t=window.Af)||void 0===t?void 0:t .context)||{};return a.region&&a.lang&&(o.lang=a.lang,o.region=a.region),(null===(n=this.partnerClasses)||void 0== =n?void 0:n.length)&&(o.partner=this.partnerClasses[1]),new Promise((function(e,t){i.client.helpers.refreshPanelNode({matrixParams:o},( function(n,i){n&&(c("Errore di aggiornamento notifica:",n),t(n)),e(i)}))}))},e.prototype.resetBadge=function(){this .client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,t,n,i,o,a={promos:{eliggedBodyClass:"display-push- promos",enableNotifOnboard:!0},badge:{selector:"#notif-badge",hideClass:"ybar-notification-hidden"},panel:{emptyPanelMsg:"Non hai nuove notifiche.",errorMsg:"Per favore ricontrolla più tardi.",headerMsg:"Notifiche",maxCount:5,parentSelector:"#ybarNotificationBody",notificationTypes:"breakingNews"},service:{url:"/tdv2_fp/api/resource/NotificationHistory.getHistory",isRMP: !1}},r=document.getElementById("contenitore-notifica"),s=null===(e=null==r?void 0:r.dataset)||void 0===e?void 0 :e.config,l={};if(s){"att"===(null===(t=this.partnerClasses)||void 0===t?void 0:t[1]) &&(a.promos.showYahooLogo=!1);prova{var u=JSON.parse(s);l=h({},u),this.personalized=1===u.personalize}catch(e) {c("Errore di analisi della configurazione delle notifiche",e)}r&&delete r.dataset.config}var d=this.mergeConfigs(a,l);return(null===(n=this.partnerClasses)||void 0= ==n?void 0:n.length)&&"yahoo"!==(null===(i=this.partnerClasses)||void 0===i?void 0:i[1])&&(null ===(o=d.promos)||void 0===o?void 0:o.subscriptionTopic)&&cancella d.promos.subscriptionTopic,d},e.prototype.mergeConfigs=function(e,t){var n=h({},e);for(var i in e)n[i]=h(h({},e[i]),t[i]);return n},e.prototype.getTimeStamp =function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(H)},e.prototype.setTimeStamp=function(){ var e,t=""+Math.floor((nuova data).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem( H,t),t},e}();new U;var F,j,Y="",G=[],z=function(){},W=function(){window.removeEventListener(" beforeunload",W),""!==Y&&c("Rapid non trovato nella pagina",nuovo errore(Y))},V=null,K=function(){return null===V&&(V=document. getElementById("ybar")),V},Z=funzione(){var e=0,t=window.YAHOO;if(F)return F;if(t)if(t.i13n)if(t.i13n .__RAPID_INSTANCES__)if(t.i13n.__RAPID_INSTANCES__.length<1)Y="YBAR: nessuna istanza di rapido trovato!";else{var n=function(e){var t=void 0;if(e&&e.length> 0)for(var n=0;n0){if(F.addModules(o,!1,i),G.length>0)for(e=0;e40959)&&(o<13312||o>19903)&&(o<44032||o>55215))return!1}return!0},de={navBeaconFired:!1},pe=["pronto", "navigazione"],he=function(){funzione e(e){var t=this;this.triggerEvent=r,this.addEventListener=s,this.logError=c,this.logPerformance=l,this.getConfig= u,this.getPerformanceMetrics=d,this.rapidRefresh=Q,this.state=h({},de),this.modules=e,this.userEmail="",window.YBAR&&(pe.forEach((function( e){var n="on".concat(e),i=window.YBAR[n];i&&(t[n]=i)})),window.YBAR.wssid&&(this.wssid=window.YBAR .wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),pe.forEach((function(e){var n="on".concat(e);s(e,(funzione (){for(var i,o=[],a=0;a0,i=w.scrollTope.pageOffset,a=w.scrollTop>x+y,r=w.scrollTop90&&Se("performance",e)}catch(e){}}),1e3)})),re(),s("errore",(funzione(e){var t=e&&e.detail||{} ,n=t.errore||{},i=t.message||n.message||n.toString();provare{var o={code:n.name,file:n.fileName||"" ,line:n.lineNumber||"",message:i};Se("errore",o)}catch(e){}}));var Te="_yb_debh4",Ie="_yb_19b3y",Ne= "_yb_1tcd9",Me="_yb_ns0s1";if("unfined"!=typeof Element&&!Element.prototype.matches){var Be=Element.prototype;Be.matches=Be.matchesSelector||Be.mozMatchesSelector||Be. msMatchesSelector||Be.oMatchesSelector||Be.webkitMatchesSelector}var Re=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t ))return e;e=e.parentNode}};funzione Oe(e,t,n,i,o){var a=Pe.apply(this,arguments);return e.addEventListener(n,a,o) ,{destroy:function(){e.removeEventListener(n,a,o)}}}function Pe(e,t,n,i){return function(n){n.delegateTarget=Re(n.target,t ),n.delegateTarget&&i.call(e,n)}}var qe,De=function(e,t,n,i,o){return"function"==typeof e.addEventListener?Oe.apply(null,arguments ):"function"==typeof n?Oe.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map .call(e,(funzione(e){return Oe(e,t,n,i,o)})))},He=funzione(e){this.data=e,this.next=null,this .prev=null},Ue=function(){funzione e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var t=new He(e); restituisce this.head?this.tail?(t.prev=this.tail,this.tail.next=t,this.tail=t):(this.tail=t,this.tail.prev=this.head, this.head.next=this.tail):(this.head=t,t.next=this.tail),t},e.prototype.size=function(){for(var e=0,t=this .head;t;)e+=1,t=t.next;return e},e.prototype.getHead=function(){return this.head},e.prototype.getTail=function(){return this.tail },e.prototype.get=function(e){if(e>=this.size())return null;for(var t=0,n=this.head;(null==n?void 0:n .successivo)&&t0&&Array.prototype.forEach.call(n,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),t.wrapper&&(function(e,t){e&&(Ee("#ybar-logo","#ybar-logo",t),t.onDestroy((function(){e.classList.remove("ybar-show-outline"),e.classList.remove("ybar-hide-outline")})))}(t.wrapper,e),function(e,t){t&&e.addElementListener(t,"click",(function(){e.triggerEvent("logo-click")}))}(e,t.wrapper))};me("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(ht))};ft(e,t)}));var mt={"dropdown-open":"_yb_s4p7n","merchant-is-selected":"_yb_14wum",overlay:"_yb_xbayo","selected-merchant-clear-button":"_yb_ff7fp","shops-buttons":"_yb_1xh7s","styled-select":"_yb_xz2wo",tooltip:"_yb_1poao","tooltip--show":"_yb_1sza6",tooltip__text:"_yb_7iia4",tooltip__voice:"_yb_1lm1j",tooltip__web:"_yb_rm6xb",dark:"_yb_vib2p",darker:"_yb_e7qxt",light:"_yb_19lhr",midnight60:"_yb_10w66","search-input-uh3-hover":"_yb_8g04q","search-input-uh3-focus-visible":"_yb_17g2t"},vt=function(e,t){var n=Math.max(e,t),i=Math.min(e,t),o=Math.abs(n-i);return y([],v(new Array(o+1)),!1).map((function(e,t){return i+t}))},yt=function(e,t,n){var i=e.getConfig().bucketConfig,o=(void 0===i?{}:i).enable_search_ui,a=void 0!==o&&o;if(t.ybar){t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.add("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");J("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){t.searchInput instanceof HTMLInputElement&&(n&&(t.searchInput.value=n),t.searchInput.focus(),a&&t.searchInput.click())}))}},gt=function(e){var t;null===(t=e.ybar)||void 0===t||t.classList.remove("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.remove("ybar-overlay"),document.body.classList.remove("ybar-overlay-noscroll"),e.searchInput instanceof HTMLInputElement&&(e.searchInput.value="",e.searchInput.blur())},bt=function(){function e(e,t,n){t&&(this.ybar=e,this.elem=t,this.options=n,this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.addEventListeners())}return Object.defineProperty(e.prototype,"tooltip",{get:function(){var e=this;return this.tooltipMarkup||(this.tooltipMarkup=this.createTooltip(),(this.options.tooltipParentElm||this.elem).appendChild(this.tooltipMarkup),this.ybar.onDestroy((function(){var t,n;null===(n=null===(t=e.tooltipMarkup)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.tooltipMarkup)}))),this.tooltipMarkup},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.tooltip.classList.add(this.options.showClass)},e.prototype.hide=function(){this.tooltip.classList.remove(this.options.showClass)},e.prototype.addEventListeners=function(){this.ybar.addElementListener(this.elem,"mouseenter",this.show),this.ybar.addElementListener(this.elem,"focus",this.show),this.ybar.addElementListener(this.elem,"mouseleave",this.hide),this.ybar.addElementListener(this.elem,"blur",this.hide)},e.prototype.createTooltip=function(){var e=document.createElement("div");e.className=this.options.containerClass||"";var t=document.createElement("p");return t.textContent=this.options.label,t.className=this.options.textClass||"",e.appendChild(t),e},e}();!function(){var e,t,n,i,o,a,r,s,c,l,u,d,p,h,f,m={516:function(e,t,n){var i,o,a,r;e.exports=(i=n(336),o="default",a=function(e){return e.reduce((function(e,t){return e[t.id]=t.defaultMessage,e}),{})},((r=function(e){var t;this.lang=(t=e&&e.lang,-1!==i.indexOf(t)?e.lang:o)}).langMap={})[o]=a(n(559)),r.setLangMap=function(e,t){e&&t&&(r.langMap[e]=a(t))},r.prototype={t:function(e){switch(!0){case Boolean(r.langMap&&r.langMap[this.lang]&&r.langMap[this.lang][e]):return r.langMap[this.lang][e];case Boolean(r.langMap&&r.langMap[o]&&r.langMap[o][e]):return r.langMap[o][e];default:return""}}},r)},383:function(e,t,n){var i=n(645),o=n.n(i)()((function(e){return e[1]}));o.push([e.id,'/* Sprites */\n#spchp.permission-guide .guide .microphone .sprite,\n#spchp .close-button,\n#spch .close-button,\n#spch .spchc .microphone,\n#spch .spchc .speaking .microphone {\n background-image: url("https://s.yimg.com/pv/static/img/voiceSearch1x-1620383531565.min.png");\n background-repeat: no-repeat;\n background-size: initial;\n color: transparent;\n}\n/* Retina displays */\n@media\n only screen and (min-device-pixel-ratio: 2),\n only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and (min-resolution: 192dpi),\n only screen and (min-resolution: 2dppx) {\n#spchp.permission-guide .guide .microphone .sprite,\n#spchp .close-button,\n#spch .close-button,\n#spch .spchc .microphone,\n#spch .spchc .speaking .microphone {\n background-size: 41px 330px;\n background-image: url("https://s.yimg.com/pv/static/img/voiceSearch2x-1620383531565.min.png")\n}\n }\n\n/* permission guide */\n#spchp.permission-guide {\n height: 100%;\n width: 100%;\n padding: 0;\n opacity: 0.9;\n background-color: #fff;\n left: 0;\n overflow: hidden;\n position: fixed;\n text-align: left;\n top: 0;\n z-index: 10000;\n transition: visibility 0s linear 0.218s, background-color 0.218s;\n}\n#spchp.permission-guide .close-button {\n background-position: 0 0;\n width: 24px;\n height: 24px;\n border: none;\n cursor: pointer;\n right: 0;\n margin: 20px;\n padding: 0;\n position: absolute;\n top: 0;\n z-index: 10;\n opacity: 0.8;\n }\n#spchp.permission-guide .close-button:hover {\n opacity: 1;\n }\n#spchp.permission-guide .guide {\n margin: 191px 0 0 507px;\n }\n#spchp.permission-guide .guide .microphone {\n height: 68px;\n width: 52px;\n border-right: 1px solid #232a31;\n float: left;\n }\n#spchp.permission-guide .guide .microphone .sprite {\n background-position: 0 -105px;\n width: 28px;\n height: 28px;\n }\n#spchp.permission-guide .guide .guide-text {\n height: 68px;\n margin-left: 24px;\n float: left;\n }\n#spchp.permission-guide .guide .guide-text .title {\n color: #232a31;\n font-size: 32px;\n font-family: HelveticaNeue-Bold;\n line-height: 28px;\n margin-bottom: 16px;\n }\n#spchp.permission-guide .guide .guide-text .text {\n color: #232a31;\n font-size: 16px;\n line-height: 28px;\n }\n#spchp.permission-guide.hide {\n display: none;\n }\n\n/* speech panel */\n#spch.spch {\n background: #fff;\n height: 100%;\n left: 0;\n opacity: 0;\n overflow: hidden;\n position: fixed;\n text-align: left;\n top: 0;\n visibility: hidden;\n width: 100%;\n z-index: 10000;\n transition: visibility 0s linear 0.218s, background-color 0.218s;\n}\n#spch.spch .close-button {\n background-position: 0 0;\n width: 24px;\n height: 24px;\n border: none;\n cursor: pointer;\n right: 0;\n margin: 20px;\n padding: 0;\n position: absolute;\n top: 0;\n z-index: 10;\n opacity: 0.8;\n }\n#spch.spch .close-button:hover {\n opacity: 1;\n }\n#spch.spch .spchc {\n display: block;\n height: 97px;\n pointer-events: none;\n }\n#spch.spch .spchc .inner-container {\n width: 100%;\n height: 100%;\n opacity: 0.1;\n pointer-events: none;\n transition: opacity 0.318s ease-in;\n }\n#spch.spch .spchc .inner-container .spch-control {\n display: inline-block;\n }\n#spch.spch .spchc .inner-container .text-container {\n float: left;\n height: 91px;\n overflow: hidden;\n margin: 3px 0;\n pointer-events: none;\n width: calc(50% - 48.5px);\n }\n#spch.spch .spchc .inner-container .text-container p {\n display: table-cell;\n vertical-align: middle;\n width: 550px;\n height: 97px;\n }\n#spch.spch .spchc .inner-container .text-container .spcht {\n font-weight: normal;\n color: #6e7780;\n line-height: normal;\n opacity: 0;\n pointer-events: none;\n text-align: left;\n -webkit-font-smoothing: antialiased;\n transition: opacity 0.1s ease-in, margin-left 0.5s ease-in, top 0s linear 0.218s;\n }\n#spch.spch .spchc .inner-container .text-container .spcht.hide {\n display: none;\n }\n#spch.spch .spchc .inner-container .text-container #spcht-retry {\n color: #0f69ff;\n cursor: pointer;\n pointer-events: auto;\n }\n#spch.spch .spchc .inner-container .button-container {\n pointer-events: none;\n position: relative;\n transition: transform 0.218s, opacity 0.218s ease-in;\n }\n#spch.spch .spchc .inner-container .button-container .button {\n background-color: #fff;\n border: 1px solid #eee;\n border-radius: 100%;\n bottom: 0;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n cursor: pointer;\n display: inline-block;\n left: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.218s, border 0.218s, box-shadow 0.218s;\n }\n#spch.spch .spchc .inner-container .button-container .button .microphone {\n background-position: 0 -24px;\n width: 41px;\n height: 41px;\n left: 27px;\n pointer-events: none;\n position: absolute;\n top: 27px;\n transform: scale(1);\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple {\n position: absolute;\n width: 136px;\n height: 136px;\n z-index: -1;\n left: 50%;\n top: 50%;\n opacity: 0;\n margin: -70px 0 0 -70px;\n border-radius: 100px;\n animation: ripple 3.3s infinite;\n background-color: #fff !important;\n border: 2px solid #e0e4e9;\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple:nth-child(2) {\n animation-delay: 1.1s;\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple:nth-child(3) {\n animation-delay: 2.2s;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .button {\n background-color: #0f69ff;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .button .microphone {\n background-position: 0 -65px;\n width: 40px;\n height: 40px;\n pointer-events: none;\n position: absolute;\n transform: scale(1);\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple {\n background-size: 114px;\n position: absolute;\n width: 114px;\n height: 114px;\n z-index: -1;\n left: 50%;\n top: 50%;\n margin: -57px 0 0 -57px;\n animation: speakingRipple1 2s infinite;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple:nth-child(2) {\n background-size: 123px;\n width: 123px;\n height: 123px;\n margin: -62px 0 0 -62px;\n animation: speakingRipple2 2s infinite;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple:nth-child(3) {\n background-size: 136px;\n width: 136px;\n height: 136px;\n margin: -68px 0 0 -68px;\n animation: speakingRipple3 2s infinite;\n }\n#spch.spch .spcho {\n background-image: linear-gradient(to bottom, rgb(255 255 255) 50%, rgb(255 255 255 / 0%) 99%);\n display: block;\n min-width: 100%;\n text-align: center;\n top: 145px;\n padding-bottom: 71px;\n pointer-events: auto;\n }\n#spch.spch .spcho #spch-trending {\n animation: fadeIn 1s forwards;\n opacity: 0;\n }\n#spch.spch .spcho #spch-trending .trending {\n color: #6e7780;\n display: inline-block;\n font-size: 16px;\n }\n#spch.spch .spcho #spch-trending #trending-label {\n font-weight: bold;\n margin: 5px;\n }\n#spch.spch .spcho #spch-trending.hide {\n display: none;\n }\n#spch.spch.s2tb .spchc, #spch.spch.s2tb-h .spchc {\n background: #fff;\n box-sizing: border-box;\n box-shadow: 0 2px 6px rgb(0 0 0 / 20%);\n height: auto;\n margin: 0;\n min-width: 100%;\n overflow: hidden;\n padding: 24px 115px;\n }\n#spch.spch.s2tb .spchc .inner-container, #spch.spch.s2tb-h .spchc .inner-container {\n opacity: 1;\n transition: opacity 0.318s ease-in;\n }\n#spch.spch.s2tb .spchc .inner-container .text-container, #spch.spch.s2tb-h .spchc .inner-container .text-container {\n position: relative;\n }\n#spch.spch.s2tb {\n background: rgb(255 255 255 / 0%);\n opacity: 1;\n visibility: visible;\n transition-delay: 0s;\n }\n#spch.spch.s2tb .spchc .inner-container .button-container {\n transform: scale(1);\n height: 97px;\n right: 0;\n top: 0;\n width: 97px;\n }\n#spch.spch.s2tb .spchc .inner-container .button-container .button {\n opacity: 1;\n pointer-events: auto;\n position: absolute;\n transform: scale(1);\n transition-delay: 0;\n }\n#spch.spch.s2tb .spchc .inner-container .text-container .spcht {\n font-size: 24px;\n margin-left: 0;\n opacity: 1;\n transition: opacity 0.5s ease-out, margin-left 0.5s ease-out;\n }\n#spch.spch.s2tb #spch-overlay {\n -webkit-backdrop-filter: blur(10px);\n backdrop-filter: blur(10px);\n background-color: #fff;\n height: 100%;\n opacity: 0.9;\n position: absolute;\n top: 149px;\n\n /* spchc\'s height */\n width: 100%;\n }\n#spch.spch.disable-blur-overlay #spch-overlay {\n background-color: transparent;\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n }\n#spch.spch.disable-blur-overlay .spcho {\n height: 27px;\n padding-bottom: 20px;\n background: #fff;\n background-image: none;\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n box-shadow: 0 8px 6px -6px rgb(0 0 0 / 20%);\n }\n#spch.spch.s2tb-h {\n background: rgb(255 255 255 / 0%);\n opacity: 0;\n visibility: hidden;\n }\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes ripple {\n 0% {\n opacity: 1;\n transform: scale(0.7);\n }\n\n 100% {\n opacity: 0;\n transform: scale(1);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple1 {\n 0%,\n 100% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-1-202105260611.png");\n }\n\n 25%,\n 75% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-2-202105260611.png");\n transform: scale(1.1);\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple2 {\n 0%,\n 100% {\n background-image: none;\n }\n\n 25%,\n 75% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple2-2-202105260611.png");\n transform: scale(1.1);\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple2-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple3 {\n 0%,\n 25%,\n 75%,\n 100% {\n background-image: none;\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple3-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n',""]),t.Z=o},645:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var a=0;a0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&& (i+="}");var a=n.sourceMap;a&&"unfined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape( encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function( e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){e.exports=function(e,t ){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}, 559:function(e){e.exports=JSON.parse('[{"id":"search.voice.hover_clear_text","description":"","defaultMessage":"Cancella"},{"id" :"search.voice.hover_search_text","description":"","defaultMessage":"Cerca nel web"},{"id":"search.voice.hover_voice_text","description":"","defaultMessage" :"Ricerca vocale"},{"id":"search.voice.permission_text","description":"","defaultMessage":"Consenti l'accesso al microfono per abilitare la ricerca vocale"},{"id":"search .voice.permission_title","description":"","defaultMessage":"In attesa del permesso"},{"id":"search.voice.recognition_error","description":"","defaultMessage":"Per favore controlla i livelli del microfono e dell'audio."},{"id":"search.voice.recognition_listening","description":"","defaultMessage":"Ascolto..."},{"id":"search. voice.recognition_nomatch","description":"","defaultMessage":"Non ho capito."},{"id":"search.voice.recognition_retry","description":"","defaultMessage" :"Riprova."},{"id":"search.voice.recognition_start","description":"","defaultMessage":"Cosa vorresti cercare?"},{"id":" search.voice.trending_title","description":"","defaultMessage":"Prova a dire"},{"id":"search.voice.trending_or","description":"","defaultMessage":"o "}]')},336:function(e){e.exports=JSON.parse('["ar-JO","da-DK","de-AT","de-CH","de -DE","el-GR","en-AU","en-CA","en-GB","en-IN","en-MY","en-NZ","en-PH ","en-SG","es-AR","es-CL","es-CO","es-ES","es-MX","es-US","fi-FI", "fr-CA","fr-CH","fr-FR","id-ID","it-CH","it-IT","ko-KR","nb-NO","nl -NL","pl-PL","pt-BR","ro-RO","ru-RU","sv-SE","th-TH","tr-TR","vi-VN ","zh-Hant-HK","zh-Hant-TW"]')}},v={};funzione y(e){var t=v[e];if(void 0!==t )return t.exports;var n=v[e]={id:e,exports:{}};return m[e](n,n.exports,y),n.exports}y.n=function(e) {var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},y.d=function(e,t){ for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=function(e ,t){return Object.prototype.hasOwnProperty.call(e,t)},y.nc=void 0,e=y(379),t=y.n(e),n=y(795),i=y.n (n),o=y(569),a=y.n(o),r=y(565),s=y.n(r),c=y(216),l=y.n(c),u=y( 589),d=y.n(u),p=y(383),(h={}).styleTagTransform=d(),h.setAttributes=s(),h.insert=a().bind(null, "head"),h.domAPI=i(),h.insertStyleElement=l(),t()(p.Z,h),p.Z&&p.Z.locals&&p.Z.locals,f=y(516),funzione (e,t){var n={uiLang:"it-it",speechLang:"it-it",voiceButton:"#voice-btn",searchBox:{form:"#sf",input:"#yschsp ",params:{fr:"",fr2:""}},enable_voice_trending:!1,trending:{market:"en-us"},ui:{speechOverlay:{disableBlur:!1}},browser:{ edge:!1}};function i(o){var a=this;if(a.config=Object.assign(n,o||{}),a.i18n=new i.I18n({lang:a .config.uiLang}),a.renderPermissionGuide(a),a.renderSpeechPanel(a),a.speechResult="",a.noSpeech=!0,a.isRecognitionStart=!1,a.recognition=null,a. voiceButton=t.querySelector(a.config.voiceButton),a.searchBoxForm=t.querySelector(a.config.searchBox.form),a.searchBoxQuery=t.querySelector(a.config.searchBox.input),a.speechPanel =t.querySelector("#spch"),a.speechButtonContainer=t.querySelector("#spchbc"),a.speechButton=t.querySelector("#spchbc-btn"),a.speechText=t.querySelector(" #spcht"),a.speechOverlay=t.getElementById("spch-overlay"),a.retryLink=t.querySelector("#spcht-retry"),a.trending=t.getElementById("spch-trending") ,a.trendingTerms=t.getElementById("termend-term"),a.termSpans=t.getElementsByClassName("trending-term"),a.closeButton=t.querySelector("#spchx"),a.startAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-start-202105050733.wav"),a.resultAudio=new Audio("https://s.yimg.com/pv/static /misc/voice-result-202105050733.wav"),a.errorAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-error-202105050733.wav"),a.closeAudio =nuovo audio("https://s.yimg.com/pv/static/misc/voice-close-202105050733.wav"),a.permissionGuide=t.querySelector("#spchp"),a.permissionGuideClose=t .querySelector("#spchpx"),a.permissionGuideTimer=null,a.onEscKeyDown=function(e){"Escape"===e.code&&(a.recognition.stop(),a.sendBeacon("keybrd", "voicesearch_cancel_esc"),a.closePanel(a))},a.isBrowserSupported()){var r=e.SpeechRecognition||e.webkitSpeechRecognition,s=e.SpeechGrammarList||e.webkitSpeechGrammarList;a.recognition=new r ;var c=new s;c.addFromString&&c.addFromString("#JSGF V1.0;",1),a.recognition.grammars=c,a.recognition.continuous=!1,a.recognition.lang=a. config.speechLang,a.recognition.interimResults=!1,a.recognition.maxAlternatives=1,a.voiceButton&&(a.voiceButton.onclick=function(){a.recognition.start(),a.permissionGuideTimer&&e.clearTimeout(a .permissionGuideTimer),a.permissionGuideTimer=e.setTimeout((function(){a.isRecognitionStart||a.showPermissionGuide(a)}),300),t.addEventListener("keydown",a.onEscKeyDown),a.sendBeacon ("clk","voicesearch")}),a.speechButton&&(a.speechButton.onclick=function(){a.isRecognitionStart?(a.recognition.stop(),a.sendBeacon("clk","voicesearch_panel_mic_close" ),a.closePanel(a)):(a.recognition.start(),a.sendBeacon("clk","voicesearch_panel_mic_restart"))}),a.retryLink&&(a.retryLink.onclick=function(){a .isRecognitionStart||(a.recognition.start(),a.sendBeacon("clk","voicesearch_panel_retry"))}),a.speechOverlay&&(a.speechOverlay.onclick=function(){a.recognition.stop() ,a.sendBeacon("clk","voicesearch_cancel_outside"),a.closePanel(a)}),a.closeButton&&(a.closeButton.onclick=function(){a.recognition.stop(),a.sendBeacon(" clk","voicesearch_cancel"),a.closePanel(a)}),a.permissionGuideClose&&(a.permissionGuideClose.onclick=function(){a.recognition.stop(),a.sendBeacon("clk","voicesearch_permission_close" ),a.closeAudio.play(),a.hidePermissionGuide(a)}),a.recognition.onresult=function(t){a.speechResult=t.results[0][0].transcript,a.handlePunctuation( a),a.speechText&&(a.speechText.innerText=a.speechResult),a.searchBoxQuery&&(a.searchBoxQuery.value=a.speechResult),a.resultAudio.play(),e.setTimeout((function(){ if(a.speechPanel&&(a.speechPanel.classList.remove("s2tb"),a.speechPanel.classList.add("s2tb-h")),a.hideRetryLink(a),a.searchBoxForm){var e= a.searchBoxForm.querySelector("[nome=fr]"),t=a.searchBoxForm.querySelector("[nome=fr2]");e&&a.config.searchBox&&a.config.searchBox.params&&a.config.searchBox.params. fr&&(e.value=o.searchBox.params.fr,e.disabled=!1),t&&a.config.searchBox&&a.config.searchBox.params&&a.config.searchBox.params.fr2&&(t.value=o.searchBox. params.fr2,t.disabled=!1),a.searchBoxForm.submit()}}),1e3)},a.recognition.onspeechstart=function(){},a.recognition.onspeechend=function(){a .recognition.stop()},a.recognition.onerror=function(){a.speechText&&(a.speechText.innerText=a.i18n.t("search.voice.recognition_error")),a.hideTrending(a) ,a.showRetryLink(a),a.errorAudio.play()},a.recognition.onaudiostart=function(){a.speechButtonContainer&&a.speechButtonContainer.classList.add("ascolto")},a.recognition.onaudioend=function (){a.speechButtonContainer&&a.speechButtonContainer.classList.remove("listening")},a.recognition.onsoundstart=function(){a.hideTrending(a),a.noSpeech=!1,a.speechButtonContainer&&(a.speechButtonContainer .classList.remove("ascolto"),a.speechButtonContainer.classList.add("parlando"))},a.recognition.onsoundend=function(){a.speechButtonContainer&&a.speechButtonContainer.classList.remove("parlando")} ,a.recognition.onstart=function(){a.recognitionInit(a),a.startRecognition(a)},a.recognition.onend=function(){a.isRecognitionStart=!1,0==a.noSpeech&&" "==a.speechResult&&(a.speechText&&(a.speechText.innerText=a.i18n.t("search.voice.recognition_nomatch")),a.hideTrending(a),a.showRetryLink(a),a.errorAudio .play())},document&&document.dispatchEvent&&document.dispatchEvent(new Event("VOICE_JS_READY"))}}i.I18n=f,i.prototype.renderPermissionGuide=function(e){var t='\n

    \N

    \N

    \N

    \N

    \N

    \N

    \N

    '.concat(e.i18n.t("search.voice.permission_title"),'

    \N

    ').concat(e.i18n.t("search.voice.permission_text"),"

    \N

    \N

    \N

    \n "),n=(new DOMParser).parseFromString(t,"text/html");document.body.appendChild(n.body.children[0])},i.prototype.renderSpeechPanel=function(e) {var t='\n

    \N

    \N

    \N

    \N

    \N

    \N\n\n\N\N\N\N

    \N

    \N

    \N\N\N'.concat(e.i18n.t("search.voice.recognition_retry"),'\N

    \N

    \N

    \N

    \N

    \N

    \N').concat(e.i18n.t("search.voice.trending_title"),'\N\N

    \N

    \N

    \n '),n=(nuovo DOMParser).parseFromString(t,"text/html");e&&e.config&&e.config.ui&&e.config.ui.speechOverlay&&e.config.ui.speechOverlay.disableBlur&&n.body.children[0 ].classList.add("disable-blur-overlay"),document.body.appendChild(n.body.children[0])},i.prototype.isBrowserSupported=function(){for(var t=!1, n=this,i=Boolean(window.chrome),o=/CriOS/.test(window.navigator.userAgent),a=/Edg\//.test(window.navigator.userAgent),r=/Edge\ //.test(window.navigator.userAgent),s=Boolean(window.opr),c=Boolean(window.navigator.brave),l=[{checkEnabled:function(){return!0},checkBrowser:function (){return i&&!o&&!a&&!s&&!c},checkAPI:function(){return e&&("SpeechRecognition"in e||"webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e||"webkitSpeechGrammarList"in e)}},{checkEnabled:function(){return n&&n.config&&n.config.browsers&&n.config.browsers.edge},checkBrowser:function(){return i&&a&&!r},checkAPI:function(){return e&&(" SpeechRecognition"in e||"webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e||"webkitSpeechGrammarList"in e)}}],u=0;u0){var t=e.speechResult.charAt(e.speechResult.length-1);"."!==t&&"?"!==t&&"。"!==t&&"?"!==t| |(e.speechResult=e.speechResult.slice(0,-1))}},i.prototype.sendBeacon=function(t,n){var i=e.YAHOO.ULT||{},o=e .YAHOO.SB||{};if(i.beacon_click){var a={_S:o.config.i13n.spaceid,_I:o.config.i13n.pvid,actn:t,sec:"search", slk:n};e.YAHOO.ULT.beacon_click(a)}},i.prototype.ajaxReq=function(n,i){var o,a,r=XMLHttpRequest.DONE||4,s=new XMLHttpRequest; if(t.documentMode&&t.documentMode<10)return(new e.XDomainRequest).onload=function(){try{a=JSON.parse(o),i(a)}catch(e){return}},s .open("GET",n),void s.send();s.onreadystatechange=function(){if(s.readyState===r)if(200===s.status){o=s. rispostaTesto;prova{a=JSON.parse(o),i(a)}catch(e){return}}else i(a)},s.open("GET",n,!0),s.timeout =1e4,s.send()},e.YAHOO||(e.YAHOO={}),e.YAHOO.Util||(e.YAHOO.Util={}),e.YAHOO.Util.VoiceSearch= i}(finestra,documento)}();var _t={containerClass:mt.tooltip,textClass:mt.tooltip__text,showClass:mt["tooltip--show"]},wt=["zh-hant-tw" ,"zh-hant-hk"];me("ybar-mod-searchbox",(function(e){var t={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar- sbq"),voiceSearchBtn:document.getElementById("ybar-sbq-voice"),searchForm:document.getElementById("ybar-sf"),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton :document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(mt["shops-buttons"])),categorySelect:document.getElementById("shops-category- select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(mt["selected-merchant-clear-button"])),submitSearchBtn:document. getElementById("ybar-search")};if(function(e,t){var n,i,o,a=e.getConfig();if(t.ybar&&"desktop"===a.device&&(null ===(n=a.bucketConfig)||void 0===n?void 0:n.highlight_searchassist)&&(null===(i=a.bucketConfig)||void 0===i?void 0 :i.overlay_class)){t.ybar.setAttribute("data-ovrly-bkt",a.bucketConfig.overlay_class),null===(o=t.searchForm)||void 0===o||o .classList.add(mt[a.bucketConfig.overlay_class]);var r=document.createElement("div");r.classList.add(mt.overlay,mt[a.bucketConfig.overlay_class]),document.body .appendChild(r),e.addElementListener(t.searchForm,"focusout",(function(e){if(t.searchForm&&t.searchInput){var n=e.latedTarget;n&&!t.searchForm.contains(n) &&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.hide()}}))}}(e,t),funzione( e,t){"smartphone"===e.getConfig().device&&(e.addElementListener(t.searchBoxPlaceholder,"click",(function(){yt(e,t)})),e.addElementListener( t.searchBoxPlaceholder,"keydown",(function(n){var i=n,o=i.keyCode,a=i.key,r=vt(65,90),s=y(y([],v (vt(58,57)),!1),v(vt(96,105)),!1),c=y(y([],v(r),!1),v(s),!1 ).includes(o);(32===o||13===o||c)&&(n.preventDefault(),n.stopPropagation(),yt(e,t,c?a:"" ))})),t.searchBoxBackButton&&(e.addElementListener(t.searchBoxBackButton,"click",(function(e){e.stopPropagation(),gt(t),J("ybar","back-close- srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(t.searchInput,"keyup",(function(e){e. stopPropagation(),27===e.keyCode&&(e.stopPropagation(),gt(t))}))),e.addEventListener("viewerClosed",(function(){gt(t)})),e .onDestroy((function(){gt(t)})))}(e,t),t.voiceSearchBtn&&function(e,t){var n=e.getConfig(),i=n.locale,o=function (){var e,n;(null===(n=null===(e=window.YAHOO)||void 0===e?void 0:e.Util)||void 0=== n?void 0:n.VoiceSearch)?nuova finestra.YAHOO.Util.VoiceSearch({uiLang:i,speechLang:i,voiceButton:"#ybar-sbq-voice",searchBox:{form:"#ybar-sf" ,input:"#ybar-sbq",params:{fr:t.voiceSearchBtn.dataset.fr||"yfp-t-voice",fr2:t.voiceSearchBtn.dataset.fr2||"p:fp,m: ricerca vocale"}},ui:{speechOverlay:{disableBlur:wt.includes(i.toLowerCase())}},browser:{edge:!0},enable_voice_trending:!0,trend:{market:i}} ):console.log("YBAR: la libreria VoiceJS non è stata caricata")};e.addElementListener(document,"VOICE_JS_READY",(function(){var i,o,a,r;t.voiceSearchBtn.style.visibility= "visibile",new bt(e,t.voiceSearchBtn,h(h({},_t),{label:null!==(i=n.i18n.root.SEARCH_TOOLTIP_VOICE)&&void 0!==i?i: "Cerca con la voce",containerClass:"".concat(mt.tooltip," ").concat(mt.tooltip__voice),tooltipParentElm:null===(o=t.voiceSearchBtn)||void 0===o? void 0:o.parentElement})),new bt(e,t.submitSearchBtn,h(h({},_t),{label:null!==(a=n.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0! ==a?a:"Cerca nel Web",containerClass:"".concat(mt.tooltip," ").concat(mt.tooltip__web),tooltipParentElm:null===(r=t.voiceSearchBtn)||void 0===r?void 0:r.parentElement}))})),"loading"===document.readyState?e.addElementListener(document,"DOMContentLoaded",o):o()}(e,h (h({},t),{voiceSearchBtn:t.voiceSearchBtn})),t.searchForm){var n=t.searchForm.children[4];e.addElementListener(n,"mouseover",(function() {t.searchInput.classList.add("".concat(mt["search-input-uh3-hover"]))})),e.addElementListener(n,"mouseout",(function(){t.searchInput .classList.remove("".concat(mt["search-input-uh3-hover"]))})),e.addElementListener(t.voiceSearchBtn,"mouseover",(function(){t.searchInput.classList .add("".concat(mt["search-input-uh3-hover"]))})),e.addElementListener(t.voiceSearchBtn,"mouseout",(function(){t.searchInput.classList.remove ("".concat(mt["search-input-uh3-hover"]))})),e.addElementListener(t.searchInput,"keyup",(function(e){"Tab"===e. key&&t.searchInput.classList.add("".concat(mt["search-input-uh3-focus-visible"]))})),e.addElementListener(t.searchInput,"keydown",(function(){ t.searchInput.classList.remove("".concat(mt["search-input-uh3-focus-visible"]))})),e.addElementListener(t.searchInput,"focusout",(function(){ t.searchInput.classList.remove("".concat(mt["search-input-uh3-focus-visible"]))}))}})),function(){var e,t,n,i, o,a,r=finestra,s=documento,c=(r=(funzione(e,t){var n,i="carica",o=!1,a="Microsoft Internet Explorer"===e .navigator.appName&&(n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e.navigator.userAgent))&&n[1]&&parseFloat (n[1]);funzione r(e,t){var n=[];return s(t,(funzione(e,t){n.push(encodeURIComponent(e)+"="+encodeURIComponent(t ))})),0\&]/gim,(function(e){return""+e.charCodeAt(0)+";"}))},afterOnload:function(t){if(v())return t();var n=funzione(t,n){o=!0,h(e,i,n),t()}.bind(e,t,n);p(e,i,n)},getWinLoaded:v ,getDOMContentLoaded:function(){return"interactive"===t.readyState||"complete"===t.readyState||"loaded"===t.readyState},ae:p,de:h,ts :function(){return Math.round((new Date).getTime()/1e3)},bold:function(e,t,n,i){if(i=i||{},t.toLowerCase( )==n.toLowerCase())return e.replace(/\{s\}/g,t);var o;if(!(n=n.split(/[\s|,]+/). filter((function(e){return""!==e}))).length)return t;i.ignorePunctuation&&(o=/[~`!@#$%^&*()_\-+= {[}\]|\\:;"'<,>.?/]/g,n=n.concat(n.filter((function(e){return o.test(e)})).map ((function(e){return e.replace(o,"")}))));n="(&[^;\\s]*)?(%needles)".replace("%needles" ,n.sort((funzione(e,t){return t.lunghezza-e.lunghezza})).map((funzione(e){return e=f(e),i.v2&&/^\d+$/ .test(e)?"(^|\\D)("+e+")":e})).join("|"));var a=i.v2?function(t,n,i, o,a,r,s){return n&&!/\s/.test(i)?t:a&&s?o+e.replace(/\{s\}/g,a):e.replace(/\ {s\}/g,i)}:funzione(t,n,i){return n&&!/\s/.test(i)?t:e.replace(/\{s\}/g,i) };return t.replace(new RegExp(n,"gi"),a)},fireEvent:function(n,i,o){var a;"function"==typeof e.CustomEvent?(a=new e .CustomEvent(i,{detail:o}),n.dispatchEvent(a)):"function"==typeof t.createEvent?((a=t.createEvent("CustomEvent")).initCustomEvent(i,!1 ,!1,o),n.dispatchEvent(a)):"function"==typeof t.attachEvent&&(document.documentElement[i]=o)},getScrollingEle:function(){return document.scrollingElement||document. documentElement},sendViewBeacon:function(t,n){var i;e.YAHOO.SB.config.i13n&&(i=e.YAHOO.SB.config.i13n,n=n?"b":"p",t.s ||(t._S?t.s=t._S:i.spaceid&&(t.s=i.spaceid)),elimina t._S,!t.mtestid&&i.mtestid&&(t.mtestid=i.mtestid),t.t=t.t| |+(nuova data).getTime(),(nuova immagine).src=r("https://"+e.YAHOO.SB.config.beacon_host+"/"+n,t))},properties:s ,has:c,debug:function(t){this.config.debug&&e.console&&e.console.log&&e.console.log(t)}},e.YAHOO.NBClass=e.YAHOO.SBClass=y,e.YAHOO .NB=e.YAHOO.SB=new y}(r,s),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,i;if(null==this )lancia new TypeError(" questo è nullo o non definito");var o,a=Object(this),r=a.length>>>0;if("funzione"!=typeof e)lancia new TypeError(e+ " non è una funzione");for(1>>0;if("funzione"!=typeof e)lancia un nuovo TypeError;for(var i,o=[],a=2<=arguments.length?arguments[1]:void 0,r=0;r>>0;if("funzione"!=typeof e)lancia un nuovo TypeError(e+" non è una funzione");for(1this.length)&&-1!==this.indexOf(e,t)}),window),s=document,r.YAHOO),l=c.NB,u={},d="before_get_assist", p="before_display_data",h="before_init_view",f="after_init_view",m="before_parse_data",v="before_update_assist",y="after_update_list",g="after_create_item",b="before_show_sa",_= "after_reset_view",w="after_hide_view",E="after_init_controller",x="click_assist",C="before_query_assist",k="before_key_submit",L="before_button_submit",S="before_submit_query",A="before_sb_focus ",T="after_sb_focus",I="before_sb_blur",N="after_sb_blur",M="before_beacon",B="after_set_ylc",R="after_reset_controller",O="after_item_highlight",P="after_item_reset_highlight"; funzione q(e,t){var n,i;for(i in t=(e=e||{}).tag||t||"div",n=s.createElement(t),e. css&&(n.className=e.css),e.text&&(n.textContent=e.text),e.attrs)l.set(n,i,e.attrs[i]);for(i in e. style)n.style[i]=e.style[i];return e.wrap?((t=q(e.wrap)).appendChild(n),t):(t=l.cleanHTML(n, !0))?t[0]:null}funzione D(e){this.config=e||{},this.listeners={},this.cb={}}funzione H(){}funzione U (){}funzione F(){}funzione j(){var e=this.app.view.elems,t=e.sbClear;t&&(0{0}'}}funzione se(e){var t=0,n=0,i=0,o=e.r;if(0<(e=o.length)){for(var a=e-1 ;0<=a;a--)75==o[a].m&&o[a].fd?(t=a,n++):76==o[a].m&&i++;0'+o.contentRating+"":"",e.li.innerHTML+=a.app.format(r.s_tmpl,[n,i,o]),a.whatToWatch.push(e)):t.k&&r.insertPos&&r.insertPos>=a .currentPos&&(r.insertPos==a.currentPos&&(a.beforeNode=e.li),a.currentPos=a.currentPos+1)}funzione le(e){var t,n,i=this,o=i .whatToWatch,a=o.length,r=i.config,s=i.createElem;if(0=r.item.count&&(u.className+=" hide"),u.appendChild(o[l].li),c.appendChild(u)}t.appendChild(c),e.insertBefore(t,i. beforeNode)}i.whatToWatch=[],i.beforeNode=null,i.currentPos=0}funzione ue(){this.config={ctn:{css:"sa-wtw-ctn"},hd:{css :"sa-wtw-hd",text:"Cosa guardare"},ul:{css:"sa-wtw-list"},itemClass:{css:"sa-wtw-item"},item:{count :6},s_tmpl:'

    {0}

    {1}

    {2}'}}funzione de(e){var t=this.config,n=this.createElem;e.edit=e.li.appendChild(this.createElem(t.ctn,"span")),t .icon&&e.edit.appendChild(n(t.icon,"span")),t.text&&e.edit.appendChild(n(t.text,"span")),l.set(e.edit,"pos" ,e.idx)}funzione pe(){this.config={ctn:{css:"sa-edit"},icona:{css:"sa-edit-icon"},testo:{css:"sa- modifica-testo"}}}funzione he(e,t){var n=this.config,i=t.d,o=t.fd;t=t.m;if(o){if(13==t&&(o. dispMrk&&(u=n.history.markers["m"+o.dispMrk])&&u.css&&(e.li.className+=" "+u.css),!n.showAnnotForHistory))return;var a,r= e.li,s=this.createElem,c=o.title,l=o.subtitle,u=(s=(i&&i.subdn,c&&(i=s(n.title,"p"),n.concatSubTitle&&l&& (c+=" · "+l,l=""),i.innerHTML=c,r.className+=" fatti rapidi",r.appendChild(i)),l&&((i=s(n.sottotitolo, "p")).innerHTML=l,n.enableFlag&&o.flag&&((a=s({css:"sa-annot-flag"},"img")).onerror=function(e){a.style. display="none"},a.src=o.flag,i.appendChild(a)),r.appendChild(i)),n.markers))&&s["m"+t];0==e. idx&&u&&u.type&&(r.className+=" billboard "+u.type),n.richClass&&(c||l)&&(r.className+=" "+n.richClass)}}funzione fe(){this.config= {title:{css:"sa-annot-title"},subtitle:{css:"sa-annot-subtitle"},markers:{m41:{type:"meteo"},m46:{type:"finanza" },m48:{type:"sports"}},history:{markers:{m27:{css:"entity-sugg"},m30:{css:"public-company"}}}}}function me(e ){var t,n,i,o,a=this.config,r=e.m;e=e.fd;46==r&&e&&(r=e.price,t=e.change,n=e.change_pct, i=a.zero.css,o=parseFloat(t),r)&&t&&n&&(o<0?i=a.down.css:0{0} ({1})',fd_tmpl:'{0}{3} ({4})',icona:"sa-stk-icon",giù:{css:"sa-stk-giù"},su:{css:"sa-stk-up"},zero:{css:"sa-stk- zero"}}}funzione ge(e){var t=this.config,n=e.m;e=e.fd;if(48==n&&e&&&!e.subtitle){n=e.t_logo;var i,o ,a,r,s,c,l,u=e.team,d=e.ot_logo,p=e.oteam,h=e.team_points,f=e.opp_points,m=e.period&&"• Q" +e.period,v=e.timeleft,y=e.gametime&&nuova data(1e3*e.gametime),g=e.live,b=e.game_cnt,_=b&&1'+v+"",e.title=E(t.league_l_tmpl,[u,n,h,f,d,p,m,i])+''):w?(o=y.toLocaleString([],{giorno:"numeric",mese:"short",timeZone:e.tz}),s='',c=''+o+"",e.title=E(t.league_f_tmpl,[u,n,h,f,d,p,s+c])):(o=y.toLocaleString([],{giorno:"numeric",mese :"breve",ora:"2 cifre",minuti:"2 cifre",timeZoneName:"breve",timeZone:e.tz}),a=u.length+p.length+o.length+_ .lunghezza>t.maxLen?"
    ":"",r=o.lunghezza+_.lunghezza>t.maxLen?"
    ":"",s=u.length+p.length+o.length+t.sepThreshold>t.maxLen?"":'',c=''+o+"",l=b&&1'+_+"":"",e.title=E(t.league_n_tmpl,[u,n,d,p,s+a+c+r+l]))}catch(e){}else e .title=E(t.league_tmpl,[u,p,y.toLocaleString([],{giorno:"numeric",mese:"breve", ora:"2 cifre", minuto:"2 cifre", timeZoneName:"short",timeZone:e.tz})]);else{prova{e.title=g?E(t.l_tmpl,[h,f,p,m,v])+'':w?E(t.f_tmpl,[h,f,p,y.toLocaleString([],{giorno:"numeric",mese:"short",timeZone:e.tz})]):E(t .n_tmpl,[p,y.toLocaleString([],{giorno:"numerico",mese:"breve", ora:"2 cifre", minuto:"2 cifre",timeZoneName:"breve",timeZone: e.tz})])}catch(e){}n&&(e.imageUrl=n)}}}funzione be(e,t){var n=this.config,i=t.m;t=t.fd, e=e.li;n.enableNewLeagueTmpl&&48==i&&t&&t.qtype&&"lg"==t.qtype&&(e.className+=" league")}function _e(){this.config={enableNewLeagueTmpl:!1,n_tmpl:" rispetto a {0} {1}",l_tmpl:"{0} - {1} rispetto a {2} {3} {4}",f_tmpl:"{0} - {1} rispetto a {2} {3 }",league_tmpl:"{0} contro {1} {2}",league_n_tmpl:'{0}Yahoo Intrattenimento (4)controYahoo Intrattenimento (5){3}{4}',league_l_tmpl:'{0}Yahoo Intrattenimento (6){2} - {3}Yahoo Intrattenimento (7){5} {6} {7}',league_f_tmpl:'{0}Yahoo Intrattenimento (8){2} - {3}Yahoo Intrattenimento (9){5} {6}',liveIconClass:"sa-ico-live",maxLen:60,sepThreshold:10}}funzione we(e){var t,n,i,o,a,r,s,c= this.config,l=e.m;e=e.fd;41==l&&e&&!e.subtitle&&(l=e.img_url||"",t=e.condition,n=e.degree,i=e.high_temp&& "• H:"+e.high_temp+"°",o=e.low_temp&&"L:"+e.low_temp+"°",a=e.loc&&"• "+e.loc,r=e.warning?' ':"",s=this.app.format,c.enableHL?e.title=s(c.tmpl_hl,[l,n,r,t,i,o,a]):e.title=s( c.tmpl,[l,n,t,a]))}funzione Ee(){this.config={enableHL:!1,tmpl:'Yahoo Intrattenimento (10){1}{2} {3}',tmpl_hl:'Yahoo Intrattenimento (11){1}{2} {3} {4} {5} {6}'}}funzione xe(e){var t,n,i,o=this.config,a=e.m,r=e.d,s=(e= e.fd)&&e.show_subtitle?e.show_subtitle:0;27==a&&e&&!s&&(r&&"movie"==r.subdn?(n=e.year||"",a=e.genre&&e.genre[ 0]?e.genre[0]+" "+o.text.movie:o.text.movie,s=e.releaseDate?new Date(e.releaseDate):"",t=new Date,s&&t{1}{3}{4}{5}',label:{C:"Annullato",S:"Programmato",A0:"In ritardo",A1:"In orario",L0:"Arrivato in ritardo",L1:"Arrivato"},descPrefix:{S :"Partenza prevista alle",A:"Arrivo previsto alle",L:"Arrivo a"}}}function Te(e){var t=this.config,n=this.app.format,i=e.idx ,o=e.m;e=e.fd;t.enabled&&53===o&&e&&0===i&&"1.00"===e.num&&(e.title=n(t.titleTpl,[e.fromUnit,e.title ]))}funzione Ie(e,t){var n=this.config,i=t.idx,o=t.m;t=t.fd;n.enabled&&53===o&&0===i&&t&&(e.li .classList.add("sa-currency"),"1.00"!==t.num)&&e.li.classList.add("sa-currency-plural")}funzione Ne(){this.config={titleTpl :"1 {0} = {1}"}}funzione Me(e){var t=this.config,n=this.app.format,i=e.m;e=e.fd;t.enabled&&54=== i&&e&&(i=e.resultUnitAbbr||e.resultUnit,e.title=n(t.titleTpl,[e.num,i]))}funzione Be(e,t){var n=this.config,i= t.idx,o=t.m;t=t.fd;n.enabled&&54===o&&0===i&&t&&e.li.classList.add("sa-unitconv")}funzione Re(){this.config={titleTpl :"{0} {1}"}}funzione Oe(e,t){var n,i=e.li,o=this.config,a=this.createElem,r=o.ctn,s=a( o.placeholder,"span"),c=(t=t.fd&&t.fd.imageUrl,i);r&&(c=a(r)),t&&((n=a(o.thumbnail,"img") ).src=t,n.className+=" sa-hidden",n.onload=function(e){l.removeClass(n,"sa-hidden"),o.showIconOnImgLoad||(s.className+=" sa -hidden")},e.img=c.appendChild(n),o.richClass)&&(i.className+=" "+o.richClass),c.appendChild(s),c!==i&&i.appendChild( c)}funzione Pe(){this.config={thumbnail:{css:"sa-img-left"},placeholder:{css:"sa-img-icon"}}}funzione qe(e,t){ var n=t.m,i=this.idxs;""!==t.q||n in i||(i[n]=e.idx)}funzione De(e){var t,n=this,i= n.config,o=n.idxs,a=i.grps,r=n.createElem;for(t in o){var s,c=a["m"+t],l=(u=a[ t])&&u.testo||c&&c.testo,u=u&&u.css||c&&c.css;l&&((c=r(i.hdr,"div")).appendChild(r(i.icon,"span ")),s=c.appendChild(r(i.title,"span")),c.className+=u?" "+u:"",s.textContent=l,e.insertBefore(c,n. app.view.items[o[t]].li))}n.idxs={}}funzione He(){this.config={hdr:{css:"sa-grp-hdr"},icona:{ css:"sa-grp-hdr-icon"},title:{css:"sa-grp-hdr-title"},grps:{m13:{text:"Ricerche recenti",css:"cronologia"},m9 :{text:"Tendenze attuali",css:"Tendenze"}}}}funzione Ue(){this.selectedIndex=-1}funzione Fe(){funzione e(){var e=n.selectedIndex;0<= e&&a[e]&&(l.removeClass(a[e].li,i.css),n.app.notify(P))}funzione t(e){l.addClass(e,i.css),n .app.notify(O)}var n=this,i=n.config,o=n.app.view,a=o.items,r=(u=o.elems).sbInput,c=u.saTray ,u=l.ieVer,d=!1;l.ae(c,"mouseover",(function(i){for(var a=i.target||i.srcElement;a&&a!=c;){var r=l.get(a,"pos"),s=r?o.items[r]:{};if(s&&a===s.li){e(),n.selectedIndex=r,t( a);break}a=a.parentNode}})),l.ae(c,"mouseout",(function(t){e()})),l.ae(r,"keydown",(funzione (s){var c=s.keyCode,u=n.selectedIndex;switch(c){case 38:case 40:if(a.length){e();for(var p,h=a.length; 40==c?u<0||h-1<=u?u=0:u++:u<=0?u=h-1:u--,!(p=a[u]).li. parentNode;);n.selectedIndex=u,o.assistItem=p,r.value=p.data.k,t(p.li),l.stopPropagation(s),d=!0}break;caso 9: caso 39:if(9!=c||!i.useDefaultTab){var f=r.value.length;if(r.selectionEnd==f&&r.selectionStart==f){if(!a.length)return; (0<=u||r.valore!==a[0].data.k)&&(r.valore=(0<=u?a[u]:a[0]).data.k,o .show(),l.stopPropagation(s))}else 9==c&&(r.selectionEnd=r.selectionStart=r.value.length,l.stopPropagation(s))}}})),u&&(8= ==u&&l.ae(r,"propertychange",(funzione(e){"valore"===e.propertyName&&!0!==d&&o.show(),d=!1})),9=== u)&&(n.onSelctionChange=function(e){s.activeElement===r&&o.show()})}function je(){var e=l.ieVer;e&&9===e&&!this.ie9_attached&&(l .ae(s,"selectionchange",this.onSelctionChange),this.ie9_attached=!0)}funzione Ye(){var e=l.ieVer;e&&9===e&&this.ie9_attached&&(l.de(s,"selectionchange ",this.onSelctionChange),this.ie9_attached=!1)}funzione Ge(){this.config={css:"highlight",useDefaultTab:!1}}funzione ze(e,t,n){var i, o=this.config,a=o.log,r=this.app,s=r.view.elems.sbInput,c=n.li,u=n.idx;t===n.edit&&13==n .data.m&&(t={query:n.data.k,action:"del",sa:1},n=r.config.shBE,l.merge(t,n.params),n=n. host+l.buildUrl(n.base,t),(i=new XMLHttpRequest).open("GET",n,!0),i.withCredentials=!0,i.setRequestHeader("Tipo di contenuto"," application/x-www-form-urlencoded"),o.placeholder||(i.onreadystatechange=function(){var e=i.status;(4==i.readyState&&200<=e&&e<300||304== =e||1223===e)&&(r.model.removeAt(u),o.fetchAfterRemove)&&setTimeout((function(){r.model.fetch()}),o.delayBeforeFetch)}),i .send(null),o.placeholder&&((t=this.createElem(o.placeholder,"div")).innerHTML=o.placeholder.html,c.parentNode.replaceChild(t,c)),l.setFocus (s),e(),a)&&(a.pos=u+1,r.control.beacon("tapRmv",s,a))}funzione We(){this.config={delayBeforeFetch:300, placeholder:{css:"sa-sh-ph",html:'Questa ricerca è stata rimossaGestisci la cronologia'},log:{sec:"cerca",slk:"cancella cronologia",rspns:"upd",t2:"cerca",t4:"cancella cronologia"}}}funzione Ve(){funzione e(e) {e.keyCode&&27!==e.keyCode&&13!=e.keyCode||(l.stopPropagation(e),a.value="",l.setFocus(a),i.show(),n.control.beacon ("tapClr",r,t.config.log))}var t=this,n=t.app,i=n.view,o=i.elems,a=o.sbInput,r=o.sbClear; r&&(l.ae(r,"click",e),l.ae(r,"keydown",e))}funzione Ke(){this.config={log:{_r:2,actn:"clk ",pos:1,sec:"cerca",slk:"cancellaricerca",t1:"hdr",t2:"cerca",t3:"cancella",t4:"cancellaricerca"}}}c.SA=(t =[],D.prototype={jsonp:function(e){var t=s.getElementsByTagName("head")[0],n=s.createElement("script");l.set(n,"type ","testo/javascript"),l.set(n,"src",e),t.appendChild(n),l.ae(n,"load",(function(){t.removeChild(n) }))},xhr:function(e,t){var n=new XMLHttpRequest;n.open("GET",e),n.setRequestHeader("Content-type","application/x-www-form- urlencoded"),n.onreadystatechange=function(){var e=n.status;(4==n.readyState&&200<=e&&e<300||304===e||1223===e)&&t(JSON. parse(n.response))},n.send(null)},createElem:q,getElemStyleValue:function(e,t){return r.getComputedStyle?r.getComputedStyle(e).getPropertyValue(t):e.currentStyle ?(t=t.replace(/\-([a-z]){1}/g,(function(e,t){return t.toUpperCase()})),e.currentStyle[t]):"" },format:funzione(e,t){if(e)return e.replace(/{(\d+)}/g,(funzione(e,n){return t&&void 0!==t[n]?t [n]:""})).trim()},on:function(e,t,n){var i;e&&t&&((i=this.listeners)[e]||(i[e]=[ ]),i[e].push({thisArg:n||this,fn:t}))},notify:function(e,t){var n=this.listeners;if(!n[e]) return!1;n[e].forEach((function(e){var n=e.thisArg;(e=e.fn)&&e.apply&&1!=n.config.disable&&e.apply(n,t||[ ])}))},init:function(t){var n,i,o,a,r=this,s=r.config,c=s.plugins={};for(a in r.view= n=new e.viewClass,r.model=i=new e.modelClass,r.control=o=new e.controlClass,u){var d=new u[a];c[a]=d.config= d.config||{},d.createElem=q,d.init(r)}"oggetto"==tipodi t&&l.merge(s,t),r.ready=n.init(r)&&i.init( r)&&o.init(r)}},n=D,e={ver:"assistjs-v1.0.254-ybar",apps:t,plugs:u,add:function(e,t){u[e ]=t},msg:{BEFORE_GET_ASSIST:d,BEFORE_DISPLAY_DATA:p,BEFORE_INIT_VIEW:h,AFTER_INIT_VIEW:f,BEFORE_PARSE_DATA:m,BEFORE_UPDATE_ASSIST:v,AFTER_UPDATE_LIST:y,AFTER_CREATE_ITEM:g,BEFORE_SHOW_SA:b,AFTER_RESET_VIEW: _, DOPO_HIDE_VIEW: w,DOPO_INIT_CONTROLLER:E,CLICK_ASSIST:x,BEFORE_QUERY_ASSIST:C,BEFORE_KEY_SUBMIT:k,BEFORE_BUTTON_SUBMIT:L,BEFORE_SUBMIT_QUERY:S,BEFORE_SB_FOCUS:A,AFTER_SB_FOCUS:T,BEFORE_SB_BLUR:I,AFTER_SB_BLUR:N,B PRIMA_BEACON:M,DOPO_SET_YLC:B, AFTER_RESET_CONTROLLER:R,AFTER_ITEM_HIGHLIGHT:O,AFTER_ITEM_RESET_HIGHLIGHT:P},marcatori:{GOSSIP_MARKER_SEARCH_HISTORY:13,GOSSIP_MARKER_TRENDING:9,GOSSIP_MARKER_FLIGHT:32,GOSSIP_MARKER_ENTERTAINMENTS:27,GOSSIP_MARKER_WEATHER:41,GOSSIP_MARKER_ PEOPLE_ALSO_SEARCH_FOR:42,GOSSIP_MARKER_CURRENCYCONV:53,GOSSIP_MARKER_UNITCONV:54,GOSSIP_MARKER_FINANZA: 46,GOSSIP_MARKER_SPORTS:48,GOSSIP_MARKER_RELATED_STOCKS:73,GOSSIP_MARKER_WHAT_TO_WATCH:75,GOSSIP_MARKER_SHOPPING_REFINEMENT:76},init:function(e){var i,o=l.ieVer;return!(o&&o<8||((i=new n( this.initConfig?this.initConfig():{})).init(e),!i.ready))&&(i.config.customEvent&&8===o&&(s.documentElement.assistSelection=null),i.idx =t.length,t.push(i),void(!this.latency&&r.performance&&"function"==typeof r.performance.now&&(this.latency=r.performance.now()))))}}), e.controlClass=(i="ylcAssist",o="ylcKey",a="ylcBtn",H.prototype={init:function(e){funzione t(e){y.pqstr="",y. pqstrl=0,y.pos=0;var t=p.sbForm.fr2,n=p.sbInput.value,r=c.data;switch(y.query=encodeURIComponent(n),y.qstrl=n. length,y.t_stmp=l.ts(),y.gprid=r.l&&r.l.gprid?r.l.gprid:"",y.n_sugg=r.r?r.r.length:0,t&&(y.fr2=t.value ),u.assistItem&&(y.pos=u.assistItem.idx+1),e){case i:var s=u.lastInput;l.merge(y,d[i]),y.pqstr=s, y.pqstrl=s.lunghezza;break;case o:l.merge(y,d[o]);break;default:l.merge(y,d[a])}O(B),w.lastActn= y.t4}funzione n(e){var t=p.sbInput.value;!(t=p.mustHaveInput?p.mustHaveInput.value:t)||""===t||void 0!== t.trim&&""===t.trim()||(O(S),e?l.fireEvent(h,e,{data:u.assistItem}):f.submit(),setTimeout((funzione (){P()}),400))}var c,u,d,p,h,f,m,v,y,g,b,_,w=this,M=l.ieVer,O= function(t,n){e.notify(t,n)},P=function(){h.blur(),u.reset(),O(R)};return w.model=c=e. model,w.view=u=e.view,w.config=d=e.config,w.customEvent=v=d.customEvent||{},w.lastActn="",w.ylc=y={ },l.merge(y,d.ylc),p=u.elems,h=p.sbInput,f=p.sbForm,m=p.sbSubmit,(!M||9<=M)&&l.ae (h,"input",(function(){u.show()})),l.ae(h,"focus",(function(e){O(A),d.sbScrollTop&&(s.body. scrollTop=0),O(T)})),l.ae(h,"blur",(function(e){e.latedTarget&&f.contains&&f.contains(e.parentTarget)||(O(I),O (N))})),l.ae(h,"click",(function(){u.triggered||u.show()})),l.ae(h,"keydown",(function( e){switch(w.lastActn="key_"+e.keyCode,e.keyCode){caso 13:e.preventDefault(),O(k),t(o),n(v.customKeyBoard);break; case 27:h.blur(),u.hide(),l.stopPropagation(e)}})),m?l.ae(m,"click",(function(e){e.preventDefault(), O(L),t(a),n(v.customBtn)})):l.ae(f,"invia",(funzione(){O(L),t(a),O(S), setTimeout((function(){P()}),400)})),"ontouchstart"in r&&(_=function(e,t){return(/touch/.test(e.type)?(e. originalEvent||e).changedTouches[0]:e)["page"+t]},l.ae(s,"touchstart",(function(e){u.shown&&(g=_(e,"X "),b=_(e,"Y"))})),l.ae(s,"touchend",(funzione(e){u.mostrato&&(5<=Math.abs(_(e," X")-g)||5<=Math.abs(_(e,"Y")-b))&&e.preventDefault()}))),l.ae(s,"click",(funzione( e){if(u.mostrato){for(var o=e.target||e.srcElement,a=!1;o;){if(o===f||o===p.saTray) return;var r=(r=l.get(o,"pos"))?u.items[r]:{};if(O(x,[funzione(){a=!0},o,r ]),a)return;if(o===r.li)return h.value=r.data.k,u.assistItem=r,O(C),t(i),void n(v.customSelection );if((o=o.parentNode)===s)break}d.hideOnOutsideClick&&u.hide()}})),O(E),!0},beacon:function(e,t,n){ var i,o,a,r;n&&(i=(r=this).customEvent,o=r.config,r.model.app.notify(M,[n]),a="sa_rt"in n? {rt:n.sa_rt,q:n.cqry,la:r.lastActn,n:n.nitems,s:n._S}:{},r.lastActn=n.t4,i[e]?l. fireEvent(t,i[e],n):c.ULT?(t=(r=c.ULT).BEACON,o.saBeacon&&(r.BEACON=location.protocol+"//"+l.buildUrl(o .saBeacon,a)),r.beacon_click(n),r.BEACON=t):"function"==tipodi c.SaBeacon&&c.SaBeacon(n))}},H),e.modelClass=(U.prototype ={init:function(e){var t=this;return t.app=e,t.view=e.view,t.config=e.config,t.cbIdx=0,t.data={}, !0},fetch:function(){var e=this,t=e.app,n="sacb"+e.cbIdx++,i={pq:(i=e.view).origQuery,command:i. elems.sbInput.value,t_stmp:l.ts()},o=e.config.saBE,a=t.cb;if(e.config.xhr||(i.callback="YAHOO.SA.apps[ "+t.idx+"].cb."+n),l.merge(i,o.params),!e.config.xhr){for(var r in a)a.hasOwnProperty(r)&&(a [r]=funzione(){});a[n]=funzione(t){e.read(t||{}),a[n]=funzione(){}}}t.notify(d, [i]),e.getAssist(o,i)},getAssistFromUrl:function(e,t){var n=this;n.config.xhr?n.app.xhr(e,(function(e){t .command==(e=e||{}).q&&n.read(e||{})})):n.app.jsonp(e)},getAssist:function(e,t){this.getAssistFromUrl (e.host+l.buildUrl(e.base,t),t)},read:function(e){this.data=e,this.display()},removeAt:function(e){this.data .r.splice(e,1),this.display()},removeItems:function(e){for(var t=this.data,n=t.r.length-1;0<=n;n--)t.r [n].m==e&&t.r.splice(n,1);this.display()},display:function(){var e=this.data;this.app.notify(p,[e]) ,this.view.dropdown(e)}},U),e.viewClass=(F.prototype={init:function(e){var t,n,i,o,a,c,u=this,d =(u.app=e,u.model=e.model,u.config=t=e.config,u.elems=n={},u.items=[],u.assistItem=null,e. notify(h),t.elems);for(c in d)n[c]||(n[c]=s.getElementById(d[c]));return i=n.sbInput,a=n. saTray,!!((o=n.sbForm)&&i&&a)&&(u.origQuery=u.lastInput=i.value,l.set(i,"role","combobox"),l.set(i," aria-autocomplete","entrambi"),l.set(i,"aria-expanded","false"),u.origAction=o.action,(!(a=i.autofocus)&&t.autofocus||a&&i .value.length)&&l.setFocus(i),e.notify(f),l.ae(r,"load",(function(){s.body.dir&&"rtl"==s.body.dir&&( t.saAria.style.left="",t.saAria.style.right="-9999px"),n.saAria=s.body.appendChild(e.createElem(t.saAria,"div"))}) ),!0)},dropdown:function(e){var t,n=this,i=n.config,o=n.app,a=e&&e.r?e.r.length:0,r=s.body, c=(t=n.elems).sbInput,u=t.saAria,d=t.saTray,p=((t=t.sbForm)||{}).parentElement,h=n.app.createElem, f=i.noQueryClass,g=i.typingClass,b=i.noResultClass,_=h(i.sa,"div"),w=h(i.saList,"ul");if(i.restoreScrollPosition&&! n.mostrato&&(n.previousScrollY=window.scrollY),l.addClass([r,p],g),""==e.q?i.addNoQueryClsToBody?l.addClass(r,f):l.addClass(d ,f):l.removeClass([d,r],f),n.shown=!0,n.clearAssist(),a){_.appendChild(w),o.notify(m,[e]) ;for(var E=0;E
    "+a+" "+n.config.saAria.shownText+"")},show:function(){var e=this,t=e.config,n=e.elems.sbInput.value,i=n.length ;e.app.notify(b),e.shown&&e.sameQuery()||(e.lastInput=n,it.maxInput?e.hide():(e.model.fetch(),e.triggered=!0))},hide:function(){var e=this,t=(i=e.elems). sbInput,n=i.saAria,i=i.sbForm,o=e.config;l.removeClass(s.body,o.typingClass),i&&i.parentElement&&l.removeClass(i.parentElement,o.typingClass),l. rimuoviClass(i,o.noResultClass),e.clearAssist(),e.shown=!1,e.triggered=!1,o.restoreScrollPosition&&window.scroll({top:e.previousScrollY}),t&&l.set(t, "aria-expanded","false"),n&&(l.set(n,"aria-expanded","false"),n.innerHTML="

    "+e.config.saAria.closedText+"

    "),e.app.notify(w)},clearAssist:function(){this.elems.saTray.innerHTML="",this.items.splice(0,this.items.length),this.assistItem=null },createItem:function(e){var t={idx:e.idx,data:e.origData},n=l.htmlEncode,i=this.config,o=this.app.createElem,a={} ,r=(i.highlight&&l.merge(a,i.highlight),e.highlight&&l.merge(a,e.highlight),o(i.saItem,"li"));return(o=(l.set (r,"pos",e.idx),o(i.saTitle,"span"))).innerHTML=e.t||(i.boldTag&&e.k&&e.q?l.bold(i.boldTag,n(e.k ),n(e.q),a):n(e.k)),r.appendChild(o),t.li=r,t.title=o,this.app.notify(g,[t,e]), t},resetQuery:function(){this.elems.sbInput.value=this.origQuery},reset:function(){var e=this,t=e.config,n=e.elems.sbForm;t.resetQuery&&e .resetQuery(),e.hide(),n.action=e.origAction,e.app.notify(_)},sameQuery:function(){return this.elems.sbInput.value==this.lastInput}} ,F),e.initConfig=funzione(){return{elementi:{sbForm:"sb-form",sbInput:"sb-input",sbSubmit:"sb-search",sbClear:"sb-clr",sbCancel :"sb-cancel",saTray:"sa-tray"},customEvent:{},sa:{css:"sa",attrs:{type:"normal"}},saList:{css:"sa-list ",attrs:{role:"listbox"},style:{cursor:"pointer"}},saItem:{css:"sa-item",attrs:{role:"option"}},saTitle:{css: "sa-item-title"},saAria:{shownText:"nuovi suggerimenti mostrati",closedText:"Casella dei suggerimenti chiusa",css:"sa-aria-live-region",attrs:{"aria-live":" polite"},style:{position:"absolute",left:"-9999px"}},saBE:{host:"",base:"/sugg/gossip/gossip-us-ura/",params:{l :1,bm:3,output:"sd1",nresults:10}},shBE:{host:"",base:"/history"},minInput:0,maxInput:255,boldTag:"{S}",ylc:{_r:2},ylcAssist:{use_case:""},hideOnOutsideClick:!0,noQueryClass:"sa-noQuery",typingClass:"digitando",noResultClass:"sf-noResult"}},u. hideSbClr=(Y.prototype={init:function(e){(this.app=e).on(b,j,this)}},Y),u.entityFocus=(z.prototype={init:function (e){(this.app=e).on(S,G,this)}},z),u.saFr=(Z.prototype={init:function(e){(this.app=e) .on(f,W,questo),e.on(C,V,questo),e.on(_,K,questo)}},Z),u.ipos=(X.prototype={init:funzione (e){(this.app=e).on(b,J,this),e.on(d,Q,this)}},X),u.saTray=(ee.prototype={init:function (e){(this.app=e).on(h,$,this)}},ee),u.saFlvr=(ne.prototype={init:function(e){e.on(g,te ,this)}},ne),u.saShoppingRefinement=(re.prototype={init:function(e){var t=this;t.shoppingRefinement=[],t.beforeNode=null,t.currentPos=0, (t.app=e).on(m,ie,t),e.on(g,oe,t),e.on(y,ae,t)}},re),u.saWhatToWatch=(ue .prototype={init:function(e){var t=this;t.whatToWatch=[],t.beforeNode=null,t.currentPos=0,(t.app=e).on(p,se,t ),e.on(g,ce,t),e.on(y,le,t)}},ue),u.saEdit=(pe.prototype={init:function(e){e.on( g,de,this)}},pe),u.saAnnot=(fe.prototype={init:function(e){e.on(g,he,this)}},fe),u.saStock=( ye.prototype={init:function(e){(this.app=e).on(v,me,this),e.on(g,ve,this)}},ye),u.saSport=( _e.prototype={init:function(e){(this.app=e).on(v,ge,this),e.on(g,be,this)}},_e),u.saWeather=( Ee.prototype={init:function(e){(this.app=e).on(v,we,this)}},Ee),u.saEntertainments=(Ce.prototype={init:function(e) {(this.app=e).on(v,xe,this)}},Ce),u.saFlightStatus=(Ae.prototype={init:function(e){(this.app=e).on( v,Le,this),e.on(g,Se,this)}},Ae),u.saCurrencyConverter=(Ne.prototype={init:function(e){(this.app=e).on( v,Te,this),e.on(g,Ie,this)}},Ne),u.saUnitConverter=(Re.prototype={init:function(e){(this.app=e).on( v,Io,questo),e.on(g,Be,questo)}},Re),u.saImg=(Pe.prototype={init:function(e){e.on(g,Oe,questo) }},Pe),u.saGroup=(He.prototype={init:function(e){this.app=e,this.idxs={},e.on(g,qe,this),e.on (y,De,this)}},He),u.saPCActn=(Ge.prototype={init:function(e){var t=this;t.app=e,t.selectedIndex=-1,e. on(p,Ue,t),e.on(E,Fe,t),e.on(T,je,t),e.on(N,Ye,t)}},Ge),u.tapRmv =(We.prototype={init:function(e){(this.app=e).on(x,ze,this)}},We),u.tapClr=(Ke.prototype={init:function( e){(this.app=e).on(E,Ve,this)}},Ke)}();var Et={"bot-search-icon":"_yb_1h7wh","bot-search-icon -container":"_yb_wllyu","bot-search-item":"_yb_1so5m","bot-search-item-col":"_yb_ph2sw","bot-search-span":"_yb_qd3zs",cronologia:"_yb_iehke ","list-item-hover":"_yb_k2ywi",lowlight:"_yb_1tfkb","no-wrap":"_yb_1o1kf","lated-title":"_yb_o6tld",sa:"_yb_9maf3","sa-annot -rich":"_yb_1r8e8","sa-annot-subtitle":"_yb_1sprw","sa-annot-title":"_yb_19tpx","sa-company":"_yb_192di","sa-edit":"_yb_14vt2 ","sa-edit-icon":"_yb_gbaaq","sa-edit-text":"_yb_1at6f","sa-fd-actn-cont":"_yb_uwjix","sa-grp-hdr":"_yb_m6vxn ","sa-grp-hdr-title":"_yb_23ydk","sa-history":"_yb_189id","sa-img":"_yb_1jr01","sa-img-ctn":"_yb_njhee","sa -img-icon":"_yb_e8icq","sa-item":"_yb_9iq10","sa-item-title":"_yb_udui3","sa-rich-thumb":"_yb_1eia3","sa-sbx-container ":"_yb_1xyyo","sa-sugg":"_yb_1yhl7","sa-thumb-icon":"_yb_7t4k9","sa-tray":"_yb_7c017","sa-tray-list-container":"_yb_2vk4r ","sa-trend":"_yb_1vqdx","sub-assist":"_yb_erjpy","suggestion-title":"_yb_5fjvr",trend:"_yb_1x5q3","trend-title":"_yb_2qmrp","yui3 -highlight":"_yb_164jf"},xt={boldTag:'{S}',customEvent:{customBtn:"searchBtnClicked",customKeyBoard:"enterKeyPressed",customSelection:"assistSelectionClicked"},elems:{sbForm:"ybar-sf",sbInput:"ybar-sbq",sbSubmit:"ybar-search" ,sbClear:"ybar-sbq-x",sbCancel:"ybar-search-back-btn"},hightlight:{exact:!0,pattern:"^"},minInput:1,sa:{css:Et[ "sa-tray"]},saBE:{base:"",host:"",params:{appid:"yfp-t"}},saItem:{css:""},saList:{css:Et[ "sa-tray-list-container"]},saTitle:{css:"",style:{display:"block"}},plugins:{saFr:{disable:!0},saFr2:{disable:!0 },saTray:{afterNode:"ybar-sbq",ctn:{css:Et["sa-sbx-container"]},tray:{css:Et.sa+" "+Et.lowlight}},saPCActn:{ css:Et["list-item-hover"],useDefaultTab:!0},ylcEncode:{disable:!0},saFlvr:{disable:!0},saEdit:{disable:!0},saAnnot:{disable :!0},saWhatToWatch:{disable:!0},saImg:{disable:!0},saPopup:{disable:!0}}},Ct={saBE:{base:"",host:"", params:{appid:"yfp-t",".crumb":"",f:1}},shBE:{host:"https://search.yahoo.com",base:"/history",params :{_bcrumb:""}},saItem:{css:Et["sa-item"]},minInput:0,highlight:{v2:!0},plugins:{saFlvr:{m9:Et["sa- trending"],m13:Et["sa-history"],m30:Et["sa-company"],flvr:Et["sa-sugg"]},saEdit:{ctn:{css:Et["sa -edit"]},icon:{css:Et["sa-edit-icon"]},testo:{css:Et["sa-edit-text"],testo:"Rimuovi"}},saAnnot:{ title:{css:Et["sa-annot-title"]},subtitle:{css:Et["sa-annot-subtitle"]},richClass:Et["sa-annot-rich"]},tapRmv: {placeholder:""},saImg:{placeholder:{css:Et["sa-img-icon"]},thumbnail:{css:Et["sa-img"]},ctn:{css:Et[" sa-img-ctn"]},richClass:Et["sa-rich-thumb"]},saWhatToWatch:{disable:!0},saGroup:{hdr:{css:Et["sa-grp-hdr"] },title:{css:Et["sa-grp-hdr-title"]},grps:{m9:{text:"In tendenza",css:Et.trending},m13:{text:"",css :Et.history}}}}},kt={saBE:{base:"",host:"",params:{appid:"mi5",".crumb":"",f:1}},shBE :{host:"https://search.yahoo.com",base:"/history",params:{_bcrumb:""}},saItem:{css:Et["sa-item"]},saTitle: {css:Et["sa-item-title"]},minInput:0,highlight:{v2:!0},plugins:{saFlvr:{m9:Et["sa-trending"],m13:Et[" sa-history"],m30:Et["sa-company"],flvr:Et["sa-sugg"]},saEdit:{ctn:{css:Et["sa-edit"]},icon:{ css:Et["sa-edit-icon"]},text:{css:Et["sa-edit-text"]}},saAnnot:{titolo:{css:Et["sa-annot-title"] },subtitle:{css:Et["sa-annot-subtitle"]},richClass:Et["sa-annot-rich"]},tapRmv:{placeholder:""},saImg:{placeholder:{css: Et["sa-img-icon"],wrap:{css:Et["sa-thumb-icon"]}}, miniatura:{css:Et["sa-img"]},ctn:{css:Et ["sa-img-ctn"]},richClass:Et["sa-rich-thumb"],showIconOnImgLoad:!0},saGroup:{hdr:{css:Et["sa-grp-hdr"]}, title:{css:Et["sa-grp-hdr-title"]},grps:{m9:{text:"Tendenze attuali",css:Et.trending},m13:{text:"",css:Et .history}}}}},Lt={plugins:{saAnnot:{title:{css:Et["sa-annot-title"]},sottotitolo:{css:Et["sa-annot-subtitle"]} ,richClass:Et["sa-annot-rich"],markers:{m27:{type:"intrattenimento"},m32:{type:"volo"},m44:{type:"vacanze"},m53:{ type:"currency"},m54:{type:"unit"}}},saWeather:{enableHL:!0},saSport:{enableNewLeagueTmpl:!0,maxLen:40},saStock:{icon:"sa-stk -icon",billboard:!0,k_tmpl:'{0} · {1}',fd_tmpl:'{0}{3} ({4})'},saFlightStatus:{enabled:!0},saCurrencyConverter:{enabled:!0},saUnitConverter:{enabled:!0}}},St={plugins:{saAnnot:{title:{css:Et["sa -annot-title"]},sottotitolo:{css:Et["sa-annot-subtitle"]},richClass:Et["sa-annot-rich"],markers:{m27:{type:"intrattenimento"} ,m32:{tipo:"volo"},m44:{tipo:"vacanza"},m53:{tipo:"valuta"},m54:{tipo:"unità"}}},saWeather:{enableHL:!0 },saSport:{enableNewLeagueTmpl:!0,maxLen:60},saStock:{icon:"sa-stk-icon",billboard:!0,k_tmpl:'{0} · {1}',fd_tmpl:'{0}{3} ({4})'},saFlightStatus:{enabled:!0},saCurrencyConverter:{enabled:!0},saUnitConverter:{enabled:!0}}},At=function(e){var t=new RegExp("[?&] "+e+"=([^]*)").exec(window.location.search);return t?t[1]:null},Tt=function(e,t,n){var i=e. querySelectorAll(t);if(i)for(var o=0;o=0?(a="srch-asst",l=!0,c=s.idx+1):a="kybrd":a="botSearchClicked"===e.type?"sitesrch":"icon",r||l){var u=g(s),p=u.category,h=u.keyword;Nt(t,o,l,p,h),"homepage"===i||"my"===i?(It(t,r,l,p),Mt(t,l)):"smartphone"===o&&Mt(t,l)}x(Bt(a,"0",c.toString()))}},_=function(e){var n,a=!!document.querySelector(".modal-open"),r=null===(n=e.detail)||void 0===n?void 0:n.data,s=!0,c=(r&&r.idx||0)+1,l=g(r),u=l.category,d=l.keyword,p=l.marker;Nt(t,o,s,u,d,p),"homepage"===i||"my"===i?(It(t,a,s,u),Mt(t,s)):"smartphone"===o&&Mt(t,s),x(Bt("srch-asst","0",c.toString()))},w=function(e){if("function"==typeof n.beaconClick&&9!==e.keyCode&&13!==e.keyCode&&1===m&&"smartphone"!==o){n.saveCurrentTimerValue("search_input_keyboard_input");var t=Bt("keystroke","1");delete t.clickParams.tar,m++,n.beaconClick(t.sec,t.slk,t.pValue,t.clickParams)}},E=function(){n.saveCurrentTimerValue("search_input_focus_click"),"smartphone"===o&&t.addEventListener("click",(function(){if(e){if(e.classList.contains("ybar-searchbox-assist-fullscreen"))return;e.classList.add("ybar-searchbox-assist-fullscreen")}if(!document.documentElement.classList.contains("ybar-overlay")){document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");"function"==typeof n.beaconClick&&n.beaconClick("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"})}}))},x=function(e){if("function"==typeof n.beaconClick){n.saveCurrentTimerValue("search_query_submit");var i={pp:{A_utm:n.getPerformanceI13nObject()}};n.beaconClick(e.sec,e.slk,e.pValue,e.clickParams,void 0,(function(){setTimeout((function(){t&&t.submit()}),300)}),i)}else t&&t.submit()};function C(){this.config={botSearch:{action:p,text:f||""},suggestionTitle:{text:h||""}}}function k(e){var t=this.config,n=this.app.view,i=n.elems.sbForm,o=n.elems.sbInput.value,a=function(e,t){if(t){var n=document.createElement("div");n.className=e["suggestion-title"];var i=document.createElement("span"),o=document.createElement("span");return o.textContent=t,i.appendChild(o),n.appendChild(i),n}}(Et,t.suggestionTitle.text),r=function(e,t,n){var i=document.createElement("div");i.className=n["bot-search-item"];var o=document.createElement("div"),a=document.createElement("div");o.className=n["bot-search-item-col"],a.className=n["bot-search-item-col"];var r=document.createElement("div");r.className=n["bot-search-icon-container"];var s=document.createElementNS("http://www.w3.org/2000/svg","svg"),c=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("width","20"),s.setAttribute("height","20"),s.setAttribute("viewBox","0 0 24 24"),s.classList.add(n["bot-search-icon"]),c.setAttribute("d","M3.7634,15.837 L6.1814,15.837 C6.5214,17.45 7.0614,18.891 7.7584,20.045 C6.0094,19.118 4.6024,17.637 3.7634,15.837 L3.7634,15.837 Z M2.9144,12.008 C2.9144,11.351 2.9844,10.711 3.1164,10.094 L5.8884,10.094 C5.8264,10.717 5.7864,11.354 5.7864,12.008 C5.7864,12.663 5.8264,13.299 5.8884,13.922 L3.1164,13.922 C2.9844,13.305 2.9144,12.665 2.9144,12.008 L2.9144,12.008 Z M7.7584,3.971 C7.0614,5.125 6.5214,6.566 6.1814,8.179 L3.7634,8.179 C4.6024,6.379 6.0094,4.898 7.7584,3.971 L7.7584,3.971 Z M11.0504,3.142 L11.0504,8.179 L8.1054,8.179 C8.6604,5.664 9.7414,3.771 11.0504,3.142 L11.0504,3.142 Z M12.9654,3.142 C14.2754,3.771 15.3564,5.664 15.9114,8.179 L12.9654,8.179 L12.9654,3.142 Z M20.2524,8.179 L17.8344,8.179 C17.4954,6.566 16.9544,5.126 16.2574,3.971 C18.0064,4.898 19.4144,6.379 20.2524,8.179 L20.2524,8.179 Z M11.0504,20.875 C9.7414,20.245 8.6594,18.352 8.1054,15.837 L10.1354,15.837 C10.2104,15.161 10.3914,14.519 10.6584,13.922 L7.7984,13.922 C7.7354,13.305 7.7004,12.665 7.7004,12.008 C7.7004,11.351 7.7354,10.711 7.7984,10.094 L11.0504,10.094 L11.0504,13.184 C11.5394,12.388 12.1904,11.702 12.9654,11.183 L12.9654,10.094 L20.8994,10.094 C21.0284,10.697 21.0964,11.323 21.0994,11.964 L21.0994,11.964 L21.0994,12.661 C21.0994,13.19 21.5284,13.618 22.0574,13.618 L22.0584,13.618 C22.5874,13.618 23.0164,13.19 23.0164,12.661 L23.0164,11.965 L23.0144,11.965 C22.9904,5.662 17.6704,0.608 11.2724,1.024 C5.8994,1.373 1.4994,5.676 1.0414,11.04 C0.5134,17.228 5.1074,22.463 11.0504,22.975 C11.1664,22.985 11.3274,22.993 11.4844,22.999 C11.8104,23.012 12.1194,22.85 12.2904,22.572 L12.2924,22.569 C12.5734,22.113 12.3964,21.514 11.9124,21.284 L11.0504,20.875 Z M15.9434,18.874 C14.6054,18.874 13.5214,17.79 13.5214,16.452 C13.5214,15.115 14.6054,14.03 15.9434,14.03 C17.2804,14.03 18.3654,15.115 18.3654,16.452 C18.3654,17.79 17.2804,18.874 15.9434,18.874 M21.6354,20.908 L19.4524,18.725 C19.8774,18.07 20.1264,17.291 20.1264,16.452 C20.1264,14.145 18.2584,12.274 15.9514,12.269 L15.9354,12.269 C13.6284,12.274 11.7604,14.145 11.7604,16.452 C11.7604,18.763 13.6324,20.635 15.9434,20.635 C16.7814,20.635 17.5614,20.386 18.2154,19.961 L20.3984,22.144 C20.7404,22.486 21.2934,22.486 21.6354,22.144 C21.9774,21.803 21.9774,21.249 21.6354,20.908"),s.appendChild(c),r.appendChild(s),o.appendChild(r);var l=document.createElement("span"),u=document.createElement("span");u.className=n["bot-search-span"];var d=document.createElement("span"),p=e.split("{query}");return l.textContent=p[0]||"",u.textContent=t,d.textContent=p[1]||"",a.appendChild(l),a.appendChild(u),a.appendChild(d),i.appendChild(o),i.appendChild(a),i}(t.botSearch.text,o,Et);r&&(e&&a&&(e.prepend(a),e.appendChild(r)),r.addEventListener("click",(function(){t.botSearch.action&&(i.action=t.botSearch.action),n.hide(),b(new CustomEvent("botSearchClicked"))})))}function L(){this.config={}}function S(){""===this.app.view.lastInput&&(window.location.href="https://search.yahoo.com/search?p=what+to+watch&fr=yfp-sb-w2w&fr2=p%3Afp%2Cm%3Asb%2Cct%3Aw2w")}d&&(d&&(d.addEventListener("enterKeyPressed",b),d.addEventListener("assistSelectionClicked",_),d.addEventListener("searchBtnClicked",b),d.addEventListener("keydown",w),d.addEventListener("click",E)),"homepage"!==i&&"my"!==i||(It(t),"homepage"===i&&function(e){var t=At("type");if(t)if(e.querySelectorAll('input[name="type"]').length)Tt(e,'input[name="type"]',t);else{var n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name","type"),n.setAttribute("value",t),e.appendChild(n)}}(t)),n.saveCurrentTimerValue("search_assist_ready")),C.prototype={init:function(e){this.app=e,e.on("after_update_list",k,this)}},p&&(null===(l=window.YAHOO.SA)||void 0===l||l.add("saBotSearch",C)),L.prototype={init:function(e){var t=this;t.app=e,e.on("before_button_submit",S,t),e.on("before_key_submit",S,t)}};var A=function(e){var t;return null===(t=window.localStorage)||void 0===t?void 0:t.setItem(Rt,e)};(function(e){var t=new Date;if(!0!==c&&(null===e||!function(e){var t=v(e.toLocaleTimeString("en-US",{hour12:!1,timeZone:"America/Los_Angeles",hour:"numeric",weekday:"narrow"}).split(", "),2),n=t[0],i=t[1],o=parseInt(i);return("S"===n||"F"===n)&&o>=14&&o<=20}(t)))return!1;var n=t.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"America/Los_Angeles"}).split("/"),i=parseInt("".concat(n[2]).concat(n[0]).concat(n[1])),o=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(Rt)}();if(null===o||!0===c)return A("".concat(i,",1")),!0;var a=v(o.split(","),2),r=a[0],s=a[1],l=parseInt(r),u=parseInt(s);return!Number.isNaN(i)&&!Number.isNaN(l)&&i>l?(A("".concat(i,",1")),!0):!Number.isNaN(u)&&2>u&&(A("".concat(i,",2")),!0)})(r)&&(d&&""!==s&&d.setAttribute("placeholder",s),t.classList.add("ybar-enable-watch-to-watch"),null===(u=window.YAHOO.SA)||void 0===u||u.add("saWTW",L))};me("ybar-mod-assistjs",(function(e){var t,n=document.getElementById("ybar-sf"),i=document.getElementById("ybar-w2w-list"),o=null;if(n&&"true"===n.getAttribute("data-saEnabled")){var a={ybar:document.getElementById("ybar"),searchBox:n,searchInput:document.getElementById("ybar-sbq"),searchBoxBackButton:document.getElementById("ybar-search-back-btn")},r=e.getConfig(),s=xt,c=!!r.bucketConfig.enable_search_ui,l=!!r.bucketConfig.assist_billboard_v2;if(c){var u="smartphone"===r.device?kt:Ct,d=n.getAttribute("data-tn-title");if(d&&(null===(t=null==u?void 0:u.plugins)||void 0===t?void 0:t.saGroup)&&Object.assign(u.plugins.saGroup,{grps:{m9:{text:d}}}),l){var p="smartphone"===r.device?Lt:St;(null==u?void 0:u.plugins)&&Object.assign(u.plugins,p.plugins)}s=h(h(h({},xt),u),{plugins:h(h({},xt.plugins),u.plugins)})}i&&!0===r.bucketConfig.enable_what_to_watch&&((o=i.cloneNode(!0)).removeAttribute("id"),o.removeAttribute("style")),function(e,t,n,i,o,a,r){var s,c,l=t.searchBox.getAttribute("data-appid"),u=t.searchBox.getAttribute("data-pubid");if(window.YAHOO&&window.YAHOO.SA){"attgoog"===l&&(n.saBE.params.appid="attgoog"),u&&""!==u&&(n.saBE.params.pubid=u),n.saBE.host=a?t.searchBox.getAttribute("data-fastbreak"):t.searchBox.getAttribute("data-sabase");var d=t.searchBox.dataset.sacrumb,p=t.searchBox.dataset.sabcrumb,h=t.searchBox.dataset.mtestid;d&&(n.saBE.params[".crumb"]=d),p&&n.shBE&&(n.shBE.params._bcrumb=p),h&&(n.saBE.params.mtestid=h);var f=e.getConfig();Ot(t.ybar,t.searchBox,{beaconClick:J,saveCurrentTimerValue:ie,getPerformanceI13nObject:oe},i,o,a,r,(null===(s=null==f?void 0:f.bucketConfig)||void 0===s?void 0:s.placeholder)||"",(null===(c=null==f?void 0:f.bucketConfig)||void 0===c?void 0:c.force_what_to_watch)||!1),window.YAHOO.SA.init(n)}else{var m="Search lib not found. SearchAssist failed to initialise";e.logError(m,new Error(m))}}(e,a,s,r.property,r.device,c,o)}}));var Pt="_yb_16bda",qt="_yb_1v5jw",Dt="_yb_1hanr",Ht="_yb_16axa";me("ybar-mod-navigation",(function(e){var t={moreDropDown:document.querySelector(".".concat(Pt)),moreBtn:document.querySelector(".".concat(qt)),wrap:document.querySelector(".".concat(Ht))},n=function(e){var t=e.moreDropDown,n=e.moreBtn,i=e.wrap,o={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};t&&n&&i&&t.classList.contains("".concat(Pt))&&(t.classList.remove("".concat(Pt)),i.classList.add("".concat(Dt)),n.setAttribute("aria-expanded","true"),o.elm="expand",J("ybar",o.slk,"",o))},i=function(e){var t=e.moreDropDown,n=e.moreBtn,i=e.wrap,o={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};t&&n&&i&&(t.classList.contains("".concat(Pt))||(t.classList.add("".concat(Pt)),i.classList.remove("".concat(Dt)),n.setAttribute("aria-expanded","false"),J("ybar",o.slk,"",o)))};t.moreBtn&&(e.addElementListener(t.moreBtn.parentNode,"focusin",(function(){n(t)})),e.addElementListener(t.moreBtn.parentNode,"focusout",(function(){i(t)})),e.addElementListener(t.moreBtn,"mouseover",(function(){n(t)})),e.addElementListener(t.moreBtn.parentNode,"mouseleave",(function(){i(t)}))),e.onDestroy((function(){i(t)})),window.addEventListener("keyup",(function(e){27===e.keyCode&&i(t)}))}));var Ut,Ft,jt,Yt={chevron:"_yb_lkaav","accounts-container":"_yb_1fo0o","accounts-list":"_yb_1o6ec","signed-in-mark":"_yb_b6imv","uh3-layout":"_yb_12tuk",expanded:"_yb_1j5ob",mobile:"_yb_13ds1",show:"_yb_1x873","sign-in-menu":"_yb_1g92c","signed-in":"_yb_162la","signed-out":"_yb_6bily","signedout-text":"_yb_usiy5","notification-container":"_yb_3kxa3","pfs-container":"_yb_1imnw","pfs-iframe":"_yb_1f6s9","ybar-account-img-signed-out":"_yb_74g4j","ybar-account-menu":"_yb_8y1hl","ybar-account-menu-item-signed-out":"_yb_pglpq","ybar-account-user-email":"_yb_1k57d","ybar-account-user-email-other":"_yb_w3k97","ybar-account-user-name":"_yb_1f6x5","ybar-account-user-signedout":"_yb_9p1l9","ybar-account-yahoo-plus-imp":"_yb_q0jtv","ybar-icon-arrow":"_yb_rehh9","ybar-icon-arrow-down":"_yb_1vpg3","ybar-icon-arrow-up":"_yb_1wlbp","ybar-icon-image-wrapper":"_yb_1fd4m","ybar-item-hidden":"_yb_1j9jp","ybar-login-btn":"_yb_okmsi","ybar-mod-account":"_yb_1dwhl","ybar-mod-mail":"_yb_1nkz4","ybar-see-info":"_yb_1nv3g","ybar-sign-out":"_yb_1j89w","ybar-sign-out-text":"_yb_1jtkt","ybar-user-accounts-list":"_yb_h4ao2","ybar-user-profile-img":"_yb_1wr8i","ybar-profile-character":"_yb_1fd51","account-status-container":"_yb_1pjpf",current:"_yb_ak3bo","greetings-container":"_yb_1nu4d",multiple:"_yb_15iz4"},Gt=function(e,t){return void 0===t&&(t={}),f(void 0,void 0,void 0,(function(){return m(this,(function(n){return[2,new Promise((function(n,i){var o=new XMLHttpRequest;if(o.open("string"==typeof t.method?t.method:"GET","string"==typeof e?e:e.url,!0),"object"==typeof t.headers){var a=t.headers;for(var r in a)o.setRequestHeader(r,a[r])}o.withCredentials="include"===t.credentials,o.onreadystatechange=function(){4===o.readyState&&n({ok:o.status>=200&&o.status<=299,status:o.status,text:function(){return Promise.resolve(o.responseText)},json:function(){return new Promise((function(e,t){try{e(JSON.parse(o.responseText))}catch(e){t(e)}}))}})},o.send(t.body)}))]}))}))},zt=function(e,t){return void 0===t&&(t={}),("function"==typeof window.fetch?fetch:Gt)(e,t)},Wt=function(e,t){var n=e.url,i=e.headers,o=void 0===i?{}:i;return o["X-Requested-With"]="XMLHttpRequest",zt(n,{headers:o,credentials:"include"}).then((function(e){return e.text().then((function(n){!function(e,t){if(200!==e.status){var n=new Error("Request failed with status: "+e.status);n._meta={status:e.status},e.ymreqid&&(n._meta={ymreqid:e.ymreqid}),t(n)}else{var i=null;try{i=JSON.parse(e.responseText)}catch(e){var o=new Error("Error parsing responseText");return o._meta={originalError:e},void t(o)}t(null,i)}}({status:e.status,responseText:n},t)}))}))};Ut="ybar",jt={createHTML:function(e){return e}},void 0!==(Ft=window.trustedTypes)&&void 0!==Ft.createPolicy&&window.trustedTypes.createPolicy(Ut,jt);var Vt,Kt=function(e,t,n){var i,o=n.ybarAccMenuItemTemplate,a=n.crumb;if(o){var r=(t+1).toString(),s=o.getAttribute("data-signedOutState"),c=o.getAttribute("data-signedInState")||"",l=o.getAttribute("data-done")||"",u=function(e){if("content"in e)return e.content.cloneNode(!0);for(var t=document.createDocumentFragment(),n=0;n=0;--t){e[t]=(o=void 0,(o={fn:(i=e[t]).fn||"",ln:i.ln||"", em:i.em||"",alias:i.alias||"",imageUrl:i.imageUrl,state:i.state,fullName:null,identifier:""}).fullName=ue(o.fn ,o.ln)?[o.ln,o.fn].join(""):[o.fn,o.ln].join(" "),o.identifier=o.em||o.alias ,o);var n=e[t].state;0!==n&&"0"!==n||(window.YBAR&&window.YBAR.setUserEmail(e[t].em),Vt=e[t ],e.splice(t,1)[0])}var i,o;return e}(o.users);t.isUH3Layout&&Vt&&s.length>0&&(s.unshift(Vt),t.chevron&&t.chevron. classList.remove("nascondi"),t.greetingsContainer&&t.greetingsContainer.classList.add(Yt.multiple));for(var c=document.querySelector(".".concat(Yt["ybar-user-accounts-list "]))||document.querySelector(".".concat(Yt["elenco-account"])),l=funzione(n){var i=Kt(s[n],n,t);i&& (null==c||c.appendChild(i)),e.onDestroy((function(){i&&(null==c||c.removeChild(i))}))},u=0;u0){var d=document.querySelector("".concat(r," .").concat(Yt["ybar-sign-out"])),p=d&&d.getAttribute("data-soa"), h=document.querySelector("".concat(r," .").concat(Yt["ybar-sign-out-text"]));if(h&&p&&(h.innerText=p),a&&a.classList. add(Yt.show),n){var f=document.querySelector("".concat(r," ").concat(Yt["ybar-icon-arrow"])),m=Yt["ybar- icona-freccia-su"],v=Yt["ybar-icona-freccia-giù"],y=Yt["ybar-elemento-nascosto"],g=document.querySelectorAll(".".concat(Yt[ "ybar-item-hidden"]));f&&(f.classList.toggle(v),e.addElementListener(f,"click",(function(){for(var e=0;e3){var b=document.querySelector("".concat(r," .").concat(Yt["ybar-see-info"]));b&&b.style&&(b.style.display="block" )}Jt(t,e)}}))}},Xt=funzione(e,t,n){var i,o,a,r,s,c={},l=e.getConfig(), u=new URLSearchParams({activity_p:"ybar"}),d=null,p="https://pfs.yahoo.com",h=function(e){for(var t=e.split("; "),n=nuova mappa,i=0;i567?567:e},y=function(){document.body.removeEventListener("focusin",y,!1),document.body.removeEventListener("click",y,!1),d&&(d.style.height="0",d.style.visibility="hidden")},g=function(){setTimeout((function(){var e;if(null===(e=document.activeElement)||void 0===e?void 0:e.classList.contains(n))return document.body.addEventListener("focusin",y,!1),void document.body.addEventListener("click",y,!1);y()}),500)},b=function(){d&&(d.style.visibility="visible",f("resize",{height:m()}))},_=function(){null===d&&((d=document.createElement("iframe")).src="".concat(p,"/?").concat(u.toString()),d.scrolling="no",d.setAttribute("style","visibility:hidden;height: 0;"),d.sandbox.add("allow-forms"),d.sandbox.add("allow-scripts"),d.sandbox.add("allow-same-origin"),d.sandbox.add("allow-popups"),d.classList.add(n),d.addEventListener("load",(function(){setTimeout((function(){var n;i&&o||(e.triggerEvent("ybar-pfs-init-failure"),null===(n=null==d?void 0:d.parentNode)||void 0===n||n.removeChild(d),t.ybarAccountContainer&&t.ybarAccountContainer.setAttribute("data-pfs","err"))}),500)})),t.loggedInUserElement&&(t.loggedInUserElement.appendChild(d),e.addElementListener(t.loggedInUserElement,"mouseleave",g),e.addElementListener(t.loggedInUserElement,"blur",g),t.ybarAccountMenu&&(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",b),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",b))))};if(t.ybarAccountMenu){if(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",_,{once:!0}),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",_,{once:!0}),e.onDestroy((function(){y(),d=null})),t.ybarAccountContainer)"false"===t.ybarAccountContainer.getAttribute("data-prod")&&(p="https://stage.pfs.yahoo.com"),u.set("intl","us"),u.set("src",l.property),u.set("lang",l.locale),u.set("theme",(a="light",r=document.documentElement,null!==(s=r.getAttribute("data-color-theme-enabled"))&&"false"!==s&&(a="dark"===r.getAttribute("data-color-scheme")?"dark":"auto"),a)),u.set("done",window.location.href),u.set("pspid",se());window.addEventListener("message",(function(e){if(e.origin===p){var t=function(e){var t={cmd:"noop",params:{height:"0px",url:"","data-ylk":""}};try{t=JSON.parse(e)}catch(e){return}return t}(e.data);if(null!==d&&(null==t?void 0:t.cmd)&&e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker))switch(t.cmd){case"iframeready":i=e.origin,o=e.source,f("initialize",{height:m(),maxAccounts:3,enableAnimations:!0,animationDuration:"500ms",animationTimingFunction:"ease-in-out"});break;case"hide":case"hide-for-animation":d.style.height="0";break;case"show":case"resize":d.setAttribute("style","height:"+t.params.height);break;case"redirect":c=h(t.params["data-ylk"]),J("ybar",c.slk||"account","",c),window.location=t.params.url;break;case"popup":c=h(t.params["data-ylk"]),J("ybar",c.slk||"account","",c),window.open(t.params.url,"_blank")}}}))}},$t=null,en=!0,tn=0,nn={ybarAccountImage:{selector:"ybar-account-img",size:"64"},ybarCurrentUserProfileImage:{selector:"ybar-current-user-profile-img",size:"128"},ybarUserProfileImage:{selector:"ybar-user-profile-img",size:"128"}},on=function(e,t){var n=t.ybarAccountContainer,i=t.ybarAccountMenu,o=t.ybarMobile,a=t.ybarMenuManagePub,r=t.signInAccountMenu,s=t.signInBtn,l=t.ybarModAccount,u=t.yahooPlusImpression,d=t.chevron,p=t.accountsContainer;new Fe(e,{containerElm:t.ybarAccountContainer,isUserAccountNavigation:!0,loggedInUser:t.loggedInUser,loggedInUserElement:t.loggedInUserElement});var h=function(i){if(n)n.style.removeProperty("display"),"false"===n.getAttribute("data-enabled")&&(n.style.display="none"),Jt(t,e);else{var o=new Error("ybarAccountContainer not Found");c("ERROR:",o)}n&&en&&(en=!1,e.onDestroy((function(){en=!0})),Qt(e,t,i))},f=function(){var e,t;0===tn&&(tn=1,null===(e=null==i?void 0:i.parentNode)||void 0===e||e.removeEventListener("mouseenter",f),null===(t=null==i?void 0:i.parentNode)||void 0===t||t.removeEventListener("focusin",f),setTimeout((function(){Q()}),500))},m=function(){null==n||n.classList.add("ybarMenuOpen"),null==i||i.setAttribute("aria-expanded","true")},v=function(){null==n||n.classList.remove("ybarMenuOpen"),null==i||i.setAttribute("aria-expanded","false")},y=function(){if(u&&!u.getAttribute("src")&&u.getAttribute("data-src")){var t=u.getAttribute("data-src")||"";We(t).then((function(e){null===$t&&(($t=document.createElement("iframe")).src="https://s.yimg.com/jk/gtm/gtm_ns.html?id=GTM-NVQTVCX&type=yahoo&cat=ybarimp1",$t.sandbox.add("allow-scripts"),$t.sandbox.add("allow-same-origin"),$t.height="0",$t.width="0",$t.referrerPolicy="origin",$t.style.display="none",$t.style.visibility="hidden",document.body.appendChild($t)),u.setAttribute("src",e)})),e.onDestroy((function(){u.setAttribute("src",""),$t=null}))}};s&&(function(e,t,n,i,o){e.addElementListener(t,"mouseenter",(function(){var e=JSON.stringify({sec:n,slk:i,params:o});we[e]||(we[e]=!0,J(n,i,"",o),setTimeout((function(){delete we[e]}),1e3))}))}(e,s,"ybar","sign-in",{elm:"signin",subsec:"settings",itc:"2"}),Jt(t,e));var g=function(){h(!1),e.addEventListener("close-all-menus",(function(){r&&r.classList.contains(Yt.show)&&r.parentNode&&!_e(r.parentNode)&&v()})),p&&d&&e.addElementListener(d,"click",(function(){p.classList.contains("hide")?(d.classList.add(Yt.expanded),p.classList.remove("hide")):(d.classList.remove(Yt.expanded),p.classList.add("hide"))})),e.onDestroy((function(){v()})),i&&(i.onchange=function(){e.triggerEvent("close-all-menus")},{itc:"2",elm:"menu",elmt:"user-info",subsec:"accounts"},l&&(e.addElementListener(l,"mouseenter",y),e.addElementListener(l,"focus",y)),i&&i.parentNode&&(e.addElementListener(i.parentNode,"mouseenter",f),e.addElementListener(i.parentNode,"focusin",f)),Ee("#ybarAccountMenu","#ybarAccountMenu + label",e)),e.addElementListener(l,"focusin",m),e.addElementListener(l,"focusout",v),e.addElementListener(a,"click",v)};if(i||o||r){if(o)h(!0);else{if(n&&"true"===n.getAttribute("data-pfs"))return Xt(e,t,Yt["pfs-iframe"]),void e.addEventListener("ybar-pfs-init-failure",(function(){var e;null===(e=t.ybarAccountMenuBody)||void 0===e||e.classList.remove(Yt["pfs-container"]),g();J("ybar","pfs-load-failure","",{elm:"btn",subsec:"profile",itc:"1"})}));g()}Object.keys(nn).forEach((function(e){var t=nn[e],n=document.querySelector(".".concat(Yt[t.selector]));n&&(n.onerror=function(){var e,i,o;e=t.size,o="https://s.yimg.com/wm/modern/images/default_user_profile_pic_"+e+".png",(i=n).onerror=null,i.srcset="",i.src=o})}))}};me("ybar-account-init",(function(e){var t=document.getElementById("ybarAccountContainer"),n={ybarAccountContainer:t,ybarAccountMenu:document.getElementById("ybarAccountMenu"),loggedInUser:document.querySelectorAll("#ybarAccountProfile"),loggedInUserElement:document.getElementById("ybarAccountProfile"),ybarMobile:document.querySelector(".".concat(Yt.mobile," .").concat(Yt["ybar-account-user-email"])),ybarMenuManagePub:document.getElementById("ybarMenuManagePub"),signInAccountMenu:document.querySelector(".".concat(Yt["ybar-mod-account"]," .").concat(Yt["sign-in-menu"])),signInBtn:document.querySelector(".".concat(Yt["ybar-mod-account"]," .").concat(Yt["ybar-login-btn"])),ybarModAccount:document.querySelector(".".concat(Yt["ybar-mod-account"])),yahooPlusImpression:t&&t.querySelector(".".concat(Yt["ybar-account-yahoo-plus-imp"])),crumb:document.querySelector('input[name="crumb"]'),ybarAccMenuItemTemplate:document.getElementById("ybarAccMenuItemTemplate"),isUH3Layout:!!document.querySelector(".".concat(Yt["uh3-layout"])),chevron:document.querySelector(".".concat(Yt.chevron)),accountsContainer:document.querySelector(".".concat(Yt["accounts-container"])),greetingsContainer:document.querySelector(".".concat(Yt["greetings-container"])),ybarAccountMenuBody:document.getElementById("ybarAccountMenuBody")};on(e,n)}));var an,rn,sn={"popover-body":"_yb_cwa9y","ybar-mail-link":"_yb_1bs2k","ybar-mail-preview":"_yb_1lo9k","ybar-mail-signin-link":"_yb_yw77z","ybar-mod-mail":"_yb_9iu8r","ybar-mod-mail-promo-imp":"_yb_ffosi","ybar-large-unread":"_yb_stbri","ybar-mail-indicator":"_yb_n446c"};!function(e){e[e.COUNT=0]="COUNT",e[e.PREVIEW=1]="PREVIEW"}(an||(an={})),function(e){e[e.PENDING=0]="PENDING",e[e.COMPLETE=1]="COMPLETE"}(rn||(rn={}));var cn=new Map,ln=function(){function e(){}return Object.defineProperty(e.prototype,"wssid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.wssid;return n||(n=(null===(t=document.querySelector('input[name="mail_wssid"]'))||void 0===t?void 0:t.value)||"",this.wssid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.wssid=e||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.appid;return n||(n=(null===(t=document.querySelector('input[name="mail_appid"]'))||void 0===t?void 0:t.value)||"",this.appid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.appid=e||""},enumerable:!1,configurable:!0}),e.prototype.fetchCount=function(e){return f(this,void 0,void 0,(function(){var t,n,i,o=this;return m(this,(function(a){return t=function(e){var t=cn.get(e);if(t){if(t.status===rn.PENDING)return t.promise;var n=Date.now()-12e4;return t.data&&t.lastRequested>n?Promise.resolve(t.data):void 0}}(an.COUNT),!e&&t?[2,t]:(1,n={data:{responseType:"json",requests:[{id:"GetMailboxId",uri:"/ws/v3/mailboxes/",method:"GET",filters:{select:{mailboxId:"$..mailboxes[?(@.isPrimary==true)].id"}},suppressResponse:!0,requests:[{id:"ListDecos",uri:"/ws/v3/mailboxes/@.id==$(mailboxId)/decos",method:"GET"}]}]}},i=this._fetch(n,1,(function(e){var t=o._normalizerCountResponse(e);return function(e,t){var n={lastRequested:Date.now(),status:rn.COMPLETE,promise:Promise.resolve(t),data:t};cn.set(e,n)}(an.COUNT,t),t})),r=an.COUNT,s=i,c={lastRequested:Date.now(),status:rn.PENDING,promise:s},cn.set(r,c),[2,i]);var r,s,c}))}))},e.prototype._fetch=function(e,t,n){var i,o;return f(this,void 0,void 0,(function(){var a,r,s,l,u,d,p,f,v,y,g,b,_,w,E,x;return m(this,(function(m){switch(m.label){case 0:if(a=e.data,r=void 0===a?{}:a,s=e.params,l=void 0===s?{}:s,u="EC-4008",d="EC-4003",p=this._getYmreqid(),!this.appid)throw new Error("No appId, user is logged out");f=h({appId:this.appid},l),this.wssid&&(f.wssid=this.wssid),e.params=f,v=[],Object.keys(f).forEach((function(e){var t=f[e];t&&v.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t)))})),y=v.length?"?".concat(v.join("&")):"",g="https://apis.mail.yahoo.com/ws/v3/batch".concat(y),m.label=1;case 1:return m.trys.push([1,4,,5]),[4,zt(g,{method:"POST",body:JSON.stringify(r),credentials:"include",headers:{"Content-Type":"application/json","X-Oath-YmReqId":p}})];case 2:return[4,(b=m.sent()).json()];case 3:if(_=m.sent(),b.ok)return[2,n(null===(o=_.result)||void 0===o?void 0:o.responses)];if((w=null===(i=null==_?void 0:_.error)||void 0===i?void 0:i.code)===d)return[2,this._handleWssidApiError(_,e,t,n)];throw w===u?new Error("Session has expired"):new Error("Mail Api Responded with an Error");case 4:throw E=m.sent(),c("JWS: ".concat((x=E).message),x),E;case 5:return[2]}}))}))},e.prototype._normalizePreviewResponse=function(e,t){var n,i,o,a=this,r=(void 0===t?{}:t).maxMessages,s=void 0===r?4:r;return e?((null===(o=null===(i=null===(n=null==e?void 0:e[0])||void 0===n?void 0:n.response)||void 0===i?void 0:i.result)||void 0===o?void 0:o.messages)||[]).map((function(e){return a._parseRawMessage(e)})).filter((function(e,t){return!!(e&&t0)return n-=1,this.wssid=r,this._fetch(t,n,i);lancia nuovo errore("Numero massimo di tentativi raggiunti con WSSID non valido")}lancia nuovo errore("WSSID valido mancante dalla risposta API ")},e.prototype._parseRawMessage=function(e){var t,n,i,o,a,r,s=e.id,c=e.snippet,l=e.headers,u=e. flags;return(null==l?void 0:l.date)&&(null===(t=null==l?void 0:l.from)||void 0===t?void 0:t [0])?{from:(null===(i=null===(n=l.from)||void 0===n?void 0:n[0])||void 0== =i?void 0:i.nome)||"",email:(null===(a=null===(o=l.from)||void 0===o?void 0:o[ 0])||void 0===a?void 0:a.email)||"",oggetto:null==l?void 0:l.oggetto,leggi:null!==(r=null== u?void 0:u.read)&&void 0!==r&&r,mid:s,date:parseInt(l.date,10)||void 0,snippet:c||""}:null},e.prototype ._getYmreqid=funzione(){var e=(nuova data).getTime();return"xxxxxxxx-xxxx-xxxx-09xx-xxxxxxxxxx00".replace(new RegExp("x","g"),(funzione() {var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),t.toString(16)}))},e}(),un= function(e){var t,n;null===(t=e.mailPreview)||void 0===t||t.classList.add("ybarMenuOpen"),null===(n=e .mailLink)||void 0===n||n.setAttribute("aria-expanded","true")},dn=function(e){var t,n;null===(t=e. mailPreview)||void 0===t||t.classList.remove("ybarMenuOpen"),null===(n=e.mailLink)||void 0===n||n.setAttribute("aria -expanded","false")},pn=function(e,t,n){var i=t.mailUnread,o=t.mailUnreadSpan,a=t.mailIndicator;n.fetchCount().then((funzione (t){if(i&&t>0){if(i.style.visibility="visible",a&&(a.style.visibility="visible"),o){var n=t>99;o.textContent= n?"99+":t+"",n&&i.classList.add("".concat(sn["ybar-large-unread"]))}e.onDestroy((function(){i.style.visibility= "hidden",a&&(a.style.visibility="hidden"),o&&(o.textContent="")}))}})).catch((function(){}))};me("ybar -mail-init",(function(e){var t=document.getElementById("ybarUnread");!function(e,t){var n=t.mailModule,i=t.mailLink,o=t.mailSigninLink ,a=t.mailPreview;if(n){var r=new ln;if(e.addElementListener(n,"mouseenter",(function(){e.triggerEvent("close-all-menus")})) ,e.addEventListener("chiudi-tutti-i-menu",(funzione(){_e(n)||dn(t)})),e.addElementListener(a,"focusin",(funzione(){un(t )})),e.addElementListener(a,"focusout",(function(){dn(t)})),e.onDestroy((function(){dn(t)})),o){var s =i.getAttribute("data-redirect-params");if(s&&""!==s){var c=i.href;e.onDestroy((function(){i.href=c})), s=-1!==i.href.indexOf("&activity=ybar-")?"":s.replace(/\[\[pspid\]\]/,se()),i.href=le (i.href)+s,(null==o?void 0:o.href)&&(o.href=le(o.href)+s)}}else pn(e,t,r)}}( e,{mailModule:document.querySelector(".".concat(sn["ybar-mod-mail"])),mailIndicator:document.querySelector(".".concat(sn["ybar-mail-indicator"] )),mailLink:document.querySelector(".".concat(sn["ybar-mail-link"])),mailSigninLink:document.querySelector(".".concat(sn["ybar-mail-signin-link "])),mailUnread:t,mailUnreadSpan:null==t?void 0:t.querySelector("span"),mailPreview:document.getElementById("ybarMailPreview"),popoverBody:document.querySelector(".".concat (sn["popover-body"].split(" ").join("."))),mailPreviewPopover:document.querySelector(".".concat(sn["ybar-mail-preview"].split( " ").join(".")," .").concat(sn["popover-body"].split(" ").join(".")))})}));var hn, fn="_yb_1es52",mn="_yb_uz5qk",vn="_yb_hw9io",yn="_yb_4a1uc",gn="_yb_15pwq",bn="_yb_1jilu",_n="_yb_1hqxb",wn="_yb_1h7tj",En= "_yb_bdo33",xn="_yb_z516i",Cn=function(e){var t=document.querySelector("#ybar-navigation-item-mail"),n=document.querySelector("#ybar-navigation-item- mail > a"),i=document.querySelector("#ybar-navigation-item-mail > a > span");null!==t&&null!==n&&(new ln).fetchCount().then((funzione (t){i&&t>0&&(i.textContent="("+(t>99?"99+":t)+")",e.onDestroy((function(){i.textContent=""}) ))})).catch((funzione(){}))},kn=-1,Ln=funzione(e,t,n){var i,o,a,r=-1,s=0; if(e.ybarNav){var c=window.getComputedStyle(e.ybarNav),l=parseInt(c.width,10)-parseInt(c.paddingLeft,10)-parseInt(c.paddingRight,10),u= 61,d=e.navigationPlacement();if(d)u+=d.getBoundingClientRect().width;for(var p=0;pf&&(p!==e.navItems.length-1||s+h>f||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&kn<0)){r=p;break}s+=h}if(- 1===r&&-1!==kn&&s<=l){for(var m=kn;mkn&&-1!==kn)for(var v=kn;v=r;){var g=e.navItems[y].cloneNode(!0),b=g.querySelector("a");b&&(b.setAttribute("id",""),b.classList. rimuovi(vn));var _=g.querySelector(".".concat(e.navigationDropdownListClass));if(_&&(_.style.display="none"),g.classList.remove(e.dropdownWrapperClass) ,g.classList.remove(e.ybarNavigationItemClass),g.classList.add(e.navigationDropdownItemClass),e.moreMenuDropdown){e.moreMenuDropdown.insertBefore(g,e.moreMenuDropdown.firstChild);var w=g.getElementsByTagName( "a")[0];n.unshiftMoreMenuItem(w)}null===(a=e.navItems[y].querySelector("a"))||void 0===a||a.setAttribute( "tabindex","-1"),y--}kn=r}if(-1!==r&&e.navList){var E=parseInt(s.toString(),10)+"px";e. navList.style.maxWidth=E,t.textContent=".".concat(_n,"{ max-width: ").concat(E,"}")}e.moreMenuNavItem&&e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()? (e.moreMenuNavItem.classList.add(e.dropdownWrapperClass),e.moreMenuNavItem.style.visibility="visible"):null!==e.moreMenuNavItem&&(e.moreMenuNavItem.classList.remove(e.dropdownWrapperClass),e. moreMenuNavItem.style.visibility="hidden"),e.moreMenuDropdown&&e.moreMenuDropdown.childElementCount>10?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e. longListClass)}},Sn=function(e,t,n,i){for(var o=t||window.location.pathname,a=n||window.location.hostname,r=(i||{ }).setParentFocus,s=void 0!==r&&r,c=y([],v(e.topLevelNavLinks),!1),l=null,u=null,d=0;d0),a=new Fe(e,{containerElm:t.ybarNav,navlistItemSelector:".".concat(En," > li"),dropdownClass:t.dropdownWrapperClass,enableMoreMenu:o,moreMenuNavElm:t.moreMenuMainFocusItem,isUserAccountNavigation :!1});!function(e,t){var n;y([],v(null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll (".".concat(t.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(t.dropdownOpenClass)}));var i=t.isTablet?"touchstart ":"mouseover",o=De(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),i,(function(n){if(window||document){var i=window.innerWidth||document.documentElement.clientWidth,o=n.delegateTarget;if(o&&-1!=o.className.indexOf(t.dropdownWrapperClass)&&(o=o.querySelector(".".concat( t.navigationDropdownListClass))),o){o.style.removeProperty("left"),t.shiftMoreMenuEnabled&&o.style.removeProperty("margin-left"),t.shiftMoreMenuEnabled&&hn&&(o.style.marginLeft=hn+"px" );var a=o.getBoundingClientRect().right;a>i&&(t.shiftMoreMenuEnabled?(hn||(hn=parseInt(window.getComputedStyle(o).marginLeft,10)),o.style.marginLeft=hn +i-a+"px"):o.style.left=i-a+"px")}}else{var r=new Error("Impossibile inizializzare il menu a discesa");e.logError("Errore:", r)}}));e.onDestroy((function(){o.destroy()}))}(e,t),Cn(e),e.addElementListener(document,"DOMContentLoaded",(function() {Cn(e)})),function(e,t){var n=function(e,n){var i;e.classList.contains(t.moreMenuNavItemClass)&&(null===(i=t. moreMenuMainFocusItem)||void 0===i||i.setAttribute("aria-expanded",n))},i=De(".".concat(t.dropdownWrapperClass),"focusin",(function(e ){var i=e.delegateTarget;i&&i.classList.contains(t.dropdownWrapperClass)&&(i.classList.add(t.dropdownOpenClass),n(i,"true"))})),o=De(" .".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),"focusout",(function(e){var i=e.delegateTarget;if(null==i?void 0:i .classList.contains(t.navigationDropdownListClass)){var o=i.parentElement;o&&!o.contains(e.latedTarget)&&o.classList.contains(t.dropdownWrapperClass)&&(o.classList.remove(t.dropdownOpenClass) ,n(o,"false"))}else(null==i?void 0:i.classList.contains(t.dropdownOpenClass))&&(i.classList.remove(t.dropdownOpenClass),n(i," false"))}));e.onDestroy((function(){var e;i.destroy(),o.destroy(),y([],v(null===(e=t.ybarNav) ||void 0===e?void 0:e.querySelectorAll(".".concat(t.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(t.dropdownOpenClass );var n=document.activeElement;(function(e,t){var n=!1;if(!e||!t)return n;if("function"==typeof e.contains)n=e .contains(t);else for(var i=t;i;){if(i===e){n=!0;break}i=i.parentElement}return n})(t.ybarNav,n )&&setTimeout((function(){null==n||n.blur()}),1)}))}))}(e,t);var r=e.getConfig().bucketConfig,s= (void 0===r?{}:r).enableDynamicNavfocus;if(void 0!==s&&s&&Sn(t),e.addEventListener("nav:setFocus",(function(e){var n=e.detail ,i=void 0===n?{}:n,o=i.nomehost,a=void 0===o?window.posizione.nomehost:o,r=i.nomepercorso,s=void 0== =r?window.location.pathname:r,c=i.options;Sn(t,s,a,void 0===c?{}:c)})),o){var c=document.createElement ("style");c.title="ybar_nav_interim",document.head.appendChild(c);var l=De("#ybar-nav-more-menu ul a","click",(function(t) {e.triggerEvent("navigation",{event:t})}));e.addEventListener("nav:resize",(function(){Ln(t,c,a)})),Ln(t, c,a),e.addElementListener(finestra,"carica",(funzione(){Ln(t,c,a)})),e.addElementListener(finestra,"ridimensiona",(funzione(){Ln(t ,c,a)})),e.onDestroy((function(){var e=c.parentNode;null==e||e.removeChild(c),l.destroy()}))}},Tn ="#ybar-nav-more-menu";me("ybar-mod-navigation",(function(e){var t,n={dropdownWrapperClass:mn,isFuji2:null!==document.querySelector(". ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet"),longListClass:yn,moreMenuDropdown:document .querySelector("".concat(Tn," ul")),moreMenuNavItem:document.querySelector(Tn),moreMenuNavLinksSelector:"".concat(Tn," ul a"),moreMenuMainFocusItem:document.querySelector("".concat (Tn," > pulsante")),moreMenuNavItemClass:xn,navigationDropdownItemClass:gn,navigationDropdownListClass:bn,navItems:document.querySelectorAll("li.".concat(wn)),topLevelNavLinks:document.querySelectorAll("li.". concat(wn," > a")),navLinks:document.querySelectorAll(".ybar-mod-navigation a"),navList:document.querySelector(".ybar-mod-navigation ul"),shiftMoreMenuEnabled:document.querySelector ("".ybar-shift-more-menu"),ybarNav:document.getElementById("ybar-navigation"),ybarNavigationItemClass:wn,dropdownOpenClass:fn,navigationPlacement:function(){return t||(t=document.getElementById ("ybar-nav-posizionamento")),t}};n.ybarNav&&An(e,n)}))}()}};

    Leggi dopo

    Leggi dopo

    Leggi dopo

    Leggi dopo

    Leggi dopo

    References

    Top Articles
    Latest Posts
    Article information

    Author: Frankie Dare

    Last Updated: 12/29/2023

    Views: 6288

    Rating: 4.2 / 5 (73 voted)

    Reviews: 88% of readers found this page helpful

    Author information

    Name: Frankie Dare

    Birthday: 2000-01-27

    Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

    Phone: +3769542039359

    Job: Sales Manager

    Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

    Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.