/*! For license information please see viewer.nolibs.build.min.js.LICENSE.txt */
(function(){var __webpack_modules__={74949:function(e,t,n){"use strict";n.d(t,{T:function(){return g}});var i=n(58932),r=n(45221),o=n(13302),a=n(57230),s=n(1339),u=n(46869),c=n(82788),l=n(17950);function d(e){return{id:e.id,name:e.name,brand:e.brand,category:e.category,variant:e.variant,subTotal:e.subTotal,discount:e.discount,total:e.total,quantity:e.quantity,coupon:e.coupon}}var h=n(84215),f=n(49422),p=n(47020),m=n(65795),g=new(function(){function e(){this.dataElement=function(){return document.getElementById("ecommerce")}}return e.prototype.getStep=function(){var e=this.dataElement();if(e){var t=(0,o.findKey)(h._,(function(t){return t===e.getAttribute("data-step")}));return h._[t]}return null},e.prototype.getPromo=function(){var e=new r.A(window.location.href),t=e.getQueryParamValue("PromoCode"),n=e.getQueryParamValue("PromoProduct");if(t&&n)return{code:t,product:n};var i=document.getElementById("PromoCode"),o=document.getElementById("PromoProduct"),a=document.getElementById("PromoSubTotal"),s=document.getElementById("PromoDiscount"),u=document.getElementById("PromoTotal");return i&&o&&a&&s&&u?{code:i.value,product:o.value,subtotal:parseFloat(a.value),discount:parseFloat(s.value),total:parseFloat(u.value)}:null},e.prototype.handle=function(e,t,n){return(0,i.sH)(this,void 0,void 0,(function(){var o,g,v,y,_,b,w;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return(o=t||new r.A(window.location.href).getQueryParamValue("SuccessOrderId"))?[4,(0,a.yS)(o)]:[2];case 1:switch(g=i.sent(),v={affiliation:(C=g).affiliation,cardType:C.cardType,currency:C.currency,items:C.items.map(d),tax:C.tax,transactionId:C.transactionId,value:C.value},n=n||this.getPromo(),v.items&&v.items.length>0&&n&&v.items.forEach((function(e){e.id===n.product&&(e.coupon=e.coupon||n.code,e.subTotal=e.subTotal||n.subtotal,e.discount=e.discount||n.discount,e.total=e.total||n.total)})),y=function(){"true"===l.get("isNewUser")&&c.X.send(new u.wS({system:s.h.Application}))},e=e||this.getStep()){case h._.SubscriptionPlans:y();break;case h._.Bundles:y(),c.X.send(new m.Aq(v));break;case h._.PaymentInformation:if(v&&v.items&&v.items.length>0&&!new r.A(window.location.href).getQueryParamValue("RequestedContent.issueId")&&c.X.send(new m.nt(v)),_=document.getElementsByClassName("validation-summary-errors"))for(b=0;b<_.length;b++)(w=_[b].textContent.trim())&&c.X.send(new f.a(new p.y({description:w,fatal:!1})));break;case h._.Confirmation:v&&v.items&&v.items.length>0&&c.X.send(new m.UA(v));break;case h._.Finish:v&&v.items&&v.items.length>0&&c.X.send(new m.eP(v));break;default:throw new Error("Not Implemented")}return[2]}var C}))}))},e.prototype.init=function(){var e=this;document.addEventListener("DOMContentLoaded",(function(){e.dataElement()&&e.handle(null,null,null)}),{once:!0})},e}())},70973:function(e,t,n){"use strict";n.d(t,{z:function(){return h}});var i=n(58932),r=n(27189),o=n(90006),a=n(16213),s=n(3182),u=n(3166),c=n(44539),l=n(19548),d=n(53952),h=new(function(){function e(){var e=this;this._enabled=!1;var t=o.A.getUrlParameters();this._debug=!1,this._loaded=(0,i.sH)(e,void 0,void 0,(function(){return(0,i.YH)(this,(function(n){switch(n.label){case 0:return this.trackers=[],this.trackers.push(d.E),this.trackers.push(u.U),this.trackers.push(l.O),this.trackers.push(c.n),[4,Promise.all(this.trackers.map((function(e){return e.loaded()})))];case 1:return n.sent(),e.trackers=e.trackers.filter((function(e){return e.enabled()})),e._enabled=e.trackers.length>0,e._debug&&a.A.log("se2sky.analytics - Trackers Found: ".concat(e.trackers.map((function(e){return e.toString()})).join(", ")||"None")),r.A.get("Analytics.CustomSourceTrackingEvent",!1)&&(t.source||t.medium)&&(this._debug&&a.A.log("se2sky.analytics - CustomSourceTracking - source=".concat(t.source,", medium=").concat(t.medium)),this.customSourceTracking(t.source,t.medium)),[2,!0]}}))}))}return e.prototype.toString=function(){return"Analytics"},e.prototype.loaded=function(){return this._loaded},e.prototype.enabled=function(){return this._enabled},e.prototype.pageView=function(e){var t=this;void 0===e&&(e={}),e.context=s.B.merge(e.context),e.title=e.title||(e.context&&e.context.contentName?e.context.contentName:"")||document.title,e.page=e.page||"".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash),this._loaded.then((function(){t.trackers.forEach((function(t){return t.pageView(e)}))}))},e.prototype.event=function(e){var t=this;e.context=s.B.merge(e.context),this._loaded.then((function(){t.trackers.forEach((function(t){return t.event(e)}))}))},e.prototype.transaction=function(e){var t=this;e.context=s.B.merge(e.context),this._loaded.then((function(){t.trackers.forEach((function(t){return t.transaction(e)}))}))},e.prototype.timing=function(e,t,n,i){var r=this;this._loaded.then((function(){r.trackers.forEach((function(r){return r.timing(e,t,n,i)}))}))},e.prototype.exception=function(e,t){var n=this;this._loaded.then((function(){n.trackers.forEach((function(n){return n.exception(e,t)}))}))},e.prototype.customSourceTracking=function(e,t){var n=this;this._loaded.then((function(){n.trackers.forEach((function(n){return n.customSourceTracking(e,t)}))}))},e}())},3182:function(e,t,n){"use strict";n.d(t,{B:function(){return m}});var i=n(58932),r=n(13302),o=n(43125),a=n(65678),s=n(2215),u=n(70989),c=n(20680),l=n(92701),d=n(45235),h=n(86699),f=n(67303),p=n(68092),m=new(function(){function e(){}return e.prototype.merge=function(e){return e=e||{},this.refresh(),(0,r.merge)({},this,e)},e.prototype.refresh=function(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return this.cid=void 0,this.contentName=void 0,this.issueDate=void 0,this.pageNumber=void 0,this.articleSource=void 0,(0,u.d)()!==a.lP.PagesView&&(0,u.d)()!==a.lP.TextView||(this.cid=f.A.cid(),this.contentName=f.A.contentName(),e=f.A.issue(),(0,o.TW)(e)&&(this.issueDate=(0,o.M6)(e)),this.pageNumber=f.A.page()),[4,(0,l.Y)()];case 1:return t=n.sent(),this.userCountry=t.country,this.currentLanguage=t.language,g(),[2]}}))}))},e}());function g(){var e=s.A.current.language();m.translatedLanguage=e?e.code():void 0}h.A.onUserStateChanged((function(){(0,p.z)().then((function(e){var t,n,i,r;m.subscriptionPlan=e?(n=(t=e).subscriptionId,i=t.subscriptionName.replace(/\s/g,""),r=function(e){var t=(0,d.s5)(e);return String("0000".concat(t)).slice(-4)}(n),"".concat(i,"-").concat(r)):void 0})).catch(c.logError)})),s.A.bind("currentLanguageChanged",(function(){return g()})),m.refresh()},84215:function(e,t,n){"use strict";var i,r;n.d(t,{_:function(){return i},a:function(){return r}}),function(e){e.SubscriptionPlans="subscriptionPlans",e.Bundles="bundles",e.PaymentInformation="paymentInformation",e.Confirmation="confirmation",e.Finish="finish"}(i||(i={})),function(e){e.AddPaymentInfo="AddPaymentInfo",e.AddToCart="AddToCart",e.BeginCheckout="BeginCheckout",e.CheckoutProgress="CheckoutProgress",e.Purchase="Purchase",e.RemoveFromCart="RemoveFromCart",e.SelectContent="SelectContent",e.SetCheckoutOption="SetCheckoutOption"}(r||(r={}))},3166:function(e,t,n){"use strict";n.d(t,{U:function(){return d}});var i=n(58932),r=n(27189),o=n(18158),a=n(84215),s=n(20088),u=n(65087),c=!1;function l(){for(var e=[],t=0;t=0||(null===(o=a.AllowPolicy)||void 0===o?void 0:o.indexOf("*"))>=0;return s||(console.error('This Google Tag Manager implementation is requesting permissions, but the XML backend configuration is missing, make sure you have the AllowPolicy, like:\n\n\n \n \n \n \n\nhttps://developers.google.com/tag-manager/templates/permissions?hl=en\n '),console.warn('Checking policy for "'.concat(t," = ").concat(s,'", data=').concat(JSON.stringify(n)))),s}))),l("set",{cookie_flags:e.CookieSameSite||"SameSite=None;Secure"}),e.ContainerID.split(",").forEach((function(e){l("config",e,{send_page_view:!1})})),e.Ecommerce&&e.Ecommerce.Enabled&&(this._ecommerceEnabled=!0),this._triggers=e.Triggers,this._variables=e.Variables,e.UseUserId&&(0,u.C)((function(e){d({UserId:e})})),[2,!0]):[2,!1]):[2,!1]}var n,i,a,s,h,f}))}))}return e.prototype.toString=function(){return"Google TagManager (".concat(this._ContainerID,")")},e.prototype.loaded=function(){return this._loaded},e.prototype.enabled=function(){return this._enabled},e.prototype.pageView=function(e){if(void 0===e&&(e={}),this._enabled){var t={event:this._triggers.Pageview};t[this._variables.PageTitle]=e.title,t[this._variables.PageURL]=e.page,e.context&&(t[this._variables.Context]=e.context),d(t)}else this._debug&&console.log("NOT ENABLED pageView",e)},e.prototype.event=function(e){if(this._enabled&&this._eventsEnabled){var t={event:this._triggers.Event};e.category&&(t[this._variables.Category]=e.category),e.action&&(t[this._variables.Action]=e.action),e.label&&(t[this._variables.Label]=e.label),e.value&&(t[this._variables.Value]=e.value),e.context&&(t[this._variables.Context]=e.context),d(t)}else this._debug&&console.log("NOT ENABLED event",e)},e.prototype.transaction=function(e){if(this._enabled&&this._ecommerceEnabled&&e){var t,n={event:"".concat(this._triggers.Transaction," => ").concat((0,s.c)(e.type)),ecommerce:{}};switch(e.data.items&&(t=e.data.items.map((function(e){return{id:e.id,name:e.name,brand:e.brand,category:e.category,variant:e.variant,subtotal:e.subTotal,discount:e.discount,price:e.total,quantity:e.quantity,coupon:e.coupon}}))),e.type){case a.a.BeginCheckout:n.ecommerce.currencyCode=e.data.currency,n.ecommerce.checkout={actionField:{step:1},products:t};break;case a.a.SelectContent:if(!e.data.promotions)throw new Error("select_content type not supported");n.ecommerce.promoClick={promotions:e.data.promotions.map((function(e){return{id:e.id,name:e.name}}))};break;case a.a.CheckoutProgress:n.ecommerce.currencyCode=e.data.currency,n.ecommerce.checkout={actionField:{step:e.data.checkout_step,option:e.data.checkout_option,value:e.data.value},products:t};break;case a.a.AddToCart:n.ecommerce.currencyCode=e.data.currency,n.ecommerce.add={products:t};break;case a.a.RemoveFromCart:n.ecommerce.currencyCode=e.data.currency,n.ecommerce.remove={products:t};break;case a.a.AddPaymentInfo:n.ecommerce.currencyCode=e.data.currency,n.ecommerce.checkout={actionField:{step:3,option:e.data.payment_type},products:t};break;case a.a.SetCheckoutOption:n.ecommerce.checkout={actionField:{step:e.data.checkout_step,option:e.data.checkout_option},products:t};break;case a.a.Purchase:n.ecommerce.currencyCode=e.data.currency,n.ecommerce.purchase={actionField:{id:e.data.transactionId,affiliation:e.data.affiliation,revenue:e.data.value,tax:e.data.tax,shipping:e.data.shipping},products:t};break;default:throw new Error("Not Implemented: ".concat(e.type))}d(n)}else this._debug&&console.log("NOT ENABLED transaction",e)},e.prototype.timing=function(e,t,n,i){if(this._enabled){var r={event:this._triggers.Timing};r[this._variables.Var]=t,r[this._variables.Category]=e,r[this._variables.Value]=n,r[this._variables.Label]=i,d(r)}else this._debug&&console.log("NOT ENABLED timing",{category:e,variable:t,timeSpent:n,label:i})},e.prototype.exception=function(e,t){l("event","exception",{description:e,fatal:t})},e.prototype.customSourceTracking=function(e,t){l("config",this._ContainerID,{campaign_source:e,campaign_medium:t})},e}())},90259:function(e,t,n){"use strict";n.d(t,{T:function(){return C}}),n(90332),n(31711);var i=n(13981),r="authentication",o=n(58932),a=n(44834),s=n(70113),u=n(88544),c=n(75054),l=n(43566),d=n(27602),h=n(89247),f=n(94518),p=n(69216),m=n(16213),g=n(83883),v=n(67638);function y(e){var t,n,i,r;return(0,o.YH)(this,(function(e){switch(e.label){case 0:t="email",e.label=1;case 1:return e.trys.push([1,9,,12]),[4,(0,a.Lt)(l.mB)];case 2:return(n=e.sent()).isAuthenticated?[4,(0,a.yJ)((0,l.XX)({authenticationResult:n.isAuthenticated}))]:[3,4];case 3:e.sent(),e.label=4;case 4:return[4,(0,f.hU)()];case 5:return e.sent()?[4,(0,a.T1)(v.Mo)]:[2];case 6:return i=e.sent(),[4,(0,a.T1)((function(){return i.signIn()}))];case 7:return e.sent(),(0,c.ng)({system:t}),[4,(0,a.yJ)((0,l.XX)({authenticationResult:!0}))];case 8:return e.sent(),(0,c.Ok)({system:t}),[3,12];case 9:return r=e.sent(),m.A.error(r),[4,(0,a.yJ)((0,l.Le)({error:r}))];case 10:return e.sent(),[4,(0,a.yJ)((0,l.XX)({authenticationResult:!1}))];case 11:return e.sent(),(0,c.Py)({error:r,system:t}),[3,12];case 12:return[2]}}))}function _(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,a.jP)((0,s.g)(c.uF),(function(){var e,t,n,r,a,s,c;return(0,o.YH)(this,(function(l){switch(l.label){case 0:return[4,(0,p.D)()];case 1:return e=l.sent(),t="function"==typeof(null==e?void 0:e.signOut)?e.signOut():"",[5,(0,o.Ju)((0,u.N)(g.lx))];case 2:return n=l.sent(),[5,(0,o.Ju)((0,u.N)(g.xW))];case 3:return r=l.sent().externalLogoutPageDelay,a=void 0===r?500:r,[5,(0,o.Ju)((0,u.N)(d.SG))];case 4:return s=l.sent(),c=(null==s?void 0:s.viewName)?"":(0,h.DT)(),t||n||c?(setTimeout((function(){window.location.assign(t||n||c)}),a),[2]):((0,i.JD)((0,d.PX)()),[2])}}))}))];case 1:return e.sent(),[2]}}))}function b(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[5,(0,o.Ju)(_())];case 1:return e.sent(),[4,(0,a.IJ)(l.IZ,y)];case 2:return e.sent(),[2]}}))}var w=!1;function C(){w||(w=!0,i.bX.addFeature(r,void 0,b))}},83883:function(e,t,n){"use strict";n.d(t,{sk:function(){return h},KQ:function(){return p},dO:function(){return l},xW:function(){return c},YA:function(){return d},lx:function(){return f},jX:function(){return m}});var i=n(29978),r=n(95916),o=n(28809),a=n(43755),s=n(3915),u=n(86699),c=(0,i.Mz)(o._t,(function(e){var t=e("Authentication");return(0,s.C)(t)})),l=(0,i.Mz)(o._t,(function(e){return e("ui.Sidebar.ShowEmailAlerts",!0)})),d=(0,i.Mz)(o._t,(function(e){return e("ui.TopToolbar.SearchEnabled",!0)})),h=(0,i.Mz)(o._t,(function(e){return e("features.app.header.enabled",!1)})),f=(0,i.Mz)(c,(function(e){return e.enablePublisherAuthenticationWebService&&e.externalLogoutPage?e.externalLogoutPage:u.A.getRedirectionUrl("AfterSignOut")})),p=(0,i.Mz)(o._t,(function(e){return{clickableLogo:e("UI.TopToolbar.ClickableLogo",!0),logoUrl:e("UI.TopToolbar.LogoUrl",""),openLogoUrlInNewTab:e("UI.TopToolbar.OpenLogoUrlInNewTab",!0)}})),m=(0,i.Mz)(o._t,c,a.N,r.su,(function(e,t,n,i){var r=i();return{myAccount:{enabled:e("pagesView.enableMyAccountMenu",!0),location:t.externalMyAccountPage},myTopics:{enabled:e("ui.Sidebar.MonitorsEnabled",!1)&&e("ui.MyTopics.enable",!0)},catalog:{enabled:e("ui.Sidebar.CatalogEnabled",!0)},bookmarks:{enabled:e("ui.Bookmarks.enable",!0)},radio:{radioEnabled:n,radioActive:r},print:{enabled:e("ui.Print.enable",!0)},translate:{enabled:e("ui.Translate.enable",!0)},blog:{enabled:e("ui.Sidebar.BlogEnabled",!1),location:e("ui.Sidebar.BlogLocation","")},customItem:{enabled:e("pagesView.ShowCustomItem",!1),location:e("pagesView.CustomItemURL","")}}}))},67638:function(e,t,n){"use strict";n.d(t,{Mo:function(){return r},bp:function(){return o}});var i=n(58932);function r(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,72167))];case 1:return[2,e.sent().default]}}))}))}function o(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,72672))];case 1:return[2,e.sent().default]}}))}))}n(44834)},60102:function(e,t,n){"use strict";n.d(t,{b:function(){return y}});var i,r=n(13981),o=n(43125),a=n(65678),s=n(76855),u=n(99793),c=n(52733),l=new(n(20447).V)(/^\d+$/,"Page doesnt match pattern"),d=n(59530),h=n(3556),f=n(12830),p=n(29978),m=n(28809),g=(0,p.Mz)(m._t,(function(e){return e("catalog.MasterCid","")})),v=((i={})[a.lP.TextView]="textview",i[a.lP.PagesView]="pageview",i[a.lP.ReadingMap]="readingmap",i[a.lP.IssueDetails]="details",i);function y(e,t){var n=t.viewName,i=t.viewName===a.lP.PagesView?"{viewName}":v[t.viewName],p=t.viewName,m=(0,r.Lt)(g),y=new s.D(t.viewName);e.addRoute({name:"issue_newspaper_date_page_".concat(n),template:"{newspaper}/{issueDate}/page/{page}/".concat(i),defaults:{viewName:p},constraints:{viewName:y,issueDate:u.p,newspaper:c.z,page:l},executeWith:t.executeWith}),t.viewName===a.lP.TextView&&e.addRoute({name:"issue_newspaper_date_article_textview",template:"{newspaper}/{issueDate}/{articleId}/{viewName}?{query}",defaults:{query:""},constraints:{viewName:y,articleId:d.N1,issueDate:u.p,newspaper:c.z},executeWith:t.executeWith}),t.viewName===a.lP.IssueDetails&&e.addRoute({name:"issuedeatails_newspaper",template:"{newspaper}/details",defaults:{viewName:p},constraints:{viewName:y,newspaper:c.z},executeWith:t.executeWith}),e.addRoute({name:"issue_newspaper_date_".concat(n),template:"{newspaper}/{issueDate}/".concat(i,"?{zoom}"),defaults:{zoom:null,viewName:p},constraints:{viewName:y,issueDate:u.p,newspaper:c.z},executeWith:t.executeWith}),e.addRoute({name:"issue_newspaper_".concat(n),template:"{newspaper}/".concat(i,"?{zoom}"),defaults:{zoom:null,viewName:p},constraints:{viewName:y,newspaper:c.z},executeWith:t.executeWith}),e.addRoute({name:"issue_".concat(n),template:"{issue}/".concat(i),defaults:{viewName:p},constraints:{viewName:y,issue:function(e,t){return(0,o.TW)(t[e])}},executeWith:t.executeWith}),e.addRoute({name:"cid_issue_date_".concat(n),template:"{cid}/{issueDate}/".concat(i),defaults:{viewName:p},constraints:{viewName:y,issueDate:u.p,cid:h.A},executeWith:t.executeWith}),e.addRoute({name:"cid_".concat(n),template:"{cid}/".concat(i),defaults:{viewName:p},constraints:{viewName:y,cid:h.A},executeWith:t.executeWith}),e.addRoute({name:"issue_articleId",template:"article/{articleId}/{viewName}",constraints:{articleId:d.N1,viewName:y},executeWith:t.executeWith}),e.addRoute({name:"bookmark_".concat(n),template:"bookmark/{bookmark}/".concat(i),defaults:{viewName:p},constraints:{viewName:y,bookmark:f.k},executeWith:t.executeWith}),t.viewName===a.lP.PagesView&&(e.addRoute({name:"home",template:"",defaults:{viewName:p,cid:m},constraints:{viewName:y},executeWith:t.executeWith}),e.addRoute({name:"latest",template:"latest",defaults:{viewName:p},constraints:{viewName:y},executeWith:t.executeWith}))}},41680:function(e,t,n){"use strict";n.d(t,{Z5:function(){return W},uO:function(){return j},o_:function(){return h},iZ:function(){return $}});var i=n(26811),r=n(31555),o=n(5059),a=n(85387),s=n(13384),u=n(61577),c=n(59565),l=n(10610),d=n(83883),h=function(e){var t=e.optionsMenuItems,n=e.search,i=void 0===n||n,o=(0,a.d4)(d.YA);return(0,r.jsxs)(r.Fragment,{children:[i&&o&&(0,r.jsx)(l.u,{}),(0,r.jsx)($,{}),t.length>0?(0,r.jsx)(c.t,{className:"btn-options",button:(0,r.jsxs)(u.n,{className:"btn-icon",children:[(0,r.jsx)("span",{className:"pri pri-action","aria-hidden":"true"}),(0,r.jsx)("span",{className:"btn-title",children:(0,s.p3)("Buttons.Options")})]}),children:t}):(0,r.jsx)("div",{className:"btn-options"})]})},f=n(58932),p=n(78698),m=n(27602),g=n(65678),v=n(53236),y=n(83999),_=n(42597),b=n(86699),w=n(13981),C=n(44834),A=n(94518),I=n(67638),S=(0,n(89103).lQ)("".concat("app.common.catalog","/open_legacy_catalog"));function P(e){return e.payload,(0,f.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,A.hU)()];case 1:return e.sent()?[4,(0,C.T1)(I.bp)]:[2];case 2:return e.sent().show(),[2]}}))}w.bX.addFeature("app.common.catalog",void 0,(function(){return(0,f.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,C.jP)(S,P)];case 1:return e.sent(),[2]}}))}));var x=n(29978),T=n(72112),k=(0,x.Mz)((function(e){return e[T.p]}),(function(e){return null==e?void 0:e.publicationsCount})),E=n(67760),M=function(e){return(0,r.jsx)("nav",{role:"navigation",className:"ui-nav","aria-label":(0,s.p3)("Navigation.Site"),children:(0,r.jsxs)("div",{className:"ui-nav-content is-compact is-permanent-compact",children:[(0,r.jsx)("div",{className:"ui-nav-controls-compact",children:(0,r.jsx)(E.t,{type:"menu",label:(0,s.p3)("Buttons.Menu"),children:e.items})}),(0,r.jsx)("div",{className:"ui-nav-controls",children:(0,r.jsx)("ul",{className:"ui-nav-nav",children:e.items.reduce((function(e,t,n){return e.push((0,r.jsx)(y.p.Provider,{value:{asMenuItem:!1,tabIndex:-1,hidden:!0},children:t},n)),e}),[])})})]})})},D=function(e){var t=e.mode,n=(0,a.wA)(),i=(0,a.d4)(d.jX),u=(0,a.d4)(k),c=(0,a.d4)(p.uF),l=[],h=o.useCallback((function(){n(S())}),[n]),w=o.useCallback((function(){n((0,m.Ng)({viewName:g.lP.Monitors,params:{type:"monitor",monitorId:0}}))}),[n]),C=o.useCallback((function(){n((0,m.Ng)({viewName:g.lP.Profile,params:{profileId:v.default.getProfileId()}}))}),[n]),A=o.useCallback((function(){n((0,m.bv)({link:i.customItem.location,openNewWindow:!0}))}),[n,i]),I=o.useCallback((function(){n((0,m.bv)({link:i.blog.location,openNewWindow:!0}))}),[n,i]),P=o.useCallback((function(){n((0,m.Ng)({viewName:g.lP.Help}))}),[n]);i.catalog.enabled&&u>1&&l.push((0,r.jsx)(y.g,{icon:"pri pri-sources",title:(0,s.p3)("Navigation.Catalog"),selected:!1,onClick:h},"web_catalog")),i.myTopics.enabled&&b.A.isLogin()&&l.push((0,r.jsx)(y.g,{title:(0,s.p3)("Menu.Monitors"),selected:!1,onClick:w,hrefSEO:"/topics"},"web_topics")),i.bookmarks.enabled&&v.default.getProfileId()&&l.push((0,r.jsx)(y.g,{title:(0,s.p3)("Menu.Bookmarks"),selected:!1,onClick:C},"web_bookmarks")),i.customItem.enabled&&l.push((0,r.jsx)(y.g,{title:(0,s.p3)("Sidebar.About"),selected:!1,onClick:A,hrefSEO:i.customItem.location},"web_about")),i.blog.enabled&&l.push((0,r.jsx)(y.g,{title:(0,s.p3)("Sidebar.Blog"),selected:!1,onClick:I,hrefSEO:i.blog.location},"web_blog")),l.push((0,r.jsx)(y.g,{title:(0,s.p3)("Sidebar.HelpCenter"),selected:!1,onClick:P,hrefSEO:"/help"},"web_help"));var x=l.length>2?l.splice(1):[];return c?(0,r.jsx)(M,{items:(0,f.fX)((0,f.fX)([],(0,f.zs)(l),!1),(0,f.zs)(x),!1)}):(0,r.jsx)(_.q,{mode:t,items:l,menuItems:x})},N=n(62713),L=n(10320),V=n(80784),R=n(89247),H=n(97556),F=n(6666),B=(0,R.DT)(),z=function(){var e=(0,a.wA)(),t=(0,a.d4)(m.Lr).homeViewName,n=t&&t!==g.lP.Landing?"".concat(B).concat(t):"".concat(B),i=(0,a.d4)(d.KQ),u=i.clickableLogo,c=i.logoUrl,l=i.openLogoUrlInNewTab,h=(0,o.useCallback)((function(t){return u&&e(c?(0,m.bv)({link:c,openNewWindow:l}):(0,m.TU)({})),(0,F.T)(t.nativeEvent)}),[e,u,c,l]);return(0,r.jsx)("div",{className:"topbar-logo",children:(0,r.jsx)(H.o,{className:"logo","aria-label":(0,s.p3)("Navigation.Logo.Aria"),onClick:h,href:n,children:(0,r.jsx)("span",{children:(0,s.p3)("BrandPublisher")})})})},O=function(e){var t=o.useContext(L.D).showSearchInput,n=[],i=null,a="none"!==e.navigation;a&&(i="compact"===e.navigation?"inline-compact":"inline");var s=(0,r.jsxs)(r.Fragment,{children:[e.left,a&&(0,r.jsx)(D,{mode:i})]}),u=e.center;u||(u=function(){return(0,r.jsx)(z,{})});var c=e.align||("inline"===i?"sides-flex":u?"center-flex":"none"),l=e.right||(0,r.jsx)(h,{optionsMenuItems:e.optionsMenuItems}),d=e.accessory,f=e.outerAccessory;return"navbar"===i?d=(0,r.jsxs)(r.Fragment,{children:[d,(0,r.jsx)(D,{mode:"navbar"})]}):"tabbar"===i&&(f=(0,r.jsxs)(r.Fragment,{children:[f,(0,r.jsx)(D,{mode:"tabbar"})]})),t&&(n.push("site-header-search-shown"),f=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"dialog-tint site-header-search-tint"}),f]})),(0,r.jsx)(N.D,{className:n.join(" "),left:s,center:u,right:l,align:c,replaceWith:t?(0,r.jsx)(V.O,{}):null,accessory:d,outerAccessory:f,config:e.config,onHeaderContextChanged:e.onHeaderContextChanged})},j=function(e){return(0,r.jsx)(L.j,{children:(0,r.jsx)(O,(0,f.Cl)({},e))})},U=n(74637),W=function(){var e=(0,a.wA)(),t=o.useCallback((function(){e((0,m.Ng)({viewName:g.lP.EmailAlerts}))}),[e]);return(0,r.jsx)(U.k,{text:(0,s.p3)("Menu.Account.EmailAlerts"),icon:"pri pri-alerts",onClick:t})},Y=n(10358),X=n(43566),q=n(64404),G=n(18752),K=n(89486),J=n(70474),Q=n(50527),Z=function(){var e=(0,a.wA)(),t=(0,a.d4)(d.jX),n=(0,a.d4)(Q.oe),i=(0,a.d4)(J.rU),u=o.useCallback((function(){e((0,X.Op)())}),[e]),c=o.useCallback((function(){t.myAccount.location?e((0,m.bv)({link:t.myAccount.location})):e((0,m.Ng)({viewName:g.lP.Account}))}),[e,t.myAccount.location]);if(!i)return null;var l=t.myAccount.enabled&&n.enabled&&!i.maxSessionRequired;return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(U.k,{icon:"pri pri-account",text:(0,s.p3)("Menu.Account.MyAccount"),onClick:c}),(0,r.jsx)(U.k,{icon:"pri pri-logout",text:(0,s.p3)("Sidebar.LogOut"),onClick:u})]})},$=function(){var e=(0,a.wA)(),t=o.useContext(N.a),n=(0,a.d4)(G.O4),i=(0,a.d4)(X.mB);(0,q.C)((function(){t.realign()}),[t.realign,i.isAuthenticated]);var l=o.useCallback((function(){e((0,X.IZ)({}))}),[e]);return i.isAuthenticated?(0,r.jsx)(c.t,{className:"btn-account",button:(0,r.jsxs)(u.n,{className:"btn btn-dropdown","aria-label":(0,s.p3)("Header.Menu.User"),children:[(0,r.jsx)(K.a,{user:i,size:Y.eV.normal}),(0,r.jsx)("span",{className:"btn-title",children:(0,s.p3)("Header.Menu.User")})]}),children:(0,r.jsx)(Z,{})}):n?(0,r.jsx)(u.n,{className:"btn btn-login",onClick:l,children:(0,r.jsx)("span",{className:"btn-title",children:(0,s.p3)("Buttons.Login.Text")})}):void 0};(0,i.T)()},72112:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var i="app.views.common"},50527:function(e,t,n){"use strict";n.d(t,{CO:function(){return s},EF:function(){return a},H_:function(){return u},oe:function(){return c}});var i=n(29978),r=n(28809),o=n(66443),a=(0,i.Mz)(r._t,(function(e){return e("profileview.sections",{})})),s=(0,i.Mz)(r._t,(function(e){return e("Authentication.ExternalUpgradeSubscriptionPage","")})),u=(0,i.Mz)(r._t,(function(e){return e("subscriptionview",{})})),c=(0,i.Mz)([o.vc],(function(e){return{enabled:e.general||e.subscription||e.notifications}}))},44080:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var i=n(58932),r=n(65678),o=n(60102),a=!1;function s(e,t){a||(a=!0,(0,o.b)(e,(0,i.Cl)((0,i.Cl)({},t),{viewName:r.lP.PagesView})))}},64100:function(e,t,n){"use strict";n.d(t,{T:function(){return me},P:function(){return ge}});var i=n(31555),r=n(5059),o=n(39757),a=n(85387),s=n(13981),u=n(18158),c=n(78698),l=n(90954),d=n(64492),h=n(54777);function f(e){var t=e.popup,n=e.onClose,o=e.onCancel,a=(0,r.useCallback)((function(e,i){void 0===i&&(i=!1),n(t,e,i)}),[t,n]),s=(0,r.useCallback)((function(e){void 0===e&&(e=!1),o(t,e)}),[t,o]),u=(0,r.useCallback)((function(e){e.stopPropagation(),t.canDismiss&&o(t)}),[t,o]);if(!t)return null;var c=(0,h.KB)(t.name);return(0,i.jsxs)("div",{className:"alert-container-panel panel-fixed",children:[(0,i.jsx)(d._,{className:"dialog-tint",onClick:u}),(0,i.jsx)(c,{popup:t,onClose:a,onCancel:s})]})}function p(e){var t=e.popup,n=e.onClose,o=e.onCancel,a=(0,r.useCallback)((function(e,i){void 0===i&&(i=!1),n(t,e,i)}),[t,n]),s=(0,r.useCallback)((function(e){void 0===e&&(e=!1),o(t,e)}),[t,o]);if((0,r.useEffect)((function(){(null==t?void 0:t.supportNativeScroll)&&window.scrollTo(0,0)})),!t)return null;var u,c=(u=Array.from(document.getElementsByClassName("dialog-tint")).filter((function(e){return"none"!==getComputedStyle(e).display})),Math.max.apply(Math,u.map((function(e){return parseInt(getComputedStyle(e).zIndex,10)||0})))),l={};c>0&&(l.zIndex=c+2);var d=(0,h.KB)(t.name),f="dialog-container-panel".concat(t.supportNativeScroll?"":" panel-fixed");return(0,i.jsxs)("div",{className:f,style:l,children:[(0,i.jsx)("div",{className:"dialog-tint"}),(0,i.jsx)(d,{popup:t,onClose:a,onCancel:s},t.id)]})}function m(e){var t,n,r,o=e.popups,a=e.disabled,s=e.onClose,u=e.onCancel;if(!o.length)return null;for(var c=o.length-1;c>=0;--c){var d=o[c];if(!t&&(0,l.nL)(d))t=d;else if(!r&&(0,l.MD)(d))r=d;else if(!n&&(0,l.rp)(d)){n=d;break}}var h=o.filter(l.rp).filter((function(e){return e!==n&&e.persistent}));return n&&h.push(n),a?(n&&h.forEach((function(e){return u(e)})),t&&u(t),null):(0,i.jsxs)(i.Fragment,{children:[h.map((function(e){return(0,i.jsx)(p,{popup:e,onClose:s,onCancel:u},e.id)})),t&&(0,i.jsx)(f,{popup:t,onClose:s,onCancel:u})]})}var g=n(33730),v=-1!==window.navigator.userAgent.indexOf("seo4ajax");function y(){var e=(0,a.d4)(g.Io),t=(0,a.wA)(),n=(0,r.useCallback)((function(e,n,i){void 0===i&&(i=!1),t((0,g.HF)({id:e.id,result:n,isBack:i}))}),[t]),o=(0,r.useCallback)((function(e,n){void 0===n&&(n=!1),t((0,g.HF)({id:e.id,isCancelled:!0,isBack:n}))}),[t]);return(0,i.jsx)(m,{disabled:v,popups:e,onClose:n,onCancel:o})}var _=n(58932),b=n(15520),w=n(80606),C=n(1052),A=function(e){var t=e.popup,n=e.onClose,o=(0,a.wA)(),s=(0,r.useCallback)((function(e){e.stopPropagation(),n()}),[n]),u=(0,r.useCallback)((function(e,n){o((0,w.qn)({id:t.id,context:e,cancelled:n}))}),[o,null==t?void 0:t.id]);if(!t)return null;var c=["dialog-container-panel",!t.supportNativeScroll&&"panel-fixed"].filter((function(e){return e})).join(" "),l=C._.dialogs[t.name];if(!l)throw new Error('Dialog "'.concat(t.name,"\" wasn't registered."));var d,h=(d=Array.from(document.getElementsByClassName("dialog-tint")).filter((function(e){return"none"!==getComputedStyle(e).display})),Math.max.apply(Math,d.map((function(e){return parseInt(getComputedStyle(e).zIndex,10)||0})))),f={};return h>0&&(f.zIndex=h+2),(0,i.jsxs)("div",{className:c,style:f,children:[(0,i.jsx)("div",{className:"dialog-tint",onClick:s}),(0,i.jsx)(l,{dialogId:t.id,context:t.context,supportNativeScroll:t.supportNativeScroll,onClose:u},t.id)]})},I=n(25672),S=function(e){var t=e.popup,n=e.onClose,o=(0,a.wA)(),s=I.A.menus[t.name],u=(0,r.useCallback)((function(e){o((0,w._E)({id:t.id,back:e.back}))}),[o,t.id]),c=(0,r.useCallback)((function(e){e.stopPropagation(),n()}),[n]),l=(0,r.useCallback)((function(){n()}),[n]),h=(0,r.useCallback)((function(e){e.preventDefault()}),[]);if(!s)throw new Error('ContextMenu "'.concat(t.name,"\" isn't registered"));return(0,i.jsxs)("div",{className:"contextmenu-container-panel",onContextMenu:h,children:[(0,i.jsx)(d._,{className:"dialog-tint",onTouchMove:l,onClick:c}),(0,i.jsx)(s,{menuId:t.id,parentMenuId:t.parentId,context:t.context,onClose:u,position:t.position,positionCalculationStrategy:t.positionCalculationStrategy})]})},P=function(){var e=(0,a.wA)(),t=(0,a.d4)(g.Io),n=(0,a.d4)(w.Io),o=n[n.length-1],s=(0,r.useCallback)((function(){o.type===b.n.ContextMenu?e((0,w._E)({id:o.id})):o.type===b.n.Dialog&&e((0,w.qn)({id:o.id,context:o.context}))}),[e,o]);if((0,r.useLayoutEffect)((function(){(null==o?void 0:o.type)===b.n.Dialog&&o.supportNativeScroll&&window.scrollTo(0,0)})),!n.length||t.length)return null;if(o.type===b.n.ContextMenu){var u=(0,_.fX)([],n,!0).reverse().find((function(e){return e.type===b.n.Dialog}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A,{popup:u,onClose:s}),(0,i.jsx)(S,{popup:o,onClose:s})]})}return o.type===b.n.Dialog?(0,i.jsx)(A,{popup:o,onClose:s}):null},x=n(62454),T=n(51425),k=n(31728),E=n(66374),M=n(54688),D=n(27602),N=n(75451),L=n(93230),V=n(45164),R=n(18752),H=n(12730),F=n(57324),B=n(73663),z=function(e){var t,n,o=e.children,s=(0,_.zs)((0,r.useState)({isScrollEnabled:!0,scrollY:null}),2),u=s[0],c=s[1],l=(t=u,n=(0,r.useRef)(void 0),(0,r.useEffect)((function(){n.current=t}),[t]),n.current),d=(0,a.d4)(B.oz);return u.isScrollEnabled!==d&&c(!1===d?{isScrollEnabled:!1,scrollY:window.scrollY}:(0,_.Cl)((0,_.Cl)({},u),{isScrollEnabled:!0})),(0,r.useEffect)((function(){l&&l.isScrollEnabled!==d&&(l.isScrollEnabled||null===l.scrollY||(window.scrollTo(0,l.scrollY),c((function(e){return(0,_.Cl)((0,_.Cl)({},e),{scrollY:null})}))))}),[d,l]),(0,i.jsx)(F.z.Provider,{value:u,children:o})},O=n(22496),j=n(30431),U=n(30212);function W(e){var t=e.refocusTargetActive,n=e.refocusTargetType,i=e.focusOnTarget,o=(0,a.wA)(),s=(0,r.useCallback)((function(e){e?o((0,D.cl)(e)):(0,U.z)("Refocus target is not defined")}),[o]),u=(0,r.useCallback)((function(e){o((0,D.P4)(e))}),[o]),c=(0,r.useCallback)((function(e){i(e)?s(e):(0,U.z)("Failed to switch focus to the target element",e)}),[i,s]),l=(0,r.useCallback)((function(e){u(e),function(e){for(var t=[],n=1;n0})),this.signInExternal=(0,o.debounce)((function(e){(0,h.tM)({system:e,enableAutologin:!0}).then((function(){return n.close()})).catch((function(e){return e&&e.code!==s.YF.CANCELLED?(n.errorMessage(e.message||"Unknown error"),setTimeout((function(){return n.resize()}),0),Promise.reject(e)):Promise.reject()}))}),300,{leading:!1,trailing:!0}),this.currentState.subscribe((function(e){n.errorMessage(""),n.header(d.Ay.val(n.resMapping[e])||""),setTimeout((function(){return n.resize()}),0)}))}return e.prototype.back=function(){this.currentState()===i.Signin?this.cancel():this.currentState(i.Signin)},e.prototype.resize=function(){this.dialog.resize()},e.prototype.cancel=function(){this.errorMessage(""),this.dialog.hide(c.d.Cancel)},e.prototype.close=function(){this.errorMessage(""),this.dialog.hide(c.d.Close)},e.prototype.setState=function(e){void 0===e&&(e=i.Signin),this.currentState(e)},e}(),p=function(){function e(){this.dialog=u.default.createInstance(),this.dialogModel=new f(this.dialog),this.dialogShowed=new a.B,this.dialogClosed=new a.B}return Object.defineProperty(e.prototype,"onShow",{get:function(){return this.dialogShowed.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onClose",{get:function(){return this.dialogClosed.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorMessage",{set:function(e){this.dialogModel.errorMessage(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{set:function(e){this.dialogModel.setState(e)},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.dialog.hide(c.d.Close)},e.prototype.show=function(){var e=this;this.dialog.show({templateName:"v7.Client.Dialogs.Signin.LoginRadius",model:this.dialogModel}).onShow((function(){return e.dialogShowed.next()})).onHide((function(t,n){return e.dialogClosed.next(n)}))},e.prototype.resize=function(){this.dialog.resize()},e}()},47935:function(e,t,n){"use strict";n.d(t,{q:function(){return P}});var i,r,o,a=n(58932),s=n(69463),u=n(96536),c=n(53308),l=n(27189),d=n(46977),h=n(94340),f=n(35765),p=n(16213),m=n(44260),g=n(88813),v=n(90922),y=n(9930),_=n(87995),b=n(66197),w=n(9605),C="login-container",A="registration-container",I=((i={})[y.j.signIn]=_.U.Signin,i[y.j.register]=_.U.Signup,i[y.j.resetPasswordRequestCode]=_.U.ResetPassword,i),S=((r={})[w.Zz.LOGIN]=_.U.Signin,r[w.Zz.REGISTRATION]=_.U.Signup,r[w.Zz.RESET_PASSWORD]=_.U.ResetPassword,r);!function(e){e[e.LINK_ALREADY_USED=974]="LINK_ALREADY_USED",e[e.LINK_EXPIRED=975]="LINK_EXPIRED",e[e.LINK_TOKEN_INVALID=1063]="LINK_TOKEN_INVALID",e[e.NEW_PASSWORD_INVALID=1015]="NEW_PASSWORD_INVALID",e[e.INVAlID_USER_PASSWORD=966]="INVAlID_USER_PASSWORD",e[e.USER_DOES_NOT_EXIST=938]="USER_DOES_NOT_EXIST",e[e.EMAIL_ADDRESS_TAKEN=936]="EMAIL_ADDRESS_TAKEN"}(o||(o={}));var P=function(){function e(){this.enabled=!1,this.loginSuccess=new s.B,this.modalClosed=new s.B,this.logoutSuccess=new s.B,this.onLoginSuccess=this.loginSuccess.asObservable(),this.onModalClosed=this.modalClosed.asObservable(),this.onLogoutSuccess=this.logoutSuccess.asObservable(),this.showScreenSet=this.showScreenSet.bind(this)}return e.prototype.load=function(){return(0,a.sH)(this,void 0,void 0,(function(){var e,t,n,i,r,o,s,u,c=this;return(0,a.YH)(this,(function(d){switch(d.label){case 0:return[4,Promise.all([l.A.loaded(),g.A.loaded(),m.Ay.loaded()])];case 1:if(d.sent(),!(e=l.A.get("Authentication.LoginRadius"))||!e.enabled)return[2,Promise.reject()];if(this.enabled=!0,window.LoginRadiusV2)return[3,5];this.dialog=new _.I,d.label=2;case 2:return d.trys.push([2,4,,5]),t=e.Options,n=e.Url,i=e.sso,r=e.endPoints,[4,Promise.all([(0,f.R)(n),(0,v.jZ)()])];case 3:return o=a.zs.apply(void 0,[d.sent(),2]),s=o[1],this.lrOptions=(0,a.Cl)((0,a.Cl)({},t),{verificationUrl:t.verificationUrl||window.location,resetPasswordUrl:t.resetPasswordUrl||window.location,sott:s}),this.endPoints=r||{},this.ssoConfig=i||{},this.initialize(),this.ssoConfig.enabled&&setTimeout((function(){c.initializeSSO()}),1e3),[3,5];case 4:return u=d.sent(),p.A.error(u),[2,Promise.reject()];case 5:return[2,Promise.resolve()]}}))}))},e.prototype.signIn=function(){this.showModal()},e.prototype.signOut=function(){this.lrObject.init("logout"),this.ssoConfig.enabled&&(0,c.lx)({url:this.ssoConfig.logoutUrl,requestConfig:{accept:"application/json",cache:"no-store"}}),this.logoutSuccess.next()},e.prototype.closeModal=function(){this.dialog.close()},e.prototype.showScreenSet=function(e){var t=I[e];if(void 0===t)throw new Error("screen ".concat(e," is not defined."));this.showModal(t)},e.prototype.showInlineScreenSet=function(e,t){this.showScreenSet(e)},e.prototype.initialize=function(){var e=this;this.lrObject=new window.LoginRadiusV2(this.lrOptions),this.lrObject.$hooks.register("afterFormRender",(function(t){return(0,a.sH)(e,void 0,void 0,(function(){var e;return(0,a.YH)(this,(function(n){switch(n.label){case 0:return e=Object.keys(S).find((function(e){return e.toLowerCase()===t.toLowerCase()})),S[e]===this.initialState&&(this.dialog.state=this.initialState,h.A.hide()),t!==w.Zz.LOGIN?[3,2]:[4,b.X.initDOM("#".concat(C))];case 1:return n.sent(),[3,4];case 2:return t!==w.Zz.REGISTRATION?[3,4]:[4,b.X.initDOM("#".concat(A))];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))})),this.lrObject.$hooks.call("setButtonsName",{forgotpassword:m.Ay.val("Dialogs.Signin.SendEmail"),login:m.Ay.val("Buttons.Login.Text"),registration:m.Ay.val("Buttons.SignUp")}),this.lrObject.$hooks.call("customizeFormLabel",{emailid:m.Ay.val("Accounting.EmailAddress"),password:m.Ay.val("Accounting.Password")}),this.lrObject.$hooks.call("mapErrorMessages",[{code:o.NEW_PASSWORD_INVALID,description:m.Ay.val("Errors.PasswordUnique","Your new password is too similar to your old passwords. Please provide a new password."),message:m.Ay.val("Errors.PasswordUnique","Your new password is too similar to your old passwords. Please provide a new password.")},{code:o.INVAlID_USER_PASSWORD,description:m.Ay.val("Dialogs.Signin.InvalidLoginOrPass","Invalid user name or password."),message:m.Ay.val("Dialogs.Signin.InvalidLoginOrPass","Invalid user name or password.")},{code:o.USER_DOES_NOT_EXIST,description:m.Ay.val("Dialogs.Signin.InvalidLoginOrPass","Invalid user name or password."),message:m.Ay.val("Dialogs.Signin.InvalidLoginOrPass","Invalid user name or password.")},{code:o.EMAIL_ADDRESS_TAKEN,description:m.Ay.val("Errors.LogonEmailUnique","Account with this email already exists"),message:m.Ay.val("Errors.LogonEmailUnique","Account with this email already exists")}]),this.loginWidget=new w.S9(C,this.lrObject),this.loginWidget.onSuccess.subscribe((function(t){e.loginSuccess.next(t),e.closeModal()})),this.loginWidget.onError.subscribe(this.onError.bind(this)),this.socialLoginWidget=new w.XY("sociallogin-container",this.lrObject,"sociallogintemplate",".social-login-interface"),this.socialLoginWidget.onSuccess.subscribe((function(t){e.loginSuccess.next(t),e.closeModal()})),this.socialLoginWidget.onError.subscribe(this.onError.bind(this)),this.forgotPasswordWidget=new w.JX("forgotpassword-container",this.lrObject),this.forgotPasswordWidget.onSuccess.subscribe((function(t){var n=m.Ay.val("Accounting.PasswordRecovery.EmailConfirmationIsSent");(0,d.A)().show(n),e.loginSuccess.next(t),e.closeModal()})),this.forgotPasswordWidget.onError.subscribe(this.onError.bind(this)),this.registrationWidget=new w.KS(A,this.lrObject),this.registrationWidget.onSuccess.subscribe((function(t){e.loginSuccess.next(t),e.closeModal()})),this.registrationWidget.onError.subscribe(this.onError.bind(this)),this.resetPasswordWidget=new w.ty("resetpassword-container",this.lrObject),this.resetPasswordWidget.onSuccess.subscribe((function(t){e.closeModal();var n=m.Ay.val("Accounting.PasswordRecovery.PasswordChanged");(0,d.A)().show(n),(0,d.A)().onClosed((function(){return e.signIn()}))})),this.resetPasswordWidget.onError.subscribe(this.onError.bind(this));var t=this.lrObject.util.getQueryParameterByName("vtype");t&&"reset"===t&&this.showModal(_.U.ResetPassword)},e.prototype.showModal=function(e){var t=this;void 0===e&&(e=_.U.Signin),this.initialState=e,this.dialog.onShow.pipe((0,u.$)()).subscribe((function(){return t.initForms()})),this.dialog.onClose.pipe((0,u.$)()).subscribe((function(e){return t.modalClosed.next(e)})),this.dialog.show()},e.prototype.initForms=function(){return(0,a.sH)(this,void 0,void 0,(function(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,h.A.show()];case 1:return e.sent(),this.loginWidget.initForm(),this.socialLoginWidget.initForm(),this.forgotPasswordWidget.initForm(),this.registrationWidget.initForm(),this.resetPasswordWidget.initForm(),[2]}}))}))},e.prototype.initializeSSO=function(){return(0,a.sH)(this,void 0,void 0,(function(){var e,t,n,i,r,o,s;return(0,a.YH)(this,(function(u){switch(u.label){case 0:return[4,(0,c.lx)({url:this.ssoConfig.loginUrl,requestConfig:{withCredentials:!0,accept:"application/json",cache:"no-store"}})];case 1:return(e=u.sent()).isauthenticated?(t=e.token,n=(0,c.lx)({url:"".concat(this.endPoints.token,"?apiKey=").concat(this.lrOptions.apiKey,"&jwtapp=").concat(this.lrOptions.integrationName,"&access_token=").concat(t),requestConfig:{accept:"application/json",cache:"no-store"}}),i=(0,c.lx)({url:"".concat(this.endPoints.account,"?apiKey=").concat(this.lrOptions.apiKey,"&access_token=").concat(t),requestConfig:{accept:"application/json",cache:"no-store"}}),[4,Promise.all([n,i])]):[3,3];case 2:r=a.zs.apply(void 0,[u.sent(),2]),o=r[0],s=r[1],o.signature&&this.loginSuccess.next({jwttoken:o.signature,access_token:t,Profile:s}),u.label=3;case 3:return[2]}}))}))},e.prototype.onError=function(e){this.dialog.errorMessage=e[0].Message,this.dialog.resize()},e}()},66197:function(e,t,n){"use strict";n.d(t,{X:function(){return i.X}});var i=n(88749)},88749:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var i=n(58932),r=n(16213),o=n(44260),a=function(){function e(){}return e.initDOM=function(t){return(0,i.sH)(this,void 0,void 0,(function(){var n,a,s,u,c;return(0,i.YH)(this,(function(i){if(n=document.querySelector("".concat(t)),a=n.querySelectorAll("[type=password]"))try{s=document.createElement("span"),u=e.DOM.class,s.setAttribute("aria-hidden","true"),(c=s.classList).add.apply(c,[u.pri,u.priHidden]),a.forEach((function(t){var n,i=document.createElement("a");(n=i.classList).add.apply(n,[u.btnHelp,u.btnIcon]),i.title=o.Ay.val(e.DOM.resources.showPassword),i.appendChild(s),t.after(i),e.addListeners(t,i,s)}))}catch(e){r.A.error("Unable to load show password button UI")}return[2]}))}))},e.addListeners=function(t,n,i){if(n&&i){var r=e.DOM.class;n.addEventListener("click",(function(){"password"===t.type?(t.type="text",n.title=o.Ay.val(e.DOM.resources.showPassword),i.classList.replace(r.priHidden,r.priVisible)):(t.type="password",n.title=o.Ay.val(e.DOM.resources.hidePassword),i.classList.replace(r.priVisible,r.priHidden)),t.focus()}))}},e.DOM={class:{pri:"pri",priHidden:"pri-hidden",priVisible:"pri-visible",btnIcon:"btn-icon",btnHelp:"btn-help"},resources:{showPassword:"Dialogs.SignIn.ShowPassword",hidePassword:"Dialogs.SignIn.HidePassword"}},e}()},68084:function(e,t,n){"use strict";n.d(t,{Yd:function(){return s},Zz:function(){return i}});var i,r,o=n(69463),a=n(16213);!function(e){e.FORGOT_PASSWORD="forgotPassword",e.LOGIN="login",e.SOCIAL_LOGIN="socialLogin",e.REGISTRATION="registration",e.VERIFY_EMAIL="verifyEmail",e.RESET_PASSWORD="resetPassword"}(i||(i={})),function(e){e.SUCCESS="identity-screen-success--active",e.ERROR="identity-screen-error--active",e.FORM="identity-screen-form--active"}(r||(r={}));var s=function(){function e(e){this.successSubject=new o.B,this.errorSubject=new o.B,this.onSuccessInternal=this.onSuccessInternal.bind(this),this.onErrorInternal=this.onErrorInternal.bind(this),this.widgetOptions={container:e,onError:this.onErrorInternal,onSuccess:this.onSuccessInternal}}return e.prototype.initForm=function(){document.querySelector("#".concat(this.widgetOptions.container))&&this.lrObject.init(this.widgetType,this.widgetOptions)},e.prototype.onSuccessInternal=function(e){this.successSubject.next(e)},e.prototype.onErrorInternal=function(e){a.A.error(e),this.errorSubject.next(e)},Object.defineProperty(e.prototype,"onSuccess",{get:function(){return this.successSubject.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this.errorSubject.asObservable()},enumerable:!1,configurable:!0}),e}()},43667:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(58932),r=n(68084),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.widgetType=r.Zz.FORGOT_PASSWORD,i.lrObject=n,i}return(0,i.C6)(t,e),t}(r.Yd)},9605:function(e,t,n){"use strict";n.d(t,{JX:function(){return a.J},KS:function(){return s.K},S9:function(){return r.S},XY:function(){return o.X},Zz:function(){return i.Zz},ty:function(){return u.t}});var i=n(68084),r=n(36764),o=n(4345),a=n(43667),s=n(39024),u=n(45223)},36764:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var i=n(58932),r=n(16213),o=n(68084),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.widgetType=o.Zz.LOGIN,i.lrObject=n,r.A.log("login widget created"),i}return(0,i.C6)(t,e),t}(o.Yd)},39024:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var i=n(58932),r=n(68084),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.widgetType=r.Zz.REGISTRATION,i.lrObject=n,i}return(0,i.C6)(t,e),t}(r.Yd)},45223:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var i=n(58932),r=n(68084),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.widgetType=r.Zz.RESET_PASSWORD,i.lrObject=n,i}return(0,i.C6)(t,e),t}(r.Yd)},4345:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(58932),r=n(68084),o=function(e){function t(t,n,i,o){var a=e.call(this,t)||this;return a.widgetType=r.Zz.SOCIAL_LOGIN,a.lrObject=n,a.widgetOptions.templateName=i,a.customInterface=o,a}return(0,i.C6)(t,e),t.prototype.initForm=function(){this.lrObject.customInterface(this.customInterface,this.widgetOptions),e.prototype.initForm.call(this),window.social_lrobj=this.lrObject},t}(r.Yd)},43582:function(e,t,n){"use strict";n.d(t,{y:function(){return m}});var i,r=n(58932),o=n(69463),a=n(96536),s=n(27189),u=n(35765),c=n(67303),l=n(8697),d=n(9930),h="offer_params",f="jwt_token",p=((i={})[d.j.signIn]="login",i),m=function(){function e(){var e=this;this._enabled=!1,this._experience=null,this.loginSuccess=new o.B,this.modalClosed=new o.B,this.identityAdapter=null,this.pianoEventHandlers={loggedIn:this.loggedIn.bind(this),closedCallback:this.closedCallback.bind(this)},this.pianoEndpoints={Janrain:{verify:function(t){return e.pianoCallApi("/anon/janrain/verifyAccountInfo",{janrain_capture_token:t.accessToken,url:window.location.href})}},Gigya:{verify:function(t){return e.pianoCallApi("/anon/gigya/verifyAccountInfo",{uid:t.UID,signature:t.UIDSignature,signature_timestamp:t.signatureTimestamp,url:window.location.href})}},LoginRadius:{verify:function(t){return(0,r.sH)(e,void 0,void 0,(function(){var e,n,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:localStorage.setItem(f,t.jwttoken),this.setExternalJWT(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.pianoCallApi("/anon/user/get",{uid:t.UID,user_token:t.jwttoken})];case 2:case 3:return r.sent(),[3,4];case 4:return[2,Promise.resolve({access:{user_token:t.jwttoken,user:{uid:null===(e=null==t?void 0:t.Profile)||void 0===e?void 0:e.Uid,email:null===(n=null==t?void 0:t.Profile)||void 0===n?void 0:n.Email[0].Value,firstName:null===(i=null==t?void 0:t.Profile)||void 0===i?void 0:i.FirstName,lastName:null===(o=null==t?void 0:t.Profile)||void 0===o?void 0:o.LastName}}})]}}))}))}}},this.showPurchaseDialog=this.showPurchaseDialog.bind(this),this.signIn=this.signIn.bind(this)}return e.prototype.load=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,n;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return[4,s.A.loaded()];case 1:if(i.sent(),!(e=s.A.get("Authentication.Piano"))||!e.enabled)return[2,Promise.reject()];if(this._enabled=!0,null===(n=window.tp)||void 0===n?void 0:n.pianoId)return[3,11];i.label=2;case 2:return i.trys.push([2,10,,11]),(t=e.experience)&&t.enabled?(this._experience=t,[4,(0,u.R)("".concat(t.url,"?aid=").concat(t.aid))]):[3,4];case 3:return i.sent(),[3,6];case 4:return[4,(0,u.R)(e.url)];case 5:i.sent(),i.label=6;case 6:return[4,this.initialize(e)];case 7:return i.sent(),this.setExternalJWT(),e.identityProvider?[4,this.initializeIdentityProvider(e.identityProvider)]:[3,9];case 8:i.sent(),i.label=9;case 9:return[3,11];case 10:return i.sent(),[2,Promise.reject()];case 11:return[2,Promise.resolve()]}}))}))},Object.defineProperty(e.prototype,"onLoginSuccess",{get:function(){return this.loginSuccess.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onModalClosed",{get:function(){return this.modalClosed.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"purchaseDialogEnabled",{get:function(){return null!==this._experience&&null!==this._experience.purchase},enumerable:!1,configurable:!0}),e.prototype.signOut=function(){window.tp.pianoId.logout()},e.prototype.signIn=function(){this.showScreenSet(d.j.signIn)},e.prototype.closeModal=function(){},e.prototype.showScreenSet=function(e){var t=p[e];if(!t)throw new Error("screen ".concat(e," is not defined."));window.tp.pianoId.show({screen:t})},e.prototype.showInlineScreenSet=function(e,t){var n=p[e];if(!n)throw new Error("screen ".concat(e," is not defined."));window.tp.pianoId.show({displayMode:"inline",containerSelector:t,screen:n})},e.prototype.showPurchaseDialog=function(){var e=this;return new Promise((function(t,n){e._experience&&e._experience.purchase||n();var i=e._experience.purchase;for(var r in i||{})window.tp.push([r,i[r]]);window.tp.push(["setCustomVariable","cid",c.A.cid()]),window.tp.push(["addHandler","checkoutClose",function(e){switch(e.state){case"checkoutCompleted":case"alreadyHasAccess":case"voucherRedemptionCompleted":t();break;case"close":n({userCancelled:!0})}}]),window.tp.push(["addHandler","loginRequired",function(t){localStorage.setItem(h,JSON.stringify(t)),e.loginSuccess.pipe((0,a.$)()).subscribe((function(e){var t=localStorage.getItem(h);t&&(localStorage.removeItem(h),t=JSON.parse(t),window.tp.offer.startCheckout(t))})),window.tp.offer.close(),e.signIn()}]),window.tp.experience.execute()}))},e.prototype.initialize=function(e){var t=this,n=e.Global;return new Promise((function(e){for(var i in n||{})"object"!=typeof n[i]&&window.tp.push([i,n[i]]);for(var i in n.Id||{})t.pianoEventHandlers[i]=n.Id[i];window.tp.push(["addHandler","checkoutComplete",function(e){t.loginSuccess.next({token:window.tp.user.getProvider().getToken(),user:{uid:e.uid,email:e.email}})}]),window.tp.push(["init",function(){window.tp.pianoId.init(t.pianoEventHandlers),e()}])}))},e.prototype.initializeIdentityProvider=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n=this;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return this.identityAdapter=l.A.create(e),[4,this.identityAdapter.load()];case 1:return i.sent(),this.signIn=this.identityAdapter.signIn.bind(this.identityAdapter),this.signOut=this.identityAdapter.signOut.bind(this.identityAdapter),this.closeModal=this.identityAdapter.closeModal.bind(this.identityAdapter),this.showScreenSet=this.identityAdapter.showScreenSet.bind(this.identityAdapter),this.showInlineScreenSet=this.identityAdapter.showInlineScreenSet.bind(this.identityAdapter),this.identityAdapter.onModalClosed.subscribe((function(e){return n.closedCallback.bind(n,e)()})),this.identityAdapter.onLoginSuccess.subscribe((function(t){return n.verifyAccountInfo(e,t)})),null===(t=this.identityAdapter.onLogoutSuccess)||void 0===t||t.subscribe(this.removeExternalJWT),[2]}}))}))},e.prototype.closedCallback=function(e){this.modalClosed.next(e)},e.prototype.loggedIn=function(e){this.loginSuccess.next(e)},e.prototype.verifyAccountInfo=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,this.pianoEndpoints[e].verify)(t)];case 1:return(n=i.sent()).access&&this.loginSuccess.next({token:n.access.user_token,user:{uid:n.access.user.uid,email:n.access.user.email,firstName:n.access.user.first_name,lastName:n.access.user.last_name}}),[2]}}))}))},e.prototype.pianoCallApi=function(e,t){return(0,r.sH)(this,void 0,Promise,(function(){return(0,r.YH)(this,(function(n){return[2,new Promise((function(n,i){try{window.tp.api.callApi(e,t,(function(e){e.code>0?i(new Error("Piano API failure: ".concat(JSON.stringify(e)))):n(e)}))}catch(e){i(e)}}))]}))}))},e.prototype.setExternalJWT=function(){var e=localStorage.getItem(f);e&&window.tp.push(["init",function(){window.tp.push(["setExternalJWT",e])}])},e.prototype.removeExternalJWT=function(){localStorage.getItem(f)&&localStorage.removeItem(f),window.tp.push(["setExternalJWT",null])},e}()},9930:function(e,t,n){"use strict";var i;n.d(t,{j:function(){return i}}),function(e){e[e.signIn=0]="signIn",e[e.forgotPassword=1]="forgotPassword",e[e.resetPasswordRequestCode=2]="resetPasswordRequestCode",e[e.register=3]="register"}(i||(i={}))},83414:function(e,t,n){"use strict";var i=n(58932),r=n(12010),o=n(13302),a=n(43125),s=n(7368),u=n(47027),c=n(96397),l={viewModel:function(){function e(e){var t=this;this.validateParameters(e),this.dateRangeDropDownOptions=e.dateRangeDropDownOptions,this.maxIssuesPerRow=e.maxIssuesPerRow,this.maxPreviousIssues=e.maxPreviousIssues,this.publications=e.publications.map((function(e){return e.cid=e.cid.toLowerCase(),e})),this.thumbnailWidth=e.thumbnailWidth,this.weekdaysClasses=e.weekdaysClasses,this.dateRangeInDays=r.observable(),this.loadMoreCounter=r.observable(1),this.previousIssues=r.observableArray([]),this.previousIssuesGroupedByDate=r.observableArray([]),this.oldestIssueDate=r.computed((function(){if(isNaN(Number(t.dateRangeInDays())))return new Date(0);var e=new Date;return e.setDate(e.getDate()-t.dateRangeInDays()*t.loadMoreCounter()),e})),this.numberOfPreviousIssuesLoaded=r.computed((function(){var e=(0,o.filter)(t.previousIssuesGroupedByDate(),(function(e){return e.date>=t.oldestIssueDate()})),n=0;return(0,o.forEach)(e,(function(e){(0,o.forEach)(e.rows,(function(e){n+=e.previousIssues.length}))})),n})),this.showingResultsText=r.computed((function(){return"Showing 1 - ".concat(t.numberOfPreviousIssuesLoaded()," of ").concat(t.previousIssues().length," results")})),this.isLoadLessButtonVisible=r.computed((function(){return t.loadMoreCounter()>1})),this.isLoadMoreButtonVisible=r.computed((function(){return t.numberOfPreviousIssuesLoaded()4)throw new Error("'maxIssuesPerRow' must be between 1 and 4.");if(!e.maxPreviousIssues)throw new Error("'maxPreviousIssues' was not specified.");if(e.maxPreviousIssues<=0)throw new Error("'maxPreviousIssues' must be greater than 0.");if(!e.publications)throw new Error("'publications' was not specified.");if(0===e.publications.length)throw new Error("'publications' is empty.");if((0,o.forEach)(e.publications,(function(e){if(!e.cid||!e.editionName)throw new Error("'publication.cid' or 'publication.editionName' is not defined.")})),e.thumbnailWidth<=0)throw new Error("'thumbnailWidth' must be greater than 0.");if(!e.weekdaysClasses)throw new Error("'weekdaysClasses' was not specified.");if(0===e.weekdaysClasses.length)throw new Error("'weekdaysClasses' is empty.");(0,o.forEach)(e.weekdaysClasses,(function(e){if(0!==e.weekday&&!e.weekday||!e.class)throw new Error("'weekdaysClasses.weekday' or 'weekdaysClasses.class' is not defined.")}))},e}(),template:'\n Date range in days \n \n \n \n\n \n \x3c!-- ko if: $data.date >= $component.oldestIssueDate() --\x3e\n
\n \n
\n
\n
\n
\n \x3c!-- ko foreach: $data.rows --\x3e\n
\n \x3c!-- ko foreach: $data.previousIssues --\x3e\n
\n \x3c!-- /ko --\x3e\n
\n \x3c!-- /ko --\x3e\n
\n
\n \n \x3c!-- /ko --\x3e\n
\n \n \n \x3c!-- ko if: isLoadLessButtonVisible --\x3e\n Load less \n \x3c!-- /ko --\x3e\n \x3c!-- ko if: isLoadMoreButtonVisible --\x3e\n Load more \n \x3c!-- /ko --\x3e\n '},d="previous-issues-thumbnails-grouped";r.components.isRegistered(d)||r.components.register(d,l)},78413:function(e,t,n){"use strict";var i=n(58932),r=n(12010),o=n(13302),a=n(7368),s=n(47027),u=(n(48326),n(60798)),c={viewModel:function(){function e(e){if(!e.cid)throw new Error("'cid' was not specified.");if(e.maxPreviousIssues<=0)throw new Error("'maxPreviousIssues' must be greater than 0.");if(e.thumbnailWidth<=0)throw new Error("'thumbnailWidth' must be greater than 0.");this.cid=e.cid,this.maxPreviousIssues=e.maxPreviousIssues,this.thumbnailWidth=e.thumbnailWidth,this.previousIssues=r.observableArray([]),this.slug=r.observable(),this.init()}return e.prototype.init=function(){var e=this;Promise.all([(0,s.jW)(this.cid),u.A.load(this.cid)]).then((function(t){var n=(0,i.zs)(t,1)[0];e.slug(n.slug);var r=u.A.getIssuesDates().slice(0,e.maxPreviousIssues);(0,o.forEach)(r,(function(t){var n=(0,a.TK)(e.cid,t,e.thumbnailWidth),i=parseInt(t.substr(0,4),10),r=parseInt(t.substr(4,2),10)-1,o=parseInt(t.substr(6,2),10),s={issueDateString:t,issueDateStringFormatted:new Date(i,r,o).toDateString(),issueUrl:"/".concat(e.slug(),"/").concat(t),thumbnailUrl:n};e.previousIssues.push(s)}))}))},e}(),template:'\n\n'},l="previous-issues-thumbnails";r.components.isRegistered(l)||r.components.register(l,c)},65458:function(e,t,n){"use strict";var i=n(12010),r=n(16213),o=n(70973),a={init:function(e,t){var n=t(),i=n.domEvents?n.domEvents.split(","):[];i.length?isNaN((null==n?void 0:n.value)||0)?r.A.log("[analyticsEvent] Invalid value parameter for element ".concat(e)):i.forEach((function(t){r.A.log("[analyticsEvent] Registering analyticsEvent for DOM event '".concat(t,"' on element ").concat(e)),e.addEventListener(t,(function(i){r.A.log("[analyticsEvent] Executing DOM event '".concat(t,"' on element ").concat(e," with data ").concat(i)),o.z.event({category:(null==n?void 0:n.category)||"DOM",action:(null==n?void 0:n.action)||t,label:(null==n?void 0:n.label)||"",value:+(null==n?void 0:n.value)||0})}))})):r.A.log("[analyticsEvent] Not DOM events defined for element ".concat(e))}};i.bindingHandlers.analyticsEvent=a},65665:function(e,t,n){"use strict";n(12010).bindingHandlers.attrAsync={init:function(e,t){var n=t();Object.keys(n).forEach((function(t){if(!n[t]||"function"!=typeof n[t].then)throw new Error("The function bound to '".concat(t,"' does not return a Promise. Use 'attr' binding instead."));n[t].then((function(n){e[t]=n}))}))}}},69216:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var i,r=n(58932),o=n(15397),a=n(8697);function s(){return i||(i=(0,r.sH)(this,void 0,void 0,(function(){var e,t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,o.sK)()];case 1:return n.sent(),(e=(0,o.Ct)("Authentication.ExternalAuthenticationProvider",""))?[4,(t=a.A.create(e)).load()]:[3,3];case 2:return n.sent(),[2,t];case 3:return[2,null]}}))}))),i}},25118:function(e,t,n){"use strict";n.r(t);var i=n(58932),r=n(27189),o=n(46977),a=n(95952),s=n(44260),u=function(e){return void 0===e&&(e=""),(0,o.A)().show(s.Ay.val("Errors.PrintingNotSupportedByBrowser","This browser doesn't support printing, use another browser if you want to use this feature.")+e)},c=function(e,t){for(var n=[],r=2;rt}))})),b={_getThumbUrl:function(){return(v.A.get("imageServers.thumbs")||[])[0]},getThumbUrlByRegionKey:function(e,t,n,i){var r=this._getThumbUrl();return r?r+"?regionKey="+e+"&file="+t+"&scale="+n+(i?"&ver="+i:""):null},getThumbUrlByCidForWidth:function(e,t,n,i){var r=this._getThumbUrl(),o="";return r?(i&&y.support.retina&&(t*=2,o="&retina=2"),t=parseInt(t,10)||160,r+"?cid="+e+"&page="+(n||1)+"&width="+(t=this._adjustPageImageWidth(t))+o):null},getThumbUrlByCidForHeight:function(e,t,n){var i=this._getThumbUrl();return i?i+"?cid="+e+"&page="+(n||1)+"&height="+t:null},getThumbUrlByCidAndDateForHeight:function(e,t,n,i,r){var o=this._getThumbUrl();if(!o)return null;if("string"!=typeof t){var a=t.getMonth()+1,s=t.getDate();t=t.getFullYear()+(a<10?"0":"")+a+(s<10?"0":"")+s}return r&&y.support.retina&&(n*=2,n+="&retina=2"),o+"?cid="+e+"&date="+t+"&page="+(i||1)+"&height="+n},getThumbUrlByIssueForWidth:function(e,t,n,i){var r=this._getThumbUrl();if(!r)return null;var o="";return t=parseInt(t,10)||160,i&&y.support.retina&&(t*=2,o="&retina=2"),r+"?file="+e+"&page="+(n||1)+"&width="+(t=this._adjustPageImageWidth(t))+o},getFirstPageThumbUrlByIssueForWidth:function(e,t,n,i){var r=this._getThumbUrl();if(!r)return null;var o="";return t=parseInt(t,10)||160,i&&y.support.retina&&(t*=2,o="&retina=2"),r+"?file="+e+"&page="+(n||1)+"&width="+(t=this._adjustFirstPageImageWidth(t))+o},getThumbUrlByIssueForHeight:function(e,t,n,i){var r=this._getThumbUrl();if(!r)return null;var o="";return t=parseInt(t,10),i&&y.support.retina&&(t*=2,o="&retina=2"),r+"?file="+e+"&page="+(n||1)+"&height="+(t=this._adjustPageImageHeight(t))+o},getThumbUrlForScale:function(e,t,n,i){var r=this._getThumbUrl();return r?r+"?file="+e+"&page="+(n||1)+"&scale="+t+(i?"&ver="+i:""):null},getPictureUrlByIssueForScale:function(e,t,n,i,r){var o=this._getThumbUrl();return o?o+"?regionguid="+t+"&scale="+i+"&file="+e+"®ionKey="+n+(r?"&ver="+r:""):null},getPageImageUrl:function(e,t,n,i,r){var o=this._calculateZoom(t,n,i.width,i.height);if(!o)return null;var a=(v.A.get("imageServers.pages")||[])[0];return a?a+"?file="+e+"&page="+t+"&scale="+o+(r?"&layer="+r:""):null},getPageImageScale:function(e,t,n){return this._calculateZoom(e,t,n.width,n.height)},_calculateZoom:function(e,t,n,i){var r=t.width/100,o=t.height/100;if(n&&n>0)var a=Math.floor(n/r);if(i&&i>0)var s=Math.floor(i/o);var u=v.A.get("pageSizes.pageSizes")||[],c=v.A.get("pageSizes.firstPageSizes")||[],l=[u];1==e&&l.push(c);var d=0;if(a)for(var h=0;h=0;f--)!(_=m[f].w)||_>n||(y=Math.floor(_/r))>a||(g=m[f].h)&&(y=Math.min(y,Math.floor(g/o)))>a||(d=Math.max(d,y));var p=0;if(s)for(h=0;h=0;f--){var g,y,_;!(g=m[f].h)||g>i||(y=Math.floor(g/o))>s||(_=m[f].w)&&(y=Math.min(y,Math.floor(_/r)))>s||(p=Math.max(p,y))}}return Math.min(d||p,p||d)},_adjustPageImageWidth:function(e){var t=e,n=(v.A.get("pageSizes.pageSizes")||[]).filter((function(e){return e.w>0}));if(!(0,o.isEmpty)(n)){var i=(0,o.find)(n,(function(t){return t.w>e}));t=i?i.w:(0,o.last)(n).w}return t},_adjustFirstPageImageWidth:function(e){var t=e,n=v.A.get("pageSizes.pageSizes")||[],i=v.A.get("pageSizes.firstPageSizes")||[],r=_(n,i);(0,o.isEmpty)(r)||(t=(0,o.find)(r,(function(t){return t>e}))||(0,o.last)(r));return t},_adjustPageImageHeight:function(e){var t=e,n=(v.A.get("pageSizes.pageSizes")||[]).filter((function(e){return e.h>0}));if(!(0,o.isEmpty)(n)){var i=(0,o.find)(n,(function(t){return t.h>e}));t=i?i.h:(0,o.last)(n).h}return t}},w=(n(96723),n(29583)),C=function(){function e(e,t,n){if(t>0&&e.Width>0){var i=100*t/e.Width;return Math.min(i,n)}return 0}function t(e,t,n){if(t>0&&e.Height>0){var i=100*t/e.Height;return Math.min(i,n)}return 0}return w.nd.imageSource={getPictureUrlByIssueForWidth:function(e,t,n,i,r){var o=Math.floor(100*r/i);return this.getPictureUrlByIssueForScale(e,t,n,o)},getPictureUrlByIssueForHeight:function(e,t,n,i,r){var o=Math.floor(100*r/i);return this.getPictureUrlByIssueForScale(e,t,n,o)},getPictureUrlByIssueForSize:function(e,t,n,i,r){var o=i.width||i.Width,a=r.width||r.Width,s=i.height||i.Height,u=r.height||r.Height,c=Math.floor(100*a/o),l=Math.floor(100*u/s);return this.getPictureUrlByIssueForScale(e,t,n,Math.min(c,l))},getPictureUrlByIssueForScale:function(e,t,n,i,r){return e.issue&&(e=e.issue),b.getPictureUrlByIssueForScale(e,t,n,i,r)},getThumbUrlByIssueForWidth:function(e,t,n,i){return e.issue&&(e=e.issue),b.getThumbUrlByIssueForWidth(e,t,n,i)},getFirstPageThumbUrlByIssueForWidth:function(e,t,n,i){return e.issue&&(e=e.issue),b.getFirstPageThumbUrlByIssueForWidth(e,t,n,i)},getThumbUrlByIssueForHeight:function(e,t,n,i){return e&&e.issue&&(e=e.issue),b.getThumbUrlByIssueForHeight(e,t,n,i)},getThumbUrlByCidForWidth:function(e,t,n,i){if(e){if(e.cid){var r=e;if(r.issueInfo)return this.getThumbUrlByIssueForWidth(r.issueInfo,t,n,i);e=r.cid}return b.getThumbUrlByCidForWidth(e,t,n,i)}return null},getThumbUrlByCidForHeight:function(e,t){if(e){if(e.cid){var n=e;if(n.issueInfo)return this.getThumbUrlByIssueForHeight(n.issueInfo,t);e=n.cid}return b.getThumbUrlByCidForHeight(e,t)}return null},getThumbUrlByCidAndDateForHeight:function(e,t,n,i){return b.getThumbUrlByCidAndDateForHeight(e,t,n,1,i)},getThumbUrlForScale:function(e,t,n,i){return b.getThumbUrlForScale(e,t,n,i)},getPageImageUrlByPageInfo:function(e,t,n){return this.getPageImageUrl(e,t.pageNumber,t,n)},getPageImageUrl:function(e,t,n,i,r){return b.getPageImageUrl(e,t,n,i,r)},getPageImageScale:function(e,t,n){return b.getPageImageScale(e,t,n)},getThumbUrlByRegionKey:function(e,t,n,i){return b.getThumbUrlByRegionKey(e,t,n,i)},getFirstImage:function(n){var i=null;if(n)for(var r=0;r10||o.Width/o.Height>10)){var a=o.Width/o.Height;if(a>.7&&a<2){var s=e(o,600,400),u=t(o,120,400);if(s<=0||u<=0)continue;if(null==i){i=o;continue}if(o.Width>i.Width||o.Height>i.Height){i=o;continue}}}}return i}}}(),A=n(22537),I=n(47470),S=n(16343),P=n(65678),x=n(44260),T=(n(2293),n(25118)),k=n(95952),E=n(50911),M=n(73814),D=n(70989),N=n(55383),L=(0,a.Ct)("features.print.ios.scale",.9),V={};function R(e){return e?(0,o.unescape)(e.replace(/(\r\n|\n|\r)/gm," ")):e}function H(e,t,n){T.default.print(n,(function(n,i){x.Ay.templates.renderTo(e,t,n),i()}))}function F(e,t,n){if(t>0&&e.Width>0){var i=100*t/e.Width;return Math.min(i,n)}return 0}function B(e,t,n){if(t>0&&e.Height>0){var i=100*t/e.Height;return Math.min(i,n)}return 0}function z(e,t){var n;t||(t=event),t.target?n=r(t.target):t.srcElement&&(n=t.srcElement);var i=n.parent();i.width(n.width()),i.height(n.height())}function O(e){return new Promise((function(t,n){var i=new Image(e.W,e.H);i.onload=function(){return t(i)},i.onerror=n,i.src=e.Src}))}function j(e,t){(0,k.jF)();var n=document.createElement("div");n.classList.add(k.rg);var i=document.title;return Promise.all(e.map(O)).then((function(e){e.forEach((function(t,i){var r;n.appendChild(t),i0)for(var i=0;i10||a.Width/a.Height>10)){var s=a.Width/a.Height;if(s>.7&&s<2){var u=F(a,600,400),c=B(a,120,400);if(u<=0||c<=0)continue;if(null==n){n=a;continue}if(a.Width>n.Width||a.Height>n.Height){n=a;continue}}}}t.firstImage=n,n?((a=new Image).src=n.Url,r(a).load((function(){H("Print.ArticleText",t,e.Title)}))):H("Print.ArticleText",t,e.Title)}},V.printPage=function(e,t,n,r){return(0,i.sH)(this,void 0,void 0,(function(){var o,a,s=this;return(0,i.YH)(this,(function(u){switch(u.label){case 0:return n=n&&n.issue&&n.issue()||n||e.Issue.Id,o=t.map((function(t){return t||e.Page&&e.Page.number||e.Page})).sort((function(e,t){return e-t})),[4,f(n,o)];case 1:return u.sent(),E.A.onPrint((function(t,a){return(0,i.sH)(s,void 0,void 0,(function(){var t,s;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return t=o.map((function(e){return d(n,e,a.paperSize,a.scale,a.scaleToLandscape)})),[4,Promise.all(t)];case 1:return s=i.sent(),(S.j.iPad||S.j.iPhone)&&s.forEach((function(e){e.H*=L,e.W*=L})),[4,j(s,r||e.Title)];case 2:return i.sent(),[2]}}))}))})),a=o.map((function(e){return{url:(0,m.Fv)(n,180,e),imgLoaded:z}})),E.A.show({thumbs:a}),[2]}}))}))};var U=V,W=(0,a.Ct)("features.print.ios.scale",.9),Y=[2];function X(e){return e?(0,o.unescape)(e.replace(/(\r\n|\n|\r)/gm," ")):e}function q(e,t,n){if(t>0&&e.Width>0){var i=100*t/e.Width;return Math.min(i,n)}return 0}function G(e,t,n){if(t>0&&e.Height>0){var i=100*t/e.Height;return Math.min(i,n)}return 0}function K(e,t){var n;t||(t=event),t.target?n=r(t.target):t.srcElement&&(n=t.srcElement);var i=n.parent();i.width(n.width()),i.height(n.height())}function J(e){return new Promise((function(t,n){var i=new Image(e.W,e.H);i.onload=function(){return t(i)},i.onerror=function(){return n(new Error("Image Load Error: "+e.Src))},i.src=e.Src}))}function Q(e,t){return(0,i.sH)(this,void 0,void 0,(function(){var n=this;return(0,i.YH)(this,(function(r){return[2,T.default.print(t,(function(t){return(0,i.sH)(n,void 0,void 0,(function(){var n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,,2,3]),[4,Promise.all(e.map(J))];case 1:return(n=i.sent()).forEach((function(e,i){var r;t.appendChild(e),i0)for(o=0;o10||a.Width/a.Height>10)&&(s=a.Width/a.Height)>.7&&s<2){if(u=q(a,600,400),c=G(a,120,400),u<=0||c<=0)continue;if(null==n){n=a;continue}if(a.Width>n.Width||a.Height>n.Height){n=a;continue}}return t.firstImage=n,[4,n?new Promise((function(e,t){var i=new Image;i.onload=e,i.onerror=t,i.src=n.Url})):Promise.resolve()];case 1:return i.sent(),function(e,t,n){T.default.print(n,(function(e){return x.Ay.templates.renderTo("Print.ArticleText",t,r(e))}))}(0,t,e.Title),[2]}}))}))},printCustomArea:function(e,t,n){return(0,i.sH)(this,void 0,void 0,(function(){var r,o,a=this;return(0,i.YH)(this,(function(s){switch(s.label){case 0:return t=t||e.Page,[4,f(n=n&&n.issue&&n.issue()||n||e.Issue.Id,[t])];case 1:return(r=s.sent())?[4,(0,g.A)().show(r,"",x.Ay.val("Buttons.Ok.Text"),!0)]:[3,3];case 2:s.sent(),s.label=3;case 3:return o=new Promise((function(r,o){M.A.onPrint((function(s,u){return(0,i.sH)(a,void 0,void 0,(function(){var a,s,c=this;return(0,i.YH)(this,(function(d){switch(d.label){case 0:E.A.onPrint((function(o,a){return(0,i.sH)(c,void 0,void 0,(function(){return(0,i.YH)(this,(function(i){switch(i.label){case 0:N.Ay.show(),i.label=1;case 1:return i.trys.push([1,,4,5]),[4,l(n,t,a.paperSize,u.top,u.left,u.width,u.height,a.scale,a.scaleToLandscape)];case 2:return[4,Q([i.sent()],e?e.Title:"")];case 3:return i.sent(),[3,5];case 4:return N.Ay.hide(),[7];case 5:return r(),[2]}}))}))})),E.A.onCancel((function(){o()})),a=[],N.Ay.show(),d.label=1;case 1:return d.trys.push([1,,3,4]),[4,l(n,t,"Thumbnail",u.top,u.left,u.width,u.height,!1,!1)];case 2:return s=d.sent(),a.push({url:s.Src,imgLoaded:K}),E.A.show({thumbs:a}),[3,4];case 3:return N.Ay.hide(),[7];case 4:return[2]}}))}))})),M.A.onCancel((function(){o()}))})),A.Ay.root().topPanel().show(),M.A.show(t),[2,o]}}))}))},printCustomAreaV1:U.printCustomAreaV1,printEntireIssue:function(e,t,n){return(0,i.sH)(this,void 0,void 0,(function(){var r,o,a=this;return(0,i.YH)(this,(function(s){switch(s.label){case 0:return t=t&&t.issue&&t.issue()||t||e.Issue.Id,n=n||e&&e.Title||"",[4,f(t,Y)];case 1:return(r=s.sent())?[4,(0,g.A)().show(r,"",x.Ay.val("Buttons.Ok.Text"),!0)]:[3,3];case 2:s.sent(),s.label=3;case 3:return o=new Promise((function(e,r){E.A.onPrint((function(r,o){return(0,i.sH)(a,void 0,void 0,(function(){return(0,i.YH)(this,(function(i){switch(i.label){case 0:E.A.hide(),N.Ay.show(),i.label=1;case 1:return i.trys.push([1,,4,5]),[4,h(t,o.paperSize,o.scale,o.scaleToLandscape)];case 2:return[4,Q(i.sent(),n)];case 3:return i.sent(),[3,5];case 4:return N.Ay.hide(),[7];case 5:return e(),[2]}}))}))})),E.A.onCancel((function(){r()}))})),E.A.showWarning(),[2,o]}}))}))},printPage:function(e,t,n,r){return(0,i.sH)(this,void 0,void 0,(function(){var o,a,s,u,c=this;return(0,i.YH)(this,(function(l){switch(l.label){case 0:return n=n&&n.issue&&n.issue()||n||e.Issue.Id,o=t.map((function(t){return t||e.Page&&e.Page.number||e.Page})).sort((function(e,t){return e-t})),[4,f(n,o)];case 1:return(a=l.sent())?[4,(0,g.A)().show(a,"",x.Ay.val("Buttons.Ok.Text"),!0)]:[3,3];case 2:l.sent(),l.label=3;case 3:return s=new Promise((function(t,a){E.A.onPrint((function(a,s){return(0,i.sH)(c,void 0,void 0,(function(){var a,u;return(0,i.YH)(this,(function(i){switch(i.label){case 0:N.Ay.show(),i.label=1;case 1:return i.trys.push([1,,4,5]),a=o.map((function(e){return d(n,e,s.paperSize,s.scale,s.scaleToLandscape)})),[4,Promise.all(a)];case 2:return u=i.sent(),(S.j.iPad||S.j.iPhone)&&u.forEach((function(e){e.H*=W,e.W*=W})),[4,Q(u,r||e.Title)];case 3:return i.sent(),[3,5];case 4:return N.Ay.hide(),[7];case 5:return t(),[2]}}))}))})),E.A.onCancel((function(){a()}))})),u=o.map((function(e){return{url:(0,m.Fv)(n,180,e),imgLoaded:K}})),E.A.show({thumbs:u}),[2,s]}}))}))}}},29684:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var i=n(58932),r=n(13302),o=n(27189),a=n(35765);function s(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return[4,o.A.loaded()];case 1:return n.sent(),e=o.A.get("CDNResources")||[],t=(0,r.map)((0,r.filter)(e,(function(e){return e.enabled})),(function(e){return(0,a.R)(e.src,(0,i.Cl)({async:e.async},e))})),[4,Promise.all(t)];case 2:return n.sent(),[2]}}))}))}},28067:function(e,t,n){"use strict";n.d(t,{bJ:function(){return A}});var i=n(58932),r=n(13302),o=n(12030),a=n(26906),s=n(43125),u=n(65678),c=n(73035),l=n(27189),d=n(84901),h=n(39022),f=n(16213),p=n(67303),m=n(60102),g=n(44080),v=n(51352),y=n(64609);function _(e){return e.latest?function(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,o.Px)({orderBy:{name:a.Xy.LatestIssueDate,order:a.xB.Descending},limit:1})];case 1:return[2,(null==(e=t.sent())?void 0:e.items)&&e.items.length>0?{newspaper:e.items[0].slug,cid:e.items[0].cid}:{}]}}))}))}():e.cid?Promise.resolve({cid:e.cid}):e.issue?Promise.resolve({cid:(0,s.qT)(e.issue)}):e.newspaper?(0,c.vG)(e.newspaper):e.articleId?(0,c.jd)(e.articleId):l.A.getAsync("catalog.MasterCid").then((function(e){return e?Promise.resolve({cid:e}):Promise.reject()}))}function b(e){h.A.update(e);var t=new URLSearchParams(window.location.search);if(t.has("token")){t.delete("token");var n=d.A.getState(),i=window.location.href.replace(window.location.search,"?".concat(t));d.A.replaceState(i,(0,r.extend)({},n.state,e))}return _(e).then((function(t){return e.cid=t.cid,p.A.show(e),e.commentKey&&e.articleId&&p.A.layoutLoaded((function(){y.A.show({articleId:e.articleId,markerCommentId:e.commentKey})})),Promise.resolve()}))}function w(e,t){return t.newspaper?b(t):function(e,t){return new Promise((function(n,i){var o=t.issue?(0,s.qT)(t.issue):t.cid;_(t).then((function(e){return e.publication?Promise.resolve(e):(0,c.WD)(e.cid)})).then((function(i){if(i.cid!==o){t.cid=i.cid;var a=d.A.getState(),u=window.location.href.replace(o,i.cid);d.A.replaceState(u,(0,r.extend)({},a.state,t))}t.newspaper=i.publication,i.cid&&(t.cid=i.cid),i.issueDate?t.issueDate=i.issueDate:t.issue&&(t.issueDate=(0,s.ph)(t.issue)),i.articleId&&(t.articleId=i.articleId),e.generateUrl(t).then((function(e){if(e){var i=d.A.getState();d.A.replaceState(e.url,(0,r.extend)({},i.state,t))}n(t)})).catch((function(e){f.A.error(e),n(t)}))})).catch(i)}))}(e,t).then((function(e){return b(e)}))}var C=!1;function A(e){C||(C=!0,(0,g.U)(e,{executeWith:function(t){return w(e,t)}}),(0,v.U)(e,{executeWith:function(t){return w(e,t)}}),(0,m.b)(e,{viewName:u.lP.ReadingMap,executeWith:function(t){return w(e,t)}}))}},14265:function(e,t,n){"use strict";var i=n(13981),r=n(27602),o=n(65678),a=n(27189);t.A={goHome:function(){(0,i.JD)((0,r.sh)({viewName:o.lP.TextView,params:{cid:a.A.get("catalog.MasterCid")}}))}}},41613:function(e,t,n){"use strict";var i,r=n(43125),o=n(82788),a=n(6176),s=n(67303),u=n(70973),c="NewspaperView",l=((i={})[a.wf.ActivePageChanged]="activepagechanged",i[a.wf.PageDoubleClicked]="pagedoubleclick",i[a.wf.PageViewZoomChanging]="zoomChanging",i[a.wf.PageViewPinch]="pinch",i[a.wf.PageViewPan]="pan",i[a.wf.PageViewZoomChanged]="zoom",i[a.wf.PageViewExternalLink]="externallink",i[a.wf.PageView]="pageview",i);o.X.ofType(a.wf.PageView).subscribe((function(e){var t={cid:s.A.cid(),issueDate:(0,r.M6)(s.A.issue()),pageNumber:e.payload.pageNumber};u.z.pageView({page:"".concat(window.location.pathname.replace(/(\/\d{8}).*|(\/pageview).*/,""),"/").concat(t.issueDate.replace(/-/g,""),"/page/").concat(t.pageNumber),context:t})})),o.X.ofType(a.wf.ActivePageChanged,a.wf.PageDoubleClicked,a.wf.PageViewZoomChanging,a.wf.PageViewPinch,a.wf.PageViewPan).subscribe((function(e){var t={cid:s.A.cid(),issueDate:(0,r.M6)(s.A.issue()),pageNumber:e.payload.pageNumber},n=l[e.type];u.z.event({category:c,action:n,label:"".concat(t.issueDate,"/").concat(e.payload.pageNumber),context:t})})),o.X.ofType(a.wf.PageViewZoomChanged).subscribe((function(e){var t=Number(e.payload.scale);if(t>1){var n={cid:s.A.cid(),issueDate:(0,r.M6)(s.A.issue()),pageNumber:e.payload.pageNumber,zoomFactor:t},i=l[e.type];u.z.event({category:c,action:i,context:n})}})),o.X.ofType(a.wf.PageViewExternalLink).subscribe((function(e){return u.z.event({category:c,action:l[e.type],label:e.payload.target})}))},69733:function(e,t,n){"use strict";var i,r=n(82788),o=n(70973),a=n(84215),s=n(65795),u=((i={})[s.wf.AddPaymentInfo]=a.a.AddPaymentInfo,i[s.wf.AddToCart]=a.a.AddToCart,i[s.wf.BeginCheckout]=a.a.BeginCheckout,i[s.wf.CheckoutProgress]=a.a.CheckoutProgress,i[s.wf.PromoClick]=a.a.SelectContent,i[s.wf.Purchase]=a.a.Purchase,i[s.wf.RemoveFromCart]=a.a.RemoveFromCart,i[s.wf.SetCheckoutOption]=a.a.SetCheckoutOption,i);r.X.ofType(s.wf.AddPaymentInfo,s.wf.AddToCart,s.wf.BeginCheckout,s.wf.CheckoutProgress,s.wf.PromoClick,s.wf.Purchase,s.wf.RemoveFromCart,s.wf.SetCheckoutOption).subscribe((function(e){o.z.transaction({data:e.payload,type:u[e.type]})}))},65795:function(e,t,n){"use strict";n.d(t,{Aq:function(){return c},Gy:function(){return l},UA:function(){return s},eP:function(){return d},nt:function(){return u},wf:function(){return i},xS:function(){return h}});var i,r=n(58932);!function(e){e.AddPaymentInfo="[Ecommerce] Add Payment Info",e.AddToCart="[Ecommerce] Add to Cart",e.BeginCheckout="[Ecommerce] Begin Checkout",e.CheckoutProgress="[Ecommerce] Checkout Progress",e.PromoClick="[Ecommerce] Select Content / Promotion Click",e.Purchase="[Ecommerce] Purchase",e.RemoveFromCart="[Ecommerce] Remove from Cart",e.SetCheckoutOption="[Ecommerce] Set Checkout Option",e.PurchaseCompleted="[Purchase] PurchaseCompleted"}(i||(i={}));var o,a=function(e){this.payload=e},s=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.AddPaymentInfo,t}return(0,r.C6)(t,e),t}(a),u=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.AddToCart,t}return(0,r.C6)(t,e),t}(a),c=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.BeginCheckout,t}return(0,r.C6)(t,e),t}(a),l=(o=a,(0,r.C6)((function(){var e=o.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return e.type=i.CheckoutProgress,e}),o),function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PromoClick,t}return(0,r.C6)(t,e),t}(a)),d=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.Purchase,t}return(0,r.C6)(t,e),t}(a),h=(function(e){(0,r.C6)((function(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.RemoveFromCart,t}),e)}(a),function(e){(0,r.C6)((function(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.SetCheckoutOption,t}),e)}(a),function(e){this.payload=e,this.type=i.PurchaseCompleted})},82402:function(e,t,n){"use strict";var i=n(22410);n(1255),n(6054),n(70783),n(74513),n(36028),n(82911),n(5838),n(91637),n(48325),n(82267),n(55194),n(70581),n(73900),i.yU.prototype.dispose=function(){return console.trace&&console.trace("RXJS.Subscription.dispose() is obsolete. Please use .unsubscribe() instead."),i.yU.prototype.unsubscribe.apply(this,arguments)}},45221:function(e,t,n){"use strict";var i=n(84832);t.A=i},445:function(e,t,n){"use strict";var i=n(85461);t.A=i},56096:function(e,t,n){"use strict";var i=n(15451);t.A=i},42022:function(e,t,n){"use strict";var i;n.d(t,{e:function(){return r},w:function(){return i}}),function(e){e.SidebarMenu="[ContextMenu] SidebarMenu"}(i||(i={}));var r=function(e){this.payload=e,this.type=i.SidebarMenu}},68092:function(e,t,n){"use strict";n.d(t,{z:function(){return i.z}});var i=n(13834);n(9702)},9702:function(e,t,n){"use strict";var i=n(58932),r=n(53308),o=n(82788),a=n(65795);function s(e,t){var n=new URL("".concat(window.location.origin).concat(window.basePath,"Subscription/").concat(e)),i=new URLSearchParams(n.search);return i.append("promoCode",t),(0,r.lx)({url:"".concat(n,"?").concat(i),requestConfig:{cache:"no-store"}})}t.A={validatePromoCode:function(e){return(0,i.sH)(void 0,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return e.trim()?[4,s("ValidatePromoCode",e)]:[2,Promise.resolve({isValid:!1})];case 1:return(t=n.sent())&&t.isValid&&function(e){var t=[{id:"PromoCode",name:e}];o.X.send(new a.Gy({promotions:t}))}(e),[2,t]}}))}))},getPromoSubscriptions:function(e){return s("GetPromoSubscriptions",e)}}},13834:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var i=n(83534),r=(0,n(1435).J)({expire:5e3});function o(){var e="CurrentSubscription",t=r.get(e);return t||(t=(0,i.zN)(),r.set(e,t)),t}},93134:function(e,t,n){"use strict";var i;n.d(t,{$4:function(){return c},FV:function(){return m},GM:function(){return o},Ij:function(){return h},J$:function(){return s},ME:function(){return u},Nw:function(){return r},Ok:function(){return d},U1:function(){return a},XO:function(){return l},Y5:function(){return g},cm:function(){return p},hm:function(){return f},wf:function(){return i}}),function(e){e.ArticleExpandRequested="[TextView] ArticleExpandRequested",e.ArticleOpened="[TextView] ArticleOpened",e.ArticleViewed="[TextView] ArticleViewed",e.ArticleExpanded="[TextView] ArticleExpanded",e.PageChanged="[TextView] PageChanged",e.CommonPageChanged="[TextView] CommonPageChanged",e.IssuePageChanged="[TextView] IssuePageChanged",e.SmartFlowAction="[TextView] SmartFlowAction",e.IssueTextViewAction="[TextView] IssueTextViewAction",e.SmartFlowClick="[TextView] Click",e.SmartFlowDoubleClick="[TextView] SmartFlowDoubleClick",e.SmartFlowReadMore="[TextView] SmartFlowReadMore",e.SmartFlowContextMenuRequested="[TextView] SmartFlowContextMenuRequested",e.SmartFlowPinch="[TextView] SmartFlowPinch",e.SmartFlowGesturesEnd="[TextView] SmartFlowGesturesEnd",e.SmartFlowGesturesStart="[TextView] SmartFlowGesturesStart",e.AdvertisementLoading="[TextView] AdvertisementLoading",e.AdvertisementLoaded="[TextView] AdvertisementLoaded",e.AdvertisementLoadFailed="[TextView] AdvertisementLoadFailed",e.AdvertisementGeneral="[TextView] AdvertisementGeneral",e.AdvertisementImpression="[TextView] AdvertisementImpression",e.ShowRelatedWithAd="[TextView] ShowRelatedWithAd",e.RelatedAdAvailable="[TextView] RelatedAdAvailable",e.TranslateArticle="[TextView] TranslateArticle",e.TranslateIssue="[TextView] TranslateIssue"}(i||(i={}));var r=function(e){this.payload=e,this.type=i.ArticleExpandRequested},o=function(e){this.payload=e,this.type=i.ArticleExpanded},a=function(e){this.payload=e,this.type=i.ArticleOpened},s=function(e){this.payload=e,this.type=i.ArticleViewed},u=function(e){this.payload=e,this.type=i.PageChanged},c=function(e){this.payload=e,this.type=i.CommonPageChanged},l=function(e){this.payload=e,this.type=i.IssuePageChanged},d=function(e){this.payload=e,this.type=i.SmartFlowAction},h=function(e){this.payload=e,this.type=i.IssueTextViewAction},f=function(){this.type=i.SmartFlowReadMore},p=function(){this.type=i.SmartFlowContextMenuRequested},m=function(e){this.payload=e,this.type=i.TranslateArticle},g=function(e){this.payload=e,this.type=i.TranslateIssue}},72638:function(e,t,n){"use strict";var i=n(12010),r=n(10358),o=n(44260),a=n(46977),s=n(16213),u=n(86699),c=n(56856),l=r.eV.ginormous,d=new c.A("user-pictures"),h=function(){function e(e){var t=this;if(this.isLoading=(0,i.observable)(!1),this.avatarHtml=(0,i.observable)(""),this.size=e.size||l,this.size.width<16)throw new Error("Specified width (".concat(e.size.width,") less than allowed ").concat(16));if(this.size.height<16)throw new Error("Specified height (".concat(e.size.height,") less than allowed ").concat(16));this.isAlterable=(0,i.isObservable)(e.alterable)?e.alterable:(0,i.observable)(!!e.alterable),this.nickname=(0,i.isObservable)(e.profile.nickname)?e.profile.nickname:(0,i.observable)(e.profile.nickname),this.photoUrl=(0,i.isObservable)(e.profile.photoUrl)?e.profile.photoUrl:(0,i.observable)(e.profile.photoUrl),this.avatarImageId=(0,i.isObservable)(e.profile.avatarImageId)?e.profile.avatarImageId:(0,i.observable)(e.profile.avatarImageId||""),this.isLoading=(0,i.observable)(!1);var n=function(){t.avatarHtml((0,r.tr)({nickname:t.nickname(),imageId:t.avatarImageId(),size:t.size,fallbackAvatarUrl:t.photoUrl()}))};this.nickname.subscribe(n),this.avatarImageId.subscribe(n),this.photoUrl.subscribe(n),this.deleteAvatarAvailable=ko.pureComputed((function(){return t.isAlterable()&&!t.isLoading()&&(""!==t.avatarImageId()||""!==t.photoUrl())})),n()}return e.prototype.changeAvatar=function(){var e=this;if(!this.isAlterable())throw new Error("User photo is not alterable.");return this.isLoading()?Promise.reject(new Error("Alter is not available at the moment.")):this.upload({onUploadStart:function(){e.isLoading(!0)}}).then((function(e){return(0,r.xG)(e.fileId)})).then((function(t){return e.avatarImageId(t.imageId),u.A.userStateChanged(),t.imageId})).catch((function(e){var t=e&&e.message?e.message:o.Ay.val("Errors.ErrorOccurred","An error occurred.");throw(0,a.A)().alert(t,o.Ay.val("Buttons.Ok.Text","OK"),!0),s.A.error(t),e})).finally((function(){e.isLoading(!1)}))},e.prototype.deleteAvatar=function(){var e=this;return this.isLoading(!0),(0,r.pJ)().then((function(){e.avatarImageId(""),e.photoUrl(""),u.A.userStateChanged()})).catch((function(e){throw(0,a.A)().alert(e.message||o.Ay.val("Errors.ErrorOccurred","An error occurred."),o.Ay.val("Buttons.Ok.Text","OK"),!0),e})).finally((function(){e.isLoading(!1)}))},e.prototype.dispose=function(){this.nickname=null,this.avatarImageId=null,this.isAlterable=null},e.prototype.upload=function(e){return void 0===e&&(e={}),d.upload(e)},e}(),f="userphoto",p={viewModel:{createViewModel:function(e){return new h(e)}},template:{ndTemplate:"v7.Client.UserPhoto.ko.Component"}};i.components.isRegistered(f)||i.components.register(f,p)},57351:function(e,t){"use strict";var n=function(){function e(){}return e.prototype.available=function(){return!0},e.prototype.enabled=function(){return!0},e}();t.A=n},98534:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var i=n(11786),r=n(37618),o=n(98874),a=n(23304),s=n(45840),u=(new i.UAParser).getResult(),c={deviceInfo:(0,r.l)(u),osInfo:(0,o.J)(u),browserInfo:(0,a.r)(u),sessionInfo:{id:(0,s.c)(),referrer:document.referrer}}},62454:function(e,t,n){"use strict";n.d(t,{lZ:function(){return l},LI:function(){return f},vY:function(){return i}});var i={};n.r(i),n.d(i,{addBannerComponent:function(){return a},getBannerComponent:function(){return o},removeBannerComponent:function(){return s}}),n(26858);var r={};function o(e){return r[e]}function a(e,t){r[e]=t}function s(e){delete r[e]}var u=n(31555),c=n(5059),l=c.memo((function(e){var t,n=null!==(t=e.position)&&void 0!==t?t:"bottom";return(0,u.jsx)("div",{className:"banner banner-".concat(n," ").concat(e.className||""),children:e.children})})),d=n(85387),h=n(25577),f=c.memo((function(){var e=(0,d.d4)(h.Nk),t=(0,d.d4)(h.Xp);if(!e)return null;if(0===t.length)return null;var n=t[0],i=o(n.bannerType);if(!i)throw new Error("BannerComponent for ".concat(n.bannerType," wasn't registered"));return(0,u.jsx)("div",{id:"snackbar-container",className:"banners-container",children:(0,u.jsx)(i,{data:n.data})})}))},84288:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var i="app.banners"},26858:function(e,t,n){"use strict";var i,r=n(13981),o=n(74525),a=n(89404),s=(n(25577),n(84288)),u=n(58932),c=n(89103),l=n(97093),d=n(13302),h=n(43566),f={ready:!1,banners:[],history:{}};function p(e,t,n){var i=e.banners.findIndex((function(e){return e.bannerType===t})),r=n(-1===i?{bannerType:t,opened:!1,priority:Number.MAX_VALUE,lastClosedAt:null,data:null}:e.banners[i]),o=(0,u.fX)([],(0,u.zs)(e.banners),!1);return-1===i?o.push(r):o.splice(i,1,r),(0,u.Cl)((0,u.Cl)({},e),{banners:o})}var m=(0,c.vy)(f,((i={})[a.X2.BannersReady]=function(e){return(0,u.Cl)((0,u.Cl)({},e),{ready:!0})},i["".concat(h.YC)]=function(e){return(0,u.Cl)((0,u.Cl)({},e),{banners:[],history:{}})},i[a.X2.BannerOpened]=function(e,t){var n=t.payload,i=n.bannerType,r=n.priority,o=n.data;return(e=p(e,i,(function(e){return(0,u.Cl)((0,u.Cl)({},e),{opened:!0,priority:null!=r?r:Number.MAX_VALUE,data:o})}))).ready||(e.banners=(0,d.orderBy)(e.banners,(function(e){return e.priority}),!0)),e},i[a.X2.BannerClosed]=function(e,t){var n,i=t.payload,r=i.bannerType,o=i.closedAt,a=(e=p(e,r,(function(e){return(0,u.Cl)((0,u.Cl)({},e),{opened:!1,lastClosedAt:o})}))).history;return t.payload.trackInHistory&&(a=(0,u.Cl)((0,u.Cl)({},e.history),((n={})[r]=o.getTime(),n))),(0,u.Cl)((0,u.Cl)({},e),{history:a})},i)),g=(0,l.z)((function(e){return{history:e.history}}),(function(e){e&&(f.history=e.history)})),v=n(44834);function y(e,t,n){var i,r,o,a,s;return(0,u.YH)(this,(function(u){switch(u.label){case 0:return[4,(0,v.s)(t)];case 1:i=u.sent(),u.label=2;case 2:return[4,(0,v.O4)([(0,v.cb)(e),(0,v.s)(t),(0,v.s)(n)])];case 3:return r=u.sent(),o=r[0],a=r[1],s=r[2],o?[2,i]:[3,4];case 4:return s?[4,(0,v.s)(t)]:[3,6];case 5:return i=u.sent(),[3,7];case 6:i=a,u.label=7;case 7:return[3,2];case 8:return[2]}}))}function _(){return(0,u.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,v.O4)({debounced:y(2e3,a.X2.BannerOpened,a.X2.BannersReady),timeout:(0,v.cb)(5e3)})];case 1:return e.sent(),[4,(0,v.yJ)((0,a.P$)({}))];case 2:return e.sent(),[2]}}))}function b(e){var t,n,i;return(0,u.YH)(this,(function(r){switch(r.label){case 0:return t=e.payload,n=t.bannerType,i=t.doNotTrack,[4,(0,v.yJ)((0,a.$D)({bannerType:n,closedAt:new Date,trackInHistory:!0!==i}))];case 1:return r.sent(),[2]}}))}r.bX.addFeature(s.R,m,(function(){return(0,u.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,v.Zy)(_)];case 1:return e.sent(),[4,(0,v.jP)(a.X2.CloseBanner,b)];case 2:return e.sent(),[2]}}))})),r.bX.addStoreStorage(o.N.Local,s.R,g)},89404:function(e,t,n){"use strict";n.d(t,{$D:function(){return s},P$:function(){return u},X2:function(){return i},Z$:function(){return a},q$:function(){return o}});var i,r=n(89103);!function(e){e.BannerOpened="banners/banner_opened",e.CloseBanner="banners/close_banner",e.BannerClosed="banners/banner_closed",e.BannersReady="banners/banners_ready"}(i||(i={}));var o=(0,r.lQ)(i.BannerOpened),a=(0,r.lQ)(i.CloseBanner),s=(0,r.lQ)(i.BannerClosed),u=(0,r.lQ)(i.BannersReady)},25577:function(e,t,n){"use strict";n.d(t,{Cr:function(){return l},Nk:function(){return a},Xp:function(){return u}});var i=n(29978),r=n(84288),o=function(e){return e[r.R]},a=(0,i.Mz)(o,(function(e){return e.ready})),s=(0,i.Mz)(o,(function(e){return e.banners})),u=(0,i.Mz)(s,(function(e){return e.filter((function(e){return e.opened}))})),c=(0,i.Mz)(o,(function(e){return e.history})),l=(0,i.Mz)(c,(function(e){return function(t){var n;return null!==(n=e[t])&&void 0!==n?n:null}}))},36215:function(e,t,n){"use strict";n.d(t,{J:function(){return O},U:function(){return z.UN}});var i=n(13981),r=n(58932),o=n(44834),a=n(78698),s=n(43566),u=n(20056),c=n(89416),l=n(30212),d=n(27602),h=n(60019),f=n(12730),p=n(65678),m=n(54302),g=n(13384),v=n(89247),y=n(80835),_=n(88960),b=n(94518),w=n(31555),C=n(5059),A=(n(39757),n(85387)),I=(n(27189),n(84901),n(62454),n(22537)),S=n(18752),P=n(72944),x=n(34788),T=n(68819),k=n(86353),E=n(10610),M=n(86718),D=C.lazy((function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,71939))];case 1:return[2,{default:e.sent().LegacySiteHeaderIssueTitle}]}}))}))})),N=C.lazy((function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,42049))];case 1:return[2,{default:e.sent().LegacySiteHeaderGenericTitle}]}}))}))})),L=C.lazy((function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,38787))];case 1:return[2,{default:e.sent().LegacySiteHeaderPostBtn}]}}))}))})),V=C.lazy((function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,78630))];case 1:return[2,{default:e.sent().LegacySiteHeaderRadioTitle}]}}))}))})),R=C.lazy((function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,88209))];case 1:return[2,{default:e.sent().LegacySiteHeaderRadioTocBtn}]}}))}))})),H=C.lazy((function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,87711))];case 1:return[2,{default:e.sent().LegacySiteHeaderRadioCloseBtn}]}}))}))})),F=function(e){var t=(0,A.d4)(d.SG),n=(0,A.d4)(S.LU);if(e.empty)return(0,w.jsx)(x.u,{left:(0,w.jsx)(w.Fragment,{}),center:function(){return(0,w.jsx)(P.c,{})},right:(0,w.jsx)(w.Fragment,{}),navigation:"none"});if(t){if(t.viewName===p.lP.TextView||t.viewName===p.lP.PagesView)return(0,w.jsx)(x.u,{center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(D,{width:e})})}});if(t.viewName===p.lP.Account)return(0,w.jsx)(x.u,{center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(N,{width:e})})},right:(0,w.jsx)(T.i,{})});if(t.viewName===p.lP.HotSpotsHub)return"phone"===n?(0,w.jsx)(x.u,{left:(0,w.jsx)(k.A,{}),center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(N,{width:e})})},right:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(E.u,{}),(0,w.jsx)(T.i,{})]}),navigation:"none"}):(0,w.jsx)(x.u,{center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(N,{width:e})})}});if(t.viewName===p.lP.Purchase)return(0,w.jsx)(x.u,{left:(0,w.jsx)(k.A,{}),center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(N,{width:e})})},right:(0,w.jsx)(T.i,{}),navigation:"none"});if(t.viewName===p.lP.Post)return(0,w.jsx)(x.u,{left:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(k.A,{}),(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(L,{})})]}),center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(N,{width:e})})},right:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(T.i,{}),(0,w.jsx)(M.u,{})]}),navigation:"none"});if(t.viewName===p.lP.Radio)return(0,w.jsx)(x.u,{left:(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(H,{})}),center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(V,{width:e})})},right:(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(R,{})}),navigation:"none"})}return(0,w.jsx)(x.u,{center:function(e){return(0,w.jsx)(C.Suspense,{fallback:null,children:(0,w.jsx)(N,{width:e})})}})},B=(C.memo((function(e){return C.useEffect((function(){var t,n;e.visible?(window.scrollTo(0,0),null===(t=I.Ay.root())||void 0===t||t.show(),setTimeout((function(){var e;null===(e=I.Ay.root())||void 0===e||e.resize()}),50)):null===(n=I.Ay.root())||void 0===n||n.hide()}),[e.visible]),C.useEffect((function(){return function(){var e;null===(e=I.Ay.root())||void 0===e||e.hide()}}),[]),(0,w.jsxs)("div",{className:"legacy-container ".concat(e.visible?"legacy-shown":""),children:[(0,w.jsx)(F,{empty:!e.visible}),(0,w.jsx)("div",{className:"legacy-root-container",style:{position:"relative"},children:(0,w.jsx)("div",{id:"Panel_root"})})]})})),n(75451),n(66443)),z=n(53269),O=function(e){try{return new URL(e).host===new URL(window.location.href).host}catch(e){return!0}};function j(){var e,t,n,i,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,(0,o.Lt)(a.nw)];case 1:if(r.sent()===y.Z.Voyager)return[2,!1];e={viewName:null},r.label=2;case 2:return r.trys.push([2,5,,6]),[4,(0,o.Lt)(d.Ae)];case 3:return t=r.sent(),n="string"==typeof t.state.referrer?t.state.referrer:document.referrer,i=(0,v.Ti)(),[4,(0,o.T1)(z.UN.resolvePath,i,t,n)];case 4:return e=r.sent(),[3,6];case 5:return r.sent(),[3,6];case 6:return(0,v.U2)()?[4,(0,o.Lt)(d.Lr)]:[2,!1];case 7:return(s=r.sent().landingUrl)?[3,9]:[4,(0,o.yJ)((0,d.TU)({}))];case 8:return r.sent(),[2,!0];case 9:if(e.currentPath===s)return[2,!1];r.label=10;case 10:return r.trys.push([10,12,,13]),(0,h._n)(!1),[4,(0,o.yJ)((0,d.bv)({link:s}))];case 11:return r.sent(),[2,!0];case 12:return r.sent(),[2,!1];case 13:return[2]}}))}function U(){var e,t,n,i,a;return(0,r.YH)(this,(function(s){switch(s.label){case 0:return[4,(0,o.s)(d.RC)];case 1:return e=s.sent().payload,[4,(0,o.Lt)(d.Ae)];case 2:return t=s.sent(),n=e.action,i=e.location,a=(0,r.Cl)((0,r.Cl)({},t.state),i.state),"REPLACE"===n?[3,4]:[4,(0,o.yJ)((0,d.D0)({navState:(0,r.Cl)((0,r.Cl)({},t),{state:a})}))];case 3:s.sent(),s.label=4;case 4:return[3,0];case 5:return[2]}}))}function W(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,o.Lt)(d.Vp)];case 1:return t.sent()?[4,(0,o.Zy)(U)]:[2];case 2:return t.sent(),[4,j()];case 3:return t.sent()?[3,6]:[4,(0,o.Lt)(d.Ae)];case 4:return e=t.sent(),[4,(0,o.yJ)((0,d.D0)({navState:(0,r.Cl)({},e)}))];case 5:t.sent(),t.label=6;case 6:return[2]}}))}function Y(e){var t,n,i,a,s,c,l,h,p,m;return(0,r.YH)(this,(function(g){switch(g.label){case 0:t=e.payload.navState,n=t.state,i=t.stateLess,a=(0,v.Ti)(),g.label=1;case 1:return g.trys.push([1,11,,13]),s=null!==(m=null==n?void 0:n.referrer)&&void 0!==m?m:document.referrer,[4,(0,o.T1)(z.UN.resolvePath,a,{state:n,stateLess:i},s)];case 2:return c=g.sent(),(l=(0,r.Tt)(c,[])).id=(0,_.A)(),l.cacheKey||(l.cacheKey=(0,_.A)()),[4,(0,o.yJ)((0,d.By)({params:(0,r.Cl)({},l)}))];case 3:return g.sent(),l.currentPath=a,(h=f.KZ(l.viewName))?[4,(0,o.T1)(h.load)]:[3,7];case 4:return g.sent(),[4,(0,o.yJ)((0,d.so)({newConfig:l,isLegacyRoute:!1}))];case 5:return g.sent(),[4,(0,o.yJ)((0,d.SP)({to:a,state:(0,r.Cl)({},l)}))];case 6:return g.sent(),[3,10];case 7:return[4,(0,b.hU)()];case 8:return g.sent()?[4,(0,o.T1)(b.m3)]:[3,10];case 9:g.sent(),g.label=10;case 10:return[3,13];case 11:return p=g.sent(),(0,u.R)(p),[4,(0,b.hU)()];case 12:return g.sent(),[3,13];case 13:return[2]}}))}function X(e){var t,n,i,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,(0,o.Lt)(d.SG)];case 1:return t=r.sent(),n=e.payload,i=n.newConfig,a=n.isLegacyRoute,i.cacheKey||(i.cacheKey=(0,_.A)(),(0,c.R)("routeChanged: navigation config doesn't have cacheKey defined")),window.history&&(window.history.scrollRestoration="auto"),[4,(0,o.yJ)((0,d.DI)({isLegacyRoute:a,prevConfig:t,config:i}))];case 2:return r.sent(),a?[4,(0,o.yJ)((0,d.qF)({isLegacyRoute:a,prevConfig:t,config:i}))]:[3,4];case 3:r.sent(),r.label=4;case 4:return[2]}}))}function q(e){var t,n,i,a,s,u;return(0,r.YH)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,7,,8]),t=e.payload,n=t.newNavConfig,(i=t.urlNavConfig)?(!0===i&&(i=n),[4,(0,o.T1)(z.UN.generateUrl,i)]):[3,3];case 1:return s=c.sent(),n=(0,r.Cl)((0,r.Cl)({},n),{currentPath:(0,v.wO)(s.url)}),[4,(0,o.yJ)((0,d.SP)({to:s.url,state:(0,r.Cl)({},n)}))];case 2:return c.sent(),[3,5];case 3:return a=n.currentPath.split("/"),s=(0,v.x7)(a).join("/"),[4,(0,o.yJ)((0,d.SP)({to:s,state:(0,r.Cl)({},n)}))];case 4:c.sent(),c.label=5;case 5:return[4,(0,o.yJ)((0,d.r)({newNavConfig:n}))];case 6:return c.sent(),[3,8];case 7:return u=c.sent(),(0,l.z)(u),[3,8];case 8:return[2]}}))}function G(e){var t,n,i,a,s;return(0,r.YH)(this,(function(u){switch(u.label){case 0:return e.payload.params||(e.payload.params={}),t=e.payload,n=t.viewName,i=t.params,a=t.replace,e.payload.params.replaced=e.payload.replace,e.payload.params.referrer=window.location.href,e.payload.params.cacheKey||(e.payload.params.cacheKey=(0,_.A)()),[4,(0,o.Lt)(d.SG)];case 1:return s=u.sent(),[4,(0,o.yJ)((0,d.cQ)({currentConfig:s}))];case 2:u.sent(),u.label=3;case 3:return u.trys.push([3,8,,13]),[4,(0,o.T1)(z.UN.generateUrl,(0,r.Cl)((0,r.Cl)({},i||{}),{viewName:n}))];case 4:return u.sent(),e.payload.resetState?[4,(0,o.yJ)((0,d.PX)())]:[3,6];case 5:u.sent(),u.label=6;case 6:return[4,(0,o.yJ)((0,d.sh)({viewName:n,params:i,replace:a,ignoreIssueInfo:!0,isForceReplace:a}))];case 7:return u.sent(),[3,13];case 8:return u.sent(),[4,(0,b.hU)()];case 9:return u.sent()?e.payload.resetState?[4,(0,o.yJ)((0,d.PX)())]:[3,11]:[2];case 10:u.sent(),u.label=11;case 11:return[4,(0,o.yJ)((0,d.sh)({viewName:n,params:i,replace:a,ignoreIssueInfo:!0,isForceReplace:a}))];case 12:return u.sent(),[3,13];case 13:return[2]}}))}function K(e){var t,n,i,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=e.payload,n=t.link,i=t.openNewWindow,[4,(0,o.Lt)(B.EC)];case 1:if(r.sent()&&!O(n))return[2];r.label=2;case 2:return r.trys.push([2,12,,13]),/^http|^mailto|^callto|^tel/i.test(n)?i?window.open(n,"_blank")?[3,4]:[4,(0,m.$)({message:(0,g.p3)("v7.Client.Dialogs.Blocked.Popup")})]:[3,5]:[3,7];case 3:r.sent()&&(window.location.href=n),r.label=4;case 4:return[3,6];case 5:window.location.href=n,r.label=6;case 6:return[2];case 7:return[4,(0,o.T1)(z.UN.resolvePath,n)];case 8:return(null==(a=r.sent())?void 0:a.viewName)?[4,(0,o.yJ)((0,d.Ng)({viewName:a.viewName,params:a}))]:[3,10];case 9:return r.sent(),[3,11];case 10:window.location.href=(0,v.jM)(n),r.label=11;case 11:return[3,13];case 12:return r.sent(),window.location.href=(0,v.jM)(n),[3,13];case 13:return[2]}}))}function J(e){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,o.Lt)(d.Lr)];case 1:return(t=n.sent().homeViewName)?[3,3]:[4,(0,o.yJ)((0,d.bv)({link:"/"}))];case 2:return n.sent(),[3,5];case 3:return[4,(0,o.yJ)((0,d.Ng)({viewName:t,params:t===p.lP.StoreHub?{catalogView:p.$r.Catalog}:{},replace:e.payload.replace}))];case 4:n.sent(),n.label=5;case 5:return[2]}}))}function Q(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,o.yJ)((0,d.gN)())];case 1:return e.sent(),[2]}}))}function Z(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,o.yJ)((0,s.zp)())];case 1:return e.sent(),[2]}}))}i.bX.addFeature("app.common.navigation",void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,o.jP)(s.hl,W)];case 1:return e.sent(),[4,(0,o.jP)(d.D0,Y)];case 2:return e.sent(),[4,(0,o.jP)(d.so,X)];case 3:return e.sent(),[4,(0,o.jP)(d.r7,q)];case 4:return e.sent(),[4,(0,o.jP)(d.Ng,G)];case 5:return e.sent(),[4,(0,o.jP)(d.bv,K)];case 6:return e.sent(),[4,(0,o.jP)(d.TU,J)];case 7:return e.sent(),[4,(0,o.jP)(d.Lm,Q)];case 8:return e.sent(),[4,(0,o.jP)(d.DI,Z)];case 9:return e.sent(),[2]}}))}))},7294:function(e,t,n){"use strict";n.d(t,{hU:function(){return m},m3:function(){return g},mz:function(){return h},to:function(){return p},y5:function(){return f}});var i=n(58932),r=n(44834),o=n(30212),a=n(87542),s=n(13384),u=n(73663),c=n(74010),l=null;function d(){return(0,i.sH)(this,arguments,void 0,(function(e){var t,r;return void 0===e&&(e=!0),(0,i.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,23563))];case 1:return[4,(t=i.sent()).runInit()];case 2:return i.sent(),[2,t];case 3:if(r=i.sent(),(0,o.z)(r),e)return[2,d(!1)];throw r;case 4:return[2]}}))}))}function h(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,17469))];case 1:return[2,e.sent().default]}}))}))}function f(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,91152))];case 1:return[2,e.sent().default]}}))}))}function p(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,25118))];case 1:return[2,e.sent().default]}}))}))}function m(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return l?[2,!0]:[4,(0,r.Lt)(u.ND)];case 1:return e.sent()===c.U.Pending?[2,!1]:[4,(0,r.yJ)((0,u.Mu)())];case 2:e.sent(),e.label=3;case 3:return e.trys.push([3,6,,9]),[4,(0,r.T1)(d)];case 4:return l=e.sent(),[4,(0,r.yJ)((0,u.nt)())];case 5:return e.sent(),[2,!0];case 6:return e.sent(),[4,(0,r.yJ)((0,u.C6)())];case 7:return e.sent(),[4,(0,a.Z)({message:(0,s.p3)("App.LegacyApp.Load.Error")})];case 8:return e.sent(),[3,9];case 9:return[2,!1]}}))}function g(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,21147))];case 1:return[4,(e=i.sent()).resolveCurrentUrl()];case 2:return i.sent(),[2,e];case 3:return t=i.sent(),(0,o.z)(t),[3,4];case 4:return[2]}}))}))}},94518:function(e,t,n){"use strict";n.d(t,{hU:function(){return i.hU},m3:function(){return i.m3},mz:function(){return i.mz},to:function(){return i.to},y5:function(){return i.y5}});var i=n(7294)},9429:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var i=n(58932);function r(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(9963),n.e(7820),n.e(383),n.e(4950),n.e(4270),n.e(8340),n.e(4559),n.e(3918),n.e(6324)]).then(n.bind(n,86536))];case 1:return e.sent(),[2]}}))}))}n(36215)},75451:function(e,t,n){"use strict";n.d(t,{L:function(){return o},d:function(){return r}});var i=n(22537);function r(){i.Ay.nativeScroll||(i.Ay.nativeScroll=!0,document.body.classList.add("pr-nativescroll"),i.Ay.reflow(),i.Ay.freeze(!0),i.Ay.viewPort.setPropertyValue("height","auto"),i.Ay.viewPort.applyViewport(),i.Ay.viewPort.freeze(!0))}function o(){i.Ay.nativeScroll&&(document.body.classList.remove("pr-nativescroll"),i.Ay.viewPort.freeze(!1),i.Ay.freeze(!1),i.Ay.nativeScroll=!1)}},26811:function(e,t,n){"use strict";n.d(t,{T:function(){return U}});var i=n(13981),r=n(20056),o=n(25672),a=n(8351),s=n(58932),u=n(31555),c=n(5059),l=n(85387),d=n(3491),h=n.n(d),f=n(13384),p=n(34624),m=n(6201),g=n(41035),v=n(74637),y=n(18844),_=n(79836),b=n(73663),w=function(e){function t(t){var n=e.call(this,t)||this;return n.increaseFontScale=n.increaseFontScale.bind(n),n.decreaseFontScale=n.decreaseFontScale.bind(n),n.changeFont=n.changeFont.bind(n),n}return(0,s.C6)(t,e),t.prototype.render=function(){return(0,u.jsx)(m.E,{menuId:this.props.menuId,parentMenuId:this.props.parentMenuId,context:this.props.context,position:this.props.position,onClose:h(),header:this.renderHeader(),body:this.renderBody()})},t.prototype.renderHeader=function(){return(0,u.jsx)(g.S,{title:(0,f.p3)("Menu.Fonts"),canGoBack:!!this.props.parentMenuId,onClose:this.props.onClose})},t.prototype.renderBody=function(){return(0,u.jsxs)(p.f,{className:"list-fonts",grouped:!0,children:[this.renderFontSize(),this.renderFonts()]})},t.prototype.renderFontSize=function(){return(0,u.jsxs)(p.f,{className:"pop-button l-2x",submenuGroup:!0,children:[(0,u.jsx)(v.k,{containerClassName:"fontsize-less",tabIndex:0,onClick:this.decreaseFontScale,text:"A"}),(0,u.jsx)(v.k,{containerClassName:"fontsize-more",tabIndex:0,onClick:this.increaseFontScale,text:"A"})]})},t.prototype.renderFonts=function(){var e=this;if(!1===this.props.context.showFonts)return null;var t=this.props.fonts;return 0===t.length?null:(0,u.jsx)(y.S,{children:t.map((function(t){var n=t.name||(0,f.p3)("TextView.Fonts.".concat(t.id.substr(0,1).toUpperCase()).concat(t.id.substr(1))),i=t.id===e.props.currentFontId,r="";return"fontset-dyslexic"===t.id&&(r=(0,f.AF)("Menu.Fonts.DyslexicMeta","Supports select languages")),(0,u.jsx)(_.z,{text:n,meta:r,checked:i,className:t.id,onClick:function(n){return e.changeFont(n,t)}},t.id)}))})},t.prototype.decreaseFontScale=function(e){e.preventDefault(),e.stopPropagation(),this.props.decrease()},t.prototype.increaseFontScale=function(e){e.preventDefault(),e.stopPropagation(),this.props.increase()},t.prototype.changeFont=function(e,t){this.props.changeFont({fontId:t.id})},t}(c.PureComponent),C=(0,l.Ng)((function(e){return{fonts:(0,b.g0)(e),currentFontId:(0,b.oA)(e)}}),(function(e){return{increase:function(t){return e((0,b.e_)(t))},decrease:function(t){return e((0,b.iI)(t))},changeFont:function(t){return e((0,b.qX)(t))}}}))(w),A=n(13302),I=n(78698),S=n(80835),P=n(61577),x=n(13984),T=n(88960),k=c.memo((function(e){var t=(0,l.wA)(),n=(0,l.d4)(I.LE),i=(0,l.d4)(I.zw),r=(0,s.zs)(c.useState(i),2),o=r[0],a=r[1],d=function(t){void 0===t&&(t={back:!1}),e.onClose({back:t.back})},h=function(e){d(),t((0,b.cn)({languageCode:e}))},v=(0,A.sortBy)(n,(function(e){return e.title})),_=c.useMemo((function(){return(0,T.A)()}),[]),w=(0,l.d4)(I.nw)===S.Z.Pervasive,C=null;w&&(C=(0,u.jsx)(P.n,{className:"btn toolbar-btn",onClick:function(){return h(o)},children:(0,u.jsx)("span",{className:"title",children:(0,f.p3)("InterfaceLang.ChangeLang")})}));var k=(0,u.jsx)(g.S,{title:(0,f.p3)("Menu.InterfaceLanguage"),canGoBack:!!e.parentMenuId,onClose:d,rightControls:C});return(0,u.jsx)(m.E,{menuId:e.menuId,parentMenuId:e.parentMenuId,context:e.context,position:e.position,onClose:e.onClose,header:k,body:(0,u.jsx)(p.f,{grouped:!0,children:(0,u.jsx)(y.S,{children:v.map((function(e){var t=e.title+(e.originalTitle?" (".concat(e.originalTitle,")"):""),n=e.code===o;return(0,u.jsx)("li",{role:"menuitemradio","aria-checked":n,children:(0,u.jsx)(x.a,{groupName:_,checked:n,title:t,onChange:function(t){t&&(w?a(e.code):h(e.code))}})},e.code)}))})})})})),E=n(44834),M=n(95916),D=n(87838),N=n(27602),L=n(12730),V=n(94518),R=n(9429);function H(){var e,t,i=this;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return[4,(0,E.Lt)(N.SG)];case 1:return e=r.sent(),L.KZ(e.viewName)?[3,3]:[4,(0,E.T1)((function(){return(0,s.sH)(i,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(4870),n.e(2188),n.e(5767),n.e(1948),n.e(4270),n.e(6702),n.e(7085),n.e(3828),n.e(4364)]).then(n.bind(n,92078))];case 1:return[2,e.sent()]}}))}))}))];case 2:(t=r.sent().default)&&t.model&&t.model.showActionMenu(),r.label=3;case 3:return[2]}}))}function F(){return(0,s.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,E.T1)(R.V)];case 1:return e.sent(),[4,(0,E.yJ)((0,M.M7)())];case 2:return e.sent(),[2]}}))}function B(e){var t,n,i,r=e.payload;return(0,s.YH)(this,(function(e){switch(e.label){case 0:t=r.dialogId,n=r.dialogContext,e.label=1;case 1:return e.trys.push([1,,5,7]),[5,(0,s.Ju)((0,V.hU)())];case 2:return e.sent()?[4,(0,E.T1)(V.mz)]:[2];case 3:return i=e.sent(),[4,(0,E.T1)((function(){return i.show({bookmarkContext:n})}))];case 4:return e.sent(),[3,7];case 5:return[4,(0,E.yJ)((0,D.AK)({dialogId:t,dialogContext:n}))];case 6:return e.sent(),[7];case 7:return[2]}}))}function z(){return(0,s.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,E.jP)(b.de,H)];case 1:return e.sent(),[4,(0,E.jP)(M.wO,F)];case 2:return e.sent(),[4,(0,E.IJ)(D.mw,B)];case 3:return e.sent(),[2]}}))}var O="app.views.common",j=!1;function U(){if(!j){try{i.bX.addFeature(O,void 0,z),o.A.menus[a.L9]||o.A.register(a.L9,k),o.A.menus[a.oL]||o.A.register(a.oL,C)}catch(e){(0,r.R)(e)}j=!0}}},66443:function(e,t,n){"use strict";n.d(t,{EC:function(){return s},vc:function(){return u}});var i=n(29978),r=n(28809),o=n(23131),a=n(61445),s=((0,i.Mz)(r._t,(function(e){return e(o.oo,!1)})),(0,i.Mz)(r._t,a.FE,(function(e,t){return t||e("features.app.externalLinks.disabled",!1)}))),u=(0,i.Mz)(r._t,(function(e){return e("myaccount.subviews",{})}))},70410:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var i="app.views.search"},76981:function(e,t,n){"use strict";n.d(t,{U:function(){return m},_:function(){return p}});var i=n(58932),r=n(13302),o=n(78698),a=n(13981),s=n(65678),u=n(76855),c=new(n(20447).V)(/^(all|articles|publications|books)$/,"Search tab doesnt match pattern"),l=n(80835),d=n(30657),h=n(18197),f=!1,p=(0,h.Sg)();function m(e,t){if(!f){var n=(0,a.Lt)(o.nw),m=(0,a.Lt)(o.uF),g=new u.D(s.lP.FTSArticles),v=(0,h.RR)(),y=v.map((function(e){return"{".concat(e,"}")})).join("&"),_=y.length?"?".concat(y):"",b=(0,r.assign)((0,r.zipObject)(v),{viewName:s.lP.FTSArticles}),w=(0,h.ET)(),C=w.map((function(e){return"{".concat(e,"}")})).join("&"),A=(0,r.assign)((0,r.zipObject)(w),{viewName:s.lP.FTSArticles}),I=(0,h.cP)(),S=I.map((function(e){return"{".concat(e,"}")})).join("&"),P=(0,r.assign)((0,r.zipObject)(I),{viewName:s.lP.FTSArticles}),x=(0,r.map)(p,(function(e){return"{".concat(e,"}")})).join("&"),T=(0,r.assign)((0,r.zipObject)(p),{viewName:s.lP.FTSArticles});n!==l.Z.Voyager&&n!==l.Z.Pervasive||(e.addRoute({name:"search",template:"search/catalog".concat(S.length?"?".concat(S):""),defaults:(0,i.Cl)((0,i.Cl)({},P),{subview:d.Sy.Catalog}),constraints:{viewName:g,subview:new u.D(d.Sy.Catalog)},executeWith:t}),e.addRoute({name:"search",template:"search/".concat(x.length?"?".concat(x):""),defaults:(0,i.Cl)((0,i.Cl)({},T),{subview:d.Sy.Fts}),constraints:{viewName:g,subview:new u.D(d.Sy.Fts)},executeWith:t})),n===l.Z.Pervasive&&e.addRoute({name:"search",template:"search/hub".concat(C.length?"?".concat(C):""),defaults:(0,i.Cl)((0,i.Cl)({},A),{subview:d.Sy.Hub}),constraints:{viewName:g,subview:new u.D(d.Sy.Hub)},executeWith:t}),n===l.Z.Web&&(m&&e.addRoute({name:"search",template:"search/{tab}".concat(_),defaults:(0,i.Cl)((0,i.Cl)({},b),{subview:d.Sy.Facelift}),constraints:{viewName:g,subview:new u.D(d.Sy.Facelift),tab:c},executeWith:t}),e.addRoute({name:"search",template:"search".concat(x.length?"?".concat(x):""),defaults:(0,i.Cl)((0,i.Cl)({},T),{subview:d.Sy.Fts}),constraints:{viewName:g,subview:new u.D(d.Sy.Fts)},executeWith:t})),f=!0}}},80366:function(e,t,n){"use strict";n.d(t,{Y3:function(){return c},kt:function(){return s},rG:function(){return u},xE:function(){return a}});var i=n(89103),r=n(70410),o="".concat(r.j,"/search/"),a=(0,i.lQ)("".concat(o,"change_query")),s=(0,i.lQ)("".concat(o,"change_active_tab")),u=(0,i.lQ)("".concat(o,"change_sort")),c=(0,i.lQ)("".concat(o,"change_hide_similar"))},18197:function(e,t,n){"use strict";n.d(t,{ET:function(){return o},F9:function(){return c},H2:function(){return u},Hv:function(){return h},R$:function(){return l},RR:function(){return g},Sg:function(){return m},Uo:function(){return s},XS:function(){return d},cP:function(){return p},cc:function(){return a}});var i=n(45235),r=n(30657);function o(){return["query"]}function a(e){return{query:e.query,author:e.author,countries:e.countries,categories:e.categories,languages:e.languages,newspapers:e.newspapers,start:e.start,stop:e.stop,date:e.date,in:e.in,orderBy:e.orderBy,groupBy:e.groupBy,hideSimilar:e.hideSimilar,type:e.type,state:e.state,isNew:e.isNew,searchFor:e.searchFor}}function s(e){var t=f(e.type),n=f(e.country),i=f(e.lang),r=f(e.category);return{page:e.page,query:e.query,country:n,region:e.region,lang:i,category:r,type:t,sort:e.sort}}function u(e){return e.reduce((function(e,t){return t.type===r.Bf.ContentType?e.type.push(t.id):t.type===r.Bf.Country?e.country.push(t.id):t.type===r.Bf.Language?e.lang.push(t.id):t.type===r.Bf.Category&&e.category.push(t.id),e}),{country:[],lang:[],category:[],type:[]})}function c(e){var t=e.reduce((function(e,t){var n=t.type;return n===r.Bf.Country?e.countries.push(t.value):n===r.Bf.Language?e.languages.push(t.value):n===r.Bf.Date?e.date=t.value:n===r.Bf.Author&&(e.author=t.value),e}),{countries:[],languages:[],author:null,date:null});return{countries:t.countries.join(","),languages:t.languages.join(","),date:t.date,author:t.author}}function l(e){var t=[],n=f(e.type);t=t.concat(n.map((function(e){return{type:r.Bf.ContentType,id:e,displayText:null,value:null}})));var i=f(e.country);t=t.concat(i.map((function(e){return{type:r.Bf.Country,id:e,displayText:null,value:null}})));var o=f(e.lang);t=t.concat(o.map((function(e){return{type:r.Bf.Language,id:e,displayText:null,value:null}})));var a=f(e.category);return t.concat(a.map((function(e){return{type:r.Bf.Category,id:e,displayText:null,value:null}})))}function d(e,t){return t.reduce((function(t,n){if(n.type===r.Bf.Author&&e.author){var i={type:r.Bf.Author,displayText:e.author,value:e.author};t.push(i)}else if(n.type===r.Bf.Date&&e.date){var o=n.options.find((function(t){return t.value===e.date}));o&&(i={type:r.Bf.Date,displayText:o.name,id:o.id,value:o.value},t.push(i))}else n.type===r.Bf.Country&&e.countries?e.countries.split(",").forEach((function(e){var i=n.options.find((function(t){return t.value===e}));if(i){var o={type:r.Bf.Country,id:i.id,displayText:i.name,value:i.value};t.push(o)}})):n.type===r.Bf.Language&&e.languages&&e.languages.split(",").forEach((function(e){var i=n.options.find((function(t){return t.value===e}));if(i){var o={type:r.Bf.Language,id:i.id,displayText:i.name,value:i.value};t.push(o)}}));return t}),[])}function h(e){var t=[],n=f(e.type);n.length>0&&t.push(n);var i=f(e.country);i.length>0&&t.push(i);var r=f(e.lang);r.length>0&&t.push(r);var o=f(e.category);return o.length>0&&t.push(o),{text:e.query,sortMode:parseInt(e.sort,10),inCategories:t}}function f(e){return(0,i.lD)(e,",").map(Number).filter((function(e){return!isNaN(e)}))}function p(){return["page","query","country","region","lang","category","type","sort"]}function m(){return["query","newspapers","author","languages","countries","categories","in","date","start","stop","orderBy","groupBy","hideSimilar","type","state","searchFor"]}function g(){return["query","author","countries","categories","languages","cids","types","genres","start","stop","date","publicationDate","orderBy","searchId","in","hideSimilar"]}},1339:function(e,t,n){"use strict";var i;n.d(t,{h:function(){return i}}),function(e){e[e.Application=0]="Application",e[e.Social=1]="Social",e[e.Library=2]="Library"}(i||(i={}))},46869:function(e,t,n){"use strict";var i,r;n.d(t,{wS:function(){return a},zL:function(){return o}}),function(e){e.SignInRequested="[Authentication] SignIn",e.SignInSucceeded="[Authentication] SignInSucceeded",e.SignInFailed="[Authentication] SignInFailed",e.SignUpRequested="[Authentication] SignUp",e.SignUpSucceeded="[Authentication] SignUpSucceeded",e.SignUpFailed="[Authentication] SignUpFailed",e.AccountChanged="[Authentication] Account Changed",e.SignUpEmailAlertSet="[Authentication] SignUpEmailAlertSet"}(i||(i={})),function(e){e.EmailAlertPromotional="EmailAlerts.Promotional",e.EmailAlertTechnical="EmailAlerts.Technical"}(r||(r={}));var o=function(e){this.payload=e,this.type=i.SignUpRequested},a=function(e){this.payload=e,this.type=i.SignUpSucceeded}},74435:function(e,t,n){"use strict";n.d(t,{IZ:function(){return c}});var i,r=n(71183),o=n(51056),a=n(86699),s=(n(82788),n(41434)),u=n(3710);function c(e){var t=e.system,n=e.provider,c=e.profile;if(!t&&!n)throw new Error("Neither system nor provider specified");var l=a.A.isLogin();return(n?(0,s.G)({provider:n,authtype:o.Ac.SIGNUP,context:{linkToCurrentAccount:l}}):(0,u.J)({system:t,context:{profile:c,linkToCurrentAccount:l}})).then((function(e){if(!e)return Promise.resolve();var o=e.authResult,a=e.signInResult;return(0,r.Z5)({signInResult:a,enableAutologin:!0,authContext:{system:t||n,method:o&&o.isNewUser?i.SignUp:i.SignIn}})})).catch((function(e){return Promise.reject(e)}))}n(46869),n(1339),function(e){e.SignIn="signin",e.SignUp="signup"}(i||(i={}))},61105:function(e,t,n){"use strict";n.d(t,{Q:function(){return s}});var i=n(58932),r=n(13302),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(n(2410).e),a=function(){function e(e){var t=this;this.rejectIfRequested=function(e){return t._source.rejectIfRequested(e)},this._source=e}return Object.defineProperty(e.prototype,"isRequested",{get:function(){return this._source.isRequested},enumerable:!1,configurable:!0}),e.prototype.throwIfRequested=function(){this._source.throwIfRequested()},e.prototype.disposeIfRequested=function(){for(var e,t=[],n=0;n=0||(u.push(e),(0,i.oM)(r.zg).subscribe((function(){return e()})))},getConfig:function(){return(0,i.Lt)(r.zg)}};t.A=c},82788:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var i=n(58932),r=n(69463),o=n(39894),a=n(25778);function s(){for(var e=[],t=0;t=0},e}(),l=function(){function e(){var e=this;this._stream=new r.m(1),this._isEmpty=!0,this._stream.next(new c((0,a.Lt)(o.Gs))),(0,a.B1)(o.Gs,(function(t){return e._stream.next(new c(t))}))}return Object.defineProperty(e.prototype,"stream",{get:function(){return this._isEmpty&&this.load(),this._stream.asObservable()},enumerable:!1,configurable:!0}),e.prototype.load=function(){return(0,i.sH)(this,arguments,void 0,(function(e){var t,n,r,u;return void 0===e&&(e=!1),(0,i.YH)(this,(function(i){switch(i.label){case 0:return this._isEmpty=!1,t=(0,a.Lt)(o.Cp),n=t.entities,r=t.status,e&&r!==s.U.Pending||!e&&r!==s.U.Done?[4,(0,a.Cs)((0,o.Yh)(),o.Sr,o.Vf)]:[3,2];case 1:return u=i.sent(),[2,new c(u.favorites.map((function(e){return e.cid})))];case 2:return[2,new c(n.map((function(e){return e.cid})))]}}))}))},e.prototype.removePublication=function(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,this.load()];case 1:return(t=i.sent()).contains(e)?[4,(0,a.Cs)((0,o.N9)({cid:e}),o._3,o.Fh,o.hC)]:[2,t];case 2:return n=i.sent().favorites,[2,new c(n.map((function(e){return e.cid})))]}}))}))},e.prototype.addPublication=function(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,this.load()];case 1:return(t=i.sent()).contains(e)?[2,t]:[4,(0,a.Cs)((0,o.OD)({cids:[e]}),o._3,o.Fh,o.hC)];case 2:return n=i.sent().favorites,[2,new c(n.map((function(e){return e.cid})))]}}))}))},e.prototype.togglePublication=function(e){return(0,i.sH)(this,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,a.Cs)((0,o.N9)({cid:e}),o._3,o.Fh,o.hC)];case 1:return t=n.sent().favorites,[2,new c(t.map((function(e){return e.cid})))]}}))}))},e.prototype.enableAlert=function(e){return u.A.enableAlert(e)},e.prototype.disableAlert=function(e){return u.A.disableAlert(e)},e}(),d=new l;t.A=d},3286:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var i=n(58932),r=n(76082),o=n(53269),a=n(12830),s=n(84901),u={AppsFlyer:"appsflyer"},c=!1;function l(){var e=this;c||(c=!0,o.UN.addRoute({name:u.AppsFlyer,template:"/redirect/".concat(u.AppsFlyer,"/?{deep_link_value}"),defaults:{},constraints:{deep_link_value:a.k},executeWith:function(t){return(0,i.sH)(e,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return[4,o.UN.resolvePath(t.deep_link_value,s.A.getState())];case 1:return e=n.sent(),[2,(0,r.g5)(t.deep_link_value,(0,i.Cl)({},e))]}}))}))}}))}},96594:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var i=n(58932),r=n(13981),o=n(95916),a=n(15397),s=!1;function u(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return s?[2]:(s=!0,[4,(0,a.sK)()]);case 1:return e.sent(),(0,r.Lt)(o.Xh)?document.documentElement.classList.add("feat-hyphens--manual"):document.documentElement.classList.add("feat-hyphens--none"),[2]}}))}))}},78733:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var i=n(58932),r=n(29583),o=n(13302),a=n(16213),s=function(){function e(){}return e.prototype.bind=function(){return this._bindProxy.apply(this,(0,i.fX)([],(0,i.zs)(arguments),!1))},e.prototype.on=function(){return this._bindProxy.apply(this,(0,i.fX)([],(0,i.zs)(arguments),!1))},e.prototype.unbind=function(e){for(var t,n=[],r=1;r=i.Next?t=this._next:e<=i.Prev&&(t=this._prev),delete this._next,delete this._prev,t},e.prototype.append=function(e){return e.detach(),this._next&&(this._next._prev=e.tailItem),e.tailItem._next=this._next,e.headItem._prev=this,this._next=e.headItem,this},e.prototype.prepend=function(e){return e.detach(),this._prev&&(this._prev._next=e.headItem),e.headItem._prev=this._prev,e.tailItem._next=this,this._prev=e.tailItem,this},e.prototype.onREOF=function(){},e.prototype.onLEOF=function(){},e.prototype.toJSON=function(){},e.prototype.hasNext=function(){return!!this._next},e.prototype.hasPrev=function(){return!!this._prev},e}(),u=function(){function e(e,t,n){if(this._count=0,this._finished=!1,e&&t)this._head=e,this._tail=t;else if(e&&void 0!==n)for(this._head=e,this._tail=e,n||(n=Number.MAX_VALUE);--n>0&&this._tail.nextItem;)this._tail=this._tail.nextItem;else if(t&&void 0!==n)for(this._tail=t,this._head=t,n||(n=Number.MAX_VALUE);--n>0&&this._head.prevItem;)this._head=this._head.prevItem}return e.fromJSON=function(t,n){for(var i=n.fromJSON,r=[],a=2;a0){for(var n=this._head,i=this._head,r=1;r0)for(var o=n,a=0;o;){var s=o.nextItem;if(!1===e.call(o,a)||o===i)break;o=s,++a}else for(o=i,a=this.count()-1;o;){var u=o.prevItem;if(!1===e.call(o,a)||o===n)break;o=u,--a}return this},e.prototype.forEach=function(){if(this.isEmpty())return this;var e,t;1===arguments.length?(t=1,e=arguments[0]):(t=arguments[0],e=arguments[1]);var n=this._head,i=this._tail;if(t>0)for(var r=n,o=0;r;){var a=r.nextItem;if(!1===e(r,o)||r===i)break;r=a,++o}else for(r=i,o=this.count()-1;r;){var s=r.prevItem;if(!1===e(r,o)||r===n)break;r=s,--o}return this},e.prototype.forEachRight=function(e){return this.forEach(-1,e)},e.prototype.empty=function(){return this._head=void 0,this._tail=void 0,this._count=void 0,this},e.prototype.replace=function(){var e=arguments[0],t=arguments[1];if(c(e)&&c(t)){var n=e,i=t;s.linkItems(n.prevItem,i,n.nextItem),n===this._head&&(this._head=i),n===this._tail&&(this._tail=i),s.linkItems(void 0,n,void 0)}else{if(!l(e)||!l(t))throw new Error("Invalid arguments");var r=e,o=t,a=r._head.prevItem,u=r._tail.nextItem;if(r.detach(),a)a.append(o),u||(this._tail=o._tail);else{if(!u)return this.copy(o);u.prepend(o),this._head=o._head}this._count&&r._count&&o._count?this._count+=o._count-r._count:this._count=0}return this},e.prototype.toArray=function(){for(var e=[],t=this._head;t&&(e.push(t),t!==this._tail);t=t.nextItem);return e},e.prototype.toJSON=function(){for(var e=[],t=this._head;t&&(e.push(t.toJSON()),t!==this._tail);t=t.nextItem);return e},e.prototype.swap=function(e,t){var n=e.nextItem,i=e.prevItem,r=t.nextItem,o=t.prevItem;return s.linkItems(i===t?e:i,t,n===t?e:n),s.linkItems(o===e?t:o,e,r===e?t:r),e===this._head?this._head=t:t===this._head&&(this._head=e),e===this._tail?this._tail=t:t===this._tail&&(this._tail=e),this},e.prototype.item=function(e){for(var t=this._head,n=0;t;t=t.nextItem,++n){if(n===e)return t;if(t===this._tail)break}return null},e.prototype.find=function(e){if(!this.isEmpty())for(var t=this._tail,n=this._head,i=0;n;n=n.nextItem,++i){if(e(n,i,this))return n;if(n===t)break}},e.prototype._appendItem=function(){var e,t;switch(arguments.length){case 1:e=arguments[0],t=this._tail;break;case 2:e=arguments[1],t=arguments[0];break;default:throw new Error("Invalid arguments")}return e.detach(),this.isEmpty()&&!t?(this._count=1,this._head=this._tail=e):!this.isEmpty()&&t&&(t.next(e),this._tail===t&&(this._tail=e),this._count&&++this._count),this},e.prototype._appendItems=function(){var e,t;switch(arguments.length){case 1:e=arguments[0],t=this._tail;break;case 2:e=arguments[1],t=arguments[0];break;default:throw new Error("Invalid arguments")}return e.detach(),this.isEmpty()&&!t?(this._head=e._head,this._tail=e._tail,this._count=e._count):!e.isEmpty()&&t&&(s.linkItems(e._tail,t.nextItem),s.linkItems(t,e._head),this._tail===t&&(this._tail=e._tail),this._count&&e._count?this._count+=e._count:this._count=0),this},e.prototype._prependItem=function(e,t){return void 0===t&&(t=this._head),e.detach(),this.isEmpty()?(this._count=1,this._head=this._tail=e):(t.prev(e),t===this._head&&(this._head=e),this._count&&++this._count),this},e.prototype._prependItems=function(e,t){return void 0===t&&(t=this._head),e.detach(),this.isEmpty()?(this._head=e._head,this._tail=e._tail,this._count=e._count):e.isEmpty()||(s.linkItems(t.prevItem,e._head),s.linkItems(e._tail,t),this._head===t&&(this._head=e._head),this._count&&e._count?this._count+=e._count:this._count=0),this},e}();function c(e){return e instanceof s||(0,a.isFunction)(e.next)&&(0,a.isFunction)(e.prev)}function l(e){return e instanceof u||(0,a.isFunction)(e.head)&&(0,a.isFunction)(e.tail)}},50794:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var i=n(13302),r=n(65678),o=n(3915),a=n(84901),s=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.x=e,this.y=t}return e.fromDto=function(t){return new e(t&&t.x,t&&t.y)},e}(),u=function(){function e(e,t){void 0===e&&(e=100),this.scale=e,this.translate=t||new s}return e.fromDto=function(t){return new e(t&&t.scale,t&&t.translate&&s.fromDto(t.translate))},e}(),c=function(){function e(e,t,n){void 0===n&&(n=new u(100,new s)),this.imageId=e,this.transformedImageId=t,this.transformations=n}return e.fromDto=function(t){return new e(t&&t.imageId,t&&t.transformedImageId,t&&t.transformations&&u.fromDto(t.transformations)||new u(100,new s))},e}(),l=function(){function e(e,t){if(!e)return null;if(e=(0,o.C)(e),this.profileId=e.profileId||e.profileName,this.enAccountNumber=e.enAccountNumber,this.accountNumber=e.accountNumber,this.email=e.email,this.displayName=e.displayName,this.nickname=e.nickname,this.photoUrl=e.photoUrl,this.location=e.location,this.isCurrentUser=e.isCurrentUser,this.isProfilePrivate=e.isProfilePrivate,this.isDeviceAccount=e.isDeviceAccount,this.isFollowedByCurrentUser=e.followedByCurrentUser,this.backgroundImageSettings=c.fromDto(e.backgroundImageSettings),this.avatarImageId=e.avatarImageId,this.ownedPublications=t,this.enableServiceEmails=e.enableServiceEmails,this.enablePromotionalEmails=e.enablePromotionalEmails,e.publicInfo&&(this.publicInfo=e.publicInfo),this.location){var n=e.locationLatLng;n&&0!==n.lat&&0!==n.lng&&(this.locationLatLng={lat:n.lat,lng:n.lng})}}return e.prototype.equals=function(e){var t=e,n=this.profileId;return t&&n&&(t||"").toUpperCase()===(n||"").toUpperCase()},e.prototype.goToChannelFeed=function(t){return this.ensureProfileName().then((function(n){return e.goToChannelFeed(n,t)}))},e.prototype.goToProfile=function(){return this.ensureProfileName().then((function(t){e.goToProfile(t)}))},e.goToProfile=function(e){return a.A.goView(r.lP.Profile,{profileId:e})},e.goToChannelFeed=function(e,t){var n=(0,i.extend)({channelfeed:"channelfeed",profileId:e},t);return a.A.goView(r.lP.Profile,n)},e.ensureProfileName=function(e,t){return new Promise((function(i,r){e||t?e?i(e):Promise.resolve().then(n.bind(n,79450)).then((function(e){e.default.getProfileName(t).then(i,r)})):r()}))},e.prototype.ensureProfileName=function(){return e.ensureProfileName(this.profileId,this.enAccountNumber)},e}()},39407:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var i=n(58932);function r(e){var t=(0,i.zs)(e.split("-"),2),n=t[0],r=t[1],o=e.indexOf("-")>=0;return{localeString:e,languageCode:n,countryCode:r,isValid:o}}},10730:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});var i=n(12993),r=new(function(){function e(){}return e.prototype.getStats=function(){return i.V.getStats()},e.prototype.get=function(){return i.V.get()},e.prototype.getById=function(e){return i.V.getById(e)},e.prototype.getByIds=function(e){return i.V.getByIds(e)},e.prototype.deleteMonitor=function(e){return i.V.delete(e)},e.prototype.updateMonitor=function(e,t,n){return i.V.saveFrequency(e,t,n)},e}())},95952:function(e,t,n){"use strict";n.d(t,{GE:function(){return s},GZ:function(){return l},Ts:function(){return h},jF:function(){return a},jc:function(){return d},rg:function(){return r}});var i=n(13384),r="print-content",o=["mousemove","touchstart"];function a(){for(var e=document.getElementsByClassName(r),t=0;t'.concat(e,""),document.body.appendChild(t)}function l(){window.addEventListener("beforeprint",c)}function d(){window.removeEventListener("beforeprint",c)}function h(){l()}},87944:function(e,t,n){"use strict";n.d(t,{c:function(){return p}});var i=n(29583),r=n(13302),o=n(42678),a=n(69463),s=n(65678),u=n(89247),c=n(30657),l=n(84901),d=n(87266),h=n(82230),f=n(90006),p=new(function(){function e(){var e=this;this.searchParamsInternal=new o.t(new d.l),this.searchParams=this.searchParamsInternal.asObservable(),this.searchCountersInternal=new o.t(new d.C),this.searchCounters=this.searchCountersInternal.asObservable(),this.resetCounters(),this.currentSearchCounterInternal=new a.B,this.currentSearchCounter=this.currentSearchCounterInternal.asObservable(),this.loadArticles=new a.B,this.loadArticles.subscribe((function(t){(0,r.assign)(e.removedArticleIdsContainer,t),e.announceCounters()})),this.searchCountersInternal.subscribe((function(t){var n;switch(e.getSearchParams().state){case c.IY.Custom:n=t.customCount;break;case c.IY.CurrentTitle:n=t.titleCount;break;case c.IY.CurrentIssue:n=t.issueCount;break;default:n=t.totalCount}e.currentSearchCounterInternal.next(n)}))}return e.prototype.newSearch=function(e){e=e||new d.l,this.goToSearchView((0,r.assign)(e,{isNew:!0}))},e.prototype.subSearch=function(e){this.goToSearchView((0,r.assign)(this.getSearchParams(),e))},e.prototype.reset=function(){this.setSearchParams(new d.l),this.removedArticleIdsContainer={}},e.prototype.setSearchParams=function(e,t){void 0===t&&(t=!0),e=e||new d.l,this.removedArticleIdsContainer={};var n=e.isNew;e.isNew=!1,this.searchParamsInternal.next(e),n&&this.loadCounters(e.type),t&&i(this).trigger("onsearch",this.getSearchParamsByState(e.state))},e.prototype.getSearchParams=function(){var e=this.searchParamsInternal.getValue();return f.A.isNil(e)?new d.l:e},e.prototype.onArticlesLoaded=function(e){this.loadArticles.next(e)},e.prototype.onSearch=function(e){i(this).on("onsearch",e)},e.prototype.offSearch=function(e){i(this).off("onsearch",e)},e.prototype.toSearchParams=function(e){var t=new d.l({isNew:!!f.A.isNil(e.isNew)||e.isNew,query:(0,u.O8)(e.query),author:(0,u.O8)(e.author),categories:(0,u.O8)(e.categories),countries:(0,u.O8)(e.countries),languages:(0,u.O8)(e.languages),newspapers:(0,u.O8)(e.newspapers),start:(0,u.O8)(e.start),stop:(0,u.O8)(e.stop),date:c.yx[e.date],in:c.aZ[e.in],orderBy:c.mF[e.orderBy],groupBy:c.Ri[e.groupBy],hideSimilar:"1"===e.hideSimilar?1:0,type:parseInt(e.type,10),state:parseInt(e.state,10),searchFor:c.m8[e.searchFor]});return this.ensureSearchType(t),this.ensureSearchState(t),t},e.prototype.toRouteConfig=function(e){e=e||new d.l;var t={};return t.isNew=e.isNew,t.query=e.query,t.author=e.author,t.countries=e.countries,t.categories=e.categories,t.languages=e.languages,t.newspapers=e.newspapers,t.start=e.start,t.stop=e.stop,t.date=e.date,t.in=e.in,t.orderBy=e.orderBy,t.groupBy=e.groupBy,t.hideSimilar=e.hideSimilar?"1":"0",t.type=e.type.toString(10),t.state=e.state.toString(10),t.subview=c.Sy.Fts,t.searchFor=e.searchFor,t},e.prototype.goToSearchView=function(e){this.ensureSearchType(e),this.ensureSearchState(e),l.A.goView(s.lP.FTSArticles,this.toRouteConfig(e),!0)},e.prototype.loadCounters=function(e){var t=this;this.resetCounters(),this.getCount(this.getSearchParamsByState(c.IY.AllTitles)).then((function(e){t.initialSearchCounters.totalCount=e,t.announceCounters()})),e===c.nX.Advanced&&this.getCount(this.getSearchParamsByState(c.IY.Custom)).then((function(e){t.initialSearchCounters.customCount=e,t.announceCounters()})),e===c.nX.Issue&&(this.getCount(this.getSearchParamsByState(c.IY.CurrentTitle)).then((function(e){t.initialSearchCounters.titleCount=e,t.announceCounters()})),this.getCount(this.getSearchParamsByState(c.IY.CurrentIssue)).then((function(e){t.initialSearchCounters.issueCount=e,t.announceCounters()})))},e.prototype.announceCounters=function(){var e=this.initialSearchCounters.clone();this.searchCountersInternal.next(e)},e.prototype.resetCounters=function(){this.removedArticleIdsContainer={},this.initialSearchCounters=new d.C({totalCount:null,customCount:null,titleCount:null,issueCount:null}),this.searchCountersInternal.next(this.initialSearchCounters)},e.prototype.getSearchParamsByState=function(e){void 0===e&&(e=null);var t=this.getSearchParams();null===e&&(e=t.state);var n=new d.l({type:t.type,state:e,query:t.query,author:t.author,orderBy:t.orderBy,hideSimilar:t.hideSimilar,date:t.date,start:t.start,stop:t.stop,in:t.in});return e===c.IY.AllTitles?(t.type===c.nX.Quick?(n.languages=t.languages,n.groupBy=c.Ri.Language):t.type===c.nX.Issue&&(n.date=c.yx.Anytime,n.groupBy=c.Ri.DateRange),n):(n.newspapers=t.newspapers,e===c.IY.CurrentTitle?(n.date=c.yx.Anytime,n.groupBy=c.Ri.DateRange,n):e===c.IY.Custom?(n.countries=t.countries,n.categories=t.categories,n.languages=t.languages,n):n)},e.prototype.ensureSearchType=function(e){e.type||(e.type=this.getStateTypeBySearchParams(e))},e.prototype.ensureSearchState=function(e){(f.A.isNil(e.state)||isNaN(e.state))&&(e.state=this.getDefaultSearchStateByType(e))},e.prototype.getStateTypeBySearchParams=function(e){return e.newspapers&&4===e.newspapers.length&&e.start&&e.stop?c.nX.Issue:e.languages&&e.groupBy===c.Ri.Language?c.nX.Quick:c.nX.Advanced},e.prototype.getDefaultSearchStateByType=function(e){switch(e.type){case c.nX.Advanced:return"function"==typeof e.hasCustomParameters&&e.hasCustomParameters()?c.IY.Custom:c.IY.AllTitles;case c.nX.Issue:return c.IY.CurrentIssue;default:return c.IY.AllTitles}},e.prototype.getCount=function(e){return h.A.get("fts","GetCount",e.toFtsParams({pageNumber:0,pageSize:1}),{timeout:15e3})},e}())},87266:function(e,t,n){"use strict";n.d(t,{C:function(){return u},l:function(){return s}});var i=n(58932),r=n(30657),o=n(27189),a=n(90006),s=function(){function e(e){void 0===e&&(e={}),this.isNew=e.isNew,this.query=e.query,this.author=e.author,this.countries=e.countries,this.categories=e.categories,this.languages=e.languages,this.newspapers=e.newspapers,this.start=e.start,this.stop=e.stop,this.date=e.date,this.in=e.in,this.orderBy=e.orderBy,this.groupBy=e.groupBy,this.hideSimilar=e.hideSimilar,this.type=e.type,this.state=e.state,this.searchFor=e.searchFor}return e.prototype.hasCustomParameters=function(){return!!(this.countries||this.categories||this.languages||this.newspapers)},e.prototype.toFtsParams=function(t){var n={};return n.searchText=this.query,n.searchAuthor=this.author,n.languages=this.languages,n.newspapers=this.newspapers,n.countries=this.countries,n.categories=this.categories,(!this.start&&!this.stop||this.date)&&(n.range=this.date||e.getDefaultDate()),n.searchIn=this.in||e.DefaultLocation,n.startDate=this.start,n.stopDate=this.stop,n.orderBy=this.orderBy||e.DefaultOrder,n.groupBy=this.groupBy,n.hideSame=this.hideSimilar,n.searchFor=this.searchFor||r.m8.All,(0,i.Cl)((0,i.Cl)({},n),t)},e.getDefaultDate=function(){return o.A.get("features.default.search.period",r.lh)},e.DefaultLocation=r.pi,e.DefaultOrder=r.mF.Relevance,e}(),u=function(){function e(e){void 0===e&&(e={}),this.totalCount=e.totalCount,this.customCount=e.customCount,this.titleCount=e.titleCount,this.issueCount=e.issueCount}return e.prototype.adjust=function(e){a.A.isNil(this.totalCount)||(this.totalCount=this.totalCount+e),a.A.isNil(this.customCount)||(this.customCount=this.customCount+e),a.A.isNil(this.titleCount)||(this.titleCount=this.titleCount+e),a.A.isNil(this.issueCount)||(this.issueCount=this.issueCount+e)},e.prototype.clone=function(){return new e(this)},e}()},88025:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var i,r=n(13302),o=n(10358),a=n(27189),s=n(50794),u=n(82230),c=function(e){return u.A.get("issues",e+"/social/sections")},l=n(67303),d=n(97779),h=n(74877),f=function(){function e(e,t){void 0===t&&(t={width:28,height:28}),this.enAccountNumber=e.EncryptedAccountNumber,this.nickname=e.Nickname,this.user=new s.F(e),this.joined=new Date(e.JoinedOn).toLocaleString(),this.userLocation=e.UserLocation||"",this.isFollowedByCurrentUser=!!e.FollowedByCurrentUser,this.avatarImageId=e.avatarImageId,this.photoUrl=e.PhotoUrl,this.avatarSize=t}return e.prototype.avatar=function(){return(0,o.tr)({nickname:this.nickname,imageId:this.avatarImageId,size:this.avatarSize,fallbackAvatarUrl:this.photoUrl})},e.prototype.goToProfile=function(){return this.user.goToProfile()},e}(),p=function(e){e&&e.Text&&(this.articleId=e.ArticleId,this.article=e.Subject,this.threadId=e.ThreadId,this.postId=e.PostId,this.publicId=e.CommentKey,this.comment=e.Text,this.postsInArticle=e.PostsInArticle,this.authorId=e.UserAccountNumber,e.attachments?this.attachments=e.attachments:e.Artifacts&&(this.attachments=(0,r.map)(e.Artifacts,(function(e){return e.VideoMeta?new h.A({url:e.VideoMeta.VideoUrl,thumbnailImageId:e.ObjectId,thumbnailWidth:e.PreviewUrl.Width,thumbnailHeight:e.PreviewUrl.Height}):new d.A({imageId:e.ObjectId,width:e.PreviewMeta.Width,height:e.PreviewMeta.Height})}))),this.hasAttachments=!(0,r.isEmpty)(this.attachments),this.userProfile=new f(e.UserProfile,o.eV.huge),this.eventTime=Date.parse(e.PostDate))},m=function(e,t){this.section=t||e.Section||"",this.comments=(0,r.chain)(e.SocialSection&&e.SocialSection.Comments||[]).filter((function(e){return e.Text})).map((function(e){return new p(e)})).value()};function g(e,t){var n=a.A.get("ui.textView.enableSocialSection",!1);return!e&&i||!n?Promise.resolve():c(t||l.A.issue()).then(v)}function v(e){i=(0,r.map)(e,(function(e){return new m(e)}))}var y={getSectionsForIssue:function(e){return g(!0,e).then((function(){return i}))},getDataBySection:function(e){return g(!1).then((function(){for(var t=null,n=e.title||e,r=i&&i.length||0;r--;)if(i[r].section&&!n.localeCompare(i[r].section)){t=i[r];break}return t?Promise.resolve(t):Promise.reject()}))},SectionModel:m}},2175:function(e,t,n){"use strict";n.r(t),n.d(t,{busy:function(){return a},busyState:function(){return s},busyStateLock:function(){return u},modal:function(){return c},modalState:function(){return l}});var i=n(58932),r=n(37022),o=function(e){function t(){var t=e.call(this)||this;return t.lock=new r.c_,t._lockHandles=[],t.lock.onLocked.subscribe((function(){return t._fire("set")})),t.lock.onUnlocked.subscribe((function(){return t._fire("reset")})),t}return(0,i.C6)(t,e),t.prototype.set=function(){this._lockHandles.push(this.lock.lock())},t.prototype.reset=function(){this._lockHandles.length&&this._lockHandles.pop().release()},Object.defineProperty(t.prototype,"isSet",{get:function(){return this.lock.isLocked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetPromise",{get:function(){var e=this;return this.lock.isLocked?new Promise((function(t){e.lock.onUnlockedOnce(t)})):Promise.resolve()},enumerable:!1,configurable:!0}),t}(n(78733).n),a=new o,s=a,u=a.lock,c=new o,l=c},34109:function(e,t,n){"use strict";n.d(t,{V:function(){return l},o:function(){return c}});var i=n(58932),r=n(13302),o=n(90006),a=n(26906),s=n(47027),u=n(44260);function c(e){if(e.isEmpty())return u.Ay.val("Dialogs.AdvancedSearch.AllTitles");var t=e.getCollections();if(1===t.titles.length&&(0,r.isEmpty)(t.countries)&&(0,r.isEmpty)(t.categories))return t.titles[0].name;if((0,r.isEmpty)(t.titles)&&1===t.countries.length&&(0,r.isEmpty)(t.categories))return t.countries[0].displayName;if((0,r.isEmpty)(t.titles)&&(0,r.isEmpty)(t.countries)&&1===t.categories.length)return t.categories[0].displayName;var n=[];return 1===t.countries.length?n.push(t.countries[0].displayName):t.countries.length>1&&n.push(u.Ay.format("Dialogs.AdvancedSearch.Selection.Countries",t.countries.length)),1===t.categories.length?n.push(t.categories[0].displayName):t.categories.length>1&&n.push(u.Ay.format("Dialogs.AdvancedSearch.Selection.Categories",t.categories.length)),1===t.titles.length?n.push(t.titles[0].displayName):t.titles.length>1&&n.push(u.Ay.format("Dialogs.AdvancedSearch.Selection.Titles",t.titles.length)),n.join(", ")}var l=function(){function e(){this.container={}}return e.prototype.setCategory=function(e,t,n){if(void 0===n&&(n={}),e&&t){var i=this.ensureCategoryExists(e.id);i.category=e,i.groupName=t,i.titles=n}},e.prototype.resetCategory=function(e){this.container[e]&&delete this.container[e]},e.prototype.setTitles=function(e,t){var n=this;void 0===t&&(t=null),(0,r.isEmpty)(e)||e.forEach((function(e){return e.categories.forEach((function(i){var r=n.ensureCategoryExists(i);r.category&&r.category.id===t.id&&(r.category=null),r.titles[e.cid]=e}))}))},e.prototype.getCategorySelection=function(e){return this.container[e]},e.prototype.clear=function(){this.container={}},e.prototype.isEmpty=function(){var e=(0,r.filter)(this.container,(function(e,t){return null!==e.titles}));return(0,r.isEmpty)(e)},e.prototype.toSearchParams=function(){var e=this.getCollections();return{newspapers:e.titles.map((function(e){return e.cid})).join(","),countries:e.countries.map((function(e){return e.id})).join(","),categories:e.categories.map((function(e){return e.id})).join(",")}},e.prototype.fromSearchParams=function(e){return this.clear(),Promise.all([this.restoreTitles(e.newspapers),this.restoreCategories(e.countries,a.$I.Countries,s.X6),this.restoreCategories(e.categories,a.$I.Categories,s.bW)])},e.prototype.fromCollections=function(e){var t=this;this.clear();var n=(0,s.yC)(e.titles),r=(0,s.X6)(),o=e.countries.reduce((function(e,t){return e[t]=!0,e}),{});return Promise.all([n,r]).then((function(e){var n=(0,i.zs)(e,2),r=n[0],s=n[1];return t.setTitles(r),s.forEach((function(e){o[e.id]&&t.setCategory(e,a.$I.Countries)})),Promise.all([r,s])}))},e.prototype.toFilters=function(){var e=this.getCollections();return{inCategories:e.countries.map((function(e){return e.id})).concat(e.categories.map((function(e){return e.id})))}},e.prototype.getCollections=function(){var e={},t={},n={};return(0,r.forOwn)(this.container,(function(i,o){i.category?i.groupName===a.$I.Countries&&null!==i.titles?t[o]=i.category:i.groupName===a.$I.Categories&&null!==i.titles&&(n[o]=i.category):(0,r.isEmpty)(i.titles)||(0,r.forOwn)(i.titles,(function(t,n){e[n]=t}))})),{titles:(0,r.values)(e),countries:(0,r.values)(t),categories:(0,r.values)(n)}},e.prototype.ensureCategoryExists=function(e){return e?(this.container[e]||(this.container[e]={category:null,groupName:null,titles:{}}),this.container[e]):null},e.prototype.restoreTitles=function(e){var t=this;if(!e)return Promise.resolve([]);var n=e.split(",");return((0,r.isEmpty)(n)?Promise.resolve([]):(0,s.yC)(n)).then((function(e){return t.setTitles(e),e}))},e.prototype.restoreCategories=function(e,t,n){var i=this;if(!e)return Promise.resolve([]);var a=o.A.arrayToHashSet(e.split(","));return((0,r.isEmpty)(a)?Promise.resolve([]):n()).then((function(e){return e.forEach((function(e){a[e.id]&&i.setCategory(e,t)})),e}))},e}()},12993:function(e,t,n){"use strict";n.d(t,{A:function(){return i},V:function(){return f}});var i,r=n(13302),o=n(69463),a=n(58735),s=n(40657),u=n(73690),c=n(82230),l=n(89993);function d(e){return e?e.toLowerCase():""}function h(e){return Array.isArray(e)?e.sort():[]}!function(e){e.Save="save",e.Delete="delete"}(i||(i={}));var f=new(function(){function e(){var e=this;this.cache=null,this.basePath="topics",this.updatesSubject=new o.B,a.bind("tokenUpdated",(function(){e.cache=null})),this.updates=this.updatesSubject.asObservable()}return e.prototype.get=function(){var e=this;return this.cache?Promise.resolve(this.cache):c.A.get(this.basePath).then((function(t){return e.cache=t,e.cache})).catch((function(){return Promise.reject(new Error("Error on topics loading"))}))},e.prototype.getById=function(e){return this.get().then((function(t){return(0,r.find)(t,(function(t){return t.id===e}))}))},e.prototype.getByIds=function(e){return this.get().then((function(t){return t.filter((function(t){return e.some((function(e){return e===t.id}))}))}))},e.prototype.save=function(e){var t=this;return this.get().then((function(n){if(function(e,t){var n=t.id,i=t.topicTypeId,o=d(t.searchQuery),a=d(t.searchAuthor),s=d(t.searchIn),u=h(t.newspapers),c=h(t.countries),l=h(t.languages);return e.some((function(e){return n!==e.id&&i===e.topicTypeId&&o===d(e.searchQuery)&&a===d(e.searchAuthor)&&s===d(e.searchIn)&&(0,r.isEqual)(u,h(e.newspapers))&&(0,r.isEqual)(c,h(e.countries))&&(0,r.isEqual)(l,h(e.languages))}))}(n,e))throw new l.A("The topic with the same filter already exists","Dialogs.AddMonitor.Error.DuplicateMonitor");var i={contentType:"application/json",disableRetry:!0};return e.id?c.A.put(t.basePath,e.id.toString(),JSON.stringify(e),i):c.A.post(t.basePath,"",JSON.stringify(e),i)})).then((function(n){s.cL();var i=e.id||n;return t.cache=null,Object.assign({},e,{id:i})})).then((function(e){return t.updatesSubject.next({id:e.id,opType:i.Save}),e}))},e.prototype.saveFrequency=function(e,t,n){var i=this;return(0,u._s)("monitors","updateMonitor",{monitorId:e,frequency:t,notificationTime:n},{}).then((function(e){return i.cache=null,e}))},e.prototype.delete=function(e){var t=this;return c.A.delete(this.basePath,e.toString(),null,{disableRetry:!0}).then((function(){t.cache=null,t.updatesSubject.next({id:e,opType:i.Delete})}))},e.prototype.getStats=function(){return this.get().then((function(e){return{allCount:e.length}}))},e}())},55683:function(e,t,n){"use strict";var i;n.d(t,{d:function(){return i}}),function(e){e[e.Ok=1]="Ok",e[e.Cancel=2]="Cancel",e[e.Close=3]="Close",e[e.Destroy=4]="Destroy",e[e.EmailVerified=5]="EmailVerified",e[e.Unknown=10]="Unknown"}(i||(i={}))},8782:function(e,t,n){"use strict";n.d(t,{Fl:function(){return v},ZF:function(){return _},dV:function(){return g},kt:function(){return b},o9:function(){return y}});var i,r,o=n(58932),a=n(12010),s=n(13302),u=n(44260),c=n(96543),l=n(99915),d=n(47027),h=n(87266),f=n(87944),p=n(30657),m={searchIn:(i={},i[p.aZ.All]="SearchMonitorPanel.ResultLocationAnywhere",i[p.aZ.Headline]="Dialogs.AdvancedSearch.InHeadline",i[p.aZ.Body]="Dialogs.AdvancedSearch.InBody",i),date:(r={},r[p.yx.Today]="Dialogs.AdvancedSearch.Today",r[p.yx.Last3Days]="Dialogs.AdvancedSearch.Last3Days",r[p.yx.ThisWeek]="Dialogs.AdvancedSearch.ThisWeek",r[p.yx.ThisMonth]="Dialogs.AdvancedSearch.ThisMonth",r[p.yx.Anytime]="Dialogs.AdvancedSearch.Anytime",r)};function g(e){return e.length>1?e.length:e[0]}function v(e){var t=m.searchIn[e];return t?(u.Ay.val(t)||t).toLowerCase():""}function y(e){var t=m.date[e];return t?u.Ay.val(t).toLowerCase():""}function _(e){return(0,o.sH)(this,arguments,Promise,(function(e,t){var n,i,r,a,c,l,f,m,_;return void 0===t&&(t=!0),(0,o.YH)(this,(function(b){switch(b.label){case 0:return n=[u.Ay.loaded()],t&&Object.keys(e).forEach((function(t){e[t]&&"string"==typeof e[t]&&(e[t]=(0,s.escape)(e[t]))})),(0,s.isEmpty)(e.newspapers)||(1===(i=e.newspapers.split(",")).length?n.push((0,d.jW)(i[0]).then((function(e){return e.displayName}))):n.push(Promise.resolve(i.length.toString(10)))),[4,Promise.all(n)];case 1:return r=o.zs.apply(void 0,[b.sent(),2]),a=r[1],c=[],e.query&&c.push(e.query),e.author&&c.push(u.Ay.format("SearchToolbar.Author","".concat(e.author," "))),e.type===p.nX.Quick?c.push(u.Ay.val("SearchToolbar.InAllLanguages")):(0,s.isEmpty)(e.languages)||(l=e.languages.split(","),c.push(u.Ay.format("SearchToolbar.Languages","".concat(g(l)," ")))),a&&[p.IY.CurrentIssue,p.IY.CurrentTitle].indexOf(e.state)>-1&&c.push(u.Ay.format("SearchToolbar.Newspapers","".concat(a," "))),(0,s.isEmpty)(e.countries)?[3,3]:[4,(0,d.X6)()];case 2:f=b.sent(),m=e.countries.split(",").map((function(e){return parseInt(e,10)})),_=f.filter((function(e){return m.includes(e.id)})).map((function(e){return e.displayName})),c.push(u.Ay.format("SearchToolbar.Countries","".concat(g(_)," "))),b.label=3;case 3:return e.type===p.nX.Issue?e.state!==p.IY.CurrentIssue&&c.push(u.Ay.format("SearchToolbar.Range","".concat(p.yx.Anytime," "))):e.date===p.yx.Range?c.push(u.Ay.format("SearchToolbar.Range","".concat(e.start," - ").concat(e.stop," "))):c.push(u.Ay.format("SearchToolbar.Range","".concat(y(e.date||h.l.getDefaultDate())," "))),c.push(u.Ay.format("SearchToolbar.SearchIn","".concat(v(e.in||h.l.DefaultLocation)," "))),[2,c.join(" ")]}}))}))}var b=function(){function e(e){var t,n=this;this.element=e,this.model=new w,this.isVisible=!1,f.c.searchParams.subscribe((function(e){n.model.searchResult(u.Ay.val("SearchToolbar.Searching")),t=_(e,!1)})),f.c.currentSearchCounter.subscribe((function(e){null!=e&&t.then((function(t){n.model.searchResult(u.Ay.format("ToolbarSearchMonitor",e.toLocaleString(),t))}))}))}return e.prototype.show=function(){var e=this;return this.isVisible||(this.isVisible=!0,l.k.loaded().then((function(){l.k.prependTo("v7.Client.ToolbarSearch",e.model,e.element)}))),this},e.prototype.linkView=function(e){var t=this;this.model.viewportLeft(e.viewport().left),c.A.bind(e,"viewportChanged",null,(function(e,n){t.model.viewportLeft(n.left)}))},e}(),w=function(){this.searchResult=(0,a.observable)(""),this.viewportLeft=(0,a.observable)()}},92066:function(e,t,n){"use strict";var i;n.d(t,{o:function(){return r}});var r=function(){function e(){}return Object.defineProperty(e,"current",{get:function(){return i},set:function(e){i=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"profileId",{get:function(){return i&&i.profileId},enumerable:!1,configurable:!0}),e}()},95429:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var i,r=["click","touchend"],o="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=";function a(){r.forEach((function(e){return window.removeEventListener(e,a)})),document.location.href.match(/radio/)||(i.src=o,i.play().catch((function(e){})))}function s(){!(i=document.getElementById("audio"))&&((i=new Audio).id="audio",document.body.appendChild(i),1)&&r.forEach((function(e){return window.addEventListener(e,a,{once:!0})}))}},47287:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var i=n(65678),r=n(80543),o=n(3551),a=new(function(){function e(){}return e.prototype.highlightTextInView=function(e,t){e===i.lP.PagesView?this.highlightSearchOnPages(t):e!==i.lP.Home&&e!==i.lP.HotSpotsHub&&e!==i.lP.Radio&&this.highlightSearchInText(t)},e.prototype.highlightSearchInText=function(e){r.A.highlight(e),r.A.confirm()},e.prototype.highlightSearchOnPages=function(e){o.A.confirm(e)},e.prototype.highlightTopicInText=function(e){e?(r.A.highlightTopic(e),r.A.confirmTopic()):r.A.resetHighlightTopic()},e.prototype.highlightTopicInSection=function(e){r.A.highlightSection(e,e),r.A.confirmSection(e)},e}())},87837:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var i=n(21773),r={appendTo:function(e){return e.createChild("div").addClass("art-div").css("height","".concat((0,i._h)(),"px")).checkpoint((0,i._h)()),r},get html(){return'
')},get height(){return(0,i._h)()}}},85464:function(e,t,n){"use strict";n.d(t,{uW:function(){return g},y5:function(){return d}});var i,r=n(58932),o=n(29583),a=n(13302),s=n(69463),u=n(25778),c=n(26476),l=n(92066),d=(n(96723),function(){function e(e,t,n,i,r){void 0===i&&(i="section-news"),this._innerHeaders=[],this._id=t,this._title=n,this._elm=o('')),e.append(this._elm),r&&this._elm.css(r),n&&(this._outerHeader=o('
')),this._outerHeader.append(''.concat(n," ")),e.parent().append(this._outerHeader),this.addInnerHeader(),this._headerWidth=this._outerHeader.outerWidth(!0),this._outerHeader.optimizeForTransform()),this._context=g()}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.innerHeader=function(e){return void 0===e&&(e=0),this._innerHeaders[e]},e.prototype.innerHeaders=function(){return this._innerHeaders},e.prototype.addInnerHeader=function(){var e=this._createInnerHeaderElm();return this._innerHeaders.push(e),e},e.prototype.outerHeader=function(){return this._outerHeader},e.prototype.headerWidth=function(){return this._headerWidth},e.prototype.article=function(){var e=o(" ");this._elm.append(e);var t=new h(this,e);return this._children?this._children.push(t):this._children=[t],t},e.prototype.div=function(){var e=o("
");this._elm.append(e);var t=new h(this,e);return this._children?this._children.push(t):this._children=[t],t},e.prototype.column=function(){return this.div()},e.prototype.removeChild=function(e){e&&((0,a.isEmpty)(this._children)||((0,a.remove)(this._children,(function(t){return t===e})),this._children.length||this.remove()))},e.prototype.remove=function(){var e,t,n,i;if(this._elm&&(this._elm.remove(),delete this._elm),this._children){var o=this._children;delete this._children;try{for(var a=(0,r.Ju)(o),s=a.next();!s.done;s=a.next())s.value.remove()}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}try{for(var u=(0,r.Ju)(this._innerHeaders),c=u.next();!c.done;c=u.next())c.value.fastRemove()}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}this._innerHeaders.length=0,this._outerHeader&&(this._outerHeader.fastRemove(),delete this._outerHeader),delete this._headerWidth,this._context.removeSection(this)},e.prototype.show=function(){return this._elm.show(),this},e.prototype.hide=function(){return this._elm.hide(),this},Object.defineProperty(e.prototype,"hasHeaders",{get:function(){return!!this._title},enumerable:!1,configurable:!0}),e.prototype._createInnerHeaderElm=function(){var e=o(''.concat(this._title," ")).optimizeForTransform();return this._elm.append(e),e},e}()),h=function(){function e(e,t){this._parent=e,this._elm=t}return e.prototype.elm=function(){return this._elm},e.prototype.detach=function(){if(!this._elm||this._parentNode)return this;var e=this._elm[0];return e?(this._parentNode=e.parentNode,this._parentNode.removeChild(e),this):this},e.prototype.reattach=function(){if(!this._elm||!this._parentNode)return this;var e=this._elm[0];if(!e)return this;this._parentNode.appendChild(e),delete this._parentNode},e.prototype.createChild=function(e){return e?((0,a.isString)(e)?t=new p(this,this._elm.createChild(e)):(t=new p(this,o(e)),e.parentNode&&this._elm[0]===e.parentNode||this._elm[0].appendChild(e)),this._children?this._children.push(t):this._children=[t],t):new p(this,this._elm);var t},e.prototype.remove=function(){this._children&&delete this._children,this._parentNode&&delete this._parentNode,this._elm&&(this._elm.remove(),delete this._elm),this._parent&&(this._parent.removeChild(this),delete this._parent)},e.prototype.removeChildren=function(){var e,t;if(!(0,a.isEmpty)(this._children))try{for(var n=(0,r.Ju)(this._children),i=n.next();!i.done;i=n.next())i.value.removeElm()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return delete this._children,this},e.prototype.removeChild=function(e){return e?((0,a.isEmpty)(this._children)||(0,a.remove)(this._children,(function(t){return t===e})),this):this},e.prototype.css=function(){return 1===arguments.length&&(0,a.isString)(arguments[0])?this._elm.css.apply(this._elm,arguments):(this._elm.css.apply(this._elm,arguments),this)},e.prototype.addClass=function(e){return this._elm.addClass(e),this},e.prototype.removeClass=function(e){return this._elm.removeClass(e),this},e.prototype.height=function(){return(0,a.isEmpty)(this._children)?0:(0,a.sumBy)(this._children,(function(e){return e.height()}))},e.prototype.find=function(e){return this._elm.find(e)},e.prototype.bind=function(){return this._elm.bind.apply(this._elm,arguments),this},e.prototype.attr=function(){return this._elm.attr.apply(this._elm,arguments),this},e.prototype.children=function(e){return this._elm.children(e)},e.prototype.animate=function(e,t){return this._elm.animate.apply(this._elm,arguments),this},e.prototype.show=function(){return this._elm.show(),this},e.prototype.hide=function(){return this._elm.hide(),this},e}();!function(e){e[e.Rendered=0]="Rendered",e[e.AboutToBeRemoved=1]="AboutToBeRemoved"}(i||(i={}));var f=o('a
'),p=function(){function e(e,t){this._html=[],this._idx=0,this._height=0,this._changed=!1,this._nodesIdx=0,this._newNodesIdx=0,this._top=0,this._maxHeight=0,this._events=new s.B,this._parent=e,this._elm=t}return e.prototype.checkpoint=function(e){return arguments.length?(this._idx=this._html.length,this._height+=e,this._newNodes&&(this._newNodesIdx\n \n
\n \n \n ').concat(t," \n \n \n
\n
\n ")}function _(e){return'\n \n \n '.concat(e," \n \n \n
")}function b(e){return e.is(":visible")}var w=null;function C(e){b(e)&&e.fadeOut("fast")}function A(e){e.el.css({opacity:"0.01",display:"block"})}function I(e){e.el.css({opacity:"1",display:"block"})}var S=function(){function e(e,t){this.continuousScrollAnimationStarted=!1,this.viewInstance=e,this.el=t}return e.prototype.stopContinuousScroll=function(){this.viewInstance.stopContinuousScroll(),this.continuousScrollAnimationStarted=!1},e}(),P=function(e){function t(t){return e.call(this,t,r(y("left","Prev")))||this}return(0,i.C6)(t,e),t.prototype.scroll=function(){return this.viewInstance.scrollScreenLeftAlign(d.cf.scrollZone)},t.prototype.startContinuousScroll=function(){this.continuousScrollAnimationStarted||(this.viewInstance.startContinuousScroll(l.OP.Backward,d.cf.scrollZone),this.continuousScrollAnimationStarted=!0)},t.prototype.canScroll=function(){if(this.viewInstance.isAnimating())return!1;var e=(this.viewInstance.visibleColumns()||[])[0];return!!e&&!e.isFirst()},t}(S),x=function(e){function t(t){return e.call(this,t,r(y("right","Next")))||this}return(0,i.C6)(t,e),t.prototype.scroll=function(){return this.viewInstance.scrollScreenRightAlign(d.cf.scrollZone)},t.prototype.startContinuousScroll=function(){this.continuousScrollAnimationStarted||(this.viewInstance.startContinuousScroll(l.OP.Forward,d.cf.scrollZone),this.continuousScrollAnimationStarted=!0)},t.prototype.canScroll=function(){if(this.viewInstance.isAnimating())return!1;var e=this.viewInstance.visibleColumns()||[],t=e[e.length-1];return!!t&&!t.isLast()},t}(S),T=function(){function e(e,t,n){var i=this;this.viewInstance=null,this.left=null,this.right=null,this.newsButton=null,this.moreButton=null,this.tip=!1,this.newsButtonIsVisible=!1,n&&(this.viewInstance=t,Promise.all([u.A.loaded(),c.Dv.loaded()]).then((function(){u.A.get(n,!0)&&(i.left=new P(i.viewInstance),i.right=new x(i.viewInstance),i.newsButton=r(_(c.Dv.val("TextViewer.TipIntro.Title"))),i.moreButton=r(_(c.Dv.val("TextViewer.MoreButton"))),h.A.bind(t,"currentColumnChanged",null,i.onCurrentColumnChanged.bind(i)),i.render(e))})))}return e.prototype.init=function(){var e=this.viewInstance.visibleColumns()[0];this.showInitBlock(e)},e.prototype.updateLayout=function(){this.canScrollLeft()?I(this.left):this.left.el.css("display","none"),this.right&&(this.canScrollRight()&&!this.tip?I(this.right):A(this.right))},e.prototype.render=function(e){var t=this;if(this.viewInstance){var n=function(e){e(),t.updateLayout()};h.A.bind(this.viewInstance,"positionchanged",this.updateLayout.bind(this));var i=function(e,i){e.canScroll()||t.updateLayout();var a=function(e,t){if(r(e.target()).is(".rn-content figure"))return!1;var n=Object.assign(v.Event("singleTapConfirmed"),{pageX:e.position().x,pageY:e.position().y,changedTouches:e.event().changedTouches});return function(e,t){if((0,o.isFunction)(document.elementFromPoint)){!function(e){e.el.translateLeft("-10000px",!0)}(e);var n=r(document.elementFromPoint(t.pageX,t.pageY));!function(e){e.el.translateLeft("0",!0)}(e),function(e,t){t.target=e[0],e.trigger(t)}(n,t)}}(t,n),n.isPropagationStopped()||n.isImmediatePropagationStopped()||p.A.event.clickAndTouch.isHandled(n)}(i,e);return a||n((function(){return e.scroll()})),!1},a=function(e,n){return e.canScroll()?e.startContinuousScroll():t.updateLayout(),!1},s=function(e){e.stopContinuousScroll()};f.Yd.bind(this.right.el,{singleTapConfirmed:function(e){return i(t.right,e)},longPress:function(e){return a(t.right)},contextMenu:function(){return!1},gesturesEnd:function(){return s(t.right)}}),f.Yd.bind(this.left.el,{singleTapConfirmed:function(e){return i(t.left,e)},longPress:function(e){return a(t.left)},contextMenu:function(){return!1},gesturesEnd:function(){return s(t.left)}}),f.Yd.bind(this.newsButton,{singleTapConfirmed:function(){return t.tip?t.viewInstance.scroll(3*-t.viewInstance.columns().width,512):t.viewInstance.controller.scrollToTip(),!1}}),f.Yd.bind(this.moreButton,{singleTapConfirmed:function(){t.canScrollRight()?n((function(){return t.viewInstance.scrollScreenRightAlign(d.cf.scrollZone)})):t.updateLayout()}})}e.append(this.left.el),e.append(this.right.el),[this.newsButton,this.moreButton].forEach((function(t){t.css({display:"none",top:"50%","margin-top":-(t.outerHeight()/2+22)}),e.append(t)})),this.rendered=!0},e.prototype.showInitBlock=function(e){if(e&&this.rendered)if(function(e){for(var t=e;t.nextItem&&t.nextItem.isVisible();)t=t.nextItem;return t.state().expanded}(e))C(this.newsButton);else if((0,m.d)()===s.lP.TopNews)if(void 0===this.viewInstance.direction()&&function(e){var t=e.type(),n=e.columnIdx();return t===g.zX.InitBlock&&0===n}(e))this.showNewsButton(!0);else if(this.viewInstance.direction()===l.OP.Forward){if(this.viewInstance.articlesToTip()>11)return void this.showNewsButton(!1);if(this.viewInstance.articlesToTip()<=1)return void this.hideNewsButton()}else this.hideNewsButton()},e.prototype.hideNewsButton=function(){this.newsButtonIsVisible&&(C(this.newsButton),I(this.right),this.tip=!1,this.newsButtonIsVisible=!1)},e.prototype.showNewsButton=function(e){var t;this.tip=e,this.newsButtonIsVisible||(A(this.right),b(t=this.newsButton)||(w&&clearTimeout(w),w=setTimeout((function(){t.css({right:-t.outerWidth()}).show().animate({right:0},300),w=null}),300)),this.newsButtonIsVisible=!0)},e.prototype.onCurrentColumnChanged=function(e,t){this.newsButton&&this.showInitBlock(t)},e.prototype.canScrollLeft=function(){var e=(this.viewInstance.visibleColumns()||[])[0];return!!e&&!e.isFirst()},e.prototype.canScrollRight=function(){var e=this.viewInstance.visibleColumns()||[],t=e[e.length-1];return!!t&&!t.isLast()},e}()},6176:function(e,t,n){"use strict";n.d(t,{HU:function(){return l},Hv:function(){return g},_E:function(){return s},_G:function(){return u},cq:function(){return p},ee:function(){return m},gO:function(){return d},sV:function(){return f},tC:function(){return c},wf:function(){return i},wp:function(){return h}});var i,r=n(58932),o=n(65678);!function(e){e.ActivePageChanged="[PagesView] ActivePageChanged",e.PageDoubleClicked="[PagesView] PageDoubleClicked",e.PageViewZoomChanging="[PagesView] PageViewZoomChanging",e.PageViewPinch="[PagesView] Pinch",e.PageViewPan="[PagesView] Pan",e.PageViewZoomChanged="[PagesView] PageViewZoomChanged",e.PageViewPagesLoaded="[PagesView] PageViewPagesLoaded",e.PageViewSizeChanged="[PagesView] PageViewSizeChanged",e.PageViewExternalLink="[PagesView] External Link",e.PageView="[PagesView] PageView"}(i||(i={}));var a=function(e){this.payload=e,this.viewName=o.lP.PagesView},s=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.ActivePageChanged,t}return(0,r.C6)(t,e),t}(a),u=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageDoubleClicked,t}return(0,r.C6)(t,e),t}(a),c=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageViewZoomChanging,t}return(0,r.C6)(t,e),t}(a),l=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageViewPinch,t}return(0,r.C6)(t,e),t}(a),d=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageViewPan,t}return(0,r.C6)(t,e),t}(a),h=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageViewPagesLoaded,t}return(0,r.C6)(t,e),t}(a),f=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageViewZoomChanged,t}return(0,r.C6)(t,e),t}(a),p=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageViewSizeChanged,t}return(0,r.C6)(t,e),t}(a),m=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageViewExternalLink,t}return(0,r.C6)(t,e),t}(a),g=function(e){function t(){var t=e.apply(this,(0,r.fX)([],(0,r.zs)(arguments),!1))||this;return t.type=i.PageView,t}return(0,r.C6)(t,e),t}(a)},64936:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var i=function(){function e(){var e=this;this._state="pending",this._promise=new Promise((function(t,n){e._resolve=function(n){return t(n),e._promise},e._reject=function(t){return n(t),e._promise}})),this._promise.then((function(){e._state="resolved"}),(function(){e._state="rejected"})),this._promise.state=function(){return e._state}}return e.resolve=function(e){return Promise.resolve(e)},e.reject=function(e){return Promise.reject(e)},Object.defineProperty(e.prototype,"resolve",{get:function(){return this._resolve},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reject",{get:function(){return this._reject},enumerable:!1,configurable:!0}),e.prototype.then=function(e,t){return this._promise.then(e,t)},e.prototype.catch=function(e){return this._promise.catch(e)},e.prototype.finally=function(e){return this._promise.finally(e)},e.prototype.promise=function(){return this._promise},e.prototype.state=function(){return this._state},e}()},65674:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var i,r,o,a,s=n(58932),u=n(46977),c=n(59823),l=n(62812),d=n(25778),h=n(84531),f=n(58506),p=n(57230);!function(e){e[e.Subscription=0]="Subscription",e[e.Issue=1]="Issue",e[e.Bundle=2]="Bundle"}(i||(i={})),function(e){e[e.Personal=0]="Personal",e[e.Business=1]="Business"}(r||(r={})),function(e){e[e.Month=0]="Month",e[e.Day=1]="Day"}(o||(o={})),function(e){e[e.Subscription=1]="Subscription",e[e.Newspaper=2]="Newspaper",e[e.IRexDeliveryCharge=3]="IRexDeliveryCharge",e[e.BundleProduct=4]="BundleProduct"}(a||(a={}));var m,g=n(13384);function v(e){return(0,s.sH)(this,void 0,Promise,(function(){var t,n;return(0,s.YH)(this,(function(i){switch(i.label){case 0:return"Pending"!==e.Status?[2,e]:(t=window.open(e.ChallengeUrl))?[3,2]:[4,(0,u.A)().confirm((0,g.p3)("v7.Client.Dialogs.ConfirmCreditCard"),(0,g.p3)("Buttons.Cancel.Text"),(0,g.p3)("Buttons.Confirm"))];case 1:i.sent(),t=window.open(e.ChallengeUrl),i.label=2;case 2:return[4,(r=e.OrderId,new Promise((function(e){(0,c.Y)(1e3).pipe((0,l.n)((function(){return(0,p.mD)(r)})),(0,d.p)((function(e){return"Pending"!==e.Status})),(0,h.s)(1)).subscribe(e)})))];case 3:return n=i.sent(),null==t||t.close(),[2,n]}var r}))}))}function y(e){return f.X.get("subscriptions","trial/eligibility",e).then((function(e){return e}),(function(){return{isEligible:!1,notEligibleReason:m.None,promoCode:""}}))}!function(e){e[e.None=0]="None",e[e.TrialWasUsed=1]="TrialWasUsed",e[e.CreditCardWasUsed=2]="CreditCardWasUsed"}(m||(m={}));var _={checkoutWithConfirmation:function(e){return(0,s.sH)(this,void 0,Promise,(function(){var t;return(0,s.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,p.Pt)(e)];case 1:return[4,v(t=n.sent())];case 2:if("Declined"===(t=n.sent()).Status)throw new Error((0,g.p3)("Checkout.DeclinedMessage"));if("Approved"!==t.Status)throw new Error(t.Status);return[2,t]}}))}))},getUserPromoEligibility:y,getPurchaseProducts:function(e){return(0,s.sH)(this,arguments,Promise,(function(e){var t,n,r,o,a,u,c,l,d,h,f=e.issueId;return(0,s.YH)(this,(function(e){switch(e.label){case 0:return t={issueId:f},[4,y()];case 1:return(n=e.sent()).isEligible&&(t.promoCode=n.promoCode),[4,(0,p.q6)(t)];case 2:return r=e.sent(),o=null===(l=r.Products)||void 0===l?void 0:l.find((function(e){return e.Type===i.Issue})),a=null===(d=r.Products)||void 0===d?void 0:d.find((function(e){return e.Type===i.Subscription})),u=null===(h=r.AllProducts)||void 0===h?void 0:h.find((function(e){return e.Type===i.Subscription&&!e.IsUnlimitedIssues&&e.NumberOfIssues>0})),c=r.Bundles&&r.Bundles[0],[2,{singleIssueProduct:o,premiumProduct:a,selectProduct:u,singleTitleProduct:c}]}}))}))}}},5135:function(e,t,n){"use strict";n.d(t,{C:function(){return w},j:function(){return y}});var i,r=n(29583),o=n(13302),a=n(69463),s=n(25778),u=n(75054),c=n(2175),l=n(58932),d=n(96543),h=n(16213),f=n(82230),p=n(16832);!function(e){e[e.Uploading=1]="Uploading",e[e.Uploaded=2]="Uploaded"}(i||(i={}));var m,g=function(e){function t(t){var n=e.call(this,100)||this;if(n._history=[],!t)throw new Error("Cannot create HistoryUploader instance: invalid dataProvider.");return n._dataProvider=t,n}return(0,l.C6)(t,e),t.prototype.upload=function(e,t){var n;void 0===t&&(t=!1),(0,o.isEmpty)(e)||((n=this._history).push.apply(n,(0,l.fX)([],(0,l.zs)(e),!1)),t?this._uploadBufferData():this._uploadBufferDataDebounced(),d.A.global.trigger("uploadingArticlesHistory",[e]))},t.prototype._uploadBufferData=function(){var e=this;if(this._history.length){var t=this._history;if(this._history=[],t.length){var n=t.map((function(e){return e.historyStatus=i.Uploading,{Id:e.Id,Type:e.Type,Data:e.Data,Reason:e.historyReason}}));f.A.post("TopNewsFeed","AddHistory",JSON.stringify(n),{contentType:"application/json"}).then((function(n){var r=n;if(r){var o=t.filter((function(t){if(t.tokenized())return!1;var n=t.provider();return!(!n||n!==e._dataProvider||(t.historyStatus=i.Uploaded,t.tokenized(!0),0))}));o.length&&e._dataProvider.appendBundle(o,r,r),e._uploadBufferData()}}),(function(e){h.A.error(new Error("Can't upload history: ".concat(e,".")))}))}}},t}(p.C),v=n(4610),y=50;!function(e){e[e.Enable=0]="Enable",e[e.Disable=1]="Disable",e[e.Purge=2]="Purge"}(m||(m={}));var _=!0,b=new a.B,w=function(){function e(e,t,n){void 0===n&&(n=!1),this.viewName=e,this._reading=[],this._historyItemIds={},this._history=[],c.modal.on("set",this._onModalStateSet.bind(this)),c.modal.on("reset",this._onModalStateReset.bind(this)),this._onPurge.subscribe(this._purge.bind(this)),this._readingStatsUploader=new v.U(e),this._enableHistory=n,n&&(this._historyUploader=new g(t))}return e.enable=function(){_||(_=!0,b.next(m.Enable))},e.disable=function(){_&&(_=!1,b.next(m.Disable))},Object.defineProperty(e.prototype,"_onEnabled",{get:function(){return b.pipe((0,s.p)((function(e){return e===m.Enable})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_onDisabled",{get:function(){return b.pipe((0,s.p)((function(e){return e===m.Disable})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_onPurge",{get:function(){return b.pipe((0,s.p)((function(e){return e===m.Purge})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_enabled",{get:function(){return _},enumerable:!1,configurable:!0}),e.prototype._upload=function(e){if(void 0===e&&(e=!1),this._enableHistory&&this._history.length&&(this._historyUploader.upload(this._history,e),this._history=[]),this._reading.length){var t=this._reading.some((function(e){return!!e.actions.length}))?this._reading:this._reading.filter((function(e){return e.totalTime>=y}));t.length&&this._readingStatsUploader.upload(t,e),this._reading=[]}},e.prototype._purge=function(){this._enableHistory&&this._historyUploader.purge(),this._readingStatsUploader.purge()},e.prototype._onModalStateSet=function(){this._reading.length&&(0,o.last)(this._reading).pause()},e.prototype._onModalStateReset=function(){this._reading.length&&(0,o.last)(this._reading).resume()},e}();u.eF.subscribe((function(){b.next(m.Purge),w.disable()})),u.LY.subscribe((function(){w.enable()})),r(window).on("unload",(function(){b.next(m.Purge)}))},66795:function(e,t,n){"use strict";var i=n(58932),r=n(13302),o=n(29583),a=n(7443),s=n(5135),u=n(89885),c=n(96543),l=n(1991),d=n(4610),h=n(23880),f=[u.cf.fling,u.cf.bounce,u.cf.mouseWheel,u.cf.keyPress,u.cf.alignmentCorrection],p=new d.U,m=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var a=e.call(this,n,i,o)||this;return a._lastScrollReason=-1,a._currentFrame=null,a._pushHistory=[],a._uploadPushHistoryDebounced=(0,r.debounce)(a._uploadPushHistory.bind(a),10),a._view=t,c.A.bind(t,"invalidated",null,a._onReadingStarted.bind(a)),c.A.bind(t,"beforeScroll",null,a._onBeforeScroll.bind(a)),c.A.bind(t,"hide",null,a._onReadingStopped.bind(a)),a._onEnabled.subscribe(a._onReadingStarted.bind(a)),a._onDisabled.subscribe(a._onReadingStopped.bind(a)),a}return(0,i.C6)(t,e),t.startSingleArticleReading=function(e){var t=new l.h9(l.Tq.Passive);if(t){var n=t.item(e);n.isExpanded=!0,n.visibilityRate=1}return t},t.stopSingleArticleReading=function(e){e&&(e.freeze(),e.totalTime>=s.j&&p.upload([e]))},t.prototype.pushToHistory=function(e,t){!this._enableHistory||e.tokenized()||e.Id in this._historyItemIds||(this._pushHistory.push(e),e.historyReason=t,this._historyItemIds[e.Id]=1,this._uploadPushHistoryDebounced())},t.prototype._purge=function(){e.prototype._purge.call(this),this._uploadPushHistory()},t.prototype._onReadingStarted=function(){this._enabled&&this._view.isUpdateable()&&(this._lastScrollReason||!this._currentFrame?this._setCurrentFrame(this._checkColumns(this._view.viewport(),new l.h9(l.Tq.Passive,this.viewName))):this._updateCurrentFrame(this._view.viewport()),this._lastScrollReason=0)},t.prototype._onReadingStopped=function(){this._reading.length&&(0,r.last)(this._reading).freeze(),this._upload()},t.prototype._onBeforeScroll=function(e,t){var n=t.delta,i=t.reason;if(this._enabled){var o=this._view.viewport(),a=o.left,s=o.right;n<0?s-=n:a-=n,i===u.cf.drag?this._processDrag({left:a,right:s},i):(0,r.includes)(f,i)&&this._processScrollAnimation({left:a,right:s}),this._lastScrollReason=i}},t.prototype._setCurrentFrame=function(e){this._currentFrame&&(this._currentFrame.freeze(),this._upload()),this._currentFrame=e,e&&this._reading.push(e)},t.prototype._updateCurrentFrame=function(e){this._currentFrame&&this._checkColumns(e,this._currentFrame.resetDataItems())},t.prototype._processDrag=function(e,t){this._lastScrollReason===t?this._updateCurrentFrame(e):this._setCurrentFrame(this._checkColumns(e,new l.h9(l.Tq.Active,this.viewName)))},t.prototype._processScrollAnimation=function(e){(0,r.includes)(f,this._lastScrollReason)?this._updateCurrentFrame(e):this._setCurrentFrame(this._checkColumns(e,new l.h9(l.Tq.Animation,this.viewName)))},t.prototype._checkColumns=function(e,t){var n=this;void 0===t&&(t=null);var i=this._view.columns();if(i.isEmpty())return null;var o=!1,s=0;return i.forEach((function(i){var u=i.intersectsWith(e),c=i.intersectsWith(e,!0),l={};if((0,r.chain)(i.layouts()).filter((function(e){return!!e})).map((function(e){return e.dataItem()})).forEach((function(e){if(t&&c)if(e.Type===a.p.article)l[e.Id]=t.item(e).addColumnStats(i);else if((0,r.isFunction)(e.takeReadingStats)){var o=e.takeReadingStats();o.dataItems.forEach((function(e){l[e.Id]=t.item(e)})),o.actions.forEach((function(e){return t.action(e)}))}!n._enableHistory||e.tokenized()||e.Id in n._historyItemIds||(n._history.push(e),n._historyItemIds[e.Id]=1)})).commit(),t&&u&&(0,r.chain)(i.cells()).map((function(t){return{size:t.visibleSize(e),contentId:t.smartFlowItemId}})).filter((function(e){var t=e.size,n=e.contentId;return t&&n})).forEach((function(e){var t=e.size,n=t.width,i=t.height,r=e.contentId,o=n*i;r in l&&(l[r].size+=o),s+=o})).commit(),!u&&o)return!1;switch(u&&(o=!0),i.type()){case h.zX.ImagesHeadline:case h.zX.SectionHeader:return n._checkHeadlinesColumns(i),!0;case h.zX.AdBlock:return n._checkAdBlockColumns(i),!0}return!0})),t&&t.count?(t.size=s,t):null},t.prototype._checkHeadlinesColumns=function(e){var t,n=this;if(this._enableHistory){var a=(0,r.find)(e.cells().map((function(e){var t=null;return e.elm.find("article").each((function(e,n){return!(t=o(n).attr("aid"))})),t})),(function(e){return!!e})),s=this._view.controller.dataFeedManager().getArticleById(a);if(s&&!s.tokenized()&&!(s.Id in this._historyItemIds)){var u=s.group();if(u&&u.raw()&&4!==u.raw().GroupType){var c=u.articles();(t=this._history).push.apply(t,(0,i.fX)([],(0,i.zs)(c),!1)),(0,r.forEach)(c,(function(e){n._historyItemIds[e.ArticleId]=1}))}}}},t.prototype._checkAdBlockColumns=function(e){if(this._enableHistory){var t=e.data();!t||t.tokenized()||t.getId()in this._historyItemIds||(this._history.push(t),this._historyItemIds[t.getId()]=1)}},t.prototype._uploadPushHistory=function(){this._enableHistory&&!(0,r.isEmpty)(this._pushHistory)&&(this._historyUploader.upload(this._pushHistory),this._pushHistory=[])},t}(s.C);t.A=m},1991:function(e,t,n){"use strict";n.d(t,{h9:function(){return d},Tq:function(){return r},K8:function(){return o}});var i,r,o,a=n(65678),s=n(13302),u=n(58932),c=function(){function e(e){this.size=0,this.visibilityRate=0,this.isExpanded=!1,this._reading=null,this._stats=null,this._article=e}return Object.defineProperty(e.prototype,"article",{get:function(){return this._article},enumerable:!1,configurable:!0}),e.prototype.addColumnStats=function(e){var t=this,n=e.state();return n?(this.isExpanded=this.isExpanded||n.expanded,(n=n.rendering)&&(n=n[this._article.Id])&&(n=n.text)?(this._reading||(this._reading={}),(0,s.forIn)(n,(function(e,n){n in t._reading?t._reading[n].lines+=e.lines:t._reading[n]=(0,u.Cl)({},e)})),this._stats=null,this):this):this},Object.defineProperty(e.prototype,"startPosition",{get:function(){var e=this.stats;return e?e.start:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){var e=this.stats;return e?e.end:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stats",{get:function(){var e=this;if(!this._stats)if(this._reading){var t=!1,n=this._article.textLength(),i=0,r=0,o=0;(0,s.forEach)(this._article.Blocks,(function(a,s){var u="string"==typeof a?a:a.Text;if(s in e._reading){var c=e._reading[s];if(t||(r=(u.length*c.start/c.outof+i)/n,t=!0),c.lines+c.start0?this._uploadBufferData():this._uploadBufferDataDebounced())},t.prototype._uploadBufferData=function(){if(this._readingMap&&d.online()){var e=new Date;this._readingMap.userCurrentTime=e.toISOString(),this._readingMap.userTimeOffset=e.getTimezoneOffset(),f.A.post("ReadArticles","Add",JSON.stringify(this._readingMap),{contentType:"application/json"}),this._readingMap=null}},t}(m.C)},4610:function(e,t,n){"use strict";n.d(t,{U:function(){return C}});var i=n(58932),r=n(13302),o=n(82230),a=n(58735),s=function(e){},u=n(1991),c=n(16832),l=n(98534),d=n(37618),h=n(98874),f=n(23304),p=n(47944),m=n(88967),g=n(89247),v=l.d.deviceInfo,y=l.d.osInfo,_=l.d.browserInfo,b=l.d.sessionInfo,w={device:(0,d.L)(v),os:(0,h.f)(y),application:(0,f.f)(_),session:(0,p.F)(b)},C=function(e){function t(t){void 0===t&&(t=u.K8.Articles);var n=e.call(this)||this;return n._viewName=t,n}return(0,i.C6)(t,e),t.prototype.upload=function(e,t){var n;if(void 0===t&&(t=!1),!(0,r.isEmpty)(e)){var o=this._processReadingStats(e);this._model?(n=this._model.frames).push.apply(n,(0,i.fX)([],(0,i.zs)(o),!1)):this._model=(0,i.Cl)((0,i.Cl)({},w),{pageView:{id:null,url:(0,m.t)((0,g.Ti)()),referer:null},userCurrentTime:null,userTimeOffset:null,view:this._viewName,frames:o}),this._model.frames.length>=0||t?this._uploadBufferData():this._uploadBufferDataDebounced()}},t.prototype._uploadBufferData=function(){if(this._model){if(a.online()){var e=new Date;this._model.userCurrentTime=e.toISOString(),this._model.userTimeOffset=e.getTimezoneOffset(),o.A.post("ReadArticles","Add",JSON.stringify(this._model),{contentType:"application/json"})}else this._storeBufferData();this._model=null}},t.prototype._processReadingStats=function(e){var t=this;if((0,r.isEmpty)(e))return null;var n=(0,r.chain)(e).filter((function(e){return"text"===e.type})).map((function(e){return t._processTextFrame(e)})).value();return n.length?n:null},t.prototype._processTextFrame=function(e){var t={StartTime:e.startTime,Duration:e.totalTime,ReadingDuration:e.totalTime-e.inactiveTime,Actions:e.actions.slice(),Items:[],FrameType:e.frameType};return(0,r.forIn)(e.articles,(function(e){var n={Id:e.article.Id,Type:e.article.Type,VisibleAreaOffset:e.startPosition,VisibleAreaSize:e.endPosition-e.startPosition,VisibilityRate:e.visibilityRate,Expanded:e.isExpanded,ArticleLanguage:e.article.Language,SourceLanguage:e.article.OriginalLanguage,Enriches:e.article.Enriches};e.article.ArticleId&&(n.Id=e.article.ArticleId),t.Items.push(n)})),t},t.prototype._storeBufferData=function(){s(this._model)},t}(c.C)},58506:function(e,t,n){"use strict";n.d(t,{X:function(){return f}});var i=n(58932),r=n(13302),o=n(15397),a=n(30212),s=n(58735),u=n(32512),c=n(98177);function l(e){return!0===e||"true"===e}function d(e,t){return(0,i.sH)(this,arguments,void 0,(function(e,t){var n,r,d,h,f,p,m,g,v,y,_,b,w,C,A=t.url,I=t.service,S=t.command,P=t.data,x=t.requestConfig;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return x||(x={}),x.serviceName||(x.serviceName="".concat(I).concat(S?"/".concat(S):"")),[4,Promise.all([s.authorized(),(0,o.kq)("services",{})])];case 1:return n=i.zs.apply(void 0,[t.sent(),2]),r=n[0],d=n[1],h=d[I]||{},f=(0,u.H_)()||l(h.httpsrequired)||l(h.httpsRequired),p=!1,m={},g=(0,u.pc)(),h.cdnProfile&&(v=(0,o.Ct)("cdnProfiles",{})[h.cdnProfile])&&(!v.httpsBaseUrl&&f||(y=function(e){return e.indexOf("://")>0&&(e=e.substr(e.indexOf("/",8))),e}(g),f=f||l(v.httpsRequired),g=function(e,t){return"/"===e[e.length-1]&&"/"===t[0]&&(t=t.substr(1)),e+t}(g=f?v.httpsBaseUrl:v.baseUrl,y),p=!0)),_="".concat(g).concat(I,"/"),p||(m.Authorization="Bearer ".concat(r)),f&&(_=_.replace(/^http:\/\//i,"https://")),S&&(_+=S),b={maxRetries:x.disableRetry?0:3},w=(0,i.Cl)((0,i.Cl)({},b),h.retryPolicy),C=(0,i.Cl)((0,i.Cl)({method:e,url:A||_,data:"GET"===e?null:P,query:"GET"===e?P:null},x),{headers:(0,i.Cl)((0,i.Cl)({},m),x.headers)}),[4,new Promise((function(e,t){(0,u.Ez)(C,w).then((function(t){try{e(t)}catch(e){(0,a.z)("Unable call resolve on deferred in service call: ".concat(_),e)}})).catch((function(e){try{t(new c.A(e))}catch(e){(0,a.z)("Unable call reject on deferred in service call: ".concat(_),e)}}))}))];case 2:return[2,t.sent()]}}))}))}function h(e){for(var t=[],n=1;n0&&"string"==typeof t[0]&&(a=t[0],t=t.slice(1));var s=void 0;t.length>0&&(s="object"==typeof t[0]?(0,r.cloneDeep)(t[0]):void 0===t[0]?{}:t[0],t=t.slice(1));var u=void 0;return t.length>0&&(u=t[0],t=t.slice(1)),d(e,{service:o,command:a,data:s,requestConfig:u})}var c=(0,i.Cl)({},t[0]);return"object"==typeof c.data?c.data=(0,r.cloneDeep)(c.data):void 0===c.data&&(c.data={}),c.requestConfig&&(c.requestConfig=(0,r.cloneDeep)(c.requestConfig)),d(e,c)}var f={baseUrl:u.pc,get:function(){for(var e=[],t=0;t2?e[2]:null;try{var a=o(n);setTimeout((function(){try{i.apply(null,a)}catch(e){r&&r()}}),0)}catch(e){if(!r)throw new Error(e);r()}}},56856:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var i=n(27189),r=n(58932),o=n(13302),a=n(92188),s=n(58735),u=n(53308),c=n(45235),l=n(44260),d={testChunks:!1,minFileSize:1,permanentErrors:[0,400,403,404,413,415,500,501],headers:{}},h=function(){function e(e,t,n){if(this.createFileUrl="",this.finalizeUrl="",this.storage="",this.serverUrl="",(0,c.gP)(e))throw new Error("serverUrl is empty");if((0,c.gP)(t))throw new Error("storage is empty");this.storage=t,this.serverUrl=(0,o.trimEnd)(e,"/"),this.options=(0,r.Cl)((0,r.Cl)({},d),n)}return e.prototype.upload=function(e){var t=this;return Promise.all([s.authorized(),l.Ay.loaded()]).then((function(e){var n=(0,r.zs)(e,1)[0];t.createFileUrl="".concat(t.serverUrl,"/create/").concat(t.storage),t.options.headers.Authorization="Bearer ".concat(n)})).then((function(){return t.createResumable({uploadInfo:{},onFileAdded:null==e?void 0:e.onFileAdded,onUploadStart:null==e?void 0:e.onUploadStart,onProgress:null==e?void 0:e.onProgress})})).then((function(e){return t.openDialog(e)})).then((function(e){return t.createFile(e)})).then((function(e){return t.startUploading(e)})).then((function(e){return t.finalizeUploading(e)}))},e.prototype.openDialog=function(e){var t=this;return new Promise((function(n){var i=t.createFileInput(t.options.allowedExtensions);i.addEventListener("input",(function(t){e.file=t.target.files[0],n(e)})),i.focus(),i.dispatchEvent(new MouseEvent("click"))}))},e.prototype.createFile=function(e){var t=this;return(0,u.zA)({url:this.createFileUrl,data:{contentType:e.file.type},requestConfig:{contentType:"application/json"}}).then((function(n){return e.id=n.id,e.fileId="".concat(t.storage,"/").concat(n.id),e.resumable.opts.target="".concat(t.serverUrl,"/append/").concat(t.storage,"/").concat(n.id),t.finalizeUrl="".concat(t.serverUrl,"/finalize/").concat(t.storage,"/").concat(n.id),e}))},e.prototype.createResumable=function(e){var t=this;return new Promise((function(n,i){var r=new a(t.options);r.support||i(new Error("Resumable.js not supported")),(0,o.isFunction)(e.onFileAdded)&&r.on("fileAdded",(function(){e.onFileAdded(e.uploadInfo)})),(0,o.isFunction)(e.onUploadStart)&&r.on("uploadStart",(function(){return e.onUploadStart(e.uploadInfo.fileId)})),(0,o.isFunction)(e.onProgress)&&r.on("progress",(function(){e.onProgress(Math.floor(100*r.progress()))})),e.uploadInfo.resumable=r,n(e.uploadInfo)}))},e.prototype.startUploading=function(e){return new Promise((function(t,n){var i=e.resumable;i.on("complete",(function(){t(e)})),i.on("fileError",(function(e,t){n(new Error(t))})),i.on("fileError",(function(e,t){n(new Error(t))})),i.on("fileAdded",(function(){i.upload()})),i.addFile(e.file)}))},e.prototype.finalizeUploading=function(e){return(0,u.yd)({url:this.finalizeUrl})},e.prototype.createFileInput=function(e){var t=document.createElement("input");return t.setAttribute("type","file"),t.style.opacity="0",t.style.display="none",(0,c.gP)(e)&&t.setAttribute("accept",e),t},e}(),f={maxFiles:1,maxFileSize:1e7,chunkSize:1e6,allowedExtensions:".jpeg,.jpg,.gif,.png",method:"octet",uploadMethod:"PUT"},p=function(){function e(e,t){void 0===t&&(t=f),this.storage=e,this.options=t,this.fileUpload=null}return e.prototype.upload=function(e){return this.getFileUpload().then((function(t){return t.upload(e)}))},e.prototype.getFileUpload=function(){var e=this;return null===this.fileUpload?i.A.getAsync("imageServer.upload.url").then((function(t){return e.fileUpload=new h(t,e.storage,e.options),e.fileUpload})):Promise.resolve(this.fileUpload)},e}()},66687:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var i=function(){function e(e){this._cache={},this._textBlockOffsetMap={},e&&(this._article=e)}return e.textBlockCacheKey=function(e,t,n){if(t<0||!e&&t>=3){var i="".concat(t,"_").concat(e);return!e&&t>=3&&n&&n.disableArtLeadFormatting&&(i+="_noArtLead"),i}return e.toString()},e.fromJSON=function(t){var n=new e;return t&&(n._cache=t),n},e.prototype.get=function(t,n,i){void 0===n&&(n=0);var r=e.textBlockCacheKey(t,n,i);return this._cache[r]},e.prototype.getAll=function(e,t){void 0===e&&(e=0);var n="all_".concat(e);return this._cache[n]},e.prototype.getInitialOffset=function(t,n,i){return this._textBlockOffsetMap[e.textBlockCacheKey(t,n,i)]||0},e.prototype.toJSON=function(){return this._cache},e.prototype.reset=function(){this._cache={},this._textBlockOffsetMap={}},e}()},69895:function(e,t,n){"use strict";var i;n.d(t,{_:function(){return i}}),function(e){e.Base="base",e.Ad="ad",e.Annotation="annotation",e.Comments="comments",e.ContinuedFromLink="continuedFromLink",e.Image="image",e.RelatedAd="related.ad",e.Related="related",e.FullTitle="fullTitle",e.Title="title",e.Subtitle="subtitle",e.Tools="tools",e.Video="video",e.Text="text",e.TranslationBar="translationBar"}(i||(i={}))},77990:function(e,t,n){"use strict";n.d(t,{i:function(){return h}});var i=n(58932),r=n(29583),o=n(13302),a=n(92066),s=n(48389),u=n(85464),c=n(16213),l=n(77409),d=[],h=function(){function e(){var e=this;this._tasks=[],this._articleElms={},this._panel=d.length?d.pop():r("
").css({position:"absolute",left:"-100000px",width:"1px",height:"1px",overflow:"hidden",visibility:"hidden"}).addClass("optimizeForTempCalculations"),this._elms=(0,u.uW)(this._panel),this.getArticleElm=this._getArticleElm.bind(this),this.getSectionElm=function(){return e._elms.section()}}return e.prototype.mutate=function(e){return this._mutate(0,e)},e.prototype.measure=function(e){return this._measure(0,e)},e.prototype.execute=function(){var e,t,n,r,o,s,u=a.o.current.textViewContainer.elm();try{for(var l=(0,i.Ju)(this._tasks),d=l.next();!d.done;d=l.next()){var h=d.value,f=h.mutateTasks,p=h.measureTasks;if(f.length)try{for(var m=(n=void 0,(0,i.Ju)(f)),g=m.next();!g.done;g=m.next()){var v=g.value;try{v()}catch(e){c.A.error(e)}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}if(p.length){u.append(this._panel);try{for(var y=(o=void 0,(0,i.Ju)(p)),_=y.next();!_.done;_=y.next()){v=_.value;try{v()}catch(e){c.A.error(e)}}}catch(e){o={error:e}}finally{try{_&&!_.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}this._panel.detach()}}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}this.dispose()},e.prototype.executeAsync=function(){var e=this;return this._tasks.length?new Promise((function(t){var n,r,o,s=a.o.current.textViewContainer.elm(),u=l.S;try{for(var c=(0,i.Ju)(e._tasks),d=c.next();!d.done;d=c.next()){var h=d.value,f=h.mutateTasks,p=h.measureTasks;f.length&&(u=u.mutate.apply(u,(0,i.fX)([],(0,i.zs)(f),!1))),p.length&&(u=(o=u.mutate((function(){return s.append(e._panel)}))).measure.apply(o,(0,i.fX)([],(0,i.zs)(p),!1)).mutate((function(){return e._panel.detach()})))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}u.mutate((function(){e.dispose(),t()}))})):Promise.resolve()},e.prototype.dispose=function(){(0,o.forIn)(this._articleElms,(function(e){e.remove()})),this._articleElms=null,this._elms=null,d.push(this._panel),this._tasks=null,this._panel=null},e.prototype._getArticleElm=function(e){if(void 0===e&&(e=0),e in this._articleElms)return this._articleElms[e];var t=this._articleElms[e]=this._elms.section().article().addClass("optimizeForTempCalculations").addClass("art");return e in s.BX?t.addClass(s.BX[e]):e<0&&t.addClass("art-stack"),t},e.prototype._getTasks=function(e){return this._tasks[e]||(this._tasks[e]={mutateTasks:[],measureTasks:[]}),this._tasks[e]},e.prototype._measure=function(e,t){var n=this;return this._getTasks(e).measureTasks.push(t),{mutate:function(t){return n._mutate(e+1,t)}}},e.prototype._mutate=function(e,t){var n=this;return this._getTasks(e).mutateTasks.push(t),{measure:function(t){return n._measure(e,t)}}},e}()},67010:function(e,t,n){"use strict";n.d(t,{G:function(){return d},n:function(){return i}});var i,r,o=n(13302),a=n(69463),s=n(25778),u=n(26476),c=n(48389),l=n(92066);!function(e){e[e.Unknown=-1]="Unknown",e[e.Column=0]="Column",e[e.Figure=1]="Figure",e[e.Header=2]="Header",e[e.MyTitles=3]="MyTitles",e[e.ImagesHeader=4]="ImagesHeader"}(i||(i={})),function(e){e[e.CellRemoved=0]="CellRemoved"}(r||(r={}));var d=function(){function e(){this._blocks=[],this._context=l.o.current,this._eventsSubject=new a.B;var e=4===arguments.length?{elm:arguments[0],colspan:arguments[1],top:arguments[2],height:arguments[3]}:arguments[0],t=e.elm,n=e.colspan,r=e.top,o=e.height,s=e.nopadding,u=void 0!==s&&s,c=e.smartFlowItemId,d=void 0===c?null:c,h=e.type,f=void 0===h?i.Unknown:h,p=e.layout,m=void 0===p?null:p;this._elm=t.css({top:"".concat(r,"px"),left:"0px"}),this.colspan=n,this.top=r,this.height=o,this.nopadding=u,this.smartFlowItemId=d,this.type=f,this.layout=m}return e.prototype.remove=function(){this._elm&&(this._elm.remove(),this._elm=null,this._blocks=null,this._eventsSubject.next(r.CellRemoved),this._eventsSubject.complete())},e.prototype.onRemoved=function(){for(var e=this,t=[],n=0;n=n||r<=t?null:(in&&(r=n),{width:r-i,height:this.height||0})},Object.defineProperty(e.prototype,"left",{get:function(){return this._left},set:function(e){this._left!==e&&(this._left=e,this._elm&&this._elm.css("left",e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elm",{get:function(){return this._elm},enumerable:!1,configurable:!0}),e.prototype.addBlock=function(e){return this._blocks.indexOf(e)<0&&this._blocks.push(e),this},Object.defineProperty(e.prototype,"blocks",{get:function(){return this._blocks},enumerable:!1,configurable:!0}),e.prototype.show=function(){return this._elm&&this._elm.show(),this},e.prototype.hide=function(){return this._elm&&this._elm.hide(),this},e}()},23880:function(e,t,n){"use strict";n.d(t,{fd:function(){return w},zX:function(){return g},Sl:function(){return C}});var i,r=n(58932),o=n(13302),a=n(69463),s=n(25778),u=n(26476),c=n(32787),l=n(92066),d=n(48389),h=n(67010),f=n(21773),p=n(29583);function m(e){return p('
'))}!function(e){e[e.Default=0]="Default",e[e.Horizontal=1]="Horizontal"}(i||(i={}));var g,v,y,_=function(){function e(e){this._dividers=[],this._panel=e}return e.prototype.getDivider=function(e,t){if(void 0===e&&(e=i.Default),e===i.Horizontal){var n=m("art-div");return this._panel.append(n),t&&n.width((0,d.y6)(t)),n}if(this._dividers.length)return this._dividers.pop();var r=m("col-div");return this._panel.append(r),r},e.prototype.recycle=function(e){e.hasClass("col-div")&&this._dividers.push(e.css("left",-1e4))},e}();function b(e,t){return e.top-t.top}!function(e){e[e.Content=0]="Content",e[e.Misc=1]="Misc",e[e.SectionHeader=2]="SectionHeader",e[e.Header=3]="Header",e[e.CategoryTail=3]="CategoryTail",e[e.ImagesHeadline=4]="ImagesHeadline",e[e.Replies=6]="Replies",e[e.InitBlock=7]="InitBlock",e[e.Monitors=11]="Monitors",e[e.CoverBlock=12]="CoverBlock",e[e.Opinion=13]="Opinion",e[e.HomeBlock=14]="HomeBlock",e[e.SocialInfo=15]="SocialInfo",e[e.AdBlock=16]="AdBlock",e[e.Profile=17]="Profile",e[e.BookmarkPages=18]="BookmarkPages",e[e.RecommendedOpinions=19]="RecommendedOpinions",e[e.PromoSection=20]="PromoSection",e[e.Gift=22]="Gift",e[e.GiftVideoAd=25]="GiftVideoAd",e[e.Social=26]="Social",e[e.Onboarding=27]="Onboarding"}(g||(g={})),function(e){e[e.Disposed=1]="Disposed",e[e.Disposing=2]="Disposing"}(v||(v={}));var w=function(e){function t(t){var n=e.call(this)||this;return n._context=l.o.current,n._cells=[],n._events=new a.B,n._left=-1e4,n._colspan=1,n._isVisible=!0,n._layouts=[],n._bundle=null,n._articleIdx=-1,n._columnIdx=-1,n._articleColumnsCount=1,n._articlesCount=1,n._section=null,n._type=g.Content,n._idx=-1,n._isFirst=!1,n._isLast=!1,n._state=null,n._noDividers=!1,n._noHeaderAbove=!1,n._anchors=null,t&&c.ck.linkItems(t,n),n._events=new a.B,n}return(0,r.C6)(t,e),t.resize=function(e,t,n){y=n},t.prototype.left=function(e){return arguments.length?(this._left!==e&&(this._left=e,this._cells.filter((function(e){return!!e})).forEach((function(t){t.left=e+(t.nopadding?0:d.Dh)})),this._divider&&this._divider.css("left",e)),this):this._left},t.prototype.move=function(e){return this.left(this._left+e)},t.prototype.isVisible=function(){var e=!1,t=this._left;(0,o.isNumber)(arguments[0])?t=arguments[0]:(0,o.isBoolean)(arguments[0])&&(e=arguments[0]),2===arguments.length&&(0,o.isBoolean)(arguments[1])&&(e=arguments[1]);var n=t+this._context.textViewScroller.left,i=n+(e?this.width():this.colspanWidth());return n>=y.left&&ny.left&&i<=y.right||ny.right},t.prototype.width=function(e){return arguments.length?(this._width=e,this):this._width||d.zt},t.prototype.colspanWidth=function(){for(var e=this.width(),t=this._next,n=1;n=e.left&&ne.left&&i<=e.right||ne.right},t.prototype.addCell=function(e){this._cells.push(e),e.column=this,e.left=this._left,this._colspan=Math.max(this._colspan,e.colspan)},t.prototype.removeCell=function(e){for(var t=0;te}))},t.prototype.cells=function(){return this._cells},t.prototype.visibleCells=function(e){if(void 0===e&&(e=this._left),!this.isVisible(e)||!this._isVisible)return null;var t=e+this._context.textViewScroller.left;return this._cells.filter((function(e){var n=t+d.zt*e.colspan;return t<=y.right&&n>y.left}))},t.prototype.split=function(e){var t=[[],[]],n=null,i=null;this._cells.forEach((function(r){var o=r.top;o<=e?(t[0].push(r),o+r.height>e&&(i=r.smartFlowItemId,n=r.layout)):t[1].push(r)}));var r=null,o=null,a={cells:[],layout:n},s={};return t[0].forEach((function(e){var t=e.smartFlowItemId;t===i?a.cells.push(e):(r||(r={cells:[],layouts:[]}),r.cells.push(e),t in s||(s[t]=0,r.layouts.push(e.layout)))})),t[1].forEach((function(e){var t=e.smartFlowItemId;t===i?a.cells.push(e):(o||(o={cells:[],layouts:[]}),o.cells.push(e),t in s||(s[t]=0,o.layouts.push(e.layout)))})),r?(this._cells=r.cells,this._layouts=r.layouts):(this._cells=a.cells,this._layouts=[a.layout]),{above:r,below:o,clicked:a}},t.prototype.dispose=function(e){this._events.next(v.Disposing),this._cells&&this._cells.filter((function(e){return!!e})).forEach((function(e){e.remove()})),delete this._cells,delete this._layouts,delete this._bundle,this._divider&&(this._dividers().recycle(this._divider),delete this._divider);var t=this.detach(e);return this._events.next(v.Disposed),this._events.complete(),t},t.prototype.disposed=function(){var e=this;return new Promise((function(t){var n=e.onDisposed().subscribe((function(){t(e),n.unsubscribe()}))}))},t.prototype.onDisposed=function(e){var t=this,n=this._events.pipe((0,s.p)((function(e){return e===v.Disposed})),(0,u.T)((function(){return t})));if(!arguments.length)return n;var i=n.subscribe((function(){e(t),i.unsubscribe()}));return this},t.prototype.onDisposing=function(e){var t=this,n=this._events.pipe((0,s.p)((function(e){return e===v.Disposing})),(0,u.T)((function(){return t}))).subscribe((function(){e(t),n.unsubscribe()}));return this},t.prototype.addDivider=function(e,t){if(e===h.n.Figure){var n=this._getCellsPositions(),r=0;if(!(0,o.isEmpty)(n)){var a=n[n.length-1];r=a.top+a.height}this.addCell(new h.G(this._dividers().getDivider(i.Horizontal,t),t,r,(0,f._h)()))}else this._divider||(this._divider=this._dividers().getDivider());return this},t.prototype.hasDivider=function(){return!!this._divider},t.prototype.divider=function(){return this._divider},t.prototype.removeDivider=function(){return this._divider&&(this._dividers().recycle(this._divider),delete this._divider),this},t.prototype.height=function(){var e=this._getCellsPositions();if((0,o.isEmpty)(e))return 0;var t=e[e.length-1];return t.top+t.height},t.prototype.position=function(){var e=this._getCellsPositions();if((0,o.isEmpty)(e))return null;var t=e[e.length-1],n=e[0].top,i=t.top+t.height;return{top:n,bottom:i,height:i-n}},t.prototype.findAvailablePosition=function(e,t,n,i){var o,a,s=0,u=0;try{for(var c=(0,r.Ju)(this._getCellsPositions(i)),l=c.next();!l.done;l=c.next()){var h=l.value,f=h.top-s;if(f>=e)return{top:s,height:f,margin:u};if(u=t,s=h.top+h.height,n){var p=(s+u)%d.K_;p&&(u+=d.K_-p)}s+=u}}catch(e){o={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}var m=d.E3-s;return mt;)n=n._next,e=Math.max(e,t+++n._colspan);return e},t.prototype.addLayout=function(e){if(this._layouts){if(this._layouts.indexOf(e)>=0)return this;this._layouts.push(e)}else this._layouts=[e];return this},t.prototype.layouts=function(){return this._layouts},t.prototype.bundle=function(e){return arguments.length?(this._bundle=e,this):this._bundle},t.prototype.section=function(e){return arguments.length?(this._section=e,this):this._section},t.prototype.type=function(e){return arguments.length?(this._type=e,this):this._type},t.prototype.idx=function(e){return arguments.length?(this._idx=e,this):this._idx},t.prototype.isFirst=function(e){return arguments.length?(this._isFirst=e,this):this._isFirst},t.prototype.isLast=function(e){return arguments.length?(this._isLast=e,this):this._isLast},t.prototype.hasItem=function(e){return!(0,o.isEmpty)(this._layouts)&&(0,o.findIndex)(this._layouts,(function(t){return t&&t.dataItem()===e}))>=0},t.prototype.data=function(){if((0,o.isEmpty)(this._layouts))return null;var e=this._layouts.filter((function(e){return e&&(0,o.isFunction)(e.dataItem)})).map((function(e){return e.dataItem()}));return e.length?1===e.length?e[0]:e:null},t.prototype.state=function(){return this._state||(this._state={}),this._state},t.prototype.show=function(){return this._isVisible||(this._cells.filter((function(e){return!!e})).forEach((function(e){return e.show()})),this._isVisible=!0),this},t.prototype.hide=function(){return this._isVisible?(this._cells.filter((function(e){return!!e})).forEach((function(e){return e.hide()})),this._isVisible=!1,this):this},t.prototype.noDividers=function(e){return arguments.length?(this._noDividers=e,this):this._noDividers},t.prototype.noHeaderAbove=function(e){return arguments.length?(this._noHeaderAbove=e,this):this._noHeaderAbove},t.prototype.anchors=function(e){return arguments.length?(this._anchors=e,this):this._anchors},t.prototype.nearestAnchorDelta=function(e,t){var n,i,o=this.width();if(e<0||e>o)return 0;if(!this._anchors)return t?t>0?e:e-o:e<=o-e?e:e-o;var a=0;try{for(var s=(0,r.Ju)(this._anchors),u=s.next();!u.done;u=s.next()){var c=u.value,l=a;if(e<=(a=c))return t?t>0?e-l:e-a:e-l<=a-e?e-l:e-a}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return t?t<0?e-a:e-o:e-a<=o-e?e-a:e-o},t.prototype._dividers=function(){var e=this._context.textViewColumnsDividers;return e||(this._context.textViewColumnsDividers=e=new _(this._context.textViewScroller.elm)),e},t.prototype._getCellsPositions=function(e){var t=[];if(!(0,o.isEmpty)(e)){var n=e.map((function(e){return{top:e.top,height:e.height}}));t.push.apply(t,(0,r.fX)([],(0,r.zs)(n),!1))}for(var i=function(e,n){if(e._colspan=n})).map((function(e){return{top:e.top,height:e.height}}));t.push.apply(t,(0,r.fX)([],(0,r.zs)(i),!1))},a=this,s=1;a;a=a._prev,++s)i(a,s);return t.sort(b)},t}(c.ck),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.concat=function(e,n){return e===t.empty&&n===t.empty||!e&&!n?t.empty:e?n?e.copy().append(n):e.copy():n.copy()},t.prototype.copy=function(){return new t(this._head,this._tail)},t.prototype.dispose=function(e,t){if(arguments.length){if(2===arguments.length){var n=this.detach(e,t);return e.dispose(),n}}else{this.detach();for(var i=this._head;i;i=i.dispose(1));this.empty()}},t.prototype.disposed=function(){var e=[];return this.forEach((function(t){e.push(t.disposed())})),Promise.all(e)},t.prototype.isVisible=function(){var e=!1;return this.forEach((function(t){if(t.isVisible())return e=!0,!1})),e},t.prototype.appendColumns=function(){if(1===arguments.length)return!(n=arguments[0])||n.isEmpty()?this:(this._checkDividers(this.tail(),n.head()),this.append(n));if(2===arguments.length&&arguments[0]instanceof w&&arguments[1]instanceof t){var e=arguments[0],n=arguments[1];return this._checkDividers(e,n.head()),this.append(e,n)}return this},t.prototype.prependColumns=function(){if(1===arguments.length)return!(n=arguments[0])||n.isEmpty()?this:(this._checkDividers(n.tail(),this.head()),this.prepend(n));if(2===arguments.length&&arguments[0]instanceof w&&arguments[1]instanceof t){var e=arguments[0],n=arguments[1];return this._checkDividers(n.tail(),e),this.prepend(e,n)}return this},t.prototype.getWidth=function(){var e=0;return this.forEach((function(t){e+=t.width()})),e},t.prototype._checkDividers=function(e,t){e&&t&&(e.noDividers()?t.removeDivider():t.noDividers()||t.addDivider())},t.empty=Object.freeze(new t),t}(c.To)},91934:function(e,t,n){"use strict";var i,r,o;n.d(t,{Lg:function(){return i},dp:function(){return o},nn:function(){return r}}),function(e){e[e.Unknown=-1]="Unknown",e[e.RegularArticle=0]="RegularArticle",e[e.ArticlePreview=1]="ArticlePreview",e[e.RegularPage=2]="RegularPage",e[e.LastVisit=3]="LastVisit",e[e.SearchBar=4]="SearchBar",e[e.MyLastTitles=5]="MyLastTitles",e[e.Replies=6]="Replies",e[e.InitBlock=7]="InitBlock",e[e.Breakingnews=8]="Breakingnews",e[e.Monitors=11]="Monitors",e[e.Profile=12]="Profile",e[e.Opinion=13]="Opinion",e[e.HomeBlock=14]="HomeBlock",e[e.AdBlock=16]="AdBlock",e[e.Social=17]="Social",e[e.BookmarkPages=18]="BookmarkPages",e[e.RecommendedOpinions=19]="RecommendedOpinions",e[e.SocialArticle=20]="SocialArticle",e[e.Post=21]="Post",e[e.Gift=22]="Gift",e[e.PromoSection=23]="PromoSection",e[e.CtaSignUpSection=24]="CtaSignUpSection",e[e.GiftVideoAd=25]="GiftVideoAd",e[e.CtaOnboarding=26]="CtaOnboarding",e[e.Info=27]="Info"}(i||(i={})),function(e){e[e.Unknown=-1]="Unknown",e[e.Headlines=0]="Headlines",e[e.Interesting=1]="Interesting",e[e.Users=2]="Users",e[e.MoreNewsCluster=3]="MoreNewsCluster",e[e.ReadersChoice=4]="ReadersChoice",e[e.SinceYourLastVisit=5]="SinceYourLastVisit",e[e.Category=6]="Category",e[e.Topic=7]="Topic",e[e.UserSection=8]="UserSection",e[e.FollowedChannel=9]="FollowedChannel",e[e.DirectArticleLink=10]="DirectArticleLink",e[e.FollowedOpinion=11]="FollowedOpinion"}(r||(r={})),function(e){e[e.Regular=0]="Regular",e[e.Basic=1]="Basic",e[e.RegularHeadlines=2]="RegularHeadlines",e[e.ImagesHeadlines=3]="ImagesHeadlines",e[e.Category=4]="Category",e[e.SocialCategory=5]="SocialCategory"}(o||(o={}))},77409:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var i,r=n(58932),o=n(16213),a=function(){function e(){this._mutateTasks=[],this._measureTasks=[]}return e.create=function(){var t=new e;return t._scheduleExecution(),t},e.prototype.mutate=function(){for(var e,t=[],n=0;n=0?"&":"?","scale=").concat(o)))}),100);function h(e,t,n){d(),n*c<1&&(c=1/n);var i=n*c*s.scale/o;u.css({translateLeft:e-s.x,translateTop:t-s.y,scaleX:i,scaleY:i})}var f={show:function(e){l=Date.now(),u&&u.remove(),c=1,s=e,function(){var e,t=r.o.current.textViewContainer,n=Math.round((s.x-s.left)*o/s.scale),c=Math.round((s.y-s.top)*o/s.scale),h=s.x-n,f=s.y-c-t.elm().offset().top,p=Math.round(s.width*o/s.scale),m=Math.round(s.height*o/s.scale);u=t.elm().createChild("div").css((e={position:"absolute",left:"".concat(h,"px"),top:"".concat(f,"px"),width:"".concat(p,"px"),height:"".concat(m,"px"),transformOrigin:"".concat(n,"px ").concat(c,"px")},e["z-index"]=100,e)).optimizeForTransform().html(' ')),s.elm.css("visibility","hidden");var g=l,v=new Image;v.onload=function(){a&&l===g&&d()},(0,i.defer)((function(){v.src=s.maxScaleUrl||"".concat(s.url).concat(s.url.indexOf("?")>=0?"&":"?","scale=").concat(o)}))}(),h(e.x,e.y,1),a=!0},update:function(e){if(a){var t=e.center();h(t.x,t.y,e.scale())}},hide:function(){s&&s.elm.css("visibility","visible"),u&&u.hide(),s=null,a=!1,d.cancel()},get isActive(){return a}}},48389:function(e,t,n){"use strict";n.d(t,{A7:function(){return a},BX:function(){return _},DH:function(){return R},Dh:function(){return p},E3:function(){return C},FG:function(){return T},Gr:function(){return s},J4:function(){return u},K_:function(){return S},MJ:function(){return h},Nw:function(){return P},PP:function(){return o},Ps:function(){return w},S3:function(){return N},TJ:function(){return l},UO:function(){return d},VB:function(){return v},VN:function(){return f},YI:function(){return V},_b:function(){return x},aC:function(){return k},ek:function(){return E},fJ:function(){return y},kz:function(){return c},mn:function(){return D},oG:function(){return m},pJ:function(){return g},pO:function(){return b},se:function(){return L},tg:function(){return I},y6:function(){return M},zT:function(){return H},zt:function(){return A}});var i=n(16580),r='
',o="a.readmore",a="dis",s='Continue '+r,u='Continue '+r,c=' Continued ',l="no-hghlt",d=300,h=Number.MAX_VALUE,f=3,p=16,m=p+p,g=!1,v=!1,y=!1,_=Object.freeze({0:"",1:"art-t2",2:"art-t3",3:"art-t4",4:"art-t5"});function b(e){_=e}var w=0,C=0,A=0,I=0,S=24,P=0,x=!0,T=!0,k=!0;function E(e){void 0===e&&(e={});var t=e.showIssueInfo,n=void 0!==t&&t,r=e.showContinuedFromLink,o=void 0!==r&&r,a=e.showPageThumbnail;g=n,v=o,y=void 0!==a&&a,x=i.A.get("features.comments",!0),T=i.A.get("ui.Bookmarks.enable",!0),k=i.A.get("ui.Similar.enable",!0),i.A.get("features.web.textview.tags.enabled",!1)}function M(e){return void 0===e&&(e=1),A*e-m}function D(e){I=e.articlePreviewColumnsCount,C=e.columnHeight,A=e.columnWidth,S=e.lineHeight,w=e.visibleColumnsCount,P=Math.floor(C/S)}function N(){return{articlePreviewColumnsCount:I,columnHeight:C,columnWidth:A,lineHeight:S,visibleColumnsCount:w}}function L(e){C=e}function V(e){return Math.ceil(e/S)*S}function R(){return{showIssueInfo:g,showContinuedFromLink:v,showPageThumbnail:y,articleStyles:_,visibleColumnsCount:w,columnHeight:C,columnWidth:A,articlePreviewColumnsCount:I,lineHeight:S,showComments:x,showBookmarks:T,enableSimilarArticles:k}}function H(e){g=e.showIssueInfo,v=e.showContinuedFromLink,y=e.showPageThumbnail,_=e.articleStyles,w=e.visibleColumnsCount,C=e.columnHeight,A=e.columnWidth,I=e.articlePreviewColumnsCount,S=e.lineHeight,P=Math.floor(C/S),x=e.showComments,T=e.showBookmarks,k=e.enableSimilarArticles}},21773:function(e,t,n){"use strict";n.d(t,{J:function(){return g},K9:function(){return A},Pf:function(){return v},Tc:function(){return I},W4:function(){return w},_h:function(){return _},fK:function(){return y},kd:function(){return b},ks:function(){return m},qZ:function(){return C}});var i=n(29583),r=n(69463),o=n(73663),a=n(74057),s=n(8351),u=n(13981),c=[],l=[],d=new r.B,h="1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqurstuvwxyz",f=(0,u.Lt)(o.LA);function p(e){e=arguments.length?(0,a.V)(e):f;var t=c[e-1];if(!t){var n=i('"));i(document.body).append(n);var r=n.find("div#etalonLine");c[e-1]=t={lineHeight:parseFloat(window.getComputedStyle(r[0]).height),fontSize:parseInt(r.css("font-size"),10)},n.remove()}return t}function m(e){return(arguments.length?p(e):p()).lineHeight}function g(e){if(!arguments.length)return p().fontSize;if(e>s.IK||e'));i(document.body).append(t),e=t.find("#etalonArtDiv").height(),e-=e%m(),l[f-1]=e,t.remove()}return e}function b(e){e=Math.round(e);for(var t=s.o5,n=s.o5+1;n<=s.IK;++n){var i=p(n).fontSize;if(i===e)return n;if(i>e)return t;t=n}return t}function w(e){if(!arguments.length)return f;var t=f!==(0,a.V)(e);return(0,u.JD)((0,o.sr)({fontScale:e})),t}function C(){return f>4?{min:360,max:480}:{min:240,max:320}}function A(e){return d.subscribe((function(t){var n=t.oldScale,i=t.scale;e(n,i)}))}function I(){c=[],l=[]}(0,u.oM)(o.LA).subscribe((function(e){var t=f;f=e,d.next({oldScale:t,scale:e})}))},76900:function(e,t,n){"use strict";n.d(t,{Ef:function(){return l},I_:function(){return c},qF:function(){return i},r:function(){return u}});var i,r=n(13302),o=n(37022),a=n(7281);function s(e,t){return void 0===t&&(t=i.NoReason),e.lastAccessTime=Date.now(),e.locks||(e.locks={}),t in e.locks||(e.locks[t]=new o.c_),e.locks[t]}function u(e){if(e.locks)return!1;var t=!1;return(0,r.forIn)(e.locks,(function(e){if(e.isLocked)return t=!0,!1})),t}function c(e){for(var t=[],n=1;n1){var i=1*(0,o.Pf)()/(0,o.J)()/.5-1;u=i/e,t.elmScale=1}else if(t.elmScale'),t.push("");for(var n=1;n<=7;++n)t.push('Aa '));return t.push(" "),t.push('".concat(e,"
")):t.push("
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
"),t.push(""),t.push(""),t.join("")}(e)).optimizeForTransform().css("opacity",0);var n=s.outerWidth(),o=s.outerHeight(),l=(t.elm().width()-n)/2,h=(t.elm().height()-o)/2+t.elm().offset().top;s.css({left:"".concat(l,"px"),top:"".concat(h,"px")}),s.css({transitionProperty:"opacity",transitionTimingFunction:"ease-out",transitionDuration:"300ms",opacity:1}),d(1)}},apply:function(){return!!(0,o.W4)(l)},hide:function(){s&&s.remove(),s=null,c=!1},get isActive(){return c}}},18158:function(e,t,n){"use strict";n.d(t,{Fx:function(){return u},bC:function(){return l},sf:function(){return c},xv:function(){return d}});var i=n(78698),r=n(13981),o=n(75069),a=n(11677);function s(e){(0,o.gc)().screenType<=a.a.Small?e.classList.add("pr-mobile"):e.classList.add("pr-desktop")}function u(){var e=document.getElementsByTagName("html").item(0);s(e),e.classList.add("pr-v2")}function c(){var e=document.getElementsByTagName("html").item(0);s(e),e.classList.contains("pr-v2")||e.classList.add("pr-legacy")}function l(){return document.getElementsByTagName("html").item(0).classList.contains("pr-legacy")}function d(){var e=(0,r.Lt)(i.uF),t=document.documentElement;t.classList.contains("pr-v2")||t.classList.add("se2sky-legacy"),e||t.classList.add("feat-pageview--dark")}},84191:function(e,t,n){"use strict";var i=n(65678),r=n(82788),o=n(86659),a=n(67303);r.X.ofType(o.wf.ActiveViewChanged).subscribe((function(e){var t=e.payload.viewName;t!==i.lP.TextView?r.X.send(new o.le({viewName:t})):r.X.send(new o.rr({viewName:t,cid:a.A.cid(),issueDate:a.A.issueDate()}))}))},86659:function(e,t,n){"use strict";var i;n.d(t,{CB:function(){return r},le:function(){return a},rr:function(){return o},wf:function(){return i}}),function(e){e.ActiveViewChanged="[Viewer] ActiveViewChanged",e.IssueViewChanged="[Viewer] IssueViewChanged",e.CommonViewChanged="[Viewer] CommonViewChanged"}(i||(i={}));var r=function(e){this.payload=e,this.type=i.ActiveViewChanged},o=function(e){this.payload=e,this.type=i.IssueViewChanged},a=function(e){this.payload=e,this.type=i.CommonViewChanged}},22907:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var i,r=n(58932),o=n(65678),a=((i={})[o.lP.TopNews]="topnews",i[o.lP.PagesView]="pages",i[o.lP.TextView]="text",i[o.lP.FTSArticles]="search",i[o.lP.Bookmarks]="bookmarks",i[o.lP.Bookmark]="bookmark",i[o.lP.ManageBookmarks]="managebookmarks",i[o.lP.EmailAlerts]="emailalerts",i[o.lP.Votes]="votes",i[o.lP.Home]="home",i[o.lP.Radio]="radio",i[o.lP.Monitors]="monitors",i[o.lP.Profile]="profile",i[o.lP.Similar]="similar",i[o.lP.EmptyView]="empty",i[o.lP.Categories]="categories",i[o.lP.External]="external",i[o.lP.Opinion]="opinion",i[o.lP.Post]="post",i[o.lP.StoreHub]="catalog",i[o.lP.Error]="error",i[o.lP.Account]="accounting/account",i[o.lP.Purchase]="purchaseview",i[o.lP.Receipt]="receipt",i[o.lP.Article]="article",i[o.lP.Onboarding]="onboarding",i[o.lP.IssueDetails]="issuedetails",i[o.lP.LatestIssues]="latestissues",i),s=(0,r.Cl)((0,r.Cl)({},a),{toUrlViewName:function(e){return a[e]||a[o.lP.Error]},fromUrlViewName:function(e){for(var t in e=(e||"").toLowerCase(),a)if(a.hasOwnProperty(t)&&a[t]===e)return t;return o.lP.Error}})},87169:function(e,t,n){"use strict";n.d(t,{Ed:function(){return p},Wq:function(){return m},dc:function(){return d}});var i=n(82230),r=n(86699),o=n(17950),a=n(69463),s="api/v1/accounting/gdpr",u="gdpr_consent_",c=365,l=new a.B,d=l.asObservable(),h={none:"none",granted:"granted"},f={1:"cookies",2:"promoEmail",3:"termsOfUse",cookies:1,promoEmail:2,termsOfUse:3};function p(){if(r.A.isLogin())return i.A.get(s,"consents");var e=o.get("".concat(u).concat(f.termsOfUse),h.none),t=o.get("".concat(u).concat(f.cookies),h.none),n=[{consentType:f.termsOfUse,isGranted:e===h.granted},{consentType:f.cookies,isGranted:t===h.granted}];return Promise.resolve(n)}function m(e,t){return r.A.isLogin()?i.A.post(s,"consent",{consentType:e,granted:t}).then((function(){l.next()})):(o.set("".concat(u).concat(e),t?h.granted:h.none,{expiresInDays:c}),Promise.resolve())}},60146:function(e,t,n){"use strict";var i=n(58932),r=n(82230),o=n(82534);t.A={signin:function(e,t){return r.A.post("auth","Signin",{userName:e,password:t})},signinByKey:function(e){return r.A.post("auth","SigninByKey",{key:e})},siteSignin:function(e,t){return(0,o.y$)(e,t)},signOut:function(){return r.A.get("auth","SignOut")},siteSignOut:function(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,o.bE)()];case 1:return(null==(e=t.sent())?void 0:e.RedirectLocation)?(window.location.assign(e.RedirectLocation),[2]):[2,e]}}))}))},getExternalRequestKey:function(){return r.A.get("ExternalAuth","GetRequestKey")},getSott:function(){return r.A.get("ExternalAuth","GetSott")},recoverPassword:function(e){return r.A.post("auth","RecoverPassword",{logonName:e},{disableRetry:!0})},register:function(e){return r.A.post("auth","Register",e,{disableRetry:!0})},authorizeExternal:function(e){return r.A.post("externalauth","AuthorizeExtAuth",JSON.stringify(e),{contentType:"application/json"})}}},62449:function(e,t,n){"use strict";var i,r=n(29583),o=n(13302),a=n(12010),s=n(59805),u=n(1435),c=n(17950),l=n(44260),d=n(27189),h=n(96587),f=n(67303),p=n(55683),m=n(3993),g=n(82788),v=n(99600),y=n(1339),_=n(97433),b=h.default.signin={parentDialog:null,show:null,hide:null,onShow:null,onHide:null,resize:null,states:null},w={},C=[],A="onNavigationRequested",I=(0,u.J)({expire:9e5});function S(e,t){this.header=l.Ay.val("Dialogs.Signin.PasswordRecovery"),this.state="passwordRecovery",this.requestSent=a.observable(!1),this.emailAddress=a.observable("").extend({required:l.Ay.val("Dialogs.Signin.EmailRequired","Valid email address is required"),email:l.Ay.val("Dialogs.Signin.EmailRequired","Valid email address is required"),trackDirtyState:!0}),this.emailAddressId="PasswordRecoveryEmailAddress",this.recoverPassword=function(){s.A.validate(this)?this.requestSent()||(this.requestSent(!0),t.recoverPassword({logonName:this.emailAddress()})):i.resize()},this.onActivated=function(e){this.requestSent(!1),s.A.resetValidationState(this);var t=e&&e.forgotPasswordEmailAddress;if(t){var n="function"==typeof t?t():t;n&&this.emailAddress(n)}i.focus(this.emailAddressId)}}function P(e,t){var n=e&&e.emailAddress||I.get("emailAddress")||"",r=I.get("password")||"",o=e&&e.firstName||I.get("firstName")||"",u=I.get("lastName")||"",c=function(e){return function(t){I.set(e,t)}};this.header=l.Ay.val("Dialogs.Signin.Registration"),this.state="signUp",this.emailAddress=a.observable(n).extend({required:l.Ay.val("Dialogs.Validators.Required"),email:!0}),this.emailAddressId="SignUpEmailAddress",this.enablePromotional=a.observable(!1),this.enableService=a.observable(!1);var d=parseInt(l.Ay.val("v7.Client.Signin.Validators.Password.Minlength"),10),h=l.Ay.val("Dialogs.Validators.Required");this.password=a.observable(r).extend({required:h,minLength:{val:d,message:l.Ay.format("v7.Client.Signin.Validators.Password.Minlength.Message",d)}}),this.firstName=a.observable(o).extend({required:h}),this.lastName=a.observable(u).extend({required:h}),this.signUp=function(){s.A.validate(this)&&(g.X.send(new v.PU({alertKey:v.U7.EmailAlertPromotional,value:this.enablePromotional(),isDefault:!0})),g.X.send(new v.PU({alertKey:v.U7.EmailAlertTechnical,value:this.enableService(),isDefault:!0})),t.signUp({emailAddress:this.emailAddress(),password:this.password(),firstName:this.firstName(),lastName:this.lastName(),enablePromotional:this.enablePromotional(),enableService:this.enableService()}),I.clear())},this.onActivated=function(){this.password(""),s.A.resetValidationState(this),i.focus(this.emailAddressId),g.X.send(new v.zL({system:y.h.Application})),this.emailAddress.subscribe(i.resize.bind(i)),this.password.subscribe(i.resize.bind(i)),this.firstName.subscribe(i.resize.bind(i)),this.lastName.subscribe(i.resize.bind(i))},this.emailAddress.subscribe(c("emailAddress")),this.password.subscribe(c("password")),this.firstName.subscribe(c("firstName")),this.lastName.subscribe(c("lastName"))}function x(e,t){var n=d.A.get("ui.SocialSignIn.SocialNetworks");function u(e){this.provider=e.provider,this.css=e.css,this.name=e.name,this.networkName=l.Ay.val(e.resourceName)}this.socialNetworks=o.map(n,(function(e){return new u(e)}));var h=d.A.get("Registration.RegistrationEnabled",!1),f=d.A.get("Registration.TrialRegistrationEnabled",!1),p=d.A.get("Registration.TrialRegistrationForAllEnabled",!1);this.header=r.nd.res.val("Dialogs.Signin.Header"),this.state="signIn",this.templateName=(0,m._N)(),this.externalSystems=(0,m.eB)(),this.emailAddress=a.observable(),this.emailAddressId="SignInEmailAddress",this.password=a.observable(),this.enableAutologin=a.observable(!0),this.signInErrorMessage=a.observable(""),this.showPassword=a.observable(!1),this.forgotPasswordEmailAddress=a.computed((function(){return this.emailAddress()}),this),this.signInExternal=o.debounce((function(e){t.signInExternal({system:e,enableAutologin:this.enableAutologin()})}),300,{leading:!1,trailing:!0}),this.showRegistration=a.computed((function(){return h})),this.socialNetworkSignInAllowed=a.computed((function(){return(0,m.m1)()})),this.signUpText=a.computed((function(){var e="";return p?e=r.nd.res.val("Dialogs.Signin.NewUserTrialRegistration"):f?e=c.get("isTrialUsed",!1)?r.nd.res.val("Dialogs.Signin.NewUser"):r.nd.res.val("Dialogs.Signin.NewUserTrialRegistration"):h&&(e=r.nd.res.val("Dialogs.Signin.NewUser")),e}),this),this.signIn=function(){r(".pop-body-signin:visible :input").change(),r(".pop-body-signin").height("100%"),this.emailAddress()&&this.password()&&(this.signInErrorMessage(""),t.signIn({userName:this.emailAddress(),password:this.password(),enableAutologin:this.enableAutologin()}))},this.onActivated=function(){i.focus(this.emailAddressId),this.password(""),s.A.resetValidationState(this),g.X.send(new v.pn({system:y.h.Application}))},this.showSocialNetwork=a.computed((function(){return this.socialNetworkSignInAllowed()&&this.externalSystems.length>0}),this),this.toggleShowPassword=function(){this.showPassword(!this.showPassword())}}function T(){this.header=r.nd.res.val("Dialogs.Signin.OpenId"),this.state="signInOpenId",this.openId=a.observable(""),this.signIn=function(){r(b).trigger("signInOpenId",{openId:this.openId()})}}function k(e){this.provider=e,this.className=this.provider,this.text=r.nd.res.val("ExternalAuthentication."+this.provider),this.view="openid"===this.provider?"signInOpenId":"",this.action=function(){this.view?r(this).trigger(A,{viewKey:this.view}):r(b).trigger("signInExternal",{provider:this.provider})}}function E(){this.header=r.nd.res.val("Dialogs.Signin.SocialNetwors"),this.state="signInSocialNetworks";var e=d.A.get("ui.SignIn.SocialNetworks"),t=[],n=this;if(e){for(var i=0;i0})),this.scrollToAttachment=d.observable(),this.isPostingComment=d.observable(!1),this.isPostDisabled=d.computed((function(){return!u.textDraft()||u.isPostingComment()||(0,r.some)(u.attachments(),(function(e){return e.isLoading()}))})),this._dialogViewModel=e,this._dialog=e._dialog,this._cancelNextBlurEvent=!1,this._onCommentCreate=o}return e.prototype.createComment=function(){var e=this;return this.isPostDisabled()?Promise.reject():(this.isPostingComment(!0),this._onCommentCreate(this).finally((function(){e.isPostingComment(!1)})))},e.prototype.onMouseDown=function(e,t){var n="nd-no-blur-event",i=l(t.target);return(i.attr("".concat(n))||i.parents("[".concat(n,"]")).length)&&(this._cancelNextBlurEvent=!0),!0},e.prototype.cancelCommentEditing=function(e){e.clean(),e.isVisible(!1),e._dialogViewModel.resize()},e.prototype.onFocus=function(e){return(u.A.isLogin()?Promise.resolve():b.default.signIn()).then((function(){e.isCompactView()&&e.isCompactView(!1),e._dialogViewModel.resize()}))},e.prototype.onBlur=function(e){e._cancelNextBlurEvent?e._cancelNextBlurEvent=!1:setTimeout((function(){e._updateIsCompactView(),e._dialogViewModel.resize()}),200)},e.prototype.isEmpty=function(){if(this.hasAttachments()||this.opinion())return!1;var e=this.textDraft();return(0,r.startsWith)(e,this.defaultReply)&&(e=e.slice(this.defaultReply.length)),(0,r.isEmpty)(e)},e.prototype.focus=function(){this.hasFocus(!0)},e.prototype.clean=function(){this.textDraft(this.defaultReply),this.opinion(null),this.attachments([]),this.isPostingComment(!1),this.isCompactView(!0),this.hasFocus(!1)},e.prototype.getCommentDto=function(){var e=this.opinion(),t=e&&e.id;return{contentType:p.A.contentTypes.ARTICLE,articleId:this.articleId,parentId:this.parentCommentId,opinionId:t,attachments:this.attachments()}},e.prototype._updateIsCompactView=function(){var e=0===this._dialogViewModel.totalCount();this.isCompactView(!e&&this.isEmpty()&&!this.hasFocus())},e.prototype._backToEditor=function(){this._dialogViewModel.resize({force:!0}),this.hasFocus(!0)},e}(),C=n(1943),A=n(18970),I=n(90185),S=n(46977),P=n(44260),x=n(70989),T=n(62625),k=n(67606),E=n(39172),M=function(){function e(e,t){this._dialog=e,this.isOwner=t.isOwner}return e.prototype.onEdit=function(){this._dialog.hide(h.d.Ok,{action:"edit"})},e.prototype.onDelete=function(){this._dialog.hide(h.d.Ok,{action:"delete"})},e.prototype.onReportComment=function(){this._dialog.hide(h.d.Ok,{action:"report"})},e.prototype.onHideComment=function(){this._dialog.hide(h.d.Ok,{action:"hideComment"})},e.prototype.onBanUser=function(){this._dialog.hide(h.d.Ok,{action:"banUser"})},e.prototype.close=function(e){this._dialog.hide(h.d.Ok,{action:e})},e}(),D=function(){function e(){}return e.prototype.show=function(e){if(!e||!e.position)throw new Error("Config or dialog position is not specified.");return new Promise((function(t){var n=o.default.createInstance();n.show({templateName:"v7.Client.Dialogs.Comments.MoreOptions",model:new M(n,e),name:"comments-more-options",getLeft:function(t){return e.position.left-t/2},getTop:function(t){return e.position.top-t/2}}),n.onHide((function(e,n){return t(n)}))}))},e}(),N=Object.freeze({POPULAR:p.A.contentOrderBy.byRatingDesc,DATE:p.A.contentOrderBy.byDateDesc,DATEASC:p.A.contentOrderBy.byDateAsc}),L=Object.freeze({LIST:0,NEW_COMMENT:1,ADD_VIDEO:2});function V(e,t,n,i,o,a,s,u,c){var l={contentType:p.A.contentTypes.ARTICLE,articleId:e};return t&&(l.parentId=t),n&&(l.opinionId=n),i>-1&&(l.offset=i,l.limit=o,l.orderBy=a),l.attachments=(0,r.map)(s,(function(e){return e.toDto()})),u&&(l.markerCommentId=u),(0,r.isNumber)(c)&&(l.direction=c),l}var R,H=["Spam","Unlawful","Harassment","Indecent","Irrelevant"],F=function(e){var t=(void 0===e?{}:e).parent;return new Promise((function(e,n){var i=t||o.default.getParent(),r=o.default.createInstance(i);r.onHide((function(t,i){i.status===h.d.Ok?e(i.action):n()}));var a=function(){var e={actions:H,currentAction:d.observable(H[0]),select:function(t){return function(){return e.currentAction(t)}}};return e}();a.cancel=function(){r.hide(h.d.Cancel),n()},a.report=function(){r.hide(h.d.Ok,{action:a.currentAction()})},r.show({templateName:"v7.Client.Dialogs.ReportUser",model:a,name:"report-user"}),r.resize()}))},B=n(20680),z=n(97779),O=n(74877),j={FACEBOOK:"facebook",TWITTER:"twitter",COPY_URL:"copyurl"},U=((R={})[j.FACEBOOK]="shareFacebook",R[j.TWITTER]="shareTwitter",R);function W(e,t){e.likesCount(t.likesCount),e.dislikesCount(t.dislikesCount),e.isVotedByUser(0!==t.currentVote),e.currentVote(t.currentVote)}var Y=function(){function e(e,t){(0,r.assign)(this,e),this._dialogViewModel=t,this.author=e.authorNickname,this.parentAuthor=e.parentCommentUserProfile,this.isReply=d.observable(!!e.parentId),this.isExpanded=d.observable(!0),this.fullText=this.viewText(),this.toggleLongComment(),this.replyEditor=d.observable(null),this.editEditor=d.observable(null),this.sharingProviders=j,this.repliesParentId=d.observable(this.id),this.repliesOffset=d.observable(0),this.repliesLimit=20,this.canLoadMoreReplies=d.observable(this.repliesOffset()2),this.repliesShowBottomLoadMore=d.observable(!1),this.isLoadingReplies=d.observable(!1),this.lastReplyId=d.observable(null),this.isBusy=d.observable(!1),this.showFastShareButtons=d.observable(!1),this.actionTool=null}return e.prototype.openParentUserProfile=function(){v.A.goView(y.lP.Profile,{profileId:this.parentAuthor.profileName})},e.prototype.openUserProfile=function(){v.A.goView(y.lP.Profile,{profileId:this.authorProfileName})},e.prototype.toggleLongComment=function(){if(!this.isDeleted())if(this.isExpanded()){var e=0;this.hasAttachments&&this.fullText.length>256&&(e=256),this.fullText.length>512&&(e=512),e>0&&(this.viewText((0,r.truncate)(this.fullText,{length:e,separator:" "})),this.isExpanded(!1))}else this.viewText(this.fullText),this.isExpanded(!0),this._dialogViewModel.resize()},e.prototype.showMoreOptions=function(e,t){var n=this,i={isOwner:this.isOwner,position:{left:t.clientX,top:t.clientY}};(new D).show(i).then((function(e){e&&e.status===h.d.Ok&&("edit"===e.action?n.showCommentEditor():"delete"===e.action?n.onCommentDelete():"hideComment"===e.action?n.hideComment().catch(B.logAndAlertError):"banUser"===e.action?n.banUser().catch(B.logAndAlertError):"report"===e.action&&F().then((function(e){return p.A.abuseReportComment({contentType:p.A.contentTypes.ARTICLE,articleId:n.articleId},n.id,e)})).catch(B.logAndAlertError))}))},e.prototype.hideComment=function(){var e=this;if(this.isBusy())return Promise.resolve();this.isBusy(!0);var t=V(this.articleId);return this._dialogViewModel.hideComment(this.id,t).finally((function(){e.isBusy(!1)}))},e.prototype.banUser=function(){var e=this;if(this.isBusy())return Promise.resolve();this.isBusy(!0);var t=V(this.articleId);return this._dialogViewModel.banUser(this.authorProfileName,t).finally((function(){e.isBusy(!1)}))},e.prototype.onCommentDelete=function(){var e=this;if(!this.isBusy()){this.isBusy(!0);var t=new S.A,n=P.Ay.val("Dialogs.Comments.DeleteConfirmation"),i=P.Ay.val("Buttons.Delete.Text"),r=P.Ay.val("Buttons.Cancel.Text");t.confirm(n,r,i,!0).then((function(){var t=V(e.articleId);p.A.deleteComment(t,e.id).then((function(){e.isDeleted(!0),e._dialogViewModel.totalCount(e._dialogViewModel.totalCount()-1)})).then((function(){return e._dialogViewModel.resize({force:!0}),Promise.resolve()})).finally((function(){e.isBusy(!1)}))})).catch((function(){e.isBusy(!1)}))}},e.prototype.showCommentEditor=function(){if(this.isOwner){this.editEditor()||this.editEditor(this._createEditEditor(this.editText)),this.replyEditor()&&this.replyEditor().isVisible(!1);var e=this.editEditor();if(e.textDraft(this.editText),this.hasAttachments){var t=this.attachments.map((function(e){return function(e){if(!e)return null;switch(e.type){case"video":return new O.A(e);case"image":return new z.A(e);default:return null}}(e)}));e.attachments(t),Promise.all(t.map((function(e){return(0,I.V)(e.imageId||e.thumbnailImageId).then((function(t){e.previewUrl(t),e.isLoading(!1)}))})))}e.isVisible(!0),e.focus()}},e.prototype.likeComment=function(){var e=this;this.isBusy()||(this.isBusy(!0),A.A.voteLike(this.id,A.A.contentTypes.COMMENT).then((function(t){W(e,t),e.currentVote(1)})).finally((function(){e.isBusy(!1)})))},e.prototype.dislikeComment=function(){var e=this;this.isBusy()||(this.isBusy(!0),A.A.voteDislike(this.id,A.A.contentTypes.COMMENT).then((function(t){W(e,t),e.currentVote(-1)})).finally((function(){e.isBusy(!1)})))},e.prototype.showReplyEditor=function(){var e=this;return(u.A.isLogin()?Promise.resolve():b.default.signIn()).then((function(){e.replyEditor()||e.replyEditor(e._createReplyEditor()),e.replyEditor().isVisible(!0),e.replyEditor().focus(),e._dialogViewModel.scrollToComment(e)}))},e.prototype.followUser=function(){this.isOwner||(this.isAuthorFollowed()?this._dialogViewModel.unFollowUser(this.authorProfileName):this._dialogViewModel.followUser(this.authorProfileName))},e.prototype.shareComment=function(e){return this._getSharingInfo([e]).then((function(t){C.A[U[e]].activate(e,t)}))},e.prototype.showSharingMenu=function(e,t){var n=this;this.actionTool?this.actionTool.click(t):this._getSharingInfo().then((function(e){var i=(0,E.Jt)("share");n.actionTool=new k.A;var r=[null,e];n.actionTool.itemsControllerCTOR(i).additionalItemsControllerParams(r),n.actionTool.click(t)}))},e.prototype.loadReplies=function(){var e=this;this.isLoadingReplies()||(this.isLoadingReplies(!0),this._loadReplies().then((function(t){var n=t&&t.items&&t.items.length||0;if(n){var i;i=0===e.repliesOffset()?e._dialogViewModel._appendPageAfterComment(t,e.id,e.id):e._dialogViewModel._appendPageAfterComment(t,e.lastReplyId());var o=(0,r.last)(i);e.repliesShowTopLoadMore(!1),e.repliesShowBottomLoadMore(!1),e.lastReplyId(o.id),e.repliesOffset(e.repliesOffset()+n),e.canLoadMoreReplies(e.repliesOffset()0})),this.editor=new w(this,this.id,null,null,this.createComment.bind(this)),this.hasFocus=d.pureComputed((function(){return!s.editor.hasFocus()&&!s.isVideoSelected()})),this.scrollToComment=d.observable(!1),this.showBottomLoading=d.pureComputed((function(){return s.isLoadingNext()||!s.isFirstLoadCompleted()})),this.back=function(){return s.closeDialog()}}return e.prototype.openUserProfile=function(e){v.A.goView(y.lP.Profile,{profileId:e.profileId()})},e.prototype.closeDialog=function(){var e=this,t=(0,r.some)(this.comments(),(function(e){return e.replyEditor()&&!e.replyEditor().isEmpty()||e.editEditor()&&!e.editEditor().isEmpty()}));if(!this.editor.isEmpty()||t){var n=P.Ay.val("Dialogs.Comments.DiscardConfirmation"),i=P.Ay.val("Buttons.Confirm.Text"),o=P.Ay.val("Buttons.Cancel.Text");(0,S.A)().confirmSafe(n,o,i,!0).then((function(t){t&&e._dialog.hide(h.d.Close)})).catch(B.logError)}else this.currentState()===L.ADD_VIDEO?this.cancelAddVideoDialog():this._dialog.hide(h.d.Close)},e.prototype.createComment=function(){var e=this,t=this.editor;if(t.textDraft()){var n=t.getCommentDto();return p.A.createComment(n,t.textDraft()).then((function(n){if(t.clean(),(0,r.forEach)(e.comments(),(function(e){return e.showFastShareButtons(!1)})),e.totalCount()>e.comments().length)return e.markerCommentId=n.publicId,e.commentsOffset=0,e.commentsOffsetPrev=0,e.loadPrevPage().then((function(t){e.canLoadNext(!1);var i=e._toViewModel(n);return e.comments([i]),e._appendPrevPage(t)})).then((function(){var t=e.comments();return t[(0,r.findIndex)(t,(function(e){return e.id===n.id}))]}));var i=e._toViewModel(n);return e.comments.push(i),e.totalCount(e.totalCount()+1),i})).then((function(t){t&&(e.scrollToComment(t),e.resize())})).catch((function(){return(0,B.logAndAlertError)({resourceKey:"Dialogs.Comments.PostCommentFailed"})}))}return Promise.reject()},e.prototype.createReply=function(e){var t=this,n=e.parentCommentId,i=this.comments(),o=(0,r.findIndex)(i,(function(e){return e.id===n})),a=(0,r.findLastIndex)(i,(function(e){return e.parentId===n}));if(o>=0&&e.textDraft()){var s=e.getCommentDto();return p.A.createComment(s,e.textDraft()).then((function(n){e.clean(),e.isVisible(!1),(0,r.forEach)(t.comments(),(function(e){return e.showFastShareButtons(!1)}));var i=t._toViewModel(n),s=(a>0?a:o)+1;t.comments.splice(s,0,i),t.scrollToComment(i),t.totalCount(t.totalCount()+1),t.resize()})).catch((function(){return(0,B.logAndAlertError)({resourceKey:"Dialogs.Comments.PostCommentFailed"})}))}return Promise.reject()},e.prototype.updateComment=function(e){var t=this;if(e.textDraft()){var n=e.getCommentDto(),i=e.commentId,o=(0,r.find)(this.comments(),(function(e){return e.id===i}));return p.A.updateComment(n,i,e.textDraft()).then((function(n){e.clean(),e.isVisible(!1),(0,r.forEach)(t.comments(),(function(e){return e.showFastShareButtons(!1)}));var i=t._toViewModel(n);t.comments.replace(o,i)})).then((function(){return Promise.resolve(t.resize())})).catch((function(){return(0,B.logAndAlertError)({resourceKey:"Dialogs.Comments.PostCommentFailed"})}))}return Promise.reject()},e.prototype.loadPreviousPage=function(){var e=this;this.canLoadPrev()&&!this.isLoadingPrev()&&(this.isLoadingPrev(!0),this.loadPrevPage().then((function(t){e._appendPrevPage(t),e.resize()})).catch(B.logError).finally((function(){e.isLoadingPrev(!1)})))},e.prototype.isUserActionEnabled=function(e){return this.enabledUserActions().indexOf(e)>-1},e.prototype.hideComment=function(e,t){var n=this,i=new S.A,r=P.Ay.val("Dialogs.Comments.HideCommentConfirmation"),o=P.Ay.val("Buttons.HideComment.Text"),a=P.Ay.val("Buttons.Cancel.Text");return i.confirm(r,a,o,!0).then((function(){return p.A.hideComment(e,t)})).then((function(){n.markCommentAsDeleted(e),n.totalCount(n.totalCount()-1),n._dialog.resize()}))},e.prototype.markCommentAsDeleted=function(e){if((0,r.some)(this.comments(),(function(t){return t.parentId===e||!t.isDeleted()}))){var t=(0,r.find)(this.comments(),(function(t){return t.id===e}));t&&t.isDeleted(!0)}else this.comments(this.comments().filter((function(t){return t.id!==e})))},e.prototype.banUser=function(e,t){var n=this,i=new S.A,o=P.Ay.val("Dialogs.Comments.BanUserConfirmation"),a=P.Ay.val("Buttons.BanUser.Text"),s=P.Ay.val("Buttons.Cancel.Text");return i.confirm(o,s,a,!0).then((function(){return p.A.banUser(e,t)})).then((function(){var t=n.comments().filter((function(t){return t.authorProfileName===e}));(0,r.forEach)(t,(function(e){return n.markCommentAsDeleted(e.id)})),n.totalCount(n.totalCount()-t.length),n._dialog.resize()}))},e.prototype.resize=function(){this._dialog.resize()},e.prototype.followUser=function(e){var t=this;_.F.ensureProfileName(e).then(m.default.followUser).then((function(n){return t._updateUserFollowStatus(e,n.followedByMe)})).catch(B.logError)},e.prototype.unFollowUser=function(e){var t=this;_.F.ensureProfileName(e).then(m.default.unFollowUser).then((function(n){return t._updateUserFollowStatus(e,n.followedByMe)})).catch(B.logError)},e.prototype._updateUserFollowStatus=function(e,t){(0,r.forEach)(this.comments(),(function(n){n.authorProfileName===e&&n.isAuthorFollowed(t)}))},e.prototype._changeState=function(e){e!==this.currentState()&&(this.currentState(e),this._dialog.resize())},e.prototype._toViewModel=function(e){return new Y(e,this)},e.prototype._appendPrevPage=function(e){var t=this,n=(0,r.map)(e.items,(function(e){return t._toViewModel(e)})),i=(0,r.filter)(e.items,(function(e){return!e.parentId})).length;(0,r.forEachRight)(n,(function(e){return t.comments.splice(0,0,t._toViewModel(e))})),this.totalCount(e.meta.totalCount),this.commentsOffsetPrev+=i,this.canLoadPrev(i>=this.commentsLimit)},e.prototype._appendPageAfterComment=function(e,t,n){var i=this,o=(0,r.map)(e.items,(function(e){return i._toViewModel(e)}));if(n){var a=(0,r.filter)(this.comments(),(function(e){return e.parentId===n}));(0,r.forEach)(a,(function(e){return i.comments.remove(e)}))}var s=(0,r.findIndex)(this.comments(),(function(e){return e.id===t}));return s>-1&&(0,r.forEach)(o,(function(e){return i.comments.splice(1+s++,0,e)})),o},e.prototype._appendNextPage=function(e){var t=this,n=(0,r.map)(e.items,(function(e){return t._toViewModel(e)})),i=(0,r.some)(e.items)?(0,r.filter)(e.items,(function(e){return!e.parentId})).length:0;(0,r.forEach)(n,(function(e){return t.comments.push(e)})),this.totalCount(e.meta.totalCount),this.commentsOffset+=i,this.canLoadNext(i>=this.commentsLimit),this.canLoadPrev()&&this.canLoadPrev(this.comments().lengtht.title()?1:e.title()t._title?1:e._titlet.title?1:e.title0)}}Xe.show=function(e){if(e){var t=(0,Be.Ux)(e.Images),n={articleTitle:Ke(e.Title),articleSubtitle:Ke(e.Subtitle),byline:e.Byline?Ke(e.Byline):"",articleBlocks:Je(e),hasImage:!!t,imageByline:t?Ke(t.Byline):"",imageUrl:t?t.Url:"",imageTitle:t?Ke(t.Title):"",imageText:t?Ke((t.Text||{}).Text):"",issueTitle:Ke(e.Issue?e.Issue.Title:e.Source.CreatorName),shortDateString:e.Issue?e.Issue.ShortDateString:(0,Ye.yJ)(new Date(e.Source.Created),"d MMM yyyy"),sectionName:e.SectionName?Ke(e.SectionName):"",startPage:e.PageName,endPage:e.PageName,close:function(){Xe.hide()},selectVisible:ko.observable(!0),selectText:function(e){var t,n,i=document,o=r(e)[0];r.browser.iOS&&(r(e).attr("contenteditable","true"),setTimeout((function(){r(e).attr("contenteditable","false")}),1)),window.getSelection?(n=window.getSelection(),(t=document.createRange()).selectNodeContents(o),n.removeAllRanges(),n.addRange(t)):i.body.createTextRange&&((t=document.body.createTextRange()).moveToElementText(o),t.select())}};(0,He.JD)(je({type:"article",title:n.articleTitle,authors:n.byline,pages:n.startPage,url:new URL("article/".concat(e.ArticleId),new URL(window.basePath,window.location.origin)),publication:e.Issue.Title,date:n.shortDateString?new Date(n.shortDateString):void 0,language:e.Language,abstract:e.Text})),(qe=r.nd.ui.dialog.getInstance())&&!qe.visible&&(qe.show({templateName:"v7.Client.Dialogs.Copy",model:n,defaultEventFlow:!0}),qe.onHide((function(){Ge&&clearTimeout(Ge)})),r.browser.android&&(n.selectVisible(!1),Ge=setInterval(Qe.bind(void 0,n),300)))}},Xe.hide=function(){qe.hide(),(0,He.JD)(Ue())};var Ze=Xe,$e=n(64609),et=n(68520),tt=n(84901),nt=n(65678),it=n(26906),rt=n(22316),ot=n(55383),at=n(28057),st=n(47027),ut=n(94529),ct=n(54580),lt=n(75979),dt=n(20680),ht=function(){function e(e,t,n,i,r,a){var s=this;this._dialog=e,this._statesStack=[],this.states=Object.freeze({publications:0,supplements:1}),this.state=o.observable(this.states.publications),this.categoryGroups=[{name:"countries",displayName:(0,Ye.p3)("Catalog.ByCountry"),categories:r},{name:"languages",displayName:(0,Ye.p3)("Catalog.ByLanguage"),categories:a}],this._allCategory={name:"all",displayName:(0,Ye.p3)("v7.Client.Catalog.all"),publicationsCount:-1},this._syntheticCategories=[{name:"favorites",displayName:(0,Ye.p3)("v7.Client.Catalog.mypublications"),publications:n,publicationsCount:n.length},{name:"recentlyRead",displayName:(0,Ye.p3)("v7.Client.Catalog.recentlyread"),publications:i,publicationsCount:i.length},this._allCategory],this.categories=o.observableArray([]),this.selectedCategoryGroup=o.observable(null),this.categorySwitchEnabled=o.observable(t.get("ui.Catalog.showCountryLanguagesToolbar",!0)),this.publicationsSortByRankEnabled=o.observable(t.get("ui.Catalog.SortToolbar.popularSortEnable",!0)),this.selectedCategory=o.observable(null),this.publications=o.observableArray([]),this.publicationsHeader=o.observable(""),this.sortBy=o.observable(),this.sortOrder=o.observable(),this.publicationsSortEnabled=o.computed((function(){return s.state()===s.states.publications&&s.selectedCategory()&&"recentlyRead"!==s.selectedCategory().name})),this.searchText=o.observable("").extend({rateLimit:{timeout:300,method:"notifyWhenChangesStop"}}),this.searchText.subscribe((function(e){return s._publicationsModel&&s._publicationsModel.search(e)})),this.hasMorePublications=o.computed((function(){return s._publicationsModel&&s._publicationsModel.hasMore()})),this.onPublicationsScroll=(0,oe.throttle)((function(){return s._publicationsModel&&s._publicationsModel.hasMore()&&s._publicationsModel.getMore()}),500)}return e.prototype._pushState=function(){var e={state:this.state(),publications:this.publications(),publicationsAdapter:this._publicationsModel,publicationsHeader:this.publicationsHeader()};this._statesStack.push(e)},e.prototype._popState=function(){var e=this._statesStack.pop();if(!e)throw new Error("Unexpected use: states stack is empty");this.state(e.state),this.publicationsHeader(e.publicationsHeader),this.publications(e.publications),this._publicationsModel=e.publicationsAdapter},e.prototype.close=function(){this._dialog.hide()},e.prototype.enterSupplementsState=function(e){this._pushState(),this.state(this.states.supplements),this.publicationsHeader(e.title),this._publicationsModel=null;var t=[e].concat(e.supplements);this.publications(t)},e.prototype.exitSupplementsState=function(){this._popState()},e.prototype.selectCategory=function(e){this.state()===this.states.supplements&&this.exitSupplementsState(),this.selectedCategory(e);var t=this.sortBy()?{name:this.sortBy(),order:this.sortOrder()}:void 0;e.publications?this._publicationsModel=new ct.A({target:this.publications,source:e.publications,pageSize:20,orderBy:t}):this._publicationsModel=new lt.A({provider:st.Px,ViewModel:ut.A,target:this.publications,pageSize:20,filters:{hasCategories:e.id?[e.id]:void 0},orderBy:t}),this._publicationsModel.search(this.searchText())},e.prototype.selectCategoryGroup=function(e){this.state()===this.states.supplements&&this.exitSupplementsState(),this.selectedCategoryGroup(e),this.categories(this._syntheticCategories.concat(e.categories));var t=this.selectedCategory();t&&(0,oe.some)(this.categories(),t)||this.selectCategory(this.categories()[0])},e.prototype.sortPublications=function(e){e===this.sortBy()?this.sortOrder((0,rt.L)(this.sortOrder())):(this.sortBy(e),this.sortOrder(it.sv[e])),this._publicationsModel.sort(this.sortBy(),this.sortOrder())},e.prototype.selectPublication=function(e){this.state()===this.states.publications&&e.hasSupplements?this.enterSupplementsState(e):(u.A.showNewspaper(e.cid),this.close())},e.prototype.init=function(e){var t=(void 0===e?{}:e).searchText;this.selectCategoryGroup(this.categoryGroups[0]),t&&(this.selectCategory(this._allCategory),this.searchText(t))},e}(),ft=function(e){var t=q.default.createInstance();return ot.Ay.show(),s.A.loaded().then((function(){var n=s.A.get("ui.Catalog.Menu.myNewspapersEnable",!0),r=[];return r.push(n?at.A.load().then((function(e){return(0,st.yC)(e.cids)})):Promise.resolve([])),r.push(y.A.getLatestReadIssues().then((function(e){return(0,st.yC)((0,oe.map)(e,"cid"))}))),r.push((0,st.X6)()),r.push((0,st.kG)()),Promise.all(r).then((function(n){var r=(0,i.zs)(n,4),o=r[0],a=r[1],u=r[2],c=r[3],l=new ht(t,s.A,(0,oe.map)(o,(function(e){return new ut.A(e)})),(0,oe.map)(a,(function(e){return new ut.A(e)})),u,c);return l.init(e),t.show({templateName:"v7.Client.Dialogs.NewCatalog",model:l,height:"100%"}),t}))})).catch(dt.logError).finally((function(){return ot.Ay.hide()}))},pt=n(70079),mt=n(92066);Ve.A.bookmark=function(){var e={available:function(e,t){return!0},enabled:function(e,t){return!1},activate:function(e,t){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:if(!t)throw new Error("Bookmark context undefined");return[4,(0,pt.O)()];case 1:return e.sent(),[2,Re.A.show({bookmarkContext:t})]}}))}))}};return O.OH("bookmark",e),e}(),Ve.A.copy=function(){var e={available:function(e,t){var n;return!!(null===(n=null==t?void 0:t.article)||void 0===n?void 0:n.ArticleId)},enabled:function(e,t){return!1},activate:function(e,t){return Ze.show(t.article)}};return O.OH("copy",e),e}(),Ve.A.comment=function(){var e={available:function(e,t){return(0,re.Jr)("comments",null,t.article&&t.article.Issue&&t.article.Issue.Id||t.issue).then((function(e){return!!s.A.get("ui.Comments.enable",!0)&&e&&!!t&&!!t.article}))},enabled:function(e,t){return!!s.A.get("ui.Comments.enable",!0)&&t&&t.article},activate:function(e,t,n){var i=t.article,r={articleId:i.ArticleId,userId:t.Uid,articleTitle:i.Title,articleSubtitle:i.Subtitle,contextProfileName:mt.o.profileId};n?$e.A.showPost(r):$e.A.show(r)}};return O.OH("comment",e),e}(),Ve.A.translate=function(){var e={available:function(e,t){return!0},enabled:function(e,t){return!1},activate:function(e,t){}};return O.OH("translate",e),e}(),Ve.A.selectTitle={available:function(e,t){return!0},enabled:function(e,t){return!0},activate:function(){return et.A.showDialog().then((function(e){e?ft():tt.A.goView(nt.lP.StoreHub,{catalogView:nt.$r.Catalog})}))}},Ve.A.vote=function(){var e={available:function(e,t){return!0},enabled:function(e,t){return E.online()}};return O.OH("vote",e),e}();var gt=n(17065),vt=n(73690),yt=n(70989),_t=n(26190),bt=n(53236),wt=n(73035);Ve.A.pageView=function(){var e={available:function(e,t){return e!=A.Ay.views.pageView},enabled:function(e,t){return t},activate:function(e,t){if(yt.A.getActiveViewName()!==nt.lP.TextView)return tt.A.goView(nt.lP.PagesView,{issue:t.article.Issue.Id,page:t.article.Page,articleId:t.article.ArticleId,bookmark:t.article.AccessBookmarkId});if(!t.article)return _t.A.switchToImageView();var n={issue:t.article.Issue.Id,page:t.article.Page.number,articleId:t.article.ArticleId};_t.A.switchToImageView(n)}};return O.OH("pageView",e),e}(),Ve.A.textView=function(){var e=function(e,t){var n=null;return t&&(t.article&&t.article.Issue&&t.article.Issue.Id?n=t.article.Issue.Id:t.issue&&t.issue.Id&&(n=t.issue.Id)),n||(n=b.A.issue()),n},t=function(t,n){var i=e(0,n);return i?(n&&n.issueInfo?n.issueInfo.CouldPotentiallyBeRead:b.A.coudlIssueBeRead())?Promise.resolve(!1):(0,re.Jr)("smartFlowIfIssueCouldNotBeRead",null,i).then((function(e){return!e})):Promise.resolve(!1)},n={available:function(e,t){return e===A.Ay.views.pageView&&!b.A.isIssueRestrictedBy("SmartFlow")},enabled:function(n,i){var r=e(0,i);return r?function(n,i){var r=e(0,i);return r?(i&&i.issueInfo?i.issueInfo.CouldPotentiallyBeRead:b.A.coudlIssueBeRead())?Promise.resolve(!0):Promise.all([(0,re.Jr)("smartFlow",null,r),t(0,i)]).then((function(e){var t=e[0],n=e[1];return!(!t&&!n)})):Promise.resolve(!1)}(0,i).then((function(e){return!!e&&(!!(i&&i.article&&r)||function(e,t){return e!==b.A.issue()?(t&&t.issueInfo?Promise.resolve(t.issueInfo):(0,gt.Ii)(e)).then((function(e){return t&&(t.issueInfo=e),e.Layout.ValidForSmartFlow&&e.Newspaper.EnableSmart})):Promise.resolve(b.A.layoutValidForSmartFlow()&&b.A.enableSmart())}(r,i))})).then((function(e){return!!e&&function(e,t){return Promise.all([s.A.loaded(),v.Ay.loaded()]).then((function(){return function(e,t){return e!==b.A.issue()?(t&&t.issueInfo?Promise.resolve(t.issueInfo):(0,gt.Ii)(e)).then((function(e){return t&&(t.issueInfo=e),e.languageCode})):k.A.currentLanguage()||b.A.contentLanguage()}(e,t)})).then((function(e){var t=k.A.language(e);return!(t&&t.isRtl())}))}(r,i)})):Promise.resolve(!1)},activate:function(n,i,r){return r=void 0===r||r,t(0,i).then((function(t){if(t){var n=e(0,i);return(0,vt.G4)("IssueInfo","GetPageKeys",{issue:n,pageNumber:2})}})).then((function(){if(r){if(!i.article)return _t.A.switchToTextView();var e={issue:i.article.Issue.Id,page:oe.isNumber(i.article.Page.number)?i.article.Page.number:i.article.Page,articleId:i.article.ArticleId};return _t.A.switchToTextView(e)}}))}};return O.OH("textView",n),n}(),Ve.A.bookmarksView={available:function(e,t){return!0},enabled:function(e,t){return!0},activate:function(e,t){var n=function(e){var n=yt.A.findView(nt.lP.Bookmarks).createParams(t);tt.A.goView(nt.lP.Bookmarks,n,!0)};t&&t.profileId?n(t.profileId):bt.default.getProfileIdAsync().then(n)}},Ve.A.categoryView={available:function(){return!0},enabled:function(){return!0},activate:function(e){tt.A.goView(nt.lP.Categories,e,!0)}},Ve.A.topicsView={available:function(){return!0},enabled:function(){return!0},activate:function(e){void 0===e.$replaceView&&(e.$replaceView=!0),tt.A.goView(nt.lP.Monitors,e,e.$replaceView)}},Ve.A.myAccount={available:function(){return!0},enabled:function(){return!0},activate:function(){window.location=window.basePath+"accounting/account"}},Ve.A.radio=function(){var e={available:function(e,t){var n,i=e===A.Ay.views.pageView&&b.A.issue()&&!b.A.articles().length;return t.issue&&"function"==typeof t.issue.contentLanguage&&(n=t.issue.contentLanguage()),!n&&t.article&&(n=t.article.Language),n||(n=b.A.contentLanguage()),s.A.get("ui.Listen.enable",!0)&&e!=A.Ay.views.radioView&&!i&&function(e){var t=s.A.get("radio");if(t&&t.enable&&t.languages)for(var n=t.languages.length-1;n>=0;--n)if(t.languages[n]==e)return!0;return!1}(n)},enabled:function(e,t){if(!s.A.get("ui.Listen.enable",!0))return Promise.resolve(!1);if(!E.online())return Promise.resolve(!1);var n=b.A.issue();return!n&&t.article&&t.article.Issue&&(n=t.article.Issue.Id),!n&&t.issue&&(n=oe.isObject(t.issue)?t.issue.Id:t.issue),t.activeViewName===nt.lP.PagesView&&n&&!b.A.articles().length?Promise.resolve(!1):n?(0,re.Jr)("Sound",null,n):(console.warn("cannot determine tts status: issueId is unavailable in the context"),Promise.resolve(!1))},activate:function(e,t){var n,i;if(t.article)n=t.article,i=t.article.Issue;else if(t.issue&&t.issue.articles)n=t.issue.articles()[0],i={Id:t.issue.issue(),Date:t.issue.issueDate()};else if(t.page){var r=oe.filter(b.A.articles(),{PageNumber:t.page});r.length&&(n=r[0],i={Id:t.issue})}if(n&&i){var o=n.Id,a=i.CID;(0,wt.WD)(a).then((function(e){tt.A.goView(nt.lP.Radio,{articleId:o+"",country:e.country,newspaper:e.publication,issueDate:i.Date||""})}))}}};return O.OH("listen",e),e}();var Ct=n(91152),At=n(62297);Ve.A.printArticleText=function(){var e={available:function(e,t){return t&&t.article&&t.article.Blocks},enabled:function(e,t){return t&&t.article&&t.article.Blocks},activate:function(e,t){return Ct.default.printArticleText(t.article)}};return O.OH("printArticleText",e),e}(),Ve.A.printArticleImage=function(){var e={available:function(e,t){return t&&t.article},enabled:function(e,t){return t&&t.article},activate:function(e,t){return Ct.default.printArticleImage(t.article)}};return O.OH("printArticleImage",e),e}(),Ve.A.printCustomArea=function(){var e={available:function(e,t){return e!=A.Ay.views.radioView},enabled:function(e,t){return t&&(t.article||t.issue)},activate:function(e,t){return yt.A.getActiveViewName()===nt.lP.PagesView||"ArticleDialog"===e?Ct.default.printCustomArea(t.article,t.page,t.issue):new Promise((function(e,n){var o=function(){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),[4,Ct.default.printCustomArea(t.article,t.article&&t.article.Page&&t.article.Page.number||t.article&&t.article.Page||t.page,t.issue&&t.issue.issue()||t.article&&t.article.Issue&&(t.article.Issue.id||t.article.Issue.Id))];case 1:return i.sent(),e(),[3,4];case 2:return i.sent(),n(),[3,4];case 3:return At.A.layoutUpdated(o,"unsubscribe"),[7];case 4:return[2]}}))}))};r.nd.viewer.pagesView.layoutUpdated(o),yt.A.getActiveViewName()!==nt.lP.TextView?tt.A.goView(nt.lP.PagesView,{issue:t.article.Issue.Id,page:t.article.Page}):_t.A.switchToImageView({page:t.page||t.article&&t.article.Page&&t.article.Page.number})}))}};return O.OH("printCustomArea",e),e}(),Ve.A.printPage=function(){var e={available:function(e,t){return!0},enabled:function(e,t){return t&&(t.article||t.issue)},activate:function(e,t){return t.pageNumbers||(t.pageNumbers=[t.page]),Ct.default.printPage(t.article,t.pageNumbers,t.issue,t.newspaperName)}};return O.OH("printPage",e),e}(),Ve.A.print=function(){var e={available:function(e,t){return t&&(t.article||t.issue)},enabled:function(e,t){return t&&(t.article||t.issue)},activate:function(e,t){}};return O.OH("print",e),e}(),Ve.A.printEntireIssue=function(){var e={available:function(e,t){return!0},enabled:function(e,t){return t&&(t.article||t.issue)},activate:function(e,t){return Ct.default.printEntireIssue(t.article,t.issue,t.newspaperName)}};return O.OH("printEntireIssue",e),e}();var It,St,Pt=n(22358),xt={downloadIssue:Pt.m,downloadPage:Pt.V},Tt={main:0,preview:1};function kt(){St&&St.hide&&St.hide()}function Et(){r(It).off("download"),St=null}var Mt,Dt=It={show:function(e){(St=q.default.getInstance()).onHide(Et);var t={templateName:"v7.Client.Dialogs.Pdf.Download",model:{thumbs:e.thumbs,buttonText:e.text,currentState:ko.observable(e.state||Tt.main),headerText:v.Ay.val("Menu.PdfDownload"),buttonsCancelText:v.Ay.val("Buttons.Cancel.Text"),buttonsDownloadText:v.Ay.val("Buttons.Download.Text"),publisherName:v.Ay.val("BrandName"),state:Tt,cancel:function(){kt()},download:function(){r(It).trigger("download"),kt()}}};St.show(t)},hide:kt,onDownload:function(e){r(It).on("download",e)}};function Nt(e,t){var n;t||(t=event),t.target?n=r(t.target):t.srcElement&&(n=t.srcElement);var i=n.parent();i.width(n.width()),i.height(n.height())}function Lt(e){Mt?Mt.attr("src",e):Mt=r("
").checkpoint()/g.K_);for(a.rollback();s<=i&&!(++o>=r.length);){for(;o")).append(r.substr(0,o)+g.kz).append("
").checkpoint()/g.K_),a.rollback()}for(;s>i&&!(--o<=0);){for(;o>0&&" "!==r[o];)--o;s=Math.round(a.append("
")).append(r.substr(0,o)+g.kz).append("
").checkpoint()/g.K_),a.rollback()}return a.remove(),this._marker={idx:n,block:r.substr(0,o)+g.kz+r.substr(o)},this},removeMarker:function(){return delete this._markedBlock,this},renderText:function(e,t,n,i,r){if(this._article&&this._article.Blocks&&this._article.Blocks.length){i||(i=Number.MAX_VALUE);for(var o=this._renderingState(e).text,a=t;ai&&(l=i),r&&r[a])for(var d=0;d=h.lidx+h.lines)){l=Math.min(l,h.lines-n+h.lidx);break}}if(!l)return{blockIdx:a,lineIdx:n};c&&u.append('
')).checkpoint(c);var f=this.renderBlock(u,a,n,l);if(!f)break;if(o[a]={start:n,lines:f,outof:s},n+=f,(i-=f)<=0)return n=3?"".concat(t._titleType,"_"):"").concat(e)},r=this._stats,o=n?void 0:r[i(e)];if(!o){var a,s,u=2&this._mode?P().css("width","".concat((0,g.y6)(),"px")).createChild("article").addClass("art art-stack"):S(this._titleType).createChild("div").css({position:"absolute",width:"".concat((0,g.y6)(),"px"),visibility:"hidden"}).addClass("col"),c=void 0;n?(c=1,a=e):!e&&this._titleType>=3?(c=1,a=0):(a=e-e%(c=10))+c>this._article.Blocks.length&&(c=this._article.Blocks.length-a);for(var l=0;l")),this._marker&&this._marker.idx===l+a?u.append(this._marker.block):u.append(this._article.Blocks[l+a].Text),u.append("
");u.append("
a
"),u.elm().children().each((function(e){var t=this.offsetTop;e&&(n?o=t-s:r[i(e+a-1)]=t-s),s=t})),u.remove(),n||(o=r[i(e)])}return o},_blockHeightTask:function(e,t,n){var r,o,a=[this._mode,this._titleType];r=(0,i.zs)([t,n],2),this._mode=r[0],this._titleType=r[1],this.blockHeight(e),o=(0,i.zs)(a,2),this._mode=o[0],this._titleType=o[1]},renderBlock:function(e,t,n,i){var r=Math.min(i,Math.round(this.blockHeight(t,!1)/g.K_)-n),o=r*g.K_;e.append('
"),this._marker&&this._marker.idx===t?e.append(this._marker.block):e.append(f.A.replace(this._article.Blocks[t].Text,this._article.Data)),e.append("
").checkpoint(o),k(),r},_translationDisclaimer:function(e,t,n){if(this._article.isOriginal()||w.A.currentLanguage())return null;var i=e.createChild("div").css({width:(0,g.y6)(t),position:"absolute"}).append('
Translated into ').append(w.A.language(this._article.Language).title()).append(' Show original Disclaimer
'),r=i.checkpoint();if(i.checkpoint(r),n){var o=n.findAvailablePosition(r,0,!1),a=new _.G({elm:i.elm(),colspan:t,top:o.top,height:r,smartFlowItemId:this._article.Id,type:_.n.Header});n.addCell(a)}return i},getImages:function(e){if(!this._article.Images||!this._article.Images.length)return null;for(var t=null,n=0;ng.UO)){var a=Math.round(i.Height*o/100);e>1&&!this.isValidImageHeight(a)||(t?t.push(i):t=[i])}}return t&&t.sort((function(e,t){return t.Width*t.Height-e.Width*e.Height})),t},isValidImageHeight:function(e){return g.E3-e>5*g.K_},reset:function(e){e&&(this._article=e),this.removeArticleElm()._columnsStates=[],this._columnsCount=this._estimatedColumnsCount=-1,this._stats={},this._heights=[],delete this._currentLayout},columnsCount:function(){return this.estimatedColumnsCount()},textLines:function(e,t,n){if(!this._article||!this._article.loaded())return 0;var i=0,r=g.K_,o=this._titleType;this._titleType=e;for(var a=n?0:this._article.StartBlockIdx||0;a0&&this._article.Title.toUpperCase()===this._article.Title&&--r;for(var o=r;o>=0;--o){var a=this.titleWidth(o,0),s=Math.ceil((a.max+g.oG)/g.zt),u=Math.ceil((a.min+g.oG)/g.zt),c=Math.min(Math.min(e,g.Ps),s);if(!o||!(1===c||c1&&(l=this.layoutByTitleLayout({type:o,colspan:c,split:!1},e,3|o<<3),n=this.pickLayout(n,l),l=this.layoutByTitleLayout({type:o,colspan:c,split:!0},e,7|o<<3),n=this.pickLayout(n,l)),o||(l=this.layoutByTitleLayout({type:o,colspan:1},e,3|o<<3),n=this.pickLayout(n,l))}}return n&&(this._stats[t]=n),this._mode=i,n},pickLayout:function(e,t){if(!e)return t;if(!t)return e;if(e.image&&!t.image)return e;if(!e.image&&t.image)return t;if(e.image&&t.image){if(e.image.image.s>t.image.image.s)return e;if(e.image.image.st.totalLines?t:Math.random()<.5?e:t},layoutByTitleLayout:function(e,t,n){for(var i=this.titleHeightsByColumns(e.type,e.colspan,n),r=0,o=g.Nw/2,a=0;a=c.colidx&&a1){var a=0;(u=this._translationDisclaimer(o,t))&&(a=u.height(),u.remove()),u=o.createChild("header").css({position:"absolute",width:"".concat((0,g.y6)(t),"px")}),this.renderMultipleColumnTitle(u,void 0,t,n),a+=u.height(),u.remove();for(var s=0;s0;--i){for(var r=-1,o=0,a=0;a<=e-i;++a){for(var s=-1,u=0;un.image.s&&(n.image=c,n.colidx=o,n.colspan=i):n={image:c,colidx:o,colspan:i})}}return n},image:function(e,t,n){var i=(0,g.y6)(t),r=Math.round(100*i/e.Width);if(r>g.UO)return null;var a=Math.round(e.Height*r/100);if(a>n)return null;var s={};return(0,o.forIn)(e,(function(e,t){s[t.toLowerCase()]=e})),s.width=i,s.height=a,s.url="image.Url".concat(e.Url.indexOf("?")>=0?"&":"?","scale=").concat(r),s.s=i*a,s.baseUrl=e.Url,s.scale=r,s},images:function(e,t){if(!this._article.Images||!this._article.Images.length)return null;for(var n=null,i=0;i").append(" ");return e.byline&&n.append('').append(e.byline).append(" "),n.append(""),(e.title||e.text)&&(n.append(""),e.title&&n.append("").append(e.title).append(" "),e.text&&n.append(" ").append(e.text),n.append(" ")),n},fullImageHeight:function(e){var t="fih_".concat(e.id,"_").concat(e.width),n=this._stats[t];if(!n){var i=this.renderOutsideImage(e,S(0));this._stats[t]=n=i.height(),i.remove()}return n},bestImage:function(e,t){if(this._article){var n=this.images(e,t);if(!n)return null;for(var i=null,r=0;rt||(!i||o.s>i.s)&&((i=o).fullHeight=a)}return i}},renderLayout:function(e,t,n,i){n||t.addDivider();var r=(0,b.Ef)(this._article,b.qF.Rendered);if(t.onDisposed((function(){return r.release()})),t.addLayout(this),!t.section()&&this._article.group()&&t.section(this._article.group()),!n){this.articleElm().removeClass().addClass("art"),e.title.type&&this.articleElm().addClass("art-t".concat(e.title.type+1)),this._article.StartBlockIdx&&!e.merged&&this.renderContinuedFromElm(e,t);var o=3|e.title.type<<3;e.title.split&&(o|=4),this._titleType=e.title.type,this.renderTitle(t,e.title.colspan,o)}if(e.images)for(var a=0;a1){var o=t.findAvailablePosition(g.K_,0,!1),a=r(''.concat(i," ")).bind({"touchstart touchend mousedown mousemove mouseup MSPointerDown MSPointerUp":function(e){(e=e.originalEvent||e).stopPropagation?e.stopPropagation():e.cancelBubble=!0},"touchmove MSPointerMove":function(){return!1},click:function(e){n._context.textView.onContinuedFromClicked(e)}}).optimizeForTransform();this.articleElm().elm().append(a);var s=new _.G({elm:a,colspan:e.title.colspan,top:o.top,height:g.K_,smartFlowItemId:this._article.Id,type:_.n.Column,layout:e});t.addCell(s)}else this.columnElm(t,g.K_).append(''.concat(i," ")).checkpoint(g.K_).addOnRenderedListener((function(e){e.children("a.continued").bind({"touchstart touchend mousedown mousemove mouseup MSPointerDown MSPointerUp":function(e){(e=e.originalEvent||e).stopPropagation?e.stopPropagation():e.cancelBubble=!0},"touchmove MSPointerMove":function(){return!1},click:function(e){n._context.textView.onContinuedFromClicked(e)}})}))},renderImageLayout:function(e,t,n){var i=this.renderOutsideImage(n.image,this.articleElm());if(i.checkpoint(n.image.fullHeight),!n.colidx&&1===n.colspan||n.colidx+n.colspan<=t.colspan&&(!t.split||n.colidx)||n.colidx>=t.colspan){var r=e.findAvailablePosition(n.image.fullHeight,0,!1,this._elm?[new _.G(this._elm.render(),1,this._elm.top(),this._elm.height())]:void 0).top;this._elm&&(this._elm.height()?this._elm.maxHeight(this._elm.height()):(this._elm.remove(),delete this._elm));var o=new _.G({elm:i.elm(),colspan:n.colspan,top:r,height:n.image.fullHeight,smartFlowItemId:this._article.Id,type:_.n.Figure});e.addCell(o)}else r=g.E3-g.E3%g.K_-n.image.fullHeight,i.css("top",r),this._elm&&this._elm.top()+this._elm.maxHeight()>r&&this._elm.maxHeight(r-this._elm.top()),o=new _.G({elm:i.elm(),colspan:n.colspan,top:r,height:n.image.fullHeight,smartFlowItemId:this._article.Id,type:_.n.Figure}),e.addCell(o)},addEllipsis:function(e){for(var t=e.cells(),n=null,i=t.length-1;i>=0;--i)if(!t[i].type()){n=t[i];break}n&&this._addEllipsis(n.elm)},_addEllipsis:function(){var e=(0,d.uW)().parent();e._ellipsisElmRegistred||(e.tap(".readmore, .readmore-click-panel",x),e._ellipsisElmRegistred=!0)},estimatedColumnsCount:function(e){if(this._columnsCount>0)return this._columnsCount;var t=0;if(e){if(this._estimatedColumnsCount>=e)return this._estimatedColumnsCount;t=e*g.Nw}else e=Number.MAX_VALUE;var n=this.textLines(0,t,this._article.StartBlockIdx||0)/g.Nw;if(!n)return-1;if(n>e)return this._estimatedColumnsCount=n,n;n=Math.ceil(n);var i=this.layout(n);if(i.totalLines>this.textLines(i.title.type))return this._columnsCount=this._estimatedColumnsCount=n-.5,this._columnsCount;for(;nthis.textLines(i.title.type))return this._columnsCount=this._estimatedColumnsCount=n-.5,this._columnsCount;if(i.totalLines===this.textLines(i.title.type))return this._columnsCount=this._estimatedColumnsCount=n,this._columnsCount}return this._estimatedColumnsCount=n,this._estimatedColumnsCount},fullLayout:function(e,t){var n=new A(this,e);if(t&&(n.merged=!0),e.full)return n;if(n.full=!0,!this._article.Images||!this._article.Images.length)return n;var i,r=this.textLines(e.title.type,void 0,t),o=(g.Nw-g.VN)*g.K_;if(e.image){i=[];for(var a=0;a0;--v)if((s=this.image(i[a],v,o))&&!((w=this.fullImageHeight(s))>o)){p[a]=v;break}m[a]=p[a]}for(;;){var y=c.slice(0),_=void 0,b=[];for(a=0;ao)break;s.fullHeight=w;for(var C=Math.ceil(w/g.K_),I=0;;){var S=Number.MAX_VALUE;for(l=0;l=y.length&&y.push(g.Nw-g.VN),!((S=Math.min(S,y[l+I]))=C)break;++I}for(b.push({image:s,colspan:v,colidx:I}),l=0;l1){if(--m[a],!a&&e.image&&m[a]=0&&T>0;--a){var k=f[a],E=0;for(l=a-1;l>=0;--l){var M=f[l];if(M.colidx!==k.colidx){M.colidx+M.colspan===k.colidx&&(E=1);break}}if(T>E&&n.title.colspan===k.colidx+E&&++E,E>0){for(k.colidx+=E,l=a+1;ls.colspan||!s.postponed?this._stats[n]=r={title:{type:0,colspan:d},image:s}:this._stats[n]=r={title:{type:0,colspan:1},image:s};else{for(var u=Math.ceil(4*(this._article.SecNormRate||this._article.NormRate));u>1&&!((d=Math.min(Math.min(e,g.Ps),Math.ceil((this.titleWidth(u,3)+g.oG)/g.zt)))<2);u--){var c=this.sectionElm().article().addClass("art art-t".concat(u+1)),l=c.createChild("header").css({position:"absolute",width:"".concat((0,g.y6)(d),"px")});if(this.renderMultipleColumnTitle(l,void 0,d,3|u<<3),l.height()<=g.E3/2&&(this._stats[n]=r={title:{type:u,colspan:d},image:s}),c.remove(),r)break}if(!r){var d=Math.min(Math.min(e,g.Ps),Math.ceil((this.titleWidth(1,0)+g.oG)/g.zt));this._stats[n]=r={title:{type:d>1?1:0,colspan:d},image:s}}}t=(0,i.zs)(o,3),this._mode=t[0],this._articleElm=t[1],this._elm=t[2]}return r}},render:function(){for(var e=[],t=0;t(r.image?1:0)||this._article.isPreview())?this.addEllipsis(n.tail):r.full=!0,n.count=i}else{var l=e[0],d=e[1];(r=this.currentLayout())||(r=this.layout(1).setCurrent()),r=this.fullLayout(r,d);var f,p=function(e){var t=n.tail=new h.fd(n.tail).articleIdx(m._article.Idx).columnIdx(n.count);n.head||(n.head=t),e=m.renderLayout(r,t,n.count,l);var i=(0,b.Ef)(m._article,b.qF.Rendered);t.onDisposed((function(){return i.release()})),f=e},m=this;for(a=!0;a;n.count++)p(a),a=f;for(var g=n.head;g;g=g.next())g.articleColumnsCount(n.count)}return new h.Sl(n.head,n.tail)},estimatedColumnsCount2:function(e){var t;if(this._columnsCount>0)return this._columnsCount;if(e&&this._estimatedColumnsCount>=e)return this._estimatedColumnsCount;var n=0;if(this._article.Blocks&&this._article.Blocks.length){for(var r=0,o=0;o=e)return this._estimatedColumnsCount=n,n;n=Math.ceil(n||r/g.E3)}else n=1;this._mode=1;for(var a=[this._columnsStates,this._articleElm];;){var s=null;for(this._columnsStates=[],delete this._articleElm,o=0;o=e)return this._estimatedColumnsCount=n,this._mode=0,n;n++}},highlight:function(e){for(var t=e.articleColumnsCount(),n=this._article,i=f.A.replace(this._useHyphenatedTitle?n.HyphenatedTitle:n.Title,n.Data),o=n.Subtitle?f.A.replace(n.Subtitle,n.Data):null,a=0;a hgroup > h1").html(i),o&&a.find("header > hgroup > h2").html(o),a.children("div[bidx]").each((function(){var e,t=r(this),i=parseInt(t.attr("bidx"),10);i in u?e=u[i]:u[i]=e=f.A.replace(n.Blocks[i],n.Data),t.children("p").html(e)}));break;case _.n.Figure:break;case _.n.Header:a.find("hgroup > h1").html(i),o&&a.find("hgroup > h2").html(o)}},c=0;cg.zt;var a=!1;switch(e){case 0:this.renderTitle(t,1),this.renderImage(void 0,t,1,0),(s=this.renderText(t,0,0,i))?(arguments.length>4&&this.renderText(t,s.blockIdx,s.lineIdx,r),(arguments.length<=4||this._article.isPreview())&&(a=!0)):this._article.isPreview()&&(a=!0);break;case 1:this.renderTitle(t,1,1),this.renderImage(void 0,t,1,0),(s=this.renderText(t,0,0,i))&&arguments.length>4&&this.renderText(t,s.blockIdx,s.lineIdx,r),a=!0;break;case 2:this.renderTitle(t,1,0),this.renderImage(void 0,t,1,0),(s=this.renderText(t,0,0,i))&&arguments.length>4&&this.renderText(t,s.blockIdx,s.lineIdx,r),a=!0;break;case 3:this.renderTitle(t,1,1),(s=this.renderText(t,0,0,i))&&arguments.length>4&&this.renderText(t,s.blockIdx,s.lineIdx,r),a=!0;break;case 4:var s;this.renderTitle(t,1,0),(s=this.renderText(t,0,0,i))&&arguments.length>4&&this.renderText(t,s.blockIdx,s.lineIdx,r),a=!0}if(this._mode^=2,n)this._elm.render(),delete this._articleElm;else{var u=new _.G({elm:this._elm.render(),colspan:1,top:this._elm.top(),height:this._elm.height(),smartFlowItemId:this._article.Id,type:_.n.Column});t.addCell(u)}a&&this._addEllipsis(this._elm),delete this._elm}},height:function(e){var t;if(!this._heights[e]){var n=[this._articleElm,this._elm];delete this._articleElm,delete this._elm,this._mode=1;var r=new h.fd,o=this.sectionElm().column().addClass("col").css({position:"absolute",top:"0px",width:"".concat((0,g.y6)(),"px")});this.render(e,r,o,g.VN);var a=o.height();o.removeChildren(),this.render(e,r,o);var s=o.height();o.remove(),this._heights[e]={min:a,max:s},this._mode=0,r.dispose(),t=(0,i.zs)(n,2),this._articleElm=t[0],this._elm=t[1]}return this._heights[e]},estimatedColumnsCount:function(){return this._columnsCount>0?this._columnsCount:this._estimatedColumnsCount>0?this._estimatedColumnsCount:(this._columnsCount=this._estimatedColumnsCount=this.height(0).max/g.E3,this._columnsCount)},highlight:function(e){var t=this._article,n=e.cells()[0].elm().children("article[aid=".concat(t.Id,"]")),i=n.find("header > hgroup > h1"),o=i.find("a.lbl-comment").detach();i.html(f.A.replace(this._useHyphenatedTitle?t.HyphenatedTitle:t.Title,t.Data)).append(o),t.Subtitle&&n.find("header > hgroup > h2").html(f.A.replace(t.Subtitle,t.Data));var a=this,s={};n.children("div[bidx]").each((function(){var e=parseInt(r(this).attr("bidx"),10);e in s?this.parentNode.replaceChild(this,s[e]):s[e]=a.highlightRec(this)}))},highlightRec:function(e){if(!e||"true"===r(e).attr(g.TJ))return e;f.A.flatten(e);for(var t=[].slice.call(e.childNodes,0),n=0;n\n '.concat(t.Title,' \n \n ').concat(t.ShortDateString,' \n \n ').concat(this._renderPageName()," \n ")))}},_renderSocialColumn:function(e,t,n){var i=new h.Sl(t,t);if(!g._b)return i;var r=e&&e.page(),o=r&&r.Page1&&r.Page1.SocialInfo;if(!o||!o.Bookmark)return i;var a=new p.y,s=a.getTitle(o),c=a.getTitleClass(o),l=(0,d.uW)().section({id:"social-".concat(o.Bookmark.WebName),title:s,className:c,styles:{width:"".concat(n,"px")}});e.on("unlocked",(function(){l.remove()}));var f=l.column().css({position:"absolute",top:"0px",width:"".concat(n,"px")}),v=(new h.fd).addLayout(e).type(h.zX.SocialInfo).articleColumnsCount(1).columnIdx(0),y=function(){a.positionChanged(v.isVisible())};m.A.bind(u.o.current.textView,"positionchanged",y);var w=(0,b.Ef)(r,b.qF.Rendered);v.onDisposed((function(){m.A.unbind(u.o.current.textView,"positionchanged",y),a.dispose(),w.release()})),v.addCell(new _.G(f.elm(),1,0,g.E3));var C=f.createChild("div").addClass("group-panel pg-cover").elm();a.render(C,{data:o,canComment:!1});var A=(i=i.prepend(v)).count();return i.forEach((function(e,t){e.columnIdx(t).articleColumnsCount(A).section(l).removeDivider()})),i},_renderPageName:function(){return this._page.Page1.Name},renderImage:function(e,t,n){if(e){var i="";n&&(i="; height: ".concat(n,"px"));var o,a=this._page.Page1.Issue.Id,s=this._page.PageN1,u=this._page.Page1.BookmarkId||"",c=' ');e.elm().prepend(r('').concat(this._renderImage(t)," ").concat(c," ")).bind({"touchstart mousedown MSPointerDown":function(e){e.preventDefault(),o=e.clientX},touchmove:function(e){e.preventDefault(),o="move"},"click touchend":function(e){if(!r(e.target).closest("[data-thumb-bookmark]").length)if(o!==e.clientX)e.preventDefault();else{var t={article:{Issue:{Id:a},Page:s}};l.A&&l.A.pageView&&l.A.pageView.enabled(null,t)&&l.A.pageView.activate(null,t)}}}))}},_imageHeight:function(e){var t=this._page.Page1;if(t){var n=(0,a.Bs)(t.PageN,{width:t.W,height:t.H},{width:e});return Math.floor(t.H/100)*n}},_renderImage:function(e){var t=this._page.Page1,n=(0,a.Fv)(t.Issue.Id,e,t.PageN,r.support.retina),i=(0,a.Fv)(t.Issue.Id,960,t.PageN,r.support.retina),o={width:t.W,height:t.H},s=(0,a.Bs)(t.PageN,o,{width:960});return' ')},_getParamFromUrl:function(e,t){var n=RegExp("[?&]".concat(t,"=([^&]*)")).exec(e);return n&&decodeURIComponent(n[1].replace(/\+/g," "))},render:function(){for(var e=[],t=0;t'+(n.fullName||item.section)+"")}function B(e,t){D()==M.Image?(!A.A.get("UI.Views.PageView.ManagePageThumbnails",!1)||A.A.get("UI.Views.PageView.EnablePageThumbnails",!0)&&C.A.isLogin()&&d.A.coudlIssueBeRead())&&function(e,t){for(var n=e,i=n.pages,r=[],o=c.support.retina,a=o?550:280,s=o?2:1,u=0;u1?l[Math.floor(.3*l.length)||1]:0;function p(e){return!!(e.NRate>=h&&e.Image)&&!(e.Image.Width/e.Image.Height<1.1||Math.floor(30200/e.Image.Width)>400)}function m(e){return!!(e.NRate>=f&&(e.Image||e.TextLength>=100))}var g=[],v=null,y=0;for(s=0;s_.Rate&&(I=1),1!=I||b||(I=Math.min(3-y,2)),y+=I;var S,P="athumb_"+_.Id,x=0x800000000000,T={id:P,title:_.Title,text:_.Text,pageNumber:C,articleId:_.Id,rowSpan:I,isExternal:function(){return c.nd.longBitwiseAnd(this.articleId,x)==x}};if(v.articles.push(T),w&&(S=_._refToPageObj)){var E=60;3==I&&(E=302);var M=c.support.retina,D=Math.floor(100*(E+2)/w.Width);T.imgWidth=Math.floor(w.Width*D/100),T.imgHeight=Math.floor(w.Height*D/100),T.imgMaxWidth=Math.min(E,T.imgWidth-2),T.imgMaxHeight=T.imgHeight-2,T.imgRetina=M,T.imgCssWidth="auto",M&&(D*=2,T.imgCssWidth="".concat(T.imgWidth,"px")),w.Url?T.imgSrc=w.Url+(w.Url.indexOf("?")>=0?"&":"?")+"scale="+D:T.isExternal()?T.imgSrc=w.Key+(w.Key.indexOf("?")>=0?"&":"?")+"scale="+D:T.imgSrc=S.buildPictureUrl(D,w.Uid,w.Key)+"&nd_id="+P}}else r[s]=b,r[s+1]=_,s--}if(0!=g.length){var N={sectionName:n.name,columns:g,sectionFollowEnabled:A.A.get("ui.FeedSettings.allowFollowSectionOnSlider",!1)};t[0].innerHTML=k(N,"SliderPreviewTextSection"),t.find("header h1").hide().each((function(e,t){var n=t.parentNode;n.style.width=n.offsetWidth+"px"})).show()}else t.width(0)}(e,t)}function z(){if(P){if(M.Text===D())return void((e=S.activePages()).length>0&&(i=e[0].GetSliderSection())&&i.isSelected(!0));var e;if((e=S.activePages()).length>0){var t=Math.floor(e.length/2),n=e[t],i="function"==typeof n.GetSliderSection?n.GetSliderSection():void 0;if(e.lastGotoPage&&e.lastGotoPage.isActive()&&e.lastGotoPage.GetSliderSection()&&(i=(n=e.lastGotoPage).GetSliderSection()),i||(n=e[t-1])&&n.isActive()&&(i=n.GetSliderSection()),i||(n=e[t+1])&&n.isActive()&&(i=n.GetSliderSection()),i&&!i.isSelected()){var r=n.leftPageIfSpread(),o=n.rightPageIfSpread(),a=!1;r&&r!=n&&r.isActive()&&r.GetSliderSection()&&r.GetSliderSection().isSelected()&&(a=!0),o&&o!=n&&o.isActive()&&o.GetSliderSection()&&o.GetSliderSection().isSelected()&&(a=!0),!1===a&&i.isSelected(!0)}}}}function O(){var e=[],t=N()?c.nd.viewer.external:y.A;M.Text===D()?c.each(t.visibleArticles()||[],(function(t,n){var i="athumb_"+n.Id,r=document.getElementById(i);r&&e.push(r)})):c.each(S.activePages(),(function(t,n){var i="thumb_"+n.pageNumber(),r=document.getElementById(i);r&&e.push(r)})),j(),e&&e.length>0&&s.ensureElmsVisibleInPreview(c(e),!0)}function j(){return h.J().then((function(e){var t=c(".pp-slider");t.find(".is-following").removeClass("is-following"),t.find(".btn-follow .pri").removeClass("pri-following").addClass("pri-follow"),l.chain(e.sections||[]).filter({cid:d.A.cid()}).each((function(e){var t=e.sectionName,n=c(".pp-slider a.btn-follow").filter((function(){return c(this).data("section")===t}));n.addClass("is-following"),n.find(".pri.pri-follow").removeClass("pri-follow").addClass("pri-following")})).value()}))}function U(e,t){return c.nd.user.isLogin()?h.J().then((function(n){n.sections||(n.sections=[]);var i=l.filter(n.sections,{cid:e,sectionName:t});return i.length?l.each(i,(function(e){n.sections=l.without(n.sections,e)})):n.sections.push({cid:e,sectionName:t,issueName:d.A.contentName()}),h.h(n).then(j)})):w.default.signIn().then((function(){return U(e,t)}))}function W(){return this.ThumbsView_Section}function Y(e){return this.ThumbsView_Section=e,this}var X=c.nd.delegate(!0),q={previewVisibleChanged:X,previewVisible:function(){return s.sliderPreviewVisible()},hidePreview:function(){s.hidePreview(!0)},init:function(e){u=e;var t,n="toolbarBottom",l="toolbarBottomPreview";c('').attr("id",l).css({zIndex:2,position:"absolute",width:"100%"}).appendTo(e.elm()),T("SliderBottom",'',{variable:"data"}),e.elm()[0].innerHTML+=k({id:n},"SliderBottom"),a=c("#"+n,e.elm()),T("SliderPreviewThumbSection",'<%= data.sectionName %> <% if (data.sectionFollowEnabled) { %>Follow <% } %> <% _.forEach(data.pages, function(page) { %><% if (page.isSpreadRight){ print(" class=\'p-right\'"); } %>><%= page.pageName %> <%= page.imgHeightAttr %> style="margin-bottom:<%= page.imgMarginBottom %>px;"/>
<% }) %>',{variable:"data"}),T("SliderPreviewTextSection",'<%= data.sectionName %> <% if (data.sectionFollowEnabled) { %>Follow <% } %> <% _.forEach(data.columns, function(column) { %><% }) %>',{variable:"data"}),r={id:l,sliderSelector:t="#"+l,innerLayerSelector:t+" .pp-slider",outerLayerSelector:t+" .pp-in",pagesFilter:"p",itemElementName:"section",itemRenderer:B},i={id:n,sliderSelector:t="#"+n,innerLayerSelector:t+" ul",outerLayerSelector:t+" .toolbar-slider-in",itemElementName:"li",itemRenderer:F,leftCropSelector:t+" .toolbar-slider-leftcrop",rightCropSelector:t+" .toolbar-slider-rightcrop"},(s=new c.nd.ui.sliderWithPreview({sliderCfg:i,previewCfg:r})).userSelectItem((function(e){var t=e.value.pages[0];D()==M.Text?(N()?c.nd.viewer.external:y.A).jumpToPage(t.pageNumber()):c.nd.navigation.showIssuePage(t.pageNumber())})),s.sliderPreview_OnShowing(O),c(".toolbar-slider-left").click((function(){s.showPrevPage()})),c(".toolbar-slider-right").click((function(){s.showNextPage()})),c("#btn_TextMode").click((function(){L(M.Text)})),c("#btn_ImgMode").click((function(){L(M.Image)}));var h={};function p(){X(s.sliderPreviewVisible())}return h[I.u.right]=function(){s.showNextPage()},h[I.u.left]=function(){s.showPrevPage()},c(document).on({keyUp:function(e){if(s.sliderPreviewVisible()){var t=h[e.keyCode];"function"==typeof t&&t.call(this)}}}),c(".pp-slider").delegate("a:not(.btn-follow)","click touchend",(function(){if(!c.nd.drag.hasBeenInDrag()){if(M.Image===D()){var e=parseInt(this.getAttribute("page-number"),10);e&&c.nd.navigation.showIssuePage(e)}else{var t=this.getAttribute("article-id");t&&c.nd.navigation.showArticle(t,d.A.issue())}s.hidePreview()}})),c(".pp-slider").delegate("a.btn-follow","click touchend",(function(e){if(c.nd.drag.hasBeenInDrag())return!1;var t=!c(e.currentTarget).hasClass("is-following"),n=c(this).data("section");return U(d.A.cid(),n).then((function(){if(t){var e=g.Ay.get("Messages.SectionHasBeenAddedToNewsFeed").replace("{0}",n);e&&c.nd.alert().show(e)}})),!1})),o=c("#"+l,e.elm()),f.c3.subscribe((function(){j()})),e.resize((function(){s.onContainerResized()})),e.hide(),c.nd.viewer.views.activeViewChanging(R),c.nd.viewer.views.activeViewChanged(H),s.sliderPreview_OnShowing(p),s.sliderPreview_OnHiding(p),s.sliderPreview_OnHided(p),g.Ay.loaded().then((function(){c("#btn_ImgMode").attr("title",g.Ay.get("PR.Web.PageViewToolbarSwitchTooltip","View articles and entire issues exactly as they appear in print")),c("#btn_TextMode").attr("title",g.Ay.get("PR.Web.TextViewToolbarSwitchTooltip","New articles will appear in an easy-to-read horizontal stream"))})),this},enable:function(e){P=e,u&&(e?u.show():(s.hidePreview(!0),u.hide()))},onActivePagesChanged:function(){z._timeout||(z._timeout=setTimeout((function(){z._timeout=0,z()}),1))},renderViewerPages:function(){Promise.all([A.A.loaded(),g.Ay.loaded()]).then((function(){!function(){if(P){for(var e,t=D()===M.Text&&d.A.layoutValidForSmartFlow()&&d.A.enableSmart(),n=new c.nd.ui.sliderItemsCollection,i=S.mostLeftPage();i;i=i.rightPage())if(i.GetSliderSection=W,i.SetSliderSection=Y,i.SetSliderSection(null),!t||i.articles()&&i.articles().length){var r,u=i.section(),l=i.pageName()||i.pageNumber();u&&parseInt(u,10)!==i.pageNumber()?(A.A.get("UI.Views.ThumbnailView.SectionName.Normalized",!0)&&(u=u.replace(new RegExp(/\s*\d\s*/g),"")),r=l+" "+u):r=u="".concat(g.Ay.get("PR.Web.ThumbnailView.Page","Page")," ").concat(l),e&&e.name===u||(e=new c.nd.ui.sliderItem({id:n.getLength().toString(),name:u,fullName:r,pages:[]}),n.add(e)),e.pages.push(i),i.SetSliderSection(e)}n.getLength(),a.find(".toolbar-switch").css("display",d.A.layoutAvailable()?"":"none"),D()==M.Text?o.find(".pp").removeClass("pp-thumb").addClass("pp-text"):o.find(".pp").removeClass("pp-text").addClass("pp-thumb"),s.setItems(n),z()}}()}))},renderModesAvailable:function(){m.A.textView.enabled().then((function(e){var t=a.find(".toolbar-switch");e?t.show("fast"):t.hide("fast")})).catch((function(e){b.A.error(e)}))},switchToTextView:function(e){return L(M.Text,e)},switchToImageView:function(e){return L(M.Image,e)}};c.nd.viewer.thumbsView2=q,t.A=q},92078:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ze},enableActionMenu:function(){return He},getSearchText:function(){return Re},registerView:function(){return Be},resetSearchText:function(){return Ve},searchMenuText:function(){return Le},show:function(){return De},showSearchMenu:function(){return Ne},update:function(){return Fe}});var i=n(58932),r=n(29583),o=n(12010),a=n(13302),s=n(67660),u=n(59940),c=n(60798),l=n(67303),d={backEnable:!1,homeButtonEnable:!0,opinionButtonEnable:!1,headerClass:"toolbar-hometitle",header:"ToolbarTop.Home",enableFullDateView:!0,isTitleDisabled:!1,titleEnable:!1,userInfoEnable:!0,showSearch:!0,signInEnabled:!0,showPostButton:!1,postAction:null,isPostDisabled:!1,actionMenuEnable:!0,showBookmarkName:!1,showMonitorName:!1,showNewpaperName:!1,actionMenuOptions:[],actionMenuController:null,newPostButtonVisible:!1,hideHotZoneButton:!1,showLogo:!0,clickableLogo:!0,logoUrl:"",openLogoUrlInNewTab:!1,topBarPublicationsDropdown:!1,showLogonName:!1},h=function(){function e(e){this._viewerApp=e.viewerApp,this._viewerPages=e.viewerPages,this._user=e.user,this._userInfo=e.userInfo,this._monitors=e.monitors,this._configManager=e.config,this._searchManager=e.searchManager,this._res=e.res,this._viewerViews=e.viewerViews,this._viewerNames=e.viewerNames,this._monitorsLoader=e.monitorsLoader,this._bookmarksLoader=e.bookmarksLoader,this._eventManager=e.eventManager,this._searchMenu=e.searchMenu,this._searchCatalogMenu=e.searchCatalogMenu,this._viewsConfig=[]}return e.prototype.getSearchParams=function(){return this._searchManager.getSearchParams()},Object.defineProperty(e.prototype,"_globalConfig",{get:function(){return{showLogo:this._configManager.get("ui.TopToolbar.DisplayLogo",!0),clickableLogo:this._configManager.get("ui.TopToolbar.ClickableLogo",!0),logoUrl:this._configManager.get("ui.TopToolbar.LogoUrl",""),openLogoUrlInNewTab:this._configManager.get("ui.TopToolbar.OpenLogoUrlInNewTab",!1),topBarPublicationsDropdown:this._configManager.get("ui.TopToolbar.TopBarPublicationsDropdown",!1),showSearch:this._configManager.get("ui.TopToolbar.SearchEnabled",!0),signInEnabled:this._configManager.get("ui.TopToolbar.SignInEnabled",!0),actionMenuEnable:this._configManager.get("ui.TopToolbar.ConfigActionMenuEnabled",!1),showLogonName:this._configManager.get("ui.TopToolbar.ShowLogonName",!1),showIssueDate:this._configManager.get("ui.TopToolbar.ShowIssueDate",!0)}},enumerable:!1,configurable:!0}),e.prototype._initUser=function(){var e=this;this._eventManager.trigger("userLoginStateChanged",this,this._user.isLogin()),this._user.isLogin()&&this._userInfo.load(!0).then((function(){e._eventManager.trigger("userInfoChanged",e,e._getUserInfo())}))},e.prototype._getUserInfo=function(){return{photo:{url:this._userInfo.photo.url},nickName:this._userInfo.nickName}},e.prototype._setHeader=function(e){var t=this;(0,o.isObservable)(e)&&(e.subscribe((function(n){var i=t._res.val(n)||n;e={title:i,config:t._config},t._eventManager.trigger("headerChanged",t,e)})),e=e()),"string"==typeof e?e={title:e,config:this._config}:e.config=this._config,this._eventManager.trigger("headerChanged",this,e)},e.prototype._hasCustomHeader=function(e){return e===this._viewerNames.TextView||e===this._viewerNames.Home||e===this._viewerNames.PagesView||e===this._viewerNames.Bookmarks||e===this._viewerNames.Monitors||e===this._viewerNames.ReadingMap},e.prototype._getCid=function(){return new Promise((function(e,t){var n=l.A.cid();n?e(n):l.A.issueLoaded((function(){(n=l.A.cid())?e(n):t()}))}))},e.prototype._setConfig=function(e){var t=this;this._config=(0,a.extend)({},d,this._viewsConfig[e]||{}),this._config.showTitle=e!==this._viewerNames.Home,(0,a.forEach)(this._globalConfig,(function(e,n){t._config[n]=t._globalConfig[n]&&e})),this._hasCustomHeader(e)||this._res.loaded().then((function(){t._setHeader(t._res.val(t._config.header)||t._config.header)})),e===this._viewerNames.PagesView&&this._getCid().then((function(e){c.A.load(e).then((function(){var e=c.A.getData();t._config.enableFullDateView=e.EnableFullDateView,t._config.isTitleDisabled=!e.EnableCalendarView&&!e.EnableListView})).finally((function(){t._setNewspaperInfo()}))})),this._eventManager.trigger("configChanged",this,this._config)},e.prototype._setTopicHeader=function(e,t){var n=this;t&&t.params&&t.params.id?this._monitors.get().then((function(e){var i=(0,a.find)(e,(function(e){return e.id===t.params.id}));i&&n._setHeader((0,u.a)(i.searchTerm))})):this._res.loaded().then((function(){n._setHeader(n._res.val(n._config.header))}))},e.prototype._setBookmarkHeader=function(){var e=this;return function(t){t.collectionId?(0,s.jT)(t.profileId).then((function(e){var n=(0,a.find)(e,(function(e){return e.id===t.collectionId}));return!n&&t.currentIssueInfo&&t.currentIssueInfo.cid?(0,s.bG)(t.currentIssueInfo.cid).then((function(e){return(0,a.find)(e,(function(e){return e.id===t.collectionId}))})):n})).then((function(t){t&&e._setHeader((0,u.a)(t.name))})):e._setHeader(e._res.val("ReadLater"))}},e.prototype._setNewspaperInfo=function(){var e=this._currentViewName,t=e===this._viewerNames.PagesView||e===this._viewerNames.TextView;if(this._viewerApp&&t){var n=this._viewerApp.contentName();this._setHeader({issueDate:this._viewerApp.issueDate(),issueName:n||""})}},e.prototype._setSearchMenu=function(e){var t=this;e&&(e===this._viewerNames.StoreHub?this._res.loaded().then((function(){t._eventManager.trigger("searchMenuChanged",t,{menu:t._searchCatalogMenu,placeholder:t._res.val("TopToolbar.Placeholder.SearchPublications"),query:""})})):this._eventManager.trigger("searchMenuChanged",this,{menu:this._searchMenu,query:this._searchText||""}))},e.prototype._activeViewChangingHandler=function(e,t){this._currentViewName=t,t!==this._viewerNames.Radio&&this._setConfig(t),this._monitorsLoader.offSearch(this._setTopicHeader.bind(this)),t===this._viewerNames.Monitors?this._monitorsLoader.onSearch(this._setTopicHeader.bind(this)):t===this._viewerNames.Bookmarks?this._bookmarksLoader.setTopBarTitleHandler(this._setBookmarkHeader()):t!==this._viewerNames.PagesView&&t!==this._viewerNames.TextView||this._setNewspaperInfo(),this._setSearchMenu(t)},e.prototype._calendarUpdatedHandler=function(e,t){this._currentViewName&&this._setConfig(this._currentViewName)},e.prototype.init=function(){var e=this;this._eventManager.trigger("userInfoChanged",this,this._getUserInfo()),this._viewerPages.loadedChange(this._setNewspaperInfo.bind(this)),this._initUser(),this._user.onUserStateChanged(this._initUser.bind(this)),this._searchManager.onSearch((function(t,n){e._searchText=n.query,e._eventManager.trigger("search",e,n.query)}));var t=this.getSearchParams();(0,a.isEmpty)(t)||(this._searchText=t.query,this._eventManager.trigger("search",this,t.query)),this._viewerViews.activeViewChanging(this._activeViewChangingHandler.bind(this)),this._eventManager.bind(c.A,c.A.calendarUpdatedEvent,null,this._calendarUpdatedHandler.bind(this)),this._configManager.onConfigUpdated((function(){e._eventManager.trigger("configChanged",e,e._config)}))},e.prototype.registerView=function(e,t){this._viewsConfig[e]=t},e.prototype.onUserInfoChanged=function(e){this._eventManager.bind(this,"userInfoChanged",null,e)},e.prototype.onConfigChanged=function(e){this._eventManager.bind(this,"configChanged",null,e)},e.prototype.onHotZoneStateChanged=function(e){this._eventManager.bind(this,"hotZoneStateChanged",null,e)},e.prototype.onSearch=function(e){this._eventManager.bind(this,"search",null,e)},e.prototype.onUserLoginStateChanged=function(e){this._eventManager.bind(this,"userLoginStateChanged",null,e)},e.prototype.onHeaderChanged=function(e){this._eventManager.bind(this,"headerChanged",null,e)},e.prototype.onSearchMenuChanged=function(e){this._eventManager.bind(this,"searchMenuChanged",null,e)},e}(),f=n(29392),p=n(62444);function m(e){r.nd.ui.menu.items.controllers.base.apply(this,arguments),e.model.onHide((function(){e.hide()})),e.model.onResize((function(){e.menu().resize()}))}function g(e,t){this._menu=new r.nd.ui.menu.view(this),this._templateName=t,this.controller=null,this.model=e}n(91552),n(20847),n(60713),r.extend(m.prototype,r.nd.ui.menu.items.controllers.base.prototype,{available:function(){return!0},enabled:function(){return!0},load:function(e){this._parent.model.load(e)},model:function(){return this._parent.model}}),r.extend(g.prototype,r.nd.ui.menu.controllers.base.prototype,{_renderer:null,renderer:function(){return this._renderer||(this.controller=new m(this),this._renderer=new r.nd.ui.menu.renderers.custom(this.controller,this._templateName)),this._renderer},showUpdated:function(e,t){this.show(e),this.controller&&this.controller.load(t)},hide:function(){r.nd.ui.menu.controllers.base.prototype.hide.apply(this,arguments),r(this).trigger("close")}});var v=g,y=n(69851),_=n(43150),b=function(){function e(e){var t=e.getScrollElement,n=e.getItemsElements,i=e.getSelectedElement,r=e.getSelectedActionElement,o=e.selectedClassName,s=e.mouseTrackingSelector;if(!(0,a.isFunction)(t))throw new Error("getScrollElement is not defined");if(!(0,a.isFunction)(n))throw new Error("getItemsElements is not defined");if(!(0,a.isFunction)(i))throw new Error("getSelectedElement is not defined");if(!(0,a.isFunction)(r))throw new Error("getSelectedActionElement is not defined");if(!(0,a.isString)(o))throw new Error("selectedClassName is not defined");this._getScrollElement=t,this._getItemsElements=n,this._getSelectedElement=i,this._getSelectedActionElement=r,this._selectedClassName=o,this._lastMouseSelectionIndex=-1,this._mouseTrackingSelector=s,this._mouseTrackingEnabled=!1,this._keyboardMap=this._buildKeyboardMap()}return e.prototype._buildKeyboardMap=function(){var e,t=this;return(e={})[_.u.up]=function(){return t.selectUp(),!0},e[_.u.down]=function(){return t.selectDown(),!0},e[_.u.enter]=function(){return!!t.hasSelectedItem()&&(t.invokeSelectedAction(),!0)},e},e.prototype._getItems=function(){return this._getItemsElements()},e.prototype._unselect=function(e){r(e).removeClass(this._selectedClassName)},e.prototype._select=function(e,t){if(void 0===t&&(t=!0),r(e).addClass(this._selectedClassName),t){var n=this._getScrollElement();(0,y.$v)(n[0],r(e)[0])}},e.prototype._getItemIndex=function(e){return this._getItems().index(e)},e.prototype._getSelectedIndex=function(){var e=this.getSelected();if(e.length){if(-1===this._lastMouseSelectionIndex)return this._getItemIndex(e);this.clearSelection()}if(-1!==this._lastMouseSelectionIndex){var t=this._lastMouseSelectionIndex;return this._lastMouseSelectionIndex=-1,t}return-1},e.prototype.getSelected=function(){return this._getSelectedElement(this._getItems())},e.prototype.hasSelectedItem=function(){return this.getSelected().length>0},e.prototype.selectUp=function(){var e=this._getItems(),t=this._getSelectedIndex();t>0?(this._unselect(e[t]),this._select(e[t-1])):0===t&&this._unselect(e[t]),this._suspendMouseSelectionTillMouseMove()},e.prototype.selectDown=function(){var e=this._getItems(),t=this._getSelectedIndex();t0}))).subscribe((function(e){t.searchQuery===n&&((0,a.forEach)(e,(function(e){var n=e.result,i=e.renderer;i&&i.apply(t,[n])})),w.A.trigger("onresize",t))}),H.A.error)}},e.prototype.onHide=function(e){w.A.bind(this,"onhide",null,e)},e.prototype.onResize=function(e){w.A.bind(this,"onresize",null,e)},e.prototype.reset=function(){w.A.trigger("onhide",this),this._resetData(),this.searchQuery=""},e.prototype._resetData=function(){var e=[this.sourceItems];(0,a.forEach)(e,(function(e){return e.removeAll()}))},e.prototype._loadHistoryItems=function(e){return D.A.load(e,3,this.historyType)},e.prototype._renderHistoryItems=function(e){this.historyItems((0,a.map)(e,(function(e){return new z(e)})))},e.prototype._loadSourceItems=function(e){return(0,V.Px)({filters:{text:e},limit:5,orderBy:{name:L.Xy.SearchRank,order:R.T.Descending}})},e.prototype._renderSourceItems=function(e){var t=e&&e.items?(0,a.map)(e.items,(function(e){return new U(e)})):[];this.sourceItems(t)},e.prototype.wasShown=function(){},e.prototype.wasHidden=function(){},e}(),J=new C(new K,"v7.Client.Menu.Search"),Q=n(82230),Z=n(26637),$=new C(new(function(e){function t(){var t=e.call(this)||this;return t.initialView=void 0,t.historyType=F.Ay.searchArea.Catalog,t}return(0,i.C6)(t,e),t.prototype.search=function(e){this._saveSearch(),Z.A.filter(e),w.A.trigger("onhide",this)},t.prototype.load=function(t){e.prototype.load.call(this,t),t=(0,a.trim)(t),(0,a.isEmpty)(t)&&!this.initialView&&(this.initialView=Z.A.currentView()),Z.A.filter(t,this.initialView)},t.prototype._saveSearch=function(){(0,a.isEmpty)(this.searchQuery)||Q.A.post("catalog","history",{pattern:this.searchQuery})},t.prototype.wasHidden=function(){e.prototype.wasHidden.call(this),this.initialView=void 0},t}(K)),"v7.Client.Menu.Search"),ee=n(29323),te=n(10730),ne=n(54267),ie=n(44260),re=n(53236),oe=n(86699),ae=n(10358),se=n(47287),ue=n(19939),ce=n(88813),le=n(3585),de=n(41396),he=n(90006),fe=n(6698),pe=n(47912),me=n(45393),ge=n(72167),ve=n(22537),ye=n(54580),_e=n(94529),be=n(96587),we=n(20680),Ce=n(55383),Ae=function(){function e(e,t,n){var r=this;this.dialog=e,this._statesStack=[],this.hasInitialData=(null==n?void 0:n.length)>0,this._publicationsInternal=(0,i.fX)([],(0,i.zs)(n),!1),this.states=Object.freeze({publications:0,supplements:1}),this.state=o.observable(this.states.publications),this.categories=o.observableArray([]),this.publicationsSortByRankEnabled=o.observable(t.get("ui.Catalog.SortToolbar.popularSortEnable",!0)),this.publications=o.observableArray(n||[]),this.publicationsHeader=o.observable(""),this.sortBy=o.observable(),this.sortOrder=o.observable(),this.searchText=o.observable("").extend({rateLimit:{timeout:300,method:"notifyWhenChangesStop"}}),this.searchText.subscribe((function(e){return r._publicationsModel&&r._publicationsModel.search(e)})),this.hasMorePublications=o.observable(!0),this.loadMorePublications=(0,a.throttle)((function(){r._publicationsModel&&r._publicationsModel.hasMore()&&r._publicationsModel.getMore(),r.hasMorePublications(r._publicationsModel.hasMore())}),500),this.init()}return e.prototype._pushState=function(){var e={state:this.state(),publications:this._publicationsInternal,publicationsAdapter:this._publicationsModel,publicationsHeader:this.publicationsHeader(),searchText:this.searchText()};this._statesStack.push(e)},e.prototype._popState=function(){var e=this._statesStack.pop();if(!e)throw new Error("Unexpected use: states stack is empty");this.state(e.state),this.publications(e.publications),this.publicationsHeader(e.publicationsHeader),this._publicationsInternal=e.publications,this._publicationsModel=e.publicationsAdapter,this.searchText(e.searchText)},e.prototype.close=function(){this.dialog.hide()},e.prototype.enterSupplementsState=function(e){this._pushState(),this.state(this.states.supplements);var t=(0,i.fX)([e],(0,i.zs)(e.supplements),!1);this.publications(t),this.publicationsHeader(e.name),this._publicationsInternal=t,this.searchText(""),this.init()},e.prototype.exitSupplementsState=function(){this._popState(),this.init()},e.prototype.sortPublications=function(e){e===this.sortBy()?this.sortOrder((0,R.L)(this.sortOrder())):(this.sortBy(e),this.sortOrder(L.sv[e])),this._publicationsModel.sort(this.sortBy(),this.sortOrder())},e.prototype.selectPublication=function(e){this.state()===this.states.publications&&e.hasSupplements?this.enterSupplementsState(e):(N.A.showIssue(e.latestIssue.key),this.close())},e.prototype.init=function(){var e=this.sortBy()?{name:this.sortBy(),order:this.sortOrder()}:void 0;this._publicationsModel=new ye.A({target:this.publications,source:(0,i.fX)([],(0,i.zs)(this._publicationsInternal),!1),pageSize:20,orderBy:e}),this._publicationsModel.search(this.searchText())},e}(),Ie={show:function(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,r,s,u,c,l,d,h;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,5,6]),Ce.Ay.show(),[4,q.A.loaded()];case 1:return i.sent(),[4,(0,V.Px)({filters:{cids:[e]}})];case 2:if(0===(t=i.sent()).meta.totalCount)throw new Error("Publication not found");return n=t.items[0].categories.filter((function(e){return e>0})),r={name:L.Xy.Rank,order:L.xB.Descending},s=!1,u=n.length>0?{filters:{hasCategories:[n[0]],isSupplement:s},orderBy:r}:{filters:{mainCid:q.A.get("catalog.MasterCid",""),isSupplement:s},orderBy:r},[4,(0,V.Px)(u)];case 3:return c=i.sent(),(l=be.default.createInstance()).onHide((function(){o.safeCleanNode(l.htmlRoot()[0])})),d=new Ae(l,q.A,(0,a.map)(c.items,(function(e){return new _e.A(e)}))),l.show({templateName:"v7.Client.Dialogs.Category",model:d,height:"100%"}),[2,l];case 4:return h=i.sent(),(0,we.logError)(h),[3,6];case 5:return Ce.Ay.hide(),[7];case 6:return[2]}}))}))}},Se=n(4497),Pe="#toolbarSearchPanel input[type=text]",xe=function(e){return e.stopImmediatePropagation()};function Te(e){return e?e.elm().height():0}function ke(e,t){return{x:function(){return r.windowWidth()-t},y:Te(e),align:{y:p.W.ScreenTop,x:p.W.ScreenRight}}}function Ee(e){var t=E.A.getActiveViewName();se.x.highlightTextInView(t,e)}var Me=function(){var e=new h({viewerApp:l.A,viewerPages:l.A.pages,user:oe.A,userInfo:re.default,bookmarks:le,monitors:te.u,config:q.A,res:ie.Ay,searchManager:X.c,textHighlighter:se.x,viewerViews:E.A,viewerNames:M.lP,monitorsLoader:ue.Ay.monitors,bookmarksLoader:ne.A,eventManager:w.A,searchMenu:J,searchCatalogMenu:$}),t=function(e){var t,n={_topbarProvider:e.provider,container:void 0,newspaperName:o.observable(""),showNewpaperName:o.observable(!1),monitorName:o.observable(""),showMonitorName:o.observable(!1),bookmarkName:o.observable(""),showBookmarkName:o.observable(!1),publicBookmarkName:o.observable(""),showPublicBookmarkName:o.observable(!1),showTitle:o.observable(!0),showLogo:o.observable(!0),clickableLogo:o.observable(!0),topBarPublicationsDropdown:o.observable(!1),logoUrl:o.observable(""),logoUrlTarget:o.observable(""),signInEnabled:o.observable(!0),searchEnabled:o.observable(!1),isTopBarMainMenuEnabled:o.observable(!0),isHomeView:o.observable(!1),issueDate:o.observable(null),isLogin:o.observable(oe.A.isLogin()),nickName:o.observable(re.default.nickname),email:o.observable(re.default.email),photo:o.observable(re.default.photo),avatar:o.observable((0,ae.tr)({nickname:re.default.nickname,imageId:re.default.avatarImageId,size:ae.eV.normal,fallbackAvatarUrl:re.default.photo.url})),newspapersCount:o.observable(0),countEnable:o.observable(!1),sourceButtonTitle:o.observable(""),searchText:o.observable("").extend({maxLength:ee.A.searchTextMaxLength}),searchFocused:o.observable(!1),searchInputZIndex:o.observable("3"),configPublication:o.observable(""),configCalendar:o.observable(""),configHeader:o.observable(""),configHeaderClass:o.observable(""),configBackEnable:o.observable(!0),configUserInfoEnable:o.observable(!0),configActionMenuEnable:o.observable(!1),configTitleEnable:o.observable(!1),configHomeButtonEnable:o.observable(!0),configMainMenu:o.observable(),configMainMenuEnabled:o.observable(!0),actionMenuOptions:o.observable([]),generalMenuOptions:o.observable([]),isTitleDisabled:o.observable(!1),isMainMenuEnabled:o.observable(!0),homeButtonEnable:o.observable(!1),topNewsButtonVisible:o.observable(!0),_hotZoneButtonVisible:o.observable(!1),addOpinionButtonVisible:o.observable(!1),newPostButtonVisible:o.observable(!1),hotZoneButtonClass:o.observable(!1),searchPlaceholder:o.observable(),actionMenuController:o.observable(),showSearch:o.observable(!0),showPostButton:o.observable(!1),hideHotZoneButton:o.observable(!1),postAction:null,isPostDisabled:o.observable(!1),enableFullDateView:o.observable(!0),hotZoneButtonClick:a.noop,addOpinionButtonClick:a.noop,newPostButtonClick:function(){return k.A.goView(M.lP.Post,null,null,!0)},showSidebar:function(){return pe.A.show()},showTopNews:function(){return k.A.goView(M.lP.TopNews,null,null,!0)},toolbarSetup:function(e){return fe.A.toolbarSetup(e)},goHome:function(){return window.location.href=window.basePath},mousedownReset:function(){return!1},signIn:function(){return ge.default.signIn()},onLayoutResize:function(e){return ve.Ay.root().resize(e)},onViewChanged:function(e){return E.A.activeViewChanged(e)},back:function(){return k.A.historyProvider.back()},onResize:function(e){return r(n).on("onresize",e)},onFocusChanged:function(e){return r(n).on("onfocuschanged",e)},showAccountMenu:function(){return de.A.show({position:ke(n.container,50)})}};n.displayNewspapersCount=o.pureComputed((function(){var e=n.sourceButtonTitle();return n.countEnable()&&n.newspapersCount()&&(e="".concat(e," ( ").concat(n.newspapersCount()," )")),e})),n.displayNickName=o.pureComputed((function(){return n.isLogin()?q.A.get("ui.TopToolbar.ShowLogonName",!1)?n.email():n.nickName():""})),n.displayHeader=o.pureComputed((function(){return n.configHeader()})),n.displayPublication=o.pureComputed((function(){return n.configPublication()})),n.displayCalendar=o.pureComputed((function(){return n.configCalendar()})),n.showHomeView=function(){return window.location.href=window.basePath},n.showPublications=function(){return Ie.show(l.A.cid())},n.showMainMenu=function(){var e,t=E.A.getActiveViewName();if(t===M.lP.TextView||t===M.lP.PagesView){var i=new f.Ay.controllers.singleItem;i.itemsControllerCTOR(f.Ay.items.controllers.get("issueDate")).itemsControllerParams([i]),i.show({position:(e=n.container,{y:Te(e),align:{y:p.W.ScreenTop,x:p.W.ScreenCenter}})})}me.A.toggleView()};var i=function(e){n.searchMenuHandler.showUpdated({name:"search-menu",position:{x:function(){return r.windowWidth()-20},y:function(){return Te(n.container)},align:{x:function(){return p.W.ScreenRight},y:p.W.ScreenTop}}},e)};return n.showSearchMenu=function(e,t){n.searchMenuHandler&&(n.searchMenuHandler.navigation.clearSelection(),r(n.searchMenuHandler).one("close",n.searchInputBlur));try{t&&t.currentTarget&&t.currentTarget.select&&n._selectSearchText&&(t.currentTarget.select(),n._selectSearchText=!1)}catch(e){}i(n.searchText());var o=r(Pe).first();if(o.focus(),!n.searchFocused()){var a=n.searchText();o[0].setSelectionRange(a.length,a.length),o.data("allow-default",!0),o.data("allow-move-default",!0),o.data("ms-pointer-down-allow-default",!0)}o.bind("contextmenu",xe),n.searchInputZIndex("2000"),n.searchFocused(!0),r(n).trigger("onfocuschanged")},n.search=function(){t&&(t=clearTimeout(t)),n.searchMenuHandler.hide(),n.searchMenuHandler.model.search(n.searchText())},n.onSearchInputBlur=function(){n.searchMenuHandler&&n.searchMenuHandler.navigation.clearSelection()},n.searchKeyDown=function(e,i){return!n.searchMenuHandler||!n.searchMenuHandler.navigation.handleKeyboardEvent(e,i)||(t&&(t=clearTimeout(t)),!1)},n.searchKeyUp=function(e,r){t&&(t=clearTimeout(t));var o={};return o[_.u.enter]=function(){return!1},o[_.u.esc]=function(){return n.searchReset(),n.searchMenuHandler.hide(),!1},o[_.u.up]=o[_.u.down]=function(){return!1},o[r.which]?o[r.which](e,r):(t=setTimeout((function(){n.searchText()?(Ee(n.searchText()),i(n.searchText())):n.searchReset()}),500),!0)},n.searchInputBlur=function(){t&&(t=clearTimeout(t),Ee(n.searchText())),n._selectSearchText=!0,n.searchInputZIndex("3");var e=r(Pe).first();e.blur(),e.data("allow-default",!1),e.data("allow-move-default",!1),e.data("ms-pointer-down-allow-default",!1),e.unbind("contextmenu",xe),n.searchFocused(!1),r(n).trigger("onfocuschanged")},n.searchReset=function(){n.searchText(""),n._topbarProvider._searchText="",Ee(""),n.showSearchMenu()},n.cancelClick=function(){n.searchMenuHandler.hide(),n.searchInputBlur()},n.showActionMenu=function(){n.actionMenuController().show({position:ke(n.container,20),options:n.actionMenuOptions(),generalOptions:n.generalMenuOptions(),title:n.showNewpaperName()?n.newspaperName():n.configHeader()})},n.post=function(){return(0,a.isFunction)(n.postAction)&&n.postAction(),!1},n.hotZoneButtonVisible=o.pureComputed((function(){return n._hotZoneButtonVisible()&&!n.hideHotZoneButton()})),n}({provider:e}),n=function(){t.nickName(re.default.nickname),t.photo(re.default.photo),t.email(re.default.email),t.avatar((0,ae.tr)({nickname:re.default.nickname,imageId:re.default.avatarImageId,size:ae.eV.normal,fallbackAvatarUrl:re.default.photo.url})),r(t).trigger("onresize")},s=function(e,n){n&&(t.configHeaderClass(n.headerClass),t.configBackEnable(n.backEnable),t.configUserInfoEnable(n.userInfoEnable),t.configActionMenuEnable(n.actionMenuEnable),t.configTitleEnable(n.titleEnable),t.showLogo(n.showLogo),t.signInEnabled(n.signInEnabled),t.searchEnabled(n.showSearch),t.clickableLogo(n.clickableLogo),t.logoUrl(n.logoUrl),t.logoUrlTarget(n.openLogoUrlInNewTab?"_blank":""),t.topBarPublicationsDropdown(n.topBarPublicationsDropdown),t.configHomeButtonEnable(n.homeButtonEnable),t.configMainMenu(n.mainMenuOptions),t.configMainMenuEnabled(void 0===n.configMainMenuEnabled||n.configMainMenuEnabled),t.showNewpaperName(n.showNewpaperName),t.showMonitorName(n.showMonitorName),t.showBookmarkName(n.showBookmarkName),t.showPublicBookmarkName(n.showPublicBookmarkName),t.showTitle(n.showTitle),t.isHomeView(n.isHomeView),t.actionMenuOptions(n.actionMenuOptions||[]),t.generalMenuOptions(n.generalMenuOptions||[]),t.isTitleDisabled(n.isTitleDisabled),t.isMainMenuEnabled(void 0!==n.isMainMenuEnabled?n.isMainMenuEnabled:he.A.isCompactScreen()),t.addOpinionButtonVisible(!1),t.actionMenuController(n.actionMenuController||Se.h),t.showSearch(n.showSearch),t.showPostButton(n.showPostButton),t.hideHotZoneButton(n.hideHotZoneButton),t.isPostDisabled(n.isPostDisabled),t.newPostButtonVisible(n.newPostButtonVisible),t.postAction=n.postAction,r(t).trigger("onfocuschanged",n.actionMenuEnable))},u=function(e,n){if(n.issueName){t.newspaperName(n.issueName),t.enableFullDateView(!!n.config.enableFullDateView);var o=n.issueDate,a=n.issueName,s=n.config.showIssueDate;if(o&&s){if(!1===n.config.enableFullDateView){var u=(0,i.zs)(o.split(" "));u[0],o=u.slice(1).join(" ")}t.configHeader("".concat(a," ").concat(o," "))}else t.configHeader(a);t.configPublication(a),t.configCalendar("".concat(o," "))}else n.config&&n.config.locationName?(t.configHeader("".concat(n.config.locationName," ").concat(n.title," ")),t.configPublication(n.config.locationName)):(t.configHeader(n.title),t.configPublication(n.title));r(t).trigger("onresize")},c=function(e,n){t.searchPlaceholder(n.placeholder),t.searchMenuHandler=n.menu,t.searchText(n.query)},d={model:t,showSearchMenu:function(){return t.searchReset()},searchMenuText:function(e){e&&t.searchText(e)},resetSearchText:function(){t.searchText("")},getSearchText:function(){return t.searchText()},enableActionMenu:function(e){t.configActionMenuEnable(e),r(t).trigger("onresize")},update:function(e){(0,a.isFunction)(e)&&e(t)},registerView:function(t,n){return e.registerView(t,n)},show:function(i){t.container=i,re.default.updates.subscribe(n),e.onConfigChanged(s),e.onSearch((function(e,t){return d.searchMenuText(t)})),e.onUserLoginStateChanged((function(e,n){return t.isLogin(n)})),e.onHeaderChanged(u),e.onSearchMenuChanged(c),e.init(),Promise.all([q.A.loaded(),ce.A.loaded()]).then((function(){q.A.get("features.app.mobileview.supported",!1)&&q.A.get("features.app.header.enabled",!1)||ce.A.renderTo("v7.Client.ToolbarTop",t,i.elm())})).finally((function(){i.oncontentchanged&&i.oncontentchanged()}))}},m=function(){d.resetSearchText(),se.x.highlightTextInView(M.lP.PagesView,"")};return w.A.bind(J,"resetsearch",null,m),w.A.bind($,"resetsearch",null,m),E.A.activeViewChanged((function(e,t){t!==M.lP.FTSArticles&&se.x.highlightTextInView(t,d.getSearchText())})),d}();r.nd.viewer.topBar=Me;var De=Me.show.bind(Me),Ne=Me.showSearchMenu.bind(Me),Le=Me.searchMenuText.bind(Me),Ve=Me.resetSearchText.bind(Me),Re=Me.getSearchText.bind(Me),He=Me.enableActionMenu.bind(Me),Fe=Me.update.bind(Me),Be=Me.registerView.bind(Me),ze=Me},95853:function(e,t,n){"use strict";n.r(t),n.d(t,{purchase:function(){return I},purchasearchive:function(){return S}});var i=n(58932),r=n(12010),o=n(13302),a=n(43125),s=n(57230),u=n(89247),c=n(27189),l=n(11261),d=n(96587),h=n(55683),f=n(65674),p=n(20680),m=n(69216),g=n(74949),v=n(84215),y=n(68092),_=n(94615),b={subscription:0,issue:1,bundle:2},w=["AU","CA","US"];function C(e){var t=void 0===e?{}:e,n=t.requestedContent,i=void 0===n?{}:n,o=t.purchaseInfo,a=void 0===o?{}:o,u=t.isArchive;return new Promise((function(e,t){var n=d.default.createInstance(),o=function(e){var t=e.requestedContent,n=e.purchaseInfo,i=e.dialog,o={main:0,confirm:1,allProducts:2},a={states:o,isArchive:e.isArchive,requestedContent:t,currentState:r.observable(),billingInfo:n.BillingInfo,products:r.observableArray(n.Products),selectedProduct:r.observable(),basketInfo:r.observable(null),currentSubscriptionMode:n.CurrentSubscriptionMode,currentSubscriptionBalance:n.CurrentSubscriptionBalance,currentSubscriptionProductId:n.CurrentSubscriptionProductId,issueProducts:r.observableArray(n.Products.filter((function(e){return e.Type===b.issue}))),subscriptionProducts:r.observableArray(n.Products.filter((function(e){return e.Type===b.subscription}))),allSubscriptionProducts:r.observableArray((n.AllProducts||[]).filter((function(e){return e.Type===b.subscription&&e.Price&&e.Price.Value}))),isSubmitting:r.observable(!1),isBillingInfoValid:r.observable(null!=n.BillingInfo),submit:function(e){if(e.billingInfo){var t=e.billingInfo.CountryCode,n=e.billingInfo.RegionCode;if(t&&w.indexOf(t)>=0&&!n)return a.isBillingInfoValid(!1),void(0,p.alertError)({resourceKey:"Dialogs.Purchase.Validation.RegionRequiredErrorMessage"});e.isSubmitting(!0),f.A.checkoutWithConfirmation({promoCode:void 0}).then((function(e){g.T.handle(v._.Finish,e.OrderId),i.hide(h.d.Ok)})).catch((function(){return(0,p.logAndAlertError)({resourceKey:"Checkout.DeclinedMessage"})})).finally((function(){return e.isSubmitting(!1)}))}},close:function(){i.hide(h.d.Cancel)},selectProduct:function(e){a.selectedProduct(e),e.id!==a.currentSubscriptionProductId&&(0,s.Q3)({id:e.Id,type:e.Type,issue:t.issueId,articleId:t.articleId}).then((function(){a.selectedProduct(e),a.currentState(o.confirm),(0,s.Zn)().then((function(e){a.basketInfo(e.Basket),i.resize()}))})).catch(p.logError)},backIsVisible:function(){return a.currentState()!==o.main},back:function(){return a.backIsVisible()?(a.currentState(o.main),i.resize()):a.close()},changeProduct:function(){a.currentState(o.main),i.resize()},changeBillingInfo:function(){var e="";a.requestedContent&&(a.requestedContent.issueId&&(e+="&RequestedContent.issueId=".concat(a.requestedContent.issueId)),a.requestedContent.articelId&&(e+="&RequestedContent.articleId=".concat(a.requestedContent.articelId))),a.selectedProduct()&&(e+="&preselectedproduct.id=".concat(a.selectedProduct().Id),e+="&preselectedproduct.type=".concat(a.selectedProduct().Type)),l.A.redirect("".concat(window.basePath,"Accounting/Payment/?GoToStep=2").concat(e))},showAllProducts:function(){a.currentState(o.allProducts),i.resize()}};return a.currentState.subscribe((function(e){switch(e){case o.main:g.T.handle(v._.SubscriptionPlans);break;case o.confirm:g.T.handle(v._.PaymentInformation);break;default:throw new Error("Current State ".concat(e," Not Implemented"))}})),a.currentState(o.main),a}({dialog:n,requestedContent:i,purchaseInfo:a,isArchive:u}),c={templateName:"v7.Client.Dialogs.Purchase",model:o,name:"PurchaseDialog"};n.onHide((function(n,i){return i.status===h.d.Ok?e(i.context):t({userCancelled:!0})})),n.show(c)}))}function A(e){var t=e||"".concat((0,u.DT)(),"Accounting/UpgradeSubscription/");return window.location.assign(t),Promise.reject("Redirecting to Upgrade Subscription page at ".concat(t))}function I(e){var t=c.A.get("Authentication.EnablePublisherAuthenticationWebService",!1),n=c.A.get("Authentication.ExternalUpgradeSubscriptionPage",null);return n&&(n=n.replace("__CID__",(0,a.qT)(e.issueId)).replace("__ISSUEDATE__",(0,a.ph)(e.issueId))),t&&n?A(n):function(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,m.D)()];case 1:return[2,(null==(e=t.sent())?void 0:e.purchaseDialogEnabled)?e.showPurchaseDialog:null]}}))}))}().then((function(t){return"function"==typeof t?t():(0,y.z)().then((function(t){return t?(0,s.q6)(e).then((function(i){switch(t.subscriptionMode){case _.Dm.Bundle:return A(n);case _.Dm.SingleCopy:return C({requestedContent:e,purchaseInfo:i,isArchive:!1});default:var r=t.isAdditionalIssuesAllowed&&i.Products.length>0;return(0,o.isEmpty)(i.CurrentSubscriptionProductId)||0===t.subscriptionBalance&&!r?A(n):C({requestedContent:e,purchaseInfo:i,isArchive:!1})}})):A(n)}))}))}function S(e){return(0,s.SG)(e).then((function(t){return C({requestedContent:e,purchaseInfo:t,isArchive:!0})}))}t.default={purchase:I,purchasearchive:S}},74638:function(e,t,n){"use strict";n.d(t,{EL:function(){return f},Nn:function(){return p},qJ:function(){return h}});var i,r=n(58932),o=n(45221),a=n(89885),s=n(60588),u=n(53477),c=n(20165),l=n(80539),d=((i={})[a._l.article]={getDirectLink:function(e){return(0,c.Au)(e.articleId)},shareByEmail:function(e,t){return(0,l.Tv)(e.articleId,t)}},i[a._l.page]={getDirectLink:function(e){return(0,s.dW)({issueKey:e.issue,pages:e.pageNumbers||[e.page]}).then((function(e){return(0,u.$n)(e.id)}))},shareByEmail:function(e,t){return(0,s.dW)({issueKey:e.issue,pages:e.pageNumbers||[e.page]}).then((function(e){return(0,l.Kg)(e.id,t)}))}},i[a._l.pageSet]={getDirectLink:function(e){return(0,u.$n)(e.pageSetId)},shareByEmail:function(e,t){return(0,l.Kg)(e.pageSetId,t)}},i[a._l.comment]={getDirectLink:function(e){return(0,c.Au)(e.articleId).then((function(t){return{url:"".concat(t.url,"/").concat(e.commentKey)}}))}},i);function h(e){if(!e)return Promise.reject("context not specified");var t=d[e.contentType];return t?t.getDirectLink(e).then((function(e){return t=e.url,n=new o.A(t),i=new o.A(window.location.href),n.path(window.basePath.replace(/\/$/,"")+n.path()),n.protocol(i.protocol()),n.host(i.host()),decodeURIComponent(n.toString());var t,n,i})):Promise.reject("unknown content type")}function f(e){if(!e)return!1;var t=d[e.contentType];return!(!t||!t.shareByEmail)}function p(e,t){if(!e)return Promise.reject(new Error("context not specified"));var n=d[e.contentType];return n&&n.shareByEmail?Promise.all((0,r.fX)([],(0,r.zs)(t.to),!1).map((function(i){var o=(0,r.Cl)((0,r.Cl)({},t),{to:[i]});return n.shareByEmail(e,o)}))):Promise.reject(new Error("unknown content type"))}},71484:function(e,t,n){"use strict";var i=n(73690),r=n(95853),o=n(58932),a=n(94615),s=n(17065),u=n(13384),c=n(46977),l=n(55683),d=n(68092),h=n(41434),f=n(44260),p=n(1943);(0,i.s)("ArchivedIssueBuyingRequired",(function(e){var t={};return e.Parameters&&(t.articleId=e.Parameters.articleId,t.issueId=e.Parameters.issueId),(0,r.purchase)(t)}),!0),(0,i.s)("ConfirmationRequired",(function(e){return(0,o.sH)(this,void 0,void 0,(function(){var t,n,i,r,h,f,p,m;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return t=(0,c.A)(),[4,(0,d.z)()];case 1:return i=o.sent(),r=i.subscriptionMode,h=i.maxIssues,f=i.balance,p=i.subscriptionExpirationDateFormatted,n=r===a.Dm.Bundle?(0,u.p3)("Dialogs.ConfirmIssueReading"):(0,u.p3)("Dialogs.ConfirmIssueReading.IssuesRemaining",h,f,p),m={message:n,messageHeader:(0,u.p3)("Dialogs.ConfirmIssueReading.Text"),messageType:"html",noButtonTitle:(0,u.p3)("Buttons.Cancel"),yesButtonTitle:(0,u.p3)("Buttons.Confirm.Text"),noButtonClick:function(){return t.hide(l.d.Cancel)},yesButtonClick:function(){return t.hide(l.d.Ok)}},[2,t.custom(m).then((function(){return(0,s.pR)(e.Parameters.issueId)})).then((function(e){return e?Promise.resolve():Promise.reject(new Error("User did not confirm issue reading"))}))]}}))}))}),!0),(0,i.s)("ExternalAuthenticationRequired",(function(e){var t=e.Parameters,n=t.provider,i=t.authtype,r=t.command;return(0,h.G)({provider:n,authtype:i,context:{command:r}})}),!0),(0,i.s)("EmailRequired",(function(){return(0,c.A)().confirm(f.Ay.val("Dialogs.EmailRequired.Text"),f.Ay.val("Buttons.Cancel.Text"),f.Ay.val("Buttons.GoToMyAccount.Text")).then((function(){p.A.myAccount&&p.A.myAccount.activate()}))}),!0),(0,i.s)("OfflineReaderIsNotInstalled",(function(e){var t=e.Parameters.Text;return(0,c.A)().alert(t).then((function(){return Promise.reject()}))}),!0);var m=n(98346);function g(e){var t={};return e.Parameters&&(t.articleId=e.Parameters.articleId,t.issueId=e.Parameters.issueId,e.Parameters.subscriptionBehaviour)?m.A.show(e.Parameters.subscriptionBehaviour):r.default.purchase(t)}var v=n(27189),y=n(72167);(0,i.s)("IssueBuyingRequired",g,!0),(0,i.s)("SubscriptionRequired",g,!0),(0,i.s)("SubscriptionNotValid",g,!0),(0,i.s)("AuthenticationRequired",(function(e){return(0,o.sH)(this,void 0,void 0,(function(){var t,n,i,a,u,l,d,h;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return t=(null===(u=null==e?void 0:e.Parameters)||void 0===u?void 0:u.message)?(0,c.A)().show(e.Parameters.message):Promise.resolve(),[4,Promise.all([t,v.A.loaded()])];case 1:return o.sent(),(null===(l=null==e?void 0:e.Parameters)||void 0===l?void 0:l.redirectUrl)?(window.location.href=e.Parameters.redirectUrl,[2,Promise.reject()]):v.A.get("features.purchase.prepurchase.enabled",!1)&&(null===(d=null==e?void 0:e.Parameters)||void 0===d?void 0:d.issueId)?(n=e.Parameters.issueId).length>=20?[4,(0,s.Ii)(n)]:[3,3]:[3,7];case 2:return a=o.sent(),[3,5];case 3:return[4,(0,s.ES)(Number(n))];case 4:a=o.sent(),o.label=5;case 5:return(i=a).SubscriptionsInfo.IsFreeContent?[3,7]:[4,r.default.purchase({issueId:i.Issue.Issue,articleId:null===(h=null==e?void 0:e.Parameters)||void 0===h?void 0:h.articleId})];case 6:return o.sent(),[2];case 7:return[2,y.default.signIn().then((function(){return{skipRetry:!1}}))]}}))}))}),!0),(0,i.s)("ActionProhibitedForAccount",(function(e){return e&&e.Parameters?(e.Parameters.message?(0,c.A)().show(e.Parameters.message):Promise.resolve()).then({skipRetry:!0}).finally((function(){e.Parameters.redirectUrl&&(window.location.href=e.Parameters.redirectUrl)})):Promise.reject()}),!0)},34283:function(e,t,n){"use strict";var i=n(58932),r=n(1943),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.activate=function(e){var t=e.url;void 0!==window.nativeAppBridge?window.nativeAppBridge.openUrlInExternalBrowser(t):window.open(t)},t}(n(57351).A);r.A.openWindow=new o},60658:function(e,t,n){"use strict";n.d(t,{$Z:function(){return d},S8:function(){return c},U1:function(){return l}});var i=n(58932),r=n(3585),o=n(8021),a=n(60588),s=n(67660),u=n(67373);function c(e){return(0,i.sH)(this,arguments,void 0,(function(e){var t,n,o=e.context,s=e.collections;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return o?(t={collections:s},o.article?(t.contentType=u.P.article,t.contentId=o.article.ArticleId,t.articleId=o.article.Id,[3,4]):[3,1]):[2,Promise.reject("context not specified")];case 1:return o.page?[4,(0,a.dW)({issueKey:o.issue,pages:o.pageNumbers||[o.page]})]:[3,3];case 2:return n=e.sent(),t.contentId=n.id,t.contentType=u.P.pageSet,[3,4];case 3:o.pageSet&&(t.contentId=o.pageSet.id,t.contentType=u.P.pageSet),e.label=4;case 4:return[2,(0,r.upsertContentCollections)(t)]}}))}))}function l(e){var t=e.contentId,n=e.contentType,i=e.articleId;return t?n===u.P.article?(0,r.removeArticleFromCollections)({contentId:t,articleId:i}):n===u.P.pageSet?(0,o.L2)(t):Promise.reject("unknown contentType"):Promise.reject("contentId not specified")}function d(e){return e?e.article?(0,s.oz)(e.article.ArticleId):e.page?(0,a.ZZ)({issueKey:e.issue,pages:e.pageNumbers||[e.page]}).then((function(e){return e?(0,s.z3)(e.id):[]})):e.pageSet?(0,s.z3)(e.pageSet.id):Promise.reject("unknown context"):Promise.reject("context not specified")}},3585:function(e,t,n){"use strict";n.r(t),n.d(t,{bookmarkCreateSubscription:function(){return g},bookmarkDeleteSubscription:function(){return m},bookmarksChangeSubscription:function(){return p},events:function(){return f},removeArticleFromCollections:function(){return _},upsertContentCollections:function(){return y}});var i=n(58932),r=n(1766),o=n.n(r),a=n(67373),s=n(35374),u=n(69463),c=n(25778),l=n(44834),d=n(36945),h=n(13981),f={create:1,delete:2},p=new u.B,m=p.pipe((0,c.p)((function(e){return e.event===f.delete}))),g=p.pipe((0,c.p)((function(e){return e.event===f.create})));function v(e){var t=e.contentId,n=e.contentType,i=e.articleId,r=function(e){return p.next({event:f.create,data:e})};n===a.P.article?r({primaryArticleId:t,articleId:i}):n===a.P.pageSet&&r({pageSetId:t})}function y(e){return(0,i.sH)(this,arguments,void 0,(function(e){var t,n,r=e.contentId,u=e.collections,c=e.contentType,f=e.articleId;return(0,i.YH)(this,(function(e){switch(e.label){case 0:if(!r)return[2,Promise.reject("contentId not specified")];if([],t=o()(u)?[s.KM]:u.map((function(e){return{id:e}})),c===a.P.article)n={bookmarkType:a.x.article,bookmarkData:{articleId:r},collections:t};else{if(c!==a.P.pageSet)throw new Error("unknown contentType");n={bookmarkType:a.x.pageSet,bookmarkData:{pageSetId:r},collections:t}}return[4,h.bX.runSaga((0,l.T1)(d.UN,n)).toPromise()];case 1:return e.sent(),[2,v({contentId:r,contentType:c,articleId:f})]}}))}))}function _(e){var t=e.contentId,n=e.articleId;return t?h.bX.runSaga((0,l.T1)(d.Gx,t)).toPromise().then((function(){return e={primaryArticleId:t,articleId:n},p.next({event:f.delete,data:e});var e})):Promise.reject("contentId not specified")}},75979:function(e,t,n){"use strict";var i=n(58932),r=n(13302),o=n(55455),a=function(){function e(e){var t=e.provider,n=e.ViewModel,a=e.target,s=e.pageSize,u=e.filters,c=void 0===u?{}:u,l=e.orderBy,d=this;if(!(0,r.isFunction)(t))throw new TypeError("Publications provider has to be a function.");if(!(0,r.isFunction)(n))throw new TypeError("ViewModel has to be a constructor function.");this._filters=c,this._stream=new o.A({provider:t,pageSize:s,filters:c,orderBy:l}),this._target=a,this._stream.stream.subscribe((function(e){var t;null!==e?(t=d._target).push.apply(t,(0,i.fX)([],(0,i.zs)((0,r.map)(e,(function(e){return new n(e)}))),!1)):d._target([])}))}return e.prototype.setFilters=function(e){(0,r.merge)(this._filters,e)},e.prototype.sort=function(e,t){this._stream.sort(e,t)},e.prototype.search=function(e){this._filters.searchText=e,this._stream.filter(this._filters)},e.prototype.hasMore=function(){return this._stream.hasMore()},e.prototype.getMore=function(){this._stream.getMore()},e}();t.A=a},55455:function(e,t,n){"use strict";var i=n(69463),r=n(13302),o=function(){function e(e){var t=void 0===e?{}:e,n=t.provider,o=t.filters,a=void 0===o?{}:o,s=t.orderBy,u=t.pageSize,c=void 0===u?50:u;if(!(0,r.isFunction)(n))throw new TypeError("Publications provider has to be a function.");this._provider=n,this._subject=new i.B,this._filters=a,this._orderBy=s,this._pageSize=c,this._skip=0,this._hasMore=!0,this._resetScheduled=!1,this._latestResult=void 0,this._getMoreCallCounter=0}return e.prototype._reset=function(){this._skip=0,this._hasMore=!0,this._getMoreCallCounter=0,this._latestResult=void 0,this._resetScheduled=!0},e.prototype._next=function(){var e=this,t=(new Date).getMilliseconds();return this._latestRequestTimestamp=t,this._provider({filters:this._filters,orderBy:this._orderBy,offset:this._skip,limit:this._pageSize}).then((function(n){e._latestRequestTimestamp===t&&(e._skip+=e._pageSize,e._hasMore=n.items.length===e._pageSize,function(e,t){if(void 0===e&&void 0!==t)return!1;if(void 0!==e&&void 0===t)return!1;if(e.length!==t.length)return!1;for(var n=0;n0&&(e._getMoreCallCounter--,e._getMoreCallCounter>0&&e._getMore())}))},Object.defineProperty(e.prototype,"stream",{get:function(){return this._subject},enumerable:!1,configurable:!0}),e.prototype.filter=function(e){var t=e.searchText,n=e.hasCategories;this._filters.text=t,this._filters.hasCategories=n,this._reset(),this.getMore()},e.prototype.sort=function(e,t){this._orderBy={name:e,order:t},this._reset(),this.getMore()},e.prototype.getMore=function(){this._hasMore&&(0===this._getMoreCallCounter?(this._getMoreCallCounter++,this._getMore()):this._getMoreCallCounter++)},e.prototype.hasMore=function(){return this._hasMore},e}();t.A=o},54580:function(e,t,n){"use strict";var i,r=n(29583),o=n(22316),a={name:"name",rank:"rank",latestIssueDate:"latestIssue.issueDate"},s=((i={})[o.T.Ascending]=1,i[o.T.Descending]=-1,i),u=function(){function e(e){var t=e.target,n=e.source,i=e.pageSize,o=e.orderBy;this._collection=new r.nd.ObservableCollectionNew(n),this._collection.setPageSize(i),this._target=t,o&&this._applySorting(o)}return e.prototype._applySorting=function(e){var t=e.name,n=e.order,i=a[t];if(!i)throw new Error('Unexpected sorting name - "'.concat(t,'"'));this._collection.setSort(i,s[n])},e.prototype.sort=function(e,t){this._applySorting({name:e,order:t}),this._collection.render(),this._target(this._collection.items())},e.prototype.search=function(e){this._collection.setFilter(e,"name").render(),this._target(this._collection.items())},e.prototype.hasMore=function(){return this._collection.canRenderMore()},e.prototype.getMore=function(){this._collection.renderMore(),this._target(this._collection.items())},e}();t.A=u},47027:function(e,t,n){"use strict";n.d(t,{Gl:function(){return u},Px:function(){return s},X6:function(){return l},bW:function(){return d},jW:function(){return o},kG:function(){return c},yC:function(){return a},yt:function(){return h}});var i=n(56392),r=new(n(92526).A)(new i.A("catalog")),o=function(e){return r.getPublication(e)},a=function(e){return r.getPublications(e)},s=function(e){return r.findPublications(e)},u=function(e,t){return r.resolveNavigationPath(e,t)},c=function(){return r.getLanguages()},l=function(){return r.getCountries()},d=function(){return r.getCategories()},h=function(){return r.getLocales()}},56392:function(e,t,n){"use strict";var i=n(13302),r=n(45235),o=n(53308),a=",";function s(e,t,n){!0===n?e[t]="1":!1===n&&(e[t]="0")}var u=function(){function e(e){if(!e)throw new Error("basePath parameter required");this._basePath=e}return e.prototype.getMetadata=function(){return(0,o.lx)(this._basePath,"metadata")},e.prototype.getPublication=function(e){return(0,o.lx)(this._basePath,"publications/".concat(e))},e.prototype.getPublicationOwner=function(e){return(0,o.lx)(this._basePath,"publications/".concat(e,"/owner"))},e.prototype.getIssue=function(e,t){return(0,o.lx)(this._basePath,"publications/".concat(e,"/issues/").concat(t?function(e){if(!(0,i.isDate)(e))throw new TypeError("Date object expected");var t=e.getFullYear(),n=(0,i.padStart)(e.getMonth()+1,2,"0"),r=(0,i.padStart)(e.getDate(),2,"0");return"".concat(t,"-").concat(n,"-").concat(r)}(t):"latest"))},e.prototype.findPublications=function(e){var t,n,u={offset:e.offset,limit:e.limit||100};return e.orderBy&&(u.orderBy="".concat(e.orderBy.name," ").concat(e.orderBy.order)),(0,i.isObject)(e.filters)&&(0,i.extend)(u,(t=e.filters,n={},(0,r.gP)(t.mainCid)||(n.main=t.mainCid),(0,r.gP)(t.text)||(n.q=t.text),Array.isArray(t.cids)&&(n.cid=t.cids.join(a)),Array.isArray(t.hasCategories)&&(n.has=t.hasCategories.join(a)),Array.isArray(t.excCategories)&&(n.exc=t.excCategories.join(a)),Array.isArray(t.inCategories)&&t.inCategories.length>0&&(Array.isArray(t.inCategories[0])?n.in=t.inCategories.map((function(e){return e.join(a)})):n.in=t.inCategories.join(a)),s(n,"supplement",t.isSupplement),s(n,"free",t.isFree),s(n,"cre",t.cre),n)),(0,o.lx)(this._basePath,"publications",u)},e.prototype.getCategoryGroup=function(e){return(0,o.lx)(this._basePath,"categorygroups/".concat(e))},e.prototype.resolveNavigationPath=function(e,t){if((0,r.gP)(e))throw new Error("pathUri required");return(0,o.lx)(this._basePath,"navigationpath",{pathUri:e,prefer:t})},e.prototype.getLocales=function(){return(0,o.lx)(this._basePath,"locales")},e}();t.A=u},92526:function(e,t,n){"use strict";var i,r=n(13302),o=n(13384),a=n(66973),s=n(26906),u=n(16213),c=n(96543),l=n(86699);function d(e){return u.A.error(e),Promise.reject(e)}function h(){i||(i={PublicationTypes:(0,o.p3)("v7.Client.Catalog.types"),Newspapers:(0,o.p3)("v7.Client.Catalog.newspapers"),Magazines:(0,o.p3)("v7.Client.Catalog.magazines")})}var f=function(){function e(e){this._provider=e,this._localesCache=null,this._latestMetadata=null,this._publicationCache={},this._groupCache={},this._pathResolutionCache={},this._pendingRequests={},this._featuredCache=null,this._featuredHotspotCache=null,this._checkUpdates(),this._invalidateCaches=this._invalidateCaches.bind(this),c.A.bind(l.A,"onuserstatechanged",this._invalidateCaches)}return e.prototype._deduplicateRequest=function(e,t){var n=this;if(void 0!==this._pendingRequests[e])return this._pendingRequests[e];var i=t();return this._pendingRequests[e]=i,i.finally((function(){delete n._pendingRequests[e]}))},e.prototype._normalizeCategory=function(e){return null===e?null:Object.freeze((0,r.extend)({},e,{displayName:i[e.name]||e.displayName}))},e.prototype._normalizeCategoryGroup=function(e){var t=this;return null===e?null:Object.freeze((0,r.extend)({},e,{displayName:i[e.name]||e.displayName,categories:e.categories.map((function(e){return t._normalizeCategory(e)}))}))},e.prototype._normalizeIssue=function(e){return e?Object.freeze((0,r.extend)({},e,{issueDate:(0,a.R)(e.issueDate),firstPage:Object.freeze(e.firstPage)})):null},e.prototype._normalizePublication=function(e){var t=this;return Object.freeze((0,r.extend)({},e,{supplements:(e.supplements||[]).map((function(e){return t._normalizePublication(e)})),latestIssue:this._normalizeIssue(e.latestIssue)}))},e.prototype._cachePublication=function(e){return this._publicationCache[e.cid]=e,e},e.prototype._cachePublications=function(e){var t=this;return e.forEach((function(e){return t._cachePublication(e)})),e},e.prototype._getCachedPublications=function(e){for(var t=e.length,n=new Array(t),i=0;i0?o.Ay.val("v7.Client.Dialogs.Collections.DeleteContentConfirmationMessage"):o.Ay.format("v7.Client.Dialogs.Collections.DeleteConfirmationMessage",l.collection.name());(new c.A).confirm(e).then((function(){return l._deleteCollection()})).then((function(){t.hide(r.d.Ok)}))},this.cancel=function(){t.hide(r.d.Cancel)}}return e.prototype._deleteCollection=function(){return l.A.show(),(0,d.rV)(this.collection.id()).catch((function(e){return(0,a.logError)(e),(0,a.alertError)({resourceKey:"v7.Client.Dialogs.Collections.DeleteErrorMessage"})})).finally((function(){return l.A.hide()}))},e}();t.A={show:function(e){var t=void 0===e?{}:e,n=t.parent,r=t.collection;return new Promise((function(e){o.Ay.loaded().then((function(){var t=i.default.createInstance(n),a=new h({dialog:t,collection:r,res:o.Ay}),s={templateName:"v7.Client.Dialogs.EditCollection",model:a,name:"EditCollectionDialog"};t.onHide((function(t,n){e(n)})),t.onShow((function(){a.collection.nameFocus(!0)})),t.show(s)}))}))}}},80597:function(e,t,n){"use strict";var i=n(12010),r=n(68483),o=n(79371),a=n(13981),s=n(78698),u=function(){function e(e){void 0===e&&(e={});var t=this;this.publicCollectionEnabled=!(0,a.Lt)(s.uF),this.id=i.observable(e.id),this.name=i.observable(e.name).extend({required:!0,trackDirtyState:!0}),this.nameFocus=i.observable(!1),this.contentCount=i.observable(e.contentCount),this.type=i.observable(e.type||o.X.User),this.isPublic=i.observable(e.isPublic),this.isValid=i.computed((function(){return(0,r.validate)(t)})),Object.freeze(this)}return e.prototype.toDto=function(){return{id:this.id(),name:this.name(),type:this.type(),isPublic:this.publicCollectionEnabled&&this.isPublic()}},e}();t.A=u},58083:function(e,t,n){"use strict";var i=n(12010);t.A=function(){this.previewUrl=i.observable(),this.isLoading=i.observable(!1)}},97779:function(e,t,n){"use strict";var i=n(58932),r=function(e){function t(t){var n=void 0===t?{}:t,i=n.imageId,r=n.width,o=n.height,a=e.call(this)||this;return a.imageId=i,a.width=r,a.height=o,a.type="image",a}return(0,i.C6)(t,e),t.prototype.toDto=function(){return{imageId:this.imageId,width:this.width,height:this.height,type:this.type}},t}(n(58083).A);t.A=r},74877:function(e,t,n){"use strict";var i=n(58932),r=function(e){function t(t){var n=void 0===t?{}:t,i=n.url,r=n.thumbnailImageId,o=n.thumbnailWidth,a=n.thumbnailHeight,s=e.call(this)||this;return s.url=i,s.thumbnailImageId=r,s.thumbnailHeight=a,s.thumbnailWidth=o,s.type="video",s}return(0,i.C6)(t,e),t.prototype.toDto=function(){return{url:this.url,thumbnailImageId:this.thumbnailImageId,thumbnailHeight:this.thumbnailHeight,thumbnailWidth:this.thumbnailWidth,type:this.type}},t}(n(58083).A);t.A=r},85377:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var i,r=n(29583),o=n(71740),a=n(13302),s=n(16213),u=n(73690),c=n(82230),l=n(56856),d={ARTICLE:"Article"},h=new l.A("comment-images"),f=((i={})[d.ARTICLE]={validate:function(e){if(!e.articleId)throw new Error("articleId is required for Article context")}},i);function p(e){return"".concat("v2","/").concat(e)}function m(e){if(!e.contentType)throw new Error("Content type is required");var t=f[e.contentType];if(!t)throw new Error("Unexpected content type: ".concat(e.contentType));t.validate(e)}function g(e,t){var n={articleId:e.articleId,editText:t};return e.parentId&&(n.parentId=e.parentId),e.opinionId&&(n.opinionId=e.opinionId),e.attachments&&e.attachments.length&&(n.attachments=e.attachments),n}var v={contentTypes:Object.freeze(d),contentOrderBy:Object.freeze({byDefault:0,byRatingAsc:1,byRatingDesc:2,byDateAsc:3,byDateDesc:4}),createComment:function(e,t){if(m(e),t.length<1)throw new Error("comment must not be empty");var n=g(e,t);return(0,u._s)(p("comments"),"",JSON.stringify(n),{contentType:"application/json",disableRetry:!0})},updateComment:function(e,t,n){if(m(e),!t)throw new Error("commentId is mandatory");if(n.length<1)throw new Error("comment must not be empty");var i=g(e,n);return(0,u.rA)(p("comments"),"".concat(t),JSON.stringify(i),{contentType:"application/json",disableRetry:!0})},deleteComment:function(e,t){if(m(e),!t)throw new Error("commentId is mandatory");var n=e.contentType===d.ARTICLE?"articles/".concat(e.articleId,"/comments"):"comments";return(0,u.fw)(p(n),"".concat(t))},getCommentsPage:function(e){!function(e){if(m(e),0!==e.offset&&!e.offset||e.limit<1)throw new Error('Invalid "offset" and "limit" parameters.');if(e.orderBy<0)throw new Error('Invalid "orderBy"')}(e);var t={offset:e.offset,limit:e.limit,direction:e.direction};e.orderBy>-1&&(t.orderBy=e.orderBy),e.markerCommentId&&(t.markerCommentId=e.markerCommentId),e.contextProfileName&&(t.contextProfileName=e.contextProfileName);var n=e.parentId?"".concat(e.articleId,"/comments/").concat(e.parentId,"/replies"):"".concat(e.articleId,"/comments");return c.A.get(p("articles"),n,t)},getMeta:function(e){return m(e),c.A.get(p("articles"),"".concat(e.articleId,"/meta"))},uploadVideo:function(e){var t=void 0===e?{}:e,n=t.articleId,i=t.commentId,r=void 0===i?"new":i,o={videoUrl:t.videoUrl,previewUrl:t.previewUrl};return(0,u._s)(p("articles"),"".concat(n,"/comments/").concat(r,"/artifacts/video"),o)},uploadImage:function(e){var t=void 0===e?{}:e,n=t.onFileAdded,i=t.onProgress;return h.upload({onFileAdded:n,onProgress:i})},abuseReportComment:function(e,t,n){if(!t)throw new Error("commentId is mandatory");m(e);var i={articleId:e.articleId,action:n};return(0,u._s)(p("comments"),"".concat(t,"/abuses"),i,{disableRetry:!0})},hideComment:function(e,t){return(0,u._s)(p("hiddencomments"),"",JSON.stringify({contentId:e,commentId:t}),{contentType:"application/json",disableRetry:!0})},banUser:function(e){return(0,u._s)(p("hiddenusers"),"",JSON.stringify({profileName:e}),{contentType:"application/json",disableRetry:!0})},unBanUser:function(e){return(0,u.fw)(p("hiddenusers"),e)},getBannedUsersList:function(){return c.A.get(p("hiddenusers"))}},y=n(10358),_=n(50794),b=function(){function e(e){this.enAccountNumber=e.enAccountNumber,this.nickname=e.nickname,this.profileName=e.profileName,this.userLocation=e.userLocation,this.avatarImageId=e.avatarImageId,this.photoUrl=e.photoUrl,this.avatar=(0,y.tr)({nickname:this.nickname,imageId:e.avatarImageId,size:y.eV.huge,fallbackAvatarUrl:e.photoUrl})}return e.prototype.goToProfile=function(){return _.F.goToProfile(this.profileName)},e}(),w="nd.social.comments:CommentsMetaUpdated",C="nd.social.comments:CommentUpdated",A="nd.social.comments:CommentDeleted",I=r({});function S(e){return function(t){return I.on(e,t),function(){I.unbind(e,t)}}}function P(e,t,n){t&&n?I.trigger(e,[t,n]):s.A.error("either {context} or {meta} is not specified.")}function x(e,t,n,i){t&&n?I.trigger(e,[t,n,i]):s.A.error("either {context} or {commentId} is not specified.")}function T(e){return v.getMeta(e).then((function(t){P(w,e,t)}))}var k={contentTypes:v.contentTypes,contentOrderBy:v.contentOrderBy,createComment:function(e,t){return v.createComment(e,t).then((function(t){return T(e),new o.A(t)}))},updateComment:function(e,t,n){return v.updateComment(e,t,n).then((function(n){return x(C,e,t,n),new o.A(n)}))},deleteComment:function(e,t){return v.deleteComment(e,t).then((function(n){return T(e),x(A,e,t),n}))},abuseReportComment:function(e,t,n){return v.abuseReportComment(e,t,n)},getCommentsPage:function(e){var t=e.articleId,n=e.parentId,i=e.offset,r=e.limit,s=e.orderBy,u=e.markerCommentId,c=e.direction,l=void 0===c?1:c,d=e.contextProfileName,h=v.contentTypes.ARTICLE;return v.getCommentsPage({contentType:h,articleId:t,parentId:n,offset:i,limit:r,orderBy:s,markerCommentId:u,direction:l,contextProfileName:d}).then((function(e){return e.items=(0,a.map)(e.items,(function(e){return new o.A(e)})),e}))},uploadVideo:function(e){var t=void 0===e?{}:e,n=t.articleId,i=t.commentId,r=t.videoUrl,o=t.previewUrl;return v.uploadVideo({articleId:n,commentId:i,videoUrl:r,previewUrl:o})},uploadImage:function(e){var t=void 0===e?{}:e,n=t.onFileAdded,i=t.onProgress;return v.uploadImage({onFileAdded:n,onProgress:i})},hideComment:function(e,t){return v.hideComment(t.articleId,e).then((function(n){return T(t),x(A,t,e),n}))},banUser:function(e,t){return v.banUser(e).then((function(e){return t&&T(t),e}))},unBanUser:function(e){return v.unBanUser(e)},getBannedUsersList:function(){return v.getBannedUsersList().then((function(e){return e.map((function(e){return new b(e)}))}))},onCommentsMetaUpdated:S(w),onCommentUpdated:S(C),onCommentDeleted:S(A),emitCommentsMetaUpdated:P.bind(null,w)}},21193:function(e,t,n){"use strict";var i=n(64397),r=n(87559),o=n(59823),a=n(67882),s=n(25778),u=n(84531),c=n(26476),l=n(63755),d=n(14877),h=n(89885),f=n(60588),p=n(83449),m=n(74010),g=function(){function e(e){this.context=e}return e.prototype.submitSnippetToProcess=function(){var e,t=this,n=((e={})[h.mo.page]=function(){return(0,f.dW)({issueKey:t.context.issue,pages:t.context.pageNumbers||[t.context.page]}).then((function(e){return(0,p.n)(e.id)}))},e[h.mo.pageSet]=function(){return(0,p.n)(t.context.pageSet.id)},e)[(this.context.preview||{}).previewType];return n?Promise.resolve(n()):Promise.resolve(void 0)},e.prototype.createSnippetObservable=function(){return(0,i.H)(this.submitSnippetToProcess()).pipe((0,a.Z)((function(e){return e?e.status===m.U.Done?(0,r.of)(e.url):(0,o.Y)(2e3).pipe((0,a.Z)((function(){return(0,f.F8)(e.url)})),(0,s.p)((function(e){return e.status===m.U.Done})),(0,u.s)(1),(0,c.T)((function(e){return e.url})),(0,l.W)((function(e,t){return t})),(0,d.w)(6e4)):(0,r.of)(void 0)})))},e.prototype.getUrl=function(){var e=this;return this._data||(this._data=new Promise((function(t,n){e.createSnippetObservable().subscribe(t,n)}))),this._data},e}();t.A=g},27664:function(e,t,n){"use strict";var i=n(12010),r=n(13302),o=n(89885),a=n(60330),s=n(20680),u=n(44260),c=140;function l(e,t){return t.width*t.height-e.width*e.height}function d(e){return u.Ay.format("PagesSelector.PagesSelected",e)}var h={viewModel:function(){function e(e){var t=(void 0===e?{}:e).context;if(!t||!t.preview)throw new Error("preview context not found");this.preview=i.observable(),this.context=t,this.init()}return e.prototype.init=function(){var e=function(e){var t,n=((t={})[o.mo.article]=function(){var t=e.article||{},n=t.Issue&&{date:t.Issue.DateFormatted,title:t.Issue.Title},i=[];return(0,r.forEach)(t.Images,(function(e){var t=Math.round(14e3/e.Width),n=Math.round(e.Height*t/100);if(e.Width>=c){var r=e.Url.match(/[\?]/g)?"&":"?",o="".concat(e.Url).concat(r,"scale=").concat(t);i.push({url:o,width:c,height:n})}})),i.sort(l),{snippetTemplate:"article-snip-template",image:i[0],title:t.Title,issue:n,tasks:[]}},t[o.mo.page]=function(t){var n=e.pageNumbers&&e.pageNumbers.length>1,r=e.pageNumbers&&e.pageNumbers[0]||e.page,o={snippetTemplate:"page-snip-template",title:t.issueName,issueDate:t.issueDate,pageSet:n&&{countText:d(e.pageNumbers.length)},isWaiting:i.observable(!0),pageUrl:i.observable(null),tasks:[]},s=t.getPageInfo(r);return o.tasks.push(s),s&&s.then((function(t){o.pageUrl(a.A.getPageImageUrl(e.issue,r,{width:t.width,height:t.height},{width:c}))})),o},t[o.mo.pageSet]=function(e){var t=e.pagesCount>1;return{snippetTemplate:"page-snip-template",title:e.issueName,issueDate:e.issueDate,pageSet:t&&{countText:d(e.pagesCount)},pageUrl:a.A.getPageImageUrl(e.issue,e.pageLayout.number,{width:e.pageLayout.width,height:e.pageLayout.height},{width:c}),isWaiting:i.observable(!0),tasks:[]}},t),u=e.preview,h=n[u.previewType]&&n[u.previewType](u);if(!h)throw new Error("preview context is unknown");var f=h.tasks||[];return u.snippet&&u.snippet.getUrl&&f.push(u.snippet.getUrl()),Promise.all(f).catch(s.logAndAlertError).finally((function(){return h.isWaiting&&h.isWaiting(!1)})),h}(this.context);this.preview(e)},e}(),template:{ndTemplate:"v7.Client.ContextPreview.ko.Component"},synchronous:!0},f="context-preview";i.components.isRegistered(f)||i.components.register(f,h)},49577:function(e,t){"use strict";var n={},i=function(){function e(){}return e.prototype.register=function(e,t){n[e]=t},e.prototype.registerAction=function(e,t){var n=this.get(e);n&&(n.prototype.action=t)},e.prototype.get=function(e){return n[e]},e}();t.A=i},84389:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(13302),r=n(44260),o=n(12010),a=function(e){var t=void 0===e?{}:e,n=t.id,i=t.resourceName,a=t.needsTimeAdjustment;this.id=n,this.name=(0,o.observable)(r.Ay.val(i)),this.value=n,this.needsTimeAdjustment=a},s=[{id:1024,resourceName:"EmailAlerts.Page.Frequency.Off",needsTimeAdjustment:!1,paidSubscriptionOnly:!1},{id:24,resourceName:"SearchMonitorPanel.HoursOnesDay",needsTimeAdjustment:!0,paidSubscriptionOnly:!1},{id:48,resourceName:"SearchMonitorPanel.HoursEveryOtherDay",needsTimeAdjustment:!0,paidSubscriptionOnly:!1},{id:0,resourceName:"SearchMonitorPanel.HoursAsItHappend",needsTimeAdjustment:!1,paidSubscriptionOnly:!1}],u=function(e){var t=(void 0===e?{}:e).IsFree,n=this,r=(0,i.chain)(s).filter((function(e){return!e.paidSubscriptionOnly||!t})).map((function(e){return new a(e)})).value();(0,i.forEach)(r,(function(e){n[e.id]=e})),this.array=r}},68594:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(13302),r=function(){function e(){}return e.prototype.format=function(e){var t=e>11?"PM":"AM";return"".concat((e+11)%12+1,":00 ").concat(t)},e}(),o=function(){function e(){}return e.prototype.format=function(e){return"".concat(e,":00")},e}(),a={12:new r,24:new o},s=function(e,t){this.id=e,this.name=a[t].format(e),this.value=e},u=function(e){var t=this,n=(0,i.times)(24,(function(t){return new s(t,e)}));(0,i.forEach)(n,(function(e){t[e.id]=e})),this.array=n}},90332:function(e,t,n){"use strict";var i=n(14529),r=n(51056),o=n(88960),a=n(58735),s=n(32512),u=n(44260),c=n(46977),l=n(20680),d=n(82230),h=n(85567),f=function(){function e(){}return e.prototype.getRequestKey=function(){return(0,o.A)()},e.prototype.getToken=function(){return a.token()},e.prototype.getAuthorizationRequestUrl=function(e){var t=e.provider,n=e.key,i=e.token,r=e.authtype,o=e.context,a=void 0===o?{}:o,u=(0,s.pc)(),c=encodeURIComponent(i),l={key:n,provider:t,authtype:r,command:a?a.command:"",returnUrl:(null==a?void 0:a.returnUrl)||null,linkToCurrentAccount:a&&!0===a.linkToCurrentAccount,libraryId:a&&a.library||null,state:a&&a.state||null},d=Object.keys(l).filter((function(e){return null!=l[e]})).map((function(e){return"".concat(e,"=").concat(l[e])})).join("&");return"".concat(u).concat(c).concat("/externalauth/requestauthorization/","?").concat(d)},e.prototype.requestAuthorization=function(e){var t=e.provider,n=e.url;if(e.context.isWindowMode)return window.location.href=n,Promise.resolve();var i=window.open(n);return i?(0,h.L)(i):(0,c.A)().confirm(u.Ay.val("Dialogs.Confirm.Logon.".concat(t),u.Ay.val("Dialogs.Confirm.Logon")),u.Ay.val("Buttons.Cancel.Text"),u.Ay.val("Buttons.Login.Text")).then((function(){return i=window.open(n),(0,h.L)(i)}))},e.prototype.signinByKey=function(e){return d.A.post("auth","SigninByKey",JSON.stringify({key:e}),{contentType:"application/json"})},e.prototype.releaseRequestKey=function(e){return d.A.get("ExternalAuth","ValidateRequestKey",{key:e}).catch(l.logError)},e.prototype.completeAuthorization=function(e){var t=e.authtype,n=e.key,i=e.authResult;return i?t===r.Ac.SIGNUP?this.signinByKey(n).then((function(e){return{authResult:i,signInResult:e}})):this.releaseRequestKey(n).then((function(){return{authResult:i}})):Promise.resolve()},e.prototype.authorize=function(e){var t=this,n=e.provider,i=e.authtype,o=void 0===i?r.Ac.SHARING:i,a=e.context,s=void 0===a?{}:a,u=this.getRequestKey({context:s}),c=this.getToken(u),d=this.getAuthorizationRequestUrl({provider:n,authtype:o,key:u,token:c,context:s});return this.requestAuthorization({provider:n,authtype:o,key:u,url:d,context:s}).then((function(e){return t.completeAuthorization({provider:n,authtype:o,key:u,authResult:e,context:s})})).catch((function(e){return e&&e.code===r.YF.UNEXPECTED_ERROR?((0,l.logError)(e),Promise.reject()):Promise.reject(e)}))},e}(),p=n(58932),m=n(12010),g=n(55683),v=function(){function e(){}return e.prototype.authorize=function(e){return(0,p.sH)(this,arguments,void 0,(function(e){var t,i=e.provider;return(0,p.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.resolve().then(n.bind(n,96587))];case 1:return t=e.sent(),[2,new Promise((function(e,n){var r=t.getParent(),o=t.createInstance();o.onHide((function(t,i){i&&i.status===g.d.Ok?(r&&r.hide(),e(!0)):(r&&r.restore(),n())}));var a={userName:m.observable(),password:m.observable(),submit:function(){var e={provider:i,userName:a.userName(),password:a.password()};d.A.post("externalauth","AuthorizeXAuth",e).then((function(e){e&&0===e.Status?o.hide(g.d.Ok):(0,c.A)().show(u.Ay.val("Errors.SignInFailed"))})).catch(l.logError)},close:function(){return o.hide(g.d.Close)}};o.show({templateName:"v7.Client.Dialogs.xAuth.Signin",model:a})}))]}}))}))},e}(),y=v;(0,i.Z)(r.hL.FACEBOOK,new f),(0,i.Z)(r.hL.TWITTER,new f),(0,i.Z)(r.hL.GOOGLE,new f),(0,i.Z)(r.hL.EVERNOTE,new f),(0,i.Z)(r.hL.INSTAPAPER,new y),(0,i.Z)(r.hL.ONENOTE,new f),(0,i.Z)(r.hL.BELL,new f),(0,i.Z)(r.hL.PIANO,new f),(0,i.Z)(r.hL.OPENIDCONNECT,new f),(0,i.Z)(r.hL.SAML,new f),(0,i.Z)(r.hL.APPLE,new f),(0,i.Z)(r.hL.AUTH0,new f)},14529:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},s:function(){return o}});var i=n(13302),r={};function o(e){if(!(0,i.isString)(e))throw new TypeError("provider name is not specified");var t=r[e];if(void 0===t)throw new TypeError("".concat(e," provider implementation not registered"));return t}function a(e,t){if(void 0===e)throw new Error("provider is not specified");if(!(0,i.isString)(e))throw new TypeError("provider name has to be a string");if(!(0,i.isObject)(t)||!(0,i.isFunction)(t.authorize))throw new TypeError('provider has to be an object with method "authorize" expected');r[e]=t}},31711:function(e,t,n){"use strict";var i=n(7993),r=n(51056),o=n(14529),a=function(){function e(e){if(!e)throw new Error("External provider name required");this._provider=e}return e.prototype.signIn=function(e){var t=e.context;return function(e){var t=e.provider,n=e.authtype,i=e.context,r=void 0===i?{}:i;return(0,o.s)(t).authorize({provider:t,authtype:n,context:r})}({provider:this._provider,authtype:r.Ac.SIGNUP,context:t})},e}();(0,i.w)(r.YS.FACEBOOK,new a(r.hL.FACEBOOK)),(0,i.w)(r.YS.TWITTER,new a(r.hL.TWITTER)),(0,i.w)(r.YS.GOOGLE,new a(r.hL.GOOGLE)),(0,i.w)(r.YS.BELL,new a(r.hL.BELL)),(0,i.w)(r.YS.PIANO,new a(r.hL.PIANO)),(0,i.w)(r.YS.APPLE,new a(r.hL.APPLE)),(0,i.w)(r.YS.AUTH0,new a(r.hL.AUTH0)),(0,i.w)(r.YS.OPENIDCONNECT,new a(r.hL.OPENIDCONNECT))},7993:function(e,t,n){"use strict";n.d(t,{H:function(){return o},w:function(){return a}});var i=n(13302),r={};function o(e){if(!(0,i.isString)(e))throw new TypeError("system name is not specified");var t=r[e];if(void 0===t)throw new TypeError("SignIn implementation of ".concat(e," system not registered"));return t}function a(e,t){if(void 0===e)throw new Error("system is not specified");if(!(0,i.isString)(e))throw new TypeError("system name has to be a string");if(!(0,i.isObject)(t)||!(0,i.isFunction)(t.signIn))throw new TypeError('provider has to be an object with method "signIn" expected');r[e]=t}},18619:function(e,t,n){"use strict";n.d(t,{LY:function(){return c},fH:function(){return u},uk:function(){return o}});var i=n(29583),r=n(85351),o={video:1,image:2},a='
',s='');function u(e,t,n,r,o){var a=i(s);a.css({width:"".concat(t,"px"),height:"".concat(n,"px"),top:"".concat(r,"px"),left:"".concat(o,"px")});var u=a.find("img").css({width:"".concat(t,"px"),height:"".concat(n,"px")});return e&&u.attr("src",e),a}function c(e,t,n,o,s){var u=r.A.getPlayerIframe(e,t,n),c=i(u),l=i(a).css({width:"".concat(t,"px"),height:"".concat(n,"px"),top:"".concat(o,"px"),left:"".concat(s,"px")}).append(c);return Promise.resolve(l)}},62625:function(e,t,n){"use strict";var i=n(58932),r=n(13302),o=n(90185),a=n(18619),s=n(65264);function u(e,t,n){void 0===n&&(n=0);var i,o=0,a=n;return e&&e.length?((0,r.forEach)(e,(function(e){e.scaleToHeight(120),o+=e.width()})),i=t-o-2,(0,r.forEach)(e,(function(t,r){var s=t.width()/o;if(t.scaleToWidth(Math.floor(t.width()+s*i)),t.top(n+2),a=t.height()+t.top(),r>0){var u=e[r-1];t.left(u.left()+u.width()+2)}})),a):a}var c=function(){function e(e,t,n){void 0===n&&(n="picture"),this._puzzleItem=e,this._showGalleryOnClick=!!t,this._linkCssClass=n}return e.prototype._showGallery=function(){this._puzzleItem.showGallery()},e.prototype.render=function(){var e=this;return this._puzzleItem.thumbnailSrc().then((function(t){if(t){var n=e._puzzleItem,i=(0,a.fH)(t,n.width(),n.height(),n.top(),n.left());return i.find("a").addClass(e._linkCssClass),e._showGalleryOnClick&&i.click(e._showGallery.bind(e)),i}return null}))},e}(),l=function(e){function t(t,n){return void 0===n&&(n=!1),e.call(this,t,n,"video")||this}return(0,i.C6)(t,e),t}(c),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.render=function(){var e=this._puzzleItem;return(0,a.LY)(e.src(),e.width(),e.height(),e.top(),e.left())},t}(l),h=function(){function e(e,t){this._renderer=e,this._moreCount=t}return e.prototype._showGallery=function(){this._renderer._showGallery&&this._renderer._showGallery()},e.prototype.render=function(){var e=this;return this._renderer.render().then((function(t){return t.append('+'.concat(e._moreCount,"
"))}))},e}(),f=function(){function e(e,t,n,i,r,o){void 0===o&&(o=!1),this._puzzle=e,this.type=n,n===a.uk.video?(this._id=t.url,this._imageId=t.thumbnailImageId,this._width=t.thumbnailWidth,this._height=t.thumbnailHeight,this._renderer=i?new d(this):new l(this,!!r),this._src=t.url):(this._id=t.imageId,this._imageId=t.imageId,this._width=t.width,this._height=t.height,this._renderer=new c(this,!!r),this._src=t.imageId),o&&(this._renderer=new h(this._renderer,this._puzzle.moreItemsCount)),this._left=0,this._top=0}return e.prototype.id=function(){return this._id},e.prototype.height=function(){return this._height},e.prototype.width=function(){return this._width},e.prototype.left=function(e){return arguments.length&&(this._left=e),this._left},e.prototype.top=function(e){return arguments.length&&(this._top=e),this._top},e.prototype.imageSrc=function(e,t){return this._imageId?Promise.resolve((0,o.V)(this._imageId,{width:e,height:t})):Promise.resolve(null)},e.prototype.thumbnailSrc=function(){return this.imageSrc(this.width(),this.height())},e.prototype.src=function(){return this._src},e.prototype.scaleToWidth=function(e){if(e){var t=e/this._width;this._height=Math.floor(this._height*t),this._width=e}},e.prototype.scaleToHeight=function(e){if(e){var t=e/this._height;this._width=Math.floor(this._width*t),this._height=e}},e.prototype.showGallery=function(){this._puzzle.showGallery(this)},e.prototype.render=function(){return this._renderer.render()},e}(),p=function(){function e(e,t){void 0===e&&(e=[]);var n=this;this._config=function(e){return(e=e||{}).itemsInLayout=e.itemsInLayout||4,e.renderVideoPlayer=!!e.renderVideoPlayer,e.showGalleryOnClick=!!e.showGalleryOnClick,e}(t);var i=Math.min(this._config.itemsInLayout,e.length);this.moreItemsCount=e.length-this._config.itemsInLayout,this._allAttachments=e.map((function(e,t){var r=n._config.itemsInLayout>1&&n.moreItemsCount>0&&t===i-1;switch(e.type){case"image":return new f(n,e,a.uk.image,n._config.renderVideoPlayer,n._config.showGalleryOnClick,r);case"video":return new f(n,e,a.uk.video,n._config.renderVideoPlayer,n._config.showGalleryOnClick,r);default:return null}})),this._attachments=this._allAttachments.length>this._config.itemsInLayout?this._allAttachments.slice(0,this._config.itemsInLayout):this._allAttachments}return e.prototype._renderContainer=function(e){var t=e.width(),n=function(e,t){var n=e.length;if(1===n){var i=(r=e[0]).height();return r.width()>t&&(r.scaleToWidth(t),r.height(Math.min(i,r.height()))),r.height()}if(2===n)return u(e,t);if(n>2){i=(r=e[0]).height();var r,o=e.slice(1,4);return r.scaleToWidth(t),r.height(Math.min(i,r.height())),u(o,t,r.height())}return 0}(this._attachments,t,this._config.itemsInLayout);e.height(n)},e.prototype._renderItems=function(e){var t=(0,r.map)(this._attachments,(function(e){return e.render()}));return Promise.all(t).then((function(t){(0,r.forEach)(t,(function(t){t&&e.append(t)}))}))},e.prototype.showGallery=function(e){var t,n=new s.A;e&&(t=e.id()),n.show(this._allAttachments,t)},e.prototype.render=function(e){return this._renderContainer(e),this._renderItems(e)},e}();t.A=p},65264:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var i=n(29583),r=n(13302),o=n(99915),a=n(26429),s=n(18619),u=n(12010),c=n(56096),l=n(85351),d=n(16213),h=n(58932),f={scale:1,lastScale:1,isPinching:!1,startDistance:0,midpoint:null,onTouchStart:function(e,t){if(i(e.clickedSlide).find("img").removeAttr("style"),i(t.target).is("img")){var n=t.touches;if(n&&2===n.length){t.preventDefault();for(var r=[],o=0;n[o];o++){var a=n[o];r.push(a.pageX,a.pageY)}this.isPinching=!0,this.startDistance=this.getDistance(r),this.midpoint=this.getMidpoint(r)}}},onTouchMove:function(e,t){if(i(t.target).is("img")){var n=i(t.target),r=t.touches;if(r&&2===r.length&&this.isPinching){for(var o=[],a=0;r[a];a++){var s=r[a];o.push(s.pageX,s.pageY)}var u=this.getDistance(o),c=this.getMidpoint(o),l=u/this.startDistance*this.scale,d=c.x-this.midpoint.x,h=c.y-this.midpoint.y;n.attr("style","outline: 1px solid transparent; position: static !important"),n.css({transform:"translate3d(".concat(d,"px, ").concat(h,"px, 0) scale3d(").concat(l,", ").concat(l,", 1)")}),this.lastScale=l}}},onTouchEnd:function(e,t){var n=t.touches;n&&2!==n.length&&this.isPinching&&(this.pinching=!1)},getDistance:function(e){var t=Math.pow(e[0]-e[2],2),n=Math.pow(e[1]-e[3],2);return Math.sqrt(t+n)},getMidpoint:function(e){return{x:(e[0]+e[2])/2,y:(e[1]+e[3])/2}}},p={pagination:{el:".swiper-pagination",clickable:!0},spaceBetween:10,touchStartPreventDefault:!1,keyboard:{enabled:!0},mousewheel:!0,preloadImages:!1,lazy:{loadOnTransitionStart:!0},setWrapperSize:!0,observer:!0,observeParents:!0,noSwiping:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{touchStart:function(e){f.onTouchStart(this,e)},touchMove:function(e){f.onTouchMove(this,e)},touchEnd:function(e){f.onTouchEnd(this,e)}}},m=n(43150),g=function(){function e(e,t,n){var r=this;this.items=u.observableArray(e),this.$container=n,this.swiper=null,this.players=[],this.swiperConfig=function(e){return(0,h.Cl)((0,h.Cl)({},p),{initialSlide:e})}(t),this.keyDownHandlerInstance=function(e){return r.keyDownHandler(e)},i("body").on("keydown",this.keyDownHandlerInstance)}return e.prototype.keyDownHandler=function(e){e.keyCode===m.u.esc?(this.close(),e.stopImmediatePropagation()):e.stopImmediatePropagation?e.stopImmediatePropagation():e.cancelBubble=!0},e.prototype.close=function(){return this.swiper&&i.isFunction(this.swiper.destroy)&&this.swiper.destroy(!0,!0),this.$container&&i.isFunction(this.$container.remove)&&this.$container.remove(),i("body").off("keydown",this.keyDownHandlerInstance),!1},e.prototype.initSwiper=function(e){var t=this;i(e).is(".swiper-container")&&(this.swiper=new c.A(e,this.swiperConfig),this.swiper.on("slideChange",(function(){(0,r.each)(t.players,(function(e){e&&e.isPlaying&&e.pause().catch(d.A.error)}))})))},e.prototype.render=function(e,t){var n=this,r=i(e);if(t.type===s.uk.video){var o=.9*r.parent().width(),a=.9*r.parent().height();l.A.getPlayer(t.src,e,{width:o,height:a,playerVars:{rel:0,showinfo:0}}).then((function(e){return n.players.push(e),e})).catch(d.A.error)}else r.append(' ')),t.caption&&r.append('
')},e}(),v=function(){function e(){}return e.prototype.show=function(e,t){var n=(0,r.findIndex)(e,(function(e){return e.id()===t}))||0,u=(0,r.map)(e,(function(e){if(e.type===s.uk.video)return Promise.resolve({type:e.type,src:e.src(),caption:e.caption});if(e.type===s.uk.image)return e.imageSrc().then((function(t){return{type:e.type,src:t,caption:e.caption}}));throw new Error("Unsupported attachment type ".concat(e.type))}));return Promise.all(u).then((function(e){var t=i(document.body).createChild("div").addClass("pigal-container"),r=new g(e,n,t);o.k.renderTo("v7.Client.Gallery",r,r.$container),r.$container.find(".pigal").css({"z-index":(0,a.gF)()})}))},e}()},36489:function(e,t,n){"use strict";var i=n(29583),r=function(e,t){var n=Math,r=t.createElement("div").style,o=function(){for(var e="t,webkitT,MozT,msT,OT".split(","),t=0,n=e.length;tr[e+"ScrollbarMaxScroll"]&&(r.options.fixedScrollbar?o=r[e+"ScrollbarMaxScroll"]:((i=r[e+"ScrollbarIndicatorSize"]-n.round(3*(o-r[e+"ScrollbarMaxScroll"])))<8&&(i=8),r[e+"ScrollbarIndicator"].style["h"==e?"width":"height"]=i+"px",o=r[e+"ScrollbarMaxScroll"]+(r[e+"ScrollbarIndicatorSize"]-i))),r[e+"ScrollbarWrapper"].style[h]="0",r[e+"ScrollbarWrapper"].style.opacity=t&&r.options.hideScrollbar?"0":"1",r[e+"ScrollbarIndicator"].style[s]="translate("+("h"==e?o+"px,0)":"0,"+o+"px)")+M)},_start:function(i){var r,o,a,u,c,l=this,d=y?i.touches[0]:i,h=t.body,f=t.documentElement;l.enabled&&(l.options.onBeforeScrollStart&&l.options.onBeforeScrollStart.call(l,i),(l.options.useTransition||l.options.zoom)&&l._transitionTime(0),l.moved=!1,l.animating=!1,l.zoomed=!1,l.distX=0,l.distY=0,l.absDistX=0,l.absDistY=0,l.dirX=0,l.dirY=0,l.options.zoom&&y&&i.touches.length>1&&(u=n.abs(i.touches[0].pageX-i.touches[1].pageX),c=n.abs(i.touches[0].pageY-i.touches[1].pageY),l.touchesDistStart=n.sqrt(u*u+c*c),l.originX=n.abs(i.touches[0].pageX+i.touches[1].pageX-2*l.wrapperOffsetLeft)/2-l.x,l.originY=n.abs(i.touches[0].pageY+i.touches[1].pageY-2*l.wrapperOffsetTop)/2-l.y,l.options.onZoomStart&&l.options.onZoomStart.call(l,i)),l.options.momentum&&(l.options.useTransform?(o=+((r=(l.scroller.currentStyle||getComputedStyle(l.scroller,null))[s].replace(/[^0-9\-.,]/g,"").split(","))[12]||r[4]),a=+(r[13]||r[5])):(o=+(l.scroller.currentStyle||getComputedStyle(l.scroller,null)).left.replace(/[^0-9-]/g,""),a=+(l.scroller.currentStyle||getComputedStyle(l.scroller,null)).top.replace(/[^0-9-]/g,"")),o==l.x&&a==l.y||(l.options.useTransition?l._unbind(T):E(l.aniTime),l.steps=[],l._pos(o,a),l.options.onScrollEnd&&l.options.onScrollEnd.call(l))),l.absStartX=l.x,l.absStartY=l.y,l.startX=l.x,l.startY=l.y,l.pointX=d.pageX||d.clientX+h.scrollLeft+f.scrollLeft,l.pointY=d.pageY||d.clientY+h.scrollTop+f.scrollTop,l.startTime=i.timeStamp||(new Date).getTime(),l.options.onScrollStart&&l.options.onScrollStart.call(l,i),l._bind(I),l._bind(S,g?null:e),l._bind(P,g?null:e))},_move:function(e){var i,r,o,a=this,u=y?e.touches[0]:e,c=t.body,l=t.documentElement,d=(u.pageX||u.clientX+c.scrollLeft+l.scrollLeft)-a.pointX,h=(u.pageY||u.clientY+c.scrollTop+l.scrollTop)-a.pointY,f=a.x+d,p=a.y+h,m=e.timeStamp||(new Date).getTime();if(a.options.onBeforeScrollMove&&a.options.onBeforeScrollMove.call(a,e),a.options.zoom&&y&&e.touches.length>1)return i=n.abs(e.touches[0].pageX-e.touches[1].pageX),r=n.abs(e.touches[0].pageY-e.touches[1].pageY),a.touchesDist=n.sqrt(i*i+r*r),a.zoomed=!0,(o=1/a.touchesDistStart*a.touchesDist*this.scale)a.options.zoomMax&&(o=2*a.options.zoomMax*Math.pow(.5,a.options.zoomMax/o)),a.lastScale=o/this.scale,f=this.originX-this.originX*a.lastScale+this.x,p=this.originY-this.originY*a.lastScale+this.y,this.scroller.style[s]="translate("+f+"px,"+p+"px) scale("+o+")"+M,void(a.options.onZoom&&a.options.onZoom.call(a,e));a.pointX=u.pageX||u.clientX+c.scrollLeft+l.scrollLeft,a.pointY=u.pageY||u.clientY+c.scrollTop+l.scrollTop,(f>0||f=0||a.maxScrollX>=0?0:a.maxScrollX),(p>a.minScrollY||p=a.minScrollY||a.maxScrollY>=0?a.minScrollY:a.maxScrollY),a.distX+=d,a.distY+=h,a.absDistX=n.abs(a.distX),a.absDistY=n.abs(a.distY),a.absDistX<6&&a.absDistY<6||(a.options.lockDirection&&(a.absDistX>a.absDistY+5?(p=a.y,h=0):a.absDistY>a.absDistX+5&&(f=a.x,d=0)),a.moved=!0,a._pos(f,p),a.dirX=d>0?-1:d<0?1:0,a.dirY=h>0?-1:h<0?1:0,m-a.startTime>300&&(a.startTime=m,a.startX=a.x,a.startY=a.y),a.options.onScrollMove&&a.options.onScrollMove.call(a,e))},_end:function(i){if(!y||0===i.touches.length){var r,o,a,u,l,d,h,f=this,p=y?i.changedTouches[0]:i,m={dist:0,time:0},v={dist:0,time:0},_=(i.timeStamp||(new Date).getTime())-f.startTime,b=f.x,w=f.y;if(f._unbind(I),f._unbind(S,g?null:e),f._unbind(P,g?null:e),f.options.onBeforeScrollEnd&&f.options.onBeforeScrollEnd.call(f,i),f.onEndDefaultPreserved=i.preventDefault?!i.defaultPrevented:i.returnValue,f.zoomed)return h=f.scale*f.lastScale,h=Math.max(f.options.zoomMin,h),h=Math.min(f.options.zoomMax,h),f.lastScale=h/f.scale,f.scale=h,f.x=f.originX-f.originX*f.lastScale+f.x,f.y=f.originY-f.originY*f.lastScale+f.y,f.scroller.style[c]="200ms",f.scroller.style[s]="translate("+f.x+"px,"+f.y+"px) scale("+f.scale+")"+M,f.zoomed=!1,f.refresh(),void(f.options.onZoomEnd&&f.options.onZoomEnd.call(f,i));if(!f.moved)return y&&(f.doubleTapTimer&&f.options.zoom?(clearTimeout(f.doubleTapTimer),f.doubleTapTimer=null,f.options.onZoomStart&&f.options.onZoomStart.call(f,i),f.zoom(f.pointX,f.pointY,1==f.scale?f.options.doubleTapZoom:1),f.options.onZoomEnd&&setTimeout((function(){f.options.onZoomEnd.call(f,i),f=null}),200)):this.options.handleClick&&(f.doubleTapTimer=setTimeout((function(){if(f.doubleTapTimer=null,!f.onStartDefaultPreserved||!f.onEndDefaultPreserved){for(r=p.target;1!=r.nodeType;)r=r.parentNode;"SELECT"!=r.tagName&&"INPUT"!=r.tagName&&"TEXTAREA"!=r.tagName&&"A"!=r.tagName&&((o=t.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,i.view,1,p.screenX,p.screenY,p.clientX,p.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,0,null),o._fake=!0,r.dispatchEvent(o))}}),f.options.zoom?250:0))),f._resetPos(400),void(f.options.onTouchEnd&&f.options.onTouchEnd.call(f,i));if(_<300&&f.options.momentum&&(m=b?f._momentum(b-f.startX,_,-f.x,f.scrollerW-f.wrapperW+f.x,f.options.bounce?f.wrapperW:0):m,v=w?f._momentum(w-f.startY,_,-f.y,f.maxScrollY<0?f.scrollerH-f.wrapperH+f.y-f.minScrollY:0,f.options.bounce?f.wrapperH:0):v,b=f.x+m.dist,w=f.y+v.dist,(f.x>0&&b>0||f.xf.minScrollY&&w>f.minScrollY||f.y=0?0:t.x=t.minScrollY||t.maxScrollY>0?t.minScrollY:t.ys.options.zoomMax&&(a=s.options.zoomMax),void(a!=s.scale&&(!s.wheelZoomCount&&s.options.onZoomStart&&s.options.onZoomStart.call(s,e),s.wheelZoomCount++,s.zoom(e.pageX,e.pageY,a,400),setTimeout((function(){s.wheelZoomCount--,!s.wheelZoomCount&&s.options.onZoomEnd&&s.options.onZoomEnd.call(s,e),s=null}),400)));r=s.x+t,o=s.y+n,r>0?r=0:rs.minScrollY?o=s.minScrollY:o=s+e.time)return r._pos(e.x,e.y),r.animating=!1,r.options.onAnimationEnd&&r.options.onAnimationEnd.call(r),void r._startAni();l=(l-s)/e.time-1,t=n.sqrt(1-l*l),u=(e.x-o)*t+o,c=(e.y-a)*t+a,r._pos(u,c),r.animating&&(r.aniTime=k(i))})()}else r._resetPos(400)},_transitionTime:function(e){e+="ms",this.scroller.style[c]=e,this.hScrollbar&&(this.hScrollbarIndicator.style[c]=e),this.vScrollbar&&(this.vScrollbarIndicator.style[c]=e)},_momentum:function(e,t,i,r,o){var a,s=6e-4,u=n.abs(e)/t,c=u*u/.0012;return e>0&&c>i?(u=u*(i+=o/(6/(c/u*s)))/c,c=i):e<0&&c>r&&(u=u*(r+=o/(6/(c/u*s)))/c,c=r),a=u/s,{dist:c*=e<0?-1:1,time:n.round(a)}},_offset:function(e){for(var t=-e.offsetLeft,n=-e.offsetTop;e=e.offsetParent;)t-=e.offsetLeft,n-=e.offsetTop;return e!=this.wrapper&&(t*=this.scale,n*=this.scale),{left:t,top:n}},_snap:function(e,t){var i,r,o,a,s,u=this;for(o=u.pagesX.length-1,i=0,r=u.pagesX.length;i=u.pagesX[i]){o=i;break}for(o==u.currPageX&&o>0&&u.dirX<0&&o--,e=u.pagesX[o],a=(a=n.abs(e-u.pagesX[u.currPageX]))?n.abs(u.x-e)/a*500:0,u.currPageX=o,o=u.pagesY.length-1,i=0;i=u.pagesY[i]){o=i;break}return o==u.currPageY&&o>0&&u.dirY<0&&o--,t=u.pagesY[o],s=(s=n.abs(t-u.pagesY[u.currPageY]))?n.abs(u.y-t)/s*500:0,u.currPageY=o,{x:e,y:t,time:n.round(n.max(a,s))||200}},_bind:function(e,n,i){t.addEventListener?(n||this.scroller).addEventListener(e,this,!!i):(n||this.scroller).attachEvent("on"+e,_getEvent(e))},_getEvent:function(e){var t=this;return this.events[e]||(this.events[e]=function(e){t.handleEvent.call(t,e)}),this.events[e]},_unbind:function(e,n,i){t.removeEventListener?(n||this.scroller).removeEventListener(e,this,!!i):this.events[e]&&(n||this.scroller).detachEvent("on"+e,this.events[e])},destroy:function(){var t=this;t.scroller.style[s]="",t.hScrollbar=!1,t.vScrollbar=!1,t._scrollbar("h"),t._scrollbar("v"),t._unbind(C,e),t._unbind(A),t._unbind(I),t._unbind(S,g?null:e),t._unbind(P,g?null:e),t.options.hasTouch||(t._unbind("DOMMouseScroll"),t._unbind("mousewheel")),t.options.useTransition&&t._unbind(T),t.options.checkDOMChanges&&clearInterval(t.checkDOMTime),t.options.onDestroy&&t.options.onDestroy.call(t),t.wrapper=null,t.scroller=null},refresh:function(){var e,t,i,r,o=this,a=0,s=0;if(o.wrapper){o.scaleo.wrapperH),o.hScrollbar=o.hScroll&&o.options.hScrollbar,o.vScrollbar=o.vScroll&&o.options.vScrollbar&&o.scrollerH>o.wrapperH,e=o._offset(o.wrapper),o.wrapperOffsetLeft=-e.left,o.wrapperOffsetTop=-e.top,"string"==typeof o.options.snap)for(o.pagesX=[],o.pagesY=[],t=0,i=(r=o.scroller.querySelectorAll(o.options.snap)).length;t=o.maxScrollX;)o.pagesX[s]=a,a-=o.wrapperW,s++;for(o.maxScrollX%o.wrapperW&&(o.pagesX[o.pagesX.length]=o.maxScrollX-o.pagesX[o.pagesX.length-1]+o.pagesX[o.pagesX.length-1]),a=0,s=0,o.pagesY=[];a>=o.maxScrollY;)o.pagesY[s]=a,a-=o.wrapperH,s++;o.maxScrollY%o.wrapperH&&(o.pagesY[o.pagesY.length]=o.maxScrollY-o.pagesY[o.pagesY.length-1]+o.pagesY[o.pagesY.length-1])}o._scrollbar("h"),o._scrollbar("v"),o.zoomed||(o.scroller.style[c]="0",o._resetPos(400))}},scrollTo:function(e,t,n,i){var r,o,a=this,s=e;for(a.stop(),s.length||(s=[{x:e,y:t,time:n,relative:i}]),r=0,o=s.length;r0?0:i.leftr.minScrollY?r.minScrollY:i.topo.pagesX.length-1?o.pagesX.length-1:e,t=t<0?0:t>o.pagesY.length-1?o.pagesY.length-1:t,o.currPageX=e,o.currPageY=t,i=o.pagesX[e],r=o.pagesY[t]):(i=-o.wrapperW*e,r=-o.wrapperH*t,i0?0:r.xr.minScrollY?r.minScrollY:r.y0){var c="hidden"===r(e).css("visibility");o(e,{clamp:u,useNativeClamp:!c})}}}},28505:function(e,t,n){"use strict";var i=n(12010),r=n(83701);i.bindingHandlers.click={init:function(e,t,n,o,a){var s=r.A.create(e).subscribe((function(e){var i=a.$data;!0!==t().call(o,i,e)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,!1!==n.get("clickBubble")||(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()))}));i.utils.domNodeDisposal.addDisposeCallback(e,(function(){s.unsubscribe()}))}}},36663:function(e,t,n){"use strict";var i=n(12010),r=n(13302),o=n(12762),a={init:function(e,t){var n=t(),i=new o(e);(0,r.isFunction)(n.copyHandler)&&i.on("success",n.copyHandler)}};i.bindingHandlers.clipboard=a},1234:function(e,t,n){"use strict";var i=n(12010),r=n(51175),o={init:function(e){i.utils.domNodeDisposal.addDisposeCallback(e,(function(){r.Ay.disableTouchScroll(e)}))},update:function(e,t){var n=t();i.unwrap(n)?r.Ay.enableTouchScroll(e):r.Ay.disableTouchScroll(e)}};i.bindingHandlers.enableTouchScroll=o},35679:function(e,t,n){"use strict";var i=n(12010),r=n(29583);i.bindingHandlers.oldValue=new function(){this.update=function(e,t){i.bindingHandlers.attr.update(e,(function(){return{"data-field-old-value":t()}}))},this.init=function(e,t){var n=r(e);n.on("oldValueChanged",(function(){t()(n.attr("data-field-old-value"))})),i.utils.domNodeDisposal.addDisposeCallback(e,(function(){n.off("oldValueChanged"),n=null}))}}},39974:function(e,t,n){"use strict";var i=n(12010),r=n(29583);i.bindingHandlers["nd-onTransitionEnd"]=new function(){this.update=function(e,t,n){var i=t();r.isFunction(i)&&r(e).bind("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",(function(){i(e)}))}}},80354:function(e,t,n){"use strict";var i=n(12010),r=n(29583),o={update:function(e,t){i.unwrap(t());var n="opacity",o=window.getComputedStyle(e).getPropertyValue(n),a=void 0===o?1:parseFloat(o),s=r(e);s.css(n,a-.01),s.css(n,a)}};i.bindingHandlers.repaint=o},91098:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var i=n(13302),r=n(29583),o=n(36810),a=n(12010),s="reset";function u(e){e.bindingHandlers[s]?console.warn("KO binding ".concat(s," already registered")):e.bindingHandlers[s]=function(e){void 0===e&&(e={});var t=e.templateName,n=e.getDescendantContext,r=void 0===n?function(){return{}}:n,s=e.inject,u=void 0===s?function(e,t){return t.appendChild(e)}:s,c=e.dispose,l=void 0===c?i.noop:c;if(void 0===t)throw new Error("Template name is required");return{init:function(e,n,i,s,c){var d=e;(0,o.t9)(t).then((function(t){a.tasks.schedule((function(){if(d){var o=r(e,n,i,s,c);u(t,d),(0,a.applyBindings)(o,t)}}))})),a.utils.domNodeDisposal.addDisposeCallback(e,(function(){l(d),d=void 0}))}}}({templateName:"v7.Client.Reset.ko.Binding",getDescendantContext:function(e,t,n,i,r){return{activate:function(e,n){t().call(i,r.$data,n)}}},inject:function(e,t){r(t).addClass("has-reset").append(e)}})}},14604:function(e,t,n){"use strict";var i=n(12010),r=n(29583);i.bindingHandlers.resizable=new function(){this.update=function(e,t,n,o,a){var s=t();i.unwrap(s),s.enforce&&r.isFunction(s.resizeHandler)&&s.resizeHandler(e)}}},41761:function(e,t,n){"use strict";var i=n(58932),r=n(12010),o=n(44260);r.bindingHandlers.resourceText={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){var n,a=r.unwrap(t()),s=a,u=null;Array.isArray(a)&&(s=(n=(0,i.zs)(a,2))[0],u=n[1]),o.Ay.isLoaded()?r.utils.setTextContent(e,o.Ay.val(s,u)):(r.virtualElements.emptyNode(e),o.Ay.valAsync(s,u).then((function(t){r.dataFor(e)&&r.utils.setTextContent(e,t)})))}},r.virtualElements.allowedBindings.resourceText=!0},32634:function(e,t,n){"use strict";var i=n(12010),r=n(29583);i.bindingHandlers["nd-scrolled-to-bottom-edge"]=new function(){this.update=function(e,t,n){var i=t();if(r.isFunction(i)){var o=r(e),a=n.get("edgeDelta")||150;o.scroll((function(){var e=o.outerHeight(),t=o.prop("scrollHeight");return o.scrollTop()+e+a>t&&i(),!0}))}}}},8564:function(e,t,n){"use strict";var i=n(12010),r=n(29583);i.bindingHandlers.slideVisible=new function(){this.update=function(e,t,n){var o=t(),a=n(),s=i.unwrap(o),u=a.slideDuration||400;!0===s?r(e).show():(r(e).slideUp(u),r(e).hide())}}},723:function(e,t,n){"use strict";var i=n(12010),r=n(29583);function o(e){return{x:e.clientX,y:e.clientY}}i.bindingHandlers.swipeClick=new function(){this.init=function(e,t,n,a,s){var u,c=r(e),l=t(),d=l.threshold||{x:50,y:50},h=l.handler||l;c.on("mousedown",(function(e){u=o(e)})),c.on("click",(function(e){if(u){var t=o(e);(function(e,t){return Math.abs(e.x)'.concat(o.wR,"")},u="spinner";r.components.isRegistered(u)||r.components.register(u,s)},32683:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(58932),r=n(13302),o=n(12010),a="[ko-component:nd-swich]",s=function(){function e(e){var t=e.value,n=e.label,i=void 0===n?"":n,a=e.selected,s=void 0!==a&&a,u=e.onToggle;this.label=i,this.value=t,this.selected=o.observable(s),(0,r.isFunction)(u)&&this.selected.subscribe((function(e){u(e)}))}return Object.defineProperty(e.prototype,"unwrappedValue",{get:function(){return o.unwrap(this.value)},enumerable:!1,configurable:!0}),e.prototype.toggle=function(e){void 0===e&&(e=!this.selected()),this.selected(e)},e}();function u(e){var t=o.unwrap(e);if(!Array.isArray(t))throw new Error("".concat(a," Invalid configuration: expected array of options"));return t.map((function(e){var t,n=(t=e,!o.isObservable(t)&&(0,r.isObject)(t)?t:{value:t,label:t});return new s(n)}))}var c={viewModel:function(){function e(e){var t=e.options,n=e.value,i=this;if(!o.isObservable(n))throw new Error("".concat(a,' Invalid configuration: expected observable as "value"'));this._switchOptions=u(t),this.options=o.observableArray(this._switchOptions),o.isObservable(t)&&t.subscribe((function(e){i.updateSwitchOptions(e)})),this.selectedOption=o.pureComputed((function(){return n()})).extend({deferred:!0}),this.selectOne=function(e){n(e.unwrappedValue)},n.subscribe((function(e){i.updateSelection(e)})),this.updateSelection(n)}return e.prototype.selectOption=function(e){e&&(e.selected()||this._switchOptions.forEach((function(t){t.toggle(t===e)})))},e.prototype.updateSelection=function(e){var t=o.unwrap(e),n=(0,r.find)(this._switchOptions,(function(e){return e.unwrappedValue===t}));this.selectOption(n)},e.prototype.updateSwitchOptions=function(e){var t,n=this.selectedOption(),r=u(e);(t=this._switchOptions).splice.apply(t,(0,i.fX)([0,this._switchOptions.length],(0,i.zs)(r),!1)),this.options.valueHasMutated(),this.updateSelection(n)},e}(),template:{ndTemplate:"v7.Client.Switch.ko.Component"}},l="nd-switch";function d(e){e.components.isRegistered(l)?console.warn('Knockout component "'.concat(l,'" already registered.')):e.components.register(l,c)}},231:function(e,t,n){"use strict";n(12010).extenders.undo=function(e){var t=e(),n=t;e.subscribe((function(e){t=e})),e.commit=function(){n=t},e.undo=function(){e(n)}}},44605:function(e,t){"use strict";var n="__clickAndTouchHandled",i={handle:function(e){e[n]=!0},isHandled:function(e){return!!e[n]}};t.A={clickAndTouch:i}},48498:function(e,t,n){"use strict";var i=n(58932),r=n(13302),o=n(12010),a=n(99915),s=function(){function e(e){this.templateName=e,this.templateData={},this.template=null}return e.prototype.data=function(e,t){if(1===arguments.length)return this.templateData[e];this.templateData[e]=t},e.prototype.text=function(){if(1===arguments.length)throw new Error("ExternalResourceTemplateSource does't support write operation");return this.template||(this.template=a.k.process(this.templateName,this.templateData)),this.template},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.makeTemplateSource=function(t,n){try{return e.prototype.makeTemplateSource.call(this,t,n)}catch(e){}if((0,r.isString)(t)&&a.k.getTemplate(t))return new s(t);throw new Error("Unknown template type: ".concat(t))},t}(o.nativeTemplateEngine);t.A=u},36810:function(e,t,n){"use strict";n.d(t,{t9:function(){return u}});var i=n(13302),r=n(12010),o=n(99915),a="ndTemplate";function s(e){return o.k.getTemplateAsync(e).then((function(t){if(t){var n=o.k.process(e);return r.utils.parseHtmlFragment(n)}}))}function u(e){return s(e).then((function(t){if(!t||!t.length)throw new Error("Template ".concat(e," was not found"));var n=function(e){return void 0===e&&(e=[]),(0,i.find)(e,(function(e){return e.nodeType===Node.ELEMENT_NODE}))}(t);if(!n)throw new Error("Template ".concat(e," is invalid: no element nodes found"));return n}))}var c={loadTemplate:function(e,t,n){if((0,i.isObject)(t)&&(0,i.endsWith)(t[a],".ko.Component")){var u=t[a],c=function(e){if(o.k.isLoaded()&&o.k.getTemplate(e)){var t=o.k.process(e);return r.utils.parseHtmlFragment(t)}}(u);c?n(c):s(u).then((function(e){n(e)}),(function(){n(null)}))}else n(null)}};t.Ay=c},68483:function(e,t,n){"use strict";n.r(t),n.d(t,{forceValidation:function(){return a},resetValidationState:function(){return u},supportsValidation:function(){return o},validate:function(){return s}});var i=n(12010),r=n(13302);function o(e){return i.isObservable(e)&&(0,r.isFunction)(e.hasErrors)}function a(e){e&&((e=i.utils.unwrapObservable(e)).__validationAttempted&&e.__validationAttempted(!0),(0,r.values)(e).forEach((function(e){o(e)&&(0,r.isFunction)(e.valueHasMutated)&&e.valueHasMutated()})))}function s(e,t){return!e||(Array.isArray(e)?e.map((function(e){return s(e,t)})).reduce((function(e,t){return e&&t}),!0):(e=i.utils.unwrapObservable(e),t&&a(e),e.__validationAttempted&&e.__validationAttempted(!0),!(0,r.some)((0,r.values)(e),(function(e){return o(e)&&e.hasErrors()}))))}function u(e){e&&(i.isObservable(e)&&(0,r.isFunction)(e.isDirty)&&(e.isDirty(!1),e=i.utils.unwrapObservable(e)),(0,r.forOwn)(e,(function(e){i.isObservable(e)&&(0,r.isFunction)(e.isDirty)&&e.isDirty(!1)})),e.__validationAttempted&&e.__validationAttempted(!1))}},14099:function(e,t){"use strict";var n=function(){function e(e,t,n,i){this.left=e||0,this.top=t||0,this.width=n||0,this.height=i||0}return e.prototype.clone=function(){return new e(this.left,this.top,this.width,this.height)},Object.defineProperty(e.prototype,"right",{get:function(){return this.left+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!1,configurable:!0}),e.prototype.locate=function(e,t){return this.left=e,this.top=t,this},e.prototype.resize=function(e,t){return this.width=e,this.height=t,this},e}();t.A=n},89844:function(e,t,n){"use strict";n.d(t,{S$:function(){return i},Sl:function(){return r},ki:function(){return o},wk:function(){return a}});var i=Object.freeze({userSection:"userSection",topics:"topics",following:"following"}),r=Object.freeze({minNumberItemsInSection:3,addItemsPerMoreStep:5}),o=Object.freeze({following:"FollowingUsers"}),a=(Object.freeze({more:"more",share:"share",listen:"listen",bookmark:"bookmark",translate:"issueTranslate",print:"print",download:"issueDownload",export:"export"}),Object.freeze({closed:0,opened:1,closing:2,opening:3,unknown:-1}))},46977:function(e,t,n){"use strict";var i,r=n(58932),o=n(29583),a=n(13302),s=n(2175),u=n(16213),c=n(44260),l=n(22537),d=n(84901),h=n(55683),f=n(26429),p=n(64936),m=n(43150),g=n(13384),v=n(71183),y=n(58323);function _(){this._panel=null,this._tintPanel=null,this._isVisible=!1,this._deferred=null,this._timer=null}a.extend(_.prototype,{_createTintPanel:function(){if(!this._tintPanel){var e=this;this._tintZIndex=(0,f.XH)(),this._tintPanel=o(document.body).createChild("div"),this._tintPanel.addClass("dialog-tint").css("z-index",this._tintZIndex),this._tintPanel.bind("click",(function(){e._panel.model&&e._panel.model.modal||e.hide.call(e,h.d.Cancel)}))}return this._tintPanel},_show:function(e,t,n,i){if(this._isVisible)return this._deferred.promise();this._createTintPanel(),this._deferred=new p.c;var r,a=this;if("object"==typeof e?(r=o.extend({messageType:"text",ndScrollDisabled:!1},e)).click=function(){a.hide(h.d.Ok)}:r={title:t||null,message:e,buttonTitle:n||c.Ay.val("Buttons.Close"),hideCloseButton:!!i,click:function(){a.hide(h.d.Ok)},ndScrollDisabled:!1},r.hideCloseButton?r.closeClick=o.noop:r.closeClick=function(e){return function(){e.hide(h.d.Close)}}(this),this._panel||(this._panel=o(document.body).createChild("div").addClass("alert-wrapper").css({position:"fixed",top:0,left:0,"z-index":this._tintZIndex+1,visibility:"hidden"}),l.Ay.resize(this._adjustWithDelay.bind(this)),d.A.oneNavigate((function(){a.hide(h.d.Ok)}))),r.templateContent){try{this._panel.html(r.templateContent)}catch(e){u.A.error(e)}ko.applyBindings(r,this._panel[0])}else{switch(r.type){case"busy":o.nd.templates.renderTo("v7.Client.Dialogs.Busy",r,this._panel);break;case"custom":o.nd.templates.renderTo(r.templateName,r,this._panel);break;default:o.nd.templates.renderTo("v7.Client.Dialogs.Alert",r,this._panel)}this._panel.model=r}var f=this._panel.children().css({opacity:0,margin:0});return this._isVisible=!0,this._adjust(),f.css({transitionProperty:"opacity",transitionTimingFunction:"ease-out",transitionDuration:"300ms",opacity:1,visibility:"visible"}),s.modal.set(),this._deferred.promise()},_adjustWithDelay:function(){this._timer&&clearTimeout(this._timer),this._timer=setTimeout(this._adjust.bind(this),200)},_adjust:function(){if(this._panel&&this._isVisible){var e=0,t=0,n=0,i=0,r=0,a=0,s=0,u=0;this._panel.find(".alert").each((function(){s=o(this).outerWidth(),u=parseInt(o(this).css("min-width")),s>u&&o(this).addClass("alert-textleft")})),this._panel.find(".alert-label").length>0&&(this._panel.find(".alert-label").show(),this._panel.addClass("alert-labeled")),this._panel.find("header:visible").each((function(){n=o(this).outerHeight(!0)})),this._panel.find(".controls:visible").each((function(){i=o(this).outerHeight(!0)}));var c=o.windowWidth(),l=o.windowHeight();this._panel.find(".alert-body").each((function(){o(this).css("height","auto"),r=o(this).outerHeight(),e=o(this).parent(".alert").height(),t=o(this).parent(".alert").outerHeight()-e,o(this).parent(".alert").outerHeight()>l?e=l-t:o(this).parent(".alert").css("height","auto"),a=e-n-i,o(this).height(a),a1?o(this).parent(".alert").addClass("alert-scaled"):o(this).parent(".alert").removeClass("alert-scaled")})),this._screenCenter(c,l),this._refreshScroll()}},_screenCenter:function(e,t){var n=this._panel.children();n.css({left:e-n.width()>>1,top:t-n.height()>>1})},_refreshScroll:function(){this._panel.find("[nd-scrollable]").each((function(){var e=o(this).data("scroller");e&&o.isFunction(e.refresh)&&e.refresh()}))},_loaded:function(){return Promise.all([c.Ay.loaded(),o.nd.templates.loaded()])},show:function(e,t,n,i){return this._loaded().then(this._show.bind(this,e,t,n,i))},confirm:function(e,t,n,i,r){var o=this;return this._loaded().then((function(){var a={message:e,messageType:r||"text",noButtonTitle:t||c.Ay.val("Buttons.No.Text"),yesButtonTitle:n||c.Ay.val("Buttons.Yes.Text"),hideCloseButton:!!i,noButtonClick:function(){o.hide(h.d.Cancel)},yesButtonClick:function(){o.hide(h.d.Ok)},templateName:"v7.Client.Dialogs.Confirm",type:"custom"};return o._show(a)}))},custom:function(e){var t=this;return this._loaded().then((function(){var n=o.extend({},{templateName:"v7.Client.Dialogs.Confirm",type:"custom"},e);return t._show(n)}))},confirmSafe:function(e,t,n,i){var r=this;return new Promise((function(o){r.confirm(e,t,n,i).then((function(){o(!0)})).catch((function(){o(!1)}))}))},alert:function(e,t,n){var i=this;return this._loaded().then((function(){var r={message:e,buttonTitle:t||c.Ay.val("Buttons.Ok.Text"),hideCloseButton:!!n,click:function(){i.hide(h.d.Ok)}};return i._show(r)}))},emaiVerification:function(e,t,n){return(0,r.sH)(this,arguments,void 0,(function(e,t,n,i){var o;return void 0===i&&(i=!1),(0,r.YH)(this,(function(a){return o=this,[2,this._loaded().then((function(){var a=this,s=ko.observable(!1),u=ko.observable(!0),c=ko.observable(!1),l=ko.computed((function(){return u()&&!s()})),d=ko.computed((function(){return u()&&s()})),f=ko.computed((function(){return!u()&&!i})),p={type:"custom",templateName:"v7.Client.Dialogs.EmailVerification",message:e,buttonTitle:(0,g.p3)("Buttons.Ok.Text"),hideCloseButton:!1,sendingEmail:s,reSendEmailEnabled:u,resentEmail:c,displaySendAgainButton:l,displaySendingButton:d,displayCloseButton:f,click:function(){return o.hide(h.d.Ok)},reSendClick:function(){return(0,r.sH)(a,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return s()?[2]:(s(!0),c(!0),window.setTimeout((function(){return s(!1)}),3e3),[4,(0,v.np)(t)]);case 1:return e.sent()===y.Bq.MaxNumberOfEmailsReached&&u(!1),[2]}}))}))},onRendered:function(){return function(e,t){var n=this,i=window.setInterval((function(){return(0,r.sH)(n,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,v.iY)(e)];case 1:return n.sent()!==y.m7.Registered?[3,3]:(clearInterval(i),[4,(0,v.Jv)({userName:e,password:t,enableAutologin:!0})]);case 2:n.sent(),o.hide(h.d.EmailVerified),n.label=3;case 3:return[2]}}))}))}),5e3)}(t,n)}};return o._show(p)}))]}))}))},hide:function(e){this._isVisible&&(s.modal.reset(),this._tintPanel.remove(),this._tintPanel=null,this._panel.remove(),this._panel=null,this._isVisible=!1,o(this).trigger("closed"),e===h.d.Close||e===h.d.Cancel?this._deferred.reject():this._deferred.resolve(e))},onClosed:function(e){o(this).one("closed",e)},visible:function(){return this._isVisible}}),o(document).keydown((function(e){if(i&&i.visible()&&e.which===m.u.esc)return i._deferred.reject(),i.hide(h.d.Close),!1})),o.nd.alert=function(){return i||(i=new _),i},t.A=o.nd.alert},91717:function(e,t,n){"use strict";var i=n(29583),r=(n(96723),function(){});r.prototype={_loader:null,load:function(){},onload:function(e){this._loader.setData(e)},onFail:function(e){this._loader.setFail(e)}},i.nd.baseLoader=function(){},i.nd.baseLoader.prototype={_provider:null,_loadPending:!1,_loading:!1,_triggerIfLoaded:function(){this._data&&i.nd.event.trigger("loaded",this,[this._data])},_triggerIfFailed:function(){this._data&&i.nd.event.trigger("failed",this,[this._data])},createBaseProvider:function(e){var t=new r;return e&&(t.load=e),t},setLoadFunction:function(e){var t=i.nd.user.loader.createBaseProvider();return t.load=function(){return e().then((function(e){t.onload(e)}))},this.setProvider(t),this},setProvider:function(e){return this._provider=e,this._provider._loader=this,this._loadPending&&(this._loadPending.length?this.load.apply(this,this._loadPending):this.load(),this._loadPending=!1),this},setData:function(e){this._loading=!1,this._data=e,this._triggerIfLoaded()},setFail:function(e){this._loading=!1,this._data=e,this._triggerIfFailed()},getData:function(){return this._data},load:function(){return this._data||(this._provider?this._loading||(this._loading=!0,this._provider.load.apply(this._provider,arguments)):this._loadPending=arguments),this},reload:function(){return this._data=null,this.load.apply(this,arguments),this},bind:function(e){return i.nd.event.bind(this,"loaded",e),this._triggerIfLoaded(),this},bindFail:function(e){return i.nd.event.bind(this,"failed",e),this}},i.nd.baseLoader.baseProvider=r},68520:function(e,t,n){"use strict";var i=n(13302),r=n(27189),o=n(28509),a=function(e){return e.toUpperCase().trim()},s=(0,i.mapKeys)(o.T,(function(e,t){return a(t)}));t.A={showDialog:function(){return r.A.getAsync("ui.Catalog.showObsoleteDialog").then((function(e){return void 0===e&&(e=""),(0,i.some)(e.split(","),(function(e){return s[a(e)]}))}))}}},16580:function(e,t,n){"use strict";var i=n(13302),r=null,o=0,a={};function s(){return r?r.config:{}}function u(e,t){if(null==e)return e;var n=function(t){return Object.keys(e).find((function(e){return e.toLowerCase()===t.toLowerCase()}))||t};if((t=n(t))in e)return e[t];var i=t.indexOf(".");if(-1!==i){var r=t.substring(0,i);if((r=n(r))in e)return u(e[r],t.substring(i+1))}}t.A={get:function(e,t){var n=e in a?a[e]:a[e]=u(s(),e);return void 0===n?t:n},extend:function(e){for(var t in r||(r={config:{}}),e){var n=r.config[t];n?(0,i.extend)(n,e[t]):r.config[t]=e[t]}a={},++o},configData:function(e){return arguments.length?(r=e,e&&!r.config&&(r.config={}),a={},++o):r},version:function(){return o},getConfig:s}},12815:function(e,t,n){"use strict";var i=n(29583),r=n(7443),o=n(66973),a=n(43125),s=n(89841),u=n(70483),c=n(58799),l=n(44260),d=n(2215),h=n(16213),f=n(18970),p=n(64936),m=n(91934);function g(e){this._raw=e}function v(e){this._raw=e}function y(e){u.A.apply(this,arguments),this.Enriches=e&&e.enriches}function _(e){for(var t in e)this[t]=e[t];e.Date&&(this.DateFormatted=l.Ay.formatDate((0,o.R)(e.Date),"v7.Client.DateFormat.Issue"))}g.ndExtend({_raw:null,name:function(){return this._raw.Nickname},photoUrl:function(){return this._raw.PhotoUrl},avatarImageId:function(){return this._raw.AvatarImageId},profileUrl:function(){return""}}),v.ndExtend({_raw:null,id:function(){return this._raw.PostId},_author:null,author:function(){return this._author||(this._author=new g(this._raw.UserProfile)),this._author},_date:null,date:function(){return this._date||(this._date=new Date(this._raw.PostTimeStamp)),this._date},body:function(){return this._raw.Text}}),y._minTextLength=200,y.byIdx=function(e,t){return e.Idx-t.Idx},y.byPageAscRateDesc=function(e,t){return 100*e.Page-e.Rate-100*t.Page+t.Rate},y.byRate=function(e,t){return t.Rate-e.Rate},(0,s.H)(y,u.A,{Type:r.p.article,_textLength:0,_hyphenated:!1,Idx:-1,Id:0,Title:null,HyphenatedTitle:null,Subtitle:null,Annotation:null,Page:0,Byline:null,Blocks:null,Images:null,Section:null,Rank:0,Rate:0,NormRate:0,Language:null,OriginalLanguage:null,ArticleId:void 0,StartBlockIdx:void 0,ContinuedFromPage:void 0,ContinuedFromPageName:void 0,CurrentTextLength:void 0,SecNormRate:0,isFiltered:!1,_votes:null,_translations:null,_original:null,_isLoadSupported:!0,ArticleType:0,getDesiredPreviewColumnsCount:function(){return 1},hyphenate:function(){if(!this.loaded()||this._hyphenated)return this;var e=this.Language||"en";if(this.Title&&(this.HyphenatedTitle=c.A.hyphenate(this.Title,e)),this.Subtitle&&(this.Subtitle=c.A.hyphenate(this.Subtitle,e)),this.Annotation&&(this.Annotation=c.A.hyphenate(this.Annotation,e)),this.Byline&&(this.Byline=c.A.hyphenate(this.Byline,e)),this.Images&&this.Images.length)for(var t=0;t=y._minTextLength||this.CurrentTextLength&&this.Images&&this.Images.length)&&this.checkTextLength()},checkTextLength:function(){return this.isValid()},isValid:function(){var e=!!i.trim(this.Title)&&((!this.Issue||!this.Issue.Id)&&(this.StartBlockIdx||0)<=this.Blocks.length||(this.StartBlockIdx||0)-1?m.Lg.socialArticle:this.isPreview()?m.Lg.ArticlePreview:m.Lg.RegularArticle},normalizedRate:function(){return this.NormRate},normalizedRank:function(){return this.Rank/5},similarArticlesCount:function(){return this.SimilarsCount||0},_comment:null,comment:function(){return!this._comment&&this.Comment&&(this._comment=new v(this.Comment.Posts[0])),this._comment}}),_.prototype={cid:function(){return(0,a.qT)(this.Id)},title:function(){return this.Title}};var b=function(){var e={},t={};return e.get=function(e){return e&&e.Id?e.Id in t?t[e.Id]:t[e.Id]=new _(e):null},e}();t.A=i.nd.data.article=y},71740:function(e,t,n){"use strict";var i=n(12010),r=n(13302),o=n(10358),a=n(11531),s=n(16213),u=n(78521),c=n(89885),l=n(97779),d=n(74877),h=n(44260);n(27189);var f=function(){function e(e,t){void 0===t&&(t=o.eV.large);var n=this;if(!e)throw new Error("dataComment cannot be null.");if(!e.userProfile)throw new Error('{authorProfile} cannot be empty, but it is for [comment.id="'.concat(e.id,'"] :('));var r=e.userProfile;e.parentCommentUserProfile&&(this.parentCommentUserProfile=e.parentCommentUserProfile),this.id=e.id||e.postId,e.parentId&&(this.parentId=e.parentId),this.articleId=e.articleId,this.isDeleted=i.observable(e.isDeleted),this.viewText=i.observable(e.viewText||e.text||""),this.editText=e.editText,this.isOwner=e.isOwner,this.authorNickname=r.nickname,this.authorProfileId=r.profileName||r.profileId,this.authorProfileName=this.authorProfileId,this.authorAvatarImageId=r.avatarImageId,this.authorPhotoUrl=r.photoUrl,this.isAuthorFollowed=i.observable(r.followedByCurrentUser),this.date=function(e){try{var t=new Date(e);return a.A.formatDate(a.A.formatTypes.comment,t)}catch(t){s.A.error("Can not convert date:".concat(e,", error: ").concat(t))}return""}(e.postTimeStamp),this.dateTimeStamp=e.postTimeStamp,this.prettyDate=(0,u.wT)(new Date(this.dateTimeStamp)),this.avatar=i.observable((0,o.tr)({nickname:this.authorNickname,imageId:this.authorAvatarImageId,size:t,fallbackAvatarUrl:this.authorPhotoUrl})),this.likesCount=i.observable(e.likesCount),this.dislikesCount=i.observable(e.dislikesCount),this.isVotedByUser=i.observable(!1),this.currentVote=i.observable(e.currentVote),this.isLiked=i.pureComputed((function(){return n.currentVote()===c.Ay.votes.like})),this.isDisliked=i.pureComputed((function(){return n.currentVote()===c.Ay.votes.dislike})),this.authorVote=i.observable(e.authorVote),this.publicId=e.publicId,this.repliesCount=e.repliesCount,this._setAttachments(e)}return e.prototype.update=function(e){this.viewText(e.viewText||e.text||""),this._setAttachments(e)},e.prototype.delete=function(){this.viewText(h.Ay.get("Dialogs.Comments.DeletedComment")),this.isDeleted(!0)},e.prototype._setAttachments=function(e){e.attachments?this.attachments=e.attachments:e.artifacts&&(this.attachments=(0,r.map)(e.artifacts,(function(e){return e.videoMeta&&e.videoMeta.videoUrl?new d.A({url:e.videoMeta.videoUrl,thumbnailImageId:e.objectId,thumbnailWidth:e.previewMeta.width,thumbnailHeight:e.previewMeta.height}):new l.A({imageId:e.objectId,width:e.previewMeta.width,height:e.previewMeta.height})}))),this.hasAttachments=!(0,r.isEmpty)(this.attachments)},e}();t.A=f},768:function(e,t,n){"use strict";var i,r=n(29583),o=(n(96723),{});o.onlineLoader=function(e){i=e},o.load=function(e,t,n){return i.load(e,t,n).then((function(e){return e||[]}))},o.clear=function(e){return i.clear(e)},t.A=r.nd.data.ftshistory=o},43121:function(e,t,n){"use strict";var i,r=n(29583),o=(n(96723),{});o.onlineLoader=function(e){i=e},o.load=function(e,t){return i?i.load(e,t).then((function(e){return e||[]})):Promise.reject()},t.A=r.nd.data.ftssuggestions=o},69481:function(e,t,n){"use strict";var i,r,o,a=n(27897),s=n(43125),u=n(23054),c=n(29583),l={},d={},h=0;function f(){return h||(h=a.yb(f,6e5)),u.A.load(i,r).then(m)}function p(){o||(o=f())}function m(e){try{var t=!i;i=e.timestamp,r=e.ctimestamp;var n=(new Date).getTime(),o=e.issues,a=l,s=d,u=!1;for(var h in o){var f=o[h];f&&((y=a[h])?y.id&&s[y.id]&&delete s[y.id]:a[h]=y=new g(h),y.update(f.d,f.v,f.w,f.h,f.a,n,f.id,f.x),y.id&&(s[y.id]=y),u=!0)}var p=e.comments;for(var m in p){var y,_=p[m];(y=s[m])&&_&&(y.posts=_),u=!0}t&&c.nd.event.trigger("loaded",v,v),u&&c.nd.event.trigger("updated",v,v)}catch(e){}return v}function g(e,t,n,i,r,o,a){this.cid=e,arguments.length>1&&this.update(t,n,i,r,o,a)}g.prototype={posts:0,update:function(e,t,n,i,r,o,a,u){this.id=a?a.toString():null,this.issueDate=new Date(parseInt(e.substr(0,4),10),parseInt(e.substr(4,2),10)-1,parseInt(e.substr(6,3),10)),this.issue=(0,s.bR)(this.cid,this.issueDate,t),this.pageWidth=n,this.pageHeight=i;var c=r;(c||0==c)&&(this.activated_ms=(o||(new Date).getTime())-6e4*(c||0),this.activated=new Date(this.activated_ms)),u&&(this.expungeVersion=u)},calculateThumbScale:function(e){return this.pageWidth?Math.floor(100*e/this.pageWidth):null},calculateWidthForScale:function(e){return this.pageWidth?Math.ceil(e*this.pageWidth/100):null},getMinutesSinceActivation:function(e){return this.activated_ms?Math.ceil(((e||(new Date).getTime())-this.activated_ms)/6e4)||1:null}};var v={load:function(){return p(),o},loaded:function(e,t){return 0==arguments.length?(p(),!!i):(c.nd.event.one(v,"loaded",e,t),i&&c.nd.event.trigger("loaded",v,v),p(),this)},updated:function(e,t){return c.nd.event.bind(v,"updated",e,t),p(),this},getIssue:function(e){return l[e]}};c.nd.issue=g,c.nd.data.issues=v,t.A=v},23054:function(e,t,n){"use strict";n(82230);var i=n(29583);t.A={load:function(e,t){return i.nd.config.loaded().then((function(){var n={},r=i.nd.config.get("catalog.timestamp");return r&&(n.cts=r),e&&(n.timestamp=e),t&&(n.ctimestamp=t),i.nd.services.api.get("issues",n)}))}}},88182:function(e,t,n){"use strict";var i=n(89841),r=n(70483),o=n(91934);function a(e){Object.assign(this,e),this._loaded=!0}a.getId=function(e){return e.Id},(0,i.H)(a,r.A,{getId:function(){return a.getId(this)},dataType:function(){return o.Lg.LastVisit},normalizedRank:function(){return 1}}),t.A=a},54267:function(e,t,n){"use strict";var i=n(13302),r=n(47197),o={},a=null;t.A={setSearchParams:function(e){o=(0,i.assign)({},e)},getSearchParams:function(){return o},load:function(e,t){var n={limit:20};return t<0?n.endToken=e:n.startToken=e,a&&a(o),(0,r.r0)(o.profileId,o.collectionId,n).then((function(e){var n=(0,i.map)(e.items||[],(function(e){return{Id:e.id,Type:e.type,Data:e.data}})),r=e.items.length,o=e.meta||{},a=n.length?o.firstToken:null,s=n.length?o.lastToken:null;return{items:n,leftToken:t<0&&r<20?null:a,rightToken:r<20?null:s}}))},setTopBarTitleHandler:function(e){(0,i.isFunction)(e)&&(a=e)}}},67658:function(e,t,n){"use strict";var i=n(89841),r=n(70483),o=n(91934);function a(e){Object.assign(this,e),delete this.Id,delete this.id}a.getId=function(e,t,n){return n>0?"".concat(e,"_").concat(t,"_").concat(n):"".concat(e,"_").concat(t)},(0,i.H)(a,r.A,{_isLoadSupported:!0,Id:function(){return a.getId(this.ProfileId,this.PageN1,this.PageN2)},update:function(e,t){return e&&(this.Page1=Object.assign({},e)),t&&(this.Page2=Object.assign({},t)),this},dataType:function(){return o.Lg.RegularPage},getId:function(){return this.Id()},normalizedRank:function(){return 0}}),t.A=a},72189:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var i=n(29583),r=n(13302),o=(n(96723),n(58799));function a(e,t){t=o.A.hyphenate(t),this.id=e,this.title=t}i.extend(a.prototype,{_items:null,id:null,title:null,type:0,renderingType:0,_raw:null,_countryName:null,count:function(){return this._items?this._items.length:0},_append:function(e){return this._items?this._items.push(e):this._items=[e],this},_prepend:function(e){return this._items?this._items.unshift(e):this._items=[e],this},add:function(e){return e.group(this),this},addItem:function(e){e.section&&(0,r.isFunction)(e.section._remove)&&e.section._remove(e),this._append(e)},append:function(e){return e._group!==this&&(e._group&&e._group._remove(e),e._group=this,this._items?this._items.push(e):this._items=[e]),this},prepend:function(e){return e._group!==this&&(e._group&&e._group._remove(e),e._group=this,this._items?this._items.unshift(e):this._items=[e]),this},_remove:function(e){for(var t=this._items.length-1;t>=0;--t)if(this._items[t]===e){1==this._items.length?delete this._items:this._items.splice(t,1);break}return this},remove:function(e){return e.group(null),this},item:function(e){return this._items?this._items[e]:null},items:function(){return this._items?this._items.slice(0):null},article:function(e){return this.item(e)},articles:function(){return this.items()},raw:function(e){return arguments.length?(this._raw=e,this):this._raw},countryName:function(){return arguments.length?(this._countryName=arguments[0],this):this._countryName},isLoaded:function(e){if(!this._items)return!0;for(var t=!0,n=e?Math.min(e,this._items.length):this._items.length,i=0;i=40)this._result.reject();else{var t=this;e[(this._direction<0?"prev":"next")+"Dfd"]().then((function(e){e?(t._item=e,t._exec()):t._result.reject()}),this._result.reject)}},_exec:function(){var e=this._item,t=this;this._item[this._name].apply(this._item,this._args).then((function(){e===t._item&&t._result.resolve.apply(this,arguments)}),(function(){e===t._item&&t._result.reject.apply(this,arguments)}))},dispose:function(){p.remove(this._onDetachHandler)}}),t.A=f},88083:function(e,t,n){"use strict";n(67303),n(2215);var i,r,o=n(58735),a=n(29583);t.A=(i=a,r=function(){var e={},t=!1,n=!1,r=null,a=null,s=null,u=null,c=null,l=null;function d(){l||(l={articles:i.Callbacks("once memory"),pages:i.Callbacks("once memory"),sections:i.Callbacks("once memory")})}function h(e,t){switch(d(),e){case 0:l.articles.add(t);break;case 1:l.pages.add(t);break;case 2:l.sections.add(t)}}e.onlineLoader=function(e){u=e},e.offlineLoader=function(e){c=e},e.articles=function(e){return e&&h(0,e),p(),r},e.pages=function(e){return e&&h(1,e),p(),a},e.sections=function(e){return e&&h(2,e),p(),s};var f=0;function p(){if(!t&&!n){t=!0;var e=f;!c||i.nd.utils.translation.currentLanguage()&&o.online()?(!c||u&&o.online())&&u.load((function(t){m(e,t)})):c.load((function(t){m(e,t)}))}}function m(e,i){if(e==f){if(i){a=i.Pages,r=[],s=[];for(var o=null,u=0;u0&&i.nd.alert().show({type:"custom",templateName:"v7.Client.Dialogs.DownloadWasCompleted",buttonTitle:i.nd.res.val("Buttons.Close"),activations:t.Activations}))})).catch((function(){i(e).trigger("finished")}))},onChooseActivation:function(t){i(e).one("chooseactivation",t)},onFinished:function(t){i(e).one("finished",t)}}}(),t.A=i.nd.devicedownload},74306:function(e,t,n){"use strict";var i=n(73690),r={download:function(e,t){var n={};return n.issue=e,t&&(n.downloadTo=t.join(",")),(0,i.G4)("devicedownload","download",n)}};t.A=r},37399:function(e,t,n){"use strict";var i,r,o,a,s,u,c,l=n(29583),d=(n(46977),n(27189),n(44260),n(30212));l.nd.deviceExport={setProvider:function(e){(i=e).onStarted=function(e){r=e,s=setTimeout((function(){i.getExportRequestStatus(r)}),1e3)},i.onProgress=function(e,t){u&&(o.message(e),o.percent(t||0),s=setTimeout((function(){i.getExportRequestStatus(r)}),1e3))},i.onComplete=function(){if(u){u=!1,clearTimeout(s),c.hide();var e=l.nd.config.get("ui.ExportToEReader").DownloadUrl+"?"+a;0==l("#redirectionFrame").length?l("body").append(l(' 0){var a=o[0];if(e.screenX=a.screenX,e.screenY=a.screenY,e.touchX=a.pageX,e.touchY=a.pageY,c&&o.length>1){var s=o[1];t.touchClientCX=a.clientX-(a.clientX-s.clientX)/2,t.touchClientCY=a.clientY-(a.clientY-s.clientY)/2,t.touchPageCX=a.pageX-(a.pageX-s.pageX)/2,t.touchPageCY=a.pageY-(a.pageY-s.pageY)/2}else t.touchClientCX=i,t.touchClientCY=i,t.touchPageCX=i,t.touchPageCY=i}else t.touchClientCX=i,t.touchClientCY=i,t.touchPageCX=i,t.touchPageCY=i,e.touchX=e.pageX,e.touchY=e.pageY;return e}function v(e){if(S(e,!0),!s&&!c){a.busy.set(),r=!0,e=g(e),s=!0,u=!1,d=!1,l=0;var t=e._data||e.data;t.target=this,t.ondragstart(this,e),e.preventDefault()}}function y(e){c=!0;var t=(e=g(e))._data||e.data,n=t.target;return d=!0,C(e),t.target=n,t.ongesturestart(n,e),!1}function _(e){if(c){var t=(e=g(e))._data||e.data,n=t.target;t.ongesturechange(n,e,t)}}function b(e){if(c){_(e=g(e)),c=!1;var t=e._data||e.data,n=t.target;t.ongestureend(n,e),t.target=null,l=p()}return!1}function w(e){if(e=g(e),!c&&s){var t=e._data||e.data;return t.ondraggo(t.target,e),d&&C(e),!1}}function C(e){if(e=g(e),s)try{s=!1,u=!1;var t=e._data||e.data;t.ondragstop(t.target,e,d),t.target=null,d=!1,t.isMouseMoved&&(l=p())}finally{a.busy.reset()}return!1}function A(e){r||1==o.fix(e).which&&(a.busy.set(),s=!0,u=!1,d=!1,l=0,e.data.target=this,e.data.ondragstart(this,e),m().dragbind("mousemove",e.data,I).dragbind("mouseup",e.data,S),e.preventDefault())}function I(e){if(r)return!1;if(1!=o.fix(e).which)S(e);else{var t=e._data||e.data;t.target&&t.ondraggo(t.target,e),!d&&t.target||S(e)}return!1}function S(e,t){if(r)return!1;if(s)try{if(s=!1,u=!1,m().dragunbind("mousemove",I).dragunbind("mouseup",S),t)return!1;var n=e._data||e.data;n.ondragstop(n.target,e,d),n.target=null,d=!1,n.isMouseMoved&&(l=p())}finally{a.busy.reset()}return!1}o.fn.dragbind=o.fn.ndbind,o.fn.dragunbind=o.fn.ndunbind,document.body.addEventListener("drag",f),document.body.addEventListener("selectstart",f);var P=function(e){var t=this;return t&&t.ondragstart?(e&&o.each(e,(function(e,n){t[e]=n})),t.dragStat=[],t.threshold=t.threshold||1,t.useTransforms=t.useTransforms&&o.support.transform,t):e&&e.ondragstart?e:new P(e)};P.prototype={startX:0,startY:0,newX:0,newY:0,dX:0,dY:0,dx:0,dy:0,_sx:0,_sy:0,isMouseMoved:!1,autoDrag:!1,enableStat:!1,disableX:!1,disableY:!1,useTransforms:!1,beforeDragStart:0,dragStart:0,dragGo:0,dragStop:0,threshold:0,maxScrollX:null,minScrollX:null,maxScrollY:null,minScrollY:null,ongesturestart:function(e,t){this.scale=1,this.gestureStart&&this.gestureStart(e,t,this)},ongesturechange:function(e,t){this.scale=t.scale,this.gestureChange&&this.gestureChange(e,t,this)},ongestureend:function(e,t){this.gestureEnd&&this.gestureEnd(e,t,this)},ondragstart:function(e,t){var n=this;n.beforeDragStart&&n.beforeDragStart(e,t,n),n.isMouseMoved=!1,n.dragStat.length=0,n.dragStat.idx=0,n._sx=n.__sx=t.screenX,n._sy=n.__sy=t.screenY,n.dx=n.dy=n.dX=n.dY=0,n.useTransforms?(n.matrix=new o.nd.matrix(o.css(e,"transform")),n.matrixTx=n.matrix.tx,n.matrixTy=n.matrix.ty,n.startX=n.matrixTx,n.startY=n.matrixTy):(n.startX=e.offsetLeft,n.startY=e.offsetTop),n.newX=n.startX,n.newY=n.startY,n.startX2=n.startX,n.startY2=n.startY,n.starTime=t.timeStamp,n.startTime2=t.timeStamp,n.dTime=0,n.dTime2=0,n.dragStart&&n.dragStart(e,t,this)},ondraggo:function(e,t){if(t.screenX){this._sx||this.ondragstart(e,t);var n=this,i=n.disableX?0:t.screenX-n._sx,r=n.disableY?0:t.screenY-n._sy,a=n.disableX?0:t.screenX-n.__sx,s=n.disableY?0:t.screenY-n.__sy;if(n.__sx=t.screenX,n.__sy=t.screenY,!n.isMouseMoved){if(this.threshold>0){if(Math.abs(i)n.minScrollX&&(n.newX=n.bounce?c+a/2.4:n.minScrollX,n.adjustGDelta(n.newX-n.startX,null)),null!==n.maxScrollY&&n.newYn.minScrollY&&(n.newY=n.bounce?l+s/2.4:n.minScrollY,n.adjustGDelta(null,n.newY-n.startY)),n.dragGo&&n.dragGo(e,t,this),n.autoDrag&&(this.useTransforms?(this.matrix.tx=parseInt(this.matrixTx+n.dX),this.matrix.ty=parseInt(this.matrixTy+n.dY),e.style[o.props.transform]=this.matrix.toTranslateString()):(0!=n.dx&&(e.style.left=parseInt(n.newX)+"px"),0!=n.dy&&(e.style.top=parseInt(n.newY)+"px")));var d=t.timeStamp;if(n.dragStat.length){var h=n.dragStat.idx,f=n.dragStat[h];d-f.time>100?(h=n.dragStat.idx=h>=2?0:h+1)>=n.dragStat.length?n.dragStat[h]={time:d,last:d,dx:n.dx,dy:n.dy,idx:h,startX:n.newX,startY:n.newY}:((f=n.dragStat[h]).last=f.time=d,f.dx=n.dx,f.dy=n.dy,f.startX=n.newX,f.startY=n.newY):(f.dx+=n.dx,f.dy+=n.dy,f.last=d)}else n.dragStat.push({time:d,last:d,dx:n.dx,dy:n.dy,idx:0,startX:n.newX,startY:n.newY});t.timeStamp-n.startTime2>300&&(n.startTime2=t.timeStamp,n.startX2=n.newX,n.startY2=n.newY)}},ondragstop:function(e,t,n){n&&(this.dragStat.length=0,this.dragStat.idx=0);var i=this.dragStat.idx+1;i>=this.dragStat.length&&(i=0);var r=this.dragStat[i];r&&(this.dTime=t.timeStamp-this.starTime,this.dTime2=t.timeStamp-r.time,this.dX2=this.newX-r.startX,this.dY2=this.newY-r.startY),this.dragStop&&this.dragStop(e,t,this)},getStat:function(){if(this.dragStat.length>0){var e=this.dragStat[this.dragStat.idx];if(this.dragStat.length>1){var t=this.dragStat.idx-1,n=this.dragStat[t<0?this.dragStat.length-1:t];e.time-n.time<150&&e.last-e.time<50&&(e=n)}return e}return{dx:0,dy:0}},momentum:function(e,t,n,i,r){var o,a=0,s=6e-4,u=Math.abs(e)/t,c=u*u/.0012,l=0;return e>0&&c>n?(a=800/r*(l=r/(6/(c/u*s)))+100,u=u*(n+=l)/c,c=n):e<0&&c>i&&(a=800/r*(l=r/(6/(c/u*s)))+100,u=u*(i+=l)/c,c=i),c*=e<0?-1:1,o=u/s,{dist:Math.round(c),time:Math.round(o),returnTime:Math.round(a)}},adjustDelta:function(e,t){var n=this;(e||0===e)&&(n.dX-=n.dx-e,n.dx=e,n.newX=n.startX+n.dX),(t||0===t)&&(n.dY-=n.dy-t,n.dy=t,n.newY=n.startY+n.dY)},adjustGDelta:function(e,t){var n=this;(e||0===e)&&(n.dx-=n.dX-e,n.dX=e,n.newX=n.startX+n.dX),(t||0===t)&&(n.dy-=n.dY-t,n.dY=t,n.newY=n.startY+n.dY)}},o.fn.turnOnDrag=function(e){var t=P(e);return this.dragbind("touchstart",t,v).dragbind("touchmove",t,w).dragbind("touchend",t,C),this.dragbind("gesturestart",t,y).dragbind("gesturechange",t,_).dragbind("gestureend",t,b),this.bind("mousedown",t,A).bind("drag selectstart",h)},o.fn.turnOffDrag=function(){return this.dragunbind("touchstart",v).dragunbind("touchmove",w).dragunbind("touchend",C),this.dragunbind("gesturestart",y).dragunbind("gesturechange",_).dragunbind("gestureend",b),this.unbind("mousedown",A).unbind("drag selectstart",h)},o.fn.turnOnAutoDrag=function(){return this.turnOnDrag({autoDrag:!0})},o.nd.drag={data:P,inDrag:function(){return s},hasBeenInDrag:function(){return u||p()-l<100},cancel:function(){d=!0}}},89885:function(e,t,n){"use strict";n.d(t,{DA:function(){return a},Fc:function(){return c},KF:function(){return u},_l:function(){return l},cf:function(){return d},l8:function(){return o},mo:function(){return h},xq:function(){return s}}),n(96723);var i=n(29583),r={},o=r.views=i.nd.views={textView:"$.nd.views.textView",pageView:"$.nd.views.pageView",radioView:"$.nd.views.radioView"},a=r.issueMenuOptions=i.nd.issueMenuOptions={all:0,issueDate:1,lang:2,listen:3,share:4,download:5,export:6,feedSettings:7,addToFavorites:8,readingMap:9,interfaceLang:10,fonts:11,autoTranslate:12,togglePervasive:13,toggleFacelift:14,toggleHotspot:16,emailAlerts:17},s=(r.addSectionModes=i.nd.addSectionModes={notDefined:0,main:1,byCountry:2,byLanguage:3,issue:4},r.historyTokenTypes=i.nd.historyTokenTypes={notDefined:0,left:1,right:2}),u=(r.searchArea=i.nd.searchArea={Articles:1,HotSpots:2,Opinions:3,Catalog:4},r.cellType=i.nd.celltype={unknown:-1,column:0,figure:1,header:2,myTitles:3,imagesHeader:4},r.readingMapReportTypes=i.nd.readingMapReportTypes={attentionMap:0,readingTime:1,adValue:2}),c=(r.opinionSupportersChart=i.nd.opinionSupportersChart={members:0,newMembers:1,mentions:2},r.usersSortOrder={alphabet:0,followDate:1,alphabetDesc:2,recent:3,followersCountAsc:4,followersCountDesc:5},r.columnTypes={content:0,misc:1,sectionHeader:2,header:3,categoryTail:3,imagesHeadline:4,replies:6,initBlock:7,monitors:11,coverBlock:12,opinion:13,homeBlock:14,socialInfo:15,adBlock:16,profile:17,bookmarkPages:18,recommendedOpinions:19,promoSection:20,gift:22,ctaSignUpSection:24,giftVideoAd:25},r.catalogMenuOptions=i.nd.catalogMenuOptions={sortModeSelector:1,viewModeSelector:2},r.catalogViewType=i.nd.catalogViewType={list:0,small_grid:1,grid:2,newsstand:3},r.catalogSortType=i.nd.catalogSortType={by_alphabet:0,most_popular:1,most_current:2},r.articleGroupTypes=i.nd.articleGroupTypes={unknown:-1,headlines:0,interesting:1,users:2,moreNewsCluster:3,readersChoice:4,sinceYourLastVisit:5,category:6,topic:7,userSection:8,followedChannel:9,directArticleLink:10,followedOpinion:11},r.shareTypes=Object.freeze({facebook:"facebook",twitter:"twitter",google:"google",email:"email",instapaper:"instapaper",evernote:"evernote",onenote:"onenote"})),l=r.shareContentTypes=Object.freeze({opinion:"opinion",article:"article",page:"page",pageSet:"pageSet",issue:"issue",gift:"gift",comment:"comment",resource:"resource"}),d=(r.bookmarkUrlPattern={default:"bookmark",channel:"channel"},r.scrollReason={unspecified:0,drag:1,fling:2,bounce:3,mouseWheel:4,keyPress:5,alignmentCorrection:6,scrollZone:7}),h=r.contextPreviewType={article:"article",page:"page",pageSet:"pageSet"};r.votes={like:1,dislike:-1},t.Ay=r},96543:function(e,t,n){"use strict";var i,r,o=n(29583),a=n(29583),s=o.nd=o.nd||{};s.event=(i={trigger:function(e,t){return r.trigger(e,i,t),i},bind:function(e,t,n){return r.bind(i,e,t,n),i},unbind:function(e,t){return r.unbind(i,e,t),i}},r={global:i,makeEvent:function(e,t){return e||(e={}),e.type=t,e},createEventDelegate:function(e){return function(t,n){return 0==arguments.length||1==arguments.length&&!o.isFunction(t)?r.trigger(e,this,t):r.bind(this,e,t,n),this}},add:function(e,t,n,i){var a,s;n.handler&&(n=(a=n).handler),n.guid||(n.guid=o.guid++);var u=o.data(e);if(u){var c=u.events=u.events||{};(s=a?o.extend({},a):{handler:n,data:i}).type=t,s.guid=n.guid;var l=c[t];return l||(l=c[t]=[]),l.push(s),{dispose:function(){r.unbind(e,t,n)}}}},trigger:function(e,t,n){var i=e.type||e;i==e&&(e={type:i});var r=o.data(t),a=r&&r.events;if(r&&a){var s=a[i];if(s&&0!==s.length){s=s.slice(0);var u=o.makeArray(n);u.unshift(e);for(var c=0;c0&&t>0&&e>t?(this.max=e,this.min=t):(this.min="number"==typeof e&&e>=0?e:void 0,this.max="number"==typeof t&&t>=0?t:void 0),Object.freeze(this)},a=n(13302);function s(e,t){if("number"!=typeof e)throw new TypeError("".concat(t," has to be a number"))}var u=function(){function e(e){void 0===e&&(e={});var t=this;this._visible=!0,this.id=e.id||"",this.priority=0,void 0!==e.priority&&(s(e.priority,"priority"),this.priority=e.priority),void 0!==e.row&&(s(e.row,"row"),this.row=e.row),this.contentBounds=e.contentBounds?new(o.bind.apply(o,(0,r.fX)([void 0],(0,r.zs)(e.contentBounds),!1))):new o,this.heightPxBounds=e.heightPxBounds?new(o.bind.apply(o,(0,r.fX)([void 0],(0,r.zs)(e.heightPxBounds),!1))):new o,this.heightPctBounds=e.heightPctBounds?new(o.bind.apply(o,(0,r.fX)([void 0],(0,r.zs)(e.heightPctBounds),!1))):new o,["getHeight","getContentSize","canHide","increase","decrease"].forEach((function(n){var i=e[n];void 0!==i&&(t[n]=a.isFunction(i)?i:function(){return i})})),e.hide&&(this.hide=function(n){t._visible=!1,e.hide(n)})}return e.prototype.getHeight=function(){return 0},e.prototype.getContentSize=function(){return 0},e.prototype.canHide=function(){return!1},e.prototype.increase=function(){},e.prototype.decrease=function(){},e.prototype.canIncrease=function(){var e=this.getContentSize(),t=this.contentBounds;return void 0!==t.max&&e0){var t=this.contentBounds;return void 0!==t.min&&e>t.min}return!1},e.prototype.hasMinContent=function(){var e=this.getContentSize(),t=this.contentBounds;return void 0===t.min||e>=t.min},e.prototype.fits=function(e){void 0===e&&(e=0);var t=this.getHeight(),n=this.heightPxBounds,i=this.heightPctBounds,r=!0;return void 0!==n.max&&(r=t<=n.max),e&&r&&void 0!==i.max&&(r=t<=i.max*e),r&&(!e||t=0?n++:t++}if(t>0&&n>0)throw new Error("One of the blocks is missing 'row' property")}(e);for(var t=0,n=0;n0&&!i;r++)for(var o=e[r],a=t.getPriorityBlocks(o),s=0;s0&&!i;s++){var u=a[s];u.visible&&(i=n(u))}}function c(e,t){var n=e.indexOf(t);return n>-1?e.slice(n+1):[]}i[d.HOEGAARDEN]=new l((function(e){for(var t=e.getContainerHeight(),n=!e.fits()||e.loops()<1,i=e.getPriorityQueue();!n;){var r=0;u(i,e,(function(n){e.fits()&&n.fits(t)&&n.canIncrease()&&(n.increase(e),e.fits()&&n.fits(t)?r++:n.decrease(e))})),n=!r||e.loops()<1}}),(function(e){var t=e.getPriorityQueue();u(t,e,(function(n){if(n.visible){var i=c(t,n.priority);n.canIncrease()?function(e,t,n){for(var i=t.getContainerHeight(),r=!e.canIncrease()||t.loops()<1||!t.fits(i);!r;)t.fits()?e.canIncrease()&&e.fits(i)&&t.fits()?e.increase(t):e.fits(i)||(e.decrease(t),r=!0):a(t,n)||(e.decrease(t),r=!0),r=r||!e.canIncrease()&&t.fits(i)&&e.fits(i)||t.loops()<1}(n,e,i):e.fits()||a(e,i)}}))}),(function(e){var t=e.getPriorityQueue();u(t,e,(function(n){var i=c(t,n.priority);!function(e,t,n){for(var i=t.getContainerHeight(),r=!e.visible||!e.fits(i)||e.hasMinContent()||!e.canIncrease()||t.loops()<1;!r;)e.fits(i)?t.fits()?!e.hasMinContent()&&e.canIncrease()&&t.fits()&&e.increase(t):s(t,n)||(e.decrease(t),r=!0):(e.decrease(t),r=!0),r=r||e.hasMinContent()&&t.fits(i)&&e.fits(i)||t.loops()<1}(n,e,i)}))}),(function(e){for(var t=e.getContainerHeight(),n=e.loops()<1,i=e.getPriorityQueue();!n;){var r=0;u(i,e,(function(n){e.fits()&&n.fits(t)&&n.canIncrease()&&(n.increase(e),e.fits()&&n.fits(t)?r++:n.decrease(e))})),n=!r||e.loops()<1}})),i[d.LEFFE_BLOND]=new l(r),i[d.BLANCHE_DE_BRUXELLES]=new l((function(e){u(e.getPriorityQueue(),e,(function(t){for(;t.canIncrease()&&e.loops()>0;)t.increase(e)}))}),(function(e){e.fits()||u(e.getPriorityQueue().reverse(),e,(function(t){for(;t.canDecrease()&&e.loops()>0;)if(t.decrease(e),e.fits())return!0}))}),r,o),i[d.GUINNESS]=new l((function(e){e.fits()||u(e.getPriorityQueue().reverse(),e,(function(t){for(var n=e.fits()||e.loops()<1;!n;)t.visible&&(t.canDecrease()?t.decrease(e):t.hide(e)),n=e.loops()<1||e.fits()||!t.visible;if(e.fits())return!0}))})),i[d.BUDWEISER]=new l(o),this.build=function(e){(i[e]||i[d.HOEGAARDEN]).execute(n)}},Context:f,LayoutStrategy:d,Block:u}},22537:function(e,t,n){"use strict";var i=n(29583),r=n(14099),o=n(96543),a=(n(96723),function(e){this.val=e,this.isAuto="auto"==e,this.isFixed=!this.isAuto});a.auto=new a("auto"),a.fix=function(e){return e||0==e?null==e.isAuto?new a(e):e:a.auto};var s=function(e){this.val=e,this.isAuto="auto"==e,this.isFill="fill"==e,this.isFixed=!this.isAuto&&!this.isFill};s.auto=new s("auto"),s.fill=new s("fill"),s.fix=function(e){return e||0==e?null==e.isAuto?new s(e):e:s.auto};var u={Verticale:0,Horizontal:1},c=function(e,t,n){for(var i in this._layout=t,this._parent=n,this._childs=[],this._rect=new r.A,this._layerType=u.Verticale,this._visible=!0,e)this["_"+i]=e[i];this._verticale=this._layerType===u.Verticale,this._horizontal=this._layerType===u.Horizontal,this._height=s.fix(this._height),this._width=s.fix(this._width),this._left=a.fix(this._left),this._top=a.fix(this._top),this.init()};c.prototype=c.fn={init:function(){if(!this._elm){var e="Panel_"+this.name(),t=document.getElementById(e);if(null!==t)this._elm=i(t);else{var n=this._parent?this._parent.elm():i(document.body);this._elm=n.createChild("div","absolute"),this._elm[0].id=e}}this._left.isFixed&&this.left(this._left.val),this._top.isFixed&&this.top(this._top.val),this._width.isFixed&&this.width(this._width.val),this._height.isFixed.val&&this.height(this._height),this.visible(this._visible)},_update:function(){var e=this.node();return this._rect.left=e.offsetLeft,this._rect.top=e.offsetTop,this._width.isFill||(this._rect.width=e.offsetWidth),this._height.isFill||(this._rect.height=e.offsetHeight),this},resize:function(e,t){return arguments.length>0?o.A.bind(this,"resize",e,t):o.A.trigger(i.Event("resize"),this),this},oncontentchanged:function(){return this._updating||this._update()._layout.reflow(),this},left:function(e){return arguments.length?this._rect.left!=e?(this.elm()[0].style.left=e+"px",this._rect.left=e,this.oncontentchanged()):this:this._rect.left},top:function(e){return arguments.length&&this._rect.top!=e?(this.elm()[0].style.top=e+"px",this._rect.top=e,this.oncontentchanged()):this._rect.top},width:function(e){return arguments.length?this._rect.width!=e?(this.elm()[0].style.width=e+"px",this._rect.width=e,this.oncontentchanged()):this:this._rect.width},height:function(e){return arguments.length?this._rect.height!=e?(this.elm()[0].style.height=e+"px",this._rect.height=e,this.oncontentchanged()):this:this._rect.height},show:function(){return this.visible(!0)},hide:function(){return this.visible(!1)},visible:function(e){return arguments.length?this._visible!=e?(this._visible=e,this.elm()[e?"show":"hide"](),this.oncontentchanged()):this:this._visible},node:function(){return this._elm[0]},createChild:function(e){var t=new c(e,this._layout,this);return e=null,t.name()&&(this[t.name()]=function(){return t}),this._childs.push(t),t},reflow:function(e,t,n,i){this._updating=!0;var r=!1;if(this._left.isFixed||this.left(e),this._top.isFixed||this.top(t),this._width.isFill&&this.width()!==n&&(this.width(n),r=!0),this._height.isFill&&this.height()!==i&&(this.height(i),r=!0),this._childs.length>0){var o=this.rect(),a=o.width,s=o.height,u=0;if(this.verticale())for(var c=0,d=this._childs.length;c0&&t>0&&(n.width=e,n.height=t,this.root()&&(t-=this.root().elm().offset().top,n.height=t,this.root().reflow(0,0,e,t)),this.resize()),this}a=!0},size:function(){return n},resize:function(e,t){return arguments.length>0?o.A.bind(this,"resize",e,t):o.A.trigger(i.Event("resize"),this),this}};i.browser.chromeIOS&&((t={last:void 0,watchFn:function(){return i.windowHeight()},listenerFn:function(e,t){Math.abs(e-t)<=1||window.dispatchEvent(new Event("resize"))}}).last=t.watchFn(),setInterval((function(){var e=t.watchFn();e!==t.last&&t.listenerFn(e,t.last),t.last=e}),500));var u,l,d,h,f=function(){function e(){for(var e=0;eh.height)n=!0;else{var o=(e=r.height,t=h.height,100*Math.abs(1-e/t));o<=20&&0!==o?n=!0:(n=!1,u.setPropertyValue("height",h.height))}!0===n&&u.setPropertyValue("height",r.height),u.hasChanges()&&u.applyViewport(),!0===n&&(l.reflow(),h=r)}()}),600))}});return s.viewPort=f,s}();i.nd.layout=d,i.nd.layout.size=s,i.nd.layout.pos=a,i.nd.layout.panel=c,i.nd.layout.panelType=u,t.Ay=d},47470:function(e,t,n){"use strict";var i,r=n(29583),o=n(82230);n(22537),r.nd.layout.provider=i={getArticleRegions:function(e){return o.A.get("layout","GetArticleRegions",{articleId:e})}},t.A=i},26429:function(e,t,n){"use strict";n.d(t,{XH:function(){return u},gF:function(){return c},yP:function(){return s}});var i=n(29583),r=n(13302),o=1e3;function a(){var e=i(".dialog-tint:visible"),t=(0,r.max)((0,r.map)(e,(function(e){return parseInt(i(e).css("z-index"),10)||o})));return(0,r.max)([t,o])}function s(){return a()+1}function u(){return a()+2}function c(){return u()+1}},11261:function(e,t,n){"use strict";n(96723);var i=n(29583),r={showNewspaper:function(e){return!1},showIssue:function(e){return!1},showIssueDetails:function(e){return!1},showIssuePage:function(e,t){return!1},redirect:function(e,t){return!1},navigateRelative:function(e){return!1},navigateAbsolute:function(e){return!1},showDocument:function(e){return!1}};t.A=i.nd.navigation={setProvider:function(e){return i.extend(r,e),this},showNewspaper:function(e){return e&&r.showNewspaper(e),this},showIssue:function(e){return r.showIssue.apply(r,arguments),this},showIssueDetails:function(e){return r.showIssueDetails(e),this},showIssuePage:function(e,t){return r.showIssuePage.apply(r,arguments),!0},showArticle:function(e,t){return r.showArticle.apply(r,arguments),this},redirect:function(e){return r.redirect(e),this},navigateRelative:function(e){return r.navigateRelative(e),this},navigateAbsolute:function(e){return r.navigateAbsolute(e),this},showDocument:function(e){return r.showDocument(e),this}}},67650:function(e,t,n){"use strict";var i=n(65678),r=(n(11261),n(84901)),o=n(27189),a=n(13981),s=n(78698),u=n(29583);u.nd.navigation.setProvider({showNewspaper:function(e){return o.A.get("features.issue.detailsview",!1)?r.A.goView(i.lP.IssueDetails,{cid:e}):(r.A.goView(i.lP.PagesView,{cid:e}),!0)},showIssueDetails:function(e){return r.A.goView(i.lP.IssueDetails,e)},showIssue:function(e,t){return o.A.get("features.issue.detailsview",!1)?r.A.goView(i.lP.IssueDetails,{issue:e,data:t}):(r.A.goView(i.lP.PagesView,{issue:e,data:t}),!0)},showIssuePage:function(e,t){if(t)r.A.goView(i.lP.PagesView,{issue:t,page:e});else{var n=u.nd.viewer.pages.getPage(e);u.nd.viewer.pages.gotoToPage(n)}return!0},showArticle:function(e,t){var n=u.nd.viewer.views.getActiveViewName();if(n!==i.lP.TextView&&n!==i.lP.External){var o=0x800000000000;if(u.nd.longBitwiseAnd(this.articleId,o)==o)r.A.goView(i.lP.External,{issue:t,articleId:e});else{var c=(0,a.Lt)(s.uF);n===i.lP.PagesView&&c?r.A.goView(i.lP.Article,{articleId:e}):r.A.goView(i.lP.TextView,{issue:t,articleId:e})}}else u.nd.viewer.views.getActiveView().jump(e)},redirect:function(e){var t=r.A.getReturnUrl(),n=e+(-1===e.indexOf("?")?"?":"&")+"returnurl="+t;window.location=n},navigateRelative:function(e){e=e||"";var t=window.basePath||"/";0===e.indexOf(t)&&(t=""),0===e.indexOf("/")&&t.lastIndexOf("/")===t.length-1&&(e=e.slice(1)),window.location=t+e},navigateAbsolute:function(e){window.location=e},showDocument:function(e){r.A.goView(i.lP.DocumentView,{documentId:e})}})},84901:function(e,t,n){"use strict";n.d(t,{Q:function(){return p}});var i,r,o,a=n(29583),s=n(27602),u=n(60019),c=n(76082),l=n(13981),d=n(51038),h=n.n(d),f=n(65678),p=a.nd.navHistory=(i=0,r=!1,o=!1,{historyProvider:{back:function(){(0,l.JD)((0,s.gN)())}},registerView:u.FU,getViewUrl:u.Jf,goView:function(e,t,n,i,r){var o=t||{};e!==f.lP.StoreHub||o.catalogView||(o.catalogView=f.$r.Catalog),(0,l.JD)((0,s.sh)({viewName:e,params:o,replace:n,ignoreIssueInfo:i,isForceReplace:r}))},updateState:function(e,t,n){i++,(0,l.JD)((0,s.By)({params:e,reload:t,url:n}))},updateStateCallCount:function(){return i},resetState:function(){(0,l.JD)((0,s.PX)())},getState:function(){return(0,l.Lt)(s.Ae)},getReturnUrl:function(){return encodeURIComponent(window.location.href)},onNavigate:function(e){r||(r=!0,(0,c.pO)((function(t){if("REPLACE"!==t.action){var n=t.location.state,i={state:n,stateLess:{},viewName:n.viewName||f.lP.Error};e(i)}})))},oneNavigate:function(e){if(!o){o=!0;var t=h()(e);(0,c.pO)((function(e){if("REPLACE"!==e.action){var n=e.location.state,i={state:n,stateLess:{},viewName:n.viewName||f.lP.Error};t(i)}}))}},replaceState:function(e,t){(0,l.JD)((0,s.SP)({to:e,state:t}))},get isLanding(){return u.Go},set isLanding(e){(0,u._n)(e)}});t.A=a.nd.navHistory},1209:function(e,t,n){"use strict";var i,r,o,a,s,u,c,l,d,h,f,p,m,g,v,y=n(29583),_=n(51175);function b(){return y("
")}function w(e){var t=parseInt(e);return null==t||isNaN(t)?0:t}function C(e){r=e.maxX1,o=e.maxY1,a=e.maxX2,s=e.maxY2,u=e.minWidth,c=e.minHeight,h=e.selectionWidth,f=e.selectionHeight}i={init:function(e,t){C(t),l=b().css({left:t.selectionX1,top:t.selectionY1}).width(h).height(f).addClass("area-select"),g=e.width(),v=e.height(),_.Ay.bind(l,{gesturesStart:function(e){p=w(l.css("left")),m=w(l.css("top")),h=l.outerWidth(),f=l.outerHeight()},scroll:function(e){var t,n,i,d,y,_,b=e.target();"area-select"==b.className?(t=e.position().x,n=e.position().y,i=e.origin().x,d=e.origin().y,(y=p+t-i)p+h&&(a=p+h-u,d=u),s+c>m+f&&(s=m+f-c,g=c),l.width(d),l.height(g),l.css({left:a,top:s})}(e.position().x,e.position().y,e.origin().x,e.origin().y):"handle-se"==b.className&&function(e,t,n,i){var r=h+e-n,o=f+t-i;g-p-rg-p&&(r=u),v-m-o+c>v-m&&(o=c),l.css({width:r,height:o})}(e.position().x,e.position().y,e.origin().x,e.origin().y)}}),d=b().addClass("handle-nw").add(b().addClass("handle-se")),l.append(d),e.append(l)},change:function(e,t){C(t),g=e.width(),v=e.height(),l.css({left:t.selectionX1,top:t.selectionY1,width:t.selectionWidth,height:t.selectionHeight})},dispose:function(){l.off(),i=r=o=a=s=l=d=h=f=p=m=g=v=null},getTop:function(){return w(l.css("top"))},getLeft:function(){return w(l.css("left"))},getWidth:function(){return l.outerWidth()},getHeight:function(){return l.outerHeight()}},t.A=i},50911:function(e,t,n){"use strict";var i,r,o,a=n(29583),s=n(96587),u=n(27189),c=n(44260),l=n(25118),d=(n(2293),{main:0,paperSize:1});function h(){r&&r.hide&&r.hide()}function f(){a(i).off("print"),r=o=null}i={show:function(e){(r=s.default.getInstance()).onHide(f);var t=u.A.get("onlineprinting_papersizes",[]),n=[];for(var p in t)n.push({name:p,selected:ko.observable(!1),checkPaperSize:function(e){ko.utils.arrayForEach(o.paperSizes,(function(t){t.name===e.name?t.selected(!0):t.selected(!1)})),o.checkedPaperSize(e.name)}});var m=[{id:i.orientation.portrait,name:c.Ay.val("OnlinePrint.Portrait")},{id:i.orientation.landscape,name:c.Ay.val("OnlinePrint.Landscape")}],g=[];ko.utils.arrayForEach(m,(function(e){g.push({id:e.id,name:e.name,selected:ko.observable(!1),checkOrientation:function(e){ko.utils.arrayForEach(o.paperOrientations,(function(t){t.id===e.id?t.selected(!0):t.selected(!1)})),o.checkedOrientationName(e.name),o.checkedOrientation(e.id)}})}));var v=l.default.getDefaultPaperSize(),y=ko.utils.arrayFirst(n,(function(e){return e.name==v})),_={templateName:"v7.Client.Dialogs.Print.Settings",model:o={thumbs:ko.observableArray((null==e?void 0:e.thumbs)||[]),header:ko.observable(c.Ay.val("OnlinePrint.PrintDialogTitle")),currentState:ko.observable(d.main),state:d,paperOrientations:g,checkedOrientationName:ko.observable(g[0].selected(!0).name),checkedOrientation:ko.observable(g[0].id),orientation:i.orientation,paperSizes:n,checkedPaperSize:ko.observable(y.selected(!0).name),scaleToPaperSize:ko.observable(!1),isWaiting:ko.observable(!1),clickPaperSize:function(){o.currentState(d.paperSize),o.header(ko.observable(c.Ay.val("OnlinePrint.PaperSize"))),r.resize()},checkScaleToPaperSize:function(){o.scaleToPaperSize(!o.scaleToPaperSize())},back:function(){o.currentState(d.main),o.header(ko.observable(c.Ay.val("OnlinePrint.PrintDialogTitle"))),r.resize()},cancel:function(){h()},print:function(){o.isWaiting()||(o.isWaiting(!0),a(i).trigger("print",{paperSize:this.checkedPaperSize(),scale:this.scaleToPaperSize(),scaleToLandscape:this.checkedOrientation()===i.orientation.landscape}))}}};r.show(_)},showWarning:function(){r=s.default.getInstance();var e={templateName:"v7.Client.Dialogs.Pdf.Download",model:o={thumbs:[],buttonText:c.Ay.val("Menu.PrintIssue"),currentState:ko.observable(d.main),headerText:c.Ay.val("Menu.IssuePrint"),buttonsCancelText:c.Ay.val("Buttons.Cancel.Text"),buttonsDownloadText:c.Ay.val("Buttons.Download.Text"),publisherName:c.Ay.val("BrandName"),state:d,cancel:function(){h(),a(i).trigger("cancel")},download:function(){h(),a(i).trigger("show")}}};r.show(e)},hide:h,orientation:{portrait:"P",landscape:"L"},onPrint:function(e){a(i).one("print",e)},onCancel:function(e){a(i).one("cancel",e)}},t.A=i},73814:function(e,t,n){"use strict";n.d(t,{A:function(){return Ie}});var i=n(58932),r=n(29583),o=n(15397),a=n(13302),s=(n(97433),n(67303)),u=n(75380),c=(n(15633),n(70989)),l=n(62297),d=n(64936),h=n(6176),f=n(82788),p=n(13384),m=n(20680),g=n(19939),v=n(55383),y=n(16213),_=n(60330),b=n(90006),w=n(96587),C=n(65678),A=n(36215),I=n(13981),S=n(61445),P=!0,x=r.browser.msie,T={},k=new d.c,E=.7,M="layout_keyChangeSubscription";function D(){var e=this.getPage();e.keyChange&&(e[M]||(e[M]=e.keyChange(N.bind(this))))}function N(){F(this)}function L(){T[this.id.toString()]=this,F(this)}function V(){!function(e){var t=e.getLayersContainer(),n=t[0];if(Z(e)?t.addClass("zoom"):t.removeClass("zoom"),!P)for(var i=e.getWidth(),r=e.getHeight(),o=n.firstChild;o;){var a=o.nextSibling;if(o.isLayoutBlock){var s=o,u=o.block;s.style.left=Math.floor(u.X*i)+"px",s.style.top=Math.floor(u.Y*r)+"px",s.style.width=Math.ceil(u.W*i)+"px",s.style.height=Math.ceil(u.H*r)+"px"}o=a}}(this)}function R(){delete T[this.id.toString()],H(this);var e=this.getPage();e&&!e[M]&&(e[M].dispose&&e[M].dispose(),e[M]=null)}function H(e){for(var t=e.getLayersContainer()[0],n=t.firstChild;n;){var i=n.nextSibling;n.isLayoutBlock&&t.removeChild(n),n=i}e.metadata&&e.metadata.cleanup(),e.metadata=new r.nd.viewer.pagesView.metadata}function F(e){H(e);var t=e.getPage();if(!t)return console.log("Page was not initialized."),Promise.resolve();if(t.isPotentiallyRestrictedMode())return Promise.resolve();var n=s.A.issue();return u.Jr("smartFlow",null,n).then((function(i){n===s.A.issue()&&function(e){return!!T[e.id.toString()]}(e)&&(!function(e,t){var n=e.getPage();if(n){var i=$(n);if(i){var o=document.createDocumentFragment(),a=e.getWidth(),s=e.getHeight(),u=i.Articles;if(u)for(var c=0,l=u.length;c0?c=n.ContOnPage:(t.LD||t.LD<0)&&(c=n.ContFromPage),c&&r.nd.viewer.pages.gotoToPage(c,n.RootArticleId||n.Id),!1}else if(t.Link){var u=t.Link;if(0==u.Type){var c;(c=parseInt(u.Target,10))>0&&r.nd.viewer.pages.gotoToPage(c)}else{var l=u.Target;if(1==u.Type?l.indexOf("://")<0&&(l="http://"+l):2==u.Type?l.indexOf("mailto:")<0&&(l="mailto:"+l):3==u.Type&&l.indexOf("callto:")<0&&(l="callto:"+l),((0,I.Lt)(S.N$)||(0,o.Ct)("features.app.externalLinks.disabled",!1))&&!(0,A.J)(l))return!1;var d=function(){return f.X.send(new h.ee({target:l}))};window.open(l,"_blank")?d():r.nd.alert().confirm((0,p.p3)("v7.Client.Dialogs.Blocked.Popup")).then((function(){d(),setTimeout((function(){window.location.href=l}),500)}))}return!1}return j.call(this,e)}}function j(e){var t,n,i,r,o=this.block;if(o&&o.Article&&o.Article.Blocks){var a=e.data;if(a){var s=a.getPageView();if(Z(a)){var u=e.data;return e.data={regionRect:(t=o,n=t.Article,i=n.Blocks,r=t.PID,Q(i,r))},s.ondoubleclick(e),e.data=u,!1}}}}var U,W,Y,X,q="mouseover";function G(e){var t=this,n=t.block;n&&n.Article&&(U&&U!==n.Article&&Y.find("[article-id="+U.Id+"]").removeClass(q),W&&(clearTimeout(W),W=0,Y=null),U=n.Article,Y=r(t.parentNode),r(t).hasClass(q)||Y.find("[article-id="+U.Id+"]").addClass(q))}function K(e){var t=this.block;t&&t.Article&&U&&(W||(W=setTimeout(J,300)))}function J(){W&&(clearTimeout(W),W=0),U&&Y&&Y.find("[article-id="+U.Id+"]").removeClass(q),U=null,Y=null}function Q(e,t){for(var n=null,i=0,r=e.length;i'),r("body").append(ae),se={cancel:function(e){void 0===e&&(e=!0),ge.A.dispose(),ae.remove(),ue.onresized(Ce,"unsubscribe"),ue.onmoved(Ce,"unsubscribe"),ae=se=ue=de=ce=le=null,r(oe).off("print"),he.dispose(),e&&r(oe).trigger("cancel")},print:function(){r(oe).trigger("print",{top:we(ge.A.getTop()-de.top-ce),left:we(ge.A.getLeft()-de.left),width:we(ge.A.getWidth()),height:we(ge.A.getHeight())}),this.cancel(!1)}},pe.Ay.templates.renderTo("v7.Client.Dialogs.Print.SelectCustomArea",se,ae);var t=(0,i.zs)(document.getElementsByClassName("topbar-content"),1)[0];ce=(null==t?void 0:t.clientHeight)||ae.find("#tt-printArea").height(),le=me.Ay.root().mainPanel().thumbsViewPanel(),ue=function(e){var t=fe.activePages();for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i.owner.page().pageNumber()==e)return i}}(e),ue.onresized(Ce),ue.onmoved(Ce);var n=ue.getPageBoundingRect(),o=ue.getNormalizedVisibleRect(),a=function(e,t){var n,i,r,o,a,s;return r=ae.width(),o=ae.height(),n=le.height(),i=le.visible(),a=be(t,e,ce,n,i,r,o),s=function(e,t,n,i,r,o,a,s,u){var c,l,d,h;return c=t.width*e.width,l=t.height*e.height-n,r&&(l-=i),c/21?S.Ay.val("ContextMenu.Bookmark.Pages","Pages"):S.Ay.val("ContextMenu.Bookmark.Page","Page");n.push("".concat(e.pages.length," ").concat(i))}if(!(0,P.isEmpty)(e.collections)&&!(0,P.isEmpty)(t)){var r=(0,P.chain)(t).filter((function(t){return(0,P.find)(e.collections,(function(e){return e.id===t.id}))})).map((function(e){return e.name})).value(),o=r.join(", ");if(o){var a=r.length>1?S.Ay.val("ContextMenu.Bookmark.Collections","Collections"):S.Ay.val("ContextMenu.Bookmark.Collection","Collection");n.push("".concat(a,": ").concat(o))}}return n.join(", ")}(),n},t.prototype.mapBookmarksToViewModel=function(e){var t=this;return(0,P.remove)(e,(function(e){return(0,P.isEmpty)(e.collections)})),(0,P.isEmpty)(e)?Promise.resolve([]):(0,E.Re)().then((function(n){var i=(0,P.filter)(n,(function(e){return e.type!==k.X.System}));return(0,P.map)(e,(function(e){return t.createBookmarkModel(e,i)}))}))},t.prototype.loadBookmarks=function(){var e=this,t=this._context;if(!T.A.isLogin())return Promise.resolve([]);var n=Promise.resolve();return t.article?n=(0,E.oz)(t.article.Id).then(M):t.pageSet?n=(0,E.z3)(t.pageSet.id).then(M):t.issue&&(n=(0,E.sO)(t.issue,[t.page])),n.then((function(t){return e.mapBookmarksToViewModel(t)})).catch((function(){return Promise.resolve([])}))},t.prototype.item=function(){var e=this;return this.getBookmarksPromise.then((function(t){e.itemModel.bookmarks(t)})),this.itemModel},t.prototype.dispose=function(){this.pagesChangeSubscriber&&this.pagesChangeSubscriber.unsubscribe()},t}(r.A),N=D,L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.item=function(){return this._getItem("listen","Menu.Listen","pri pri-listen")},t.prototype.available=function(){for(var t=[],n=0;n0?e._addLanguages(t,i,n):(0,U.A)().show(S.Ay.val("Messages.TheLanguageIsNotSupported"))}))})).finally((function(){e.loading=!1})))},t.prototype.back=function(){this._parent.back()},t.prototype.hide=function(){this._parent.hide()},t}(r.A),me=pe,ge=n(73690),ve=a.A.item,ye=l.A.list,_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.item=function(){return this._item||(this._item=new ve(this,S.Ay.val("Menu.TranslateArticle")).name("translate").css("pri pri-translate").bind(this.activate.bind(this))),this._item},t.prototype.available=function(){for(var t=this,n=[],i=0;i0&&Re.A.download(w.A.issue(),e)},t.prototype.available=function(){return!0},t.prototype.enabled=function(){return!0},t.prototype.activate=function(){var e=this;Re.A.onFinished((function(){return e.hide()})),Re.A.onChooseActivation((function(t,n){if(n&&0!==n.length){var i=new He(e).title(S.Ay.val("Menu.Item.DirectDownload")).canBeDone(!0);e._group=i.addGroup(S.Ay.val("Menu.Issue.DeliveredTo"),"group").footerText(S.Ay.val("Menu.DownloadIssue.ToHave")).scrollable(!0),(0,P.forEach)(n,(function(t){e._group.add(new Fe(e,t.Name,t.Id))})),e._group.items()&&(i.disableDone=I.computed((function(){return!(0,P.find)(e._group.items(),(function(e){return e.checked()}))}))),e._parent.showSubmenu(i)}})),Re.A.download(w.A.issue())},t.prototype.back=function(){this._parent.back()},t.prototype.hide=function(){this._parent.hide()},t}(r.A),ze=n(37399),Oe=l.A.list,je=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r._group=null,r.checked=I.observable(!1),r.ticket=i,r}return(0,o.C6)(t,e),t.prototype.onClick=function(){this.controller().uncheckAll(),this.checked(!0)},t}(a.A.radio),Ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.item=function(){return this._getItem("export","Buttons.Export","pri pri-exportereader")},t.prototype.available=function(){return y.A.loaded().then((function(){return y.A.get("ui.Export.available",!1)}))},t.prototype.enabled=function(){return y.A.loaded().then((function(){return y.A.get("ui.Export.enable",!1)}))},t.prototype.activate=function(){var e=this;ze.A.getDeviceTypes(w.A.issue()).then((function(t){var n=new Oe(e).title(S.Ay.val("Buttons.Export")).canBeDone(!0);e._group=n.addGroup(S.Ay.val("Menu.Issue.SelectDevice"),"group").scrollable(!0),(0,P.forEach)(t,(function(t){e._group.add(new je(e,t.Name,t.Ticket))})),e._group.items()&&(n.disableDone=I.computed((function(){return!(0,P.find)(e._group.items(),(function(e){return e.checked()}))}))),e._parent.showSubmenu(n)}))},t.prototype.done=function(){var e=(0,P.find)(this._group.items(),(function(e){return e.checked()}));e&&(ue.X.send(new he.Fg({action:this._item._name,label:e.title()})),ze.A.addExportRequest(e.ticket),this.hide())},t.prototype.back=function(){this._parent.back()},t.prototype.hide=function(){this._parent.hide()},t.prototype.uncheckAll=function(){(0,P.forEach)(this._group.items(),(function(e){return e.checked(!1)}))},t}(r.A),We=Ue,Ye=new we.A;Ye.register("base",r.A),Ye.register("empty",c),Ye.register("more",f),Ye.register("pageView",m),Ye.register("textView",v),Ye.register("copy",A),Ye.register("bookmark",N),Ye.register("listen",V),Ye.register("comment",b),Ye.register("openInSmartEditor",H),Ye.register("calendar",j),Ye.register("issueTranslate",me),Ye.register("translate",be),Ye.register("editpost",Pe),Ye.register("deletepost",Te),Ye.register("vote",Ve),Ye.register("issueDownload",Be),Ye.register("export",We),i.nd.ui.contextMenu||(i.nd.ui.contextMenu={}),i.nd.ui.contextMenu.items={controllers:Ye};var Xe=Ye.get.bind(Ye),qe=Ye.register.bind(Ye),Ge=Ye.registerAction.bind(Ye)},39172:function(e,t,n){"use strict";n.d(t,{Jt:function(){return X},OH:function(){return q}});var i=n(49577),r=n(58932),o=n(1766),a=n.n(o),s=n(93931),u=n.n(s),c=n(42222),l=n(27189),d=n(91552),h=n(51568),f=(n(27664),n(21193)),p=n(20680),m=n(67303),g=n(82788),v=n(25890),y=(n(89885),n(86699)),_=n(70079),b=d.A.list,w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.items=function(){return this._context},t.prototype.activate=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,(0,_.V)().catch((function(e){return i.hide(),(0,p.logError)(e)}))];case 1:return r.sent(),y.A.isLogin()&&a()(this.pendingTasks)?(g.X.send(new v.Fg({action:this._item._name})),t=new b(this).title(e.title()),this._context&&this._context.preview&&(this._context.preview.snippet=new f.A(this._context),t.addGroup().template("preview").data(this._context)),n=l.A.get("ui.SharingMenu")||[],this.pendingTasks=n.filter((function(e){return e.enabled})).map((function(e){return i._addItem(e.id)})),[2,Promise.all(this.pendingTasks).then((function(e){t.addGroup().items(e.filter((function(e){return e}))).scrollable(!1);var n=i._parent.menu().position(),r=0===m.A.pages.pagesCount()?1e3:0;setTimeout((function(){i._parent.showSubmenu(t,{position:{x:(n.right+n.left)/2,y:(n.bottom+n.top)/2}}),i.pendingTasks=[]}),r)}))]):[2,Promise.resolve()]}}))}))},t.prototype.back=function(){this._parent.back()},t.prototype.hide=function(){this._parent.hide()},t.prototype.onHideshareOnHide=function(e){return this._parent.onHide&&this._parent.onHide(e)},t.prototype.onShowshareOnShow=function(e){return this._parent.onShow&&this._parent.onShow(e)},t.prototype._addItem=function(e){var t=(0,h.Jt)(e);if(t){var n=new t(this,this._view,this._context);return Promise.resolve(n.available()).then((function(e){return e?n.item():void 0}))}return Promise.resolve(void 0)},t.prototype._canAddItem=function(e){var t=(0,h.Jt)(e);if(t){var n=new t(this,this._view,this._context);return Promise.resolve(n.available())}return Promise.resolve(!1)},t.prototype.item=function(){return this._getItem("share","Menu.Share","pri pri-share")},t.prototype.available=function(){var e=this,t=(l.A.get("ui.SharingMenu")||[]).filter((function(e){return e.enabled})).map((function(t){return e._canAddItem(t.id)}));return Promise.all(t).then((function(e){return u()(e,(function(e){return!0===e}))}))},t}(c.A),C=w,A=n(43125),I=n(75380),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"restrictionKey",{get:function(){return"Blogging"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isArticleContext",{get:function(){return!(!this._context.article||!this._context.article.ArticleId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isIssueArticleContext",{get:function(){var e=this._context.article&&this._context.article.ArticleId;return!!e&&A.Tq.parse(e).type===A.uw.Issue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPageSetContext",{get:function(){return!!this._context.pageSet},enumerable:!1,configurable:!0}),t.prototype.available=function(){for(var t=this,n=[],i=0;i0?this.nextMonthAvailable:this.prevMonthAvailable,i[c.years]=n>0?this.nextYearAvailable:this.prevYearAvailable,i[t](e)},nextPeriodSameDayAvailable:function(e,t,n){var i={};return i[c.months]=n>0?this.nextMonthAvailable:this.prevMonthAvailable,i[c.years]=n>0?this.nextYearSameDayAvailable:this.prevYearSameDayAvailable,i[t](e)},addMonths:function(e,t){var n=new Date(e.getTime()),i=n.getDate();return n.setDate(1),n.setMonth(n.getMonth()+t),n.setDate(Math.min(i,this.getMaxDays(n))),n},addYears:function(e,t){var n=new Date(e.getTime()),i=n.getDate();return n.setDate(1),n.setFullYear(n.getFullYear()+t),n.setDate(Math.min(i,this.getMaxDays(e))),n},addDays:function(e,t){var n=new Date(e.getTime());return n.setDate(n.getDate()+t),n},getMaxDays:function(e){for(var t=new Date(e),n=28,i=t.getMonth();t.getMonth()==i;)n++,t.setDate(n);return n-1},getWeekNumber:function(e){var t=new Date(e);t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=t.valueOf();return t.setMonth(0),t.setDate(4),Math.round((n-t.valueOf())/6048e5)+1},add:function(e,t,n){switch(t){case c.months:return this.addMonths(e,n);case c.years:return this.addYears(e,n);default:throw new Error("Unsupported state type - "+t)}}}}n(51175),n(91909),s.prototype=function(){function e(e){i.each(e.find(".datepickerViewDays td, .datepickerViewMonths td, .datepickerViewYears td"),(function(e,t){var n=i(t)[0].clientHeight;n&&(i(t).css("height",n),i(t).find("a").css({height:n+"px",lineHeight:n+"px"}))}))}var t,n;return{show:function(s){return l=this.options,t=function(e){var t={options:e,currentState:r.observable(e.state||c.days),states:c},n=new u(e);function a(e,i){var r={};r[c.days]=c.months,r[c.months]=c.years,r[c.years]=c.years;var o=r[t.currentState()];t.currentState()==c.years&&(e*=12),(!i||i&&n.nextPeriodAvailable(t.options.current,o,e))&&(t.options.current=n.add(t.options.current,o,e),s())}function s(){t.header(f()),t.years(h()),t.months(d()),t.weeks(l()),i.nd.event.trigger("onlayoutchanged",t)}function l(){var e,i,r,o,a,s,u=0,c=[];(o=new Date(t.options.current)).setDate(1),a=o.getMonth(),s=(o.getDay()-t.options.starts)%7,o=n.addDays(o,-(s+(s<0?7:0)));var l=new Date;for(e=-1;u<42;){r=u%7,c[i=parseInt(u/7,10)]||(e=n.getWeekNumber(o),c[i]={week:e,days:[]}),c[i].days[r]={text:o.getDate(),classname:[]},a!=o.getMonth()&&c[i].days[r].classname.push("datepickerNotInMonth"),0==o.getDay()&&c[i].days[r].classname.push("datepickerSunday"),6==o.getDay()&&c[i].days[r].classname.push("datepickerSaturday"),o.getDate()==l.getDate()&&o.getMonth()==l.getMonth()&&o.getFullYear()==l.getFullYear()&&c[i].days[r].classname.push("datepickerToday");var d=t.options.onRenderDay(o);t.options.date.valueOf()==o.valueOf()&&c[i].days[r].classname.push("datepickerSelected"),d.disabled&&c[i].days[r].classname.push("datepickerDisabled"),d.className&&c[i].days[r].classname.push(d.className),c[i].days[r].classname=c[i].days[r].classname.join(" "),u++,o=n.addDays(o,1)}return c}function d(){for(var e=new Date(t.options.current).getFullYear(),n=[],i=[],r=new Date(t.options.date),a=new Date,s=0;s<12;s++){var u=[],c=t.options.onRenderMonth(e,s+1);e==a.getFullYear()&&s==a.getMonth()&&u.push("datepickerToday"),e==r.getFullYear()&&s==r.getMonth()&&u.push("datepickerSelected"),c.disabled&&u.push("datepickerDisabled"),c.className&&u.push(c.className);var l={text:o.Ay.getMonthShortName(s),classname:u.join(" ")};s%4==0?(i=[l],n.push(i)):i.push(l)}return n}function h(){for(var e=[],n=[],i=new Date(t.options.current),r=new Date(t.options.date),o=new Date,a=0;a<12;a++){var s=i.getFullYear()-6+a,u=[],c=t.options.onRenderYear(s);s==o.getFullYear()&&u.push("datepickerToday"),s==r.getFullYear()&&u.push("datepickerSelected"),c.disabled&&u.push("datepickerDisabled"),c.className&&u.push(c.className);var l={text:s,classname:u.join(" ")};a%4==0?(n=[l],e.push(n)):n.push(l)}return e}function f(){var e={},n={},i=new Date(t.options.current),r=i.getFullYear();switch(t.currentState()){case c.days:e.text=o.Ay.formatDate(i,"Calendar.MonthFormat","MMMM, yyyy");var a=i.getMonth(),s=0==a?r-1:r,u=0==a?11:a-1,l=11==a?r+1:r,d=11==a?0:a+1;n=t.options.onRenderHeader({prevYear:s,prevMonth:u+1,nextYear:l,nextMonth:d+1});break;case c.months:e.text=r,n=t.options.onRenderHeader({prevYear:r-1,nextYear:r+1});break;case c.years:e.text=r-6+" - "+(r+5),n=t.options.onRenderHeader({prevYear:r-7,nextYear:r+6})}return n.disabledPrev&&(e.disabledPrev=n.disabledPrev),n.disabledNext&&(e.disabledNext=n.disabledNext),e}i.extend(t,{header:r.observable(f()),daysOfweek:function(){for(var e=[],n=t.options.starts,i=0;i<7;i++)e.push(o.Ay.getWeekDayMinName((i+n)%7));return e}(),weeks:r.observableArray(l()),months:r.observableArray(d()),years:r.observableArray(h()),goPrevNext:a,changeView:function(){if(!t.options.disableChangeView){switch(t.currentState()){case c.days:t.currentState(c.months);break;case c.months:t.currentState(c.years);break;case c.years:t.currentState(c.days)}s()}},clickDate:function(e,r){if(r||(r=event),r.target&&i(r.target).is(":visible")){var o=i(r.target);if(o.is("span")&&(o=o.parent()),o.is("a")){var a=o.parent();if(a.is("td")&&!a.hasClass("datepickerDisabled")){switch(t.currentState()){case c.days:var u=new Date(t.options.current),l=parseInt(o.text(),10);a.hasClass("datepickerNotInMonth")&&(u=n.addMonths(u,l>15?-1:1)),u.setDate(l),t.options.date=u.valueOf(),t.options.onChange.apply(t,[new Date(t.options.date)]);break;case c.months:var d=a.parent().parent().parent(),h=d.find("tbody.datepickerMonths td").index(a),f=parseInt(d.find("thead th.datepickerMonth span").text(),10);t.options.current.setMonth(h),t.options.current.setFullYear(f),t.options.disableChangeView?(t.options.current.setDate(1),t.options.date=t.options.current.valueOf(),t.options.onChange.apply(t,[t.options.current])):t.currentState(c.days);break;case c.years:f=parseInt(o.text(),10),t.options.current.setFullYear(f),t.options.disableChangeView?(t.options.current.setMonth(0),t.options.current.setDate(1),t.options.date=t.options.current.valueOf(),t.options.onChange.apply(t,[t.options.current])):t.currentState(c.months)}s()}}}},refresh:function(){s()}}),t.classForCurrentState=r.computed((function(){switch(t.currentState()){case c.days:return"datepickerViewDays";case c.months:return"datepickerViewMonths";case c.years:return"datepickerViewYears";default:return""}}));var p=!1,m=!1,g=0;function v(e){g=e}return t._onScroll=function(e){if(p){var t=e.dx(),n=e.dy();v(180*Math.atan2(n,t)/Math.PI),m=!0}},t._onGesturesStart=function(e){p=!0,m=!1,v(0)},t._onGesturesEnd=function(e){var i,r,o,u,l,d;p=!1,m&&(i=g,l=Math.abs(i),d=i-180<=10||i<=10,Math.abs(l-90)<=10?(r=-1*((u=i)&&u/Math.abs(u)),o=c.years,t.currentState()==c.years&&(r*=12),n.nextPeriodSameDayAvailable(t.options.current,o,r)&&(t.options.current=n.add(t.options.current,o,r),s())):d&&function(e){a(e,!0)}(i>90?1:-1)),m=!1},t._onSingleTapConfirmed=function(e){var t=e.event();this.clickDate(t.data,t)},t}(l),n=s,Promise.all([a.k.loaded(),o.Ay.loaded()]).then((function(){a.k.renderTo("v7.Client.Calendar",t,n),i.nd.gestures.bind(n,{gesturesStart:t._onGesturesStart.bind(t),scroll:t._onScroll.bind(t),gesturesEnd:t._onGesturesEnd.bind(t),singleTapConfirmed:t._onSingleTapConfirmed.bind(t)}),e(n),i.nd.event.bind(t,"onlayoutchanged",null,(function(t,i){e(n)}))}));var l},refresh:function(){t.refresh()},dispose:function(){i.nd.gestures.unbind(n),i.nd.event.unbind(t,"onlayoutchanged")}}}();var c={days:0,months:1,years:2};t.A=i.nd.ui.datepicker=s},96587:function(e,t,n){"use strict";n.r(t);var i,r=n(29583),o=n(13302),a=n(2175),s=n(26429),u=n(55683),c=(n(96723),n(14683)),l=n(6698),d=(n(22537),n(44260),n(6440),n(97433),n(84901),n(67078),n(43150));function h(){return r.browser.android&&!r.browser.chrome?r.windowHeight()+"px":"100%"}function f(){return r.browser.android&&!r.browser.chrome?r.windowWidth()+"px":"100%"}var p="__bg_lock",m=window.__dialogs={};function g(){o.each(m,(function(e){e.visible&&e.resize()}))}function v(e){this.parentDialog=e,this.id="dialog-"+(new Date).getTime(),this.tintId="tint-"+(new Date).getTime(),this.visible=!1}r(document).keydown((function(e){o.forEachRight(m,(function(t){if(t.visible&&e.which===d.u.esc){var n=o.get(t,"config.model.back");return o.isFunction(n)?n.apply(o.get(t,"config.model")):t.hide(u.d.Cancel),!1}}))})),r.nd.layout.resize(g),r(window).bind("orientationchange",g),v.prototype=function(){function e(e){return r("#"+e)}function t(e){return r("#"+e)}function n(e,n){var i=t(n);if(!i.length&&(i=function(e,t){var n={"z-index":(0,s.XH)(),width:f(),height:h(),overflow:"hidden"},i=r(document.body).createChild("div").css(n).addClass("dialog-tint").hide().attr("id",e);return r.nd.gestures.enableTouchScroll(i),i.on("wheel",(function(e){e.preventDefault()})),t&&i.attr("dialog-name",t),i}(n,e.name),!e.preventClosingOnClickOutside)){var a=this;i.bind("click",(function(){var e=o.get(a,"config.model.back");o.isFunction(e)?e.apply(o.get(a,"config.model")):a.hide.apply(a,[u.d.Destroy])}))}i.show()}var i,d=function(e){e.find("[nd-scrollable]").each((function(){var e=r(this).data("scroller");e&&r.isFunction(e.refresh)&&e.refresh()}))};function g(t,n){var i=e(n).show();d(i)}function v(){i&&(ko.safeCleanNode(i),i=null)}function y(t,n){v();var o,a,u=e(n);u.length||(u=function(e,t,n){var i=(0,s.yP)(),o={position:"fixed",top:0,left:0,width:f(),height:h(),overflow:"hidden","z-index":i},a=r.extend({},o,t),u=r(document.body).createChild("div").hide().css(a).attr("id",e);return n&&u.attr("dialog-name",n),u.addClass("pop-wrapper"),u}(n,t.css||{},t.name),r.nd.gestures.enableTouchScroll(u),r.nd.navHistory.oneNavigate(this.hide.bind(this))),t.lockBackground&&(this.ownWinLock=!(a=(o=r("body")).data(p))&&(a={overflow:"hidden"},c.A.isHidden||(a.paddingRight=c.A.width+"px"),o.css(a).data(p,a),!0));var l,d,g=u.css({display:"block",visibility:"hidden"});t.templateName?r.nd.templates.renderTo(t.templateName,t.model,g):(g.html(t.content||""),l=t.model,d=g[0],v(),i=d,ko.applyBindings(l,d)),g=g.children().css({opacity:0,height:"auto"}),t.defaultEventFlow||r.nd.gestures.bindDefault(g),g.css({transitionProperty:"opacity",transitionTimingFunction:"ease-out",transitionDuration:"300ms",opacity:1,visibility:"visible"}),this.visible=!0,C.call(this,g),m[this.id]=this}function _(e,n){var i=t(e).hide();n&&n.suspend||i.remove()}function b(t,n){var i,a,s=e(t).css({transitionProperty:"",transitionTimingFunction:"",transitionDuration:""});s.find("header.toolbar").focus(),s.hide(),this.ownWinLock&&((a=(i=r("body")).data(p))&&i.css(o.mapValues(a,(function(){return""}))).removeData(p),delete this.ownWinLock),n&&n.suspend||(v(),s.empty())}function w(n,i){v();var o=e(n),a=t(i);r.nd.gestures.unbind(o),r.nd.gestures.unbind(a),o.remove(),a.remove(),this.disposed=!0,delete m[this.id]}function C(e){var t=0,n=0;"100%"===this.config.height?e.css({height:h()}):e.removeClass("pop-fullheight").css({height:this.config.height,position:"absolute"});var i=window.innerHeight?window.innerHeight:r(window).height();if(n+=e.find(".pop-cover").outerHeight(!0)||0,e.find(".pop-body:visible").each((function(){r(this).css({height:"auto"}),r(this).children().css({"min-height":0}),e.outerHeight()>=i&&e.addClass("pop-fullheight").height(i-parseInt(e.css("border-top"))-parseInt(e.css("border-bottom")));var o=e.height(),a=0,s=0,u=0;a+=r(this).parent().find(".toolbar, .pop-header").outerHeight(!0)||0,u+=r(this).parent().find(".pop-footer").outerHeight()||0,r(this).parent().find(".pop-subheader:visible").each((function(){if(r(this).parent().is(".pop-body")||r(this).parent().parent().is(".pop-body"))return!1;s+=r(this).outerHeight(!0)})),t=o-n-a-s-u-parseInt(r(this).css("padding-top"))-parseInt(r(this).css("padding-bottom")),r(this).height(t)})),e.is(".pop-center")){var a=r.windowWidth(),s=r.windowHeight();e.css({left:Math.round((a-e.width())/2),top:Math.round((s-e.height())/2)})}else{var u,c;this.config.getLeft&&(u=this.config.getLeft(e.width())),this.config.getTop&&(c=this.config.getTop(e.height())),o.isUndefined(u)&&o.isUndefined(c)||e.css({left:u||0,top:c||0})}d(e),setTimeout((function(){l.A.toolbarSetup(e)}),0),r(this).trigger("onResize",{headerHeight:n,bodyHeight:t,screenHeight:i})}return{show:function(e){if(!this.visible){if(!e)throw new Error("config required");return this.config=o.extend({},{height:"auto"},e),this.parentDialog&&this.parentDialog.suspend(),r.nd.stats.pauseStats(),a.busy.set(),a.modal.set(),this._(n)(this.config,this.tintId),this._(y)(this.config,this.id),this.config.focusElement&&this.htmlRoot().find(this.config.focusElement).focus(),this.disposed=!1,r(this).trigger("onshow"),this}},hide:function(e,t){if(!this.disposed)if(t=r.extend({status:e||u.d.Unknown},t),r(this).trigger("onhide",t),r.nd.stats.resumeStats(),this._(b)(this.id),this._(_)(this.tintId),this.visible=!1,a.busy.reset(),a.modal.reset(),this._(w)(this.id,this.tintId),t.status==u.d.Destroy&&this.parentDialog)for(var n=this.parentDialog;n;)n._.call(n,w)(n.id,n.tintId),n=n.parentDialog;else this.parentDialog&&!this.parentDialog.disposed&&function(e){for(var t=[u.d.Unknown,u.d.Close],n=0;ne)return!0;if(!t&&n.hasOwnProperty(e))return!0;var r=n[e];if(r)for(var i in r)if(r.hasOwnProperty(i)&&i>=t)return!0;return!1}var C,A=new i.nd.ui.datepicker({date:new Date(p.valueOf()),current:new Date(p.valueOf()),starts:i.nd.config.get("ui.Calendar.FirstDayOfWeekIsMonday",!1)?1:0,onRenderDay:function(e){return{disabled:!v(e),className:!!g(e)&&"datepickerPurchased"}},onRenderMonth:function(e,t){return{disabled:!(d.Years.hasOwnProperty(e)&&d.Years[e].hasOwnProperty(t)),className:!!_(e,t)&&"datepickerPurchased"}},onRenderYear:function(e){return{disabled:!d.Years.hasOwnProperty(e),className:!!y(e)&&"datepickerPurchased"}},onRenderHeader:function(e){return{disabledPrev:!b(e.prevYear,e.prevMonth),disabledNext:!w(e.nextYear,e.nextMonth)}},onChange:function(e){var t,n=l;l=e,n&&n.valueOf()===e.valueOf()||m.next((t=v(l).V,(0,o.bR)(h||u.A.cid(),l,t)))}}),I=A.show(e).then((function(){C=s.A.bind(a.A,a.A.calendarUpdatedEvent,(function(e,t){d=t,A.refresh()}))}));return{onChange:m.asObservable(),loaded:I,dispose:function(){A.dispose(),C&&C.dispose(),m.complete()}}}},t.A=i.nd.ui.issuesCalendar},91909:function(e,t,n){"use strict";var i=n(29583),r=(n(96723),n(36489));i.nd.ui||(i.nd.ui={}),i.nd.ui.columns=function(){function e(e){for(var t=a(e,!0),n=0,i=0;ir;)s.insertBefore(o.lastChild,s.firstChild),u--}}function t(e){for(var t=e.length,n=!0;n;){n=!1;for(var i=e[0],r=i.offsetHeight,o=1;or&&a.firstChild;)i.appendChild(a.firstChild),n=!0,s=a.offsetHeight,r=i.offsetHeight;if(n)break;i=a,r=s}}}function n(e){for(var t=e.length,n=!0;n;){n=!1;for(var i=e[0],o=i.offsetHeight,a=1;ao)){c.firstChild||r(e,a+1),n=!0;break}c.insertBefore(l,c.firstChild)}}i=s,o=u}}}function r(e,t){var n=e[t],i=e[t+1];i&&i.firstChild&&(s(i,n),r(e,t+1)),n.firstChild||(n.isActiveCol=!1,n.style.display="none")}function o(e,t){for(var n=!0;n;){n=!1;for(var i=e[t],r=i.offsetHeight,o=t-1;o>=0;o--){var a=e[o],s=a.offsetHeight;if(s>r){i.insertBefore(a.lastChild,i.firstChild),n=!0;break}i=a,r=s}}}function a(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];r.isActiveCol&&(t||r.firstChild?n++:(r.isActiveCol=!1,r.style.display="none"))}return n}function s(e,t){for(var n=e.firstChild;n;){var i=n;n=n.nextSibling,t.appendChild(i)}}function u(e,t,n){n&&n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t)}function c(e,t,n,i,r){var o=document.createElement("div");if(o.innerHTML="
",(o=o.firstChild).isCol=!0,o.isActiveCol=!1,o.style.display="none",i&&(o.style.width=i),r&&(o.className=r),u(e,o,t),n){var a=document.createElement("div");a.style.clear="both",a.isClearCol=!0,u(e,a,t)}return o}var l={enableColumns:function(e){i("#"+e+" [enbaleColumn='true']").enableColumns()},updateColumns:function(r){var u=r.elm||document.getElementById(r.elmId);if(u&&!u._isUpdatingColumns)try{u._isUpdatingColumns=!0;var l=r.maxColumns;if(!l&&0!==l){var d=u.getAttribute("maxColumns");d&&"auto"!=d&&(l=parseInt(d))}l&&"auto"!=l||(l=1e3),l>30&&(l=30);var h=function(e,t){if(e){if("number"==typeof e)return e+"px";if("string"==typeof e&&e.length>0){if("auto"!=e){var n=e.charAt(e.length-1);if(n>="0"&&n<="9")return e+"px"}return e}}return null}(r.columnWidth||u.getAttribute("columnWidth")),f=r.makeColumnsEqual||"true"==u.getAttribute("makeColumnsEqual"),p=r.columnClass||u.getAttribute("columnClass"),m=r.columnIgnoreText||"true"==u.getAttribute("columnIgnoreText"),g="fast"==(r.columnConstructionMode||u.getAttribute("columnConstructionMode")),v=[],y=0;if(u._isColInited)for(var _=u.firstChild;_;)_.isCol&&(v.push(_),_.isActiveCol&&y++),_=_.nextSibling;if(!v.length){u._isColInited=!0,(x=c(u,null,!0,h,p)).style.display="block",x.isActiveCol=!0,v.push(x),y++;var b=0;for(_=u.firstChild;_;){var w=_;if(_=w.nextSibling,!w.isCol&&!w.isClearCol){if(m&&3==w.nodeType)continue;x.appendChild(w),b++}}if(0==b)return;var C=i.css(x,"width");l=Math.min(l,Math.floor(i(window).width()/C));for(var A=x.offsetTop;yA){x.style.display="none";break}x.isActiveCol=!0,y++}for(var S=v.length-1;S>=0;S--)(x=v[S])._prevColWidth&&(x.style.width=x._prevColWidth,x._prevColWidth=null);e(v),y=a(v)}A=v[0].offsetTop;var P=!1;for(S=y-1;S>0&&(x=v[S]).offsetTop>A;S--)s(x,v[S-1]),x.style.display="none",x.isActiveCol=!1,P=!0;if(P)return void(g?e(v):(t(v),f&&(a(v),n(v))));if(y==l||0==y)return;for(P=!1;yA){x.style.display="none";break}if(x.isActiveCol=!0,g?e(v):(o(v,y),t(v)),x.offsetTop>A){s(x,v[y-1]),x.isActiveCol=!1,x.style.display="none",g?e(v):(t(v),f&&(a(v),n(v)));break}y++}f&&!g&&(a(v),n(v))}finally{u._isUpdatingColumns=!1}}};function d(e,t){var n={elm:t};l.updateColumns(n),n.elm=null}return i.fn.enableColumns=function(){return this.each(d)},l}(),i.nd.ui.imageLoader=function(){var e={};function t(e){var t=document.getElementById(e),n=!1;if(t){var r=i("#"+e+" img[pendingSrc]");if(r&&r.length>0){var o=r.length;if(!t.scrollHeight||t.scrollHeight<=t.offsetHeight+100)for(var a=0;as)&&(l=!0)}if(l){for(var p=0;p<10&&a2),this._menu.show(e,t),this._visible=!0,i.nd.stats.pauseStats(),this},toggleVisibleFlag:function(e){this._visible=e},showSubmenu:function(e,t){t||(t=this._history[0].config),this._show(t,e)},dispose:function(){this._menu.dispose(),delete this._menu,delete this._config,this.item&&delete this.item}}),i.nd.ui.menu.controllers={base:u,bookmarks:new l,singleItem:d},t.A=i.nd.ui.menu.controllers},60713:function(e,t,n){"use strict";var i=n(29583),r=(n(47450),n(84901),n(65678)),o=function(){var e={register:function(t,n){for(var i=t.split("."),r=e,o=0;or&&(n=r-t),this._getTintPanel().css({left:t+"px",top:e.top+"px",width:n+"px",height:e.height+"px"}).show()},_hideTintPanel:function(){this._getTintPanel().hide()},_getTintPanel:function(){if(!this._tintPanel){var e=this._config.parentSelector?i(this._config.parentSelector):i(document.body);this._tintPanel=e.createChild("div").css("z-index",(0,u.XH)()).addClass("dialog-tint").hide()}return this._tintPanel},_showMenuPanel:function(e,t){this._elm=this._getMenuPanel().show(),t.render(this._elm),this._elm=this._elm.children().css("opacity",0).bind("touchstart mousedown PointerDown MSPointerDown",(function(e){(e=e.originalEvent||e).stopPropagation&&e.stopPropagation(),e.cancelBubble=!0})),this._adjust(this._elm,e),this._elm.css({transitionProperty:"opacity",transitionTimingFunction:"ease-out",transitionDuration:"300ms",opacity:1})},_hideMenuPanel:function(){this._getMenuPanel().css({transitionProperty:"",transitionTimingFunction:"",transitionDuration:""}).hide().empty()},_getShieldPanel:function(){if(!this._shieldPanel){var e=this._config.parentSelector?i(this._config.parentSelector):i(document.body);this._shieldPanel=e.createChild("div").addClass("dialog-tint").hide().css({position:"fixed",top:0,left:0,"z-index":(0,u.XH)()})}return this._shieldPanel.width("100%").height("100%"),this._shieldPanel},_getMenuPanel:function(){if(!this._menuPanel){var e=this._config.parentSelector?i(this._config.parentSelector):i(document.body),t=this;this._menuPanel=e.createChild("div").hide().css({position:"fixed",top:0,left:0,overflow:"hidden","z-index":(0,u.yP)()}),s.Ay.enableTouchScroll(this._menuPanel),this._menuPanel.bind("click",(function(e){e.target==t._menuPanel[0]&&t._hide()}))}return this._menuPanel.width("100%").height("100%"),this._menuPanel},position:function(){return this._position},resize:function(){if(this._config){this._getShieldPanel();var e=this._getMenuPanel().children();e.height("auto").resize(),this._adjust(e,this._config)}},_adjust:function(e,t){var n=e.find(".pop-body"),o=i.windowHeight(),a=i.windowWidth(),s=r.W.Center,u=r.W.Center,c=0,l=0;n.height("auto"),e.height("auto");var d=e.outerHeight()||0,h=e.outerWidth()||0,f=20;if(t.position){if(t.position.align){var p=t.position.align;void 0!==p.x&&(s=(i.isFunction(p.x)?p.x():p.x)||0),void 0!==p.y&&(u=(i.isFunction(p.y)?p.y():p.y)||0)}var m=t.position.y;void 0!==m&&(l=(i.isFunction(m)?m():m)||0);var g=t.position.x;void 0!==g&&(c=(i.isFunction(g)?g():g)||0)}if(u===r.W.Top||u===r.W.ScreenTop||(u===r.W.Center?o-(l=l-d/2-f)a&&(c=a-h-f),o-d-l-f<=0){var v=e.find(".toolbar"),y=o-l-f;y>d&&(y=d);var _=y-(v.length?v.outerHeight():0);n.height(_+"px"),e.height(y+"px")}this._position={left:c,top:l,right:c+h,bottom:l+d},e.css({top:l+"px",left:c+"px"})},elm:function(){return this._elm}};var h={view:d,align:r.W,manager:l};t.Ay=o.A.menu=h},91552:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var i=n(58932),r=n(29583),o=n(13302),a=n(6698),s=n(43150),u=n(30212);function c(e){if(!e)return{top:0,right:0,bottom:0,left:0};var t=window.getComputedStyle(e),n=t.marginTop,i=t.marginRight,r=t.marginBottom,o=t.marginLeft,a=c(e.firstElementChild).top,s=c(e.lastElementChild).bottom;return{top:Math.max(parseInt(n,10),a),right:parseInt(i,10),bottom:Math.max(parseInt(r,10),s),left:parseInt(o,10)}}function l(e){var t=e.elementSizeWithoutMargins,n=e.elementSizeWithMargins,i=e.windowSize,r=e.marginToTheFirstSide,o=e.marginToTheFarthestSide,a=e.firstSideCoordinate;return n>i?{firstSideCoordinate:r,maximumSize:i-r-o}:a+t+o<=i?{firstSideCoordinate:a}:{firstSideCoordinate:a-(t+o-(i-a))}}function d(e){return"".concat(null!=e?e:0,"px")}function h(e,t){var n=t.width,i=t.height,r=t.left,o=t.top,a=c(e),s=a.top,u=a.right,h=a.bottom,f=a.left,p=e.style;!function(e){var t=e.width,n=e.marginLeft,i=e.marginRight,r=e.left,o=e.elementStyle,a=l({elementSizeWithoutMargins:t,elementSizeWithMargins:t+n+i,windowSize:window.innerWidth,marginToTheFirstSide:n,marginToTheFarthestSide:i,firstSideCoordinate:r}),s=a.firstSideCoordinate,u=a.maximumSize;o.left=d(s),u&&(o.maxWidth=d(u)),uu&&i(this).addClass("alert-textleft")})),c.find(".alert-label").length>0&&(c.find(".alert-label").show(),c.addClass("alert-labeled")),c.find("header:visible").each((function(){n=i(this).outerHeight(!0)})),c.find(".controls:visible").each((function(){r=i(this).outerHeight(!0)}));var l=i.windowWidth(),h=i.windowHeight();c.find(".alert-body").each((function(){i(this).css("height","auto"),o=i(this).outerHeight(),e=i(this).parent(".alert").height(),t=i(this).parent(".alert").outerHeight()-e,i(this).parent(".alert").outerHeight()>h?e=h-t:i(this).parent(".alert").css("height","auto"),a=e-n-r,i(this).height(a),a>1,top:t-n.height()>>1})}(l,h),c.find("[nd-scrollable]").each((function(){var e=$data("scroller");e&&i.isFunction(e.refresh)&&e.refresh()}))}}function v(){d&&(r.modal.reset(),l.remove(),l=null,c.remove(),c=null,d=!1,f.show())}t.A={show:function(){return Promise.all([o.Ay.loaded(),a.k.loaded()]).then(p)},hide:v}},3665:function(e,t,n){"use strict";var i=n(29583),r=(n(91909),!0);i.nd.ui.slider=function(e,t){this.sliderId=e,this._dataSource=t},i.nd.ui.slider.prototype={sliderId:0,left:0,width:0,wrapperWidth:0,enableBordersStateChangeNotifications:!1,beforeRender:i.nd.delegate(),afterRender:i.nd.delegate(),dragstart:i.nd.delegate(),dragging:i.nd.delegate(),dragged:i.nd.delegate(),itemClick:i.nd.delegate(),showing:i.nd.delegate(),hiding:i.nd.delegate(),hided:i.nd.delegate(),animationStarting:i.nd.delegate(),animationFinished:i.nd.delegate(),animationCanceled:i.nd.delegate(),selectedItemChanging:i.nd.delegate(),selectedItemChanged:i.nd.delegate(),bordersStateChanged:i.nd.delegate(),getDataSource:function(){return this._dataSource},normLeft:function(e){return e/(this.width-this.wrapperWidth)},denormLeft:function(e){return e*(this.width-this.wrapperWidth)},getNormedLeft:function(){return this.normLeft(this.left)},getNormedLeftDiff:function(e){return this.left-this.denormLeft(e)},getRightMargin:function(){return this.width-this.getLeftMargin()-this.wrapperWidth},getLeftMargin:function(){return-this.left},setNormedLeft:function(e){return this.setLeft(this.denormLeft(e))},setLeft:function(e){return this.left=parseInt(e,10),this.render_applyPosition(),this},selectItem:function(e,t){this.render_updateSelectedItem.apply(this,arguments)},elm:function(){return i("#"+this.sliderId)},isVisible:function(){return!this.elm().is(":hidden")},render_ensureRendered:function(){},render_applyPosition:function(){},render_adjustPosition:function(){},render_playAnimation:function(){},render_cancelAnimation:function(){},render_updateSelectedItem:function(){},render_navigateToItem:function(e,t){},render_navigateToElms:function(e,t){},render_showNextPage:function(){},render_showPrevPage:function(){}};var o=i.nd.ui.BordersStates={Default:0,BehindLeftBorder:1,BehindRightBorder:2,IntersectsLeftBorder:3,IntersectsRightBorder:4};i.nd.ui.sliderItem=function(e){for(var t in e)this[t]=e[t]},i.nd.ui.sliderItem.prototype={idx:null,id:null,name:null,destroy:function(){i.data(this,null)}},i.nd.extendObjectWithPropertiesExt({obj:i.nd.ui.sliderItem.prototype,names:"isSelected",enableGet:!0,enableSet:!0,enableChangedEvent:!0}),i.nd.ui.sliderItemsCollection=function(){this.items=[]},i.nd.ui.sliderItemsCollection.prototype={items:null,_sliderItem_finder:function(e){return e.isSelected()},_sliderItem_isSelectedChanged:function(){var e=this,t=e.__coll;t._selecting||e.isSelected()&&t.selectedItem(e)},add:function(e){return void 0===e.isSelected&&(e=new i.nd.ui.sliderItem(e)),e.idx=this.items.length,e.__coll=this,e.isSelectedChanged(this._sliderItem_isSelectedChanged),this.items.push(e),this},selectedItem:function(e){if(0===arguments.length)return this.find(this._sliderItem_finder);this._selecting=!0;var t=this.find(this._sliderItem_finder,e);return t&&t.isSelected(!1),e&&e.isSelected(!0),this.fireSelectedItemChanged({value:e,oldValue:t}),this._selecting=!1,this},get:function(e){return this.items[parseInt(e,10)]},getLength:function(){return this.items.length},findById:function(e){return this.find((function(t){return t.id===e}))},findByName:function(e){return this.find((function(t){return t.name===e}))},each:function(e){i.each(this.items,e)},find:function(e,t){var n;return i.each(this.items,(function(i,r){if(e(r)&&r!==t)return n=r,!1})),n},destroy:function(){i.each(this.items,(function(e,t){t.destroy()})),i.data(this,null)}},i.nd.extendObjectWithEvents(i.nd.ui.sliderItemsCollection.prototype,"selectedItemChanged"),i.nd.ui.sliderDataSource=function(e,t){this.items=t,this.renderFunction=e},i.nd.ui.sliderDataSource.prototype={setSliderItems:function(e){this.items=e},getSliderItems:function(){return this.items},renderSliderItem:function(e,t){this.renderFunction&&this.renderFunction(e,t)}},i.nd.ui.sliderSimpleImp=function(e,t){var n=this,a=e.sliderId,s=e.getDataSource(),u=t.sliderSelector,c=(i(u),i(t.innerLayerSelector)),l=i(t.outerLayerSelector),d=t.itemElementName,h=i(t.prevButtonSelector),f=i(t.nextButtonSelector);if(i.support.transform){var p=c.css("top");c.css("top",0),c.translateTop(p)}c.optimizeForTransform();var m,g=/^(inline)(.*)/.test(c.css("display")),v=i.nd.easing.nd1,y=i.nd.easing.nd1_reverse,_=!1,b=!1,w=!1,C=[];function A(e){return i("#"+a+"_"+e.id)}function I(t){if(t=t||200,e.left>0)e.width>e.wrapperWidth&&k({dx:-e.left,easing:y,duration:t},!0);else{var n=e.width-(e.wrapperWidth-e.left);n<0&&k({dx:0-n,easing:y,duration:t},!0)}T()}function S(t){if(t>0)e.width>e.wrapperWidth&&(t=0);else{var n=e.width-(e.wrapperWidth-t);n<0&&(t-=n)}e.left=t,e.render_applyPosition()}function P(){if(e.enableBordersStateChangeNotifications){var t=e.items.selectedItem();if(t){var n=C[t.idx];if(n){var i=-1*e.left,r=i+e.wrapperWidth;return void(i>n.right?x(o.BehindLeftBorder):rn.left?x(o.IntersectsLeftBorder):r=0&&h.addClass("is-disabled"),e.left-e.wrapperWidth<=-e.width&&f.addClass("is-disabled")}function k(t,n){if(!_){E(!1);var o=t.dx;if(0!=o){n&&e.animationStarting(i.extend({},t));var a={local:n,def:t};o=parseInt(o,10),t.finalLeft=e.left+o,b=!0,Math.abs(o)>5&&c.optimizeForTransform(),c.animate({translateLeft:"+="+o+"px",leaveTransforms:r},t.duration,t.easing,(function(){a.finished||(a.finished=!0,e.render_adjustPosition(),b&&e.left!=t.finalLeft&&(c.css("translateLeft",t.finalLeft),e.render_adjustPosition()),b=!1,setTimeout((function(){!function(t){e.left=c.css("translateLeft"),e.animationFinished(),t.local&&I(t.def.returnTime),P()}(a)}),1))}))}}}function E(t){b&&(b=!1,c.stop(!0,!1,r),e.render_adjustPosition(),t&&e.animationCanceled())}c.delegate(d,"click touchend",(function(){w?w=!1:i.nd.drag.hasBeenInDrag()||e.itemClick(e.items.get(this.getAttribute("item-idx")))})),n.onContainerResized=function(){var t=e.isVisible();if(t||e.elm().show(),e.wrapperWidth=l.width(),e.wrapperWidth>e.width){_=!0;var n=(e.wrapperWidth-e.width)/2;c.translateLeft(n+"px"),h.hide(),f.hide()}else _&&(_=!1,c.translateLeft(this.left+"px")),h.show(),f.show();T(),t||e.elm().hide()},n.renderAsync=function(){e.isVisible()?n.render():(n._pendingRender=!0,c.html(""))},n.ensureRendered=function(){n._pendingRender&&n.render()},n.render=function(){n._pendingRender=!1,e.items=e.segmets=s.getSliderItems(),e.setLeft(0),e.beforeRender();var t=e.isVisible();t||e.elm().show();var r=[];e.items.each((function(e,t){var n=a+"_"+t.id;r.push("<"+d+' id="'+n+'" item-id="'+t.id+'" item-idx="'+t.idx+'">'+d+">")})),g&&c.width("auto"),c.fastHtml(r.join(""));var o=0;C=[],c.find(d).each((function(t,n){var r=i(n),a=e.items.get(n.getAttribute("item-idx"));s.renderSliderItem(a,r);var u=r.position().left,c=r.outerWidth(!0);C[a.idx]={left:u,right:u+c,item:a},o+=c})),e.width=g?c.width():o,n.onContainerResized(),e.render_updateSelectedItem(e.items.selectedItem(),null),t||e.elm().hide(),e.afterRender(),P()},e.render_navigateToItem=function(t,n){return function(t,n){E(!1);var i=A(t);if(i.length>0){var r,o=i.position().left,a=i.width(),s=o+a,u=e.wrapperWidth,c=-e.left,l=c+u,d=u/10;if(o>c&&se.width&&(r=e.width-u),cr-d){if(n)return void S(-r);k({dx:c-r,easing:v,duration:1e3},!0)}}}(t,n),this},e.render_navigateToElms=function(t,n){return function(t,n){var r=0,o=0,a=e.isVisible();a||e.elm().show(),t.each((function(e,t){var n=i(t),a=i.relativeOffsetLeft(t,c),s=a+n.width();(0===r||ao)&&(o=s)})),a||e.elm().hide();var s=o-r;if(!(s<=0)){E(!1);var u=e.wrapperWidth,l=-e.left,d=l+u,h=u/10;if(!(r>l&&oe.width&&(f=e.width-u),lf-h){if(!0===n)return void S(-f);k({dx:l-f,easing:v,duration:1e3},!0)}}}}(t,n),this},e.render_ensureRendered=function(){return n.ensureRendered(),this},e.render_adjustPosition=function(){return this.left=c.css("translateLeft"),T(),this},e.render_applyPosition=function(){return _||(c.css("translateLeft",this.left+"px"),P()),this},e.render_playAnimation=function(e){return k(e,!1),this},e.render_cancelAnimation=function(){return E(!1),this},e.render_updateSelectedItem=function(e,t){return t&&A(t).removeClass("sel"),e&&A(e).addClass("sel"),P(),this},e.render_showNextPage=function(){return E(!1),e.left-e.wrapperWidth>-e.width&&k({dx:-Math.min(e.wrapperWidth,e.width+e.left-e.wrapperWidth),easing:v,duration:1e3},!0),this},e.render_showPrevPage=function(){return E(!0),e.left<0&&k({dx:Math.min(e.wrapperWidth,-e.left),easing:v,duration:1e3},!0),this};var M={autoDrag:!0,disableY:!0,enableStat:!0,beforeDragStart:function(t,n,i){i.bounce=!0,i.minScrollX=0,i.maxScrollX=-(e.width-e.wrapperWidth),b&&(w=!0),E(!0),e.dragstart(),c.optimizeForTransform()},dragGo:function(t,n,i){if(_)i.adjustDelta(0,0);else{var r=parseInt(i.newX,10),o=r-e.left;0!=o&&(e.dragging(o,0),e.left=r,e.dragged(o,0),P())}},dragStop:function(t,n,i){var r=parseInt(i.newX,10),o=r-e.left;if(0!=o&&(e.dragging(o,0),e.left=r,e.dragged(o,0),P()),i.dX2&&i.dTime2<300){var a,s,u=e.wrapperWidth;i.dX2>0?a=-e.left:(s=e.width+e.left-u)<0&&(s=0);var c=i.momentum(i.dX2,i.dTime2,a,s,u);if(0!=c.dist){var l=e.left+c.dist;if((e.left>i.minScrollX&&l>i.minScrollX||e.leftMath.abs(e.getNormedLeftDiff(t.getNormedLeft()))),a}function l(){e.render_cancelAnimation(),t.render_cancelAnimation(),s()}e.dragstart(l).dragging(u).dragged((function(n,i){if(t.impl_ensureVisible(),a)t.setNormedLeft(this.getNormedLeft());else{var r=0;n<0?0!=e.getRightMargin()&&(r=t.getRightMargin()/e.getRightMargin()):0!=e.getLeftMargin()&&(r=t.getLeftMargin()/e.getLeftMargin()),t.setLeft(t.left+n*Math.abs(r))}})),t.dragstart(l).dragging(u).dragged((function(n,i){if(a)e.setNormedLeft(this.getNormedLeft());else{var r=0;n<0?0!=t.getRightMargin()&&(r=e.getRightMargin()/t.getRightMargin()):0!=t.getLeftMargin()&&(r=e.getLeftMargin()/t.getLeftMargin()),e.setLeft(e.left+n*Math.abs(r))}})),e.animationStarting((function(n){if(t.isVisible()){var i=n.dx,r=t.denormLeft(e.normLeft(i));if(t.render_adjustPosition(),s())n.dx=r,t.render_playAnimation(n);else{var o=e.left+i,a=t.denormLeft(e.normLeft(o)),u=(t.left,0);i<0?(0!=e.getRightMargin()&&(u=t.getRightMargin()/e.getRightMargin()),n.dx=i*Math.abs(u),a>t.left+n.dx&&(n.dx=a-t.left)):(0!=e.getLeftMargin()&&(u=t.getLeftMargin()/e.getLeftMargin()),n.dx=i*Math.abs(u),ae.left+n.dx&&(n.dx=a-e.left)):(0!=t.getLeftMargin()&&(u=e.getLeftMargin()/t.getLeftMargin()),n.dx=i*Math.abs(u),a").css({zIndex:t,position:"absolute",width:"100%",height:"100%"}).hide().appendTo(e.elm().parent());i.browser.msie&&n.css({opacity:0}),n.bind("mousedown touchstart mspointerdown",(function(){return e.impl_hide(),!1})),e.showing((function(){n.css("height",i.windowHeight()+"px").css("bottom","0").show()})),e.hiding((function(){n.hide()})),i.nd.layout.resize((function(){n.css("height",i.windowHeight()+"px")}))}(l);var h=new i.nd.ui.sliderSimpleController(u,l);this.userSelectItem=i.nd.delegateProxy(h,h.userSelectItem),this.sliderPreview_OnShowing=i.nd.delegateProxy(l,l.showing),this.sliderPreview_OnHiding=i.nd.delegateProxy(l,l.hiding),this.sliderPreview_OnHided=i.nd.delegateProxy(l,l.hided),this.sliderPreviewVisible=function(){return l.isVisible()},this.onContainerResized=function(){c.onContainerResized(),d.onContainerResized()},this.showNextPage=function(){u.render_showNextPage()},this.showPrevPage=function(){u.render_showPrevPage()},this.ensureElmsVisibleInPreview=function(e,t){l.render_navigateToElms(e,t)},this.hidePreview=function(e){l.impl_hide(e)},this.setItems=function(e){return null!=t&&(t.destroy(),t=null),t=e,a.setSliderItems(e),s.setSliderItems(e),c.render(),d.renderAsync(),h.setItemsCollection(e),this}}},6698:function(e,t,n){"use strict";var i=n(29583),r=(n(91909),{menuItemsSetup:function(e){i(e).find(".pop-list li > a, .pop-group li > a, .pop-list .list-item, .pop-group .list-item").has(".num, .val, .li-accessory").each((function(){i(this).css({"padding-right":function(){return parseInt(i(this).find(".num, .val, .li-accessory").outerWidth(!0))}})}))},toolbarSetup:function(e){var t=0;e.find(".toolbar-in").each((function(){var e=i(this),n=e.find(".toolbar-center h1"),r=e.find(".toolbar-left"),o=e.find(".toolbar-right"),a=e.find(".toolbar-search");n.hide(),n.css({width:"auto"}),r.css({"min-width":"0"}),o.css({"min-width":"0"}),a.css({"min-width":"0"});var s=e.outerWidth(),u=n.outerWidth(),c=r.outerWidth(),l=o.outerWidth(),d=a.outerWidth()||0;u+(t=Math.max(t,c,l+d))+t-d+t/2<=s?(r.css("min-width",t),o.css("min-width",t-d)):(r.css("min-width",0),o.css("min-width",0)),n.css("width",s-r.outerWidth()-o.outerWidth()-(a.outerWidth()||0)),n.show()}))},isPageVerticallyScrollable:function(){return i(document.body).hasClass("l-serv")}});i.nd=i.nd||{},i.nd.ui=i.nd.ui||{},i.nd.ui.utils=r,t.A=r},53236:function(e,t,n){"use strict";n.r(t);var i=n(99526),r=n(79450),o=n(86699),a=n(20680),s=function(){function e(){var e=this;this._reset(),this._loaded=!1,this._loadingPromise=void 0,this._updates=new i.m(1),this._updatesObservable=this._updates.asObservable(),o.A.onUserStateChanged((function(){return e.load(!0)}))}return Object.defineProperty(e.prototype,"displayName",{get:function(){return this._displayName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nickname",{get:function(){return this._nickname},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"photo",{get:function(){return this._photo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"photoUrl",{get:function(){return this._photo.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enAccountNumber",{get:function(){return this._enAccountNumber},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"avatarImageId",{get:function(){return this._avatarImageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"email",{get:function(){return this._email},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enableServiceEmails",{get:function(){return this._enableServiceEmails},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enablePromotionalEmails",{get:function(){return this._enablePromotionalEmails},enumerable:!1,configurable:!0}),e.prototype.getProfileId=function(){return this._profileId},e.prototype.getProfileIdAsync=function(){var e=this;return this.load().then((function(){return e.getProfileId()}))},Object.defineProperty(e.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updates",{get:function(){return this._updatesObservable},enumerable:!1,configurable:!0}),e.prototype._reset=function(){this._nickname="",this._photo={url:null},this._enAccountNumber="",this._profileId=null,this._avatarImageId="",this._email="",this._enableServiceEmails=!1,this._enablePromotionalEmails=!1},e.prototype.load=function(e){var t=this;if(void 0===e&&(e=!1),e&&(this._loaded=!1),this._loaded)return Promise.resolve();if(!o.A.isLogin())return this._reset(),this._loaded=!0,this._updates.next(),Promise.resolve();var n=this._loadingPromise;return void 0===n&&(this._loadingPromise=r.default.getCurrentProfile().then((function(e){e?(t._displayName=e.displayName||e.nickname||"",t._nickname=e.nickname||"",t._photo={url:e.photoUrl||""},t._avatarImageId=e.avatarImageId||"",t._enAccountNumber=e.enAccountNumber||"",t._profileId=e.profileId,t._email=e.email,t._enableServiceEmails=e.enableServiceEmails,t._enablePromotionalEmails=e.enablePromotionalEmails):t._reset(),t._loaded=!0,t._updates.next()})).catch(a.logError),(n=this._loadingPromise).finally((function(){t._loadingPromise=void 0}))),n},e.prototype.isPrivate=function(e){var t=this;return o.A.isLogin()?this.load().then((function(){return t._profileId&&e&&t._profileId.toUpperCase()===e.toUpperCase()}),(function(){return Promise.resolve(!1)})):Promise.resolve(!1)},e}();t.default=new s},90006:function(e,t,n){"use strict";var i=n(29583),r=n(13302),o=n(44260),a=n(78521);n(96723),i.nd.utils={hyphenate:function(e,t){t=t||25;for(var n=(e=e||"").split(" "),i=0;it){for(var a=r.replace(//g,">¶").replace(/&/g,"¶&").replace(/;/g,";¶").split("¶"),s=0;s-1||a[s].indexOf(">")>-1||a[s].lengtht;)o.push(u.substr(0,t)+""),u=u.substr(t);o.push(u)}n[i]=o.join("")}}}return n.join(" ")},getLastVisitTime:function(e){var t=new Date(e.DividerTime),n=new Date((new Date).getTime()-6e4*e.Minutes);return{lastVisitDate:o.Ay.formatDate(t,"DateFormat.LastVisitDate","dd MMM yyyy"),lastVisitTime:o.Ay.formatDate(t,"DateFormat.LastVisitTime","h:mm TT"),timeElapsed:o.Ay.format("TextView.SinceLastVisit",a.Vd(n,1))}},getUrlParameters:function(){return window.location.search.slice(1).split("&").reduce((function(e,t){var n=t.match(/([^=]+)(=)(.*)|(.+)/);if(n){var i=n[1],r=n[3],o=n[4];i=decodeURIComponent(i||o||""),r=decodeURIComponent(r||""),i&&(e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]:e[i]=r)}return e}),{})},removeInvisibleHyphens:function(e){return(e||"").replace(/\xAD/g,"")},convertToDate:function(e){var t=new Date(e);return isNaN(t.getTime())&&(e=e.replace(/-/g,"/").replace("T"," "),t=new Date(e)),t},escapeRegExp:function(e){return(0,r.escapeRegExp)(e)},addUrlScheme:function(e){return e?0==e.indexOf("http:")||0==e.indexOf("https:")?e:"http://"+e:e},createFilter:function(e){var t=function(e){for(var t={},n=0;nt.title()?1:e.title()"4_3"||(u=!0)),l.ndExtend({_url:null,drawImage:function(e,t){var n=c(e,"retina");if(n){var i=c(e=e.replace("&retina="+n,""),"targetWidth");i&&(e=e.replace("&targetWidth="+i,"")),n={targetWidth:i}}this._url=e;var r=this;return this._job&&this._job.abort(),this._job=o.loadImage(e,(function(e){e&&r._job&&(r._url=e.src,r.drawImageImpl(e,t,n),r._job=null)})),this._job},drawImageImpl:function(e,t,n){return this},reset:function(){return this._job&&(this._job.abort(),this._job=null),this},setSize:function(){return this},setRect:function(){},isActive:function(){return!1},getUrl:function(){return this._url}}),d.ndInheritFrom(l).ndExtend({drawImageImpl:function(e,t,n){if(e){if(this._active||(this._active=!0,this._img.style.display="inline"),this._img.src=e.src,n){var i=n.targetWidth||Math.floor(e.width/2);this._setWidth(i,!1)}else this._setWidth(e.width,!1);return t?this._setPos(t.left,t.top):this._setPos(0,0),void o.reuseImage(e)}},setSize:function(e){return this._requestedWidth===e.width?this:this._setWidth(e.width,!0)},setRect:function(e){this.isActive()&&(this._setWidth(e.width,!0),this._setPos(e.left,e.top))},reset:function(){return this.__ndCallBaseByName("reset"),this._img.src=a,this._requestedWidth=0,this._active=!1,this._img.style.display="none",this._setWidth(0,!1),this},isActive:function(){return this._active},_applyTransform:function(){var e="";return(this._translateX||this._translateY)&&(e.length>0&&(e+=" "),e+=i.nd.matrix.toTranslateString(this._translateX,this._translateY,null)),this._scale&&1!==this._scale&&(e.length>0&&(e+=" "),e+=i.nd.matrix.toScaleString(this._scale||1,this._scale||1,1)),i.style(this._img,i.props.transform,e||"none"),this},_setPos:function(e,t){return 0===this._left&&0===this._top||(this._left=e,this._top=t,r?(this._translateX=e,this._translateY=t,this._applyTransform()):(this._img.style.left=e+"px",this._img.style.top=t+"px")),this},_setWidth:function(e,t){this._requestedWidth||(this._requestedWidth=e),this._width||(this._width=e),t?this._requestedWidth=e:this._width=e;var n=this._requestedWidth;return Math.abs(this._requestedWidth-this._width)<2&&(n=this._width),r&&0!==this._scale&&(this._scale=0,this._applyTransform()),this._img.width=n,this}}),h.ndInheritFrom(l).ndExtend({drawImage:function(e,t){this._url=e,this._active=!0;var n=this._img2;this._resetImage(n),n._loading=!0,n._rect=t,n.onload=this._image_onload,n.onerror=this._image_onerror,n.src=e},_image_onload:function(){this._owner._image_onload_impl(this)},_image_onerror:function(){var e=this;if(e._retryNumber<5){var t=e._owner._url;e._retryNumber++,e.src=t+"&retry="+e._retryNumber}},_image_onload_impl:function(e){e!==this._img&&(this._img2=this._img,this._img=e),this._resetImage(this._img2),e.onload=null,e.onerror=null;var t=e._rect;t?(e.style.left=t.left+"px",e.style.top=t.top+"px"):(e.style.left="0",e.style.top="0"),e.style.width="auto",e.style.height="auto",e.style.zIndex=1,this._realWidth=this._width=e.width,this._realHeight=this._height=e.height,e._visible=!0},drawImageImpl:function(e,t){},setSize:function(e){return this._width===e.width&&this._height===e.height?this:this._img._visible?this._setSize(e.width,e.height,!0):this},setRect:function(e){var t=this._img;return t._visible&&(this._setSize(e.width,e.height,!0),t.style.left=e.left+"px",t.style.top=e.top+"px"),this},reset:function(){return this._active&&(this.__ndCallBaseByName("reset"),this._resetImage(this._img),this._resetImage(this._img2),this._realWidth=0,this._realHeight=0,this._scaleX=0,this._scaleY=0,this._width=0,this._height=0,this._url=null,this._active=!1),this},isActive:function(){return!0===this._img._visible},_setSize:function(e,t,n){return r&&n&&0!==e&&0!==t&&0!==this._realWidth&&0!==this._realHeight?(this._scaleX=e/this._realWidth,this._scaleY=t/this._realHeight,this._applyTransform()):(!r||0===this._scaleX&&0===this._scaleY||(this._scaleX=0,this._scaleY=0,this._applyTransform()),this._img.style.width=e+"px",this._img.style.height=t+"px",this._realWidth=e,this._realHeight=t),this._width=e,this._height=t,this},_optimize:function(e){},_applyTransform:function(){return i.style(this._img,i.props.transform,i.nd.matrix.toScaleString(this._scaleX||1,this._scaleY||1)),this},_resetImage:function(e){e._visible=!1,e._loading=!1,e._retryNumber=0,e.onload=null,e.onerror=null,e.style.zIndex=0,e.style.left="-10000px",e.style.width="0",e.style.height="0",r&&i.style(e,i.props.transform,i.nd.matrix.toScaleString(1,1)),this._optimize(e),e.src=a}}),u&&(d=h),f.ndExtend({_scale:0,_lowurl:null,_url:null,_stateChangedSinceLoad:!0,reset:function(){this.__ndCallBaseByName("reset"),this._scale=0,this._lowurl=null,this._url=null,this._stateChangedSinceLoad=!0},load:function(e){return e||this.isLoaded(this._url)||(this.__loadImage(this._url,this._lowurl),this._stateChangedSinceLoad=!1),this},__loadImage:function(e){},isLoaded:function(){},isActive:function(){},setUrl:function(e){this._url=e,this._stateChangedSinceLoad=!0},_applyRectTo:function(e,t){},applyRectTo:function(e,t){},applyRect:function(){},rect:function(e){return e?(this._rect=e,this):this._rect}}),p.ndInheritFrom(f).ndExtend({reset:function(){this.__ndCallBaseByName("reset"),this._render.reset(),this._job&&(this._job.abort(),this._job=null)},__loadImage:function(e){this._job&&this._job.abort(),this._job=this._render.drawImage(e,this.rect())},applyRect:function(){this._render.setRect(this.rect())},isLoaded:function(e){return!1===this._stateChangedSinceLoad}}),m.ndExtend({_zoomMode:!1,_fgUrl:null,_bgUrl:null,_rect:null,_singleLayerMode:!1,_cells:null,setIsZoomMode:function(e){return this._zoomMode=e,this},getIsZoomMode:function(){return!0===this._zoomMode},setFgUrl:function(e){return this._fgUrl=e,this.onScaleChanged(),this},getFgUrl:function(){return this._fgUrl},setBgUrl:function(e){return this._bgUrl=e,this.onScaleChanged(),this},getBgUrl:function(){return this._bgUrl},setRect:function(e){return this._rect=e,this},getRect:function(){return this._rect},setSingleLayerMode:function(e){this._singleLayerMode=e},getCell:function(e){var t=this._cells[e];return t||(t=this._cells[e]=this._createCell()),t},reset:function(){this.__ndCallBaseByName("reset"),this._resetCells()},_resetCells:function(){for(var e=this._cells.length-1;e>=0;--e){var t=this._cells[e];t&&t.reset()}},isLayersEnabled:function(){},_createCell:function(){},load:function(e){},loadCells:function(e,t){},onScaleChanged:function(){return this}}),g.ndInheritFrom(m).ndExtend({isLayersEnabled:function(){return!1===this._singleLayerMode&&(e=this.getRect().width,t=this.getRect().height,!(this.getIsZoomMode()&&u||s<=819200||i.browser.iOS&&e*t>2e6));var e,t},_createCell:function(){return new p(this._parentNode)},reset:function(){this.__ndCallBaseByName("reset"),this._bg_render.reset(),this._fg_render.reset()},onScaleChanged:function(){return this},load:function(e){if(e)return this;this._resetCells();var t=this.getRect();if(this.isLayersEnabled()){var n=this.getBgUrl();this._bg_render.setSize(t),this._bg_render.isActive()&&this._bg_render.getUrl()==n||this._bg_render.drawImage(n)}else this._bg_render.reset();var i=this.getFgUrl();return this._fg_render.setSize(t),this._fg_render.isActive()&&this._fg_render.getUrl()==i||this._fg_render.drawImage(i),this},loadCells:function(e,t,n,i){if(n)return!1;var r=!0;if(this._cells_scale!=i){for(var o=0;o=e.bottom){r=!1;break}if(s.left>=e.right||s.right<=e.left||s.bottom<=e.top){r=!1;continue}a.load()}}else for(o=0;o1&&!b.A.isLanding?b.A.historyProvider.back():b.A.goView(a.lP.PagesView,{issue:V.Issue,page:V.PageNumber},!0,!0,!0)}function ie(){k&&k.find("#TempIDPanelContent-01").hide()}function re(){var e=k.height(),t=parseInt(k.find("#TempIDPanelContent-03").height())-8,n=parseInt(k.find("#article-picture").height());if((e-n-179)/2>t){var i=(e-n)/2;k.find("#TempIDPanelContent-03").css("top",i-t+8+"px"),k.find("#TempIDPanelContent-04").css("top",i+n+8+"px"),k.find("#TempIDPanelContent-02").css("top",i+"px")}else{k.find("#TempIDPanelContent-02").css("top","0px");var r=2*e/3-(t+parseInt(k.find("#TempIDPanelContent-04").height()))/2;k.find("#TempIDPanelContent-03").css("top",r+"px"),k.find("#TempIDPanelContent-04").css("top",r+t+8+"px")}}function oe(){var e=k.height(),t=parseInt(k.find("#TempIDPanelContent-03").height())-8,n=(e-t)/2;k.find("#TempIDPanelContent-03").css("top",n+"px"),k.find("#TempIDPanelContent-04").css("top",n+t+8+"px")}function ae(e,t){if(E){var n=k.find(e);if(arguments.length>1){var i=(E.height()-n.outerHeight())/2;i0?parseFloat((parseInt(k.find("#r_xs_knobV").css("left"),10)/t).toFixed(2)):1}function pe(e){if(this._contextMenuController)this._contextMenuController.context({controller:this,article:e});else{var t=["pageView","textView","copy"];P.A.isLogin()&&t.push.apply(t,["comment","bookmark","share","print","translateArticle","translate"]),this._contextMenuController=new I.A(r.nd.views.radioView,{controller:this,article:e},t)}}function me(){this._contextMenuController.show({position:{x:k.find(".l-radio").width()/2,y:k.find(".l-radio").height()/2}})}function ge(){var e={Issue:{Id:V.Issue,Title:V.ContentName,ShortDateString:V.IssueDate},Page:V.PageNumber||V.Page,ArticleId:V.ArticleId,Id:V.Id,Language:V.Language,OriginalLanguage:V.OriginalLanguage,Title:V.Title,Subtitle:V.Subtitle,Byline:V.Byline,Blocks:V.Blocks,Images:V.Images};if(this._contextMenuController&&this._contextMenuController.context().article.ArticleId==e.ArticleId)me.apply(this);else if(e.Subtitle)pe.apply(this,[e]),me.apply(this);else{var t=this;(0,g.G4)("Articles","Get",{keys:V.ArticleId}).then((function(n){var i=n[0];e.Subtitle=i.Subtitle,e.Blocks=i.Blocks,pe.apply(t,[e]),me.apply(t)}))}}function ve(){r.nd.ui.menu.items.controllers.base.apply(this,arguments)}function ye(){this._menu=new r.nd.ui.menu.view(this)}r.extend(ve.prototype,r.nd.ui.menu.items.controllers.base.prototype,{_sectionName:null,item:function(e){return this._item||(this._sectionIndex=e,this._sectionName=z.Sections()[e].SectionName,this._item=new r.nd.ui.menu.items.custom(this,this._sectionName,"v7.Client.Radio.SectionListItem").bind(this.activate.bind(this)),this._item.selected=o.computed((function(){var e=z.Sections()[this._sectionIndex],t=z.CurrentArticleId();for(var n in e.Articles)if(e.Articles[n].ArticleId==t)return!0;return!1}),this),this._item.sectionDuration=null,this._item.onClick=function(e){var t;t=e.controller()._sectionName,ee(),R=V.ArticleId,X(L.getArticleFromSection(t)),F.hide()}),this._item}}),r.extend(ye.prototype,r.nd.ui.menu.controllers.base.prototype,{_renderer:null,renderer:function(){if(!this._renderer){for(var e=[],t=0;t0){var n=new ve;e.push(n.item(t))}this._renderer=new r.nd.ui.menu.renderers.list(this).title(z.NewspaperName()),this._renderer.addGroup(z.IssueDate()).items(e)}return this._renderer},resetMenu:function(){this._renderer=null}}),T={beforePlay:r.Callbacks(),afterPlay:r.Callbacks(),play:function(e,t){return this.beforePlay.fire(),(F=new ye).resetMenu(),B=t||S.A.currentLanguage(),X(L.getCurrentArticle(e)),this},init:function(e,t,n){z||(z=function(){var e,t=y.A.get("radio.baseUrl")||"http://tts.pressdisplay.com/media/pd/";function n(t){if(e.currentTime=t,0===t)s(null),e.PlayedTime("");else if(t){if(e.Duration()&&e.Duration()>0){var n=Math.floor((e.Duration()-t)/60),i=Math.floor((e.Duration()-t)%60);s(n,i>9?i:"0"+i)}var r=Math.floor(t/60),o=Math.floor(t%60);e.PlayedTime(r+":"+(o>9?o:"0"+o))}e.Duration()>0&&a()}function i(t){if(t===1/0&&(t=0),t||0===t){e.Duration(t);var n=e.Duration()%60;0==t?s(""):s(Math.floor(t/60),Math.floor(n>9?n:"0"+n))}t>0&&a()}function a(){var t,n,i=0;e.currentTime>0&&e.Duration()>0&&(i=e.currentTime/e.Duration()),t=i,n=N.width()*t,n=Math.max(n,0),n=Math.min(n,N.width()),k.find("#r_xs_knob").css("left",n),k.find("#r_xs_range").css("width",n)}function s(t,n){var i="";n&&(i="-"+t+":"+n),e.RemainedTime(i)}function u(e,t){var n=400;if(e&&t){var i=0,o=e.Url,a=Math.floor((E.width()-20)/e.Width*100),s=Math.floor((E.height()-20)/e.Height*100);if(as){var u=r(k).height();i=Math.floor(100*(u-u/4)/e.Height),o=o?"".concat(o,"&scale=").concat(i):(0,v.K6)(t,e.Uid,e.Key,e.Height,u-u/4)}else{var c=r(k).width();i=Math.floor(100*(c-c/4)/e.Width),o=o?"".concat(o,"&scale=").concat(i):(0,v.N6)(t,e.Uid,e.Key,e.Width,c-c/4)}else i=a>=n&&s>=n?n:a>s?s:a,o=o?"".concat(o,"&scale=").concat(i):(0,v.N5)(t,e.Uid,e.Key,i);return r.writeLog("url="+o+"&id=article-picture"),o+"&id=article-picture"}return"images/1x1.gif"}function h(e,t){if(e&&t)return(0,v.Fv)(e,400,t)}var f=(0,d.Lt)(c.XT)===l.O.Web,p=y.A.get("features.app.mobileview.supported",!1)&&y.A.get("features.app.header.enabled",!1);return(e={AppHeaderEnabled:o.observable(p),CurrentArticleId:o.observable(""),SubTitle:o.observable(""),NewspaperName:o.observable(""),IssueDate:o.observable(""),Section:o.observable(""),Title:o.observable(""),ImageUrl:o.observable(""),Uid:o.observable(""),Culture:o.observable(""),RemainedTime:o.observable(0),PlayedTime:o.observable(0),Duration:o.observable(""),Support:o.observable(0),Oppose:o.observable(0),Vote:o.observable(0),Sections:o.observable(L.getSections()),Image:o.observable(),Issue:o.observable(),PageNumber:o.observable(),Source:o.observable(),Picture:o.observable(),IsPaused:o.observable(!0),AutoPlay:o.observable(f),IsPlayDisabled:o.observable(!1),close:ne,showActions:ge,timeupdate:n,load:i,setData:function(r){r&&(z.CurrentArticleId(r.ArticleId),e.Image(r.Image),e.Issue(r.Issue),e.PageNumber(r.PageNumber),e.NewspaperName(r.ContentName||""),e.IssueDate(r.IssueDate||""),e.Section(r.SectionName||""),e.Title(r.Title||""),e.SubTitle(r.Text||""),e.Uid(r.Uid),e.Culture(r.Culture),e.Source(function(e,n){if(e&&n){var i=n.slice(0,2);return"".concat(t).concat(e,"$").concat(i,"_").concat(n,".mp3")}return""}(r.Uid,B||r.Culture||r.Language||r.OriginalLanguage)),e.Picture(u(r.Image,r.Issue)),e.ImageUrl(h(r.Issue,r.PageNumber)),A.A.getMeta(r.ArticleId,A.A.contentTypes.ARTICLE).then((function(t){e.updateVotesMeta(t)})),n(0),i(0))},updateDate:function(t){t&&(e.Culture(t.Culture),e.SubTitle(t.Text),e.PageNumber(t.PageNumber),e.Image(t.Image),e.Picture(u(t.Image,e.Issue())),e.ImageUrl(h(e.Issue(),t.PageNumber)))},votingEnabled:y.A.get("ui.Voting.enable",!0),vote_yes:function(){A.A.voteLike(e.CurrentArticleId(),A.A.contentTypes.ARTICLE).then((function(e){z.updateVotesMeta(e)}))},vote_no:function(){A.A.voteDislike(e.CurrentArticleId(),A.A.contentTypes.ARTICLE).then((function(e){z.updateVotesMeta(e)}))},next:q,prev:K,play:Z,pause:$,isMp3Supported:function(){var e=new window.Audio,t=!!e.canPlayType&&""!=e.canPlayType("audio/mp4");return t||C.A.error("This browser does not support audio."),t},updateVotesMeta:function(t){e.Support(t.likesCount),e.Oppose(t.dislikesCount),e.Vote(t.currentUserVote)}}).Source.subscribe((function(t){var n=document.getElementById("audio");n&&t?(n.src=t,e.AutoPlay()&&Q(n.play())):null==n||n.pause()})),e.Total=o.computed((function(){return e.Support()+e.Oppose()})),e.ValSupportPercent=o.computed((function(){var t=0;return e.Total()>0&&(t=Math.round(100*e.Support()/e.Total())),t})),e.SupportPercent=o.computed((function(){return e.ValSupportPercent()+"%"})),e}(),U(z)),j||(j=!0,w.A.activeViewChanged((function(e,t){t===a.lP.Radio&&r("#Panel_radioContainer").css({zIndex:1003})})),E=e,k=e.elm(),H=t,_.k.renderTo("v7.Client.Dialogs.Radio",z,k),N=k.find("#r_xs_slider"),z.isMp3Supported()&&((M=r("#audio")).on("ended",(function(){r.nd.event.trigger("radioplaystopped",T),r.writeLog("ended"),q()})),M.on("timeupdate",(function(){if(this.currentTime>9223372e6)return r.nd.event.trigger("radioplaystopped",T),void q();null==z||z.timeupdate(this.currentTime)})),M.on("loadeddata",(function(){r.writeLog("loadeddata "+this.duration),z.IsPlayDisabled(!1),r.nd.event.trigger("radioplaystarted",T,{currentArticle:V,returnView:H}),z.load(this.duration),this.paused&&z.AutoPlay()&&Q(M.get(0).play())})),M.on("durationchange",(function(){r.writeLog("durationchange "+this.duration),null==z||z.load(this.duration)}))),k.find("#article-picture").on("load",(function(){re(),ae("#article-picture")})),k.find("#thumbnail").on("load",(function(){ae("#r-lightBox-bd",44)})),k.find("#lightBox").on("load",(function(){ae("#r-lightBox-fd",44)})),k.on("click",".b-toc",W),N.on("mousedown",(function(e){return O=!0,ce(e),!1})),N.on("mousemove",ce),N.on("touchstart",le),N.on("touchmove",le),k.on("mousedown","#r_xs_sliderV",(function(e){return O=!0,de(e),!1})),k.on("mousemove","#r_xs_sliderV",de),k.on("touchstart","#r_xs_sliderV",he),k.on("touchmove","#r_xs_sliderV",he),k.on("mouseup",".l-radio",(function(){return O=!1,!1})),k.find("#touchwipeContent").touchwipe({wipeLeft:q,wipeRight:K,wipeUp:J,wipeDown:G,min_move_x:20,min_move_y:20,preventDefaultEvents:!0}),h.bind("offline",(function(){k.find(".r-xvote").addClass("dis")})),h.bind("online",(function(){k.find(".r-xvote").removeClass("dis")})),fe(1*k.find("#r_xs_sliderV").width()),E.resize(se),E.oncontentchanged())},close:ne,dispose:function(){k&&(M.get(0).pause(),r("#audio").off(),k.off(),k.empty(),L.offLoaded(),D&&D.destroyPlayer(),k=E=M=D=N=z=L=V=R=null,j=O=j=F=!1,U(null))},showTocMenu:W,model:U,setDataProvider:function(e){(L=e).onLoaded((function(e,t){V.ArticleId==t.ArticleId&&(z.updateDate(t),ue(t),setTimeout((function(){ae(".r-xsubtitle")}),400),z.Image()||oe())}))}},t.A=r.nd.viewer.radio=T},93482:function(e,t,n){"use strict";n.d(t,{g:function(){return y}});var i=n(29583),r=n(75575),o=(n(96723),{}),a=null,s=null,u=null,c=new r.R,l=[],d=function(e){this.startTime=null,this.duration=null,this.readingDuration=0,this.pages=null,this.issueId=e};d.prototype={_getAreas:function(){var e=[],t=i.nd.viewer.pagesViewLayout;if(!t)return[];var n=0;if(t&&i.isFunction(t.activePages)){var r=t.activePages();for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];if(a.isVisible()){var s=a.getNormalizedVisibleRect();s&&(n+=s.visibleAreaSquare,e.push(s))}}for(var u=e.length,c=0;c1e3&&a.pages&&a.pages.length&&(l.push(a),c&&(c.upload(l,e),l=[]))),a=null},f=function(){h(),a=new d(i.nd.viewer.pagesViewLayout.context().issue).start()};function p(){f(),s=0}function m(){h(),u=0}o.updateFrame=f;var g=function(){s&&(clearTimeout(s),s=0),u&&(clearTimeout(u),u=0),o.paused||(s=setTimeout(p,1500),u=setTimeout(m,6e4))};o.pause=function(){o.paused||(o.paused=1,a&&!a.haltTime&&(a.haltTime=new Date))},o.resume=function(){o.paused&&(o.paused=0,a&&a.haltTime&&(a.readingDuration=parseInt(a.haltTime-new Date),delete a.haltTime))};var v=!1;function y(){v||i.required("$.nd.viewer.pagesView",(function(e){v=!0,e.layoutUpdated(g),i(window).on("unload",(function(){h(!0)}))}))}t.A=o},41468:function(e,t,n){"use strict";n.d(t,{Wq:function(){return C},S9:function(){return v},CF:function(){return b},sx:function(){return _},z8:function(){return w}});var i=n(29583),r=n(92066),o=n(23880),a=n(2175),s=(n(39108),{});i.each(["Quad"],(function(e,t){s[t]=function(t){return Math.pow(t,e+2)}})),i.each(s,(function(e,t){i.easing["easeIn"+e]=t,i.easing["easeOut"+e]=function(e){return 1-t(1-e)},i.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}}));var u=n(48389),c=n(67010),l=n(76900),d=n(87837),h="left";i.nd.viewer.textView.animations={};var f=function(){var e=null,t=0,n=null,r=0,o=null,s=null,u=null;function c(t,n){return new Promise((function(i){e.elm.animate({translateLeft:e.left+=t},{duration:n,complete:i,easing:"easeOutQuad"})}))}function l(e,i){n.correctSections(t+Math.floor(i.pos*r))}function d(t,n){return new Promise((function(t){e.container.animate(i.nd.animationEmptyStep,{duration:n,easing:"easeOutQuad",complete:t,step:l})}))}function h(){if(o){e.elm.stop(!0),e.container.stop(!0);var t=s;o=s=u=e=n=null,t(),a.busy.reset()}}return{play:function(i,l,f){if(!o){if(!(l=Math.round(l)))return Promise.resolve();o=new Promise((function(e,t){s=e,u=t})),a.busy.set(),f=Math.round(f),n=i,e=i.scroller,t=e.left,r=l,Promise.all([c(l,f),d(0,f)]).then(h)}return o},stop:function(){if(o){e.elm.stop(!0),e.container.stop(!0);var i=u,c=e.elm.translateLeft();o=s=u=e=n=null,i(c,t+r-c),a.busy.reset()}},isActive:function(){return!!o}}}(),p=function(){function e(){this.counter<=0||--this.counter||(this.column.move(this.delta),this.resolve())}return{play:function(t,n,i){if(!n)return Promise.resolve();var r={counter:0,column:t,delta:n},o=new Promise((function(e){r.resolve=e})),a=t.visibleCells();if(a){var s={duration:i,complete:e.bind(r),easing:"easeOutQuad"};if(r.counter=a.length,t.hasDivider()){++r.counter;var u={};u.left=t.left()+n,t.divider().animate(u,s)}a.forEach((function(e){var i={};i[h]=t.left()+n,e.elm.animate(i,s)}))}else t.move(n),r.resolve();return o}}}(),m=function(){function e(){this.counter<=0||--this.counter||this.resolve()}return{play:function(t,n,i){if(!n||!t)return Promise.resolve();for(var r={counter:0},o=new Promise((function(e){r.resolve=e})),a=e.bind(r);t;t=t.next())++r.counter,p.play(t,n,i).then(a);return o}}}(),g=function(){function e(){this.counter<=0||--this.counter||this.resolve()}return{play:function(t,n,i){var r={counter:0},o=new Promise((function(e){r.resolve=e})),a=(n.count()*u.zt-u.oG)/(t.count()*u.zt-u.oG),s=-1,c=-1,l=0,d=0;t.forEach((function(e){var t=e.position();t.height>l&&(l=t.height),(s<0||t.topd&&(d=t.height),(c<0||t.top0}function h(e){var t={dividers:[],articles:[]};return e.children("div").each((function(){var e=i(this);t.dividers.push({elm:e,top:e.offset().top})})),e.children("article").each((function(){var e=i(this),n={text:[]},r=e.find("h1");r.length&&(n.title={elm:r,top:r.offset().top}),(r=e.find("h2")).length&&(n.subtitle={elm:r,top:r.offset().top}),(r=e.find("ul")).length&&(n.byline={elm:r,top:r.offset().top}),(r=e.children("figure")).length&&(n.image={elm:r,top:r.offset().top}),e.children("div[bidx]").each((function(){var e={elm:r=i(this),top:r.offset().top},t=parseInt(r.attr("bidx"),10);n.text.length<=t?n.text.push([e]):n.text[t].push(e)})),t.articles.push(n)})),t}function f(e,t,n){if(e)(i=e.top-t.top)&&t.elm.css("translateTop",i);else if(t&&(t.elm.css("opacity","0"),n)){var i=n.top-t.top;t.elm.css({translateTop:i,scaleX:.5,scaleY:.5})}}function p(){t>0&&(--t||(e.dispose(),e=void 0,s.invalidate(),a.busy.reset()))}function m(e,i,r){if(i)if(e&&!r){var o=e.top-i.top;i.elm.animate({opacity:0,translateTop:o,scaleX:.5,scaleY:.5},150,"easeOutQuad",p),++t}else if(e&&r){if(r.top!==e.top){var a=r.top-i.top;setTimeout((function(){i.elm.animate({translateTop:a},250,"easeOutQuad",p)}),n[0]),++t}}else if(!e&&r){var s=r.top-i.top;setTimeout((function(){i.elm.animate({translateTop:s,scaleX:1,scaleY:1,opacity:1},150,"easeOutQuad",p)}),n[1]),++t}}return{play:function(i,p,g){if(!l()){s=r.o.current.textView,a.busy.set();for(var v,y=p.prev(),_=p.detach(1),b=0;b1&&(H[0].elm.height()>B[0].elm.height()?f({top:H[0].top+F[1].top-F[0].top},F[1],void 0):f(void 0,F[1],{top:B[0].top+F[1].top-F[0].top}))}}for(b=0;b1&&(H[0].elm.height()>B[0].elm.height()?m({top:H[0].top+F[1].top-F[0].top},F[1],void 0):m(void 0,F[1],{top:B[0].top+F[1].top-F[0].top}));var O=function(e){var t=x.dividers[e].top-N.dividers[e].top;if(t||C.dividers[e].top!==x.dividers[e].top){var i=N.dividers[e].elm;setTimeout((function(){i.animate({translateTop:t},250,"easeOutQuad")}),n[0])}};for(b=0;bi.left&&o>i.right){var a=i.right-o;if(r+a500?500:t}(-a/e.columns().width))}return Promise.resolve()}(a,n,_+(c.above?1:0));if(c.above){for(S.push(m.play(d,(_+(c.below?1:0))*u.zt,300)),S.push(P),(I=c.above.cells[c.above.cells.length-1])&&!I.layout&&n.removeCell(I),h=(new o.fd).articleColumnsCount(1),v=new o.Sl(h,h),a.appendColumns(n,new o.Sl(h,h)),h.addLayout(c.clicked.layout),c.clicked.layout.unlock(n),A=0;Ad?h=d:l&&(h=h+l>d?d-l:h),i=new o.Sl(s,s),n.layouts()[0].render(h,l).then((function(t){return m.play(s.next(),(h-1)*u.zt,300).then((function(){return a.replaceColumns(i,t),s.dispose(),a.invalidate(),e=!1,{newnext:t,expanded:c}}))}))}}}(),b=i.nd.viewer.textView.animations.expandMonitors=function(){var e=!1;function t(){return e}return{isActive:t,play:function(n){t()&&Promise.resolve(),e=!0,a.busy.set();var i=r.o.current.textView,s=n,c=[],l=n.columnIdx(),d=n.layouts()[0]._data.Data.Monitors.length||0,h=Math.ceil(d/4),f=5;f>h?f=h:l&&(f=f+l>h?h-l:f);var p=new o.Sl(s,s),g=n.layouts()[0].render(f,l);return g.then((function(t){m.play(s.next(),(f-1)*u.zt,300).then((function(){return i.replaceColumns(p,t),s.dispose(),i.invalidate(),e=!1,{newnext:g,expanded:c}}))}))}}}(),w=i.nd.viewer.textView.animations.expandReplies=function(){var e=!1;function t(){return e}return{isActive:t,play:function(n){if(t())return Promise.resolve();e=!0,a.busy.set();var i=r.o.current.textView,s=n,c=[],l=n.columnIdx(),d=n.layouts()[0]._data.Data.Replies.length||0,h=Math.ceil(d/4),f=5;f>h?f=h:l&&(f=f+l>h?h-l:f);var p=new o.Sl(s,s);return n.layouts()[0].render(f,l).then((function(t){m.play(s.next(),(f-1)*u.zt,300).then((function(){return i.replaceColumns(p,t),s.dispose(),i.invalidate(),e=!1,{newnext:t,expanded:c}}))}))}}}(),C=i.nd.viewer.textView.animations.bookmarksBlockExpander=(y=!1,{play:function(e){if(!this.isActive()){a.busy.set();var t=e.layouts()[0],n=new o.Sl(e,e),i=r.o.current.textView;return t.expand().then((function(t){return t.head().isFirst(e.isFirst()),t.tail().isLast(e.isLast()),m.play(e.next(),t.head().width()-u.zt,300).then((function(){return i.replaceColumns(n,t),e.dispose(),i.invalidate(),y=!1,a.busy.reset(),t}))}))}},isActive:function(){return y}})},57551:function(e,t,n){"use strict";n.d(t,{C6:function(){return d},VJ:function(){return h},tb:function(){return l}});var i=n(13302),r=n(70953),o=n(77990),a=n(48389),s=n(92336),u=n(12010),c=n.n(u),l=function(){function e(e,t){void 0===t&&(t=""),this._parent=e,this._id=t,this.colspan=0,this._align=!1,this._idx=0}return e.prototype.copy=function(){var e=new this.constructor(this._parent,this._id);return e._layout=this._layout,e.colspan=this.colspan,e._align=this._align,e},e.prototype.id=function(){return this._id},e.prototype.uid=function(){return this.__type+this._id},e.prototype.article=function(){return this._parent.article()},e.prototype.config=function(){return this._parent.config()},e.prototype.articleType=function(){return 0},e.prototype.width=function(){var e=this._parent.width(this._id);return(0,i.isNumber)(e)?{min:e,max:e}:e},e.prototype.layout=function(){for(var e=[],t=0;t0},pick:function(e,t){return e||t},_goDeep:function(e,t,n){if(void 0===t.children)e.quality=this.evaluate(e),!0===e.quality.valid&&n.push(e);else for(var i=0;i=3*u.K_?t:null},image:function(e,t,n){var i=n.colspan,o=n.height,a=n.idx,s=n.type;if(!t)return t;for(var l=e.next();l;l=l.next()){var d=(0,r.find)(l.positions(),(function(e){return e.instance.type===s}));if(d){if(d.instance.idx=i){var y=c(t.top+o);return u.E3-y<3*u.K_&&u.E3-y>=u.K_?null:(t.height=o,t)}return(_=h-o)-(m=c(t.top))<3*u.K_&&_-m>=u.K_?null:(t.top=_,t.height=o,t)}if(v&&!g)return v.top-t.top-t.height=i?(_=t.height-o)<3*u.K_&&_>=u.K_?null:(t.top=_,t.height=o,t):(m=c(o),t.height-m<3*u.K_&&t.height-m>=u.K_?null:(t.height=o,t))}else{var _;if(f)return h-(m=c(t.top+o))<3*u.K_&&h-m>=u.K_?null:(t.height=o,t);if(p)return(_=h-o)-(m=c(t.top))<3*u.K_&&_-m>=u.K_?null:(t.top=_,t.height=o,t)}},preserveOrder:function(e,t,n){var i,o=n.type,a=n.idx;if(!a)return t;for(var s=function(n){(0,r.forEachRight)(n.positions(),(function(r){if(!(n===e&&r.top>t.top)&&r.instance.type===o)return i=r.instance.idxo)return null;var a=this.next();if(t>1&&!a)return null;var s=1===t,u=null,l=Number.MAX_VALUE;if((0,r.forEach)(this._positions,(function(r){if(!(e>=r.top+r.height)){if(e+n<=r.top){if(s)return u={top:e,height:Math.min(l,r.top-e)},!1;var d=a.findFirstPosition(e,t-1,n,i,o);if(!d)return!1;if((e=d.top)+n<=r.top)return u={top:e,height:Math.min(d.height,r.top-e)},!1;if(e>=r.top+r.height)return s=!0,void(l=d.height)}e=r.top+r.height,i&&(e=c(e)),s=1===t,l=Number.MAX_VALUE}})),!u&&e>=0&&e+n<=o)if(t>1){var d=a.findFirstPosition(e,t-1,n,i,o);d&&(e=d.top,i&&(e=c(e)),u={top:e,height:Math.min(d.height,o-e)})}else u={top:e,height:o-e};return u},t.prototype.findAllPositions=function(e,t,n,i,o){if(o=o||u.E3,i&&(e=c(e)),e+n>o)return[];var a=this.next();if(t>1&&!a)return[];var s=1===t,l=[],d=Number.MAX_VALUE;if((0,r.forEach)(this._positions,(function(r){if(!(e>=r.top+r.height)){if(e+n<=r.top)if(s)l.push({top:e,height:Math.min(d,r.top-e)});else{var u=a.findFirstPosition(e,t-1,n,i,o);if(!u)return!1;if((e=u.top)+n<=r.top)return void l.push({top:e,height:Math.min(u.height,r.top-e)});if(e>=r.top+r.height)return s=!0,void(d=u.height)}e=r.top+r.height,i&&(e=c(e)),s=1===t,d=Number.MAX_VALUE}})),e>=0&&e+n<=o)if(t>1){var h=a.findFirstPosition(e,t-1,n,i,o);h&&(e=h.top,l.push({top:e,height:Math.min(h.height,o-e)}))}else l.push({top:e,height:o-e});return l},t.prototype._checkPosition=function(e,t,n,i){i=i||u.E3;var o=e+n;if(o>i)return!1;var a=this.next();if(t>1&&!a)return!1;var s=!0;return(0,r.forEach)(this._positions,(function(t){if(t.tope)return s=!1,!1})),s&&(!(t>1)||a._checkPosition(e,t-1,n))},t.prototype.add=function(e,t){return this._cells.push(new f(this,e,t)),this._addPosition(t,e.colspan,e),this},t.prototype._addPosition=function(e,t,n){var i=new p(e,t,n),o=(0,r.findIndex)(this._positions,(function(t){return t.top>e}));o>=0?this._positions.splice(o,0,i):this._positions.push(i);var a=this.next();return t>1&&a&&a._addPosition(e,t-1,n),this},t.prototype.positions=function(){return this._positions},t.prototype.layout=function(){return this._layout},t.prototype.height=function(){if((0,r.isEmpty)(this._positions))return 0;var e=(0,r.last)(this._positions);return e.top+e.height},t.prototype.cells=function(){return this._cells},t}(o.ck),g=0,v=function(){function e(e,t){if(this._id=++g,e){this._colspan=e,this._columns=new o.To;for(var n=0;nu?n=e:s0?1:0,n.textDistribution().availableLines>0?1:0)||i(t.rate(),n.rate())||i(t.config().titleType,n.config().titleType)||(Math.random()>=.5?t:n)},e.fromJSON=function(t,n){var i=new e;return n&&(i._renderer=n,i._textBlocksHeights=n.textBlocksHeights(),i._article=n.article()),i._colspan=t._colspan,i._config=t._config,i._blockInstances=t._blockInstances,i._columns=o.To.fromJSON(t._columns,m,i),i},e.prototype.toJSON=function(){return{_colspan:this._colspan,_config:this._config,_blockInstances:this._blockInstances,_columns:this._columns.toJSON()}},e.prototype.id=function(){return this._id},e.prototype.copy=function(){var t=new e;return t._renderer=this._renderer,t._article=this._article,t._colspan=this._colspan,t._columns=new o.To,this._columns.forEach((function(e){t._columns.append(e.copy(t))})),(0,r.assign)(t._config,this._config),t._textBlocksHeights=this._textBlocksHeights,this._blockInstances&&(t._blockInstances=(0,r.map)(this._blockInstances,(function(e){return d(e)}))),t._totalTextLinesCount=this._totalTextLinesCount,t._totalLinesCount=this._totalLinesCount,t._map=this._map,t._rate=this._rate,t.toolsColumnAdded=this.toolsColumnAdded,t},e.prototype.articleElm=function(){return!this._renderer||this._articleElm&&this._articleElm.elm()||(this._articleElm=this._renderer.newArticleElm()),this._articleElm},e.prototype.deleteArticleElm=function(){return this._articleElm&&(this._articleElm.remove(),delete this._articleElm),this},e.prototype.columnElm=function(e){return this._renderer?this._renderer.columnElm(e):null},e.prototype.columns=function(){return this._columns},Object.defineProperty(e.prototype,"colspan",{get:function(){return this._colspan},enumerable:!1,configurable:!0}),e.prototype.addBlockInstance=function(e,t){var n=this,o=void 0===t?{}:t,a=o.expand,s=o.columnsCountToPreserve,u=void 0===s?0:s;if(!e.height)return[];var c,l=e.colspan,d=e.config;if(this._colspan0&&f;--g,--p,f=f.prev());if(!f||py.count()&&!c.length&&a)for(var s=y.count(),h=o+l-y.count();h>0;--h,++s)y.append(new m(n).index(s));var f=t.findPosition(e);return!(f.length&&(c.push.apply(c,(0,i.fX)([],(0,i.zs)((0,r.map)(f,(function(n){return{colidx:o,column:t,top:n.top,instance:e,columnsCount:y.count()}}))),!1)),!d.arbitrary))&&!d.alignLeft&&void 0}})),!c.length&&a){for(var _=this._colspan,b=(g=y.count(),l-y.count()+this._colspan);b>0;--b,++g)y.append(new m(this).index(g));var w=this._columns.tail().next();c=(0,r.map)(w.findPosition(e),(function(t){return{colidx:_,column:w,top:t.top,instance:e,columnsCount:y.count()}}))}y.count()>this._colspan&&y.detach(this._colspan-y.count())}return(0,r.map)(c,(function(e){var t=n.copy();return e.columnsCount>n._colspan&&t.appendColumns(e.columnsCount-n._colspan),t._applyPosition(e),t}))},e.prototype._applyPosition=function(e){var t=e.instance;return this._addBlockInstance(t),this._columns.item(e.colidx).add(t,e.top),this._totalLinesCount=-1,this},e.prototype._addBlockInstance=function(e){return this._blockInstances?this._blockInstances.push(e):this._blockInstances=[e],this._rate+=(e.isJSON?e.height:e.height())*e.colspan*((0,r.includes)([a.A.image,a.A.video],e.blockType)?1.1:1),this._gaps=null,(0,r.assign)(this._config,e.layoutConfig),this},e.prototype.applyBlockInstance=function(e,t,n){return this._addBlockInstance(e),this._columns.item(t).add(e,n),this._totalLinesCount=-1,this},e.prototype.appendColumn=function(){var e=this._columns.count();return this._colspan++,this._columns.append(new m(this).index(e)),this},e.prototype.popColumn=function(){return this._colspan?(this._colspan--,this._columns.detach(-1),this):this},e.prototype.appendColumns=function(e){for(var t=this._columns.count(),n=0;ni?++o:e=this._colspan&&(0,r.forEach)(this._textBlocks[this._colspan-1],(function(t){e.push({top:t.top(),height:t.height()})})),e.sort((function(e,t){return e.top-t.top})).push({top:u.E3,height:0});var t={top:0,height:0,colIndex:this._colspan-1},n=0;return(0,r.forEach)(e,(function(e){var i=e.top-n;i>t.height&&(t.top=n,t.height=i),n=e.top+e.height})),t},e.prototype.bottomPositionsAfterText=function(){for(var e=[],t=(0,r.last)((0,r.last)(this._textBlocks)),n=this._textBlocks.length-1,i=this._columns.item(n);n=a.top?t.top()+t.height():a.top+a.height,t=null;var s=u.E3-o;s>0&&e.push({columnIndex:n,top:o,height:s})}return e},e.prototype.textBlocksHeights=function(){for(var e=[],t=0;t=0)for(;c;){if(c=e._articleTextBlocksCount()){n=-1;break}i=Math.floor(e._textBlocksHeights.get(n,e._config.titleType)/u.K_)}else++o;c&&(a+=c)})),this._textDistribution={emptyColumnsCount:o,availableLines:t,emptyLinesCount:a}}return this._textDistribution},e.prototype._articleTextBlocksCount=function(){return this._article?this._article.Blocks.length:this._config.textBlocksCount},e.prototype.expand=function(){for(var e=[],t=0;t0){for(var o=0;o=v&&n.reject()}));return n.promise()}function P(e,t){return t||(t=function(e){for(var t in g){var n=g[t];if(!n.task&&e in n.loadedModules)return n}return null}(e.data.moduleName)),t?t.task?t.queue.push(e):(t.task=e,t.worker.postMessage({context:{requestId:e.id},command:e.command,data:e.data})):_.push(e),e.dfd.promise()}function x(e,t){return{id:++y,dfd:new d.c,command:e,data:t}}function T(e){var t=null;if(e.queue.length)t=e.queue.shift();else if(_.length)for(var n=0;n<_.length;++n)if(_[n].data.moduleName in e.loadedModules){t=_[n],_.splice(n,1);break}t?(e.task=t,e.worker.postMessage({context:{requestId:t.id},command:t.command,data:t.data})):e.task=null}function k(e){var t=this.task;switch(e.data.command){case f.LOAD_MODULE:switch(e.data.status){case h.READY:this.loadedModules[t.data.moduleName]=1,T(this),t.dfd.resolve();break;case h.ERROR:T(this),t.dfd.reject(e.data.error)}break;case f.EXEC_METHOD:switch(e.data.status){case h.PROGRESS:t.dfd.notify(e.data.result);break;case h.SUCCESS:T(this),t.dfd.resolve(e.data.result);break;case h.ERROR:T(this),t.dfd.reject(e.data.error)}}}function E(e){T(this),this.task&&this.task.dfd.reject(e)}!function(){if(p="undefined"!=typeof Worker){for(var e=4;e>0;--e){var t=C();if(!t)break;g[t.id]=t,++v}(p=!!v)&&(c.A.onConfigUpdated(I),c.A.loaded().then(I))}}();var M={support:function(){return p},loadModule:S,exec:function(e,t,n){return S(t).then((function(){return P(x("execMethod",{moduleName:t,methodName:e,params:n}))}))}},D=(n(98884),n(41107));function N(){}o.extend(N.prototype,{emulated:!0,support:function(){return!0},loadModule:function(e,t){var n=new d.c;try{(0,D.j)([e],(function(e){n.resolve()}),(function(e){n.reject(e)}))}catch(e){n.reject(e)}return n.promise()},exec:function(e,t,n){var i=new d.c;try{(0,D.j)([t],(function(r){var o=r[e];if("function"==typeof o){var a=o.apply(void 0,n);i.resolve(a)}else i.reject(new Error("Module "+t+" does not have method "+e+"."))}),(function(e){i.reject(e)}))}catch(e){i.reject(e)}return i.promise()}});var L=!0===M.support()?M:new N;function V(e,t,n){this._moduleName=t,this._loadDfd=e.loadModule(t,n),this._pool=e,this.poolEmulated=!!e.emulated}o.extend(V.prototype,{exec:function(e,t){var n=this;return this._loadDfd.then((function(){return n._pool.exec(e,n._moduleName,t||[])})).catch((function(e){throw e}))}});var R,H=n(72335),F=n(57551),B=n(23418),z=n(48389),O=n(70953),j=((R={})[O.A.image]={restrictions:{0:"image"}},R.baseTitle={mandatory:!0,alignLeft:!0,types:z.BX},R[O.A.title]="baseTitle",R[O.A.fullTitle]="baseTitle",R),U=[{name:"generic",blocks:[{type:O.A.translationBar,alignLeft:!0},{type:O.A.continuedFromLink,mandatory:!0,alignLeft:!0},{type:"choose",mandatory:!0,items:[{type:O.A.fullTitle,restrictions:{0:"title"}},{type:"group",items:[{type:O.A.title,restrictions:{0:"title"}},{type:O.A.subtitle,mandatory:!0,alignLeft:!0}]}]},{type:O.A.annotation,mandatory:!0,align:!0,restrictions:{0:"annotation"}},{type:O.A.image,arbitrary:!0},{type:O.A.video,arbitrary:!0},{type:O.A.relatedAd,maxPreviewInstances:0,arbitrary:!0,restrictions:{0:"image",1:"alignTopOrBottom"}},{type:O.A.comments,alignRight:!0,alignBottom:!0}]},{name:"compact",blocks:[{type:O.A.translationBar,alignLeft:!0},{type:O.A.fullTitle},{type:O.A.annotation,align:!0,restrictions:{0:"annotation"}},{type:O.A.image}]},{name:"minimized",blocks:[{type:O.A.title}]}];function W(e){(0,o.forEach)(e,(function(e){e.type in j&&(0,o.assign)(e,j[e.type]),"items"in e&&W(e.items)}))}U.loaded=c.A.getAsync("textview",null).then((function(e){return e&&e.layout&&e.layout.blocks&&(0,o.forIn)(e.layout.blocks,(function(e,t){return(0,o.assign)(j[t],e)})),(0,o.forIn)(j,(function(e,t){(0,o.isString)(e)&&(j[t]=j[j[t]])})),(0,o.forEach)(U,(function(e){return W(e.blocks)})),(0,z.pO)(j.baseTitle.types),U}));var Y=U,X=n(85464),q=n(23880),G=n(16213),K=n(11756),J=n(96543),Q=n(80543),Z=n(44260),$=n(67010),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.annotation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(){return!!this._article.Annotation},t.prototype.width=function(){return(0,z.y6)()},t.prototype.measure=function(e,t,n){var i,r=this,o=this._getHeightCacheKey();o in this._cache||n.mutate((function(){i=n.getArticleElm(0).createChild("div"),r._render(i),i.elm()})).measure((function(){r._cache[o]=i.elm().height()})).mutate((function(){i.remove(),i=null}))},t.prototype.render=function(e,t,n,i,r){var o=r.articleElm().createChild("div");this._render(o);var a=new $.G({elm:o.elm(),colspan:1,top:n,height:this.height(),smartFlowItemId:this._article.getId(),type:$.n.Column,layout:r});return a.addBlock(this),e.addCell(a),a},t.prototype._render=function(e){e.addClass("col").css({position:"absolute",width:"".concat((0,z.y6)(),"px")}).append('').append(Q.A.replace(this._article.Annotation,this._article.Data)).append("
")},t.prototype.highlight=function(e){return e.elm.find("p.art-annotation").html(Q.A.replace(this._article.Annotation,this._article.Data)),this},t}(F.C6),te=ee,ne=n(10358),ie=n(78521),re=n(51175),oe=n(64609),ae=n(92336),se=function(e){function t(){for(var t=[],n=0;n3*z.K_)||(i._cache[r]=a.elm().outerHeight())})).mutate((function(){s?o.find("div.text").css({overflow:"hidden",height:"".concat(3*z.K_,"px")}):(o.remove(),o=a=null)})).measure((function(){s&&(i._cache[r]=a.elm().outerHeight())})).mutate((function(){o&&(o.remove(),o=a=null)}))}},t.prototype._getHeightCacheKey=function(){return"h".concat(this._comment.id())},t.prototype._render=function(e,t){void 0===t&&(t=!1);var n=e.createChild("article").addClass("comment feat");n.append('").append(''.concat(this._comment.body(),"
"));var o=n.render().find("div.text");return o.height()>3*z.K_&&!t&&o.css({overflow:"hidden",height:"".concat(3*z.K_,"px")}),n},t.prototype._timespanString=function(){return ie.Vd(this._comment.date(),1)},t.prototype.render=function(e,t,n,i,r){var o=this._container();this._render(o);var a=o.elm();re.Ay.bind(a,"singleTapConfirmed",this._onTap.bind(this));var s,u="h".concat(this._comment.id());s=u in this._cache?this._cache[u]:o.elm().outerHeight();var c=new $.G({elm:o,colspan:1,top:n,height:s,smartFlowItemId:this._article.getId(),type:$.n.Column,layout:r});return c.onRemoved((function(){a&&(re.Ay.unbind(a,"singleTapConfirmed"),a=null)})),e.addCell(c),c},t.prototype._onTap=function(){var e=this._article;return oe.A.show({articleId:e.ArticleId,articleTitle:e.Title,articleSubtitle:e.Subtitle,contextProfileName:u.o.profileId}),!1},t.prototype._container=function(){return(0,X.uW)().section(this._article.group()).div().addClass("art-comments").css({position:"absolute",width:"".concat((0,z.y6)(),"px"),left:"-10000px",top:"-10000px"})},t}(F.C6),ue=se,ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.continuedFromLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(e){return!e.fromStart&&!!z.VB&&!!this._article.StartBlockIdx},t.prototype.width=function(){return(0,z.y6)()},t.prototype.height=function(){return z.K_},t.prototype.render=function(e,t,n,i,a){var s;s=this._article.ContinuedFromPage===this._article.ContinuedFromPageName?Z.Ay.format("TextView.ContinuedFromPage",this._article.ContinuedFromPage):Z.Ay.format("TextView.ContinuedFrom",this._article.ContinuedFromPageName);var c=r(''.concat(s," ")).tap((function(e){return u.o.current.textView.onContinuedFromClicked(o.isFunction(e.event)?e.event():e),!1})).optimizeForTransform();a.articleElm().elm().append(c);var l=new $.G({elm:c,colspan:1,top:n,height:z.K_,smartFlowItemId:this._article.getId(),type:$.n.Column,layout:a});return e.addCell(l),l},t}(F.C6),le=ce,de=n(69895);function he(e,t){return"h".concat(e,"_").concat(t)}function fe(e,t,n){var i,r="string"==typeof t.Text?t.Text:null===(i=t.Text)||void 0===i?void 0:i.Text,o="";return(t.Title||r)&&(o+="",t.Title&&(o+="".concat(n?t.Title:Q.A.replace(t.Title,e.Data)," ")),r&&(o+=" ".concat(n?r:Q.A.replace(r,e.Data))),o+=" "),o}function pe(e){var t=e.image,n=e.width,i=e.elm,r=e.preview,o=e.forMeasure,a=e.article,s=e.cache,u=n/t.Width*100,c=Math.ceil(u),l=Math.floor(t.Width*c/100),d=Math.floor(t.Height*c/100),h=window.devicePixelRatio>1?Math.min(Math.round(c*window.devicePixelRatio),z.UO):c,f="".concat(t.Url+(t.Url.indexOf("?")>=0?"&":"?"),"scale=").concat(h);if(i.css({position:"absolute",width:"".concat(n,"px"),overflow:"hidden"}).addClass("art-pic").attr("imgid",t.Id).append("").append(' ')),t.Byline&&i.append("").append(r?t.Byline:Q.A.replace(t.Byline,a.Data)).append(" "),i.append(" ").append(fe(a,t,r)),!o){if(s){var p=he(t.Id,n),m=void 0;return p in s?m=s[p]:s[p]=m=i.height(),m}return i.height()}}function me(e){var t,n=e.image,i=e.column,r=e.top,o=e.colspan,a=e.layout,s=e.article,u=e.cache,c=null!==(t=e.width)&&void 0!==t?t:(0,z.y6)(o),l=a.articleElm().createChild("figure"),d=pe({article:s,image:n,width:c,elm:l,cache:u}),h=new $.G({elm:l.elm(),colspan:o,top:r,height:d,smartFlowItemId:s.getId(),type:$.n.Figure,layout:a});return i.addCell(h),h}function ge(e){return!(e>z.E3)&&(z.E3-e>=3*z.K_||z.E3-e0&&e.Width>0}))),r}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.image},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(){return!(0,o.isEmpty)(this._images)},t.prototype.instances=function(e){var t=this;if((0,o.isEmpty)(this._images))return null;var n=[],i={};return this._imagesById||(this._imagesById={}),this._widths||(this._widths={}),(0,o.forEach)(this._images,(function(r,o){if(r.Id in t._imagesById||(t._imagesById[r.Id]=r),r.Id!==e){for(var a=0,s=0,u=1;u<=z.Ps;++u){var c=i[u];c||(i[u]=c=(0,z.y6)(u));var l=Math.round(100*c/r.Width);if(l>z.UO&&(l=z.UO),!ge(Math.round(r.Height*l/100)))break;a?s=c:a=s=c}a&&(t._widths[r.Id]={min:a,max:s},n.push(new ye(t,r.Id).image(r).idx(o)))}})),n.length?((0,o.includes)(this._config.restrictions,"preserveOrder")||e||n.sort((function(e,t){var n=e.image(),i=t.image();return i.Width*i.Height-n.Width*n.Height})),n):null},t.prototype.width=function(e){return this._widths[e]},t.prototype.measure=function(e,t,n){for(var r=this,o=[],a=1;a<=t;++a){var s=(0,z.y6)(a),u=this._widths[e];if(s>=u.min&&s<=u.max){var c=this._getHeightCacheKey(e,a);if(c in this._cache)continue;o.push({colspan:a,key:c})}}if(o.length){var l=[];n.mutate((function(){var t,a,s=n.getArticleElm(0),u=r._imagesById[e];try{for(var c=(0,i.Ju)(o),d=c.next();!d.done;d=c.next()){var h=d.value,f=h.colspan,p=h.key,m=s.createChild("figure");pe({article:r._article,image:u,width:(0,z.y6)(f),elm:m,cache:r._cache,preview:!0,forMeasure:!0}),m.elm(),l.push({elm:m,key:p})}}catch(e){t={error:e}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(t)throw t.error}}})).measure((function(){var e,t;try{for(var n=(0,i.Ju)(l),o=n.next();!o.done;o=n.next()){var a=o.value,s=a.elm,u=a.key;r._cache[u]=s.height()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}})).mutate((function(){var e,t;try{for(var n=(0,i.Ju)(l),r=n.next();!r.done;r=n.next())r.value.elm.remove()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}l=null}))}},t.prototype._getHeightCacheKey=function(e,t){return he(e,(0,z.y6)(t))},t.prototype.highlight=function(e){var t=e.elm,n=this._imagesById[t.attr("imgid")];t.find("figcaption").replaceWith(fe(this._article,n))},t.prototype.render=function(e,t,n,i,r){var o=me({article:this._article,image:this._imagesById[t],column:e,top:n,colspan:i,layout:r,cache:this._cache});return o.addBlock(this),o},t.prototype.apply=function(e,t,n){return n.config().imageId=e,this},t.prototype.estimateLinesCount=function(e){return(0,o.isEmpty)(this._images)?0:(0,o.chain)(this._images).map((function(t){for(var n={w:0,h:0,s:0},i=[],r=1;r<=e;++r)i[r]=(0,z.y6)(r);for(r=e;r>0;--r){var o=i[r],a=Math.round(100*o/t.Width);if(!(a>z.UO)){var s=Math.round(t.Height*a/100);if(ge(s)){var u=o*s;u>n.s&&(n={w:o,h:s,s:u})}}}return Math.ceil(n.h/z.K_)*Math.round(n.w/z.zt)})).max().value()},t}(F.C6),be=_e,we=n(16957),Ce=n(85351),Ae=n(22537),Ie=n(97433),Se=n(26308),Pe=n(59823),xe=n(84531),Te=n(43243),ke=n(445),Ee="isVideoSupported",Me=function(e){void 0===e&&(e=null);var t=ke.A.get(Ee);return void 0!==t?Promise.resolve(t):Ie.b.video?(e?Promise.resolve(e):c.A.getAsync("video.emptyMp4")).then((function(e){return function(e){var t=document.createElement("video"),n=t.style;n.position="absolute",n.height=0,n.width=0,t.setAttribute("autoplay",""),t.style.cssText="display:none";try{if(!Ie.b.video.h264)return null;var i=document.createElement("source");i.type="video/mp4",i.src=e,t.appendChild(i)}catch(e){return null}return t}(e)})).then((function(e){return null===e?(ke.A.set(Ee,!1),Promise.resolve(!1)):(t=e,new Promise((function(e,n){document.documentElement.appendChild(t),setTimeout((function(){var i,r=(0,Se.R)(t,"playing"),o=r.subscribe((function(){i=!0,o.unsubscribe()})),a=(0,Pe.Y)(1e3).pipe((0,xe.s)(1),(0,Te.Q)(r)).subscribe(void 0,n,(function(){var n=i||t.currentTime>0;ke.A.set(Ee,n),a.unsubscribe(),e(n)}))}),0)})).finally((function(){t.parentNode.removeChild(t)})));var t})):(ke.A.set(Ee,!1),Promise.resolve(!1))};function De(){return void 0===ve&&(ve=!1,Me().then((function(e){ve=!!e}))),ve}var Ne,Le="currentColumnChanged",Ve=function(e){function t(){for(var t=[],n=0;nz.MJ)break;var d=Math.round(r.Height*l/100);if(u>1&&!t._isValidVideoHeight(d))break;a?s=c:a=s=c}a&&(t._widths[r.Id]={min:a,max:s},n.push(new Ve(t,r.Id).video(r).idx(o)))}})),n.length?((0,o.includes)(this._config.restrictions,"preserveOrder")||n.sort((function(e,t){var n=e.video(),i=t.video();return i.Width*i.Height-n.Width*n.Height})),n):null},t.prototype.width=function(e){return this._widths[e]},t.prototype._isValidVideoHeight=function(e){return z.E3-e>=3*z.K_||z.E3-e=o.min&&u<=o.max){var c=this._getHeightCacheKey(e,s);if(c in this._cache)continue;a.push({key:c,colspan:s})}}if(a.length){var l=[];n.mutate((function(){var t,o,s=r._videos[e],u=n.getArticleElm(0);try{for(var c=(0,i.Ju)(a),d=c.next();!d.done;d=c.next()){var h=d.value,f=h.key,p=h.colspan,m=u.createChild("figure");r._render(s,p,m,!0,!0),m.elm(),l.push({key:f,elm:m})}}catch(e){t={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(t)throw t.error}}})).measure((function(){var e,t;try{for(var n=(0,i.Ju)(l),o=n.next();!o.done;o=n.next()){var a=o.value,s=a.key,u=a.elm;r._cache[s]=u.height()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}})).mutate((function(){var e,t;try{for(var n=(0,i.Ju)(l),r=n.next();!r.done;r=n.next())r.value.elm.remove()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}l=null}))}},t.prototype._getHeightCacheKey=function(e,t){return"h".concat(e,"_").concat(t)},t.prototype._render=function(e,t,n,i,r,o){var a=100*(0,z.y6)(t)/e.Width,s=Math.round(e.Width*a/100),c=Math.ceil(a),l=Math.floor(e.Width*c/100),d=Math.floor(e.Height*c/100);if(n.css({position:"absolute",width:"".concat(s,"px"),overflow:"hidden"}).addClass("art-video").attr("video-id",e.Id).attr("data-name","art-vid").append('
')).append('
')).append(this._captionHtml(e,i)),!r){var h=n.elm();this._textView=u.o.current.textView,this._addPlayer(e,h,l,d,o).catch(G.A.error),this._cache["".concat(e.Id,"_").concat(o,"_fullscreen")]=(0,we.bx)(n.elm()).subscribe((function(e){setTimeout((function(){return Ae.Ay.freeze(e)}),150)}));var f="h".concat(e.Id,"_").concat(o,"_").concat(t),p=void 0;return f in this._cache?p=this._cache[f]:this._cache[f]=p=n.height(),p}},t.prototype._addPlayer=function(e,t,n,i,r){var o=this,a=t.find("#".concat(e.Id,"_").concat(r,"_player")),s=t.find("#".concat(e.Id,"_").concat(r,"_wrapper"));return Ce.A.getPlayer(e.Url,a.get(0),{width:n,height:i,playerVars:{rel:0,showinfo:0}}).then((function(t){return o._cache["".concat(e.Id,"_").concat(r,"_player")]=t,o._addPlayerEvents(t,e,s,i,r),t}))},t.prototype._addPlayerEvents=function(e,t,n,i,o){var a=this;e.on("play",(function(){Ne&&Ne.pause().catch(G.A.error),Ne=e})),e.on("pause stop",(function(){Ne===e&&(Ne=null)})),n.tap((function(){e.isPlaying?e.pause().catch(G.A.error):De()?e.play().then((function(){return n.css({height:"".concat(i-50,"px")})})).catch(G.A.error):a._openPopup(t.Url).catch(G.A.error)})),De()&&(this._cache["".concat(t.Id,"_").concat(o,"_pauseOnScroll")]=function(){if(e.isPlaying){var n=r("#".concat(t.Id,"_").concat(o,"_player"))[0].getBoundingClientRect(),i=window.innerWidth||document.documentElement.clientWidth;(n.left<0||n.left>i)&&e.pause().catch(G.A.error)}},J.A.bind(this._textView,Le,null,this._cache["".concat(t.Id,"_").concat(o,"_pauseOnScroll")]))},t.prototype._openPopup=function(e){var t=r('').appendTo(document.body),n=r(window);return Ce.A.getPlayer(e,t.find(".player").get(0),{width:n.width(),height:n.height(),playerVars:{rel:0,showinfo:0}}).then((function(e){var n=".pigal-btn.b-close",i=function(){e.destroy().catch(G.A.error).finally((function(){t.off("click",n,i),t.remove()}))};return t.on("click",n,i),t}))},t.prototype._captionHtml=function(e,t){if(!e)return"";var n=null!==e.Text&&(0,o.isObject)(e.Text)?e.Text.Text:e.Text,i="";return(e.Title||n)&&(i+="",e.Title&&(i+="".concat(t?e.Title:Q.A.replace(e.Title,this._article.Data)," ")),n&&(i+=" ".concat(t?n:Q.A.replace(n,this._article.Data))),i+=" "),i},t.prototype.highlight=function(e){var t=e.elm,n=this._videos[t.attr("video-id")];t.find("figcaption").replaceWith(this._captionHtml(n))},t.prototype.render=function(e,t,n,i,r){var o=(new Date).getTime(),a=r.articleElm().createChild("figure"),s=this._videos[t],u=this._render(s,i,a,!1,!1,o),c=new $.G({elm:a.elm(),colspan:i,top:n,height:u,smartFlowItemId:this._article.getId(),type:$.n.Figure,layout:r});return c.addBlock(this),c.onRemoved(this.dispose.bind(this,o)),e.addCell(c),c},t.prototype.dispose=function(e){var t=this;(0,o.forIn)(this._videos,(function(n){t._cache["".concat(n.Id,"_").concat(e,"_fullscreen")]&&(t._cache["".concat(n.Id,"_").concat(e,"_fullscreen")].unsubscribe(),delete t._cache["".concat(n.Id,"_").concat(e,"_fullscreen")]),t._cache["".concat(n.Id,"_").concat(e,"_pauseOnScroll")]&&(J.A.unbind(t._textView,Le,t._cache["".concat(n.Id,"_").concat(e,"_pauseOnScroll")]),delete t._cache["".concat(n.Id,"_").concat(e,"_pauseOnScroll")]);var i=t._cache["".concat(n.Id,"_").concat(e,"_player")];i&&(Ne===i&&(Ne=null),i.destroy().catch(G.A.error),delete t._cache["".concat(n.Id,"_").concat(e,"_player")])}))},t.prototype.apply=function(e,t,n){return n.config().videoId=e,this},t.prototype.estimateLinesCount=function(e){var t=this,n=(0,o.filter)(this._article.Videos,(function(e){return e.Width}));return(0,o.isEmpty)(n)?0:(0,o.chain)(n).map((function(n){for(var i={w:0,h:0,s:0},r=[],o=1;o<=e;++o)r[o]=(0,z.y6)(o);for(o=e;o>0;--o){var a=r[o],s=Math.round(100*a/n.Width);if(!(s>z.MJ)){var u=Math.round(n.Height*s/100);if(t._isValidVideoHeight(u)){var c=a*u;c>i.s&&(i={w:a,h:u,s:c})}}}return Math.ceil(i.h/z.K_)*Math.round(i.w/z.zt)})).max().value()},t.canRender=function(e){return Ce.A.playerExists(e)},t}(F.C6),He=Re,Fe=n(25778),Be=n(84901),ze=n(65678),Oe=n(3585),je=n(95400),Ue=n(67373),We=n(85377),Ye=n(18970),Xe=n(77990),qe=n(67303),Ge={};function Ke(e){return u.o.current.textView.onReadMoreClicked((0,o.isFunction)(e.event)?e.event():e),!1}function Je(e){return t=e.target,n=function(e){for(;e;){var t=(0,o.isFunction)(e.getAttribute)&&e.getAttribute("aid");if(t)return t;e=e.parentNode}return null}(t),n?u.o.current.textView.controller.dataFeedManager().getArticleById(n):null;var t,n}function Qe(e){var t=Je(e);return t&&oe.A.show({articleId:t.ArticleId,articleTitle:t.Title,contextProfileName:u.o.profileId}),!1}function Ze(e){var t=Je(e);return t&&Be.A.goView(ze.lP.Similar,{type:"similar",similarArticleId:t.ArticleId,issueId:t.Issue.Id,articleTitle:t.Title,issueTitle:t.Issue.title(),articleDate:t.Issue.Date,articleShortDate:t.Issue.ShortDateString,similarArticlesCount:t.similarArticlesCount()}),!1}function $e(e){var t=Je(e);return t&&Be.A.goView(ze.lP.PagesView,{issue:t.Issue.Id,page:t.Page}),!1}function et(e){var t=Je(e);return t&&Be.A.goView(ze.lP.Profile,{profileId:t.Source.ChannelId}),!1}function tt(e){return u.o.current.textView.onToolsClicked((0,o.isFunction)(e.event)?e.event():e),!1}function nt(e){var t=r(e.target).closest("[data-thumb-bookmark]"),n=t.attr("issueId"),i=t.attr("bookmarkId"),o=t.attr("pageNo"),a=t.attr("bookmarkButtonLocked");if(e.preventDefault(),e.stopPropagation(),n&&!a){var s={bookmarkType:Ue.x.pages,pageNumbers:[o||1],issue:n,bookmarkId:i};je.A.show({bookmarkContext:s})}return!1}function it(){var e=(0,X.uW)().parent();e._commentsElmRegistred||(e.tap("a.lbl-comment",Qe),e._commentsElmRegistred=!0),e._titleElmRegistred||(e.tap('hgroup>h1[data-article-title="true"]',Ke),e._titleElmRegistred=!0),e._sourceElmRegistred||(e.tap("li.art-source>a, li.art-date>a",$e),e._sourceElmRegistred=!0),e._similarElmRegistred||(e.tap("li.art-similar>a",Ze),e._similarElmRegistred=!0),e._userElmRegistred||(e.tap("a.art-user",et),e._userElmRegistred=!0),e._titleToolButtonRegistered||(e.tap(".art-options-call",tt),e.tap("span[data-thumb-bookmark]",nt),Oe.bookmarkCreateSubscription.pipe((0,Fe.p)((function(e){return e.data&&e.data.articleId}))).subscribe((function(e){return function(e){var t=e.articleId,n=(0,X.uW)().parent();if(n&&t){var i=n.find(".art-options-call[articleId=".concat(t,"]"));i.length<1||i.addClass("bookmarked").attr("bookmarkId","bookmarked")}}(e.data)})),Oe.bookmarkDeleteSubscription.pipe((0,Fe.p)((function(e){return e.data&&e.data.articleId}))).subscribe((function(e){return function(e){var t=e.articleId;if(t){var n=(0,X.uW)().parent().find(".art-options-call[articleId=".concat(t,"]"));n.length<1||n.removeClass("bookmarked").removeAttr("bookmarkId")}}(e.data)})),e._titleToolButtonRegistered=!0)}var rt,ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.render=function(t,n){for(var r=this,o=[],a=2;a0?e.commentsCount:""),t.css("visibility",e.commentsCount>0?"visible":"hidden"))},t.prototype.onVoteMetaUpdatedHandler=function(e){var t=this.elm().find(".lbl-comment");if(t.length){var n=this.article()||{};t.toggleClass("neg",e.dislikesCount>e.likesCount),n.LikeItVotes=e.likesCount,n.HateItVotes=e.dislikesCount}},t.prototype.onCellRemoved=function(){for(var t=[],n=0;n>8},e.prototype.copy=function(){return new e(this.value)},e.prototype.toString=function(){return String(this.value)},e}(),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.width=function(e){var t="w".concat(e);if(t in this._cache)return this._cache[t];throw new Error("Cannot get width before measuring.")},t.prototype._elmsForWidth=function(e,t){var n=t.createChild("header");this._render(n,0,e.copy().hyphenateTitle(!0).forceCommentsCount(!0).ignoreHeight(!0).disableHighlight(!0).titleOnly(!0),!0),n.elm();var i=t.createChild("header");this._render(i,0,e.copy().hyphenateTitle(!1).forceCommentsCount(!0).ignoreHeight(!0).disableHighlight(!0).titleOnly(!0),!0);var r=t.createChild(i.elm()[0].cloneNode(!0));return n.css({width:"1px","overflow-x":"auto"}),i.css({width:"1px","overflow-x":"auto"}),r.css("white-space","nowrap"),[n,i,r]},t.prototype._elmForHeight=function(e,t,n){var i=e.createChild("header");return this._render(i,n,t.copy().forceCommentsCount(!0).ignoreHeight(!0).disableHighlight(!0),!0),i.append('a
').elm(),i},t.prototype.measure=function(e,t,n){var r,o,a=this,s=e.type(),u=n,c="w".concat(e);c in this._cache?r=this._cache[c]:(u=u.mutate((function(){o=a._elmsForWidth(e,n.getArticleElm(s))})).measure((function(){r=a._cache[c]={min:o[0].elm()[0].scrollWidth,mid:o[1].elm()[0].scrollWidth,max:o[2].elm().width()},s in Ge||(Ge[s]=o[2].elm().find("a.lbl-comment").width())}))).mutate((function(){var e,t;try{for(var n=(0,i.Ju)(o),r=n.next();!r.done;r=n.next())r.value.remove()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}o=null}));var l=[];if(s<0)(h="h".concat(e,"_1"))in this._cache||l.push({key:h,colspan:1});else for(var d=1;d<=t;++d)if(d>1||!s){var h;if((h="h".concat(e,"_").concat(d))in this._cache)continue;l.push({key:h,colspan:d})}l.length&&u.mutate((function(){var t,r,o=n.getArticleElm(s);try{for(var u=(0,i.Ju)(l),c=u.next();!c.done;c=u.next()){var d=c.value,h=d.colspan,f=d.elm=a._elmForHeight(o,e,h),p=a._adjustedTitleWidth(e,h);p&&f.elm().find("h1").css("width","".concat(p,"px"))}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}})).measure((function(){var t,n,o=e.hyphenateTitle()?r.min:r.mid;try{for(var s=(0,i.Ju)(l),u=s.next();!u.done;u=s.next()){var c=u.value,d=c.key,h=c.elm,f=c.colspan;a._cache[d]=o>(0,z.y6)(f)?void 0:h.elm().height()}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}})).mutate((function(){var e,t;try{for(var n=(0,i.Ju)(l),r=n.next();!r.done;r=n.next())r.value.elm.remove()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}l=null}))},t.prototype._render=function(e,t,n,i){if(e){e.css("position","absolute").attr("flag",n),t&&e.css("width","".concat((0,z.y6)(t),"px"));var r=n.hyphenateTitle()?this._article.HyphenatedTitle:this._article.Title;e.append("").append('").append(n.disableHighlight()?r:Q.A.replace(r,this._article.Data)),z._b&&this._renderCommentsBubble(e,n),e.append(" "),i||it(),n.enableSubtitle()&&!n.titleOnly()&&this._renderSubtitle(e,n),e.append(" "),n.enableByline()&&!n.titleOnly()&&this._renderByline(e,n),z.FG&&!qe.A.isIssueRestrictedBy("Bookmarks")&&this._renderBookmarkButton(e,i),n.ignoreHeight())return null;var a,s="h".concat(n,"_").concat(t);return s in this._cache?a=this._cache[s]:this._cache[s]=a=e.checkpoint(),e.checkpoint(a),a}},t.prototype._renderCommentsBubble=function(e,t){var n=this._article.HateItVotes>this._article.LikeItVotes?" neg":"",i=this._article.PostsCount?"":"visibility:hidden;",r=this._article.PostsCount?this._article.PostsCount:t.forceCommentsCount()?"0":"";return e.append('"))},t.prototype._adjustedTitleWidth=function(e,t){if(!e.ignoreHeight()){var n=e.type(),i="w".concat(e);if(n in Ge&&i in this._cache){var r=(0,z.y6)(t),o=Ge[n],a=this._cache[i].max;if(r>=a&&r-a<=2*o)return r-2*o}}},t.prototype._renderSubtitle=function(e,t){this._article.Subtitle&&e.append("").append(t.disableHighlight()?this._article.Subtitle:Q.A.replace(this._article.Subtitle,this._article.Data)).append(" ")},t.prototype._renderByline=function(e,t){if(this._article.Source){var n=(0,ne.tr)({nickname:this._article.Source.CreatorName,size:ne.eV.large,fallbackAvatarUrl:this._article.Source.IconUrl}),i=Z.Ay.formatDate(new Date(this._article.Source.Created),"date","d MMM yyyy");e.append('').append('").append('").append(" ")}else{var r=this._article.similarArticlesCount();(this._article.Byline||z.pJ||z.aC&&r)&&(e.append('"))}},t.prototype._renderBookmarkButton=function(e,t){var n,i=this._article.BookmarkId&&(null===(n=this._article.Collections)||void 0===n?void 0:n.length)>0;e.append(' "),it()},t.prototype.height=function(e,t){var n=this._getHeightCacheKey(e,t),i=e;if(n in this._cache)return this._cache[n];if(i.type()>0&&1===t)return this._cache[n]=void 0;var r=new Xe.i;return this.measure(e,t,r),r.execute(),this._cache[n]||0},t.prototype.apply=function(e,t,n){var i=e.type();return n.config().titleType=i,this},t.prototype.render=function(e,t,n,i,r){var o=r.articleElm().removeClass("art-t2 art-t3 art-t4 art-t5 art-stack"),a=t.copy(),s=a.type(),u=this._config.types[s];u&&o.addClass(u),(s<0||r.config().titleType<0)&&o.addClass("art-stack");var c=o.createChild("header");r.config().titleType<0&&a.type(-1);var l=this._render(c,i,a),d=new $.G({elm:c.render(),colspan:i,top:n,height:l,smartFlowItemId:this._article.getId(),type:$.n.Header,layout:r});return d.addBlock(this),e.addCell(d),d},t.prototype.highlight=function(e){var t=e.elm,n=new at(t.attr("flag")),i=t.find("hgroup > h1");if(i.length){var r=i.find("a.lbl-comment").detach();i.html(Q.A.replace(n.hyphenateTitle()?this._article.HyphenatedTitle:this._article.Title,this._article.Data)).append(r)}if(this._article.Subtitle){var o=t.find("h2");o.length&&o.html(Q.A.replace(this._article.Subtitle,this._article.Data))}if(this._article.Issue&&z.pJ){var a=t.find("li.art-source>a");a.length&&a.html(Q.A.replace(this._article.Issue.title(),this._article.Data))}if(this._article.Byline){var s=t.find("li.art-author");s.length&&s.html(Q.A.replace(this._article.Byline,this._article.Data))}},t.prototype._getHeightCacheKey=function(e,t){return"h".concat(e,"_").concat(t)},t}(F.C6),ut={getMaxType:function(e){if(!("_maxType"in e)){var t=Math.round(2*(Math.tan(Math.PI*((e.SecNormRate||e.NormRate)-.5)/2)+1));t>0&&this.isUpperCase(e.Title)&&--t,e._maxType=t}return e._maxType},isUpperCase:function(e){if(!e||!e.length)return!1;var t=!0;return(0,o.forEach)(e,(function(e){if(e!==e.toUpperCase())return t=!1,!1})),t},isTitleHyphenated:function(e){return"_isTitleHyphenated"in e||(e._isTitleHyphenated=e.HyphenatedTitle&&e.HyphenatedTitle!==e.Title),e._isTitleHyphenated}},ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(){return!!this._article.Title},t.prototype.instances=function(){var e=this,t=ut.getMaxType(this._article),n=[],i=this._config.types;return(0,o.forIn)(i,(function(i,r){r>t||n.push(new ot(e,(new at).type(r).enableSubtitle(!0).enableByline(!0)))})),0 in i||n.push(new ot(this,(new at).enableSubtitle(!0).enableByline(!0))),ut.isTitleHyphenated(this._article)&&n.push(new ot(this,(new at).enableSubtitle(!0).enableByline(!0).hyphenateTitle(!0))),n.push(new ot(this,(new at).type(-1).enableSubtitle(!0).enableByline(!0))),ut.isTitleHyphenated(this._article)&&n.push(new ot(this,(new at).type(-1).enableSubtitle(!0).enableByline(!0).hyphenateTitle(!0))),n},t}(st),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(){return!!this._article.Title},t.prototype.instances=function(){var e=this,t=ut.getMaxType(this._article);this._article.Subtitle&&t>3&&(t=3);var n=[],i=this._config.types;return(0,o.forIn)(i,(function(i,r){r>t||n.push(new ot(e,(new at).type(r).titleOnly(!0)))})),0 in i||n.push(new ot(this,(new at).titleOnly(!0))),ut.isTitleHyphenated(this._article)&&n.push(new ot(this,(new at).titleOnly(!0).hyphenateTitle(!0))),n.push(new ot(this,(new at).type(-1).titleOnly(!0))),ut.isTitleHyphenated(this._article)&&n.push(new ot(this,(new at).type(-1).titleOnly(!0).hyphenateTitle(!0))),n},t}(st),dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(){return!!this._article.Source||!!this._article.Subtitle||!!this._article.Byline||z.pJ&&!!this._article.Issue},t.prototype.measure=function(e,t,n){var i,r=this,o=this._getHeightCacheKey();o in this._cache||n.mutate((function(){i=n.getArticleElm(0).createChild("div"),r._render(i,new at,!0),i.elm()})).measure((function(){r._cache[o]=i.elm().height()})).mutate((function(){i.remove(),i=null}))},t.prototype.width=function(){return(0,z.y6)()},t.prototype.apply=function(){return this},t.prototype._render=function(e,t,n){if(e.addClass("col").css({position:"absolute",width:"".concat((0,z.y6)(),"px")}),this._renderSubtitle(e,t),this._renderByline(e,t,n),!n){var i=void 0;return"h"in this._cache?i=this._cache.h:this._cache.h=i=e.checkpoint(),e.checkpoint(i),i}},t.prototype.render=function(e,t,n,i,r){var o=r.articleElm().createChild("div"),a=this._render(o,(new at).type(r.config().titleType)),s=new $.G({elm:o.render(),colspan:1,top:n,height:a,smartFlowItemId:this._article.getId(),type:$.n.Header,layout:r});return s.addBlock(this),e.addCell(s),s},t.prototype._getHeightCacheKey=function(){return"h"},t}(st),ht=n(27461),ft=n(43125),pt="height",mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.related},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(){return this._article.Related&&this._article.Related.length>0},t.prototype.width=function(){return(0,z.y6)(2)},t.prototype.measure=function(e,t,n){var i,r=this;pt in this._cache||n.mutate((function(){i=n.getArticleElm(0).createChild("div"),r._render(i,!0),i.elm()})).measure((function(){r._cache[pt]=i.elm().height()+r.padding})).mutate((function(){i.remove(),i=null}))},t.prototype.render=function(e,t,n,i,r){var o=r.articleElm().createChild("div"),a=this._render(o),s=new $.G({elm:o.elm(),colspan:2,top:n,height:a,smartFlowItemId:this._article.getId(),type:$.n.Column,layout:r});return s.addBlock(this),s.onRemoved(this.dispose.bind(this)),e.addCell(s),s},t.prototype._getHeightCacheKey=function(){return pt},t.prototype._render=function(e,t){var n=this._article.Related.map((function(e){var t=(0,ft._x)(e.IssueKey),n=Z.Ay.formatDate(t,"v7.Client.DateFormat.Issue","d MMM yyyy");return'\n \n ').concat(e.Title,' \n \n ').concat(e.NewspaperName,' \n ').concat(n," \n \n \n ")})).join("");if(e.css({position:"absolute",width:"".concat(this.width(),"px"),overflow:"hidden"}).append('\n
\n '.concat(Z.Ay.val("RelatedStoriesBlock.Title")," \n \n
\n
")),!t){this._cache.element=e.elm(),re.Ay.bind(this._cache.element.find(".relstory .art-byline"),"singleTapConfirmed",this._issueTap),re.Ay.bind(this._cache.element.find(".relstory h1"),"singleTapConfirmed",this._articleTap);var i=void 0;return pt in this._cache?i=this._cache[pt]:this._cache[pt]=i=e.checkpoint()+this.padding,e.checkpoint(i),i}return null},Object.defineProperty(t.prototype,"padding",{get:function(){return 24},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._cache.element&&(re.Ay.unbind(this._cache.element.find(".relstory .art-byline"),"singleTapConfirmed"),re.Ay.unbind(this._cache.element.find(".relstory h1"),"singleTapConfirmed"),delete this._cache.element),delete this._cache[pt]},t.prototype._issueTap=function(e){var t=e.element().closest(".art").data("issuekey");Be.A.goView(ze.lP.TextView,{issue:t})},t.prototype._articleTap=function(e){var t=e.element().closest(".art"),n=t.data("country"),i=t.data("newspaper"),r=t.data("issuedate"),o=t.data("articleid"),a=t.data("issuekey");Be.A.goView(ze.lP.TextView,{country:n,newspaper:i,issueDate:r,articleId:o,itemId:o,issue:a,viewName:ze.lP.TextView,expanded:!0})},t}(F.C6),gt=mt,vt=n(9485),yt="adHeight",_t="ÑolumnChangeHandler",bt="currentColumnChanged",wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),Object.defineProperty(t,"type",{get:function(){return O.A.ad},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"__type",{get:function(){return t.type},enumerable:!1,configurable:!0}),t.prototype.available=function(){return c.A.get("ad.enabled")},t.prototype.width=function(){return(0,z.y6)(2)},t.prototype.measure=function(e,t,n){var i,r,o=this;yt in this._cache||n.mutate((function(){i=n.getArticleElm(0).createChild("div"),r=o._render(null,i,!0),i.elm()})).measure((function(){o._headerHeight=i.elm().find(".sfu-ad-header").height(),o._cache[yt]=o._headerHeight+r})).mutate((function(){i.remove(),i=null}))},t.prototype.render=function(e,t,n,i,r){var o=r.articleElm().createChild("div"),a=this._render(e,o),s=new $.G({elm:o.elm(),colspan:2,top:n,height:a,smartFlowItemId:this._article.getId(),type:$.n.Column,layout:r});return s.addBlock(this),s.onRemoved(this.dispose.bind(this)),e.addCell(s),s},t.prototype._getHeightCacheKey=function(){return yt},t.prototype._render=function(e,t,n){var r=this,o=(0,i.zs)((c.A.get("ad.size")||"16:9").split(":").map((function(e){return parseInt(e,10)})),2),a=o[0],s=o[1],l=Math.ceil(100*this.width()/a),d=Math.floor(a*l/100),h=Math.floor(s*l/100),f=c.A.get("ad.emptyFileUrl");t.css({position:"absolute",width:"".concat(this.width(),"px"),overflow:"hidden"}).append(''));var p=t.elm();if(this._textView=u.o.current.textView,this.$block=p.find("#".concat(this._blockId)),n)return h+this.padding;var m=this._headerHeight||p.find(".sfu-ad-header").height();if(this.$block.css({height:h+m}),!n&&e){var g=this._textView,v=function(){J.A.unbind(g,bt,v),r._textView&&r._createPlayer(r.$block.find("#".concat(r._blockId,"_ad"))[0],r.$block.find("#".concat(r._blockId,"_video"))[0],d,h).then((function(e){return r._setupEventHandlers(p,e),e})).then((function(e){return r._isBlockVisible()?e.play():null})).catch(G.A.error)};J.A.bind(g,bt,null,v)}return h+m+this.padding},t.prototype.dispose=function(){var e=this;return this._removePlayer().catch((function(e){throw G.A.error(e),e})).finally((function(){e.$block&&e.$block.remove(),e._cache["".concat(e._playerId,"promise")]&&delete e._cache["".concat(e._playerId,"promise")],e._cache[_t]&&(J.A.unbind(e._textView,bt,e._cache[_t]),delete e._cache[_t]),e._cache["".concat(_t,"fullscreen")]&&(e._cache["".concat(_t,"fullscreen")].unsubscribe(),delete e._cache["".concat(_t,"fullscreen")]),delete e._cache[e._textViewCacheKey]}))},Object.defineProperty(t.prototype,"padding",{get:function(){return 24},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_blockId",{get:function(){return"ablock_".concat(this._article.Id)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_playerId",{get:function(){return"player_".concat(this._article.Id)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_textView",{get:function(){return this._cache[this._textViewCacheKey]},set:function(e){this._cache[this._textViewCacheKey]=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_textViewCacheKey",{get:function(){return"textview".concat(this._blockId)},enumerable:!1,configurable:!0}),t.prototype._createPlayer=function(e,t,n,i){var r=this,o="".concat(this._playerId,"promise");if(this._cache[o])return this._cache[o];var a=c.A.loaded().then((function(){var e=vt.A.create({player:"spotx",element:t});return r._cache[r._playerId]=e,e})).then((function(o){return r._setupPlayer(o,n,i,e,t)})).catch((function(e){return r.dispose().then((function(){return Promise.reject(e)}))}));return this._cache[o]=a,a},t.prototype._setupPlayer=function(e,t,n,i,r){var o=this,a={channel_id:c.A.get("ad.provider.parameters.channelId"),slot:i,video_slot:r,autoplay:!0,hide_skin:!1,content_width:t,content_height:n,ad_mute:!0,ados:{query_params:"ad_mute=true"}};return e.setup(a).then((function(){return o._addScrollingSupport(window),e.on("pause",(function(){e._isInternalChange||(e.wasManuallyStoped=!0)})),e.on("play",(function(){e.wasManuallyStoped=!1})),e.on("AdError",(function(){o.dispose().catch(G.A.error)})),e.on("complete",(function(){o.dispose().catch(G.A.error)})),e}))},t.prototype._setupEventHandlers=function(e,t){var n=this;this._cache[_t]||(this._cache["".concat(_t,"fullscreen")]=(0,we.bx)(t.video).subscribe((function(e){setTimeout((function(){return Ae.Ay.freeze(e)}),150)})),e.find(".sfu-ad-tools-close").tap((function(){n.dispose().catch(G.A.error)})),this._cache[_t]=function(){n._isBlockVisible()?t.wasManuallyStoped||t.play().catch(G.A.error):(t._isInternalChange=!0,t.pause().catch(G.A.error).finally((function(){t._isInternalChange=!1})))},J.A.bind(this._textView,bt,null,this._cache[_t]),e.tap((function(e){return e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,!1})))},t.prototype._isBlockVisible=function(){var e=this.$block[0].getBoundingClientRect(),t=window.innerWidth||document.documentElement.clientWidth;return e.left>=0&&e.left<=t},t.prototype._removePlayer=function(){var e=this,t=this._cache[this._playerId];return t?t.stop().then((function(){return t.destroy()})).finally((function(){return delete e._cache[e._playerId]})):Promise.resolve()},t.prototype._addScrollingSupport=function(e){for(var t=this,n=function(n){try{var o,a,s=r(e.frames[n]);s.on("wheel mousewheel",(function(e){var n=e.wheelDeltaY>0?1:-1;t._textView.scroll(n*t._textView._viewport.width/3,300),e.preventDefault()})),s.on("touchstart",(function(e){o=e.changedTouches[0],a=parseInt(o.clientX,10)})),s.on("touchmove",(function(e){o=e.changedTouches[0];var n=parseInt(o.clientX,10)-a>0?1:-1;t._textView.scroll(n*t._textView._viewport.width/3,300),e.preventDefault()})),i._addScrollingSupport(e.frames[n])}catch(e){}},i=this,o=0;o=3},enumerable:!1,configurable:!0}),t.prototype._updateRelatedBlock=function(e){var t=this._ad.height()-this._ad.padding;if(this._related.height()>t)for(var n=e.find(".art-relstories ul li.relstory"),i=e.find(".art-relstories"),r=0;i.outerHeight()>t&&r<=n.length;)n[n.length-1-r].style.display="none",r++;e.find(".art-relstories").css({height:"".concat(t,"px")})},t}(F.C6),It=At,St=((rt={})[O.A.text]=F.VJ,rt[O.A.annotation]=te,rt[O.A.comments]=ue,rt[O.A.continuedFromLink]=le,rt[O.A.image]=be,rt[O.A.video]=He,rt[O.A.fullTitle]=ct,rt[O.A.title]=lt,rt[O.A.subtitle]=dt,rt[O.A.tools]=ht.Ay,rt[O.A.related]=gt,rt[O.A.ad]=Ct,rt[O.A.relatedAd]=It,rt),Pt=n(66687),xt=n(59940),Tt={annotation:{className:"art-annotation"},paratitle:{className:"art-paratitle"},dropcap:{className:"dropcap"}},kt=[];function Et(e){if(kt.length){var t=kt.pop();return t.innerHTML=e,t}var n=document.createElement("div");return n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.className="col",n.innerHTML=e,n.style.width="".concat((0,z.y6)(),"px"),n}var Mt=function(e){function t(){var t=e.apply(this,(0,i.fX)([],(0,i.zs)(arguments),!1))||this;return t._textBlockInnerHtml=[],t}return(0,i.C6)(t,e),t.pclasshtml=function(e,t,n,i,r){var o=[],a=!!Tt[n];return a&&o.push(Tt[n].className),!e&&c.A.get("textview.enableFirstBlockFormatting",!0)&&(a||t>=3&&(r&&r.disableArtLeadFormatting||o.push("art-lead"),(!i||i>=3)&&o.push("dropcap")),o.push("first-block")),o.length>0?' class="'.concat(o.join(" "),'"'):""},t.prototype.get=function(e,t,n){void 0===t&&(t=0);var i=Pt.f.textBlockCacheKey(e,t,n);return i in this._cache?this._cache[i]:this._article?(this._createMeasuringToolForGet(e,t,n).execute(),this._cache[i]):void 0},t.prototype.getAsync=function(e){return(0,i.sH)(this,arguments,void 0,(function(e,t,n){var r;return void 0===t&&(t=0),(0,i.YH)(this,(function(i){switch(i.label){case 0:if((r=Pt.f.textBlockCacheKey(e,t,n))in this._cache)return[2,this._cache[r]];if(!this._article)throw new Error("There is no article.");return[4,this._createMeasuringToolForGet(e,t,n).executeAsync()];case 1:return i.sent(),[2,this._cache[r]]}}))}))},t.prototype.measureFirstBlock=function(e,t){var n=this;if(this._article)for(var i=function(e){if(Pt.f.textBlockCacheKey(0,e)in r._cache)return"continue";var i=void 0;e>=3?i=1:0+(i=10)>r._article.Blocks.length&&(i=r._article.Blocks.length-0);for(var o=[],a=[],s=0;s=3?(i=1,r=0):(r=e-e%(i=10))+i>this._article.Blocks.length&&(i=this._article.Blocks.length-r);for(var a=[],s=[],u=0;u").concat(this.textBlockInnerHtml(e),"
"):""},t.prototype._measureBlocks=function(e,t,n,i){var r=this;(0,o.forEach)(e.childNodes,(function(e,o){var a=t[o],s=window.getComputedStyle(e),u=Pt.f.textBlockCacheKey(a,n,i);if(r._cache[u]=parseFloat(s.height),e.className.length>0){var c=parseInt(s.getPropertyValue("margin-top"),10);0!==c&&(r._textBlockOffsetMap[u]=c)}}))},t}(Pt.f),Dt=n(79450),Nt=n(50794),Lt=n(53236),Vt=n(76900),Rt="is-following",Ht="pri-following",Ft="pri-follow",Bt={misc:0,miscAtTop:0,title:0,author:0},zt={id:0,data:{Nickname:"A A",FollowersCount:0}},Ot={};function jt(e,t,n){if(void 0===t&&(t=!1),(0,o.isEmpty)(e))return"";var i='
');return n&&(i+='\n\n ")),i+='
',(0,o.forEach)(e,(function(e){var t=e.id,n=e.data,r=n.FollowersCount?Z.Ay.format("v7.Client.Profile.NFollowers",n.FollowersCount):"",o=n.FollowedByCurrentUser?" ".concat(Rt):"",a=n.FollowedByCurrentUser?Ht:Ft,s=n.FollowedByCurrentUser?Z.Ay.val("v7.Client.Profile.Following"):Z.Ay.val("v7.Client.Profile.Follow"),u=(0,ne.tr)({nickname:n.Nickname,imageId:n.avatarImageId,size:ne.eV.large,fallbackAvatarUrl:n.PhotoUrl}),c=n.EnAccountNumber===Lt.default.enAccountNumber;i+='\n
\n \n \n \n ")})),"".concat(i,"
")}function Ut(e){if(!Bt.author){var t,n,i=e.getArticleElm();e.mutate((function(){(t=i.createChild("div").css({position:"absolute",width:"".concat((0,z.y6)(),"px")}).addClass("col")).append(jt([zt],!0)).append(jt([zt])).append(jt([zt,zt])).append(jt([zt],!1,"Follow Reporters")),n=t.elm().children("div.art-relauthors")})).measure((function(){var e=(0,o.map)(n.toArray(),(function(e){return r(e).outerHeight()})),t=Bt.author=e[2]-e[1];Bt.misc=e[1]-t,Bt.miscAtTop=e[0]-t,Bt.title=e[3]-t})).mutate((function(){t.remove(),i=t=n=null}))}}function Wt(e){var t=r(e.target).parents("a.user.featuser[author-id]"),n=t.attr("author-id");if(!n||!(n in Ot))return!1;var i=Ot[n];return(i.FollowedByCurrentUser?Dt.default.unFollowUser(i.ProfileName):Dt.default.followUser(i.ProfileName)).then((function(e){var n=i.FollowedByCurrentUser=e.followedByMe,r=i.FollowersCount=e.followedByUsersTotal;!function(e,t,n){var i=e.find("div.btn-icon.btn-follow");i.removeClass(Rt);var r=i.find("span.pri");r.removeClass(Ft).removeClass(Ht),t?(i.addClass(Rt),r.addClass(Ht),i.attr("title",Z.Ay.val("v7.Client.Profile.Following"))):(i.attr("title",Z.Ay.val("v7.Client.Profile.Follow")),r.addClass(Ft)),e.children("div.user-meta").find("span.meta").text(n?Z.Ay.format("v7.Client.Profile.NFollowers",n):"")}(t,n,r)})),!1}function Yt(e){var t=r(e.target).parents("a.user.featuser[author-id]").attr("author-id");if(!t||!(t in Ot))return!1;var n=Ot[t];return Nt.F.goToProfile(n.ProfileName),!1}var Xt=function(e){function t(){for(var t=[],n=0;n1?Z.Ay.val("v7.Client.Authors.Title"):Z.Ay.val("v7.Client.Author.Title")),r.append(jt(e,!n,i)),r},t.prototype._getCell=function(e,t,n,i,a){var s=e.height(),u=new $.G({elm:e.render(),colspan:1,top:a,height:s,smartFlowItemId:this._article.getId(),type:$.n.Column,layout:n});u.addBlock(this),i.addCell(u),(0,o.forEach)(t,(function(e){var t=e.id,n=e.data;Ot[t]=n}));var c=Lt.default.updates.subscribe((function(){var t=e.find("a.user.featuser[author-id]").toArray();(0,o.forEach)(t,(function(e){var t=r(e),n=t.attr("author-id");if(n&&n in Ot){var i=Ot[n],o=t.find("div.user-action");Lt.default.enAccountNumber===i.EnAccountNumber?o.hide():o.show()}}))}));return i.onDisposed((function(){c.unsubscribe(),(0,o.forEach)(t,(function(e){var t=e.id;delete Ot[t]}))})),u},t.prototype._fitAndRender=function(e,t,n,i){var r=this;if(i)return this._fitIntoPositionAndRender(e,i,n,{top:0,height:z.E3,columnIndex:t.count()});var a=0;return(0,o.forEach)(n.bottomPositionsAfterText(),(function(i){var o=r._fitIntoPositionAndRender(e,t.item(i.columnIndex),n,i);if(a+=o,(e+=o)>=r._authors.length)return!1})),a},t.prototype._fitIntoPositionAndRender=function(e,t,n,i){var r=function(){if(!Bt.author){var e=new Xe.i;Ut(e),e.execute()}return Bt}(),a=i.top?r.misc:r.miscAtTop;e||(a+=r.title);var s=(0,o.chain)(this._authors).slice(e).takeWhile((function(){return(a+=r.author)<=i.height})).value();if(!s.length)return 0;for(var u=n.articleElm(),c=this._getElm(s,u,i.top);c&&c.height()>i.height;){if(c.remove(),s.pop(),!s.length)return 0;c=this._getElm(s,u,i.top)}if(!c)return 0;var l=this._getCell(c,s,n,t,i.top),d=new Xt(this,"".concat(e,"_").concat(s.length));return d.height(l.height),n.applyBlockInstance(d,i.columnIndex,i.top),s.length},t.resize=function(){Bt.author=0,Bt.misc=0,Bt.miscAtTop=0,Bt.title=0},t}(F.C6),Kt=Gt,Jt=n(77409),Qt=n(37022),Zt=n(61105),$t=window.layoutStats={};function en(e){return u.o.current.textView.onReadMoreClicked((0,o.isFunction)(e.event)?e.event():e),!1}function tn(){var e=(0,X.uW)().parent();e._ellipsisElmRegistred||(e.tap(".readmore, .readmore-click-panel",en),e._ellipsisElmRegistred=!0),e._textLinksRegistered||(e.tap("p>a",(function(e){var t=e&&e.originalEvent&&e.originalEvent.target&&e.originalEvent.target.href;t&&(window.location=t)})),e._textLinksRegistered=!0)}var nn={},rn=null;function on(e){return e.Language===e.OriginalLanguage?e.Id:e.Id+e.Language}function an(){rn&&((0,o.forIn)(rn,(function(e){e.dispose()})),rn=null)}function sn(e){if(void 0===e&&(e=null),e){var t=on(e);t in nn&&(nn[t].dispose(),delete nn[t])}else rn&&an(),rn=nn,nn={}}function un(e,t){if(!e)return t;if(!t)return e;var n=e.textDistribution(),i=t.textDistribution();return n.emptyColumnsCount>i.emptyColumnsCount?t:n.emptyColumnsCountt)){var a=Math.min(t,Math.ceil((r.max+z.oG)/z.zt));if(!(a=o;--s){var u=e.copy();u.colspan=s,n._instances[++n._gInstanceId]=u;var c=e.toJSON(s);c.gInstanceId=n._gInstanceId,i.push(c)}}})),i},t.prototype._restoreInstances=function(e){var t=this;return e?((0,o.forEach)(e.blockInstances(),(function(e,n,i){e.gInstanceId in t._instances&&(i[n]=t._instances[e.gInstanceId])})),e.columns().forEach((function(e){(0,o.forEach)(e.cells(),(function(e){e.instance.gInstanceId in t._instances&&(e.instance=t._instances[e.instance.gInstanceId])}))})),e):e},t.prototype.textBlocksHeights=function(){return this._textBlocksHeights},t.prototype.tasks=function(){var e=this,t=new Zt.Q;return this._article.on("dispose",(function(){t.request()})),[function(){if(!t.isRequested)return Promise.all([e.estimateColumnsCountAsync(z.tg,t),Y.loaded]).then(t.rejectIfRequested).then((function(t){var n=(0,i.zs)(t,2),r=n[0],o=n[1],a=e._buildLayoutMap(o[0],{}),s=new Xe.i;return e._measure(r||z.tg,a,s),s.executeAsync()}))}]},t.prototype._measure=function(e,t,n){var r="measure_".concat(t.templateName);r in this._cache||(this._cache[r]=1,(0,o.forIn)(t.instances,(function(t){var r,o;try{for(var a=(0,i.Ju)(t),s=a.next();!s.done;s=a.next())s.value.measure(e,n)}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}})))},t.prototype._buildLayoutMap=function(e,t){var n=this,r=[],a={},s={},u=null;return(0,o.forEach)(e.blocks,(function(e){var c=n._blockMetaInfo(e,t);if(c){if(!r.length)if(c.roots.length>1){var l={type:"dummy",root:!0};r.push(l),u=[l],a.dummy=[]}else c.roots[0]&&(c.roots[0].root=!0);u&&(0,o.forEach)(u,(function(e){e.children=c.roots})),u=c.leaves,r.push.apply(r,(0,i.fX)([],(0,i.zs)(c.nodes),!1)),(0,o.assign)(a,c.instances),(0,o.assign)(s,c.blocks)}})),{templateName:e.name,blocks:s,nodes:r,instances:a}},t.prototype._blockMetaInfo=function(e,t){var n,r,a=this,s=null;switch(e.type){case"choose":s=(0,o.transform)(e.items,(function(e,n){var r,s,u,c=a._blockMetaInfo(n,t);c&&(e.isEmpty=!1,(r=e.nodes).push.apply(r,(0,i.fX)([],(0,i.zs)(c.nodes),!1)),(s=e.roots).push.apply(s,(0,i.fX)([],(0,i.zs)(c.roots),!1)),(u=e.leaves).push.apply(u,(0,i.fX)([],(0,i.zs)(c.leaves),!1)),(0,o.assign)(e.instances,c.instances),(0,o.assign)(e.blocks,c.blocks))}),{isEmpty:!0,nodes:[],roots:[],leaves:[],instances:{},blocks:{}});break;case"group":s=(0,o.transform)(e.items,(function(e,n){var r,s=a._blockMetaInfo(n,t);s&&(e.isEmpty=!1,(r=e.nodes).push.apply(r,(0,i.fX)([],(0,i.zs)(s.nodes),!1)),e.roots?e.leaves&&(0,o.forEach)(e.leaves,(function(e){e.children=s.roots})):e.roots=s.roots,e.leaves=s.leaves,(0,o.assign)(e.instances,s.instances),(0,o.assign)(e.blocks,s.blocks))}),{isEmpty:!0,nodes:[],instances:{},blocks:{}});break;default:var u=null,l=function(e){var t=e.article,n=e.config,i=e.cache;if(n.type===O.A.video){var r=(0,o.head)(t.Videos);if(r&&!He.canRender(r.Url)){var a={Height:r.Height,Id:r.Id||1,Title:r.Title,Url:r.ThumbnailUrl,Width:r.Width};return t.Images?t.Images.unshift(a):t.Images=[a],t.Videos=null,new be(t,n,i)}}if(n.type===O.A.comments&&!c.A.get("features.comments",!0))return null;var s=St[n.type];return s?new s(t,n,i):null}({article:this._article,config:e,cache:this._cache});if(l&&l.available(t))if(0===e.maxPreviewInstances)u=[];else{var d=l.instances();d&&(u=(0,o.filter)(d,(function(e){if((0,o.isFunction)(e.articleType)){var n=e.articleType();if(void 0!==t.articleType&&t.articleType!==n||void 0===t.articleType&&n<0)return!1}return!0})))}if(u){var h=[{type:e.type}];e.mandatory&&(h[0].imperative=!0),s={blocks:(n={},n[e.type]=l,n),nodes:h,roots:h,leaves:h,instances:(r={},r[e.type]=u,r)}}}return s&&!s.isEmpty?s:null},t.prototype.article=function(){return this._article},t.prototype.newArticleElm=function(){return(0,X.uW)().section(this._article.group()).article().addClass("art").attr("aid",this._article.Id)},t.prototype._appendColumn=function(e,t){var n=e.colspan;if(n!==t.count())throw new Error("Columns counts are inconsistent.");var i=e.colspan;e.appendColumn();var r=(new q.fd).columnIdx(i).addLayout(e),o=(0,Vt.Ef)(this._article,Vt.qF.Rendered);if(r.onDisposed((function(){return o.release()})),!r.section()){var a=this._article.group();a&&r.section(a)}t.append(r),t.forEach((function(e){e.articleColumnsCount(n)}))},t.prototype._renderBlocks=function(e){for(var t=this,n=[],i=1;i=e||n.count>=e)return n.count;n.max=e}else this._cache[t]=n={max:e,count:.5};var i={fromStart:!0,startBlockIdx:0,textBlocksCount:this._article.Blocks.length,colspan:e},r=this._buildLayoutMap(Y[0],i),a=(0,o.find)(r.nodes,(function(e){return e.root})),s=this._estimateLinesCount(r,a,e),u=e?e*z.Nw:Number.MAX_VALUE,c=(s+this._textLines(u,this._article.StartBlockIdx||0))/z.Nw;return(c>1||Kt.isAvailable(this._article)||ht.Ay.isAvailable(this._article,ht.Ay.mode.tools_comment)||ht.Ay.isAvailable(this._article,ht.Ay.mode.thumbnail))&&(c=Math.ceil(c)),n.count=c,c},t.prototype.estimateColumnsCountAsync=function(e,t){var n=this,i="ecc",r=null;if(i in this._cache){if((r=this._cache[i]).max>=e||r.count>=e)return Promise.resolve(r.count);r.max=e}else this._cache[i]=r={max:e,count:.5};var a={fromStart:!0,startBlockIdx:0,textBlocksCount:this._article.Blocks.length,colspan:e},s=this._buildLayoutMap(Y[0],a),u=(0,o.find)(s.nodes,(function(e){return e.root})),c=this._estimateLinesCount(s,u,e),l=e?e*z.Nw:Number.MAX_VALUE,d=this._lock.lock();return this._textLinesAsync(l,this._article.StartBlockIdx||0,t).then(t.rejectIfRequested).then((function(e){var t=(c+e)/z.Nw;return(t>1||Kt.isAvailable(n._article)||ht.Ay.isAvailable(n._article,ht.Ay.mode.tools_comment)||ht.Ay.isAvailable(n._article,ht.Ay.mode.thumbnail))&&(t=Math.ceil(t)),r.count=t,t})).finally((function(){return d.release()}))},t.prototype._estimateLinesCount=function(e,t,n){var i=this;if(!t)return 0;var r=0;return t.type in e.blocks&&(r+=e.blocks[t.type].estimateLinesCount(n)),(0,o.isEmpty)(t.children)||(r+=(0,o.chain)(t.children).map((function(t){return i._estimateLinesCount(e,t,n)})).max().value()),r},t.prototype.height=function(e){var t,n=this;if(e){var i=e-3*z.K_;if(i<=0)return;t=this.layoutSync(1,Y[1],!1,i,-1)}else e=z.E3,t=this.layoutSync(1,Y[1],!1,0,-1);if(t){var r=t.columns().head(),a=r.height();if(!(a>=e)){var s=r.findAllPositions(0,1,2*z.K_,!0,e);if(s&&s.length){var u=0,c=Math.round(this._textBlocksHeights.get(u,-1)/z.K_),l=this._article.Blocks.length;return(0,o.forEach)(s,(function(t){if(a>=e)return!1;var i=t.top,r=t.height;if(i+r>e&&(r=e-i)<=0)return!1;for(var o=Math.floor(r/z.K_);o>0;){var s=Math.min(c,o);if(i+=s*z.K_,a+=s*z.K_,(c-=s)<=0){if(++u>=l)break;c=Math.round(n._textBlocksHeights.get(u,-1)/z.K_)}o-=s}return!(u>=l)&&void 0})),t.applyConfig({titleType:-1}),{layout:t,height:a}}}}},t.prototype._textLines=function(e,t){if(!this._article||!this._article.loaded())return 0;for(var n=0,i=t?0:this._article.StartBlockIdx||0;i0?n._layout({maxColumns:e,template:a[0],strict:r,cancellationToken:t}).then(s):e>=-1?n._layout({maxColumns:1-e,template:a[0],cancellationToken:t}).then(s):n._article.Annotation&&n._article.Blocks?(n._article.Blocks.unshift({Role:"annotation",Text:n._article.Annotation}),n._article.Annotation=null,n._textBlocksHeights.reset(),e=o,n._layout({maxColumns:e,template:a[0],strict:r,cancellationToken:t}).then(s)):q.Sl.empty};return n._layout({maxColumns:e,template:a[0],strict:r,cancellationToken:t}).then(s)})).finally((function(){return a.release()}))},t.prototype.renderSingleColumnLayout=function(e,t){var n=t.layout,i=t.height,r=0;n.renderer(this).config().titleType=-1,this._currentLayout=n,e?(r=e.height(),this._renderBlocks(n,e)):e=this._renderBlocks(n).head();var a=r%z.K_;a&&(r+=z.K_-a);var s=e.findAvailablePosition(z.K_,0,!0);if(!s)return G.A.log("render article: no position for line"),e;var u=s.top-r,c=0,l=Math.round(this._textBlocksHeights.get(c,-1)/z.K_),d=this._renderingState(e).text,h=(0,z.y6)(),f=this._article.getId(),p=0,m=n.articleElm().createChild("div").css({position:"absolute",width:"".concat(h,"px")}).addClass("col"),g=Math.floor(Math.min(s.height,i-u)/z.K_)*z.K_,v=0,y=s.top,_=[];for(delete this._lastRenderedTextBlock;g>=z.K_;){var b=this._renderBlock(m,c,p,g,-1),w=b.lines,C=b.height;d[c]={start:p,lines:w,outof:l};var A=new F.VJ(c,p,w,y,m);if(n.addTextBlock(0,A),_.push(A),y+=C,u+=C,v+=C,(l-=w)<=0){if(++c>=this._article.Blocks.length)break;p=0,l=Math.round(this._textBlocksHeights.get(c,-1)/z.K_)}else p+=w;g-=C}(cMath.round(i/z.K_)&&!u&&!l&&(p={disableArtLeadFormatting:!0},c=Math.round(C._textBlocksHeights.get(u,s,p)/z.K_));i>=z.K_;){var w=C._renderBlock(n,u,l,i,s,p),A=w.lines,I=w.height;b[u]={start:l,lines:A,outof:c};var S=new F.VJ(u,l,A,v,n);if(e.addTextBlock(g,S),_.push(S),v+=I,a+=I,(c-=A)<=0){if(++u>=m)break;p=null,l=0,c=Math.round(C._textBlocksHeights.get(u,s)/z.K_)}else l+=A;i-=I}var P=new $.G({elm:n.elm(),colspan:1,top:t.top,height:a,smartFlowItemId:h,type:$.n.Column,layout:e});if(y.addCell(P),(0,o.forEach)(_,(function(e){e.cell(P)})),u>=m)return"break"},C=this;try{for(var A=(t=void 0,(0,i.Ju)(_)),I=A.next();!I.done&&"break"!==w(I.value);I=A.next());}catch(e){t={error:e}}finally{try{I&&!I.done&&(n=A.return)&&n.call(A)}finally{if(t)throw t.error}}}}return r.reattach(),ur.height&&!h?(t.cfg={disableArtLeadFormatting:!0},n._textBlocksHeights.getAsync(h,d,t.cfg).then((function(e){return t.height=e,t}))):t})).then(t.rejectIfRequested).then((function(i){return e.isExpanded?n._textBlocksHeights.getAllAsync(d).then(t.rejectIfRequested).then((function(e){for(var t=[i],n=h+1;n=c||u>=f?e(o):n._textBlocksHeights.getAsync(u,d).then((function(e){return{idx:u,height:e}})).then(s)}};s(i)}))})),m=this._lock.lock();return Promise.all([p,s]).then((function(t){for(var r,o,s,c,l,h=(0,i.zs)(t,1)[0],p=n._renderBlocks(e),m=(0,z.y6)(),g=0,v=h[g],y=h.length,_=Math.round(v.height/z.K_),b=0,w=n._article.getId(),C=-1,A=p.head();g=z.K_;){var L=n._renderBlock(k,v.idx,b,E,d,v.cfg),V=L.lines,R=L.height;S[v.idx]={start:b,lines:V,outof:_};var H=new F.VJ(v.idx,b,V,D,k);if(e.addTextBlock(C,H),N.push(H),D+=R,M+=R,(_-=V)<=0){if(++g>=y)break;v=h[g],b=0,_=Math.round(v.height/z.K_)}else b+=V;E-=R}var B=new $.G({elm:k.elm(),colspan:1,top:T.top,height:M,smartFlowItemId:w,type:$.n.Column,layout:e});A.addCell(B);try{for(var O=(s=void 0,(0,i.Ju)(N)),j=O.next();!j.done;j=O.next())(H=j.value).cell(B)}catch(e){s={error:e}}finally{try{j&&!j.done&&(c=O.return)&&c.call(O)}finally{if(s)throw s.error}}if(g>=y)break}}catch(e){r={error:e}}finally{try{x&&!x.done&&(o=P.return)&&o.call(P)}finally{if(r)throw r.error}}}}return Jt.S.mutateAsync((function(){a.reattach(),v.idx0||e.hasMoreToShow()?l&&n._addEllipsis(l.elm()):(p=n._renderAuthors(e,p),n._renderTools(e,p,1===p.count()&&!e.isExpanded)?(p.forEach((function(e){e.state().expanded=!0})),p=function(e,t,n,r){var o;if(!n.headItem.state().expanded)return n;var a=function(e,t){var n,i;if(!(null===(n=null==e?void 0:e.Images)||void 0===n?void 0:n.length))return[];var r={};return null===(i=t.blockInstances())||void 0===i||i.forEach((function(e){e.parent.type()===de._.Image&&(r[e.id()]=!0)})),e.Images.filter((function(e){return!r[e.Id]&&!(!e.Url||e.Height<=0||e.Width<=0)}))}(e,t).filter((function(e){return z.E3/e.Height*100<=z.UO}));if(!a.length)return n;var s=[],u=0;n.forEach((function(e){1===(u=Math.max(u-1,e.colspan()))&&s.push(e)})),s.length>1&&--s.length;for(var c=a.length/s.length,l=s.map((function(){return Math.floor(c)})),d=s.map((function(e,t){return t})),h=a.length%s.length,f=d.length;h>0;--h,--f){var p=d[Math.floor(Math.random()*f)];l[p]++,o=(0,i.zs)([d[f-1],d[p]],2),d[p]=o[0],d[f-1]=o[1]}var m=0,g=n.headItem.section();for(h=0;h=i?u=a=(s=Math.floor(i/z.K_))*z.K_:(s=Math.round(c/z.K_),u=i-(a=Math.min((s+1)*z.K_,i))"),this._marker&&this._marker.idx===t?e.append(this._marker.block):e.append(Q.A.replace(this._textBlocksHeights.textBlockInnerHtml(t),this._article.Data)),e.append("
").checkpoint(a),e.render(),{lines:s,height:a}},t.prototype._addEllipsis=function(e){e.children("div[bidx]:last").css("position","relative").fastAppend(this._article.PotentiallyAllowedToRead?z.Gr:z.J4)},t.prototype._refreshRenderedView=function(){this._currentLayout&&this._article&&this._refreshReadmore()},t.prototype._refreshReadmore=function(){var e=this._currentLayout.articleElm().find(z.PP);e.length&&(this._article.PotentiallyAllowedToRead?e.removeClass(z.A7):e.addClass(z.A7))},t.prototype._renderingState=function(e){var t=e.state(),n=t.rendering;n||(t.rendering=n={});var i=n[this._article.Id];return i||(n[this._article.Id]=i={text:{}}),i},t.prototype._onArticleUpdated=function(){this._cache={},this._textBlocksHeights.reset(),this._refreshRenderedView()},t.prototype.dispose=function(){var e=this;this._lock.onUnlockedOnce((function(){delete e._cache,delete e._textBlocksHeights,e._currentLayout&&(e._currentLayout.dispose(),delete e._currentLayout),e._article.off("updated",e._onArticleUpdatedHandler),delete e._onArticleUpdatedHandler,e._article.off("dispose",sn),delete e._article}))},t.prototype.expand=function(e,t){if(e||(e=this._currentLayout),!e)return null;if(t){var n=e.colspan;e.toolsColumnAdded&&--n;var i=Math.min(n,z.Ps);e=this.layoutSync(i,Y[0],!1,void 0,void 0,!0)}for(var r,o,a=e.colspan,s=e.copy().expandForText(),u=this._expand(s,un,a),c=u.totalTextLinesCount()-u.textDistribution().availableLines;c>0;)s=s.expand(Math.ceil(c/z.Nw)),c=(u=this._expand(s,un,a)).totalTextLinesCount()-u.textDistribution().availableLines;return o=u,(r=e)&&o&&(o.toolsCommentAdded=r.toolsCommentAdded,o.toolsThumbnailAdded=r.toolsThumbnailAdded,o.toolsAdded=r.toolsAdded),u},t.prototype._expand=function(e,t,n){var r,a,s,u,c=this,l=e.blockInstances();if((0,o.isEmpty)(l))return null;var d={};(0,o.forEach)(l,(function(e){d[e.blockType]=e}));for(var h=e.map(),f=(0,o.find)(h.nodes,(function(e){return e.root})),p=[],m=new Xe.i;f;){if(f.type in d){var g=d[f.type].expand();if(!(0,o.isEmpty)(g)){try{for(var v=(r=void 0,(0,i.Ju)(g)),y=v.next();!y.done;y=v.next())y.value.measure(z.Ps,m)}catch(e){r={error:e}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(r)throw r.error}}p.push.apply(p,(0,i.fX)([],(0,i.zs)(g),!1))}}else{var _=h.blocks[f.type];if(_&&(0,o.isFunction)(_.instances)&&(g=_.instances(),!(0,o.isEmpty)(g))){try{for(var b=(s=void 0,(0,i.Ju)(g)),w=b.next();!w.done;w=b.next())w.value.measure(z.Ps,m)}catch(e){s={error:e}}finally{try{w&&!w.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}p.push.apply(p,(0,i.fX)([],(0,i.zs)(g),!1))}}var C=f.children;if((0,o.isEmpty)(C))break;f=(0,o.find)(C,(function(e){return e.type in d}))||C[0]}m.execute();var A=this._restoreInstances(this._processQueueWithTimeConstraint(e,(0,o.map)(p,(function(e){return c._instances2JSON([e])})),t,n));return A.isExpanded=!0,A},t.prototype._processQueueWithTimeConstraint=function(e,t,n,i){var r=(0,o.now)(),a={},s=new Array(t.length),u=new Array(t.length),c=1;(0,o.forEach)(t,(function(e,t){u[t]=0,s[t]=e[0],c*=e.length})),a[u.join(".")]=1;var l=(0,o.reduce)(this._addInstances(e,s,i),n,null);if(l&&!l.textDistribution().emptyColumnsCount)return l;(0,o.forEach)(t,(function(e,t){var n=e.length-1;u[t]=n,s[t]=e[n]})),a[u.join(".")]=1;var d=(0,o.reduce)(this._addInstances(e,s,i,!1),n,l);if(2===c||!d||d===l)return d;l=d;for(var h=2;(0,o.now)()-r<1e3;){(0,o.forEach)(t,(function(e,t){var n=Math.floor(Math.random()*e.length);u[t]=n,s[t]=e[n]}));var f=u.join(".");if(!(f in a)&&(a[f]=1,(l=(0,o.reduce)(this._addInstances(e,s,i),n,l))&&l!==d||++h>=c))return l}return l},t.prototype._addInstances=function(e,t,n,i){void 0===i&&(i=!0);var r=e;if(i){var a=(0,o.sum)(t,(function(e){return Math.ceil(e.height/z.K_)*e.colspan}));r=e.copy().expandForText(a)}return(0,o.transform)(t,(function(e,t){var r=e.layouts;r.length>50&&(r=r.sort((function(e,t){return e.compareTo(t)===t?1:-1})).slice(0,50));var a=(0,o.chain)(r).map((function(e){return e.copy().addBlockInstance(t,{expand:!i,columnsCountToPreserve:n})})).flatten().value();if((0,o.isEmpty)(a)){if(i)return e.layouts=[],!1}else e.layouts=a;return!0}),{layouts:[r]}).layouts},t.prototype._processQueue=function(e,t,n,i,r,a){var s=this;if(n>=t.length)return e;var u=(0,o.chain)(t[n]).map((function(t){if(r){var n=Math.ceil(t.height/z.K_)*t.colspan;return e.copy().expandForText(n).addBlockInstance(t,{expand:r,columnsCountToPreserve:a})}return e.copy().addBlockInstance(t)})).flatten().value().sort((function(e,t){return e.compareTo(t)===t?1:-1}));if(!u.length)return this._processQueue(e,t,n+1,i,r,a);var c=null;return(0,o.forEach)(u,(function(e){var o=e.totalTextLinesCount()-e.textDistribution().availableLines;o>0&&e.expand(Math.ceil(o/z.Nw));var u=s._processQueue(e,t,n+1,i,r,a);if(!u.textDistribution().emptyColumnsCount)return c=u,!1;c=i(c,u)})),c},t.prototype.dataItem=function(){return this._article},t.prototype.highlight=function(e){for(var t=this,n=e.articleColumnsCount(),i=this._article,a=0;a0&&!this._view.rightColumnsCount()){var e=this._view.columns().tail();if(e&&e.type()===d.zX.Misc){var t=e.prev();if(t&&t.isLast()&&!this._allowResetREOF)return}}this._correctColumnsCount(10)},_ensureItems:function(){var e=this._currentViewState.article();if(e){var t=this._view.globalDirection();if(t<0)for(var n=0,i=e;n<32&&i;++n,i=i.prev())i.isLoaded();else if(t>0){var r=!0;for(n=0,i=e;n<32&&i;++n){if(i.isLoaded(),!i.tokenized()){var o=i.group();if(o){var a=o.raw();a&&4!==a.GroupType&&(r=!1)}}if(!i.hasNext()&&!r)break;i=i.next()}}}},_showCallback:null,_isShowing:!1,_updateInterval:null,resetState:function(e){P.A.global.trigger("textviewCleared"),this._currentArticleHistoryToken=null,e&&(e.itemId&&(this._currentViewState.id(e.itemId).type(0),e.expanded&&(this._currentViewState.expandedArticleId(e.itemId),b.X.send(new w.U1({articleId:e.itemId})))),e.currentArticlePosition&&this._setMinCount(e.currentArticlePosition),this._currentArticleHistoryToken=e.articleHistoryToken)},show:function(e){var t=this;this._isVisible||this._disabled||(this._isVisible=!0,e&&(this._updatePreviewPanel=e.updatePreviewPanel,e.historyTokenType&&(this._currentHistoryTokenType=e.historyTokenType),this._currentArticleHistoryToken=e.articleHistoryToken,this._setMinCount(e.currentArticlePosition?e.currentArticlePosition:0),this._allowResetREOF=e.allowResetREOF,this._ignoreGroupHeader=e.ignoreGroupHeader,this._isShowing=!0,this._showCallback=(0,a.once)((function(){t._isShowing=!1,(0,a.isFunction)(e.callback)&&e.callback()})),this._updateInterval=e.updateInterval,A.Ay.loaded().then(this._toggleTranslationMessage.bind(this)),this._view.config(e),this._config.highlightPattern=e.query,this._articlesFeedManager.loadPromise.then((function(){var n=t._articlesFeedManager.getAnchorItem();if(!n&&e.bookmarkId&&(n=t._articlesFeedManager.items.find((function(t){return t.Data&&t.Data.BookmarkId===e.bookmarkId}))),n){var i={itemId:n.getId(),type:0};n.Type===s.p.article&&(i.expanded=!0),t._setCurrentViewState(i)}else t._setCurrentViewState(e)})),this._view.show()))},_setCurrentViewState:function(e){e.articleId&&e.viewName===r.lP.TopNews&&e.expanded?(this._currentViewState.expandedArticleId(e.articleId),b.X.send(new w.U1({articleId:e.itemId}))):e.articleId&&e.viewName===r.lP.TextView?(this._articlesFeedManager.mandatoryArticleId=e.articleId,this._currentViewState.id(e.articleId).jump(!0).type(0).expandedArticleId(e.articleId),b.X.send(new w.U1({articleId:e.itemId}))):e.page?this._currentViewState.page(e.page).type(2):e.itemId&&(this._currentViewState.id(e.itemId).type(e.type),e.expanded&&(this._currentViewState.expandedArticleId(e.itemId),b.X.send(new w.GM({articleId:e.itemId}))))},_onDataResetPromise:null,_onDataReset:function(){var e=this;!this._disabled&&this._isVisible&&(void 0!==this._preventExpandAnimation&&(this._preventExpandAnimation=!0),this._onDataResetPromise||(this._onDataResetPromise=f.busy.resetPromise,this._onDataResetPromise.then((function(){e._ndLoadingHandle=g.Ay.show(e._ndLoadingHandle),I.A.reset(),l.A.reset(),p.A.reset(),e._builder.reset(),e._view.reset(),(0,c.uW)().reset(),e._toggleTranslationMessage(),e._abortColumnsBuilding(),e._articlesFeedManager.onLoadOnce((function(e){e.highlights&&e.highlights.text&&(_.A.highlight(e.highlights.text),_.A.confirm())})),e._articlesFeedManager.load(e._currentArticleHistoryToken,e._minCount).finally(e._correctColumnsCount.bind(e,10)),e._onDataResetPromise=null}))))},hide:function(){return this._isVisible?(this._abortColumnsBuilding(),this._isVisible=!1,I.A.cleanup(),this._view.hide(),this._ndLoadingHandle=g.Ay.hide(this._ndLoadingHandle),this):this},_onArticlesLoaded:function(e){if(!this._disabled){if(e&&e.length)for(var t=0;tc&&(r.left=c-r.width),r.top=Math.round(v-r.height/2),r.toph&&(r.top=h-r.height),void E.D.show(r)}if(n&&(r=this._articleContext(t.x,t.y,t.columns)))return this._jump(r.article),t.handled=!0,!1}}},_onDoubleClick:function(e,t){if(!this._disabled&&t.columns&&!t.columns.isEmpty()&&t.columns.column.state().controller===this){switch(t.columns.column.type()){case d.zX.SectionHeader:case d.zX.Header:case d.zX.CategoryTail:case d.zX.Monitors:case d.zX.AdBlock:case d.zX.RecommendedOpinions:case d.zX.Replies:return}return this._readMore(t.x,t.y,t.columns),t.handled=!0,!1}},_onReadMore:function(e,t){this._disabled||t.columns.head().state().controller!==this||(b.X.send(new w.hm),this._readMore(t.x,t.y,t.columns))},_readMore:function(e,t,n){var i=this;if(!this._disabled&&!n.column.state().expanded&&n.column.layouts()){var r=n.head();if(n.column.layouts().length>1||n.column.state().isBundle){var a=this._view.scroller.elm.offset().top;t-=a;var s=n.column,u=s.cell(t);if(!u)return;var c=u.layout;if(c){var l=c.dataItem();this._currentViewState.article(l).type(0),this._currentViewState.expandedArticle(l),this._preventExpandAnimation=!1,l.access().then((function(){i._preventExpandAnimation?i._preventExpandAnimation=void 0:i._view.bundleToMultiColumnsAnimation().play(s,t).then((function(e){for(var t=0;ti+e.height()||(h=n.id)}));if(!h||r.state().expandedArticleId===h)return;var g=this._articlesFeedManager.getArticleById(h);this._currentViewState.article(g).type(0),this._currentViewState.expandedArticle(g),this._preventExpandAnimation=!1,g.access().then((function(){if(i._preventExpandAnimation)i._preventExpandAnimation=void 0;else{var e=v.S9.play(g,n.column,p);if(e){var t=e.state();t.controller=i,t.expandedArticleId=h}}})).catch((function(){i._preventExpandAnimation=void 0,k.A.log("_readMore -> failed to load article ".concat(h))}))}}else r.type()===d.zX.Header?(t-=this._view.scroller.elm.offset().top,v.sx.play(r,t).then((function(e){if(e&&e.newnext&&e.newnext.count())for(var t=e.newnext.head(),n=0;n failed to load article ".concat(a.Id)),Promise.reject(e)})).then((function(){return n._view.expandArticleAnimation().isActive?Promise.reject(new Error("Another animation is in progress.")):(i=o.expand()).renderAsync()})).then((function(s){return(r=s).forEach((function(e){var t=e.state();t.controller=n,t.expanded=!0})),n._currentViewState.expandedArticle(a),n._view.expandArticleAnimation().play(o,e,i,r,t)})).then((function(){u.o.current.textView.replaceColumns(e,r),e.dispose(),n._view.invalidate(!0)}))},_onContinuedFrom:function(e,t){var n=this,i=t.columns,r=i.head();if(!this._disabled&&r.state().controller===this){var o=r.layouts()[0];if(!o.config().fromStart)if(r.articlesCount()>1);else{var a=o.dataItem();this._currentViewState.article(a).type(0).expandedArticle(a),this._preventExpandAnimation=!1,a.access().then((function(){if(n._preventExpandAnimation)n._preventExpandAnimation=void 0;else{var e=o.expand(!0),t=e.render().forEach((function(e){var t=e.state();t.controller=n,t.expanded=!0}));n._currentViewState.expandedArticle(a),n._view.expandArticleAnimation().play(o,i,e,t).then((function(){u.o.current.textView.replaceColumns(i,t),i.dispose(),n._view.invalidate()}))}})).catch((function(){n._preventExpandAnimation=void 0,k.A.log("_readMore -> failed to load article")}))}}},_onContextMenuRequested:function(e,t){if(!this._disabled&&t.columns.head().state().controller===this)switch(t.columns.column.type()){case d.zX.SectionHeader:case d.zX.Header:case d.zX.ImagesHeadline:case d.zX.Monitors:case d.zX.Opinion:case d.zX.Profile:case d.zX.SocialInfo:case d.zX.AdBlock:case d.zX.Social:case d.zX.BookmarkPages:case d.zX.RecommendedOpinions:case d.zX.InitBlock:case d.zX.Replies:case d.zX.PromoSection:return;default:var n=this._articleContext(t.x,t.y,t.columns);if(!n)return;var i={controller:this,article:n.article,preview:{previewType:m.Ay.contextPreviewType.article}};this._contextMenuController?this._contextMenuController.context(i):this._contextMenuController=new y.A(x.A,i),this._contextMenuController.show({context:{left:n.left+this._view.scroller.left,top:n.top,width:n.width,height:n.height},position:{x:t.x,y:t.y,align:{y:o.nd.ui.menu.align.center,x:o.nd.ui.menu.align.center}}}),b.X.send(new w.cm)}},_onPinch:function(e,t){if(!this._disabled){var n=this._imageContext(t.x,t.y,t.columns);if(n)E.D.show(n);else if(n=this._articleContext(t.x,t.y,t.columns)){for(var i=0,r=[],o=0;o".concat(a,"
")),(i+=a.length)>1024)break}M.O.show(r.join(""))}}},_onGesturesEnd:function(){this._disabled||this._textSizeManager&&(this._textSizeManager.dispose(),delete this._textSizeManager)},_onGesturesStart:function(){if(!this._disabled){var e=new Date(this._gesturesStartTime.getTime()+this._updateInterval);(new Date).getTime()>e.getTime()&&this._clearData(),this._gesturesStartTime=new Date}},_columnHasTokenizedArticle:function(e){var t=e.layouts();if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n].dataItem().tokenized())return!0;return!1},_articleContext:function(e,t,n){var i=n.column;if(i.type()===d.zX.InitBlock)return null;if(i.type()===d.zX.SectionHeader||i.type()===d.zX.CoverBlock){for(var r=0,s=0,u=i.cells(),c=null,l=0;lr+s))return c=e.attr("aid"),!1})),!c);l++);return c?{x:e,y:t,left:i.left(),top:r,width:S.zt,height:s,article:this._articlesFeedManager.getArticleById(c)}:null}if(i.type()===d.zX.ImagesHeadline)return i.aid?{x:e,y:t,left:i.left(),top:0,width:S.zt,height:S.E3,article:this._articlesFeedManager.getArticleById(i.aid)}:null;var h=0,f=S.E3,p=null;if(i.articlesCount()>1){u=i.cells();var m=function(e){var n=null;return u[e].elm.find("article").each((function(){var e=o(this);if(h=e.offset().top,f=e.height(),!(th+f))return n=e.attr("aid"),!1})),n?(p=g._articlesFeedManager.getArticleById(n))?"break":void 0:"continue"},g=this;for(l=0;l1){t-=this._view.scroller.elm.offset().top;var v=i.cell(t);if(!v)return!1;var y=v.layout;if(!y)return!1;2===(p=y.dataItem()).Type?(f=v.height,h=v.top+this._view.scroller.elm.offset().top):(f=y._articleElm.height(),h=y.articleElm().find("header").offset().top)}else{if(i.layouts()&&0===i.layouts().length)return!1;for(p=i.layouts()[0].dataItem(),h=this._view.scroller.elm.offset().top;i;){var _=i.prev();if(!_)break;var b=_.layouts();if((0,a.isEmpty)(b)||b[0].dataItem()!==p)break;i=_}}return{x:e,y:t,left:i.left(),top:h,width:i.articleColumnsCount()*S.zt,height:f,article:p}},_imageContext:function(e,t,n){var i=null,r=n.head(),a=this._view.scroller.left;if(n.column.type()===d.zX.ImagesHeadline){for(var s=n.column;s&&!s.cells().length;)s=s.prev();r=s}for(;r;){for(var u=r.cells(),c=function(n){var s=u[n],c=s.left+a;return c+s.colspan*S.zta+s)){var u=n.width();return i={x:e,y:t,elm:n,left:c,top:a,width:u,height:s,src:n.attr("src"),url:n.attr("nd_url"),scale:parseInt(n.attr("nd_scale"),10),maxScaleUrl:n.attr("nd_maxScaleUrl"),type:r.type()},!1}})):s.elm.find("img").not('[noresize="true"]').each((function(){var n=o(this),a=n.offset().top,s=n.height();if(!(ta+s)){var u=n.width();return i={x:e,y:t,elm:n,left:c,top:a,width:u,height:s,src:n.attr("src"),url:n.attr("nd_url"),scale:parseInt(n.attr("nd_scale"),10),maxScaleUrl:n.attr("nd_maxScaleUrl"),type:r.type()},!1}})),i?"break":void 0)},l=u.length-1;l>=0&&"break"!==c(l);--l);if(i||r===n.column)break;r=r.next()}return i},_rebuild:function(){var e=this;this._isVisible&&(this._ndLoadingHandle=g.Ay.show(this._ndLoadingHandle),this._reset().then((function(){e._correctColumnsCount(10),e._view.enable()})))},_resetPromise:null,_reset:function(){var e=this;if(this._resetPromise)return this._resetPromise;var t=this._resetPromise=new Promise((function(t){var n=function(){e._view.isUpdateable()?(e._view.reset(),(0,c.uW)().reset(),e._builder.reset(),e._appendColumnsTask&&e._appendColumnsTask.abort(),e._prependColumnsTask&&e._prependColumnsTask.abort(),t()):setTimeout(n,10)};n()}));return t.then((function(){e._resetPromise=null})),t},_screensToBuild:8,screensToBuild:function(e){return arguments.length?(this._screensToBuild=e,this):this._screensToBuild},_initialScreensToBuild:1,initialScreensToBuild:function(e){return arguments.length?(this._initialScreensToBuild=e,this):this._initialScreensToBuild},_correctColumnsCountTimeoutID:0,_direction:0,_correctColumnsCountHandler:null,_appendColumnsTask:null,_prependColumnsTask:null,_correctColumnsCount:function(e){var t=this;if(this._isVisible&&!this._disabled){if(this._correctColumnsCountTimeoutID&&(clearTimeout(this._correctColumnsCountTimeoutID),this._correctColumnsCountTimeoutID=0),(0,a.isNumber)(e))return this._correctColumnsCountHandler||(this._correctColumnsCountHandler=this._correctColumnsCount.bind(this)),void(this._correctColumnsCountTimeoutID=setTimeout(this._correctColumnsCountHandler,e));if(S.Ps)if(!this._view.isUpdateable()||!A.Ay.isLoaded()||this._appendColumnsTask||this._prependColumnsTask||f.busy.isSet)this._correctColumnsCount(100);else{this._updatePagesPanel(10);var n,i,r,o=S.Ps*this._screensToBuild,s=1===S.Ps?3:S.Ps,u=this._view.columns(),c=u.count(),l=u.head(),h=u.tail();if(l&&l.type()===d.zX.Misc&&(l=l.next(),--c),h&&h.type()===d.zX.Misc&&(h=h.prev(),--c),!u.isEmpty()&&l&&h){if(n=this._view.leftColumnsCount(),i=this._view.rightColumnsCount(),this._isShowing)this._direction=0;else if(i<=0){if(h.isLast()&&c>S.Ps)return;this._direction=1}else if(n<=0){if(l.isFirst()&&c>S.Ps)return;this._direction=-1}}else n=i=this._direction=0;if((i<=0&&n>0||L&&this._view.scrollDirection()>0&&n>s)&&!this._isShowing&&c>(r=c-n+s)){for(var p=l,m=l,v=null;p&&c>r;){var y=p.next();(!y||y.columnIdx()<=0)&&(v=p),p=y,--c}v&&(l=v.next(),this._prependColumnsTask&&this._prependColumnsTask.abort(),this._view.removeColumns(new d.Sl(m,v)))}if((n<=0&&i>0||L&&this._view.scrollDirection()<0&&i>s)&&!this._isShowing&&c>(r=c-i+s)){for(p=h,m=null,v=h;p&&c>r;)p.columnIdx()<=0&&(m=p),p=p.prev(),--c;m&&(h=m.prev(),this._appendColumnsTask&&this._appendColumnsTask.abort(),this._view.removeColumns(new d.Sl(m,v)))}if(this._config.enableExpiredDataItemsRemoval&&this._articlesFeedManager.removeOldArticles(this._config.dataItemExpirationDuration||36e5),this._isShowing?(r=S.Ps*this._initialScreensToBuild+1,n>0&&(r+=n)):c>S.Ps?r=n<=0||i<=0?S.Ps+s+o:L&&c0&&(r+=n),i>0&&(r+=i)),this._articlesFeedManager.isEmpty())this._view.columns().isEmpty()&&(this.appendEndColumn(),this._view.invalidate()),this._ndLoadingHandle=g.Ay.hide(this._ndLoadingHandle),this._showCallback();else{var _=!1,b=[];if(this._allowResetREOF&&h&&h.isLast()&&(h.isLast(!1),this._articlesFeedManager.resetREOF()),this._view.scrollDirection()>=0&&c0){var P=(new Date).getTime(),x=this._prependColumnsTask=new N(this.columns4prepend(l,I));x.promise.then((function(e){e&&(x.aborted?e.dispose():(t._prependColumns(e),t._correctColumnsCount(Math.max(100,Math.round(1.5*((new Date).getTime()-P))))))}),a.noop).finally((function(){x.aborted&&(_=!0),t._prependColumnsTask=null})),b.push(x.promise.catch(a.noop))}}Promise.all(b).finally((function(){_||(t._view.columns().isEmpty()?(t.appendEndColumn(),t._view.invalidate(),t._ndLoadingHandle=g.Ay.hide(t._ndLoadingHandle),t._showCallback()):t._checkViewAfterUpdate())}))}this._checkViewAfterUpdate()}}},_appendColumns:function(e){if(this._view.isUpdateable()){var t=this._view.columns().tail(),n=!!t&&t.type()===d.zX.Misc;e?e.count()&&(n?this._view.prependColumns(t,e):this._view.appendColumns(e)):null===e&&(n&&this._view.removeColumns(1),(t=this._view.columns().tail())&&t.isLast(!0)),this._checkViewAfterUpdate()}else setTimeout(this._appendColumns.bind(this,e),100)},_prependColumns:function(e){if(this._view.isUpdateable()){var t=this._view.columns().head(),n=!!t&&t.type()===d.zX.Misc;e?e.count()&&(n?this._view.appendColumns(t,e,!0):this._view.prependColumns(e)):(n&&this._view.removeColumns(-1),(t=this._view.columns().head())&&t.isFirst(!0)),this._checkViewAfterUpdate()}else setTimeout(this._prependColumns.bind(this,e),100)},_checkViewAfterUpdate:function(){var e=this._view.columns(),t=e.head(),n=e.tail();if(t){if(t.type()===d.zX.Misc){var i=t.next();if(!i)return;i.isFirst()&&this._view.removeColumns(-1),t=i}else t.isFirst()||(this._view.prependLoadingColumn().state().controller=this);if(n.type()===d.zX.Misc){var r=n.prev();r.isLast()&&!n.isLast()?(this._view.removeColumns(1),this.appendEndColumn()):!r.isLast()&&n.isLast()&&(this._view.removeColumns(1),this._view.appendLoadingColumn(!0).state().controller=this),n=r}else n.isLast()?this.appendEndColumn():this._view.appendLoadingColumn(!0).state().controller=this;if(this._view.invalidate(),n&&n.isLast()){var o=this._view.scroller,s=this._view.viewport(),u=o.left,c=u-s.left,l=o.width+u-s.left-s.width;if(l<0&&c<0){var h=Math.max(l,c),f=this._view.columnByX(h+s.left);f?(this._view.moveTo(f),f.type()===d.zX.Misc&&this._correctColumnsCount(10)):this._view.scroll(-h,100)}}var p=0;(0,a.forEach)(this._view.visibleColumns(),(function(e){p+=e.width()})),(p>=this._view.viewport().width||t&&n&&t.isFirst()&&n.isLast())&&(this._ndLoadingHandle=g.Ay.hide(this._ndLoadingHandle),this._showCallback())}},columns4append:function(e,t){return(0,i.sH)(this,void 0,void 0,(function(){var n,r,o,u,c,l,d,h,f,p,m,g,v=this;return(0,i.YH)(this,(function(i){switch(i.label){case 0:if(!t||this._disabled)throw new Error("Invalid parameters or disabled.");return n={flag:0,ignoreGroupHeader:this._ignoreGroupHeader,issueIntroDisabled:this._config.issueIntroDisabled},[4,this._articlesFeedManager.loadPromise];case 1:if(i.sent(),this._appendColumnsTask.aborted)throw new Error("Aborted");if(r=null,e)for(o=e;o;o=o.prev())if((u=o.layouts())&&u.length){r=u[0].dataItem();break}if(c=this._currentViewState.article(),r||(r=c),r?(this._currentViewState.type()||(n.flag|=1),(this._currentViewState.jump()||r===this._currentViewState.expandedArticle())&&(this._currentViewState.type()||(n.expandedArticle=r),this._currentViewState.jump(!1))):(l=this._articlesFeedManager.getFirstArticle(),(d=this._currentViewState.expandedArticleId())&&!n.expandedArticle&&(l&&(0,a.isFunction)(l.dataType)&&l.dataType()===s.p.initBlock&&(0,a.isFunction)(l.tokenized)&&l.tokenized(!0),n.expandedArticle=this._articlesFeedManager.getArticleById(d)),r=l),!r)throw new Error("Not sure what article to start building from.");for(h=[r],f=r.nextItem;f;f=f.nextItem)h.push(f);m=0,i.label=2;case 2:if(!(m1){for(var s=r.cells(),u=[],c=0;c=0;--o)if(r[o]){var a=r[o].dataItem();n[a.Idx]||(n[a.Idx]=!0,t.push(a))}}return t.length?t:null},_findFirstArticle:function(){if(this._disabled)return null;var e=this._view.visibleColumns();if(!e)return null;for(var t=0;t=0;--i){var r=n[i].dataItem();if(r)return r}}return null},firstAvailableArticle:function(){return this._firstArticleByPredicate((function(e){return e&&e.Type===s.p.article&&e.Id}))},firstAvailableArticleToListen:function(){return this._firstArticleByPredicate((function(e){return e&&e.Type===s.p.article&&e.Id&&e.Issue}))},_firstArticleByPredicate:function(e){if(this._disabled)return null;var t=this._findFirstArticle();if(!t)return null;for(var n=t;n;n=n.next())if(e(n))return n;return null},_lastVisiblePages:null,_updatePagesPanelTimeoutID:0,_updatePagesPanel:function(e){if(this._updatePreviewPanel)if(this._updatePagesPanelTimeoutID&&(clearTimeout(this._updatePagesPanelTimeoutID),this._updatePagesPanelTimeoutID=0),(0,a.isNumber)(e))this._updatePagesPanelTimeoutID=setTimeout(this._updatePagesPanel.bind(this),e);else if(this._view.isUpdateable()){var t=this.visibleArticles();if(t){for(var n=null,i={},r=t.length-1;r>=0;--r){var s=t[r];i[s.Page.number]||(i[s.Page.number]=1,n?n.push(s.Page.number):n=[s.Page.number])}n&&(n.sort(),!o.nd.viewer.pages||this._lastVisiblePages&&n.join(",")===this._lastVisiblePages||(o.nd.viewer.pages.startActivePageValidation(),o.nd.viewer.pages.setActivePageNumbers(n),o.nd.viewer.pages.finishActivePageValidation())),this._lastVisiblePages=n?n.join(","):null}}else this._updatePagesPanel(100)},translate:function(e,t){this._disabled||e.translation(t.code(),this._onArticleTranslated.bind(this))},_onArticleTranslated:a.noop,scrollToTip:function(){for(var e=(this._articlesFeedManager.items||{}).tail();e&&!e.tokenized();){var t=e.prev();if(!t||t.tokenized())break;e=t}e&&this.jump(e.Id,!0)},contentAccessToken:function(e){return arguments.length?(this._contentAccessToken=e,e):this._contentAccessToken},dataFeedManager:function(){return this._articlesFeedManager},removeArticle:function(e){var t=this,n=this._articlesFeedManager.getArticleById(e);if(n){var i=this._view.visibleColumns();if(i&&i.length>0){var r=n.next();i[0].hasItem(n)&&r&&this._currentViewState.article(r).type(0)}}this._ndLoadingHandle=g.Ay.show(this._ndLoadingHandle),this._reset().then((function(){n&&t._articlesFeedManager.removeArticle(n),t._correctColumnsCount(10)}))},_abortColumnsBuilding:function(){this._appendColumnsTask&&this._appendColumnsTask.abort(),this._prependColumnsTask&&this._prependColumnsTask.abort(),this._builder.abort()}}),t.A=V},90333:function(e,t,n){"use strict";var i=n(58932),r=n(13981),o=n(24167),a=n(78698),s=n(10235),u=n(44260),c={},l=function(){function e(e,t){this._id=e,c[e]=this,t&&(this._name=t)}return e.prototype.id=function(){return this._id},e.prototype.name=function(){return this._name||u.Ay.val("TextView.Fonts.".concat(this._id.substr(0,1).toUpperCase()).concat(this._id.substr(1)))},e}(),d=null,h=null;function f(){for(var e=[],t=0;t1)for(var n=0;n0&&(a=r.filter(a,(function(e){return!r.some(t,(function(t){return-1!==t.indexOf(e.raw)}))})));var s=r.map(a,(function(e){return i._regexps[e]||(i._regexps[e]=function(e){return e=(e=(e=(0,o.Dp)(e)).replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")).replace(/\s+/g,"\\s+"),new RegExp("\\b".concat(e,"\\b"),"ig")}(e)),i._regexps[e]})),u=function(e,t,i){var o=e.replace(i,""),a=null,s=function(e,t){var n={index:t,length:e.length};return a?a.push(n):a=[n],r.repeat(" ",e.length)};o=o.replace(/<[^<>]*>/g,(function(e){return r.repeat(" ",e.length)}));for(var u=0;u{0}',topic:'{0} '},g=null,v=/"([^"]+)"|'([^']+)'|([^\s]+)/g;function y(e){return Array.isArray(e)?e:r.isEmpty(e)?null:e.split(v).map((function(e){return e?e.trim():null})).filter((function(e){return e&&e.length}))}var _={highlight:function(e){return c||(c=new d(m.search)),c.highlight(y(e))},confirm:function(){return c.confirm()},highlightTopic:function(e){l||(l=new d(m.topic));var t=y(e);return l.acceptStrings(t),l},confirmTopic:function(){return l.confirm()},resetHighlightTopic:function(){l=null},highlightSection:function(e,t){if(e&&t){var n=p[e];return n||(p[e]=n=new d(m.topic)),n.acceptStrings(y(t)),n}},confirmSection:function(e){if(e)return p[e].confirm()},replace:function(e,t){var n=e,o=[];c&&(n=c.replace(n),o=r.map(c.getStrings(),(function(e){return e.toLowerCase()})));var a=h.A.getActiveViewName();return a===i.lP.Monitors||a===i.lP.TextView?l&&(n=l.replace(n,o)):a===i.lP.TopNews&&t&&p[t.GroupName]&&(n=p[t.GroupName].replace(n,o)),n},flatten:function(e){if(g||(g=function(){var e,t=[];for(var n in m)m.hasOwnProperty(n)&&(e=(m[n].match(/<\w.+?>/i)||[])[0])&&t.push(e);return t}()),g.length){for(var t=[].slice.call(e.children,0),n=!1,i=0;i=0;--n)t[n]===e&&this.remove(n);return this},updateSourceItems:function(e){return r.observable(this._source).refresh(e||[]),this.reset()},setSource:function(e){return this._source&&r([this._source]).unbind("arrayChange",this._onDataChangedHandler),this._source=e,e&&r([e]).bind("arrayChange",this._onDataChangedHandler),this.reset().update()},onDataChanged:function(e,t){return t&&(this.sourceChanged(),this.reset().update()),!0},update:function(e){var t=this._getArray();if(e){var n=t.slice(this.items.length,t.length);this._items.insert(this.items.length,n)}else this._items.refresh(t);var i=this;return setTimeout((function(){i.changed(e||!1)}),0),this},reset:function(){return this._top=this.pageSize,this._maxItems=this._source.length,this},renderMore:function(){return this._top=0?1:-1;var o=r.getPathExp(t);return n>0?i.sort((function(e,t){var n=o(e),i=o(t);return"string"==typeof n&&"string"==typeof n?(n=n.toLowerCase(),i=i.toLowerCase(),n.localeCompare(i)):n==i?0:n>i?1:-1})):i.sort((function(e,t){var n=o(e),i=o(t);return"string"==typeof n&&"string"==typeof n?(n=n.toLowerCase(),i=i.toLowerCase(),-1*n.localeCompare(i)):n==i?0:n>i?-1:1})),i},_getArray:function(){var e=this.getSourceForRendering()||[];return e=this._applyFilter(e),e=this._applySort(e),this._applyPaging(e)}},r.nd.ObservableCollectionNew=function(e){this._source=e,this.items=o.observableArray()},r.nd.ObservableCollectionNew.prototype={changed:r.nd.delegate(),render:function(e){var t=this._source||[];t=this._applyFilter(t),this._maxItems=t.length,t=this._applySort(t),t=this._applyPaging(t),this.items(t);var n=this;return setTimeout((function(){n.changed(!!e)}),0),this},canRenderMore:function(){return this._top=0?1:-1;var o=r.getPathExp(t);return n>0?i.sort((function(e,t){var n=o(e),i=o(t);return"string"==typeof n&&"string"==typeof n?(n=n.toLowerCase(),i=i.toLowerCase(),n.localeCompare(i)):n==i?0:n>i?1:-1})):i.sort((function(e,t){var n=o(e),i=o(t);return"string"==typeof n&&"string"==typeof n?(n=n.toLowerCase(),i=i.toLowerCase(),-1*n.localeCompare(i)):n==i?0:n>i?-1:1})),i}},l.getTmplItemColl=function(e,t){return e&&e.data?e.data[t]:null},l.getTmplItemCollNew=function(e,t){return e?e[t]:null},function(){function e(e){r.nd.domContentUpdating(r(this))}r.nd.domContentUpdating=r.nd.delegate(!0),r.nd.domContentUpdated=r.nd.delegate(!0);var t,n=[];function i(){t=0;for(var e=0;e0&&"{"===n[0]?JSON.parse(n):{delayLoadImages:!1};var i,o=new u.A(this,{useTransition:!0,onBeforeScrollStart:function(e){e||(e=window.event);var t=e.target||e.srcElement;this.onStartDefaultPreserved=!1,{a:1,input:1,select:1,textarea:1,button:1}[t.nodeName.toLowerCase()]||r(t).attr("nd-text-select")?this.onStartDefaultPreserved=!0:e.preventDefault?e.preventDefault():e.returnValue=!1},onScrollStart:function(e){e||(e=window.event),e=r.nd.fixTouchEvent(e);this._screenX=e.screenX,this._screenY=e.screenY},onBeforeScrollEnd:function(e){e||(e=window.event);var t=e.target||e.srcElement;s(),e=r.nd.fixTouchEvent(e);if(this.moved){if(t&&"INPUT"==t.nodeName)return;e.preventDefault?e.preventDefault():e.returnValue=!1}else this._cancelNextClick=!1},onAnimationStart:function(e){s(e),d(this,e,"onAnimationStart")},onAnimationEnd:function(){d(this,null,"onAnimationEnd")},onScrollEnd:function(){s(),this.animating||d(this,null,"onScrollEnd")}});o._cfg=n,t.attr("resize-consumer","yes").resize((function(e){o.refresh(),d(o,null,"resize")})),t.find("img").filter((function(e){return!this.complete})).on("load.iscroll",(function(){i&&clearInterval(i),i=setInterval((function(){o.wrapper&&o.refresh(),clearInterval(i)}),3e3),r(this).off("load.iscroll")})),t.attr("content-changed-consumer","yes").on("contentChanged",(function(e){o.refresh(),d(o,null,"contentChanged")}));var a=c.A.create(t[0]).subscribe((function(e){o._cancelNextClick=!1,o._cancelNextClick||(Math.abs(e.screenX-o._screenX)>2||Math.abs(e.screenY-o._screenY)>2)&&(o._cancelNextClick=!0),o._cancelNextClick&&e.stopPropagation()}));t.data("_subscription",a),o.__self=t,t.data(e,o),t=null}function s(e){var t=o.__self;if(t){var n=-(e?e.top:o.y),i=o.wrapperH,r=n+i,a=o.scrollerH,s=r/a,u=(a-r)/i;a&&i&&t.triggerHandler("scrolled",{scroller:o,scrolled:s,belowBottomScreens:u})}}})),n=null}(n),JSON.parse(n.attr("nd-no-parent-update")||"false")||function(n){n.parents(t).each((function(){var t=r(this).data(e);if(t){if(t._ndAppendingChilds)return void(t._ndAppendingChilds=!1);t._nd_scrollTo=!0,t.scrollTo(0,0,0),t._nd_scrollTo=!1,t.refresh(),d(t,null,"checkParentScroller")}}))}(n)}));var i={};function o(e,t){var n=i[t];n||(n=new RegExp("[\\?&]"+t+"=([^]*)"),i[t]=n);var r=n.exec(e);return null==r?"":decodeURIComponent(r[1])}function a(e,t){return t&&t.retina&&(t.targetWidth?e.width=t.targetWidth:e.onload=n),e.src=t.src,e}function s(e){var t=o(e,"retina");if(t){var n=o(e=e.replace("&retina="+t,""),"targetWidth");n&&(e=e.replace("&targetWidth="+n,""))}return{src:e,retina:t,targetWidth:n}}function d(e,t,n,i){var o=e._cfg;if(o&&o.delayLoadImages&&!e._ndUpdating&&!t){if(!i){if(e._pendingForLoadImagesForScroller)return;return e._pendingForLoadImagesForScroller=!0,void requestAnimationFrame((function(){e._pendingForLoadImagesForScroller=!1,d(e,t,n,!0)}))}var a=r(e.scroller);if(!a.is(":visible"))return a.length=0,a=null,void(e=null);var s=-e.y,u=e.wrapperH,c=s+u,l=[];if(2*u>e.scrollerH){for(var f=0,p=(v=a.find('span[delay-active!="1"][delay-image-src]')).length;fs?m=Math.max(m-u,s):g=Math.min(g+u,c),s=m,c=g}var v,y=[];if(!t)for(f=0,p=(v=a.find('span[delay-active="1"]')).length;f
c||b.bottom=s&&l.push(v[f])}!function(e){for(var t=0,n=e.length;t';else if(t)u.innerHTML='
';else if(n){var d=document.createElement("img");u.appendChild(a(d,l))}else l.targetWidth?u.innerHTML=' ':u.innerHTML=' ';u.setAttribute("delay-active","1")}e.length=0}l.loadImagesForScroller=d,l.findScrollerElm=function(n){return n.data(e)?n:(n.parents(t).each((function(){var t=r(this);if(t.data(e))return i=t,!1})),n=null,i);var i},l.findScroller=function(n){var i=n.data(e);return i||n.parents(t).each((function(){var t=r(this).data(e);if(t)return i=t,!1})),n=null,i}}(),i="tmplFilter",r.nd.domContentUpdating((function(e){})),r.nd.domContentUpdated((function(e){!function(e){e.find("[nd-tmpl-filter]").each((function(){var e=r(this);if(!e.data(i)){var t=JSON.parse(this.getAttribute("nd-tmpl-filter")),n=t.targetSelector,o=t.collName,a=t.fieldName,s=t.resetSelector;s&&r(s).on("click",(function(){e.val(""),p()}));var u,c,d=r(n).tmplItem();e.on("touchstart mousedown",(function(e){e.stopPropagation(),r(this).focus()})),e.on("keyup",(function(e){c&&clearTimeout(c);var t=e.keyCode;if(13==t||10==t)return r(this).blur(),p(),!1;c=setTimeout(f,500)})),e.data(i,"inited")}function h(){return u||(d=r(n).tmplItem(),(u=l.getTmplItemColl(d,o))&&u.sourceChanged((function(){e.val(""),this.resetFilter()}))),u}function f(){c=0,p()}function p(){c&&(clearTimeout(c),c=0),h()&&h().setFilter(e.val(),a)}}))}(e)})),function(){var e="tmplPagination",t="[nd-tmpl-pagination]";r.nd.domContentUpdating((function(n){!function(n){n.find(t).each((function(){var t=r(this),n=t.data(e);if(n){n();var i=t.data("_subscription");i&&i.unsubscribe()}}))}(n)})),r.nd.domContentUpdated((function(n){!function(n){n.find(t).each((function(){var t=r(this);if(!t.data(e)){var n=t.tmplItem();if(n){var i=JSON.parse(this.getAttribute("nd-tmpl-pagination")),o=i.pageSize,a=i.collName,s=l.findScrollerElm(t);if(s){var u,c=function(){return u||(n=t.tmplItem(),(u=l.getTmplItemColl(n,a))&&(u.setPageSize(o),u.changed((function(e){var t=l.findScroller(s);t&&(e||(t._nd_scrollTo=!0,t.scrollTo(0,0,0),t._nd_scrollTo=!1),t.refresh(),l.loadImagesForScroller(t))})))),u};c(),s.bind("scrolled",(function(n,i){if(t.data(e)&&i.belowBottomScreens<3){if(i.scroller._nd_scrollTo)return;var r=c();if(r)return i.scroller._ndAppendingChilds=!0,void r.renderMore(o)}}))}}t.data(e,(function(){s=null,t=null}))}}))}(n)}))}(),function(){var e="tmplPagination",t="[nd-tmpl-pagination-new]";r.nd.domContentUpdating((function(n){!function(n){n.find(t).each((function(){var t=r(this).data(e);t&&t()}))}(n)})),r.nd.domContentUpdated((function(n){!function(n){n.find(t).each((function(){var t=r(this);if(!t.data(e)){var n=o.dataFor(t[0]);if(n){var i=JSON.parse(this.getAttribute("nd-tmpl-pagination-new")),a=i.pageSize,s=i.collName,u=l.findScrollerElm(t);if(u){var c,d=function(){return c||(n=o.dataFor(t[0]),(c=l.getTmplItemCollNew(n,s))&&(c.setPageSize(a),c.changed((function(e){if(u){var t=l.findScroller(u);t&&(e||(t._nd_scrollTo=!0,t.scrollTo(0,0,0),t._nd_scrollTo=!1),t.refresh(),l.loadImagesForScroller(t))}})))),c};d(),u.on("scrolled",(function(n,i){if(t.data(e)&&i.belowBottomScreens<3){if(i.scroller._nd_scrollTo)return;var r=d();if(r)return i.scroller._ndAppendingChilds=!0,void r.renderMore(a)}}))}}t.data(e,(function(){u&&(u.off("scrolled"),u=null),t=null}))}}))}(n)}))}()},83449:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var i=n(27189),r=n(60588);function o(e){return i.A.getAsync("snippetRenderer.apiUrl").then((function(t){return(0,r.nO)({pageSetId:e,baseUrl:t})}))}},8021:function(e,t,n){"use strict";n.d(t,{L2:function(){return y},Lo:function(){return f},P2:function(){return h},w6:function(){return g},xm:function(){return v}}),n(83449);var i=n(69463),r=n(1766),o=n.n(r),a=n(1435),s=n(53477),u=n(36945),c=n(44834),l=n(13981),d={create:1,update:2,delete:3},h=new i.B,f=h.asObservable(),p=(0,a.J)({expire:3e5});function m(){p.clear()}function g(e){var t=e.issue,n=e.pages;if(!t)return Promise.reject("issue not specified");if(o()(n))return Promise.reject("pages array is empty");var i={issue:t,pages:n};return(0,s.w6)(i).then((function(e){return h.next({event:d.create,data:i}),m(),e}))}function v(e,t){return e?o()(t)?Promise.reject("pages array is empty"):l.bX.runSaga((0,c.T1)(u.Sg,e,t)).toPromise().then((function(n){return h.next({event:d.update,data:{pageSetId:e,pages:t}}),m(),n})):Promise.reject("pageSetId not specified")}function y(e){return e?l.bX.runSaga((0,c.T1)(u.lN,e)).toPromise().then((function(){m(),h.next({event:d.delete,data:{pageSetId:e}})})):Promise.reject("contentId not specified")}},20680:function(e,t,n){"use strict";n.r(t),n.d(t,{alertError:function(){return f},logAndAlertError:function(){return h},logError:function(){return d}});var i=n(13302),r=n(46977),o=n(44260),a=n(16213),s=n(98177);function u(e){var t=e.error,n=e.message;return t.resourceKey?o.Ay.valAsync(t.resourceKey).then((function(e){return{error:t,message:e||n}})).catch((function(e){return a.A.error(e),Promise.reject(new Error(e))})):Promise.resolve({error:t,message:n})}function c(e){var t=e.message;return new Promise((function(e){var n=(0,r.A)();n.onClosed((function(){e()})),n.show(t)}))}function l(e){var t=void 0===e?{}:e,n=t.log,r=void 0===n||n,o=t.alert,l=[];return void 0!==o&&o&&(l.push(u),l.push(c)),function(e){return new Promise((function(t,n){if(void 0!==e){var o=function(e){if(null==e)return new Error("Unexpected error");if((0,i.isString)(e))return new Error(e);if(!(0,i.isObject)(e))throw new TypeError("Error has to be an object");return e instanceof Error||!("status"in e)||!("responseText"in e)?e:new s.A({status:e.status,responseText:e.responseText,responseJSON:e.responseJSON})}(e);r&&a.A.error(e),l.reduce((function(e,t){return e.then(t)}),Promise.resolve({error:o,message:o.message})).then((function(){n(o)}))}else n(e)}))}}var d=l(),h=l({alert:!0}),f=l({alert:!0,log:!1})},98177:function(e,t,n){"use strict";var i=n(58932),r=function(e){function t(t){var n=t.status,i=t.responseText,r=t.responseJSON,o=void 0===r?null:r,a=this,s=o&&o.message||i||"",u=o&&o.resourceKey;return(a=e.call(this,s,u,null)||this).status=n,a.responseText=i,a.responseJSON=o,a}return(0,i.C6)(t,e),t}(n(89993).A);t.A=r},89993:function(e,t,n){"use strict";var i=n(58932),r=n(13302),o=function(e){function t(t,n,i){var o=this;if(!(0,r.isString)(t))throw new TypeError("Exception message has to be a string.");return(o=e.call(this,t)||this).resourceKey=n,o.error=i,o}return(0,i.C6)(t,e),t}(Error);t.A=o},3993:function(e,t,n){"use strict";n.d(t,{_N:function(){return a},eB:function(){return o},m1:function(){return s}});var i=n(27189),r="v7.Client.Dialogs.Signin";function o(){return i.A.get("ui.SignIn.ExternalSystems")||[]}function a(){var e=i.A.get("ui.SignIn.customTemplate");return e?"".concat(r,".").concat(e):r}function s(){return i.A.get("Registration.SocialNetworkSignInAllowed",!1)}},92336:function(e,t,n){"use strict";n.d(t,{A:function(){return H}});var i=n(58932),r=n(41349),o=n.n(r),a=n(96543),s=n(34132),u=function(e){return{name:e.SponsorName,id:e.SponsorId,tags:e.SponsorTags.map((function(e){return e.Name.toLowerCase()})),isInternal:e.IsInternal,industry:e.Industry,isEmbeddedModeEnabled:e.IsEmbeddedModeEnabled,isNotificationEnabled:e.IsNotificationEnabled,hideRadiantPeriodTimer:e.HideRadiantPeriodTimer,isHotspotEnabled:e.IsHotspotEnabled,isGeoLocationValidationEnabled:e.IsGeoLocationValidationEnabled,notifications:e.Notifications?{broughtBy:e.Notifications.BroughtBy,complimentaryAccess:e.Notifications.ComplimentaryAccess,featuredCarouselTitle:e.Notifications.FeaturedCarouselTitle}:void 0,radiantPeriod:e.RadiantPeriod?{startDate:new Date(e.RadiantPeriod.StartDate),endDate:new Date(e.RadiantPeriod.EndDate)}:void 0,status:e.Status,commands:e.Commands}},c=n(58735),l=n(13981),d=n(78698),h=n(80835),f=n(33730),p=n(13302),m=n(54387),g=n(36106),v=n(65726),y=n(15397),_=n(90185),b=n(7368),w=n(65678),C=n(13384),A=n(45235),I=n(61445),S=n(47027),P=n(44260),x=n(46977),T=n(11261),k=(n(67650),n(84901)),E=n(78521),M=160,D=function(){function e(e,t,n){var i,r,o=this;this.templateContent=e,this._dialog=t;var a=n.publications,s=n.sponsor,u=n.radiantInfo,c=n.issuesInfo;if(this.featuredTitles=[],this.sponsorName=s.name,u){var d=new Date(u.RadiantPeriod.Start),h=new Date(u.RadiantPeriod.End),f=new Date;if(this.hasFreeAccess=!s.hideRadiantPeriodTimer&&d<=f&&h>f,this.hasFreeAccess){var w=(0,E.Us)(f,h);this.freeAccessTime=P.Ay.format("Sponsorship.Dialogs.ComplimentaryAccess.Time",(0,E.Us)(f,h)),this.complimentaryAccessMessage=(null===(i=s.notifications)||void 0===i?void 0:i.complimentaryAccess)?(0,A.GP)(s.notifications.complimentaryAccess,w):"".concat(P.Ay.val("Sponsorship.Dialogs.ComplimentaryAccess.Header")," ").concat(P.Ay.format("Sponsorship.Dialogs.ComplimentaryAccess.Time",w)),(null===(r=s.notifications)||void 0===r?void 0:r.complimentaryAccess)||(this.complimentaryAccessMessage1stPart=P.Ay.val("Sponsorship.Dialogs.ComplimentaryAccess.Header"),this.complimentaryAccessMessage2ndPart=P.Ay.format("Sponsorship.Dialogs.ComplimentaryAccess.Time",w))}u.RadiantPeriod&&(this.radiantPeriod={start:d,startStr:(0,C.yJ)(d,"MMMM d, yyyy"),end:h,endStr:(0,C.yJ)(h,"MMMM d, yyyy")})}if(c&&(this.issuesRemaining=P.Ay.format("Sponsorship.Dialogs.ComplimentaryAccess.IssuesLeft",c.Issues.Remaining)||"".concat(c.Issues.Remaining," issues remaining")),(0,y.Ct)(v.p,!0)){var I=n.documents;if(this.hasDocuments=I&&I.length>0,this.hasDocuments){var S=(0,p.chain)(I).map((function(e,t){return{goToTitle:function(){o.close(),(0,l.JD)((0,m.Ew)({listPosition:t,source:g.V.WelcomeMessage,label:e.title})),T.A.showDocument(e.Id)},imgUrl:(0,_.V)(e.Thumbnail.ImageId,{width:M}),scaledHeight:"",scaledWidth:M}})).value();this.featuredTitles=S}}if(this.hasFeaturedTitles=a.length>0,this.hasFeaturedTitles){var x=a.map((function(e){return{goToTitle:function(){o.close(),T.A.showIssueDetails({issue:e.latestIssue.key,country:e.countrySlug,newspaper:e.slug})},imgUrl:(0,b.Fv)({issue:e.latestIssue.key},M,1,!0),scaledHeight:"",scaledWidth:M}}));this.featuredTitles=this.featuredTitles.concat(x)}}return e.prototype.close=function(){this._dialog.hide()},e.prototype.activate=function(){(0,l.JD)((0,I.c0)({enabled:!0})),this._dialog.hide()},e.prototype.selectTitle=function(){this._dialog.hide(),k.A.goView(w.lP.StoreHub,{catalogView:w.$r.Catalog})},e}(),N=function(e,t){return(0,i.sH)(void 0,void 0,void 0,(function(){var n,r,o;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e.isNotificationEnabled?t.Params.FeaturedTitles?[4,(0,S.yC)(t.Params.FeaturedTitles)]:[3,2]:[2];case 1:return n=i.sent(),[3,3];case 2:n=[],i.label=3;case 3:return r=n.reduce((function(e,t){return e[t.cid]=t,e}),{}),o=t.Params.FeaturedTitles.map((function(e){return r[e]})).filter((function(e){return e})),[2,new Promise((function(n){var i=(0,p.extend)({},{sponsor:e},{radiantInfo:t.Params.RadiantInfo,issuesInfo:t.Params.IssuesInfo,documents:t.Params.Documents,publications:o}),r=(0,x.A)(),a=new D(t.Data.Data,r,i);r.onClosed((function(){return n()})),r.show(a)}))]}}))}))},L=function(e){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){return e&&e.Data&&e.Data.Data?[2,(0,x.A)().show(e.Data.Data)]:[2]}))}))},V=n(35429),R="sponsorshipStateChanged",H=new(function(){function e(){var e=this;this.loadSponsorState=function(){return(0,i.sH)(e,void 0,void 0,(function(){var e,t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,this.loadMappedCurrentSponsor()];case 1:return(e=i.sent())||(t=!!(null===(n=this._sponsor)||void 0===n?void 0:n.status),this.off(t)),this._sponsor=e,[2,this._sponsor]}}))}))},this.loadMappedCurrentSponsor=function(){return(0,i.sH)(e,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,s.M_)()];case 1:return[2,(e=t.sent())?u(e):null]}}))}))},this._sponsor=void 0,this._isInIntermediateState=!1,this.reloadSponsorAndExecuteCommands().then((function(){return c.bind("tokenUpdated",(function(){return e.reloadSponsorAndExecuteCommands()}))}))}return e.prototype.init=function(e){var t;return e&&e.Sponsor?(null===(t=this._sponsor)||void 0===t?void 0:t.status)!==e.Sponsor.Status?this.changeSponsorState():void 0:this._sponsor?this.changeSponsorState():void 0},e.prototype.onSponsorshipStateChanged=function(e){a.A.bind(this,R,null,e)},e.prototype.getSponsor=function(){return this._sponsor},e.prototype.reloadSponsorAndExecuteCommands=function(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,this.changeSponsorState()];case 1:return e.sent(),[4,this.executeCurrentCommands(!1)];case 2:return e.sent(),[2]}}))}))},e.prototype.executeCurrentCommands=function(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e&&(null===(t=this._sponsor)||void 0===t?void 0:t.commands)?[4,this.changeSponsorState(!0)]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.execCommands(null===(n=this._sponsor)||void 0===n?void 0:n.commands),[2]}}))}))},e.prototype.off=function(e){window.localStorage.removeItem("sponsorshipstatus"),this._sponsor=void 0,e&&a.A.trigger(R,this)},e.prototype.changeSponsorState=function(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,r;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return this._isInIntermediateState?[2]:(this._isInIntermediateState=!0,t=null===(r=this._sponsor)||void 0===r?void 0:r.status,e?[4,c.updateBearerToken()]:[3,2]);case 1:i.sent(),i.label=2;case 2:return[4,this.loadSponsorState()];case 3:return n=i.sent(),t!==(null==n?void 0:n.status)&&a.A.trigger(R,this),this._isInIntermediateState=!1,[2]}}))}))},e.prototype.execCommands=function(e){var t=this,n=(0,l.Lt)(d.nw);if(e&&n!==h.Z.Pervasive&&!(0,l.Lt)(f.Io).length){var r=new V.T;o()(e,(function(e){return(0,i.sH)(t,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:switch(e.Name){case"Alert":return[3,1];case"HtmlDialog":return[3,3]}return[3,5];case 1:return[4,r.enqueue(L(e))];case 2:case 4:return t.sent(),[3,6];case 3:return[4,r.enqueue(N(this._sponsor,e))];case 5:return[3,6];case 6:return[2]}}))}))}))}},e}())},98346:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var i=n(58932),r=n(3978),o=n(12010),a=n(13302),s=n(75676),u=n(96587),c=n(55683),l=function(e){function t(t){var n=t.dialog,i=t.behaviourCase,r=e.call(this,{properties:i.properties,actions:i.actions.filter((function(e){return!(0,a.startsWith)(e.name,"$")}))})||this;return r.$actions=(0,a.reduce)(i.actions,(function(e,t){return(0,a.startsWith)(t.name,"$")&&(e[t.name.substr(1)]=new s.A(t)),e}),{}),r._dialog=n,r}return(0,i.C6)(t,e),t.prototype.$action=function(e){var t=this.$actions[e];if(void 0===t)throw new Error("action ".concat(e," is not defined"));this.action(t)},t.prototype.close=function(){this._dialog.hide(c.d.Cancel)},t.prototype.action=function(e){var t=this;Promise.resolve(e.execute()).then((function(){return t._dialog.hide(c.d.Ok)})).catch((function(e){return t._dialog.hide(c.d.Unknown,{error:e})}))},t}((function(e){var t=e.properties,n=e.actions;this.properties=(0,a.assign)({},t),this.actions=o.observableArray((0,a.map)(n,(function(e){return new s.A(e)})))})),d={show:function(e){return new Promise((function(t,n){(0,r.A)(e,r.p.SUBSCRIPTION_NOT_VALID).then((function(i){null==i&&n(new Error("".concat(r.p.SUBSCRIPTION_NOT_VALID," case not configured for ").concat(e))),null==i.templateId&&n(new Error("template not configured for ".concat(r.p.SUBSCRIPTION_NOT_VALID," of ").concat(e," profile")));var o=u.default.getParent(),a=u.default.createInstance(o),s=new l({dialog:a,behaviourCase:i}),d={templateName:i.templateId,model:s,name:"InvalidSubscriptionDialog"};a.onHide((function(e,i){i&&i.status===c.d.Ok?t(!0):n(i&&i.error?i.error:void 0)})),a.onRestore((function(){return a.resize()})),a.show(d)})).catch(n)}))}}},3978:function(e,t,n){"use strict";n.d(t,{A:function(){return u},p:function(){return s}});var i=n(45235),r=n(82230),o="subscriptions/behaviourprofiles",a={},s=Object.freeze({SUBSCRIPTION_NOT_VALID:"SubscriptionNotValid",MANAGE_SUBSCRIPTION:"ManageSubscription"});function u(e,t){if((0,i.gP)(e))throw new Error("profileName required");if((0,i.gP)(t))throw new Error("behaviourCase required");var n="".concat(e,"-").concat(t);return void 0!==a[n]?Promise.resolve(a[n]):r.A.get(o,"".concat(e,"/cases/").concat(t)).then((function(e){return a[n]=e,e}))}},75676:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n(58932),r=n(13302),o=n(57351),a=n(1943),s=function(e){function t(t,n){var i=e.call(this)||this;return i._action=t,i._predefinedContext=n,i._buildContext=i._buildContext.bind(i),i.available=i.available.bind(i),i.enabled=i.enabled.bind(i),i.activate=i.activate.bind(i),i}return(0,i.C6)(t,e),t.prototype._buildContext=function(e){return(0,r.assign)({},this._predefinedContext,e)},t.prototype.available=function(e){return this._action.available(this._buildContext(e))},t.prototype.enabled=function(e){return this._action.enabled(this._buildContext(e))},t.prototype.activate=function(e){return this._action.activate(this._buildContext(e))},t}(o.A),u=function(){function e(e){var t=e.name,n=e.title,i=e.decoration,o=e.clientAction,u=e.params;this.name=t,this.title=n,this.decoration=i,this._action=function(e,t){var n=a.A[e];if(void 0===n)throw new Error("action '".concat(e,"' not supported"));if(null==t)return n;if(!(0,r.isObject)(t))throw new Error("unexpected type of action params '".concat(t,"' for action '").concat(e,"'. Object expected."));return new s(n,t)}(o,u)}return e.prototype.execute=function(e){return this._action.activate(e)},e}(),c=u},70953:function(e,t,n){"use strict";var i=n(69895);t.A=Object.freeze({base:i._.Base,ad:i._.Ad,annotation:i._.Annotation,comments:i._.Comments,continuedFromLink:i._.ContinuedFromLink,image:i._.Image,relatedAd:i._.RelatedAd,related:i._.Related,fullTitle:i._.FullTitle,title:i._.Title,subtitle:i._.Subtitle,tools:i._.Tools,video:i._.Video,text:i._.Text,translationBar:i._.TranslationBar})},60738:function(e,t,n){"use strict";n.r(t),n.d(t,{editTopicDialog:function(){return F}});var i,r=n(58932),o=n(88135),a=n(12010),s=n(68483),u=n(12993),c=n(47027),l=n(44260),d=n(55683),h=n(96587),f=n(87266),p=n(30657),m=((i={})[p.aZ.All]="Dialogs.AdvancedSearch.Anywhere",i[p.aZ.Headline]="Dialogs.AdvancedSearch.InHeadline",i[p.aZ.Body]="Dialogs.AdvancedSearch.InBody",i);function g(e){return l.Ay.val(m[e])}var v,y,_=function(e,t,n){this.id=e,this.displayName=t,this.isSelected=(0,a.observable)(n)},b=function(){function e(e){var t=e.dialog,n=e.location;this.dialog=t,n=n||f.l.DefaultLocation,this.locations=[p.aZ.Headline,p.aZ.Body].map((function(e){return new _(e,g(e),n===p.aZ.All||e===n)}))}return e.prototype.back=function(){this.save()},e.prototype.save=function(){var e=this.locations.filter((function(e){return e.isSelected()}));this.dialog.hide(d.d.Ok,{location:e.length===this.locations.length?p.aZ.All:e.filter((function(e){return e.isSelected()}))[0].id}),this.dialog=null},e.prototype.toggleSelection=function(e){var t=e.isSelected();t?this.locations.filter((function(t){return t.id!==e.id&&t.isSelected()})).length>0&&e.isSelected(!t):e.isSelected(!t)},e}(),w=function(){function e(){}return e.prototype.show=function(e){var t=void 0===e?{parentDialog:null,location:null}:e,n=t.parentDialog,i=t.location;return new Promise((function(e){var t=h.default.createInstance(n),r=new b({dialog:t,location:i});t.onHide((function(t,n){e(n)})),t.show({templateName:"v7.Client.Dialogs.ResultsLocated",model:r,preventClosingOnClickOutside:!0})}))},e}(),C=new w,A=n(13302);function I(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,y?Promise.resolve(y):(0,c.X6)().then((function(e){return y=(0,A.reduce)(e,(function(e,t){return e[t.name]=t.displayName,e}),{})}))];case 1:return[2,t.sent()[e]]}}))}))}function S(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,c.jW)(e)];case 1:return[2,null==(t=n.sent())?void 0:t.name]}}))}))}var P=function(){function e(e){void 0===e&&(e={});var t=this;this.id=a.observable(e.id),this.topicTypeId=a.observable(e.topicTypeId||1),this.searchQuery=a.observable(e.searchQuery),this.searchAuthor=a.observable(e.searchAuthor),this.searchIn=a.observable(e.searchIn||"ALL"),this.languages=a.observableArray(e.languages),this.countries=a.observableArray(e.countries),this.newspapers=a.observableArray(e.newspapers),this.contentCount=a.observable(e.contentCount),this.searchQueryFocus=a.observable(!0),this.searchAuthorFocus=a.observable(!0),this.searchTerm=a.pureComputed((function(){var e=t.searchQuery(),n=t.searchAuthor();return e?Promise.resolve(e):n?l.Ay.valAsync("Topics.SearchByAuthor","%author%").then((function(e){return e.replace("%author%",n)})):l.Ay.valAsync("NotAvailable","N/A")})).extend({async:!0}),this.searchAuthorText=a.pureComputed((function(){return t.searchQuery()?t.searchAuthor():""})),this.searchInText=a.pureComputed((function(){var e=t.searchIn();return"ALL"===e?"":g(e)})),this.searchInLabel=a.pureComputed((function(){return g(t.searchIn())})),this.languageText=a.pureComputed((function(){var e,n=t.languages();return 0===n.length?Promise.resolve(""):1===n.length?(e=n[0],(v?Promise.resolve(v):(0,c.kG)().then((function(e){return v=(0,A.reduce)(e,(function(e,t){return e[t.iso]=t.displayName,e}),{})}))).then((function(t){return t[e]}))):l.Ay.valAsync("MyTopicsBar.Languages").then((function(e){return"".concat(n.length," ").concat(e)}))})).extend({async:!0}),this.newspaperText=a.pureComputed((function(){return(0,r.sH)(t,void 0,void 0,(function(){var e,t,n;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return e=this.countries(),t=this.newspapers(),0!==e.length||0!==t.length?[3,1]:[2,""];case 1:return 1!==e.length||0!==t.length?[3,3]:[4,I(e[0])];case 2:case 4:return[2,i.sent()];case 3:return 0!==e.length||1!==t.length?[3,5]:[4,S(t[0])];case 5:return n=[],e.length&&n.push("".concat(e.length," ").concat(l.Ay.val("MyTopicsBar.Countries"))),t.length&&n.push("".concat(t.length," ").concat(l.Ay.val("MyTopicsBar.Titles"))),[2,n.join(", ")]}}))}))})).extend({async:!0}),this.showSimilar=a.pureComputed({read:function(){return 1===this.topicTypeId()},write:function(e){this.topicTypeId(e?1:2)},owner:this}),this.showSimilarText=a.computed((function(){return t.showSimilar()?l.Ay.val("Topics.TopStories"):""})),this.searchTermValid=a.pureComputed((function(){return t.searchQuery()||t.searchAuthor()})).extend({required:!0,trackDirtyState:!0}),this.isValid=this.searchTermValid}return e.prototype.resetSearchQuery=function(){this.searchQuery("")},e.prototype.resetSearchAuthor=function(){this.searchAuthor("")},e.prototype.toDto=function(){return{id:this.id(),topicTypeId:this.topicTypeId(),searchQuery:this.searchQuery(),searchAuthor:this.searchAuthor(),searchTerm:this.searchTerm(),searchIn:this.searchIn(),languages:this.languages(),countries:this.countries(),newspapers:this.newspapers()}},e}(),x=P,T=n(46977),k=n(94340),E=n(34109),M=n(20680),D=n(6714),N=n(46191),L=n(86699),V=n(72167),R=function(){function e(e){var t=e.dialog,n=e.topic,i=void 0===n?{}:n;this.dialog=t,this.dialogTitle=l.Ay.val(i.id?"Topics.EditTopic":"Topics.AddTopic"),this.topic=new x(i),this.isValid=this.topic.isValid,this.inputFocus=a.observable(!0),this.titleSelection=new E.V,this.titleSelection.fromCollections({titles:this.topic.newspapers(),countries:this.topic.countries()})}return e.prototype.cancel=function(){this.dialog.hide(d.d.Cancel),this.dialog=null},e.prototype.save=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,n,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(!(0,s.validate)(this.topic))return[2];if(L.A.isLogin())return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,V.default.signIn()];case 2:return r.sent(),L.A.isLogin()?[3,4]:[2];case 3:return(null==(e=r.sent())?void 0:e.userCancelled)?[2]:(ndLogger.error(e),[3,4]);case 4:k.A.show(),r.label=5;case 5:return r.trys.push([5,7,8,9]),t=this.topic.toDto(),[4,u.V.save(t)];case 6:return n=r.sent(),this.dialog.hide(d.d.Ok,{topic:n}),[3,9];case 7:return i=r.sent(),(0,M.logAndAlertError)(i),[3,9];case 8:return k.A.hide(),[7];case 9:return[2]}}))}))},e.prototype.showTitles=function(){var e=this;this.dialog.suspend();var t={},n=this.titleSelection.getCollections();n.titles.forEach((function(e,n){t[n]=(0,N.TP)(e,void 0,void 0)}));var i={newspapers:Object.values(t),countries:n.countries};(0,D.G)({initialSelections:i,useTabSwitcher:!1}).then((function(t){t.cancelled||(e.topic.countries(t.data.countries.map((function(e){return e.id}))),e.topic.newspapers(t.data.newspapers.map((function(e){return e.cid}))),e.titleSelection.fromCollections({titles:e.topic.newspapers(),countries:e.topic.countries()})),e.dialog.resume()}))},e.prototype.showLanguages=function(){var e=this;this.dialog.suspend();var t=this.topic.languages();(0,o.o)({initialSelections:t}).then((function(t){var n;t.cancelled||e.topic.languages(((null===(n=t.data)||void 0===n?void 0:n.selectedLanguages)||[]).map((function(e){return e.iso}))),e.dialog.resume()}))},e.prototype.showSearchLocations=function(){var e=this;C.show({parentDialog:this.dialog,location:this.topic.searchIn()}).then((function(t){t.status===d.d.Ok&&e.topic.searchIn(t.location)}))},e.prototype.confirmDelete=function(){var e=this,t=l.Ay.get("Topics.DeleteTopicConfirmationMessage").replace("%topic%",this.topic.searchTerm());(0,T.A)().confirm(t).then((function(){k.A.show(),u.V.delete(e.topic.id()).then((function(){e.dialog.hide(d.d.Ok)})).catch((function(){(0,T.A)().alert(l.Ay.val("Topics.DeleteErrorMessage"))})).finally((function(){return k.A.hide()}))}))},e}(),H=function(){function e(){}return e.prototype.show=function(e){var t=void 0===e?{}:e,n=t.parentDialog,i=t.topic;return new Promise((function(e){var t=h.default.createInstance(n),r=new R({dialog:t,topic:i});t.onHide((function(t,n){e(n)})),t.show({templateName:"v7.Client.Dialogs.EditTopic",model:r,name:"EditTopicDialog"}),t.htmlRoot().find(".textbox input").first().focus()}))},e}(),F=new H},92701:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var i=n(58932),r=n(27189);function o(){return r.A.getAsync("res").then((function(e){if(e.locale){var t=(0,i.zs)(e.locale.split("-"),2);return{language:t[0],country:t[1]}}return{language:void 0,country:void 0}}))}},78521:function(e,t,n){"use strict";n.d(t,{AN:function(){return p},Ae:function(){return f},Ec:function(){return u},Hn:function(){return s},Us:function(){return l},Vd:function(){return d},dL:function(){return m},wT:function(){return h}});var i=n(13302),r=n(44260),o={second:"Second",minute:"Minute",hour:"Hour",day:"Day",week:"Week",month:"Month",year:"Year"};function a(e){if(!(0,i.isDate)(e))throw new TypeError("Date expected, given ".concat(typeof e))}function s(e){return e/864e5}function u(){return a(e=new Date),new Date(e.getFullYear(),e.getMonth(),e.getDate());var e}function c(e){return{year:e.getFullYear(),month:e.getMonth(),date:e.getDate(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}}function l(e,t,n){var i;void 0===n&&(n=2);try{i=function(e,t){if(void 0===t&&(t=new Date),a(e),a(t),e>t)throw new TypeError("The endDate (".concat(t,") must be later than the startDate (").concat(e,")"));var n=c(e),i=c(t),r=i.year-n.year,s=i.month-n.month,u=i.date-n.date,l=i.hours-n.hours,d=i.minutes-n.minutes,h=i.seconds-n.seconds;return h<0&&(d--,h+=60),d<0&&(l--,d+=60),l<0&&(u--,l+=24),u<0&&(s--,u+=new Date(new Date(t).setDate(0)).getDate()),s<0&&(r--,s+=12),[{prefix:o.year,duration:r},{prefix:o.month,duration:s},{prefix:o.day,duration:u},{prefix:o.hour,duration:l},{prefix:o.minute,duration:d},{prefix:o.second,duration:h}].reduce((function(e,t){return(t.duration>0||e.length)&&e.push({prefix:t.prefix,period:t.duration}),e}),[])}(e,t)}catch(e){return""}i.splice(n,Number.MAX_VALUE);var s="TimePeriod";return i.filter((function(e){return e.period>0})).map((function(e){var t=e.prefix;e.period>1&&(t="".concat(t,"s"));var n=[s,t].join(".");return r.Ay.format(n,e.period)})).join(" ")}function d(e,t){if(void 0===t&&(t=2),!(0,i.isDate)(e)){var n=parseInt(e,10);e=new Date(new Date-1e3*n)}return l(e,new Date,t)}function h(e,t){void 0===t&&(t=2);var n=d(e,t);return n?"".concat(n," ago"):n}var f=new Date(864e13),p=new Date(-864e13);function m(e,t){var n=Math.abs(t-e);return Math.floor(n/864e5)}},59940:function(e,t,n){"use strict";n.d(t,{a:function(){return v},i:function(){return p}});var i=n(13302),r=n(45235),o=/[\xAD\w\-.]/,a="(".concat(o.source,"|").concat(/[!#$%&'*+\-/=?^_`{|}~]/.source,")+"),s="".concat(o.source,"+"),u="(".concat(a,"@").concat(s,")"),c=new RegExp("\\b(mailto:)?()".concat(u,"(>?)\\b"),"gi"),l=/\b((?:https?:\/\/)|(?:ftp:\/\/))?((?:[a-z][-\w\xAD]{1,25}\.)+([a-z]{2,3}))(([/\\][.\-\w@~%?(&(amp;)?)#='"\xAD]*)*)\b/gi,d=(0,i.transform)(["com","org","net","int","edu","gov","mil","law","ac","ad","ae","af","ag","ai","al","am","an","ao","aq","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bl","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","su","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tp","tr","tt","tv","tw","tz","ua","ug","uk","um","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"],(function(e,t){e[t]=1}),{});function h(e,t){return'').concat(e," ")}function f(e,t){return'').concat(e," ")}function p(e,t,n){if(void 0===t&&(t=h),void 0===n&&(n=f),(0,r.gP)(e))return e;var i=[],o=0,a=e.replace(c,(function(e){if(!e.includes(".."))return i.push(e),"\0".concat(o++,"\0")})).replace(l,(function(e,t,i,r,o){if(r in d){t=t||"http://",i=i.replace(/\xAD/g,""),o=o.replace(/&/gi,"&").replace(/\xAD/g,"");var a="".concat(t).concat(i).concat(o);return n(e,a)}return e}));return o?a.replace(/\0(\d+)\0/g,(function(e,n){return t(i[n],i[n].replace(/\xAD/g,""))})):a}var m=/["&'<>`/]/g,g={'"':""","&":"&","'":"'","<":"<",">":">","`":"`","/":"/"};function v(e){if(null==e)return"";if(!(0,i.isString)(e))throw new TypeError("String expected");return e.replace(m,(function(e){return g[e]}))}},78747:function(e,t,n){"use strict";n.d(t,{uv:function(){return r}});var i=n(45235);function r(e){return(0,i.gP)(e)?Promise.reject(new Error("url is expected to be a non empty string")):new Promise((function(t,n){var i=new Image;i.onload=function(){return t(e)},i.onerror=n,i.src=e}))}n(44260)},45191:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var i=n(13302);function r(e){return(0,i.isObject)(e)&&(0,i.isFunction)(e.then)}},14683:function(e,t,n){"use strict";var i,r=n(97433),o={};Object.defineProperties(o,{width:{enumerable:!0,get:function(){var e;return void 0===i&&(r.b.testStyles("#modernizr {".concat("width:100px;height:100px;overflow:scroll","}"),(function(t){e=t.offsetWidth-t.clientWidth})),i=e),i}},isHidden:{enumerable:!0,get:function(){return 0===o.width}}}),window.__scrollbar=o,t.A=o},85351:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var i=n(13302),r=n(45235),o=n(29583),a=n(27189),s=function(e){var t=void 0===e?{}:e,n=t.title,i=t.width,r=t.height,o=t.thumbnails,a=void 0===o?{}:o;this.title=n,this.width=i,this.height=r,this.thumbnails={small:a.small,medium:a.medium,large:a.large}},u=n(9485),c=/(youtube.com|youtu.be)/,l=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,d=function(){function e(){}return Object.defineProperty(e.prototype,"videoType",{get:function(){return"YouTube"},enumerable:!1,configurable:!0}),e.prototype.isValid=function(e){return!(0,r.gP)(e)&&c.test(e)&&null!==this.parseId(e)},e.prototype.parseId=function(e){var t=e.match(l);return t&&11===t[2].length?t[2]:null},e.prototype.getVideoInfoAsync=function(e){var t=this.parseId(e);return a.A.getAsync("ui.youtube").then((function(e){return o.getJSON("https://www.googleapis.com/youtube/v3/videos",{part:"snippet",id:t,key:e.key})})).then((function(e){var t=(void 0===e?{}:e).items,n=void 0===t?[]:t;if(0===n.length||!n[0].snippet)return Promise.reject("Error parsing youtube video");var i=n[0].snippet,r=i.title,o=i.thumbnails;return new s({title:r,width:640,height:360,thumbnails:{small:o.default.url,medium:o.medium.url,large:(o.maxres||o.high).url}})}))},e.prototype.getPlayerIframe=function(e,t,n,i){var o=void 0===i?{}:i,a=o.allowfullscreen,s=o.controls,u=o.showinfo,c=o.related;if((0,r.gP)(e))return null;var l=this.parseId(e);if((0,r.gP)(l))return null;var d="".concat("//www.youtube.com/embed","/").concat(l),h=a?"allowFullscreen":"",f=s?"1":"0",p=u?"1":"0",m=c?"1":"0";return' ")},e.prototype.getPlayer=function(e,t,n){var i=(0,r.gP)(e)?null:this.parseId(e);return(0,r.gP)(i)?Promise.reject(new Error("couldn't extract videoId from url '".concat(e,"'"))):(n.videoId=i,u.A.create({player:"youtube",element:t}).setup(n))},e}(),h=/(player.)?vimeo\.com/,f=/(http(s)?:\/\/)?(www\.|player\.)?vimeo.com\/(\w*\/)*(\d+)(\/)?(#.*)?/,p=function(){function e(){}return Object.defineProperty(e.prototype,"videoType",{get:function(){return"Vimeo"},enumerable:!1,configurable:!0}),e.prototype.isValid=function(e){return!(0,r.gP)(e)&&h.test(e)&&null!==this.parseId(e)},e.prototype.parseId=function(e){var t=e.match(f);return t&&t[5]},e.prototype.getVideoInfoAsync=function(e){var t=this.parseId(e),n=o.getJSON((0,r.GP)("https://vimeo.com/api/v2/video/{0}.json",t),{format:"json"}).then((function(e){return new s({title:e[0].title,width:e[0].width,height:e[0].height,thumbnails:{small:e[0].thumbnail_small,medium:e[0].thumbnail_medium,large:e[0].thumbnail_large}})}));return new Promise((function(e,t){return n.then(e,t)}))},e.prototype.getPlayerIframe=function(e,t,n,i){var o=(void 0===i?{}:i).allowfullscreen;if((0,r.gP)(e))return null;var a=this.parseId(e);if((0,r.gP)(a))return null;var s="".concat("https://player.vimeo.com/video","/").concat(a),u=o?"allowFullscreen":"";return' ")},e.prototype.getPlayer=function(e,t,n){var i=(0,r.gP)(e)?null:this.parseId(e);return(0,r.gP)(i)?Promise.reject(new Error("couldn't extract videoId from url '".concat(e,"'"))):(n.id=i,u.A.create({player:"vimeo",element:t}).setup(n))},e}(),m=n(32512),g=/(facebook.com)/,v=/^.*facebook\.com\/(.*\/videos\/|video\.php.*[?&]v=)(\w*)/,y=function(){function e(){}return Object.defineProperty(e.prototype,"videoType",{get:function(){return"Facebook"},enumerable:!1,configurable:!0}),e.prototype.isValid=function(e){return!(0,r.gP)(e)&&g.test(e)&&null!==this.parseId(e)},e.prototype.parseId=function(e){var t=e.match(v);return t?t[2]:null},e.prototype.getVideoInfoAsync=function(e){var t=this.parseId(e);return a.A.getAsync("socialMedia.facebook.videoMetaUrl").then((function(e){return(0,m.Tt)({url:(0,r.GP)(e,t)})})).then((function(e){return new s({title:e.Title,width:e.Width,height:e.Height,thumbnails:{small:e.Thumbnail.Url,medium:e.Thumbnail.Url,large:e.Thumbnail.Url}})}))},e.prototype.getPlayerIframe=function(e,t,n,i){var o=void 0===i?{}:i,a=o.allowfullscreen,s=o.showinfo;if((0,r.gP)(e))return null;var u=this.parseId(e);return(0,r.gP)(u)?null:'
')},e.prototype.getPlayer=function(e,t,n){var i=(0,r.gP)(e)?null:this.parseId(e);return(0,r.gP)(i)?Promise.reject(new Error("couldn't extract videoId from url '".concat(e,"'"))):(n.videoId=i,t.innerHTML=this.getPlayerIframe(e,n.width,n.height,n.playerVars),u.A.create({player:"facebook",element:t}).setup(n))},e}(),_=new(function(){function e(){this.embeders=[new d,new p,new y]}return e.prototype.get=function(e){return(0,r.gP)(e)?null:(0,i.find)(this.embeders,(function(t){return t.isValid(e)}))},e.prototype.exists=function(e){return this.embeders.some((function(t){return t.isValid(e)}))},e}()),b={getVideoInfo:function(e){var t=_.get(e);return t?t.getVideoInfoAsync(e):Promise.reject("Video url is not supported")},getVideoType:function(e){var t=_.get(e);return t?t.videoType:null},getVideoId:function(e){var t=_.get(e);return t?t.parseId(e):null},getPlayer:function(e,t,n){void 0===n&&(n={});var i=_.get(e);return i?i.getPlayer(e,t,n):Promise.reject(new Error("not found video player for source '".concat(e,"'")))},getPlayerIframe:function(e,t,n,i){void 0===i&&(i={});var r=_.get(e);return r?r.getPlayerIframe(e,t,n,i):null},playerExists:function(e){return _.exists(e)}}},9485:function(e,t,n){"use strict";n.d(t,{A:function(){return V}});var i,r=n(45235),o=n(58932),a=n(13302),s=function(){function e(t){if(!(0,a.isElement)(t))throw new TypeError("Element value is expected to be a DOM element");if(this.constructor===e)throw new TypeError("Cannot construct Player instances directly");this.element=t}return e.prototype.setup=function(e){return Promise.resolve(this)},e.prototype.play=function(){return Promise.resolve()},e.prototype.pause=function(){return Promise.resolve()},e.prototype.stop=function(){return Promise.resolve()},e.prototype.mute=function(){return Promise.resolve()},e.prototype.unmute=function(){return Promise.resolve(0)},e.prototype.setVolume=function(e){return Promise.resolve(0)},e.prototype.getVolume=function(){return Promise.resolve(0)},e.prototype.resize=function(e,t){return Promise.resolve()},e.prototype.on=function(e,t){if((0,r.gP)(e))throw new TypeError("event is expected to be a non-empty string");if(!(0,a.isFunction)(t))throw new TypeError("handler is expected to be a function")},e.prototype.destroy=function(){return this.element=null,Promise.resolve()},Object.defineProperty(e.prototype,"isFullScreen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"video",{get:function(){return null},enumerable:!1,configurable:!0}),e}(),u=n(27189),c=n(16213),l=n(83323),d=0;function h(){return i||(i=u.A.getAsync("ad.spotxDirectSdkScript").then((function(e){return(0,r.gP)(e)?Promise.reject('Can\'t find "ad.spotxDirectSdkScript" parameter in config'):new Promise((function(t){(0,l.j)([e],(function(e){void 0===e&&(e=window.SpotX),t(e)}),(function(e){c.A.error(e),++d<5&&(i=null)}))}))})))}var f,p,m=function(e){function t(t){var n=e.call(this,t)||this;return n._playerInstance=null,n}return(0,o.C6)(t,e),t.prototype.setup=function(t){var n=this;return e.prototype.setup.call(this,t),h().then((function(e){return n._playerInstance=new e.DirectAdOS(t),n.on("AdPaused AdStopped",(function(){n._isPlaying=!1})),n.on("AdStarted",(function(){n._isPlaying=!0})),n._playerInstance.loadAd()})).then((function(){return n}))},t.prototype.play=function(){var e=this;return this._checkInstance().then((function(){e._playerInstance.loaded()&&!e._isPlaying&&(e._playerInstance.playAd(),e._isPlaying=!0)}))},t.prototype.stop=function(){var e=this;return this._checkInstance().then((function(){e._playerInstance.loaded()&&!e._isPlaying&&(e._playerInstance.stopAd(),e._isPlaying=!1)}))},t.prototype.pause=function(){var e=this;return this._checkInstance().then((function(){e._playerInstance.loaded()&&e._isPlaying&&(e._playerInstance.pauseAd(),e._isPlaying=!1)}))},t.prototype.on=function(t,n){var i=this;return this._checkInstance().then((function(){return e.prototype.on.call(i,t,n),h().then((function(e){t.split(" ").map((function(t){return i._getEventName(e,t)})).forEach((function(e){i._playerInstance.subscribe(n,e)}))}))}))},t.prototype.mute=function(){var e=this;this._checkInstance().then((function(){e._playerInstance.videoSlot().muted=!0}))},t.prototype.unmute=function(){var e=this;this._checkInstance().then((function(){e._playerInstance.videoSlot().muted=!1}))},t.prototype.setVolume=function(e){var t=this;this._checkInstance().then((function(){return t._playerInstance.setAdVolume(e/100),t.getVolume()}))},t.prototype.getVolume=function(){var e=this;this._checkInstance().then((function(){return 100*e._playerInstance.getAdVolume()}))},t.prototype.resize=function(e,t){var n=this;this._checkInstance().then((function(){n._playerInstance.resize(e,t)}))},Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"video",{get:function(){if(!this._playerInstance)throw new Error("Use .setup() to initialize the player");return this._playerInstance.videoSlot()},enumerable:!1,configurable:!0}),t.prototype._getEventName=function(e,t){switch(t){case"play":return e.DirectAdOS.Events.AD_RESUMED;case"pause":return e.DirectAdOS.Events.AD_PAUSED;case"complete":return e.DirectAdOS.Events.AD_AFTER_STOPPED;case"error":return e.DirectAdOS.Events.AD_ERROR;default:return t}},t.prototype._checkInstance=function(){var e=this;return new Promise((function(t,n){e._playerInstance?t(e._playerInstance):n(new Error("Use .setup() to initialize the player"))}))},t}(s),g=n(99526),v=n(25778),y=n(35765),_=n(45191),b=((f={})[1]="play",f[2]="pause",f[0]="complete",f[-2]="error",f),w=function(e){return new Promise((function(t,n){try{var i=e();(0,_.y)(i)?i.then(t):t(i)}catch(e){n(e)}}))},C=function(e){function t(t){var n=e.call(this,t)||this;return n._playerInstance=null,n._events=new g.m(1),n._subscriptions=[],n}return(0,o.C6)(t,e),t.prototype.setup=function(t){var n=this;return e.prototype.setup.call(this,t).then((function(){return new Promise((function(e){(0,y.R)("https://www.youtube.com/iframe_api").then((function(){return p||(p=new Promise((function(e){var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){t&&t(),e(window.YT)}}))),p})).then((function(i){t.events={onStateChange:function(e){return n._onPlayerStateChange(e)},onError:function(){return n._events.next("error")},onReady:function(){n._events.next("ready"),e(n)}},n._playerInstance=new i.Player(n.element,t)}))}))}))},t.prototype.play=function(){var e=this;return w((function(){return e._playerInstance.playVideo()}))},t.prototype.stop=function(){var e=this;return w((function(){return e._playerInstance.stopVideo()}))},t.prototype.pause=function(){var e=this;return w((function(){return e._playerInstance.pauseVideo()}))},t.prototype.mute=function(){var e=this;return w((function(){return e._playerInstance.mute()}))},t.prototype.unmute=function(){var e=this;return w((function(){return e._playerInstance.unMute()})).then((function(){return e.getVolume()}))},t.prototype.on=function(t,n){var i=this;e.prototype.on.call(this,t,n),t.split(" ").forEach((function(e){var t=i._events.pipe((0,v.p)((function(t){return t===e}))).subscribe(n);i._subscriptions.push(t)}))},t.prototype.setVolume=function(e){var t=this;return w((function(){return t._playerInstance.setVolume(e)}))},t.prototype.getVolume=function(){var e=this;return w((function(){return e._playerInstance.getVolume()}))},Object.defineProperty(t.prototype,"isPlaying",{get:function(){return 3===this._playerInstance.getPlayerState()||1===this._playerInstance.getPlayerState()},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){var t=this;return w((function(){return t._subscriptions.forEach((function(e){e.unsubscribe()})),t._subscriptions=null,t._playerInstance.destroy(),e.prototype.destroy.call(t)}))},t.prototype._onPlayerStateChange=function(e){if(e){var t=e.data;this._events.next(b[t])}},t}(s),A=function(e){return new Promise((function(t,n){return e.then(t).catch(n)}))},I=function(e){function t(t){var n=e.call(this,t)||this;return n._playerVolumeBeforeMute=100,n._playerInstance=null,n}return(0,o.C6)(t,e),t.prototype.setup=function(t){var i=this;return e.prototype.setup.call(this,t).then((function(){return new Promise((function(e,t){Promise.all([n.e(4641),n.e(8565)]).then(function(t){var i=n(2545).VimeoPlayerBase;e(i)}.bind(null,n)).catch((function(e){return t(e)}))}))})).then((function(e){return i._playerInstance=new e(i.element,t),i._playerInstance.on("play",(function(){i._isPlaying=!0})),i._playerInstance.on("pause",(function(){i._isPlaying=!1})),i._playerInstance.on("ended",(function(){i._isPlaying=!1})),A(i._playerInstance.ready())})).then((function(){return i}))},t.prototype.play=function(){return A(this._playerInstance.play())},t.prototype.stop=function(){return A(this._playerInstance.pause())},t.prototype.pause=function(){return A(this._playerInstance.pause())},t.prototype.mute=function(){var e=this;return this.getVolume().then((function(t){return e._playerVolumeBeforeMute=t,e.setVolume(0)}))},t.prototype.unmute=function(){return this.setVolume(this._playerVolumeBeforeMute)},t.prototype.on=function(t,n){var i=this;e.prototype.on.call(this,t,n),t.split(" ").forEach((function(e){i._playerInstance.on(e,n)}))},t.prototype.setVolume=function(e){return e/=100,A(this._playerInstance.setVolume(e)).then((function(e){return 100*e}))},t.prototype.getVolume=function(){return A(this._playerInstance.getVolume()).then((function(e){return 100*e}))},Object.defineProperty(t.prototype,"isPlaying",{get:function(){return this._isPlaying},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){var t=this;return A(this._playerInstance.unload()).then((function(){return t._playerInstance.off("play"),t._playerInstance.off("pause"),t._playerInstance.off("ended"),e.prototype.destroy.call(t)}))},t}(s),S=n(69463),P="video-ready",x=function(e){function t(t){var n=t.id,i=t.player,r=e.call(this,n)||this;return r._player=i,r}return(0,o.C6)(t,e),Object.defineProperty(t.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),t}(function(){function e(e){this._id=e}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}()),T=function(){function e(){this._initPromise=null,this._subject=new S.B}return e.prototype.destroy=function(){this._subject.unsubscribe()},e.prototype._load=function(){var e=this;return this._initPromise||(this._initPromise=new Promise((function(t,n){return Promise.all([u.A.getAsync("Authentication.OAuth.client_facebook.AppId"),u.A.getAsync("socialMedia.facebook.apiVersion")]).then((function(n){var i=(0,o.zs)(n,2),r=i[0],a=i[1];window.fbAsyncInit=function(){window.FB.init({appId:r,xfbml:!1,version:"v".concat(a)}),window.FB.Event.subscribe("xfbml.ready",(function(t){"video"===t.type&&e._subject.next(new x({id:t.id,player:t.instance}))})),t(window.FB)}})).then((function(){return(0,y.R)("https://connect.facebook.net/en_US/sdk.js")})).catch((function(e){return n(new Error("Couldn't initialize Facebook SDK (".concat(e,").")))}))}))),this._initPromise},e.prototype._getSubscription=function(e){var t=e.type,n=e.id,i=e.eventHandler,r=e.errorHandler,o=void 0===r?null:r;if(t===P)return this._subject.pipe((0,v.p)((function(e){return e instanceof x&&(null==n||e.id===n)}))).subscribe(i,o);throw new Error("Unsupport subscription for type '".concat(t,"'."))},e.prototype.onceEvent=function(e){var t=this,n=e.type,i=e.id;return new Promise((function(e,r){var o=t._getSubscription({type:n,id:i,eventHandler:function(t){o.unsubscribe(),e(t)},errorHandler:function(e){return r(e)}})}))},e.prototype.renderSocialPluginTag=function(e){var t=this;return new Promise((function(n,i){t._load().then((function(t){return t.XFBML.parse(e,(function(){return n()}))})).catch(i)}))},e}(),k=new T,E=n(20680),M={play:"startedPlaying",pause:"paused",stop:"finishedPlaying"},D=function(e){function t(t){var n=e.call(this,t)||this;return n._playerInstance=null,n._playerVolumeBeforeMute=100,n._isPlaying=!1,n._eventHandlers=[],n}return(0,o.C6)(t,e),t.prototype.setup=function(t){var n=this;e.prototype.setup.call(this,t);var i,r,o=(i=t.videoId,k.onceEvent({type:P,id:i})).then((function(e){var t=e.player;n._playerInstance=t,n._eventHandlers.push(t.subscribe("startedPlaying",(function(){n._isPlaying=!0})),t.subscribe("paused",(function(){n._isPlaying=!1})),t.subscribe("finishedPlaying",(function(){n._isPlaying=!1})),t.subscribe("error",(function(e){n._isPlaying=!1,(0,E.logError)(e)})))})).catch(E.logError);return Promise.all([o,(r=this.element,k.renderSocialPluginTag(r))]).then((function(){return n}))},t.prototype.play=function(){return this._playerInstance.play(),this.unmute()},t.prototype.stop=function(){return this.pause()},t.prototype.pause=function(){return this._playerInstance.pause(),Promise.resolve()},t.prototype.mute=function(){var e=this;return this.getVolume().then((function(t){e._playerVolumeBeforeMute=t,e._playerInstance.mute()}))},t.prototype.unmute=function(){return this._playerInstance.unmute(),this.setVolume(this._playerVolumeBeforeMute)},t.prototype.on=function(t,n){var i=this;e.prototype.on.call(this,t,n),t.split(" ").forEach((function(e){var t=M[e];t&&i._eventHandlers.push(i._playerInstance.subscribe(t,n))}))},t.prototype.setVolume=function(e){return this._playerInstance.setVolume(e/100),Promise.resolve(e)},t.prototype.getVolume=function(){return Promise.resolve(100*this._playerInstance.getVolume())},Object.defineProperty(t.prototype,"isPlaying",{get:function(){return this._isPlaying},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){return this._eventHandlers.forEach((function(e){return e.release()})),this._eventHandlers.length=0,this._playerInstance=null,e.prototype.destroy.call(this)},t}(s),N=D,L=function(){function e(){}return e.prototype.create=function(e){var t=void 0===e?{}:e,n=t.player,i=t.element;if((0,r.gP)(n))throw new TypeError("Player value is expected to be a non-empty string");switch(n){case"spotx":return new m(i);case"youtube":return new C(i);case"vimeo":return new I(i);case"facebook":return new N(i);default:throw new TypeError("Player ".concat(n," is not supported"))}},e}(),V=new L},1943:function(e,t,n){"use strict";var i=n(29583);n(96723),i.nd.actions={},t.A=i.nd.actions},97433:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i=function(e,t,n){var i,r,o,a={},s=t.documentElement,u="modernizr",c=t.createElement(u),l=c.style,d=t.createElement("input"),h=":)",f={}.toString,p=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",g=m.split(" "),v=m.toLowerCase().split(" "),y="http://www.w3.org/2000/svg",_={},b={},w={},C=[],A=C.slice,I=function(e,n,i,r){var o,a,c,l,d=t.createElement("div"),h=t.body,f=h||t.createElement("body");if(parseInt(i,10))for(;i--;)(c=t.createElement("div")).id=r?r[i]:u+(i+1),d.appendChild(c);return o=["",'"].join(""),d.id=u,(h?d:f).innerHTML+=o,f.appendChild(d),h||(f.style.background="",f.style.overflow="hidden",l=s.style.overflow,s.style.overflow="hidden",s.appendChild(f)),a=n(d,e),h?d.parentNode.removeChild(d):(f.parentNode.removeChild(f),s.style.overflow=l),!!a},S=(o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e,i){i=i||t.createElement(o[e]||"div");var r=(e="on"+e)in i;return r||(i.setAttribute||(i=t.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(e,""),r=T(i[e],"function"),T(i[e],"undefined")||(i[e]=n),i.removeAttribute(e))),i=null,r}),P={}.hasOwnProperty;function x(e){l.cssText=e}function T(e,t){return typeof e===t}function k(e,t){return!!~(""+e).indexOf(t)}function E(e,t){for(var i in e){var r=e[i];if(!k(r,"-")&&l[r]!==n)return"pfx"!=t||r}return!1}function M(e,t,i){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+g.join(r+" ")+r).split(" ");return T(t,"string")||T(t,"undefined")?E(o,t):function(e,t,i){for(var r in e){var o=t[e[r]];if(o!==n)return!1===i?e[r]:T(o,"function")?o.bind(i||t):o}return!1}(o=(e+" "+v.join(r+" ")+r).split(" "),t,i)}for(var D in r=T(P,"undefined")||T(P.call,"undefined")?function(e,t){return t in e&&T(e.constructor.prototype[t],"undefined")}:function(e,t){return P.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=A.call(arguments,1),i=function(){if(this instanceof i){var r=function(){};r.prototype=t.prototype;var o=new r,a=t.apply(o,n.concat(A.call(arguments)));return Object(a)===a?a:o}return t.apply(e,n.concat(A.call(arguments)))};return i}),_.flexbox=function(){return M("flexWrap")},_.flexboxlegacy=function(){return M("boxDirection")},_.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},_.canvastext=function(){return!(!a.canvas||!T(t.createElement("canvas").getContext("2d").fillText,"function"))},_.webgl=function(){return!!e.WebGLRenderingContext},_.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:I(["@media (",p.join("touch-enabled),("),u,")","{#modernizr{top:9px;position:absolute}}"].join(""),(function(e){n=9===e.offsetTop})),n},_.geolocation=function(){return"geolocation"in navigator},_.postmessage=function(){return!!e.postMessage},_.websqldatabase=function(){return!!e.openDatabase},_.indexedDB=function(){return!!M("indexedDB",e)},_.hashchange=function(){return S("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},_.history=function(){return!(!e.history||!history.pushState)},_.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},_.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},_.rgba=function(){return x("background-color:rgba(150,255,150,.5)"),k(l.backgroundColor,"rgba")},_.hsla=function(){return x("background-color:hsla(120,40%,100%,.5)"),k(l.backgroundColor,"rgba")||k(l.backgroundColor,"hsla")},_.multiplebgs=function(){return x("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(l.background)},_.backgroundsize=function(){return M("backgroundSize")},_.borderimage=function(){return M("borderImage")},_.borderradius=function(){return M("borderRadius")},_.boxshadow=function(){return M("boxShadow")},_.textshadow=function(){return""===t.createElement("div").style.textShadow},_.opacity=function(){return"opacity:.55",x(p.join("opacity:.55;")+""),/^0.55$/.test(l.opacity)},_.cssanimations=function(){return M("animationName")},_.csscolumns=function(){return M("columnCount")},_.cssgradients=function(){var e="background-image:";return x((e+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+e)+p.join("linear-gradient(left top,#9f9, white);"+e)).slice(0,-17)),k(l.backgroundImage,"gradient")},_.cssreflections=function(){return M("boxReflect")},_.csstransforms=function(){return!!M("transform")},_.csstransforms3d=function(){var e=!!M("perspective");return e&&"webkitPerspective"in s.style&&I("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",(function(t,n){e=9===t.offsetLeft&&3===t.offsetHeight})),e},_.csstransitions=function(){return M("transition")},_.fontface=function(){var e;return I('@font-face {font-family:"font";src:url("https://")}',(function(n,i){var r=t.getElementById("smodernizr"),o=r.sheet||r.styleSheet,a=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"";e=/src/i.test(a)&&0===a.indexOf(i.split(" ")[0])})),e},_.generatedcontent=function(){var e;return I(["#",u,"{font:0/0 a}#",u,':after{content:"',h,'";visibility:hidden;font:3px/1 a}'].join(""),(function(t){e=t.offsetHeight>=3})),e},_.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(e){}return n},_.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return n},_.localstorage=function(){try{return localStorage.setItem(u,u),localStorage.removeItem(u),!0}catch(e){return!1}},_.sessionstorage=function(){try{return sessionStorage.setItem(u,u),sessionStorage.removeItem(u),!0}catch(e){return!1}},_.webworkers=function(){return!!e.Worker},_.applicationcache=function(){return!!e.applicationCache},_.svg=function(){return!!t.createElementNS&&!!t.createElementNS(y,"svg").createSVGRect},_.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML=" ",(e.firstChild&&e.firstChild.namespaceURI)==y},_.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(f.call(t.createElementNS(y,"animate")))},_.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(f.call(t.createElementNS(y,"clipPath")))},_)r(_,D)&&(i=D.toLowerCase(),a[i]=_[D](),C.push((a[i]?"":"no-")+i));return a.input||(a.input=function(n){for(var i=0,r=n.length;i",n="hidden"in e,i=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,i=!0}}();var p={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==r.shivCSS,supportsUnknownElements:i,shivMethods:!1!==r.shivMethods,type:"default",shivDocument:f,createElement:h,createDocumentFragment:function(e,n){if(e||(e=t),i)return e.createDocumentFragment();for(var r=(n=n||d(e)).frag.cloneNode(),o=0,a=l(),s=a.length;o=0,s=n.indexOf(r)>=0,a===s?[3,8]:[4,(0,x.yJ)(A(void 0,e))]):[3,9];case 7:return d.sent(),[2];case 8:return i=function(e,t,n){var i,r;return(0,o.YH)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,7,9,13]),[4,(0,x.yJ)(b({cidsToChange:[e]},n))];case 1:return a.sent(),i=void 0,t?[5,(0,o.Ju)((0,D.p)(O,e))]:[3,3];case 2:return i=a.sent(),[3,5];case 3:return[5,(0,o.Ju)((0,D.p)(j,e))];case 4:i=a.sent(),a.label=5;case 5:return[4,(0,x.yJ)(w({favorites:i},n))];case 6:return a.sent(),[3,13];case 7:return r=a.sent(),(0,N.z)(r),[4,(0,x.yJ)(C({cidsToChange:[e]},n))];case 8:return a.sent(),[3,13];case 9:return[4,(0,x.KW)()];case 10:return a.sent()?[4,(0,x.yJ)(C({cidsToChange:[e]},n))]:[3,12];case 11:a.sent(),a.label=12;case 12:return[7];case 13:return[2]}}))}(r,!s,e),[3,10];case 9:u=e.payload.cids,c=u.filter((function(e){return t.indexOf(e)<0})),l=t.filter((function(e){return u.indexOf(e)>=0})),i=function(e){var t,n,i,r,a;return(0,o.YH)(this,(function(s){switch(s.label){case 0:return t=e.payload.cids,[5,(0,o.Ju)((0,T.N)(q))];case 1:n=s.sent(),i=(0,o.fX)((0,o.fX)([],(0,o.zs)(t.filter((function(e){return n.indexOf(e)<0}))),!1),(0,o.zs)(n.filter((function(e){return t.indexOf(e)<0}))),!1),s.label=2;case 2:return s.trys.push([2,6,8,12]),[4,(0,x.yJ)(b({cidsToChange:i},e))];case 3:return s.sent(),[5,(0,o.Ju)((0,D.p)(U,t))];case 4:return r=s.sent(),[4,(0,x.yJ)(w({favorites:r},e))];case 5:return s.sent(),[3,12];case 6:return a=s.sent(),(0,N.z)(a),[4,(0,x.yJ)(C({cidsToChange:i},e))];case 7:return s.sent(),[3,12];case 8:return[4,(0,x.KW)()];case 9:return s.sent()?[4,(0,x.yJ)(C({cidsToChange:i},e))]:[3,11];case 10:s.sent(),s.label=11;case 11:return[7];case 12:return[2]}}))}((0,o.Cl)((0,o.Cl)({},e),{payload:(0,o.Cl)((0,o.Cl)({},e.payload),{cids:(0,o.fX)((0,o.fX)([],(0,o.zs)(c),!1),(0,o.zs)(l),!1)})})),d.label=10;case 10:return[4,(0,x.O4)({task:i,cancel:(0,x.s)(E.YC)})];case 11:return d.sent().cancel?[4,(0,x.ZT)()]:[3,13];case 12:d.sent(),d.label=13;case 13:return[2]}}))}function ne(e){var t,n,i,r,a,s;return(0,o.YH)(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),t=(0,o.Ju)(e),n=t.next(),u.label=1;case 1:return n.done?[3,4]:(i=n.value,[4,(0,x.yJ)(A(void 0,i))]);case 2:u.sent(),u.label=3;case 3:return n=t.next(),[3,1];case 4:return[3,7];case 5:return r=u.sent(),a={error:r},[3,7];case 6:try{n&&!n.done&&(s=t.return)&&s.call(t)}finally{if(a)throw a.error}return[7];case 7:return[2]}}))}function ie(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,x.yJ)(I())];case 1:return e.sent(),[2]}}))}function re(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,x.yJ)(l())];case 1:return e.sent(),[4,(0,x.yJ)(d())];case 2:return e.sent(),[2]}}))}var oe=n(31555),ae=n(5059),se=n(85387);function ue(e){var t=(0,se.wA)(),n=(0,se.d4)(q).indexOf(e)>=0,i=(0,se.d4)(K)(e),r=(0,ae.useCallback)((function(){i||t(y({cid:e}))}),[e,i,t]);return{favorite:n,favoriting:i,toggle:r}}var ce=n(22496),le=n(97556),de=n(99558),he=n(85738),fe=function(e){var t=e.favorite,n=e.loading,i=e.onlyIcon,r=e.toggle,o=(0,ce.f)().localizedString,a="pri pri-waitable ".concat(t&&!n?"pri-favoring":"pri-favor");return(0,oe.jsxs)(le.o,{className:(0,he.W)("addtofavor is-waitable",n&&"is-waiting",i&&"btn-icon"),onClick:r,children:[(0,oe.jsx)("span",{className:a,children:n&&(0,oe.jsx)(de.y,{type:"small"})}),(0,oe.jsx)("span",{className:"title",children:o("Menu.Item.AddToFavorites")})]})},pe=function(e){var t=e.cid,n=e.onlyIcon,i=void 0!==n&&n,r=ue(t),o=r.favorite,a=r.favoriting,s=r.toggle;return(0,oe.jsx)(fe,{favorite:o,loading:a,onlyIcon:i,toggle:s})},me=n(61577),ge=function(e){var t=e.cid,n=e.pervasive,i=(0,ce.f)().localizedString,r=ue(t),o=r.favorite,a=r.favoriting,s=r.toggle,u="pri pri-waitable ".concat(o&&!a?"pri-favoring":"pri-favor"),c=i(o?"Menu.Item.AddedToFavorites":"Menu.Item.AddToFavorites"),l=n?(0,he.W)("btn btn-action btn-followpub is-waitable",a&&"is-waiting"):(0,he.W)("btn-icon has-bg has-label-right is-waitable",o&&"is-favorite",a&&"is-waiting is-disabled"),d=n?"title":"btn-title";return(0,oe.jsxs)(me.n,{className:l,onClick:s,"aria-label":c,children:[(0,oe.jsx)("span",{className:u,"aria-hidden":"true",children:a&&(0,oe.jsx)(de.y,{type:"small"})}),(0,oe.jsx)("span",{className:d,children:c})]})},ve=n(74637),ye=function(e){var t=e.cid,n=e.onClick,i=(0,ce.f)().localizedString,r=ue(t),o=r.favorite,a=r.toggle,s=(0,ae.useCallback)((function(){a(),null==n||n(t)}),[a,t,n]),u=i(o?"Menu.Item.AddedToFavorites":"Menu.Item.AddToFavorites"),c=o?"pri pri-favoring":"pri pri-favor";return(0,oe.jsx)(ve.k,{text:u,icon:c,className:"addtofavor",onClick:s})},_e=n(51413),be=n(9064),we=(0,ae.forwardRef)((function(e,t){var n=e.cid,i=e.mode,r=e.onClick,o=(0,se.wA)(),a=(0,ce.f)().localizedString,s=ue(n),u=s.favorite,c=s.toggle,l=(0,ae.useCallback)((function(){o((0,_e.df)({category:"Menus",action:"IssueContextMenu",label:u?"remove-from-favorites":"add-to-favorites"})),c(),null==r||r(n)}),[u,c,n,r,o]),d=u?"pri pri-favoring":"pri pri-favor",h=a("Menu.Item.AddToFavorites");return(0,oe.jsx)(be.D,{ref:t,mode:i,text:h,icon:d,className:"addtofavor",onClick:l})})),Ce=n(3491),Ae=function(e){var t=e.onlyIcon;return(0,oe.jsx)(fe,{favorite:!1,loading:!1,onlyIcon:t,toggle:Ce})},Ie=n(61445),Se=function(e){var t=e.children;return(0,se.d4)(Ie.N$)?null:t};i.bX.addFeature(r,P,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,x.IJ)(d,ee)];case 1:return e.sent(),[4,(0,k.S)([y,_],te,ne)];case 2:return e.sent(),[4,(0,x.IJ)(w,ie)];case 3:return e.sent(),[4,(0,x.jP)([E.YC,E.hl],re)];case 4:return e.sent(),[2]}}))}))},10358:function(e,t,n){"use strict";n.d(t,{He:function(){return g},QG:function(){return f},TW:function(){return v},eV:function(){return d},pJ:function(){return m},tr:function(){return h},xG:function(){return p}});var i=n(58932),r=n(45221),o=n(90185),a=n(53308),s=n(45235),u="v1/accounts/current/avatar",c="crop",l=80,d={small:{width:20,height:20},normal:{width:22,height:22},medium:{width:28,height:28},large:{width:44,height:44},huge:{width:48,height:48},giant:{width:120,height:120},ginormous:{width:160,height:160}};function h(e){var t=e.nickname,n=e.imageId,i=e.size,r=e.fallbackAvatarUrl,o=e.style,a=n?v(n,i):r?g(r,i):null;if(a){var u=i?{widthAttr:'width="'.concat(i.width,'"'),heightAttr:'height="'.concat(i.height,'"')}:{},c=u.widthAttr,l=void 0===c?"":c,d=u.heightAttr,h=void 0===d?"":d,f=o?'style="'.concat(o,'"'):"";return' ')}return t?"".concat((0,s.gs)(t)," "):""}function f(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,a.lx)(u)];case 1:return[2,e.sent().imageId]}}))}))}function p(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,a.zA)(u,"",JSON.stringify({imageId:e}),{contentType:"application/json; charset=utf-8"})];case 1:return[2,t.sent()]}}))}))}function m(){return(0,a.wu)(u)}function g(e,t){if(!e)return e;"http"!==e.substring(0,4)&&(e=window.basePath+e);var n=new r.A(e);return(null==t?void 0:t.width)&&t.width>0&&n.addQueryParam("width",t.width),(null==t?void 0:t.height)&&t.height>0&&n.addQueryParam("height",t.height),n.addQueryParam("fitMode",c),n.addQueryParam("quality",l),n.toString()}function v(e,t){return(0,o.V)(e,(0,i.Cl)((0,i.Cl)({},null!=t?t:{}),{fitMode:c,quality:l}))}},81832:function(e,t,n){"use strict";n.d(t,{C:function(){return _}});var i=n(31555),r=n(5059),o=n(85387),a=n(27602),s=n(22496),u=n(99529),c=n(61577),l=n(33005),d=n(98274),h=n(51747),f=n(58932),p=n(79223),m=n(11793),g={AND:"Search.And.Condition.Placeholder",OR:"Search.OR.Condition.Placeholder",NOT:"Search.NOT.Condition.Placeholder",NEAR:"Search.NEAR.Condition.Placeholder"},v=(0,f.fX)([],(0,f.zs)(Array(10)),!1).map((function(e,t){return{id:t.toString(),label:t.toString()}})),y=function(e){var t,n=e.condition,a=e.index,u=(0,o.wA)(),c=(0,s.f)().localizedString,d=(0,r.useMemo)((function(){return Object.keys(g).map((function(e){return{id:e,label:c(e)}}))}),[c]),h=-1!==["NEAR"].indexOf(n.type),f=(0,r.useCallback)((function(e){var t=e;u((0,l._s)({index:a,condition:{type:t,param:n.param||0,words:n.words}}))}),[u,a,n]),y=(0,r.useCallback)((function(e){var t=Number(e);u((0,l._s)({index:a,condition:{type:n.type,param:t,words:n.words}}))}),[u,a,n]),_=(0,r.useCallback)((function(e){u((0,l._s)({index:a,condition:{type:n.type,param:n.param,words:e}}))}),[u,a,n]),b=(0,r.useCallback)((function(){return u((0,l.mU)({index:a}))}),[u,a]);return(0,i.jsxs)(m.v,{children:[(0,i.jsx)(p.F,{type:"dropdown",options:d,selected:n.type,placeholder:c("Dropdown.Placeholder.PleaseSelect"),onChange:f}),h&&(0,i.jsx)(p.F,{type:"dropdown",options:v,selected:(null===(t=n.param)||void 0===t?void 0:t.toString())||v[0].id,onChange:y}),(0,i.jsx)(p.F,{type:"inputfield",placeholder:c(g[n.type]),value:n.words,onChange:_,onReset:function(){return _("")}}),(0,i.jsx)(p.F,{type:"button",placeholder:c("AdvancedSearch.RemoveFields"),onReset:b})]})},_=function(e){var t=e.booleanSearchMode,n=(0,o.wA)(),f=(0,s.f)().localizedString,p=(0,o.d4)(d.zW),m=p.length<10,g=(0,r.useCallback)((function(){m&&n((0,l.fq)())}),[n,m]),v=(0,r.useCallback)((function(){return n((0,u.sl)())}),[n]),_=(0,r.useCallback)((function(){return n((0,a.bv)({link:"https://care.pressreader.com/hc/en-us/articles/21185820571156-Boolean-Search-Essentials-Operators-and-Strategies",openNewWindow:!0}))}),[n]);return(0,i.jsxs)("div",{className:"form form-control-group advsearch-control-group",children:[(0,i.jsx)(h.$,{onSearch:e.onSearch,locationFilterEnabled:t,children:t&&p.map((function(e,t){return(0,i.jsx)(y,{condition:e,index:t},"cond_".concat(t))}))}),t&&(0,i.jsxs)("div",{className:"advsearch-buttons-container",children:[(0,i.jsxs)("div",{className:"advsearch-buttons-group advsearch-buttons-left",children:[(0,i.jsxs)(c.n,{className:"btn btn-add ".concat(m?"":"is-disabled"),onClick:g,children:[(0,i.jsx)("span",{className:"pri pri-pluscircle","aria-hidden":"true"}),(0,i.jsx)("span",{className:"btn-title",children:f("AdvancedSearch.AddFields")})]}),(0,i.jsxs)(c.n,{className:"btn btn-nolabel btn-help",onClick:_,children:[(0,i.jsx)("span",{className:"pri pri-help","aria-hidden":"true"}),(0,i.jsx)("span",{className:"btn-title",children:f("AdvancedSearch.Help")})]})]}),(0,i.jsx)("div",{className:"advsearch-buttons-group advsearch-buttons-right",children:(0,i.jsx)(c.n,{className:"btn btn-clear",onClick:v,children:(0,i.jsx)("span",{className:"btn-title",children:f("AdvancedSearch.CancelTag")})})})]})]})}},79223:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var i=n(31555),r=n(5059),o=n(2881),a=n(13384),s=n(9774),u=n(75517),c=n(85738),l=(0,r.forwardRef)((function(e,t){var n;return(0,i.jsxs)("div",{className:(0,c.W)("advsearch-col col-".concat(e.type),"dropdown"===e.type&&"col-dropdown","inputfield"===e.type&&"col--fit"),children:["inputfield"===e.type&&(0,i.jsx)(s.N,{type:"text",ref:t,label:(0,a.p3)("Dialogs.AdvancedSearch.InputField"),placeholder:e.placeholder,required:e.required,value:e.value||"",validators:e.required?["required"]:void 0,onChange:function(t,n){return e.onChange?e.onChange(n):o.l},onReset:e.onReset,onSubmit:e.onSubmit,hasReset:!0,isSearch:e.isSearch}),"dropdown"===e.type&&(0,i.jsx)(u.a,{options:e.options||[],selected:e.selected,onChange:null!==(n=e.onChange)&&void 0!==n?n:o.l,emptyOptionLabel:e.placeholder}),"button"===e.type&&(0,i.jsxs)("button",{className:"btn-icon btn-delete",title:e.placeholder,onClick:e.onReset,children:[(0,i.jsx)("span",{className:"pri pri-deletecircle","aria-hidden":"true"}),(0,i.jsx)("span",{className:"btn-title",children:e.placeholder})]})]})}));l.displayName="AdvancedSearchColumn"},11793:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var i=n(31555),r=function(e){var t;return(0,i.jsx)("div",{className:"form-item advsearch-row ".concat(null!==(t=e.className)&&void 0!==t?t:""),children:e.children})}},51747:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var i=n(31555),r=n(5059),o=n(85387),a=n(13384),s=n(82666),u=n(99529),c=n(79223),l=n(11793),d=function(e){var t=e.locationFilterEnabled,n=e.onSearch,d=e.children,h=(0,o.wA)(),f=(0,o.d4)(s.J9),p=(0,o.d4)(s.bg),m=(0,o.d4)(s.BF),g=(0,r.useRef)(null),v=(0,r.useCallback)((function(){return h((0,u.$2)({term:"",skipQuickSearch:!0}))}),[h]),y=(0,r.useCallback)((function(e){return h((0,u.$2)({term:e,skipQuickSearch:!0}))}),[h]),_=(0,r.useCallback)((function(e){return h((0,u.rm)({location:e}))}),[h]);return(0,r.useEffect)((function(){var e;null===(e=g.current)||void 0===e||e.focus()}),[g]),(0,i.jsx)("div",{className:"form form-control-group advsearch-control-group",children:(0,i.jsx)("fieldset",{className:"form-group advsearch-fields",children:(0,i.jsxs)("div",{className:"form-group-content",children:[(0,i.jsxs)(l.v,{className:"row-search",children:[(0,i.jsx)(c.F,{type:"inputfield",ref:g,isSearch:!0,placeholder:(0,a.p3)("Dialogs.AdvancedSearch.Placeholder"),value:f,onSubmit:n,onReset:v,onChange:y}),t&&(0,i.jsx)(c.F,{type:"dropdown",onChange:_,selected:p,options:m})]}),d]})})})}},71921:function(e,t,n){"use strict";n.d(t,{J:function(){return r},p:function(){return i}});var i="@pressreader.advancedsearch",r="".concat(i,".main-dialog")},33005:function(e,t,n){"use strict";n.d(t,{$A:function(){return _},I3:function(){return s},Kr:function(){return h},Ni:function(){return c},_s:function(){return v},e:function(){return f},fq:function(){return m},gV:function(){return l},gj:function(){return p},jT:function(){return a},mU:function(){return g},uM:function(){return d},uh:function(){return u},xe:function(){return y}});var i=n(89103),r=n(71921),o="".concat(r.p,"/common/"),a=(0,i.lQ)("".concat(o,"open_advanced_search")),s=(0,i.lQ)("".concat(o,"set_initial_selections")),u=(0,i.lQ)("".concat(o,"select_languages")),c=(0,i.lQ)("".concat(o,"language_selection_changed")),l=(0,i.lQ)("".concat(o,"select_publications")),d=(0,i.lQ)("".concat(o,"publications_selection_changed")),h=(0,i.lQ)("".concat(o,"author_changed")),f=(0,i.lQ)("".concat(o,"select_dates")),p=(0,i.lQ)("".concat(o,"date_range_selection_changed")),m=(0,i.lQ)("".concat(o,"add_search_condition")),g=(0,i.lQ)("".concat(o,"remove_search_condition")),v=(0,i.lQ)("".concat(o,"change_search_condition")),y=(0,i.lQ)("".concat(o,"change_search_conditions")),_=(0,i.lQ)("".concat(o,"search_conditions_changed"))},98274:function(e,t,n){"use strict";n.d(t,{$8:function(){return s},Kp:function(){return c},NX:function(){return a},ST:function(){return u},zW:function(){return l}});var i=n(29978),r=n(71921),o=function(e){return e[r.p]},a=(0,i.Mz)(o,(function(e){return e.selectedLanguages})),s=(0,i.Mz)(o,(function(e){return e.selectedPublications})),u=(0,i.Mz)(o,(function(e){return e.author})),c=(0,i.Mz)(o,(function(e){return{searchDate:e.searchDate,dateRange:e.dateRange}})),l=(0,i.Mz)(o,(function(e){return e.conditions}))},59148:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var i=n(29978),r=n(78698),o=n(28809),a=n(80835),s=(0,i.Mz)(r.nw,o._t,(function(e,t){var n;return e!==a.Z.Pervasive&&(null!==(n=t("features.search.advanced.enabled"))&&void 0!==n?n:e!==a.Z.Voyager)})),u=(0,i.Mz)(o._t,(function(e){var t;return null===(t=e("features.search.advanced.optionsEnabled"))||void 0===t||t})),c=(0,i.Mz)([r.uF,s,u],(function(e,t,n){var i=t&&!e,r=n&&t;return{advancedSearchEnabled:t&&(n||i),filtersEnabled:i,booleanSearchEnabled:r,advancedSearchInPopup:!e,hasAdvancedSearchSwitch:r&&e}}))},66435:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var i="@pressreader/analytics_core"},54387:function(e,t,n){"use strict";n.d(t,{Ew:function(){return l},Fo:function(){return u},Gf:function(){return s},Ll:function(){return c},RN:function(){return d},Rl:function(){return a},U8:function(){return h}});var i=n(89103),r=n(66435),o="".concat(r.p,"/common/"),a=((0,i.lQ)("".concat(o,"analytics_auth_requested")),(0,i.lQ)("".concat(o,"analytics_user_changed")),(0,i.lQ)("".concat(o,"analytics_page_navigated"))),s=(0,i.lQ)("".concat(o,"analytics_page_navigated_legacy")),u=(0,i.lQ)("".concat(o,"analytics_replicaview_interacted")),c=(0,i.lQ)("".concat(o,"analytics_payment")),l=((0,i.lQ)("".concat(o,"analytics_call_to_action_invoked")),(0,i.lQ)("".concat(o,"analytics_universal_content_clicked"))),d=(0,i.lQ)("".concat(o,"update_tracking_id")),h=(0,i.lQ)("".concat(o,"set_active_reading_frame"))},51413:function(e,t,n){"use strict";n.d(t,{RR:function(){return c},df:function(){return a},dh:function(){return u},xB:function(){return s}});var i=n(89103),r=n(66435),o="".concat(r.p,"/generic/"),a=(0,i.lQ)("".concat(o,"event")),s=((0,i.lQ)("".concat(o,"exception")),(0,i.lQ)("".concat(o,"pageview"))),u=(0,i.lQ)("".concat(o,"timing")),c=(0,i.lQ)("".concat(o,"transaction"))},23304:function(e,t,n){"use strict";n.d(t,{f:function(){return s},r:function(){return a}});var i=n(97433);function r(){try{return"1"===window.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||window.external&&"msTrackingProtectionEnabled"in window.external&&window.external.msTrackingProtectionEnabled()}catch(e){}return!1}function o(){try{document.cookie="cookietest=1";var e=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}}function a(e){var t,n;return{name:null!==(t=e.browser.name)&&void 0!==t?t:"",version:null!==(n=e.browser.version)&&void 0!==n?n:"",DNT:r(),touchSupported:i.b.touch,cookiesEnabled:o(),userAgent:window.navigator.userAgent}}function s(e){return{name:e.name,version:e.version,acceptLanguage:e.acceptLanguage,DNT:e.DNT,touchSupported:e.touchSupported,cookiesEnabled:e.cookiesEnabled,userAgent:e.userAgent}}},37618:function(e,t,n){"use strict";function i(e){var t,n;return{type:e.device.type,model:null!==(t=e.device.model)&&void 0!==t?t:"",vendor:null!==(n=e.device.vendor)&&void 0!==n?n:"",colorDepth:window.screen.colorDepth,screenSize:"".concat(window.screen.width,"x").concat(window.screen.height),devicePixelRatio:window.devicePixelRatio}}function r(e){return{type:e.type,model:e.model,vendor:e.vendor,screenSize:e.screenSize,colorDepth:e.colorDepth,devicePixelRatio:e.devicePixelRatio}}n.d(t,{L:function(){return r},l:function(){return i}})},98874:function(e,t,n){"use strict";function i(e){var t,n;return{name:null!==(t=e.os.name)&&void 0!==t?t:"",version:null!==(n=e.os.version)&&void 0!==n?n:""}}function r(e){return{name:e.name,version:e.version}}n.d(t,{J:function(){return i},f:function(){return r}})},47944:function(e,t,n){"use strict";function i(e){return{id:e.id,referer:e.referrer}}n.d(t,{F:function(){return i}})},88967:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var i=n(89247);function r(e){return"".concat(window.location.origin).concat((0,i.jM)(e))}},36106:function(e,t,n){"use strict";var i;n.d(t,{V:function(){return i}}),function(e){e[e.Catalog=0]="Catalog",e[e.WelcomeMessage=1]="WelcomeMessage"}(i||(i={}))},45840:function(e,t,n){"use strict";n.d(t,{c:function(){return u},p:function(){return c}});var i=n(88960),r="analytics:sessionid",o="analytics:sessionid:time";function a(){try{sessionStorage.setItem(o,(new Date).getTime().toString())}catch(e){}}function s(e){try{sessionStorage.setItem(r,e)}catch(e){}}var u=function(){var e;if(window.sessionStorage){var t=sessionStorage.getItem(o),n=t?new Date(Number(t)):new Date;(new Date).getTime()-n.getTime()>12e5?e=(0,i.A)():(e=sessionStorage.getItem(r))||(e=(0,i.A)()),s(e),a()}else e=(0,i.A)();return e},c=function(){var e=(0,i.A)();return window.sessionStorage&&(s(e),a()),e}},1614:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var i=n(58932),r=n(58735),o=n(32512);function a(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,r.authorized()];case 1:return e=t.sent(),[4,(0,o.Z9)(e)];case 2:return[2,t.sent().config]}}))}))}},49151:function(e,t,n){"use strict";n.d(t,{Q:function(){return s}});var i=n(58932),r=n(15397),o=n(53308),a=n(75125);function s(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,s,u,c,l;return(0,i.YH)(this,(function(d){switch(d.label){case 0:return[4,(0,r.kq)("res")];case 1:if(!(t=d.sent()))throw new Error("Resources and templates are not found.");return n=t.id,s=t.locale,u=t.ts,c={id:n,locale:s,ts:u,version:2},(null==e?void 0:e.resourceNames)&&(c.resourceNames=e.resourceNames),(null==e?void 0:e.templateNames)&&(c.templateNames=e.templateNames),(null==e?void 0:e.locale)&&(c.locale=e.locale),[4,(0,o.lx)("res",c)];case 2:return l=d.sent(),[2,{resources:!1===(null==e?void 0:e.includeStatic)?l.res:(0,i.Cl)((0,i.Cl)({},a.i),l.res),templates:l.templates}]}}))}))}},75125:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var i={"Important.Title.aa":"Important ({0})","Important.Title.ab":"Important ({0})","Important.Title.ae":"Important ({0})","Important.Title.af":"Important ({0})","Important.Title.ak":"Important ({0})","Important.Title.am":"Important ({0})","Important.Title.an":"Important ({0})","Important.Title.ar":"Important ({0})","Important.Title.as":"Important ({0})","Important.Title.av":"Important ({0})","Important.Title.ay":"Important ({0})","Important.Title.az":"Important ({0})","Important.Title.ba":"Important ({0})","Important.Title.be":"Important ({0})","Important.Title.bg":"Important ({0})","Important.Title.bh":"Important ({0})","Important.Title.bi":"Important ({0})","Important.Title.bm":"Important ({0})","Important.Title.bn":"Important ({0})","Important.Title.bo":"Important ({0})","Important.Title.br":"Important ({0})","Important.Title.bs":"Important ({0})","Important.Title.ca":"Important ({0})","Important.Title.ce":"Important ({0})","Important.Title.ch":"Important ({0})","Important.Title.co":"Important ({0})","Important.Title.cr":"Important ({0})","Important.Title.cs":"Important ({0})","Important.Title.cu":"Important ({0})","Important.Title.cv":"Important ({0})","Important.Title.cy":"Important ({0})","Important.Title.da":"Important ({0})","Important.Title.de":"Important ({0})","Important.Title.dv":"Important ({0})","Important.Title.dz":"Important ({0})","Important.Title.ee":"Important ({0})","Important.Title.el":"Important ({0})","Important.Title.en":"Important ({0})","Important.Title.eo":"Important ({0})","Important.Title.es":"Important ({0})","Important.Title.et":"Important ({0})","Important.Title.eu":"Important ({0})","Important.Title.fa":"Important ({0})","Important.Title.ff":"Important ({0})","Important.Title.fi":"Important ({0})","Important.Title.fj":"Important ({0})","Important.Title.fo":"Important ({0})","Important.Title.fr":"Important ({0})","Important.Title.fy":"Important ({0})","Important.Title.ga":"Important ({0})","Important.Title.gd":"Important ({0})","Important.Title.gl":"Important ({0})","Important.Title.gn":"Important ({0})","Important.Title.gu":"Important ({0})","Important.Title.gv":"Important ({0})","Important.Title.ha":"Important ({0})","Important.Title.he":"Important ({0})","Important.Title.hi":"Important ({0})","Important.Title.ho":"Important ({0})","Important.Title.hr":"Important ({0})","Important.Title.ht":"Important ({0})","Important.Title.hu":"Important ({0})","Important.Title.hy":"Important ({0})","Important.Title.hz":"Important ({0})","Important.Title.ia":"Important ({0})","Important.Title.id":"Important ({0})","Important.Title.ie":"Important ({0})","Important.Title.ig":"Important ({0})","Important.Title.ii":"Important ({0})","Important.Title.ik":"Important ({0})","Important.Title.io":"Important ({0})","Important.Title.is":"Important ({0})","Important.Title.it":"Important ({0})","Important.Title.iu":"Important ({0})","Important.Title.ja":"Important ({0})","Important.Title.jv":"Important ({0})","Important.Title.jw":"Important ({0})","Important.Title.ka":"Important ({0})","Important.Title.kg":"Important ({0})","Important.Title.ki":"Important ({0})","Important.Title.kj":"Important ({0})","Important.Title.kk":"Important ({0})","Important.Title.kl":"Important ({0})","Important.Title.km":"Important ({0})","Important.Title.kn":"Important ({0})","Important.Title.ko":"Important ({0})","Important.Title.kr":"Important ({0})","Important.Title.ks":"Important ({0})","Important.Title.ku":"Important ({0})","Important.Title.kv":"Important ({0})","Important.Title.kw":"Important ({0})","Important.Title.ky":"Important ({0})","Important.Title.la":"Important ({0})","Important.Title.lb":"Important ({0})","Important.Title.lg":"Important ({0})","Important.Title.li":"Important ({0})","Important.Title.ln":"Important ({0})","Important.Title.lo":"Important ({0})","Important.Title.lt":"Important ({0})","Important.Title.lu":"Important ({0})","Important.Title.lv":"Important ({0})","Important.Title.mg":"Important ({0})","Important.Title.mh":"Important ({0})","Important.Title.mi":"Important ({0})","Important.Title.mk":"Important ({0})","Important.Title.ml":"Important ({0})","Important.Title.mn":"Important ({0})","Important.Title.mo":"Important ({0})","Important.Title.mr":"Important ({0})","Important.Title.ms":"Important ({0})","Important.Title.mt":"Important ({0})","Important.Title.my":"Important ({0})","Important.Title.na":"Important ({0})","Important.Title.nb":"Important ({0})","Important.Title.nd":"Important ({0})","Important.Title.ne":"Important ({0})","Important.Title.ng":"Important ({0})","Important.Title.nl":"Important ({0})","Important.Title.nn":"Important ({0})","Important.Title.no":"Important ({0})","Important.Title.nr":"Important ({0})","Important.Title.nv":"Important ({0})","Important.Title.ny":"Important ({0})","Important.Title.oc":"Important ({0})","Important.Title.oj":"Important ({0})","Important.Title.om":"Important ({0})","Important.Title.or":"Important ({0})","Important.Title.os":"Important ({0})","Important.Title.pa":"Important ({0})","Important.Title.pi":"Important ({0})","Important.Title.pl":"Important ({0})","Important.Title.ps":"Important ({0})","Important.Title.pt":"Important ({0})","Important.Title.qu":"Important ({0})","Important.Title.rm":"Important ({0})","Important.Title.rn":"Important ({0})","Important.Title.ro":"Important ({0})","Important.Title.ru":"Important ({0})","Important.Title.rw":"Important ({0})","Important.Title.ry":"Important ({0})","Important.Title.sa":"Important ({0})","Important.Title.sc":"Important ({0})","Important.Title.sd":"Important ({0})","Important.Title.se":"Important ({0})","Important.Title.sg":"Important ({0})","Important.Title.sh":"Important ({0})","Important.Title.si":"Important ({0})","Important.Title.sk":"Important ({0})","Important.Title.sl":"Important ({0})","Important.Title.sm":"Important ({0})","Important.Title.sn":"Important ({0})","Important.Title.so":"Important ({0})","Important.Title.sq":"Important ({0})","Important.Title.sr":"Important ({0})","Important.Title.ss":"Important ({0})","Important.Title.st":"Important ({0})","Important.Title.su":"Important ({0})","Important.Title.sv":"Important ({0})","Important.Title.sw":"Important ({0})","Important.Title.ta":"Important ({0})","Important.Title.te":"Important ({0})","Important.Title.tg":"Important ({0})","Important.Title.th":"Important ({0})","Important.Title.ti":"Important ({0})","Important.Title.tk":"Important ({0})","Important.Title.tl":"Important ({0})","Important.Title.tn":"Important ({0})","Important.Title.to":"Important ({0})","Important.Title.tr":"Important ({0})","Important.Title.ts":"Important ({0})","Important.Title.tt":"Important ({0})","Important.Title.tw":"Important ({0})","Important.Title.ty":"Important ({0})","Important.Title.ua":"Important ({0})","Important.Title.ug":"Important ({0})","Important.Title.uk":"Important ({0})","Important.Title.ur":"Important ({0})","Important.Title.uz":"Important ({0})","Important.Title.ve":"Important ({0})","Important.Title.vi":"Important ({0})","Important.Title.vo":"Important ({0})","Important.Title.wa":"Important ({0})","Important.Title.wo":"Important ({0})","Important.Title.xh":"Important ({0})","Important.Title.yi":"Important ({0})","Important.Title.yo":"Important ({0})","Important.Title.za":"Important ({0})","Important.Title.zh":"Important ({0})","Important.Title.zu":"Important ({0})","Countries.af-na":"Namibia","Countries.af-za":"South Africa","Countries.ar-_i":"International","Countries.ar-ae":"UAE","Countries.ar-au":"Australia","Countries.ar-bh":"Bahrain","Countries.ar-eg":"Egypt","Countries.ar-gb":"International","Countries.ar-in":"India","Countries.ar-jo":"Jordan","Countries.ar-kw":"Kuwait","Countries.ar-lb":"Lebanon","Countries.ar-om":"Oman","Countries.ar-ps":"Palestine","Countries.ar-qa":"Qatar","Countries.ar-ru":"Russia","Countries.ar-sa":"Saudi Arabia","Countries.ar-sd":"Sudan","Countries.be-by":"Belarus","Countries.bg-bg":"Bulgaria","Countries.bg-ru":"Bulgaria","Countries.bs-ba":"Bosnia and Herzegovina","Countries.ca-es":"Spain","Countries.cs-cz":"Czech Republic","Countries.da-dk":"Denmark","Countries.de-at":"Austria","Countries.de-ch":"Switzerland","Countries.de-de":"Deutschland","Countries.de-es":"Spain","Countries.de-li":"Liechtenstein","Countries.de-lu":"Luxembourg","Countries.de-ru":"Germany","Countries.de-th":"Thailand","Countries.de-us":"USA","Countries.el-cy":"Cyprus","Countries.el-gr":"Îλλάδα","Countries.el-ru":"Greece","Countries.en-_i":"Austria","Countries.en-ae":"UAE","Countries.en-at":"Austria","Countries.en-au":"Australia","Countries.en-az":"Azerbaijan","Countries.en-bb":"Barbados","Countries.en-be":"Belgium","Countries.en-bg":"Austria","Countries.en-bh":"Bahrain","Countries.en-br":"Brazil","Countries.en-by":"Belarus","Countries.en-ca":"Canada","Countries.en-ch":"Russia","Countries.en-cn":"China","Countries.en-cy":"Cyprus","Countries.en-cz":"Austria","Countries.en-de":"Australia","Countries.en-dk":"Austria","Countries.en-eg":"Egypt","Countries.en-es":"Spain","Countries.en-fi":"Austria","Countries.en-fr":"Australia","Countries.en-gb":"UK","Countries.en-gr":"Austria","Countries.en-gy":"Guyana","Countries.en-hk":"Australia","Countries.en-hr":"Croatia","Countries.en-hu":"Austria","Countries.en-id":"Austria","Countries.en-ie":"Ireland","Countries.en-il":"Israel","Countries.en-in":"India","Countries.en-iq":"Iraq","Countries.en-is":"Austria","Countries.en-it":"Australia","Countries.en-jm":"Jamaica","Countries.en-jp":"Austria","Countries.en-ke":"Kenya","Countries.en-kh":"Cambodia","Countries.en-kr":"Australia","Countries.en-kw":"Kuwait","Countries.en-ky":"Cayman Islands","Countries.en-kz":"Kazakhstan","Countries.en-lb":"Lebanon","Countries.en-li":"Austria","Countries.en-lk":"Sri Lanka","Countries.en-lu":"Austria","Countries.en-me":"Austria","Countries.en-mk":"Macedonia","Countries.en-mt":"Australia","Countries.en-mu":"Mauritius","Countries.en-my":"Malaysia","Countries.en-ng":"Nigeria","Countries.en-nl":"Netherlands","Countries.en-no":"Austria","Countries.en-np":"Nepal","Countries.en-nz":"New Zealand","Countries.en-om":"Oman","Countries.en-ph":"Philippines","Countries.en-pk":"Pakistan","Countries.en-pl":"Austria","Countries.en-pt":"Austria","Countries.en-qa":"Austria","Countries.en-ro":"Austria","Countries.en-rs":"Austria","Countries.en-ru":"Russia","Countries.en-sa":"Saudi Arabia","Countries.en-se":"Austria","Countries.en-sg":"Austria","Countries.en-sk":"Austria","Countries.en-th":"Thailand","Countries.en-tr":"Turkey","Countries.en-tw":"Taiwan","Countries.en-ua":"Austria","Countries.en-ug":"Uganda","Countries.en-us":"USA","Countries.en-vi":"USA","Countries.en-vn":"Viet Nam","Countries.en-za":"South Africa","Countries.en-zm":"Zambia","Countries.en-zw":"UK","Countries.es-ar":"Argentina","Countries.es-cl":"Chile","Countries.es-co":"Colombia","Countries.es-cr":"Costa Rica","Countries.es-do":"Dominican Republic","Countries.es-ec":"Ecuador","Countries.es-es":"España","Countries.es-gt":"Guatemala","Countries.es-mx":"Mexico","Countries.es-pa":"Panama","Countries.es-pr":"Puerto Rico","Countries.es-py":"Paraguay","Countries.es-ru":"Russia","Countries.es-sv":"El Salvador","Countries.es-us":"USA","Countries.es-ve":"Venezuela","Countries.et-ee":"Estonia","Countries.fa-ir":"Iran","Countries.fi-ee":"Estonia","Countries.fi-fi":"Finland","Countries.fr-be":"Belgium","Countries.fr-ca":"Canada","Countries.fr-ch":"Switzerland","Countries.fr-dz":"Algeria","Countries.fr-eg":"Egypt","Countries.fr-fr":" France","Countries.fr-ht":"Haiti","Countries.fr-il":"Israel","Countries.fr-kh":"Cambodia","Countries.fr-lb":"Lebanon","Countries.fr-lu":"Luxembourg","Countries.fr-mu":"Mauritius","Countries.fr-nc":"New Caledonia","Countries.fr-ru":"Russia","Countries.fr-sn":"Senegal","Countries.fr-us":"Haiti","Countries.fr-vn":"Viet Nam","Countries.ga-ie":"Ireland","Countries.gu-in":"India","Countries.he-il":"Israel","Countries.hi-in":"India","Countries.hi-ru":"India","Countries.hr-ae":"Croatia","Countries.hr-hr":"Croatia","Countries.hu-hu":"Hungary","Countries.hu-ro":"Romania","Countries.hu-sk":"Slovakia","Countries.hy-am":"Armenia","Countries.id-id":"Indonesia","Countries.is-is":"Iceland","Countries.it-ca":"Canada","Countries.it-ch":"Switzerland","Countries.it-it":"Italia","Countries.it-ru":"Italy","Countries.ja-jp":"Japan","Countries.ja-ru":"Japan","Countries.kn-in":"India","Countries.ko-kr":"Korea (South)","Countries.ko-ru":"Korea (South)","Countries.ko-us":"USA","Countries.lt-lt":"Lithuania","Countries.lv-lv":"Latvia","Countries.mk-mk":"Macedonia","Countries.ml-in":"India","Countries.mr-in":"India","Countries.ms-my":"Malaysia","Countries.ne-np":"Nepal","Countries.nl-be":"Belgium","Countries.nl-nl":"Nederland","Countries.nl-sr":"Suriname","Countries.no-no":"Norway","Countries.pa-gb":"UK","Countries.pl-_i":"International","Countries.pl-pl":"Polska","Countries.pt-ao":"Angola","Countries.pt-br":"Brazil","Countries.pt-pt":"Portugal","Countries.pt-ru":"Brazil","Countries.ro-ro":"Romania","Countries.ru-_i":"Germany","Countries.ru-am":"Armenia","Countries.ru-by":"Belarus","Countries.ru-de":"Germany","Countries.ru-ee":"Estonia","Countries.ru-fi":"Finland","Countries.ru-fr":"France","Countries.ru-gb":"Germany","Countries.ru-ru":"РоÑÑиÑ","Countries.ru-tj":"Tajikistan","Countries.ru-ua":"Russia","Countries.ru-us":"USA","Countries.ru-uz":"Uzbekistan","Countries.si-lk":"Sri Lanka","Countries.sk-sk":"Slovakia","Countries.sl-si":"Slovenia","Countries.sq-al":"Albania","Countries.sq-ks":"Kosovo","Countries.sr-me":"Montenegro","Countries.sr-rs":"Serbia","Countries.sr-ru":"Russia","Countries.sv-ee":"Estonia","Countries.sv-fi":"Finland","Countries.sv-se":"Sweden","Countries.ta-in":"India","Countries.te-in":"India","Countries.th-th":"Thailand","Countries.tl-ph":"Philippines","Countries.tr-cy":"Northern Cyprus","Countries.tr-tr":"Turkey","Countries.uk-ua":"Ukraine","Countries.vi-vn":"Viet Nam","Countries.yi-us":"USA","Countries.zh-ca":"Canada","Countries.zh-cn":"China","Countries.zh-hk":"China","Countries.zh-my":"Malaysia","Countries.zh-ru":"China","Countries.zh-sg":"Singapore","Countries.zh-tw":"Taiwan","Countries.zh-us":"USA","Countries.zu-za":"South Africa"}},14497:function(e,t,n){"use strict";n.d(t,{Dz:function(){return s},Wb:function(){return a},oW:function(){return r},pW:function(){return i},xg:function(){return o}});var i="@pressreader/appcore",r="targetPlatform",o=365,a="facelift",s=365},38695:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var i=n(13981),r=n(78698);function o(){var e="Cookiebot",t=document.getElementById(e);if(!t){var n=(0,i.Lt)(r.zw);(t=document.createElement("script")).id=e,t.type="text/javascript",t.async=!0,t.src="https://consent.cookiebot.com/uc.js",t.setAttribute("data-cbid","06b589d2-9594-4323-af24-0b61ef0a0f2d"),t.setAttribute("data-culture",n.split("-")[0]),document.head.insertBefore(t,document.head.firstChild)}}},51972:function(e,t,n){"use strict";n.d(t,{Ts:function(){return v}});var i=n(58932),r=n(13981),o=n(28809),a=n(90050),s=n(30212),u=n(9141),c=n(45504),l=n(58735),d=n(1614),h=n(49151),f=n(38695),p=n(78698),m=n(57749),g=!1;function v(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n,v,y;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return g?[2]:[4,l.initAuthTickets()];case 1:i.sent(),l.bind("tokenUpdated",(function(){(0,r.JD)((0,o.fj)())})),g=!0,(0,a.s)(d.z),(0,u.n)(h.Q),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,(0,r.Cs)((0,o.fj)(),o.r4,o.Cl)];case 3:return i.sent(),[3,5];case 4:return e=i.sent(),(0,s.z)("Cannot load config.",e),[2];case 5:return i.trys.push([5,7,,8]),[4,(0,r.Cs)((0,c.Un)(),c.wy,c.zK)];case 6:return i.sent(),[3,8];case 7:return t=i.sent(),(0,s.z)("Cannot load resources.",t),[2];case 8:return(0,m.eN)(),n=(0,m.zH)(),v=(0,m.aC)(),y=(0,m.YG)(),(0,f.u)(),(0,r.JD)((0,p.ge)({targetPlatform:n,faceliftEnabled:v,experimentalEnabled:y})),[2]}}))}))}},78698:function(e,t,n){"use strict";n.d(t,{Ph:function(){return f},n1:function(){return p},ge:function(){return d},X6:function(){return R},Ky:function(){return N},LG:function(){return M},uF:function(){return D},q3:function(){return L},zw:function(){return G},LE:function(){return q},gt:function(){return X},hq:function(){return ee},D6:function(){return ie},XT:function(){return H},PM:function(){return V},R1:function(){return J},ZF:function(){return E},nw:function(){return k},Rt:function(){return Z},x2:function(){return $},Gm:function(){return h},Dx:function(){return m}});var i,r=n(13981),o=n(14497),a=n(58932),s=n(89103),u=n(80835),c=n(10235),l="".concat(o.pW,"/"),d=(0,s.lQ)("".concat(l,"core-module-load-done")),h=(0,s.lQ)("".concat(l,"start-app")),f=(0,s.lQ)("".concat(l,"app_started")),p=(0,s.lQ)("".concat(l,"change-target-platform")),m=(0,s.lQ)("".concat(l,"toggle-facelift-ui")),g=(0,s.lQ)("".concat(l,"legacy-platform-changed")),v={targetPlatform:u.Z.Web,faceliftEnabled:!1,experimentalEnabled:!1,legacyPlatform:c.O.Web,appStarted:!1},y=(0,s.vy)(v,(0,s.po)(d,(function(e,t){return(0,a.Cl)((0,a.Cl)({},e),{targetPlatform:t.payload.targetPlatform,faceliftEnabled:t.payload.faceliftEnabled,experimentalEnabled:t.payload.experimentalEnabled})})),(0,s.po)(f,(function(e,t){return(0,a.Cl)((0,a.Cl)({},e),{appStarted:!0})})),(0,s.po)(g,(function(e,t){var n=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{legacyPlatform:n.platform})}))),_=n(44834),b=n(89247),w=n(17950),C=n(29978),A=n(28809),I=n(30212);!function(e){e.Pressreader="pr",e.BrandedEditions="be"}(i||(i={}));var S=[i.Pressreader,i.BrandedEditions],P=n(57749),x=function(e){return e[o.pW]},T=(0,C.Mz)(A._t,(function(e){return e("features.app.target.platform",u.Z.Web)})),k=(0,C.Mz)(x,(function(e){return e.targetPlatform})),E=(0,C.Mz)(k,A._t,(function(e,t){var n=(t("features.app.platforms.supported","")||"").split(",").filter(P.Jo);return n.indexOf(e)<0&&n.push(e),n})),M=(0,C.Mz)(A._t,(function(e){return e("features.app.facelift.allowed",!1)})),D=(0,C.Mz)(x,(function(e){return e.faceliftEnabled})),N=(0,C.Mz)(x,(function(e){return e.experimentalEnabled})),L=(0,C.Mz)(k,A._t,(function(e,t){return[u.Z.Pervasive,u.Z.Voyager].indexOf(e)<0&&t("features.app.topbar.giftcard.enabled",!1)})),V=(0,C.Mz)(A._t,(function(e){return e("features.app.purchase.flow.enabled",!1)})),R=(0,C.Mz)(A._t,(function(e){var t=e("features.app.group.type",i.Pressreader);return S.indexOf(t)<0&&(0,I.z)("Invalid app group type ".concat(t)),t})),H=(0,C.Mz)(x,(function(e){return e.legacyPlatform})),F=(0,C.Mz)(x,(function(e){return e.appStarted}));function B(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,_.Lt)(F)];case 1:return e.sent()?[2]:[4,(0,_.yJ)(f())];case 2:return e.sent(),[2]}}))}function z(e){var t,n,i,r;return(0,a.YH)(this,(function(a){switch(a.label){case 0:return t=e.payload,n=t.newTargetPlatform,i=t.keepLocation,[4,(0,_.Lt)(T)];case 1:return r=a.sent(),[4,(0,_.Lt)(E)];case 2:return a.sent().indexOf(n)<0||(n===r?w.set(o.oW,"",{path:(0,b.DT)(),expiresInDays:-1}):w.set(o.oW,n,{path:(0,b.DT)(),expiresInDays:o.xg}),i?window.location.assign((0,b.Ti)()):window.location.assign((0,b.jM)(""))),[2]}}))}function O(e){var t;return(0,a.YH)(this,(function(n){switch(n.label){case 0:return t=e.payload.enable,[4,(0,_.Lt)(D)];case 1:return n.sent()===t||(t?w.set(o.Wb,"true",{path:(0,b.DT)(),expiresInDays:o.Dz}):w.set(o.Wb,"",{path:(0,b.DT)(),expiresInDays:-1}),window.location.assign((0,b.jM)(""))),[2]}}))}var j=n(1791),U=n(23131);function W(e){return{code:e.id,originalTitle:e.original,title:e.title,slug:e.slug,locale:e.locale,hrefLangs:e.hrefLangs}}var Y="en-us",X=(0,C.Mz)(A._t,(function(e){return e(U.F2,!0)})),q=(0,C.Mz)(A._t,(function(e){return e(U.dN,[]).map(W)})),G=(0,C.Mz)(A._t,(function(e){return e(U.mo,"en")})),K=(0,C.Mz)(A._t,(function(e){return e(U.iO,[])})),J=(0,C.Mz)(K,(function(e){var t;return null!==(t=e[0])&&void 0!==t?t:Y})),Q=(0,C.Mz)(A._t,(function(e){return function(e){if(!e)return null;var t=Object.keys(e.languages);return{enabled:e.enable,languages:t.map((function(t){return function(e,t){return{code:e,title:t.name,originalTitle:t.name,slug:e}}(t,e.languages[t])})),languagePairs:t.reduce((function(t,n){return t[n]=e.languages[n].pairs,t}),{})}}(e("translation"))})),Z=(0,C.Mz)(Q,(function(e){return j((function(t){if(!e)return[];var n=e.languages.find((function(e){return e.code===t}));if(!n)return[];var i=e.languagePairs[t];if(!i)return[];var r=i.map((function(t){return e.languages.find((function(e){return e.code===t}))})).filter((function(e){return!!e}));return(0,a.fX)([n],r,!0)}))})),$=(0,C.Mz)(A._t,(function(e){return e(U.NV)})),ee=(0,C.Mz)(A._t,(function(e){return e(U.mo,"en")===Y})),te=n(13384),ne=(0,r.bb)("language"),ie=(0,C.Mz)(A._t,ne,(function(e,t){var n,i=e("translation.languages");if(!i)return"";var r=i[t];return r?(0,te.AF)("Languages.".concat(t),null!==(n=r.name)&&void 0!==n?n:""):""}));r.bX.addFeature(o.pW,y,(function(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,_.jP)(h,B)];case 1:return e.sent(),[4,(0,_.jP)(p,z)];case 2:return e.sent(),[4,(0,_.jP)(m,O)];case 3:return e.sent(),[2]}}))}))},10235:function(e,t,n){"use strict";var i;n.d(t,{O:function(){return i}}),function(e){e[e.Web=0]="Web",e[e.iOS=1]="iOS",e[e.Android=2]="Android",e[e.MacOS=3]="MacOS",e[e.Win8=4]="Win8"}(i||(i={}))},57749:function(e,t,n){"use strict";n.d(t,{Jo:function(){return l},YG:function(){return p},aC:function(){return f},eN:function(){return d},zH:function(){return h}});var i=n(15397),r=n(89247),o=n(80835),a=n(17950),s=n(14497),u=[o.Z.Web,o.Z.Pervasive,o.Z.Voyager],c="accessibility=true";function l(e){return!!e&&u.indexOf(e)>=0}function d(){var e=(0,i.Ct)("features.app.target.platform",o.Z.Web),t=(0,i.Ct)("features.app.platforms.supported",e).split(",").filter(l);(window.location.search||"").toLowerCase().indexOf(c)>=0&&t.indexOf(o.Z.Pervasive)>=0&&a.set(s.oW,o.Z.Pervasive,{path:(0,r.DT)(),expiresInDays:s.xg})}function h(){var e=(0,i.Ct)("features.app.target.platform",o.Z.Web),t=a.get(s.oW,null);return e!==t&&l(t)&&(0,i.Ct)("features.app.platforms.supported",e).split(",").filter(l).indexOf(t)>=0&&(e=t),e}function f(){return!!(0,i.Ct)("features.app.facelift.enabled",!1)||!!(0,i.Ct)("features.beta.facelift.enabled",!1)||!!(0,i.Ct)("features.app.facelift.allowed",!1)&&"true"===a.get(s.Wb,null)}function p(){return(0,i.Ct)("features.app.facelift.allowed",!1)}},13981:function(e,t,n){"use strict";n.d(t,{rB:function(){return b},bb:function(){return _},JD:function(){return f},oM:function(){return m},Cs:function(){return v},Lt:function(){return p},M_:function(){return h},bX:function(){return d},B1:function(){return y},Ow:function(){return g}});var i=n(58932),r=n(44834),o=n(69463),a=n(3503),s=n(44229),u=n(71241),c=n(45164),l=n(74525),d=new(function(){function e(){var e,t;this._persistent=((e={})[l.N.Local]=(0,l.H)("pr.store",l.N.Local),e[l.N.Session]=(0,l.H)("pr.store",l.N.Session),e),this._storages=((t={})[l.N.Local]={},t[l.N.Session]={},t),this._reducers={none:function(e){return void 0===e&&(e=0),e}};var n=(0,s.HY)(this._reducers);this._sagaMiddlware=(0,u.Ay)({sagaMonitor:void 0}),this._sagas={};var i=s.Zz;this._store=(0,s.y$)(n,{},i((0,s.Tw)(this._sagaMiddlware))),this._store.subscribe(c(this._onStateChanged.bind(this),1e3))}return Object.defineProperty(e.prototype,"store",{get:function(){return this._store},enumerable:!1,configurable:!0}),e.prototype.addFeature=function(e,t,n){t&&(this._reducers[e]=t,this._onReducersChanged()),n&&(this._sagas[e]=this._sagaMiddlware.run(n))},e.prototype.addStoreStorage=function(e,t,n){this._storages[e][t]=n,this._persistent[e].hydrate(t,n)},e.prototype.removeFeature=function(e){e in this._reducers&&(delete this._reducers[e],this._onReducersChanged()),e in this._storages&&delete this._storages[e],e in this._sagas&&((0,r.ZT)(this._sagas[e]),delete this._sagas[e])},e.prototype.runSaga=function(e){return this._sagaMiddlware.run("function"==typeof e?e:function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,e];case 1:return[2,t.sent()]}}))})},e.prototype._onReducersChanged=function(){this._store.replaceReducer((0,s.HY)(this._reducers))},e.prototype._onStateChanged=function(){var e=this._store.getState();e&&(this._persistent[l.N.Local].persist(e,this._storages[l.N.Local]),this._persistent[l.N.Session].persist(e,this._storages[l.N.Session]))},e}()),h=d.store,f=h.dispatch.bind(h),p=function(e){return e(h.getState())};function m(e){var t=new o.B,n=p(e);return h.subscribe((function(){var i=p(e);n!==i&&(n=i,t.next(i))})),t.asObservable()}function g(e,t){return void 0===t&&(t=1e3),new Promise((function(n){d.runSaga((function(){var o,a,s;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,r.O4)({wait:(0,r.s)("".concat(e)),timeout:(0,r.cb)(t)})];case 1:return o=i.sent(),n(null!==(s=null===(a=o.wait)||void 0===a?void 0:a.payload)&&void 0!==s?s:null),[2]}}))}))}))}function v(e,t,n){for(var o=[],s=3;s=0,u=t(null!==(r=null==o?void 0:o.id)&&void 0!==r?r:"");return s&&!(null==u?void 0:u.sound)}}));i.bX.addFeature(r.p,o.F,(function(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,s.Zy)(Se)];case 1:return e.sent(),[4,(0,s.Zy)(St)];case 2:return e.sent(),[4,(0,s.Zy)(Be)];case 3:return e.sent(),[4,(0,s.Zy)(Me)];case 4:return e.sent(),[4,(0,s.Zy)(m)];case 5:return e.sent(),[2]}}))}))},74542:function(e,t,n){"use strict";n.d(t,{G:function(){return _},F:function(){return y}});var i=n(44229),r=n(72995),o=n(58932),a=n(4291),s=n(74010),u=n(89103),c=n(43566),l=n(27121);function d(e,t){var n;return null!==(n=e.articles[t])&&void 0!==n?n:{article:null,loading:s.U.None,loadingTags:[]}}var h=(0,u.vy)({articles:{}},(0,u.po)(c.YC,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{articles:{}})})),(0,u.po)(l.GV,(function(e,t){var n,i=t.payload,r=i.articleId,a=i.loadingTags;return(0,o.Cl)((0,o.Cl)({},e),{articles:(0,o.Cl)((0,o.Cl)({},e.articles),(n={},n[r]=(0,o.Cl)((0,o.Cl)({},d(e,r)),{loading:s.U.Pending,loadingTags:a}),n))})})),(0,u.po)(l.Bq,(function(e,t){var n,i,r,a=t.payload.article,u=a.id,c=null===(i=e.articles[u])||void 0===i?void 0:i.article;return null===a.issue&&0===a.paragraphs.length&&c&&c.issue&&(null===(r=c.paragraphs)||void 0===r?void 0:r.length)>0?e:(0,o.Cl)((0,o.Cl)({},e),{articles:(0,o.Cl)((0,o.Cl)({},e.articles),(n={},n[u]={article:a,loading:s.U.Done,loadingTags:[]},n))})})),(0,u.po)(l.YJ,(function(e,t){var n,i=t.payload.articleId;return(0,o.Cl)((0,o.Cl)({},e),{articles:(0,o.Cl)((0,o.Cl)({},e.articles),(n={},n[i]=(0,o.Cl)((0,o.Cl)({},d(e,i)),{loading:s.U.Failed,loadingTags:[]}),n))})})),(0,u.po)(l.Y3,(function(e,t){var n,i=t.payload,r=i.articleId,a=i.article,s=d(e,r),u=s.article;return u?(0,o.Cl)((0,o.Cl)({},e),{articles:(0,o.Cl)((0,o.Cl)({},e.articles),(n={},n[r]=(0,o.Cl)((0,o.Cl)({},s),{article:(0,o.Cl)((0,o.Cl)({},u),a)}),n))}):e})),(0,u.po)(l.rh,(function(e,t){var n,i,r=t.payload.articleUpdates,a={},s=!1;try{for(var u=(0,o.Ju)(r),c=u.next();!c.done;c=u.next()){var l=c.value,h=l.articleId,f=d(e,h).article;f&&(a[h]=(0,o.Cl)((0,o.Cl)({},e.articles[h]),{article:(0,o.Cl)((0,o.Cl)({},f),l)}),s=!0)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return s?(0,o.Cl)((0,o.Cl)({},e),{articles:(0,o.Cl)((0,o.Cl)({},e.articles),a)}):e})),(0,u.po)(l.TO,(function(e,t){var n,i,r,u,c=t.payload.articles,l=(0,o.Cl)({},e.articles),d=!1;try{for(var h=(0,o.Ju)(c),f=h.next();!f.done;f=h.next()){var p=f.value,m=p.id;a(p,null===(r=l[m])||void 0===r?void 0:r.article)||(d=!0,l[m]={article:(0,o.Cl)((0,o.Cl)({},null===(u=l[m])||void 0===u?void 0:u.article),p),loading:s.U.Done,loadingTags:[]})}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}return d?(0,o.Cl)((0,o.Cl)({},e),{articles:l}):e}))),f=n(57559);function p(e,t){return t in e.bookmarks?e.bookmarks[t]:{status:s.U.None,bookmarks:[]}}var m=(0,u.vy)({bookmarks:{},providers:{},previews:{}},(0,u.po)(f.kS,(function(e,t){var n,i=t.payload,r=(0,o.Cl)((0,o.Cl)({},p(e,i.articleId)),{status:s.U.Pending});return(0,o.Cl)((0,o.Cl)({},e),{bookmarks:(0,o.Cl)((0,o.Cl)({},e.bookmarks),(n={},n[i.articleId]=r,n))})})),(0,u.po)(f.Tr,(function(e,t){var n,i=t.payload,r=(0,o.Cl)((0,o.Cl)({},p(e,i.articleId)),{status:s.U.Done,bookmarks:i.bookmarks});return(0,o.Cl)((0,o.Cl)({},e),{bookmarks:(0,o.Cl)((0,o.Cl)({},e.bookmarks),(n={},n[i.articleId]=r,n))})})),(0,u.po)(f.Uf,(function(e,t){var n,i=t.payload,r=(0,o.Cl)((0,o.Cl)({},p(e,i.articleId)),{status:s.U.Failed});return(0,o.Cl)((0,o.Cl)({},e),{bookmarks:(0,o.Cl)((0,o.Cl)({},e.bookmarks),(n={},n[i.articleId]=r,n))})})),(0,u.po)(c.YC,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{previews:{},providers:{}})})),(0,u.po)(f.DE,(function(e,t){var n,i,r=t.payload,a=r.articleId;return(0,o.Cl)((0,o.Cl)({},e),{previews:(0,o.Cl)((0,o.Cl)({},e.previews),(n={},n[a]=r.preview,n)),providers:(0,o.Cl)((0,o.Cl)({},e.providers),(i={},i[a]={supported:r.supported,status:s.U.Done},i))})})),(0,u.po)(f.fk,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{bookmarks:{}})}))),g=n(84677),v=(0,u.vy)({articlesSocialMeta:{}},(0,u.po)(g._3,(function(e,t){var n=t.payload.articleSocialMetaUpdates,i=e.articlesSocialMeta,r=!1,a=n.reduce((function(e,t){var n,i,a,s,u=t.articleId,c=t.socialMetadataUpdate,l=e[u],d=(n=l,i=c,a={},s=!1,Number.isInteger(i.commentsCount)&&i.commentsCount!==(null==n?void 0:n.commentsCount)&&(a.commentsCount=i.commentsCount,s=!0),Number.isInteger(i.upVotes)&&i.upVotes!==(null==n?void 0:n.upVotes)&&(a.upVotes=i.upVotes,s=!0),Number.isInteger(i.downVotes)&&i.downVotes!==(null==n?void 0:n.downVotes)&&(a.downVotes=i.downVotes,s=!0),s?(0,o.Cl)((0,o.Cl)({},n),a):n);return d!==l&&(r=!0,e[u]=d),e}),(0,o.Cl)({},i));return r?(0,o.Cl)((0,o.Cl)({},e),{articlesSocialMeta:a}):e}))),y=(0,i.HY)({articles:h,share:m,social:v}),_=function(e){return e[r.p]}},12753:function(e,t,n){"use strict";var i;n.d(t,{m:function(){return i}}),function(e){e.ArticleContextMenu="article.actionmenu",e.ArticleShareContextMenu="article.share.actionmenu",e.ArticlePrintContextMenu="article.print.actionmenu",e.ArticleTranslationContextMenu="article.translation.actionmenu",e.ArticleTocContextMenu="article.toc.actionmenu",e.ArticleSaveToCollectionContextMenu="article.saveToCollection.actionmenu"}(i||(i={}))},88406:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(38053);function r(e){var t=e.id,n=e.primaryArticleId;return n||(0,i.c)(t),n}},38053:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var i=n(30212);function r(e){(0,i.z)(new Error("articlePrimaryIdMissing::Article primary id missing for article id: ".concat(e)))}},75054:function(e,t,n){"use strict";n.d(t,{E9:function(){return A},Gu:function(){return m},LY:function(){return s},Ok:function(){return f},Px:function(){return g},Py:function(){return p},Xd:function(){return x},Y8:function(){return y},Yj:function(){return b},Yl:function(){return S},eF:function(){return a},er:function(){return v},fY:function(){return I},gm:function(){return w},hZ:function(){return C},ng:function(){return h},nq:function(){return u},tk:function(){return k},tl:function(){return _},uF:function(){return T},v2:function(){return P}});var i=n(69463),r=n(25778),o=new i.B,a=o.pipe((0,r.p)((function(e){return"before"===e.type}))),s=o.pipe((0,r.p)((function(e){return"after"===e.type})));function u(e,t){o.next({type:e,authContext:t})}var c=new i.B;function l(e){return function(){for(var t=[],n=0;n0}},61929:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var i=n(58932),r=n(53308),o=n(3915),a=n(61890);function s(){return(0,i.sH)(this,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:if(!(0,a.x)())throw new Error("Cannot get profile for anonymous user.");return[4,(0,r.lx)("social","profiles/current")];case 1:return e=t.sent(),[2,(0,o.C)(e)]}}))}))}},84785:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var i="@pressreader/authentication-core"},18905:function(e,t,n){"use strict";n.d(t,{AC:function(){return m},DL:function(){return T},F:function(){return y},Fz:function(){return p},II:function(){return v},Op:function(){return h},PW:function(){return w},Qm:function(){return x},RX:function(){return g},Tk:function(){return d},Tm:function(){return A},W6:function(){return S},YC:function(){return C},Yg:function(){return i},_o:function(){return _},aT:function(){return l},dp:function(){return c},gx:function(){return I},hl:function(){return s},iC:function(){return u},of:function(){return f},tZ:function(){return P},zp:function(){return b}});var i,r=n(89103),o=n(84785),a="".concat(o.y,"/common/");!function(e){e[e.Unknown=0]="Unknown",e[e.Login=1]="Login",e[e.Logout=2]="Logout",e[e.SignUp=3]="SignUp"}(i||(i={}));var s=(0,r.lQ)("".concat(a,"initialized")),u=(0,r.lQ)("".concat(a,"login")),c=(0,r.lQ)("".concat(a,"login_began")),l=(0,r.lQ)("".concat(a,"login_done")),d=(0,r.lQ)("".concat(a,"login_failed")),h=(0,r.lQ)("".concat(a,"logout_request")),f=(0,r.lQ)("".concat(a,"logout_began")),p=(0,r.lQ)("".concat(a,"logout_done")),m=(0,r.lQ)("".concat(a,"logout_failed")),g=(0,r.lQ)("".concat(a,"signup")),v=(0,r.lQ)("".concat(a,"signup_began")),y=(0,r.lQ)("".concat(a,"signup_done")),_=(0,r.lQ)("".concat(a,"signup_failed")),b=(0,r.lQ)("".concat(a,"reset_auth_state")),w=(0,r.lQ)("".concat(a,"user_change_began")),C=(0,r.lQ)("".concat(a,"user_change_done")),A=(0,r.lQ)("".concat(a,"user_change_failed")),I=(0,r.lQ)("".concat(a,"recover_pwd")),S=(0,r.lQ)("".concat(a,"pwd_recovery_began")),P=(0,r.lQ)("".concat(a,"pwd_recovery_done")),x=(0,r.lQ)("".concat(a,"pwd_recovery_failed")),T=(0,r.lQ)("".concat(a,"user_avatar_changed"))},37654:function(e,t,n){"use strict";n.d(t,{DL:function(){return i.DL},F:function(){return i.F},Fz:function(){return i.Fz},IZ:function(){return r.IZ},Le:function(){return r.Le},Op:function(){return i.Op},PW:function(){return i.PW},RX:function(){return i.RX},Tk:function(){return i.Tk},XX:function(){return r.XX},YC:function(){return i.YC},Yg:function(){return i.Yg},_o:function(){return i._o},aT:function(){return i.aT},hl:function(){return i.hl},iC:function(){return i.iC},zp:function(){return i.zp}});var i=n(18905),r=n(55635)},55635:function(e,t,n){"use strict";n.d(t,{IZ:function(){return a},Le:function(){return u},U_:function(){return f},Vi:function(){return c},XX:function(){return s},_:function(){return h},_Z:function(){return l},rK:function(){return d}});var i=n(89103),r=n(84785),o="".concat(r.y,"/login/"),a=(0,i.lQ)("".concat(o,"authentication_request")),s=(0,i.lQ)("".concat(o,"authentication_done")),u=(0,i.lQ)("".concat(o,"authentication_error")),c=(0,i.lQ)("".concat(o,"resend_verification_email")),l=(0,i.lQ)("".concat(o,"max_number_of_emails_reached")),d=(0,i.lQ)("".concat(o,"check_is_enail_verified")),h=(0,i.lQ)("".concat(o,"registration_status_updated")),f=(0,i.lQ)("".concat(o,"reset_registration_status"))},43566:function(e,t,n){"use strict";n.d(t,{B6:function(){return u.B6},DL:function(){return s.DL},F:function(){return s.F},Fz:function(){return s.Fz},IZ:function(){return s.IZ},Le:function(){return s.Le},Op:function(){return s.Op},PW:function(){return s.PW},RX:function(){return s.RX},Tk:function(){return s.Tk},VL:function(){return u.VL},VW:function(){return u.VW},Vj:function(){return u.Vj},XX:function(){return s.XX},YC:function(){return s.YC},Yg:function(){return s.Yg},_o:function(){return s._o},aT:function(){return s.aT},hl:function(){return s.hl},iC:function(){return s.iC},mB:function(){return u.mB},zp:function(){return s.zp}});var i=n(13981),r=n(84785),o=n(15634),a=n(12175),s=n(37654),u=n(86011);i.bX.addFeature(r.y,o.F,a.f)},15634:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var i=n(58932),r=n(89103),o=n(18905),a=n(55635),s=n(50463),u={initialized:!1,authInProgress:!1,lastAuthError:null,lastRecoveryEmailSentTo:null,user:(0,s.r)(),userSettings:(0,s.e)(),maxNumberOfEmailsReached:!1,emailVerified:!1},c=(0,r.vy)(u,(0,r.po)(o.hl,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{initialized:!0,user:t.payload.user,userSettings:t.payload.userSettings})})),(0,r.po)(o.aT,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{user:t.payload.user,userSettings:t.payload.userSettings})})),(0,r.po)(o.F,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{user:t.payload.user,userSettings:t.payload.userSettings})})),(0,r.po)(o.Fz,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{user:(0,s.r)(),userSettings:(0,s.e)()})})),(0,r.po)(o.PW,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{authInProgress:!0,lastAuthError:null})})),(0,r.po)(o.YC,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{authInProgress:!1,lastAuthError:null})})),(0,r.po)(o.Tm,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{authInProgress:!1})})),(0,r.po)(o.Tk,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{lastAuthError:t.payload.error})})),(0,r.po)(o.AC,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{lastAuthError:t.payload.error})})),(0,r.po)(o._o,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{lastAuthError:t.payload.error})})),(0,r.po)(o.W6,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{lastAuthError:null})})),(0,r.po)(o.tZ,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{lastAuthError:null,lastRecoveryEmailSentTo:t.payload.email})})),(0,r.po)(o.Qm,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{lastAuthError:{message:t.payload.error}})})),(0,r.po)(o.zp,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{lastAuthError:null,lastRecoveryEmailSentTo:null})})),(0,r.po)(o.DL,(function(e,t){return(0,i.Cl)((0,i.Cl)({},e),{user:(0,i.Cl)((0,i.Cl)({},e.user),{avatarImageId:t.payload.imageId})})})),(0,r.po)(a._Z,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{maxNumberOfEmailsReached:!0})})),(0,r.po)(a._,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{emailVerified:!0})})),(0,r.po)(a.U_,(function(e){return(0,i.Cl)((0,i.Cl)({},e),{emailVerified:!1})})))},12175:function(e,t,n){"use strict";n.d(t,{f:function(){return B}});var i=n(58932),r=n(44834),o=n(78698),a=n(70113),s=n(61890),u=n(61929),c=n(71183),l=n(75054),d=n(58323),h=n(52451),f=n(15263),p=n(28809),m=n(30212),g=n(58735),v=n(80835),y=n(40657),_=n(52518),b=n(36439),w=n(18905),C=n(55635),A=n(75842),I=n(50463);function S(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n,r,o,a;return(0,i.YH)(this,(function(u){switch(u.label){case 0:return e=(0,s.x)()?y.Jt("shareEmail",null):Promise.resolve(null),t=_.J(),[4,Promise.all([e,t])];case 1:return n=i.zs.apply(void 0,[u.sent(),2]),r=n[0],o=n[1],a=o.following,[2,{feedSettings:{locales:o.locales,following:a},shareEmail:r}]}}))}))}function P(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n,r,o;return(0,i.YH)(this,(function(a){switch(a.label){case 0:return(0,s.x)()?[4,Promise.all([(0,u.s)(),S()])]:[2,{user:(0,I.r)(),userSettings:(0,I.e)()}];case 1:return e=i.zs.apply(void 0,[a.sent(),2]),t=e[0],n=e[1],0===(r=t.nickname).indexOf("nickname")&&(r=t.displayName||t.nickname),[2,{user:{id:t.profileId||t.profileName,enAccountNumber:t.enAccountNumber,userKey:"".concat(g.userKey()),name:r,displayName:t.displayName,avatarImageId:t.avatarImageId,photo:{url:null!==(o=t.photoUrl)&&void 0!==o?o:""},email:t.email,isAuthenticated:!0,enableServiceEmails:t.enableServiceEmails,enablePromotionalEmails:t.enablePromotionalEmails,refNumber:t.refNumber},userSettings:n}]}}))}))}function x(e){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:if("email"!==(t=e.payload.loginAs).system)return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,r.T1)(c.Jv,{userName:t.email,password:t.password,enableAutologin:t.autologin})];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),(0,m.z)(n),[3,4];case 4:return[2]}}))}function T(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,r.T1)(c.CI)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),(0,m.z)(e),[3,3];case 3:return[2]}}))}function k(e){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:if((t=e.payload.signUpAs).system!==h.K.Email)return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,r.T1)(c.Hh,{emailAddress:t.email,password:t.password,firstName:t.firstName,lastName:t.lastName,enablePromotional:t.emailPromo,enableService:t.emailService,libraryUser:t.libraryUser,returnUrl:t.returnUrl})];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),(0,m.z)(n),[3,4];case 4:return[2]}}))}function E(e){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:t=e.payload.email,i.label=1;case 1:return i.trys.push([1,5,,7]),[4,(0,r.yJ)((0,w.W6)({email:t}))];case 2:return i.sent(),[4,(0,r.T1)(c.Aw,{userName:t})];case 3:return i.sent(),[4,(0,r.yJ)((0,w.tZ)({email:t}))];case 4:return i.sent(),[3,7];case 5:return n=i.sent(),[4,(0,r.yJ)((0,w.Qm)({email:t,error:(0,b.u)(n)}))];case 6:return i.sent(),[3,7];case 7:return[2]}}))}function M(e){return e.login?f.Y.Login:e.logout?f.Y.Logout:e.signup?f.Y.SignUp:f.Y.Unknown}function D(){var e,t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,r.O4)({login:(0,r.s)(w.dp),logout:(0,r.s)(w.of),signup:(0,r.s)(w.II)})];case 1:return e=i.sent(),[4,(0,r.yJ)((0,w.PW)({reason:M(e)}))];case 2:return i.sent(),[4,(0,r.O4)({done:(0,r.O4)({login:(0,r.s)(w.aT),logout:(0,r.s)(w.Fz),signup:(0,r.s)(w.F)}),failed:(0,r.O4)({login:(0,r.s)(w.Tk),logout:(0,r.s)(w.AC),signup:(0,r.s)(w._o)})})];case 3:return(t=i.sent()).done?[4,(0,r.T1)(p.cD)]:[3,6];case 4:return i.sent(),[4,(0,r.yJ)((0,w.YC)({reason:M(t.done)}))];case 5:i.sent(),i.label=6;case 6:return t.failed?(n=t.failed.login||t.failed.logout||t.failed.signup,[4,(0,r.yJ)((0,w.Tm)({reason:M(t.failed),error:n.payload.error}))]):[3,8];case 7:i.sent(),i.label=8;case 8:return[3,0];case 9:return[2]}}))}function N(){var e,t,n,a,s;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,r.Lt)(o.nw)];case 1:return i.sent()!==v.Z.Voyager?[3,3]:(e=(0,I.r)(),t=(0,I.e)(),[4,(0,r.yJ)((0,w.hl)({user:e,userSettings:t}))]);case 2:case 5:return i.sent(),[2];case 3:return[4,(0,r.T1)(P)];case 4:return n=i.sent(),a=n.user,s=n.userSettings,[4,(0,r.yJ)((0,w.hl)({user:a,userSettings:s}))]}}))}function L(e){var t,n,o,a=e.payload,s=a.system,u=a.provider;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.T1)(P)];case 1:return t=e.sent(),n=t.user,o=t.userSettings,[4,(0,r.yJ)((0,w.aT)({user:n,userSettings:o,system:s,provider:u}))];case 2:return e.sent(),[2]}}))}function V(e){var t,n,o,a=e.payload,s=a.sponsorId,u=a.analyticsCtx,c=a.emailValidationRequired,l=a.email;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.T1)(P)];case 1:return t=e.sent(),n=t.user,o=t.userSettings,[4,(0,r.yJ)((0,w.F)({user:n,userSettings:o,emailValidationRequired:!!s||!!c,email:l,analyticsCtx:u}))];case 2:return e.sent(),[2]}}))}function R(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.jP)((0,a.g)(l.gm),(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.yJ)((0,w.dp)({}))];case 1:return e.sent(),[2]}}))}))];case 1:return e.sent(),[4,(0,r.jP)((0,a.g)(l.hZ),L)];case 2:return e.sent(),[4,(0,r.jP)((0,a.g)(l.E9),(function(e){var t=e.payload,n=t.error,o=t.system;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.yJ)((0,w.Tk)({error:n,system:o}))];case 1:return e.sent(),[2]}}))}))];case 3:return e.sent(),[4,(0,r.jP)((0,a.g)(l.fY),(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.yJ)((0,w.II)({}))];case 1:return e.sent(),[2]}}))}))];case 4:return e.sent(),[4,(0,r.jP)((0,a.g)(l.Yl),V)];case 5:return e.sent(),[4,(0,r.jP)((0,a.g)(l.v2),(function(e){var t=e.payload.error;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.yJ)((0,w._o)({error:t}))];case 1:return e.sent(),[2]}}))}))];case 6:return e.sent(),[4,(0,r.jP)((0,a.g)(l.Xd),(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.yJ)((0,w.of)())];case 1:return e.sent(),[2]}}))}))];case 7:return e.sent(),[4,(0,r.jP)((0,a.g)(l.uF),(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.yJ)((0,w.Fz)())];case 1:return e.sent(),[2]}}))}))];case 8:return e.sent(),[4,(0,r.jP)((0,a.g)(l.tk),(function(e){var t=e.payload.error;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,r.yJ)((0,w.AC)({error:t}))];case 1:return e.sent(),[2]}}))}))];case 9:return e.sent(),[2]}}))}function H(e){var t,n,o=e.payload;return(0,i.YH)(this,(function(e){switch(e.label){case 0:t=o.email,e.label=1;case 1:return e.trys.push([1,5,,6]),[4,(0,r.T1)(c.np,t)];case 2:return e.sent()!==d.Bq.MaxNumberOfEmailsReached?[3,4]:[4,(0,r.yJ)((0,C._Z)())];case 3:e.sent(),e.label=4;case 4:return[3,6];case 5:return n=e.sent(),(0,m.z)("Resend email verification error.",n),[3,6];case 6:return[2]}}))}function F(e){var t,n,o,a=e.payload;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return t=a.email,n=a.password,[4,(0,r.Lt)(A.V$)];case 1:if(e.sent())return[2];e.label=2;case 2:return e.trys.push([2,11,,12]),[4,(0,r.T1)(c.iY,t)];case 3:return e.sent()!==d.m7.Registered?[2]:[4,(0,r.yJ)((0,w.iC)({loginAs:{email:t,password:n,system:"email",autologin:!0}}))];case 4:return e.sent(),[4,(0,r.O4)({done:(0,r.s)(w.aT),failed:(0,r.s)(w.Tk)})];case 5:return e.sent().done?[4,(0,r.s)(w.YC)]:[3,8];case 6:return e.sent(),[4,(0,r.yJ)((0,C._)())];case 7:return e.sent(),[3,10];case 8:return[4,(0,r.s)(w.Tm)];case 9:e.sent(),e.label=10;case 10:return[3,12];case 11:return o=e.sent(),(0,m.z)("Check email verification error.",o),[3,12];case 12:return[2]}}))}function B(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[5,(0,i.Ju)(R())];case 1:return e.sent(),[4,(0,r.Zy)(D)];case 2:return e.sent(),[4,(0,r.jP)(o.Ph,N)];case 3:return e.sent(),[4,(0,r.IJ)(w.iC,x)];case 4:return e.sent(),[4,(0,r.IJ)(w.Op,T)];case 5:return e.sent(),[4,(0,r.IJ)(w.RX,k)];case 6:return e.sent(),[4,(0,r.IJ)(w.gx,E)];case 7:return e.sent(),[4,(0,r.jP)(C.Vi,H)];case 8:return e.sent(),[4,(0,r.jP)(C.rK,F)];case 9:return e.sent(),[2]}}))}},75842:function(e,t,n){"use strict";n.d(t,{B6:function(){return c},V$:function(){return d},VL:function(){return u},VW:function(){return a},Vj:function(){return l},mB:function(){return s}});var i=n(29978),r=n(84785),o=function(e){return e[r.y]},a=(0,i.Mz)(o,(function(e){return e.initialized})),s=(0,i.Mz)(o,(function(e){return e.user})),u=(0,i.Mz)(o,(function(e){return e.userSettings})),c=(0,i.Mz)(u,(function(e){return e&&e.feedSettings&&e.feedSettings.locales||[]})),l=(0,i.Mz)(o,(function(e){return e.authInProgress})),d=((0,i.Mz)(o,(function(e){return e.lastAuthError})),(0,i.Mz)(s,(function(e){return Boolean(null==e?void 0:e.isAuthenticated)})),(0,i.Mz)(o,(function(e){return e.lastRecoveryEmailSentTo})),(0,i.Mz)(o,(function(e){return e.maxNumberOfEmailsReached})),(0,i.Mz)(o,(function(e){return e.emailVerified})))},86011:function(e,t,n){"use strict";n.d(t,{B6:function(){return i.B6},VL:function(){return i.VL},VW:function(){return i.VW},Vj:function(){return i.Vj},mB:function(){return i.mB}});var i=n(75842)},50463:function(e,t,n){"use strict";function i(){return{id:"anon_user_id",enAccountNumber:"",userKey:"anon_user_key",name:"anon_user",avatarImageId:"",photo:{url:null},email:"",isAuthenticated:!1,enableServiceEmails:!1,enablePromotionalEmails:!1}}function r(){return{feedSettings:{locales:[],following:[]},shareEmail:null}}n.d(t,{e:function(){return r},r:function(){return i}})},52451:function(e,t,n){"use strict";var i;n.d(t,{K:function(){return i}}),function(e){e.Library="library",e.Email="email",e.Bell="bell",e.Facebook="facebook",e.Twitter="twitter",e.Google="google",e.Instapaper="instapaper",e.Onenote="onenote",e.Evernote="evernote",e.RBDigital="rbdigital"}(i||(i={}))},51056:function(e,t,n){"use strict";n.d(t,{Ac:function(){return s},YF:function(){return l},YS:function(){return u},hL:function(){return o}});var i,r,o,a=n(20430);!function(e){e.FACEBOOK="facebook",e.TWITTER="twitter",e.GOOGLE="google",e.EVERNOTE="evernote",e.INSTAPAPER="instapaper",e.ONENOTE="onenote",e.SIP="library",e.ADFS="adfs",e.BELL="bell",e.PIANO="piano",e.OPENATHENS="openathens",e.EMAIL="email",e.BARCODE="barcode",e.VIDM="vidm",e.OPENIDCONNECT="openidconnect",e.URLREFERRER="urlreferrer",e.SPYDUS="spydus",e.RBDIGITAL="rbdigital",e.FINNA="finna",e.AXIELL="axiell",e.CAPITA="capita",e.SAML="saml",e.LCF="lcf",e.SIERRA="sierra",e.APPLE="apple",e.AUTH0="auth0"}(o||(o={}));var s,u=Object.freeze({FACEBOOK:"facebook",TWITTER:"twitter",GOOGLE:"google",INSTAPAPER:"instapaper",ONENOTE:"onenote",EVERNOTE:"evernote",LIBRARY:"library",BELL:"bell",PIANO:"piano",RBDIGITAL:"rbdigital",APPLE:"apple",AUTH0:"auth0",OPENIDCONNECT:"openidconnect"}),c=((i={})[o.SIP]=0,i[o.RBDIGITAL]=1,i[o.ADFS]=2,i[o.OPENATHENS]=3,i[o.EMAIL]=4,i[o.BARCODE]=5,i[o.VIDM]=6,i[o.OPENIDCONNECT]=7,i[o.SPYDUS]=8,i[o.FINNA]=9,i[o.AXIELL]=11,i[o.CAPITA]=12,i[o.SAML]=13,i[o.LCF]=14,i[o.SIERRA]=15,i.byValue={0:o.SIP,2:o.ADFS,3:o.OPENATHENS,4:o.EMAIL,5:o.BARCODE,6:o.VIDM,7:o.OPENIDCONNECT,8:o.SPYDUS,9:o.FINNA,11:o.AXIELL,12:o.CAPITA,13:o.SAML,14:o.LCF,15:o.SIERRA},Object.freeze(((r={})[o.FACEBOOK]=u.FACEBOOK,r[o.TWITTER]=u.TWITTER,r[o.GOOGLE]=u.GOOGLE,r[o.INSTAPAPER]=u.INSTAPAPER,r[o.ONENOTE]=u.ONENOTE,r[o.EVERNOTE]=u.EVERNOTE,r[o.BELL]=u.BELL,r[o.PIANO]=u.PIANO,r[o.AUTH0]=u.AUTH0,r[o.SIP]=u.LIBRARY,r[o.ADFS]=u.LIBRARY,r[o.VIDM]=u.LIBRARY,r[o.OPENIDCONNECT]=u.LIBRARY,r[o.OPENATHENS]=u.LIBRARY,r[o.CAPITA]=u.LIBRARY,r[o.AXIELL]=u.LIBRARY,r[o.FINNA]=u.LIBRARY,r[o.SPYDUS]=u.LIBRARY,r[o.LCF]=u.LIBRARY,r[o.SIERRA]=u.LIBRARY,r[o.RBDIGITAL]=u.RBDIGITAL,r[o.SAML]=u.LIBRARY,r[o.APPLE]=u.APPLE,r)));Object.freeze(a(c)),function(e){e.SIGNUP="signup",e.SHARING="sharing"}(s||(s={}));var l=Object.freeze({CANCELLED:"Cancelled",AUTHORIZATION_DENIED:"AuthorizationDenied",ACCESSTOKEN_EXPIRED:"TokenExpired",SIGNIN_ACCOUNT_EXISTS:"SignInAccountExists",LAST_SIGNIN_ACCOUNT:"LastAccountForSignIn",USERNAME_IN_USE:"UserNameInUse",EXTERNAL_USERID_MISMATCH:"AccessTokenFromDiffAccount",LINKED_TO_ANOTHER_ACCOUNT:"LinkedToAnotherAccount",UNEXPECTED_ERROR:"UnexpectedError"})},15263:function(e,t,n){"use strict";var i;n.d(t,{Y:function(){return i}}),function(e){e[e.Unknown=0]="Unknown",e[e.Login=1]="Login",e[e.Logout=2]="Logout",e[e.SignUp=3]="SignUp"}(i||(i={}))},1591:function(e,t,n){"use strict";n.d(t,{cs:function(){return u}});var i,r=n(58932),o=n(44834),a=n(43566);!function(e){e[e.V1=0]="V1",e[e.V2=1]="V2"}(i||(i={}));var s={login:!0,signUp:!1};function u(e,t){var n,u;return void 0===e&&(e={dialogVersion:i.V1}),void 0===t&&(t=s),(0,r.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,o.Lt)(a.mB)];case 1:return i.sent().isAuthenticated?[2,!0]:(n=e.dialogVersion,u=e.introTextResourceId,[4,(0,o.yJ)((0,a.IZ)({dialogVersion:n,introTextResourceId:u,startWith:t}))]);case 2:return i.sent(),[4,(0,o.s)(a.XX)];case 3:return[2,i.sent().payload.authenticationResult]}}))}},19347:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var i=",";function r(e,t,n){!0===n?e[t]="1":!1===n&&(e[t]="0")}function o(e){var t,n,o,a,s={};return e?(e.mainCid&&(s.main=e.mainCid),e.text&&(s.q=e.text),e.startsWith&&(s.StartsWith=e.startsWith),(null===(t=e.cids)||void 0===t?void 0:t.length)&&(s.cid=e.cids.join(i)),(null===(n=e.hasCategories)||void 0===n?void 0:n.length)&&(s.has=e.hasCategories.join(i)),(null===(o=e.excCategories)||void 0===o?void 0:o.length)&&(s.exc=e.excCategories.join(i)),(null===(a=e.inCategories)||void 0===a?void 0:a.length)&&(Array.isArray(e.inCategories[0])?s.in=e.inCategories.map((function(e){return e.join(i)})):s.in=e.inCategories.join(i)),r(s,"supplement",e.isSupplement),r(s,"free",e.isFree),r(s,"cre",e.cre),r(s,"availability",e.available),s):s}},77813:function(e,t,n){"use strict";n.d(t,{DS:function(){return a},Pg:function(){return o},oD:function(){return s}});var i=n(58932),r=function(e){return e.iso?e.iso.toLowerCase():e.iso};function o(e){var t=(0,i.Cl)({},e),n=t.categories?t.categories.map(o):[];return delete t.categories,(0,i.Cl)((0,i.Cl)({},t),{items:n,iso:r(e)})}function a(e,t){var n=o(e);return n.parentNavGroupItemId=t,n}function s(e,t){var n=(0,i.Cl)({},e),o=n.categories?n.categories.map((function(t){return s(t,e.id)})):[];return delete n.categories,(0,i.Cl)((0,i.Cl)({},n),{items:o,iso:r(e),parentId:t})}},4797:function(e,t,n){"use strict";n.d(t,{AL:function(){return p},DT:function(){return l},M1:function(){return m},QN:function(){return d},ki:function(){return h},n0:function(){return f}});var i=n(58932),r=n(41e3),o=n(83489),a=n(19347),s=n(26906),u=n(53308),c=n(77813);function l(e,t,n,r){return(0,i.sH)(this,void 0,void 0,(function(){var o,s;return(0,i.YH)(this,(function(c){switch(c.label){case 0:return o={root:e},t&&(Array.isArray(t)?o.path=t:o.pathUri=t),r&&(o.orderBy=r),s=(0,a.m)(n),o=(0,i.Cl)((0,i.Cl)({},o),s),[4,(0,u.lx)("catalog","navigationgroups",o)];case 1:return[2,c.sent().items]}}))}))}function d(e){return l(e.rootGroupNames,e.path,e.filters,e.orderBy)}function h(e,t,n){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,l(e,[],t,n)];case 1:return[2,i.sent().map(c.Pg)]}}))}))}function f(e,t){return(0,i.sH)(this,void 0,void 0,(function(){var n,r,a,s;return(0,i.YH)(this,(function(u){switch(u.label){case 0:return n=t.inCategories.map((function(e){return Array.isArray(e)?e:[e]})),[4,h(e,t)];case 1:return r=u.sent(),0===n.length?[2,r]:(a=o(r,(function(e){return e.id})),s=n.map((function(r,o){var a=(0,i.Cl)((0,i.Cl)({},t),{inCategories:n.filter((function(e,t){return t!==o}))});return h(e,a)})),[4,Promise.all(s)]);case 2:return u.sent().forEach((function(e,t){var i=e.find((function(e){return e.items.some((function(e){return n[t].indexOf(e.id)>=0}))}));i&&(a[i.id]=i)})),[2,r.map((function(e){return a[e.id]}))]}}))}))}function p(e,t,n){return(0,i.sH)(this,void 0,void 0,(function(){var o,a,u,l,h,f,p,m,g,v,y,_,b,w,C,A=this;return(0,i.YH)(this,(function(I){switch(I.label){case 0:return e=e.filter((function(e){return e.items.length>1})),o=n.filter((function(t){return e.some((function(e){return e.id===s.b7.Countries&&e.items.some((function(e){return e.id===t}))}))})),(a=1===o.length?o[0]:null)?[4,d((0,i.Cl)((0,i.Cl)({},t),{rootGroupNames:[s.$I.Countries],path:(0,i.fX)((0,i.fX)([],t.path,!0),[a],!1)}))]:[3,2];case 1:(null==(h=I.sent())?void 0:h.length)&&(f=(0,c.DS)(h[0],a)).items.length>1&&(u=f.id,l=n.find((function(e){return f.items.some((function(t){return t.id===e}))})),e=(0,i.fX)((0,i.fX)([],e,!0),[f],!1)),I.label=2;case 2:return p=n.reduce((function(t,n){var i=e.find((function(e){return e.items.some((function(e){return e.id===n}))}));if(!i)return t;var r=t.find((function(e){return e.groupId===i.id}));return r||(r={groupId:i.id,items:[]},t.push(r)),r.items.push(n),t}),[]),m=(0,i.Cl)((0,i.Cl)({},t),{filters:(0,i.Cl)({},t.filters)}),(null===(C=m.filters.inCategories)||void 0===C?void 0:C.length)>0&&(Array.isArray(m.filters.inCategories[0])||(m.filters.inCategories=[m.filters.inCategories])),g=[],p.length?(v=(0,i.Cl)((0,i.Cl)({},m),{filters:(0,i.Cl)((0,i.Cl)({},m.filters),{inCategories:(0,i.fX)((0,i.fX)([],m.filters.inCategories,!0),p.map((function(e){return e.items})),!0)})}),y=d(v).then((function(e){return e.map(c.Pg)})),a?(_=d((0,i.Cl)((0,i.Cl)({},v),{rootGroupNames:[s.$I.Countries],path:(0,i.fX)((0,i.fX)([],v.path,!0),[a],!1)})).then((function(e){return(null==e?void 0:e.length)&&(0,c.DS)(e[0],a)})),g.push(Promise.all([y,_]).then((function(e){var t=e[0],n=e[1];if(n){var i=t.findIndex((function(e){return e.id===s.b7.Countries}));i>=0&&t.splice(i+1,0,n)}return t})))):g.push(y)):g.push(Promise.resolve(r(e))),g.push.apply(g,p.map((function(e){return(0,i.sH)(A,void 0,void 0,(function(){var t,n;return(0,i.YH)(this,(function(r){switch(r.label){case 0:return t=(0,i.Cl)((0,i.Cl)({},m),{filters:(0,i.Cl)((0,i.Cl)({},m.filters),{inCategories:(0,i.fX)((0,i.fX)([],m.filters.inCategories,!0),p.filter((function(t){return t!==e})).map((function(e){return e.items})),!0)})}),n=c.Pg,e.groupId===u&&(t.rootGroupNames=[s.$I.Countries],t.path=(0,i.fX)((0,i.fX)([],t.path,!0),[a],!1),n=function(e){return(0,c.DS)(e,a)}),[4,d(t)];case 1:return[2,r.sent().map(n)]}}))}))}))),[4,Promise.all(g)];case 3:return b=I.sent(),w=b[0],b.splice(0,1),p.forEach((function(t,n){var r=b[n].find((function(e){return e.id===t.groupId}));if(r){t.groupId===s.b7.Countries&&a&&l&&(r.items=r.items.filter((function(e){return e.id===a}))),t.groupId===s.b7.Countries&&a&&l&&(r.items=r.items.filter((function(e){return e.id===a}))),t.items.forEach((function(n){if(!r.items.find((function(e){return e.id===n}))){var o=e.find((function(e){return e.id===t.groupId})).items.find((function(e){return e.id===n}));r.items.push((0,i.Cl)((0,i.Cl)({},o),{publicationsCount:0}))}}));var o=w.findIndex((function(e){return e.id===t.groupId}));w.splice(o,1,r)}})),[2,w]}}))}))}function m(e){return(0,u.lx)("catalog/v1","navigationtree",{root:e})}},78897:function(e,t,n){"use strict";n.d(t,{IV:function(){return m},ny:function(){return h},So:function(){return l},xe:function(){return Y},Wc:function(){return M},s6:function(){return N},Aq:function(){return D},hC:function(){return k},X6:function(){return E},cR:function(){return V},E5:function(){return L},jg:function(){return R},t0:function(){return z},jA:function(){return j},LU:function(){return U},HD:function(){return O},F$:function(){return H},I:function(){return W}});var i=n(13981),r="libs.catalog.nav-groups",o=n(58932),a=n(56148),s=n(89103),u=n(74010),c="catalog/nav-groups",l=(0,s.lQ)("".concat(c,"/load_request")),d=(0,s.lQ)("".concat(c,"/load_began")),h=(0,s.lQ)("".concat(c,"/load_done")),f=(0,s.lQ)("".concat(c,"/load_failed")),p=(0,s.lQ)("".concat(c,"/load_cached")),m=(0,s.lQ)("".concat(c,"/catalog_changed")),g={initialized:!1,availNavGroups:(0,a.v)(),availNavGroupTree:(0,a.v)()},v=(0,s.vy)(g,(0,s.po)(m,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{availNavGroups:(0,a.v)(),availNavGroupTree:(0,a.v)()})})),(0,s.po)(d,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{initialized:!0,availNavGroups:(0,o.Cl)((0,o.Cl)({},e.availNavGroups),{status:u.U.Pending}),availNavGroupTree:(0,o.Cl)((0,o.Cl)({},e.availNavGroupTree),{status:u.U.Pending})})})),(0,s.po)(h,(function(e,t){var n=t.payload,i=n.availNavGroupTree,r=n.availNavGroups;return(0,o.Cl)((0,o.Cl)({},e),{availNavGroups:(0,o.Cl)((0,o.Cl)({},e.availNavGroups),{status:u.U.Done,entities:r,meta:{total:r.length}}),availNavGroupTree:(0,o.Cl)((0,o.Cl)({},e.availNavGroupTree),{status:u.U.Done,entities:i,meta:{total:i.length}})})})),(0,s.po)(f,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{availNavGroups:(0,o.Cl)((0,o.Cl)({},e.availNavGroups),{status:u.U.Failed}),availNavGroupTree:(0,o.Cl)((0,o.Cl)({},e.availNavGroupTree),{status:u.U.Failed})})}))),y=n(44834),_=n(43566),b=n(4797),w=n(77813),C=n(61445),A=n(29978),I=n(78698),S=n(26906),P=n(28809),x=n(80835),T=function(e){return e[r]},k=(0,A.Mz)(T,(function(e){return e.availNavGroups})),E=(0,A.Mz)(T,(function(e){return e.availNavGroups.status})),M=(0,A.Mz)(T,(function(e){return e.availNavGroupTree})),D=(0,A.Mz)(T,(function(e){return e.availNavGroupTree.status})),N=(0,A.Mz)(M,(function(e){var t={},n=function(e){e&&e.length>0&&e.forEach((function(e){t[e.id]=e,n(e.items)}))};return n(e.entities),t})),L=(0,A.Mz)(k,(function(e){return function(t,n){t=t.toLowerCase();var i=e.entities.find((function(e){return e.id===S.b7.Languages})),r=null==i?void 0:i.items.filter((function(e){return e.iso===t&&(!n||n.some((function(t){return t===e.id})))})),o=null==r?void 0:r[0];return(null==o?void 0:o.displayName)||t}})),V=(0,A.Mz)(k,(function(e){return function(t){t=t.toLowerCase();var n=e.entities.find((function(e){return e.id===S.b7.Countries})),i=null==n?void 0:n.items.find((function(e){return e.iso===t}));return(null==i?void 0:i.displayName)||t}})),R=(0,A.Mz)([P._t,I.nw],(function(e,t){var n=e("features.app.mobile.regionaleditions.enabled",!1);return t===x.Z.Voyager&&(n=!1),n})),H=(0,A.Mz)(k,(function(e){return e.status===u.U.Done})),F=(0,A.Mz)(k,(function(e){return e.entities.find((function(e){return e.id===S.b7.Categories}))})),B=(0,A.Mz)(k,(function(e){return e.entities.find((function(e){return e.id===S.b7.PublicationTypes}))})),z=((0,A.Mz)(F,B,(function(e,t){return t}),(function(e,t,n){return[S.b7.MagazinesSlug.toString(),S.b7.NewspapersSlug.toString(),S.b7.PDFBooksSlug.toString()].indexOf(n)>=0?null==t?void 0:t.items.find((function(e){return e.slug===n})):null==e?void 0:e.items.find((function(e){return e.slug===n}))})),(0,A.Mz)([P._t],(function(e){var t=e("catalog.root","");return t?t.split(","):S.n4}))),O=(0,A.Mz)([P._t],(function(e){var t=e("features.fts.root.group.names","");return t?t.split(","):S.lZ})),j=(0,A.Mz)([P._t],(function(e){return e("catalog.categories.root")||S.$I.Categories})),U=(0,A.Mz)([P._t],(function(e){return e("catalog.categories.order")})),W=(0,A.Mz)(M,(function(e,t){return t}),(function(e,t){var n;return null===(n=e.entities.find((function(e){return e.name===t})))||void 0===n?void 0:n.items}));function Y(e){return void 0===e&&(e=3),(0,o.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,y.Lt)(k)];case 1:return t.sent().status===u.U.Done?[2]:[4,(0,y.yJ)(l())];case 2:return t.sent(),[4,(0,y.s)([p,h,f])];case 3:return t.sent().type!=="".concat(f)?[3,5]:e-- >0?[4,Y(e)]:[3,5];case 4:t.sent(),t.label=5;case 5:return[2]}}))}function X(){var e,t,n,i,r,a,s;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,6,8,12]),[4,(0,y.yJ)(d())];case 1:return o.sent(),[4,(0,y.Lt)(z)];case 2:return e=o.sent(),[4,(0,y.Lt)(U)];case 3:return t=o.sent(),[4,(0,y.T1)((function(){return Promise.all([(0,b.DT)(e,void 0,void 0,t),(0,b.M1)(e)])}))];case 4:return n=o.sent(),i=n[0],r=n[1],a=i.map(w.Pg),s=r.map((function(e){return(0,w.oD)(e)})),[4,(0,y.yJ)(h({availNavGroups:a,availNavGroupTree:s}))];case 5:return o.sent(),[3,12];case 6:return o.sent(),[4,(0,y.yJ)(f())];case 7:return o.sent(),[3,12];case 8:return[4,(0,y.KW)()];case 9:return o.sent()?[4,(0,y.yJ)(f())]:[3,11];case 10:o.sent(),o.label=11;case 11:return[7];case 12:return[2]}}))}function q(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,y.Lt)(k)];case 1:return e.sent().status!==u.U.Done?[3,3]:[4,(0,y.yJ)(p())];case 2:case 4:return e.sent(),[2];case 3:return[4,(0,y.O4)({load:X(),cancel:(0,y.s)(m)})]}}))}function G(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,y.yJ)(m())];case 1:return e.sent(),[4,(0,y.yJ)(l())];case 2:return e.sent(),[2]}}))}i.bX.addFeature(r,v,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,y.IJ)(l,q)];case 1:return e.sent(),[4,(0,y.jP)([_.YC,C.B4],G)];case 2:return e.sent(),[2]}}))}))},12030:function(e,t,n){"use strict";n.d(t,{Px:function(){return u},e5:function(){return c},hz:function(){return d},jW:function(){return l}});var i=n(58932),r=n(19347),o=n(53308),a=100;function s(e){var t=e.offset,n=e.limit,o=void 0===n?a:n,s=e.orderBy,u=e.filters,c={offset:t,limit:o};s&&(c.orderBy=s.name?"".concat(s.name," ").concat(s.order):"".concat(s.order));var l=(0,r.m)(u);return(0,i.Cl)((0,i.Cl)({},c),l)}function u(e){var t=s(e);return(0,o.lx)("catalog","publications",t)}function c(e){var t=s(e);return(0,o.lx)("gifts/catalog","publications",t)}function l(e){return(0,o.lx)("catalog/v2","publications/".concat(e))}function d(){return(0,o.lx)("catalog","metadata")}},65726:function(e,t,n){"use strict";n.d(t,{C7:function(){return r},DI:function(){return a},IU:function(){return c},Jn:function(){return u},NR:function(){return l},SC:function(){return i},Ur:function(){return d},WQ:function(){return g},Xu:function(){return v},dE:function(){return h},fM:function(){return p},fR:function(){return s},nW:function(){return b},oK:function(){return _},od:function(){return y},p:function(){return m},xu:function(){return f},xw:function(){return o}});var i="features.book_support.enabled",r="features.library.books.disabled",o="features.braze_cards.enabled",a="features.catalogBodyCopy.enabled",s="app.views.catalog.books.just_added.enabled",u="ui.catalog.seeMoreLink.enabled",c="features.catalog.sort.order",l="features.catalog.categories.enabled",d="features.catalog.favorites.enabled",h="features.catalog.banners.enabled",f="features.catalog.featured.enabled",p="features.catalog.new_sections",m="features.featured_hotspot.enabled",g="features.catalog.publications.grid.layout.enabled",v="features.catalog.recentlyread.enabled",y="ui.PdfDownload.EnableDirectAcrobatDownload",_="ui.PdfDownload.EnableDirectAcrobatPageDownload",b="ui.PdfDownload.DefaultDownloadType"},35797:function(e,t,n){"use strict";n.d(t,{IK:function(){return u},NN:function(){return s},O4:function(){return o},kf:function(){return a}});var i=n(30657),r=n(26906),o=function(e){switch(e){case r.Yd.ByAlphabet:return{name:r.Xy.Name,order:r.xB.Ascending};case r.Yd.MostRecent:return{name:r.Xy.LatestIssueDate,order:r.xB.Descending};case r.Yd.Default:return{name:r.Xy.Default,order:r.xB.Ascending};case r.Yd.MostPopular:default:return{name:r.Xy.SearchRank,order:r.xB.Descending}}},a=function(e){switch(e){case i.mF.Date:return r.Yd.MostRecent;case i.mF.Relevance:default:return r.Yd.MostPopular}},s=function(e){switch(e){case i.mF.Date:return{field:"PublicationDate",reverse:!0};case i.mF.Relevance:default:return{field:"Relevance",reverse:!1}}};function u(e){switch(e){case!0:return"Sample";case!1:return"FullOrJustPurchased";default:return"none"}}},26906:function(e,t,n){"use strict";var i,r,o,a,s;n.d(t,{$I:function(){return r},Xy:function(){return s},Yd:function(){return c},b7:function(){return o},lZ:function(){return h},n4:function(){return d},sv:function(){return l},xB:function(){return a}}),function(e){e.Countries="Countries",e.Languages="Languages",e.PublicationTypes="PublicationTypes",e.Categories="BaseContentCatalog"}(r||(r={})),function(e){e.Undefined="",e.Favorites="mypublications",e.TopMagazines="topmagazines",e.MagazinesSlug="magazines",e.TopNewspapers="topnewspapers",e.NewspapersSlug="newspapers",e.PDFBooksSlug="pdfbooks",e.TopPublications="toppublications",e.TopFree="topfreepublications",e.Featured="featured",e.RecentlyRead="recentlyread",e.All="all",e.Trial="trial",e.FeaturedHotspot="featuredhotspot",e.Books="books",e.BooksGenres="genres",e.BooksSpecialCollection="special_collection",e.BooksAuthors="authors",e.BooksSeries="series",e.BaseContent="basecontent",e.Publications="publications",e.BooksMyBooks="library",e.NationalNews="national-news",e.LocalNews="local-news",e.PopularWorldwide="popular-worldwide",e.PopularInCountry="popular-in-country",e.AllNews="all-news",e.Free="free",e.MostPopular="mostpopular",e[e.Countries=656]="Countries",e[e.Languages=1032]="Languages",e[e.Categories=584]="Categories",e[e.PublicationTypes=8388608]="PublicationTypes",e[e.Magazines=150994944]="Magazines",e[e.Newspapers=142606336]="Newspapers",e[e.PDFBooks=164071058]="PDFBooks",e[e.International=938]="International",e[e.News=1124]="News"}(o||(o={})),function(e){e.Ascending="asc",e.Descending="desc",e.Default="default"}(a||(a={})),function(e){e.Name="name",e.Rank="rank",e.SearchRank="searchrank",e.LatestIssueDate="latestIssueDate",e.Default="default"}(s||(s={}));var u,c,l=((i={})[s.Name]=a.Ascending,i[s.Rank]=a.Descending,i[s.SearchRank]=a.Descending,i[s.LatestIssueDate]=a.Descending,i[s.Default]=a.Default,i),d=[r.PublicationTypes,r.Countries,r.Languages,r.Categories],h=[r.Countries,r.Languages];!function(e){e[e.List=0]="List",e[e.SmallGrid=1]="SmallGrid",e[e.Grid=2]="Grid",e[e.Newsstand=3]="Newsstand"}(u||(u={})),function(e){e[e.Default=3]="Default",e[e.ByAlphabet=0]="ByAlphabet",e[e.MostPopular=1]="MostPopular",e[e.MostRecent=2]="MostRecent"}(c||(c={}))},56716:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var i="@pressreader/collections-popups"},87838:function(e,t,n){"use strict";n.d(t,{us:function(){return u},lF:function(){return a},XV:function(){return s},PL:function(){return c},AK:function(){return d},PV:function(){return h},mw:function(){return l}});var i=n(89103),r=n(56716),o="".concat(r.p,"/dialog_bookmark_edit/global/"),a=(0,i.lQ)("".concat(o,"save_to_collection_action/article_action")),s=(0,i.lQ)("".concat(o,"save_to_collection_action/article_done")),u=(0,i.lQ)("dialog_bookmark_edit/global/change_page_set_collection_action"),c=(0,i.lQ)("dialog_bookmark_edit/global/save_to_collection_action/issue_page"),l=(0,i.lQ)("bookmark.legacy.dialog.open.action"),d=(0,i.lQ)("bookmark.legacy.dialog.close.action"),h=(0,i.lQ)("".concat(o,"load_issue_pagesets"))},62139:function(e,t,n){"use strict";n.d(t,{GF:function(){return a},Gd:function(){return r},hk:function(){return o},md:function(){return s},pW:function(){return i}});var i="@pressreader/comments-popups",r="comments.dialog",o="add.video.dialog",a="report.user.dialog",s=20},88362:function(e,t,n){"use strict";n.d(t,{Fq:function(){return d},Wf:function(){return u},jy:function(){return a},kv:function(){return l},py:function(){return s},zr:function(){return c}});var i=n(89103),r=n(62139),o="".concat(r.pW,"/attachments/"),a=(0,i.lQ)("".concat(o,"add-image")),s=(0,i.lQ)("".concat(o,"add-video")),u=(0,i.lQ)("".concat(o,"attachment-upload-started")),c=(0,i.lQ)("".concat(o,"attachment-upload-done")),l=(0,i.lQ)("".concat(o,"attachment-upload-failed")),d=(0,i.lQ)("".concat(o,"attachment-deleted"))},18972:function(e,t,n){"use strict";n.d(t,{Aq:function(){return L},BV:function(){return x},Be:function(){return p},DN:function(){return w},FW:function(){return A},Gg:function(){return m},Jg:function(){return P},KJ:function(){return c},M3:function(){return s},TG:function(){return k},TV:function(){return E},Tq:function(){return g},Tw:function(){return D},VG:function(){return S},VW:function(){return _},Vk:function(){return T},YL:function(){return C},a$:function(){return v},b0:function(){return u},bD:function(){return l},eC:function(){return I},iX:function(){return N},kN:function(){return M},lY:function(){return a},nU:function(){return y},o$:function(){return d},oO:function(){return f},q1:function(){return b},t9:function(){return h}});var i=n(89103),r=n(62139),o="".concat(r.pW,"/comments/"),a=(0,i.lQ)("".concat(o,"load-previous-page")),s=(0,i.lQ)("".concat(o,"load-previous-page-began")),u=(0,i.lQ)("".concat(o,"load-previous-page-done")),c=(0,i.lQ)("".concat(o,"load-previous-page-failed")),l=(0,i.lQ)("".concat(o,"load-next-page")),d=(0,i.lQ)("".concat(o,"load-next-page-began")),h=(0,i.lQ)("".concat(o,"load-next-page-done")),f=(0,i.lQ)("".concat(o,"load-next-page-failed")),p=(0,i.lQ)("".concat(o,"load-replies")),m=(0,i.lQ)("".concat(o,"load-replies-began")),g=(0,i.lQ)("".concat(o,"load-replies-done")),v=(0,i.lQ)("".concat(o,"load-replies-failed")),y=(0,i.lQ)("".concat(o,"comment-edit-started")),_=(0,i.lQ)("".concat(o,"comment-edit-cancelled")),b=(0,i.lQ)("".concat(o,"post-comment")),w=(0,i.lQ)("".concat(o,"post-comment-began")),C=(0,i.lQ)("".concat(o,"post-comment-done")),A=(0,i.lQ)("".concat(o,"post-comment-failed")),I=(0,i.lQ)("".concat(o,"new-reply-posted")),S=(0,i.lQ)("".concat(o,"new-comment-posted")),P=(0,i.lQ)("".concat(o,"delete-comment")),x=(0,i.lQ)("".concat(o,"comment-deleted")),T=(0,i.lQ)("".concat(o,"comment-updated")),k=(0,i.lQ)("".concat(o,"vote")),E=(0,i.lQ)("".concat(o,"votes-updated")),M=(0,i.lQ)("".concat(o,"hide-comment")),D=(0,i.lQ)("".concat(o,"ban-user")),N=(0,i.lQ)("".concat(o,"user-banned")),L=(0,i.lQ)("".concat(o,"report-comment"))},72571:function(e,t,n){"use strict";n.d(t,{CC:function(){return a},F2:function(){return c},H2:function(){return v},IS:function(){return u},UD:function(){return h},VL:function(){return l},ck:function(){return g},dp:function(){return s},km:function(){return d},uH:function(){return m},vX:function(){return p},zl:function(){return f}});var i=n(89103),r=n(62139),o="".concat(r.pW,"/commoon/"),a=(0,i.lQ)("".concat(o,"initial-load-began")),s=(0,i.lQ)("".concat(o,"initial-load-done")),u=(0,i.lQ)("".concat(o,"initial-load-failed")),c=(0,i.lQ)("".concat(o,"follow-user")),l=(0,i.lQ)("".concat(o,"follow-user-done")),d=(0,i.lQ)("".concat(o,"unfollow-user")),h=(0,i.lQ)("".concat(o,"unfollow-user-done")),f=(0,i.lQ)("".concat(o,"open-user-profile")),p=(0,i.lQ)("".concat(o,"comments-dialog-opening")),m=(0,i.lQ)("".concat(o,"comments-dialog-opened")),g=(0,i.lQ)("".concat(o,"comments-dialog-closing")),v=(0,i.lQ)("".concat(o,"comments-dialog-closed"))},78754:function(e,t,n){"use strict";n.d(t,{G:function(){return y},F:function(){return v}});var i=n(44229),r=n(62139),o=n(58932),a=n(89103),s=n(88362),u=n(18972),c=(0,a.vy)({attachmentsByDraftId:{}},(0,a.po)(s.Wf,(function(e,t){var n,i=t.payload,r=i.draftId,a=i.attachment;return(0,o.Cl)((0,o.Cl)({},e),{attachmentsByDraftId:(0,o.Cl)((0,o.Cl)({},e.attachmentsByDraftId),(n={},n[r]=(0,o.fX)((0,o.fX)([],(0,o.zs)(e.attachmentsByDraftId[r]),!1),[a],!1),n))})})),(0,a.po)(s.zr,(function(e,t){var n,i=t.payload,r=i.draftId,a=i.attachment,s=e.attachmentsByDraftId[r],u=s.findIndex((function(e){return e.uniqueId===a.uniqueId}));return u<0?e:(0,o.Cl)((0,o.Cl)({},e),{attachmentsByDraftId:(0,o.Cl)((0,o.Cl)({},e.attachmentsByDraftId),(n={},n[r]=(0,o.fX)((0,o.fX)((0,o.fX)([],(0,o.zs)(s.slice(0,u)),!1),[a],!1),(0,o.zs)(s.slice(u+1)),!1),n))})})),(0,a.po)(s.kv,(function(e,t){var n,i=t.payload,r=i.draftId,a=i.attachment;return(0,o.Cl)((0,o.Cl)({},e),{attachmentsByDraftId:(0,o.Cl)((0,o.Cl)({},e.attachmentsByDraftId),(n={},n[r]=e.attachmentsByDraftId[r].filter((function(e){return e.uniqueId!==a.uniqueId})),n))})})),(0,a.po)(u.nU,(function(e,t){var n,i,r=t.payload,a=r.draftId,s=r.comment;return(0,o.Cl)((0,o.Cl)({},e),{attachmentsByDraftId:(0,o.Cl)((0,o.Cl)({},e.attachmentsByDraftId),(n={},n[a]=null!==(i=null==s?void 0:s.attachments)&&void 0!==i?i:[],n))})})),(0,a.po)(u.VW,(function(e,t){var n=t.payload.draftId,i=(0,o.Cl)({},e.attachmentsByDraftId);return delete i[n],(0,o.Cl)((0,o.Cl)({},e),{attachmentsByDraftId:i})})),(0,a.po)(s.Fq,(function(e,t){var n,i,r=t.payload,a=r.id,s=r.draftId;return(0,o.Cl)((0,o.Cl)({},e),{attachmentsByDraftId:(0,o.Cl)((0,o.Cl)({},e.attachmentsByDraftId),(n={},n[s]=null===(i=e.attachmentsByDraftId[s])||void 0===i?void 0:i.filter((function(e){return e.uniqueId!==a})),n))})}))),l=n(72571);function d(e,t,n){var i=t.findIndex((function(t){return t.id===e}));if(i<0)return{comments:t,comment:null};var r=n(t[i]);return{comments:(0,o.fX)((0,o.fX)((0,o.fX)([],(0,o.zs)(t.slice(0,i)),!1),[r],!1),(0,o.zs)(t.slice(i+1)),!1),comment:r}}var h,f=(0,a.vy)({comments:[],offset:0,totalCommentsCount:0,rootCommentsCount:0,isLoadingPreviousPage:!1,isLoadingNextPage:!1,isPostingDraftId:null,newCommentId:null,newPostId:null},(0,a.po)(l.CC,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{comments:[],offset:0,totalCommentsCount:0,newCommentId:null,newPostId:null,attachmentsByDraftId:{}})})),(0,a.po)(l.dp,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:n.comments,offset:n.offset,totalCommentsCount:n.totalCommentsCount,rootCommentsCount:n.rootCommentsCount})})),(0,a.po)(u.o$,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isLoadingNextPage:!0})})),(0,a.po)(u.t9,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:(0,o.fX)((0,o.fX)([],(0,o.zs)(e.comments),!1),(0,o.zs)(n.comments),!1),totalCommentsCount:n.totalCommentsCount,rootCommentsCount:n.rootCommentsCount,isLoadingNextPage:!1})})),(0,a.po)(u.oO,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isLoadingNextPage:!1})})),(0,a.po)(u.M3,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isLoadingPreviousPage:!0})})),(0,a.po)(u.b0,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:(0,o.fX)((0,o.fX)([],(0,o.zs)(n.comments),!1),(0,o.zs)(e.comments),!1),offset:Math.max(e.offset-n.comments.filter((function(e){return!e.parentId})).length,0),totalCommentsCount:n.totalCommentsCount,rootCommentsCount:n.rootCommentsCount,isLoadingPreviousPage:!1})})),(0,a.po)(u.KJ,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isLoadingPreviousPage:!1})})),(0,a.po)(u.Gg,(function(e,t){var n=d(t.payload.commentId,e.comments,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isLoadingReplies:!0})})).comments;return n===e.comments?e:(0,o.Cl)((0,o.Cl)({},e),{comments:n})})),(0,a.po)(u.Tq,(function(e,t){var n=t.payload,i=n.commentId,r=n.replies,a=d(i,e.comments,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{repliesCount:n.totalRepliesCount,isLoadingReplies:!1,isReloadRepliesRequired:!1})})).comments;if(a===e.comments)return e;n.replace&&(a=a.filter((function(e){return e.parentId!==i})));for(var s=-1,u=a.length-1;u>=0;--u)if(a[u].parentId===i||a[u].id===i){s=u+1;break}return(0,o.Cl)((0,o.Cl)({},e),{comments:s>=0?(0,o.fX)((0,o.fX)((0,o.fX)([],(0,o.zs)(a.slice(0,s)),!1),(0,o.zs)(r),!1),(0,o.zs)(a.slice(s)),!1):a})})),(0,a.po)(u.a$,(function(e,t){var n=d(t.payload.commentId,e.comments,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isLoadingReplies:!1})})).comments;return n===e.comments?e:(0,o.Cl)((0,o.Cl)({},e),{comments:n})})),(0,a.po)(u.DN,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{isPostingDraftId:n.draftId})})),(0,a.po)(u.YL,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isPostingDraftId:null})})),(0,a.po)(u.FW,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isPostingDraftId:null})})),(0,a.po)(u.eC,(function(e,t){for(var n=t.payload,i=n.draftParentId,r=n.reply,a=-1,s=e.comments.length-1;s>=0;--s){var u=e.comments[s];if(u.parentId===r.parentId||u.id===r.parentId){a=s+1;break}}if(a<0)return e;var c=(0,o.fX)((0,o.fX)((0,o.fX)([],(0,o.zs)(e.comments.slice(0,a)),!1),[r],!1),(0,o.zs)(e.comments.slice(a+1)),!1);return c=d(i,c,(function(e){return(0,o.Cl)({},e)})).comments,c=d(r.parentId,c,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{repliesCount:e.repliesCount+1,isReloadRepliesRequired:!0})})).comments,(0,o.Cl)((0,o.Cl)({},e),{comments:c,newPostId:r.id})})),(0,a.po)(u.VG,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:n.comments,offset:n.offset,rootCommentsCount:n.rootCommentsCount,totalCommentsCount:n.totalCommentsCount,newCommentId:n.comment.id,newPostId:n.comment.id})})),(0,a.po)(u.BV,(function(e,t){var n=d(t.payload.commentId,e.comments,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{isDeleted:!0})})),i=n.comments,r=n.comment;return i!==e.comments&&r?(0,o.Cl)((0,o.Cl)({},e),{comments:i,rootCommentsCount:r.parentId?e.rootCommentsCount:e.rootCommentsCount-1,totalCommentsCount:e.totalCommentsCount-1}):e})),(0,a.po)(u.Vk,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:d(n.comment.id,e.comments,(function(){return n.comment})).comments,newPostId:n.comment.id})})),(0,a.po)(u.TV,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:d(n.commentId,e.comments,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{currentVote:n.currentUserVote,likesCount:n.likesCount,dislikesCount:n.dislikesCount})})).comments})})),(0,a.po)(u.iX,(function(e,t){var n=t.payload.userProfileName,i=0,r=0,a=e.comments.map((function(e){return e.userProfile.profileName!==n?e:(++i,e.parentId||++r,(0,o.Cl)((0,o.Cl)({},e),{isDeleted:!0}))}));return i?(0,o.Cl)((0,o.Cl)({},e),{comments:a,totalCommentsCount:e.totalCommentsCount-i,rootCommentsCount:e.rootCommentsCount-r}):e})),(0,a.po)(l.VL,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:e.comments.map((function(e){return e.userProfile.profileName!==n.userProfileName?e:(0,o.Cl)((0,o.Cl)({},e),{userProfile:(0,o.Cl)((0,o.Cl)({},e.userProfile),{isFollowedByCurrentUser:!0})})}))})})),(0,a.po)(l.UD,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{comments:e.comments.map((function(e){return e.userProfile.profileName!==n.userProfileName?e:(0,o.Cl)((0,o.Cl)({},e),{userProfile:(0,o.Cl)((0,o.Cl)({},e.userProfile),{isFollowedByCurrentUser:!1})})}))})}))),p=n(40724);!function(e){e[e.Popular=2]="Popular",e[e.Date=4]="Date",e[e.DateAsc=3]="DateAsc"}(h||(h={}));var m={popupId:"",articleId:"",orderBy:h.DateAsc,isLoaded:!1,popupStatus:p.P.CLOSED},g=(0,a.vy)(m,(0,a.po)(l.CC,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{isLoaded:!1,articleId:n.articleId})})),(0,a.po)(l.dp,(function(e,t){return t.payload,(0,o.Cl)((0,o.Cl)({},e),{isLoaded:!0})})),(0,a.po)(l.vX,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{popupStatus:p.P.OPENING,articleId:n.articleId})})),(0,a.po)(l.uH,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{popupStatus:p.P.OPEN,popupId:n.popupId})})),(0,a.po)(l.ck,(function(e,t){var n=t.payload.popupId;return e.popupId!==n?e:(0,o.Cl)((0,o.Cl)({},e),{popupStatus:p.P.CLOSING})})),(0,a.po)(l.H2,(function(e,t){var n=t.payload.popupId;return e.popupId!==n?e:(0,o.Cl)((0,o.Cl)({},e),{popupStatus:p.P.CLOSED})}))),v=(0,i.HY)({comments:f,common:g,attachments:c}),y=function(e){return e[r.pW]}},12299:function(e,t,n){"use strict";n.d(t,{$u:function(){return h},X3:function(){return d},Xg:function(){return b},i$:function(){return w},kG:function(){return y},o4:function(){return v},o8:function(){return l},pI:function(){return _},py:function(){return f},qy:function(){return C},t$:function(){return c},un:function(){return g},zc:function(){return p}});var i=n(29978),r=n(13981),o=n(43566),a=n(78754),s=n(32664),u=(0,i.Mz)(a.G,(function(e){return e.comments})),c=(0,i.Mz)(u,(function(e){return e.comments})),l=(0,i.Mz)(u,(function(e){return e.offset})),d=((0,i.Mz)(u,(function(e){return e.isLoadingPreviousPage||e.isLoadingNextPage})),(0,i.Mz)(u,(function(e){return e.isLoadingPreviousPage}))),h=(0,i.Mz)(u,s.KM,d,(function(e,t,n){return t&&e.offset>0&&!n})),f=(0,i.Mz)(u,(function(e){return e.isLoadingNextPage})),p=(0,i.Mz)(u,s.KM,f,(function(e,t,n){return t&&e.totalCommentsCount>e.comments.length&&e.rootCommentsCount>e.offset+e.comments.filter((function(e){return!e.parentId})).length&&!n})),m=(0,r.bb)("commentId"),g=(0,i.Mz)(m,c,(function(e,t){return t.find((function(t){return t.id===e}))})),v=(0,i.Mz)(m,c,(function(e,t){return t.filter((function(t){return t.parentId===e}))})),y=(0,i.Mz)(u,(function(e){return e.totalCommentsCount})),_=(0,i.Mz)(m,c,o.mB,(function(e,t,n){var i=t.find((function(t){return t.id===e}));return(null==i?void 0:i.userProfile.enAccountNumber)===n.enAccountNumber})),b=(0,i.Mz)(u,(function(e){return e.newCommentId})),w=(0,i.Mz)(u,(function(e){return e.newPostId})),C=(0,i.Mz)(s.yS,u,(function(e,t){return t.isPostingDraftId===e}))},32664:function(e,t,n){"use strict";n.d(t,{KM:function(){return c},Ut:function(){return l},YF:function(){return d},nw:function(){return p},q1:function(){return f},yS:function(){return u}});var i=n(29978),r=n(13981),o=n(40724),a=n(78754),s=(0,i.Mz)(a.G,(function(e){return e.common})),u=(0,r.bb)("draftId"),c=(0,i.Mz)(s,(function(e){return e.isLoaded})),l=(0,i.Mz)(s,(function(e){return e.popupId})),d=(0,i.Mz)(s,(function(e){return e.articleId})),h=(0,i.Mz)(s,(function(e){return e.popupStatus})),f=(0,i.Mz)(s,(function(e){return e.orderBy})),p=(0,i.Mz)(h,(function(e){return e===o.P.OPEN||e===o.P.OPENING}))},40724:function(e,t,n){"use strict";var i;n.d(t,{P:function(){return i}}),function(e){e.OPENING="opening",e.OPEN="open",e.CLOSING="closing",e.CLOSED="closed"}(i||(i={}))},57230:function(e,t,n){"use strict";n.d(t,{Pt:function(){return l},Q3:function(){return s},SG:function(){return a},Zn:function(){return u},lJ:function(){return d},mD:function(){return h},q6:function(){return o},yS:function(){return c}});var i=n(53308),r="purchase";function o(e){return(0,i.lx)(r,"GetPurchaseInfo",e)}function a(e){return(0,i.lx)(r,"GetArchivePurchaseInfo",e)}function s(e){return(0,i.zA)(r,"AddToBasket",JSON.stringify(e),{contentType:"application/json"})}function u(e){return(0,i.lx)(r,"GetPurchaseContext",e)}function c(e){return(0,i.lx)(r,e)}function l(e){return(0,i.zA)(r,"Checkout",e,{disableRetry:!0})}function d(e){return(0,i.zA)(r,"Confirm",JSON.stringify(e),{contentType:"application/json"})}function h(e){return(0,i.lx)(r,"pending-order/".concat(e))}},25351:function(e,t,n){"use strict";n.d(t,{br:function(){return o},cc:function(){return s},ts:function(){return a}});var i=n(58932),r=n(43125);function o(e){if(!e)return null;var t={token:e.token,title:e.title,callToAction:e.callToAction,highlight:e.highlight,features:e.features||[],tags:e.tags,currency:e.currency,price:e.price,formattedPrice:e.formattedPrice,discount:e.discount,formattedDiscount:e.formattedDiscount,total:e.total,formattedTotal:e.formattedTotal,issueIncluded:!1!==e.issueIncluded};return"RegularSubscription"===e.type?(0,i.Cl)((0,i.Cl)({},t),{type:"RegularSubscription",productId:e.productId,term:{duration:e.term.duration,units:e.term.units},autoRenewEnabled:e.autoRenewEnabled,autoRenewToProduct:o(e.autoRenewToProduct)}):"PublicationSubscription"===e.type?(0,i.Cl)((0,i.Cl)({},t),{type:"PublicationSubscription",productId:e.productId,term:{duration:e.term.duration,units:e.term.units},autoRenewEnabled:e.autoRenewEnabled,autoRenewToProduct:o(e.autoRenewToProduct),cids:e.cids,publicationsInfo:[]}):"SingleIssue"===e.type?(0,i.Cl)((0,i.Cl)({},t),{type:"SingleIssue",issueKey:e.issueKey,cid:e.cid,issueInfo:null}):"GiftCard"===e.type?(0,i.Cl)((0,i.Cl)({},t),{type:"GiftCard",productId:e.productId}):"Book"===e.type?(0,i.Cl)((0,i.Cl)({},t),{type:"Book",bookId:e.bookId,productId:e.productId,bookInfo:null,autoRenewEnabled:e.autoRenewEnabled,salesModelId:e.salesModelId,supplyModelId:e.supplyModelId}):null}function a(e){if(!e)return null;var t=e.Issue.Issue,n=(0,r._x)(t);return{cid:e.Issue.CID,issueKey:t,publicationName:e.Newspaper.Name,issueDate:n,expungeVersion:e.Issue.ExpungeVersion,couldBeRead:e.CouldPotentiallyBeRead,isFreeContent:e.SubscriptionsInfo.IsFreeContent,requiredAuthenticatedUser:e.SubscriptionsInfo.RequiredAuthenticatedUser}}function s(e){return e?{cid:e.cid,publicationName:e.displayName}:null}},23655:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var i=n(58932);function r(e){return(0,i.Cl)({},e)}},77457:function(e,t,n){"use strict";n.d(t,{F9:function(){return a},JV:function(){return u},Sr:function(){return s},ho:function(){return c},pK:function(){return o}});var i=n(53308),r="v1/accounts/current/payments";function o(e){return(0,i.lx)(r,"history",{year:e})}function a(){return(0,i.lx)(r,"years")}function s(){return(0,i.lx)(r,"bundle/orders")}function u(e){return(0,i.lx)(r,"issues",{orderId:e})}function c(e){return(0,i.lx)(r,"receipt",{orderId:e})}},83534:function(e,t,n){"use strict";n.d(t,{Jn:function(){return a},eQ:function(){return s},zN:function(){return o}});var i=n(53308),r="v1/subscriptions";function o(){return(0,i.lx)(r,"current")}function a(e){return(0,i.yd)(r,"current/autorenew",JSON.stringify(e),{contentType:"application/json",disableRetry:!0})}function s(e,t){return(0,i.yd)(r,"".concat(e,"/autorenew"),JSON.stringify(t),{contentType:"application/json",disableRetry:!0})}},28695:function(e,t,n){"use strict";var i;n.d(t,{i:function(){return i}}),function(e){e.NotAllowed="NotAllowed",e.SiteDefault="SiteDefault",e.DirectDownload="DirectDownload",e.OfflineReaderDownload="OfflineReaderDownload",e.DirectAcrobatDownload="DirectAcrobatDownload",e.NDLightDownload="NDLightDownload",e.SingleIssueDownload="SingleIssueDownload"}(i||(i={}))},97781:function(e,t,n){"use strict";var i;function r(e){return"SingleIssue"===e.type}function o(e){return"RegularSubscription"===e.type}function a(e){return"PublicationSubscription"===e.type}n.d(t,{X:function(){return i},d8:function(){return o},nA:function(){return r},nw:function(){return a}}),function(e){e[e.Unknown=0]="Unknown",e[e.Agency=1]="Agency",e[e.Wholesale=2]="Wholesale",e[e.Free=3]="Free",e[e.Consignment=4]="Consignment",e[e.License=5]="License"}(i||(i={}))},94615:function(e,t,n){"use strict";var i,r,o;n.d(t,{Dm:function(){return i},it:function(){return r},tQ:function(){return o}}),function(e){e[e.Trial=0]="Trial",e[e.SingleCopy=1]="SingleCopy",e[e.Regular=2]="Regular",e[e.Print=3]="Print",e[e.AppDefault=4]="AppDefault",e[e.AppSingleCopy=5]="AppSingleCopy",e[e.AppRegular=6]="AppRegular",e[e.Bundle=7]="Bundle",e[e.Unknown=8]="Unknown"}(i||(i={})),function(e){e[e.Valid=1]="Valid",e[e.Exceed=2]="Exceed",e[e.Expired=4]="Expired",e[e.Suspended=8]="Suspended",e[e.Canceled=16]="Canceled",e[e.PaymentDeclined=32]="PaymentDeclined",e[e.NotValid=60]="NotValid",e[e.NoBalance=64]="NoBalance"}(r||(r={})),function(e){e[e.Month=0]="Month",e[e.Day=1]="Day"}(o||(o={}))},70474:function(e,t,n){"use strict";n.d(t,{qA:function(){return w},rU:function(){return b}});var i=n(13981),r="@pressreader/commerce-core",o=n(58932),a=n(89103),s=n(43566),u="".concat(r,"/"),c=(0,a.lQ)("".concat(u,"load_subscription_done")),l=(0,a.vy)({currentSubscription:null,activeBundles:[]},(0,a.po)(c,(function(e,t){var n=t.payload,i=n.currentSubscription,r=n.activeBundles;return(0,o.Cl)((0,o.Cl)({},e),{currentSubscription:i,activeBundles:r})})),(0,a.po)(s.Fz,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{currentSubscription:null})}))),d=n(44834),h=n(83534),f=n(77457),p=n(23655),m=n(30212),g=n(33260);function v(){var e,t,n;return(0,o.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),[4,(0,d.Lt)(s.mB)];case 1:return i.sent().isAuthenticated?[4,(0,d.T1)(h.zN)]:[2];case 2:return e=i.sent(),[4,(0,d.T1)(f.Sr)];case 3:return t=i.sent(),[4,(0,d.yJ)(c({currentSubscription:(0,p.Y)(e),activeBundles:null==t?void 0:t.filter((function(e){return 1===e.status}))}))];case 4:return i.sent(),[3,6];case 5:return n=i.sent(),(0,m.z)(n),[3,6];case 6:return[2]}}))}var y=n(29978),_=function(e){return e[r]},b=(0,y.Mz)(_,(function(e){return e.currentSubscription})),w=(0,y.Mz)(_,(function(e){return e.activeBundles}));i.bX.addFeature(r,l,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,d.jP)([s.hl,g.St,s.YC],v)];case 1:return e.sent(),[2]}}))}))},90050:function(e,t,n){"use strict";var i;function r(e){i=e}n.d(t,{s:function(){return r},z:function(){return i}})},28809:function(e,t,n){"use strict";n.d(t,{hm:function(){return h},r4:function(){return m},Cl:function(){return g},cD:function(){return D},FI:function(){return c},yC:function(){return d},fj:function(){return f},zg:function(){return P},Qt:function(){return k},_t:function(){return T},Hw:function(){return x}});var i=n(13981),r="@pressreader/config",o=n(58932),a=n(74010),s=n(89103),u=r+"/",c=(0,s.lQ)("".concat(u,"extend_config")),l=(0,s.lQ)("".concat(u,"config_extended")),d=(0,s.lQ)("".concat(u,"force_config_load_done")),h=(0,s.lQ)("".concat(u,"config_changed")),f=(0,s.lQ)("".concat(u,"load_config")),p=(0,s.lQ)("".concat(u,"config_load_began")),m=(0,s.lQ)("".concat(u,"config_load_done")),g=(0,s.lQ)("".concat(u,"config_load_failed")),v={config:{},status:a.U.None},y=(0,s.vy)(v,(0,s.po)(p,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{status:a.U.Pending})})),(0,s.po)(m,(function(e,t){return(0,o.Cl)((0,o.Cl)({},e),{config:t.payload.config,status:a.U.Done})})),(0,s.po)(g,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{status:a.U.Done})})),(0,s.po)(l,(function(e,t){return(0,o.Cl)((0,o.Cl)({},e),{config:t.payload.config})}))),_=n(44834),b=n(90050),w=n(29978),C=n(42832),A=n(1791);function I(e){return e[r]}function S(e,t,n){if(!C(e)||!t)return n;var i=function(t){return Object.keys(e).find((function(e){return e.toLowerCase()===t.toLowerCase()}))||t};if((t=i(t))in e)return e[t];for(var r=t.indexOf(".");r>0;r=t.indexOf(".",r+1)){var o=t.substring(0,r);if((o=i(o))in e)return S(e[o],t.substring(r+1),n)}return n}var P=(0,w.Mz)(I,(function(e){return e.config})),x=(0,w.Mz)(I,(function(e){return e.status})),T=(0,w.Mz)(I,(function(e){return A((function(t,n){return S(e.config,t,n)}),(function(e,t){return JSON.stringify({path:e,defaultValue:t})}))})),k=(0,w.Mz)(I,(function(e,t){return t}),(function(e,t,n){return n}),(function(e,t,n){return S(e.config,t,n)}));function E(){var e,t;return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,_.Lt)(x)];case 1:return n.sent()===a.U.Pending?[2]:[4,(0,_.yJ)(p())];case 2:return n.sent(),b.z?[3,4]:[4,(0,_.yJ)(g())];case 3:return n.sent(),[2];case 4:return n.trys.push([4,11,,13]),[4,(0,_.O4)({config:(0,_.T1)(b.z),cancel:(0,_.s)(d)})];case 5:return e=n.sent(),t=e.config,e.cancel?[4,(0,_.yJ)(m({config:{}}))]:[3,7];case 6:return n.sent(),[3,9];case 7:return[4,(0,_.yJ)(m({config:t}))];case 8:n.sent(),n.label=9;case 9:return[4,(0,_.yJ)(h())];case 10:return n.sent(),[3,13];case 11:return n.sent(),[4,(0,_.yJ)(g())];case 12:return n.sent(),[3,13];case 13:return[2]}}))}function M(e){var t,n,i,r,a,s,u;return(0,o.YH)(this,(function(c){switch(c.label){case 0:return[4,(0,_.Lt)(P)];case 1:for(t=c.sent(),n=(0,o.Cl)({},t),i=0,r=Object.keys(e.payload.values);i0)return[2,u(e,t-1)];if(!(null!==(C="object"==typeof d&&(null==d?void 0:d.skipThrowException))&&void 0!==C&&C||h))throw new Error("No retries left.");return[3,8];case 5:return f=i.sent(),(null==(p=f)?void 0:p.message)?[4,(0,r.n)({message:p.message,isHtml:!0})]:[3,7];case 6:i.sent(),i.label=7;case 7:throw f;case 8:return[3,11];case 9:return(null==a?void 0:a.Parameters)?(m=a.Parameters,g=m.message,v=m.Text,y=new RegExp(/(<([^>]+)>)/gi),(_=!g||y.test(v)?v:g)?[4,(0,r.n)({message:_,isHtml:!0})]:[3,11]):[3,11];case 10:i.sent(),i.label=11;case 11:throw a;case 12:return[2]}}))}))}function c(e,t,n,i,r){return void 0===r&&(r=a),u((function(){return(0,o.lx)(e,t,n,i)}),r)}function l(e,t,n,i,r){return void 0===r&&(r=a),u((function(){return(0,o.zA)(e,t,n,i)}),r)}function d(e,t,n,i,r){return void 0===r&&(r=a),u((function(){return(0,o.yd)(e,t,n,i)}),r)}function h(e,t,n,i,r){return void 0===r&&(r=a),u((function(){return(0,o.wu)(e,t,n,i)}),r)}function f(e,t,n){void 0===n&&(n=!1);var i=e.toLowerCase();i in s&&!n||(s[i]=t)}},53235:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var i=n(58932);var r=n(53308);function o(e){return(0,r.lx)("calendar",{cid:e})}function a(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,o(e)];case 1:return[2,(n=t.sent(),{highlightPaidIssues:n.EnableHighlihtPaidIssues,enableCalendarView:n.EnableCalendarView,enableFullDateView:n.EnableFullDateView,enableListView:n.EnableListView,years:Object.keys(n.Years).map((function(e){return Number.parseInt(e,10)})).reduce((function(e,t){var i=n.Years[t];return e[t]=Object.keys(i).reduce((function(e,n){var r=i[parseInt(n,10)];return e[n]=Object.keys(r).reduce((function(e,i){var o=parseInt(i,10),a=new Date(t,parseInt(n,10)-1,o);return e[i]=function(e,t){return{disabledForPurchase:1===t.Dis,paid:1===t.P,issueDate:e,version:t.V}}(a,r[o]),e}),{}),e}),{}),e}),{})})]}var n}))}))}},17065:function(e,t,n){"use strict";n.d(t,{ES:function(){return c},FI:function(){return d},Ii:function(){return l},QP:function(){return u},SA:function(){return s},VV:function(){return h},kD:function(){return f},lW:function(){return p},pR:function(){return m},rs:function(){return a},ry:function(){return g}});var i=n(58932),r=n(53308),o=n(73690);function a(e,t){return(0,r.lx)("pagesMetadata",{issue:e,pageNumbers:t.join(",")})}function s(e){return(0,r.lx)("toc",e)}function u(e){return(0,r.lx)("layout",e)}function c(e){return(0,o.G4)("IssueInfo","GetIssueInfoById",{issueId:e})}function l(e){return(0,o.G4)("IssueInfo","GetIssueInfo",{issue:e})}function d(e,t){return(0,o.G4)("IssueInfo","GetIssueInfoByCid",{cid:e,issueDate:t})}function h(e){return(0,o.G4)("IssueInfo","GetIssueInfoByBookmark",{bookmarkId:e})}function f(e,t,n,i){return(0,o.G4)("IssueInfo","GetPageKeys",{issue:e,pageNumber:t,bookmark:n,preview:i})}function p(e){return(0,o.G4)("IssueInfo","GetIssueRuledPrice",{issueId:e})}function m(e){return(0,o._s)("issues","Confirm",{issueId:e})}function g(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,l(e)];case 1:return[2,(n=t.sent(),{issue:n.Issue.Issue,cid:n.Issue.CID,profileId:n.Issue.ProfileId,displayDate:n.Issue.IssueDateDisplayName,issueName:n.Newspaper.Name,isRightToLeft:n.Newspaper.IsRightToLeft,pagesCount:n.Pages})]}var n}))}))}},48912:function(e,t,n){"use strict";n.d(t,{dM:function(){return C},x$:function(){return m}});var i,r=n(58932),o=n(13981);!function(e){e[e.SingleIssue=2]="SingleIssue",e[e.SingleTitle=3]="SingleTitle"}(i||(i={}));var a=function(e,t){return e.filter((function(e){return e.Type===t})).reduce((function(e,t){return Object.entries(t.Pricing).forEach((function(t){var n=t[0],i=t[1].Total;e.push({price:i,currency:n})})),e}),[])},s=function(e){return{singleIssueProducts:a(e,i.SingleIssue),singleTitleProducts:a(e,i.SingleTitle)}},u=n(97781),c=n(25351);function l(e,t){var n=t.map(c.br);return{isFreeContent:e.IsFreeContent,requiredAuthenticatedUser:e.RequiredAuthenticatedUser,singleIssueProduct:n.find(u.nA),premiumProduct:n.filter(u.d8).find((function(e){return e.tags.indexOf("premium")>=0})),selectProduct:n.filter(u.d8).find((function(e){return e.tags.indexOf("selectPlan")>=0})),singleTitleProduct:n.find(u.nw)}}var d=n(43125),h=n(61445),f=n(46674),p=n(45235);function m(e){return e.Key?{key:e.Key,confirmationRequired:e.ConfirmationRequired}:null}function g(e){return{id:String(e.Id),primaryArticleId:"",regionId:e.RegionId,title:e.Title,text:e.Text,byline:e.Byline,rate:e.Rate,type:e.Type,contFromPage:e.ContFromPage,contFromReg:e.ContFromReg,contOnPage:e.ContOnPage,contOnReg:e.ContOnReg,image:e.Image&&{height:e.Image.Height,width:e.Image.Width,key:e.Image.Key,uid:e.Image.Uid}}}function v(e,t,n){var i,r,a=e.Newspaper.IsRightToLeft,s=t.PageNumber,u=s-1,c=s===e.Pages,l=0===u||c&&u%2==1?null:u%2==1?a?"right":"left":a?"left":"right",d=e.PagesInfo.find((function(e){return e.PageNumber===s})),p=n?m(n):null,v=s>1&&!p&&!((0,o.Lt)(h.pP)===f.D.On)&&!e.SubscriptionsInfo.IsFreeContent;return{pageNumber:s,pageName:t.PageName,expungeVersion:null!==(i=null==d?void 0:d.ExpungeVersion)&&void 0!==i?i:0,sectionName:t.SectionName,unhyphenatedSectionName:t.UnhyphenatedSectionName,spread:l,size:{width:t.Width,height:t.Height},pageKey:p,isLocked:v,imageMeta:null,articles:(null===(r=t.Articles)||void 0===r?void 0:r.map(g))||[]}}function y(e,t){if(!e.primaryArticleId)if(e.contFromReg||e.contOnReg){var n=e.id,i=new Map,r=function(e){e&&!i.has(e.regionId)&&(i.set(e.regionId,e),e.primaryArticleId&&(n=e.primaryArticleId),r(t.get(e.contOnReg||0)),r(t.get(e.contFromReg||0)))};r(e),i.forEach((function(e){e.primaryArticleId=n}))}else e.primaryArticleId=e.id}function _(e,t,n,i){var r=i.find((function(t){return t.sectionId===n&&t.primaryArticleId===e.primaryArticleId}));r?r.continuationRegions.push(e.regionId):i.push(function(e,t,n){return{sectionId:e,sectionName:t.sectionName,pageNumber:t.pageNumber,id:n.id,primaryArticleId:n.primaryArticleId,regionId:n.regionId,continuationRegions:[]}}(n,t,e))}function b(e){var t,n,i=null,o=-1,a=null,s=[];try{for(var u=(0,r.Ju)(e),c=u.next();!c.done;c=u.next()){var l=c.value;l.sectionId!==i&&(a=w(l,++o),s.push(a),i=l.sectionId),a&&!a.pageNumbers.includes(l.pageNumber)&&a.pageNumbers.push(l.pageNumber),s.push(l)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return s}function w(e,t){return{sectionId:e.sectionId,sectionIdx:t,sectionName:e.sectionName,pageNumbers:[]}}function C(e,t,n,i){var o,a,u,c,h,f,m,g,w,C=e.Issue.Issue,A=(0,d.Yb)(C),I=(0,d._x)(C),S=function(e,t){var n,i,o,a,s,u,c,l,h,f=[],m=[],g=new Map;try{for(var b=(0,r.Ju)(t.Pages||[]),w=b.next();!w.done;w=b.next()){var C=v(e,w.value);try{for(var A=(o=void 0,(0,r.Ju)(C.articles)),I=A.next();!I.done;I=A.next()){var S=I.value;g.set(S.regionId,S)}}catch(e){o={error:e}}finally{try{I&&!I.done&&(a=A.return)&&a.call(A)}finally{if(o)throw o.error}}f.push(C)}}catch(e){n={error:e}}finally{try{w&&!w.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}var P,x,T,k="",E=[];try{for(var M=(0,r.Ju)(f),D=M.next();!D.done;D=M.next()){if(h!==(C=D.value).sectionName)h=C.sectionName,P=C.sectionName,x=C.pageNumber,void 0,T=(0,p.xe)(P),k="".concat(T,"_").concat(x),E.push({id:k,name:h,pages:[C.pageNumber],hasArticles:!!C.articles.length});else{var N=E[E.length-1];N.pages.push(C.pageNumber),N.hasArticles=N.hasArticles||!!C.articles.length}try{for(var L=(c=void 0,(0,r.Ju)(C.articles)),V=L.next();!V.done;V=L.next())y(S=V.value,g),_(S,C,k,m)}catch(e){c={error:e}}finally{try{V&&!V.done&&(l=L.return)&&l.call(L)}finally{if(c)throw c.error}}}}catch(e){s={error:e}}finally{try{D&&!D.done&&(u=M.return)&&u.call(M)}finally{if(s)throw s.error}}var R=function(e){var t={width:e.MaxUnrestrictedFirstPageSize.W,height:e.MaxUnrestrictedFirstPageSize.H},n={width:e.MaxUnrestrictedPageSize.W,height:e.MaxUnrestrictedPageSize.H},i=e.Heights.map((function(e){return{width:null,height:e}})),r=e.MagnifierPageSizes.map((function(e){return{width:e.W,height:e.H}}));return{singleLayer:1===e.Issue.ImagesEngineVersion,maxFirstPageSize:t,maxNonFirstPageSize:n,allowedNonTiledSizes:i,allowedTiledSizes:r}}(e);return(0,d.Gr)(R,f),{pages:f,sections:E,refs:m}}(e,t),P=S.pages,x=S.sections,T=S.refs;return{issueKey:C,issueCidDateKey:A,issueId:e.Issue.IssueId,date:I,issueVer:t.Meta.IssueVer,expungeVersion:e.Issue.ExpungeVersion,issueVersion:t.Meta.IssueVersion,couldBeRead:e.CouldPotentiallyBeRead,numPages:e.Pages,rtl:e.Newspaper.IsRightToLeft,newspaper:{cid:e.Issue.CID,name:e.Newspaper.Name,mastheads:e.Newspaper.Mastheads?{whiteImageId:e.Newspaper.Mastheads.WhiteImageId,colorImageId:e.Newspaper.Mastheads.ColorImageId,width:e.Newspaper.Mastheads.Width,height:e.Newspaper.Mastheads.Height}:null,isoLanguage:e.Newspaper.ISOLanguage,locale:e.Newspaper.Culture},slugs:e.Slugs?{country:e.Slugs.Country,newspaper:e.Slugs.Newspaper}:{country:"",newspaper:""},pages:P,articleRefs:T,contentRefs:b(T),sections:x,layout:{version:e.Layout.LayoutVersion},smartFlow:{layoutValid:e.Layout.ValidForSmartFlow,enabled:e.Newspaper.EnableSmart},availableProducts:s(i),purchaseInfo:l(e.SubscriptionsInfo,n),sponsorInfo:e.Sponsor?{name:e.Sponsor.Name,logoUrl:e.Sponsor.LogoUrl,broughtBy:e.Sponsor.BroughtBy||e.Sponsor.Name}:null,restrictions:{rateLimitsInfo:{hasReachedIssueReadLimit:null!==(u=null===(a=null===(o=e.Restrictions)||void 0===o?void 0:o.RateLimitsInfo)||void 0===a?void 0:a.HasReachedIssueReadLimit)&&void 0!==u&&u,hasReachedDailyIssueReadLimit:null!==(f=null===(h=null===(c=e.Restrictions)||void 0===c?void 0:c.RateLimitsInfo)||void 0===h?void 0:h.HasReachedDailyIssueReadLimit)&&void 0!==f&&f,hasIssueReadLimitReachingWarning:null!==(w=null===(g=null===(m=e.Restrictions)||void 0===m?void 0:m.RateLimitsInfo)||void 0===g?void 0:g.HasIssueReadLimitReachingWarning)&&void 0!==w&&w}}}}},78872:function(e,t,n){"use strict";function i(e){return{regionId:e.RegionId,articleId:String(e.ArticleId),primaryArticleId:String(e.RootArticleId),hateIt:e.HateIt,likeIt:e.LikeIt,comments:e.Comments}}function r(e){return{pageNumber:e.PageNumber,articles:(e.Articles||[]).map(i)}}n.d(t,{S:function(){return r}})},62456:function(e,t,n){"use strict";var i;n.d(t,{p:function(){return i}}),function(e){e[e.Unknown=0]="Unknown",e[e.Denied=1]="Denied",e[e.Granted=2]="Granted",e[e.ConfirmationRequired=3]="ConfirmationRequired",e[e.PurchaseRequired=4]="PurchaseRequired"}(i||(i={}))},43715:function(e,t,n){"use strict";var i;n.d(t,{y:function(){return i}}),function(e){e[e.None=0]="None",e[e.ShortContent=1]="ShortContent",e[e.Images=2]="Images",e[e.Issue=4]="Issue",e[e.Publication=8]="Publication",e[e.Paragraphs=16]="Paragraphs",e[e.Related=32]="Related",e[e.Similars=64]="Similars",e[e.Access=128]="Access",e[e.Comments=256]="Comments",e[e.Votes=512]="Votes",e[e.AnalyticProfiles=1024]="AnalyticProfiles",e[e.Classification=2048]="Classification",e[e.Summary=4096]="Summary"}(i||(i={}))},90546:function(e,t,n){"use strict";var i,r;function o(e){return"image"===e.type}n.d(t,{M_:function(){return i},Q9:function(){return o},m7:function(){return r}}),function(e){e[e.None=0]="None",e[e.Bold=1]="Bold",e[e.Italic=2]="Italic",e[e.Link=3]="Link",e[e.Quote=4]="Quote",e[e.Uppercase=5]="Uppercase",e[e.Lowercase=6]="Lowercase"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Title=1]="Title",e[e.Subtitle=2]="Subtitle",e[e.SubtitleEmphasis=3]="SubtitleEmphasis"}(r||(r={}))},43125:function(e,t,n){"use strict";n.d(t,{Gr:function(){return o.G},Hd:function(){return i.H},M6:function(){return r.M6},PE:function(){return a.PE},TV:function(){return r.TV},TW:function(){return r.TW},Tm:function(){return r.Tm},Tq:function(){return a.Tq},XJ:function(){return r.XJ},Y5:function(){return r.Y5},Yb:function(){return r.Yb},_x:function(){return r._x},aV:function(){return i.a},bR:function(){return r.bR},pd:function(){return o.p},ph:function(){return r.ph},qT:function(){return r.qT},qY:function(){return a.qY},uw:function(){return a.uw}});var i=n(64517),r=n(79974),o=n(21994),a=n(70983)},41315:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var i=function(e){this.type=e}},70983:function(e,t,n){"use strict";n.d(t,{PE:function(){return i.P},Tq:function(){return a.T},qY:function(){return o.q},uw:function(){return r.u}});var i=n(73177),r=n(72424),o=n(99166),a=n(90531)},73177:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var i=n(58932),r=n(72424),o=n(41315),a=n(15869),s=a.v.fromNumber(281474976710656),u=function(e){function t(t,n){var i=e.call(this,r.u.Issue)||this;return i.issueId=t,i.articleNumber=n,i}return(0,i.C6)(t,e),t.prototype.toBinary=function(){var e=s.or(a.v.fromNumber(this.issueId));return(e=e.or(a.v.fromNumber(this.articleNumber).shiftLeft(32))).toNumber()},t.isValid=function(e){return e>=281474976710656&&e<562949953421312},t.parse=function(e){var n=a.v.fromNumber(e).or(s);return new t(n.extractBits(0,31),n.extractBits(32,47))},t}(o.f)},72424:function(e,t,n){"use strict";var i;n.d(t,{u:function(){return i}}),function(e){e.Issue="issue",e.Publication="publication"}(i||(i={}))},15869:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i=4294967296,r=0x8000000000000000,o=function(){function e(e,t){this._low=e,this._high=t}return e.fromInt=function(t){return new e(0|t,t<0?-1:0)},e.fromBits=function(t,n){return new e(t,n)},e.fromNumber=function(t){return isNaN(t)?this.zero:t<=-r?e.minValue:t+1>=r?e.maxValue:t<0?e.fromNumber(-t).negate():new e(t%i|0,t/i|0)},e.prototype.shiftLeft=function(t){if(0==(t&=63))return this;var n=this._low;if(t<32){var i=this._high;return e.fromBits(n<>>32-t)}return e.fromBits(0,n<>>t|n<<32-t,n>>t)}return e.fromBits(n>>t-32,n>=0?0:-1)},e.prototype.and=function(t){return e.fromBits(this._low&t._low,this._high&t._high)},e.prototype.or=function(t){return e.fromBits(this._low|t._low,this._high|t._high)},e.prototype.toNumber=function(){return this._high*i+this.getLowBitsUnsigned()},e.prototype.equals=function(e){return this._high===e._high&&this._low===e._low},e.prototype.add=function(t){var n=this._high>>>16,i=65535&this._high,r=this._low>>>16,o=65535&this._low,a=t._high>>>16,s=65535&t._high,u=t._low>>>16,c=0,l=0,d=0,h=0;return d+=(h+=o+(65535&t._low))>>>16,h&=65535,l+=(d+=r+u)>>>16,d&=65535,c+=(l+=i+s)>>>16,l&=65535,c+=n+a,c&=65535,e.fromBits(d<<16|h,c<<16|l)},e.prototype.subtract=function(e){return this.add(e.negate())},e.prototype.not=function(){return e.fromBits(~this._low,~this._high)},e.prototype.negate=function(){return this.equals(e.minValue)?e.minValue:this.not().add(e.one)},e.prototype.getLowBitsUnsigned=function(){return this._low>=0?this._low:i+this._low},Object.defineProperty(e,"zero",{get:function(){return e.fromInt(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"one",{get:function(){return e.fromInt(1)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"minValue",{get:function(){return e.fromBits(0,-2147483648)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"maxValue",{get:function(){return e.fromBits(-1,2147483647)},enumerable:!1,configurable:!0}),e.prototype.extractBits=function(t,n){if(isNaN(t)||isNaN(n)||t<0||n<0||t>n)throw new Error("invalid parameter");var i=e.one.shiftLeft(n-t+1).subtract(e.one).shiftLeft(t);return this.and(i).shiftRight(t).toNumber()},e}()},99166:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var i=n(58932),r=n(72424),o=n(41315),a=n(15869),s=a.v.fromNumber(4503599627370496),u=0x8000000000000,c=a.v.fromNumber(u),l=function(e){function t(t,n){var i=e.call(this,r.u.Publication)||this;return i.publicationId=t,i.articleNumber=n,i}return(0,i.C6)(t,e),t.prototype.toBinary=function(){var e=this.publicationId<=16777215,t=s.or(a.v.fromNumber(this.publicationId));return(t=e?t.or(a.v.fromNumber(this.articleNumber).shiftLeft(24)):(t=t.or(a.v.fromNumber(this.articleNumber).shiftLeft(32))).or(c)).toNumber()},t.isValid=function(e){return e>=4503599627370496&&e<9007199254740992},t.parse=function(e){var n=a.v.fromNumber(e),i=n.and(c).toNumber()===u?32:24;return new t(n.extractBits(0,i-1),n.extractBits(i,50))},t}(o.f)},90531:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var i=n(99166),r=n(73177),o=function(){function e(){}return e.fromPublication=function(e,t){return new i.q(e,t)},e.fromIssue=function(e,t){return new r.P(e,t)},e.parse=function(e){if(i.q.isValid(e))return i.q.parse(e);if(r.P.isValid(e))return r.P.parse(e);throw new TypeError("Article ID ".concat(e," is not valid"))},e.isValid=function(e){return i.q.isValid(e)||r.P.isValid(e)},e}()},2953:function(e,t,n){"use strict";n.d(t,{H:function(){return c},a:function(){return l}});var i=n(1766),r=n(80477),o=2/3,a=1,s=4,u=4;function c(e,t){if(i(e))return null;var n=Math.min(t.screenWidth,t.screenHeight),c=Math.max(t.screenWidth,t.screenHeight)*r.S,l=e.reduce((function(e,t){if(!t.size||null===t.size.width||null===t.size.height)return e;var i=n/t.size.width,r=t.size.height/t.size.width;if(t.size.height*i<=c&&i<=s&&re.rate)return{image:t,rate:l}}return e}),null);return(null==l?void 0:l.image)||null}function l(e){if(!(null==e?void 0:e.length))return null;for(var t=null,n=0,i=0,r=e;iu)){var a=o.size.width*o.size.height;n4)throw new Error("cid length exeeds 4 characters");if(!i(t))throw new TypeError("issuedDate has to be a Date");if(!o(n)&&!r(n))throw new TypeError("issueVersion has to be either null or undefined or a String or a Number");if(r(n)&&(n<0||n>99))throw new Error("issueVersion has to be a number in [0..99] range");if(o(n)&&n.length>2)throw new Error("issueVersion exeeds 2 characters length");var u=t.getFullYear(),c=a("".concat(t.getMonth()+1),2,"0"),l=a("".concat(t.getDate()),2,"0"),f=a("".concat(n),2,"0");return"".concat(e).concat(u).concat(c).concat(l).concat(d).concat(f).concat(h)}function p(e){return o(e)&&!(0,s.gP)(e)&&e.length===u&&e.substring(12,18)===d&&e.substring(20,26)===h}function m(e){if(!p(e))throw new Error("".concat(e," is not valid issue key"))}function g(e){return m(e),e.substring(0,12)}function v(e){return e&&e.length===c||m(e),e.substring(4,12)}function y(e){m(e);var t=parseInt(e.substring(4,8),10),n=parseInt(e.substring(8,10),10),i=parseInt(e.substring(10,12),10);return new Date(t,n-1,i)}function _(e){return e&&e.length===c||m(e),e.substring(0,4)}function b(e){return m(e),Number(e.slice(c+d.length,c+d.length+l))}function w(e,t){if((0,s.gP)(e))throw new Error("cid required");if(e.length>4)throw new Error("cid length exeeds 4 characters");if(!t)return"".concat(e,"latest");if(!i(t))throw new TypeError("issuedDate has to be a Date");var n=t.getFullYear(),r=a("".concat(t.getMonth()+1),2,"0"),o=a("".concat(t.getDate()),2,"0");return"".concat(e).concat(n).concat(r).concat(o)}function C(e){var t=e.getFullYear(),n=a("".concat(e.getMonth()+1),2,"0"),i=a("".concat(e.getDate()),2,"0");return"".concat(t).concat(n).concat(i)}function A(e){if(!e||8!==e.length)throw new Error("".concat(e," is not valid issue date string"));var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),i=parseInt(e.substring(6,8),10);return new Date(t,n-1,i)}function I(e){var t=v(e);return"".concat(t.substring(0,4),"-").concat(t.substring(4,6),"-").concat(t.substring(6))}},21994:function(e,t,n){"use strict";n.d(t,{G:function(){return i.G},p:function(){return i.p}});var i=n(2252)},2252:function(e,t,n){"use strict";n.d(t,{G:function(){return u},p:function(){return r}});var i=n(91445);function r(e){return"".concat(Math.floor(e.width),"x").concat(Math.floor(e.height))}function o(e){return{singleLayer:e.singleLayer,maxUnrestrictedScale:e.maxUnrestrictedScale||0,sizes:e.sizes.map((function(e){return e.size})),tiled:e.sizes.reduce((function(e,t){return t.tiled&&(e[r(t.size)]=!0),e}),{}),scales:e.sizes.reduce((function(e,t){return e[r(t.size)]=t.scale,e}),{})}}function a(e,t){var n=(0,i.wC)(e,t),r=(0,i.EZ)(e.size,t.maxUnrestrictedPageSize,t.nonTiledSizes);return o({singleLayer:t.singleLayer,sizes:n,maxUnrestrictedScale:r})}function s(e,t,n){var r=(0,i.st)((0,i.wC)(e,n),(0,i.wC)(t,n)),a=r.left,s=r.right,u=(0,i.EZ)(e.size,n.maxUnrestrictedPageSize,n.nonTiledSizes),c=(0,i.EZ)(t.size,n.maxUnrestrictedPageSize,n.nonTiledSizes);return{left:o({singleLayer:n.singleLayer,sizes:a,maxUnrestrictedScale:u}),right:o({singleLayer:n.singleLayer,sizes:s,maxUnrestrictedScale:c})}}function u(e,t){for(var n=e.singleLayer,i=e.maxFirstPageSize,r=e.maxNonFirstPageSize,o=e.allowedNonTiledSizes,u=e.allowedTiledSizes,c=0;ct.width||i.height>t.height?n:a(e,i)}),0)}},56164:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var i="@pressreader/content"},51880:function(e,t,n){"use strict";n.d(t,{Jh:function(){return Pe},W$:function(){return ft},EW:function(){return Me},u2:function(){return _},Gq:function(){return it},D0:function(){return rt},g$:function(){return g},g4:function(){return Fe},Tk:function(){return y},AZ:function(){return ht},Ly:function(){return Ae},q6:function(){return Ce},OL:function(){return we},z4:function(){return _e},GM:function(){return be},V2:function(){return te},Wt:function(){return K},GG:function(){return oe},sF:function(){return Se},rx:function(){return ye},qe:function(){return ve}});var i=n(13981),r=n(56164),o=r.p+"/issues",a=n(44229),s=n(58932),u=n(74010),c=n(89103),l=n(43566),d=n(33260),h=n(43125);function f(){for(var e=[],t=0;t0&&(i=window.setTimeout((function(){return n(new Error(u[r.Timeout]))}),e)),window.navigator.geolocation.getCurrentPosition((function(e){window.clearTimeout(i),t({lat:e.coords.latitude,lng:e.coords.longitude})}),(function(e){window.clearTimeout(i);var t=u[e.code];e.code!==r.Unknown&&e.code!==r.PositionUnavailable||(t+=" ".concat(e.message)),n(new Error(t))}),{timeout:e,enableHighAccuracy:!0,maximumAge:0})}))]}}))}))}function d(){return(0,o.sH)(this,void 0,void 0,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,c()];case 1:return[2,"denied"===e.sent().state]}}))}))}function h(){return(0,o.sH)(this,void 0,void 0,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,c()];case 1:return[2,"prompt"===e.sent().state]}}))}))}function f(){return(0,o.sH)(this,void 0,void 0,(function(){var e;return(0,o.YH)(this,(function(t){switch(t.label){case 0:return[4,c()];case 1:return"denied"===(e=t.sent()).state?[2,!1]:"granted"===e.state?[2,!0]:[2,Promise.race([new Promise((function(e){navigator.geolocation.getCurrentPosition((function(){return e(!0)}),(function(t){return e(!1)}))})),new Promise((function(t){e.onchange=function(){return t("granted"===e.state)}}))])]}}))}))}},2111:function(e,t,n){"use strict";function i(e,t){return!(Math.max(e.left,t.left)>=Math.min(e.left+e.width,t.left+t.width))&&Math.max(e.top,t.top)=n&&o>=r?{left:n,top:r,width:i-n,height:o-r}:null}function o(e,t){var n=Math.max(e.left,t.left),i=Math.min(e.left+e.width,t.left+t.width),r=Math.max(e.top,t.top),o=Math.min(e.top+e.height,t.top+t.height);return i>=n&&o>=r?{left:Math.max(t.left-e.left,0),top:Math.max(t.top-e.top,0),width:i-n,height:o-r}:null}function a(e,t,n){var i=Math.max(Math.min(e.left,t.left),n.left);if(Math.min(Math.max(e.left+e.width,t.left+t.width),n.left+n.width)=e.left&&t.x<=e.left+e.width&&t.y>=e.top&&t.y<=e.top+e.height}function u(e,t){var n=e.left,i=e.width,r=t.x;return Math.min(Math.abs(r-n),Math.abs(r-n-i))}function c(e,t){return t.top>=e.top&&t.top+t.height<=e.top+e.height}function l(e,t){return{top:e.top-t/2,left:e.left-t/2,width:e.width+t,height:e.height+t}}function d(e,t,n){return void 0===n&&(n=!0),n?e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height:!(Math.round(e.left-t.left)||Math.round(e.top-t.top)||Math.round(e.width-t.width)||Math.round(e.height-t.height))}n.d(t,{HY:function(){return i},IJ:function(){return a},Im:function(){return o},KZ:function(){return u},OU:function(){return c},SV:function(){return r},Uc:function(){return s},fT:function(){return l},oM:function(){return d}})},1724:function(e,t,n){"use strict";function i(e,t,n){void 0===n&&(n=!0);for(var i=null,r=Number.MAX_VALUE,o=0,a=t;os.width)continue;if(s.height&&e.height>s.height)continue}var u=(s.width?Math.abs(s.width-e.width)/e.width:1)*(s.height?Math.abs(s.height-e.height)/e.height:1);ua.width||e.height>a.height)){var s=Math.abs(a.width-e.width)/e.width*(Math.abs(a.height-e.height)/e.height);s0&&(i="up"===n?i:i-1),t[i]}function o(e,t,n){var i=e.width*t,r=e.height*t;return n&&(i=Math[n](i),r=Math[n](r)),{width:i,height:r}}n.d(t,{DA:function(){return i},F3:function(){return r},_6:function(){return o}})},42906:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var i=n(29978),r=n(65726),o=n(28809),a=(0,i.Mz)(o._t,(function(e){var t=e(r.SC,!1),n=e(r.C7,!1);return{enabled:t&&!n}}))},92716:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var i=n(29978),r=n(78698),o=n(28809),a=n(80835),s=(0,i.Mz)(o._t,r.nw,(function(e,t){var n,i=!(t===a.Z.Pervasive),r=e("UI.Comments.enable",!0)&&(null===(n=e("features.comment.enabled"))||void 0===n||n);return i&&r}))},43755:function(e,t,n){"use strict";n.d(t,{N:function(){return c}});var i=n(29978),r=n(78698),o=n(28809),a=n(80835),s=n(16343),u=n(68565),c=(0,i.Mz)(o._t,r.nw,(function(e,t){var n=t!==a.Z.Voyager,i=e("radio",{enable:!0}).enable,r=e("UI.Listen.enable",!0),o=!(s.j.mobile&&(0,u.l)())||e("features.views.article.optionsTool.showListenOnMobile.enabled",!0);return n&&i&&r&&o}))},18978:function(e,t,n){"use strict";n.d(t,{W:function(){return m}});var i=n(29978),r=n(90732),o=n(78698),a=n(28809),s=n(29178),u=n(30657),c=n(80835),l=n(18752),d=n(11677),h=n(42906),f=(0,s.g)(u.gN);function p(e){return{width:e.w,height:e.h}}var m=(0,i.Mz)(a._t,o.nw,l.L9,l.Fq,h.c,(function(e,t,n,i,o){var a=[];o.enabled||a.push(u.gN.Books);var s=t===c.Z.Pervasive,l=e("pageSizes.firstPageSizes")||[],h=e("pageSizes.pageSizes")||[],m=!s&&e("features.search.tabs.enabled",!0),g=e("features.search.tabs.available",Object.values(u.gN).join(",")).split(",").filter(f),v=r(g,a),y=e("features.search.tabs.default");return{defaultTab:f(y)?y:u.gN.All,tabsEnabled:m,tabsAvailable:v,firstPageSizes:l.map(p),pageSizes:h.map(p),imageServers:{imageDownload:e("imageServer.download.url",""),thumbs:e("imageServers.thumbs",[""])[0]},filtersCollapsible:[d.a.Small,d.a.XSmall].indexOf(n)>=0&&i===d.Z.Portrait,applyFiltersManually:t===c.Z.Pervasive,articleImagesSupported:t!==c.Z.Pervasive}}))},97471:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var i=n(29978),r=n(28809),o=(0,i.Mz)(r._t,(function(e){return e("ui.Sharing.enable",!0)&&e("UI.SharingMenu",[]).some((function(e){return e.enabled}))}))},90185:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var i=n(15397),r=n(45221),o=n(80704);function a(e,t){return function(e,t,n){var i=new r.A(e);return i.setPath("".concat(i.path()).concat(t)),n&&(0,o.u)(n,(function(e,t){null!=e&&i.addQueryParam(t,e)})),i.toString()}((0,i.Ct)("imageServer.download.url",""),e,t)}},7368:function(e,t,n){"use strict";n.d(t,{Af:function(){return y},Bs:function(){return m},F6:function(){return p},Fv:function(){return d},K6:function(){return c},N5:function(){return l},N6:function(){return u},OZ:function(){return g},TK:function(){return f},Ux:function(){return v},sP:function(){return h}});var i=n(58932),r=n(1729),o=(0,i.Cl)({},r);function a(e,t,n){if(t>0&&e.width>0){var i=100*t/e.width;return Math.min(i,n)}return 0}function s(e,t,n){if(t>0&&e.height>0){var i=100*t/e.height;return Math.min(i,n)}return 0}function u(e,t,n,i,r){return l(e,t,n,Math.floor(100*r/i))}function c(e,t,n,i,r){return l(e,t,n,Math.floor(100*r/i))}function l(e,t,n,i,r){return"string"==typeof e?o.getPictureUrlByIssueForScale(e,t,n,i,r):o.getPictureUrlByIssueForScale(e.issue,t,n,i,r)}function d(e,t,n,i){return void 0===n&&(n=1),void 0===i&&(i=!1),e?"string"==typeof e?o.getThumbUrlByIssueForWidth(e,t,n,i):o.getThumbUrlByIssueForWidth(e.issue,t,n,i):null}function h(e,t,n,i){return void 0===n&&(n=1),void 0===i&&(i=!1),"string"==typeof e?o.getThumbUrlByCidForWidth(e,t,n,i):e.issueInfo?d(e.issueInfo,t,n,i):o.getThumbUrlByCidForWidth(e.cid,t,n,i)}function f(e,t,n,i){return void 0===i&&(i=1),o.getThumbUrlByCidAndDateForWidth(e,t,n,i)}function p(e,t,n,i){return o.getThumbUrlForScale(e,t,n,i)}function m(e,t,n){return o.getPageImageScale(e,t,n)}function g(e,t,n,i){return o.getThumbUrlByRegionKey(e,t,n,i)}function v(e){var t=null;if(e)for(var n=0,i=e;n10||r.Width/r.Height>10)){var o=r.Width/r.Height;if(o>.7&&o<2){var u=a({width:r.Width},600,400),c=s({height:r.Height},120,400);if(u<=0||c<=0)continue;if(null===t){t=r;continue}if(r.Width>t.Width||r.Height>t.Height){t=r;continue}}}}return t}function y(e,t,n){var i=function(e,t,n,i){return"string"==typeof e?o.getFirstPageThumbUrlByIssueForWidth(e,t,1,i):o.getFirstPageThumbUrlByIssueForWidth(e.issue,t,1,i)}(e,t,0,!0);return i&&n&&(i+="&x=".concat(n)),i}},1729:function(e,t,n){"use strict";n.r(t),n.d(t,{getFirstPageThumbUrlByIssueForWidth:function(){return v},getPageImageScale:function(){return C},getPageImageUrl:function(){return w},getPictureUrlByIssueForScale:function(){return b},getThumbUrlByCidAndDateForHeight:function(){return p},getThumbUrlByCidAndDateForWidth:function(){return m},getThumbUrlByCidForHeight:function(){return f},getThumbUrlByCidForWidth:function(){return h},getThumbUrlByIssueForHeight:function(){return y},getThumbUrlByIssueForWidth:function(){return g},getThumbUrlByRegionKey:function(){return d},getThumbUrlForScale:function(){return _}});var i=n(58932),r=n(2291),o=n(1791),a=n(2838),s=n(77394),u=n(15397),c=o((function(e,t){var n=s((0,i.fX)((0,i.fX)([],e,!0),t,!0).map((function(e){return e.w})));return a(n,(function(e,t){return e>t}))}));function l(){return(0,u.Ct)("imageServers.thumbs",[])[0]}function d(e,t,n,i){var r=l();if(r){var o=new URLSearchParams;return o.set("regionKey",e),t&&o.set("file",t),void 0!==n&&o.set("scale",n.toString()),i&&o.set("ver",i),"".concat(r,"?").concat(o.toString())}}function h(e,t,n,i){void 0===n&&(n=1),void 0===i&&(i=!1);var r=l(),o="";return r?(i&&(t*=2,o="&retina=2"),t=I(t),"".concat(r,"?cid=").concat(e,"&page=").concat(n||1,"&width=").concat(t).concat(o)):null}function f(e,t,n){void 0===n&&(n=1);var i=l();return i?"".concat(i,"?cid=").concat(e,"&page=").concat(n,"&height=").concat(t):null}function p(e,t,n,i,r){void 0===i&&(i=1),void 0===r&&(r=!1);var o=l();if(!o)return null;var a="";if("string"!=typeof t){var s=t.getMonth()+1,u=t.getDate();a=t.getFullYear()+(s<10?"0":"")+s+(u<10?"0":"")+u}else a=t;var c="";return r&&(n*=2,c="&retina=2"),"".concat(o,"?cid=").concat(e,"&date=").concat(a,"&page=").concat(i,"&height=").concat(n).concat(c)}function m(e,t,n,i){void 0===n&&(n=160),void 0===i&&(i=1);var r=l();if(!r)return null;var o="";if("string"!=typeof t){var a=t.getMonth()+1,s=t.getDate();o=t.getFullYear()+(a<10?"0":"")+a+(s<10?"0":"")+s}else o=t;return"".concat(r,"?cid=").concat(e,"&date=").concat(o,"&page=").concat(i,"&width=").concat(n)}function g(e,t,n,i){var r=l();if(!r)return null;var o="";return i&&(t*=2,o="&retina=2"),t=I(t),"".concat(r,"?file=").concat(e,"&page=").concat(n||1,"&width=").concat(t).concat(o)}function v(e,t,n,i){var o=l();if(!o)return null;var a="";return i&&(t*=2,a="&retina=2"),t=function(e){var t=e,n=(0,u.Ct)("pageSizes.pageSizes",[]),i=(0,u.Ct)("pageSizes.firstPageSizes",[]),o=c(n,i);o.length&&(t=o.find((function(t){return t>e}))||r(o));return t}(t),"".concat(o,"?file=").concat(e,"&page=").concat(n||1,"&width=").concat(t).concat(a)}function y(e,t,n,i){void 0===n&&(n=1),void 0===i&&(i=!1);var o=l();if(!o)return null;var a="";return i&&(t*=2,a="&retina=2"),t=function(e){var t=e,n=(0,u.Ct)("pageSizes.pageSizes",[]).filter((function(e){return e.h>0}));if(n.length){var i=n.find((function(t){return t.h>e}));t=i?i.h:r(n).h}return t}(t),"".concat(o,"?file=").concat(e,"&page=").concat(n,"&height=").concat(t).concat(a)}function _(e,t,n,i){var r=l();return r?"".concat(r,"?file=").concat(e,"&page=").concat(n||1,"&scale=").concat(t).concat(i?"&ver=".concat(i):""):null}function b(e,t,n,i,r){var o=l();return o?"".concat(o,"?regionguid=").concat(t,"&scale=").concat(i,"&file=").concat(e,"®ionKey=").concat(n).concat(r?"&ver=".concat(r):""):null}function w(e,t,n,i,r){var o=A(t,n,i.width,i.height);if(!o)return null;var a=(0,u.Ct)("imageServers.pages",[])[0];return a?"".concat(a,"?file=").concat(e,"&page=").concat(t,"&scale=").concat(o).concat(r?"&layer=".concat(r):""):null}function C(e,t,n){return A(e,t,n.width,n.height)}function A(e,t,n,i){var r,o,a=t.width/100,s=t.height/100;n&&n>0&&(r=Math.floor(n/a)),i&&i>0&&(o=Math.floor(i/s));var c=(0,u.Ct)("pageSizes.pageSizes")||[],l=(0,u.Ct)("pageSizes.firstPageSizes")||[],d=[c];1===e&&d.push(l);var h=0;if(r&&n)for(var f=0,p=d;f=0;m--)if((C=b[m].w)&&!(C>n)){var g=Math.floor(C/a);g>r||(w=b[m].h)&&(g=Math.min(g,Math.floor(w/s)))>r||(h=Math.max(h,g))}var v=0;if(o&&i)for(var y=0,_=d;y<_.length;y++){var b;for(m=(b=_[y]).length-1;m>=0;m--){var w;if((w=b[m].h)&&!(w>i)){var C,A=Math.floor(w/s);A>o||(C=b[m].w)&&(A=Math.min(A,Math.floor(C/a)))>o||(v=Math.max(v,A))}}}return Math.min(h||v,v||h)}function I(e){var t=e,n=(0,u.Ct)("pageSizes.pageSizes",[]).filter((function(e){return e.w>0}));if(n.length){var i=n.find((function(t){return t.w>e}));t=i?i.w:r(n).w}return t}},80708:function(e,t,n){"use strict";n.d(t,{J:function(){return r},p:function(){return i}});var i="integrations-zotero",r=500},30212:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var i=n(58932),r=new(n(69463).B);function o(e){return e instanceof Error}function a(e){return null==e?"":o(e)?function(e){return"".concat(e.message,".\nStack: ").concat(e.stack)}(e):"object"==typeof e?(t=e,JSON.stringify(t,null,4)):String(e);var t}function s(e){for(var t,n=[],s=1;s=0&&(t.hash=e.slice(n),e=e.slice(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.slice(i),e=e.slice(0,i)),e&&(t.pathname=e)}return t}(e):e),{state:t,key:a()})}function A(e){return[{state:(0,r.tw)(e.state),key:e.key},(c=e,"string"==typeof c?c:(t=c,n=t.pathname,i=void 0===n?"/":n,o=t.search,a=void 0===o?"":o,s=t.hash,u=void 0===s?"":s,a&&"?"!==a&&(i+="?"===a.charAt(0)?a:"?"+a),u&&"#"!==u&&(i+="#"===u.charAt(0)?u:"#"+u),i))];var t,n,i,o,a,s,u,c}window.addEventListener("popstate",(function(){w("POP")})),c.replaceState({state:{},key:a()},"")},60019:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},Go:function(){return d},Jf:function(){return l},Pp:function(){return s},_n:function(){return h},lJ:function(){return o},tI:function(){return u}});var i=n(60573),r=n(53269),o=null,a={},s=function(e){o=e},u=function(e,t){var n=a[e]||{};return i(t,(function(e,t,i){return"stateLess"in(n[i]||{})?e.stateLessParams[i]=t:e.stateParams[i]=t,e}),{stateParams:{},stateLessParams:{}})},c=function(e,t){a[e]=t},l=function(e,t){return void 0===t&&(t={}),t.viewName=e,r.UN.generateUrl(t).then((function(e){return e&&e.url||""}))},d=!0,h=function(e){d=e}},12730:function(e,t,n){"use strict";n.d(t,{KZ:function(){return o},fJ:function(){return r}});var i={};function r(e,t,n,r){if(i[e])throw new Error("view name ".concat(e," was already registered in viewRegistry"));i[e]={load:t,component:n,fallback:r}}function o(e){return i[e]}},27602:function(e,t,n){"use strict";n.d(t,{gN:function(){return R},sh:function(){return F},r:function(){return C},Lm:function(){return A},DI:function(){return T},qF:function(){return k},TU:function(){return P},Ng:function(){return I},bv:function(){return S},Yr:function(){return O},P4:function(){return Y},cl:function(){return X},FL:function(){return U},aq:function(){return W},SP:function(){return N},PX:function(){return B},D0:function(){return _},so:function(){return b},Vp:function(){return he},SG:function(){return ge},Lr:function(){return fe},Ae:function(){return _e},zo:function(){return me},Do:function(){return we},zq:function(){return pe},RC:function(){return M},r7:function(){return w},By:function(){return z},cQ:function(){return x}});var i,r=n(13981),o="@pressreader/navigation-core",a=n(58932),s=n(78698),u=n(89103),c=n(76082),l=function(e,t){return(0,a.Cl)((0,a.Cl)({},e),{hash:t})},d=function(){for(var e=[],t=0;t0})),C=n(44834),A=n(56880),I=n(30212),S=n(88960);function P(e){var t,n=e.id,i=e.isCancelled,r=void 0===i||i,a=e.result,s=void 0===a?void 0:a,u=e.closeParent,c=void 0===u||u;return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,C.Lt)(y,{id:n})];case 1:return t=e.sent(),[4,(0,C.yJ)(d({id:n,isCancelled:r,result:s}))];case 2:return e.sent(),(null==t?void 0:t.parentId)&&c?[4,(0,C.yJ)(l({id:t.parentId,result:s,isCancelled:r}))]:[3,4];case 3:e.sent(),e.label=4;case 4:return[2]}}))}function x(e){var t,n,i,r,a;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return t=e.payload,n=t.id,i=t.result,r=t.isBack,a=t.isCancelled,[4,(0,C.T1)(P,{id:n,isCancelled:a,result:i,closeParent:!r})];case 1:return o.sent(),[2]}}))}function T(e){var t=e.id;return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,C.T1)(P,{id:t,isCancelled:!0,result:void 0,closeParent:!0})];case 1:return e.sent(),[2]}}))}function k(e,t){var n,i,r,a,s,c,d;return(0,o.YH)(this,(function(h){switch(h.label){case 0:return n=(0,S.A)(),[4,(0,C.yJ)(u({popup:(0,o.Cl)((0,o.Cl)({},e),{id:n})}))];case 1:if(h.sent(),!(null==t?void 0:t.onOpened))return[3,5];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,(0,C.Zy)(t.onOpened,n)];case 3:return i=h.sent(),[3,5];case 4:return r=h.sent(),(0,I.z)("Error running onOpened saga for ".concat(e.name,"."),r),[3,5];case 5:return[4,(0,A.l)(l,(function(e){return e.payload.id===n}))];case 6:if(s=h.sent(),a={popupId:n,cancelled:!0===s.payload.isCancelled,data:s.payload.result},c=!0,!(null==t?void 0:t.onClosing))return[3,10];h.label=7;case 7:return h.trys.push([7,9,,10]),[4,t.onClosing(a)];case 8:return c=!1!==h.sent(),[3,10];case 9:return d=h.sent(),(0,I.z)("Error running onClosing saga for ".concat(e.name),d),c=!1,[3,10];case 10:return c?[4,x(s)]:[3,12];case 11:return h.sent(),[3,13];case 12:return[3,5];case 13:return i?[4,(0,C.ZT)(i)]:[3,15];case 14:h.sent(),h.label=15;case 15:return[2,a]}}))}function E(e,t){var n;return(0,o.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,C.Lt)(y,{id:e})];case 1:return(n=i.sent())?[4,(0,C.yJ)(c({popup:(0,o.Cl)((0,o.Cl)({},n),t)}))]:[2];case 2:return i.sent(),[2]}}))}i.bX.addFeature(r,h)},80606:function(e,t,n){"use strict";n.d(t,{Z_:function(){return I},_E:function(){return h},zU:function(){return x},qn:function(){return c},jX:function(){return f},NJ:function(){return l},jA:function(){return A},dg:function(){return d},Dh:function(){return P},JB:function(){return u},i3:function(){return _},Io:function(){return v},d3:function(){return S}});var i=n(13981),r="@pressreader/popups-legacy",o=n(58932),a=n(89103),s="@pressreader/popups-legacy/",u=(0,a.lQ)("".concat(s,"open_dialog")),c=(0,a.lQ)("".concat(s,"close_dialog_request")),l=(0,a.lQ)("".concat(s,"dialog_close_done")),d=(0,a.lQ)("".concat(s,"open_contextmenu")),h=(0,a.lQ)("".concat(s,"close_contextmenu_request")),f=(0,a.lQ)("".concat(s,"contextmenu_close_done")),p=(0,a.vy)({popups:[]},(0,a.po)(d,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{popups:(0,o.fX)((0,o.fX)([],e.popups,!0),[n.menu],!1)})})),(0,a.po)(f,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{popups:e.popups.filter((function(e){return e.id!==n.id}))})})),(0,a.po)(u,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{popups:(0,o.fX)((0,o.fX)([],e.popups,!0),[n.dialog],!1)})})),(0,a.po)(l,(function(e,t){var n=t.payload;return(0,o.Cl)((0,o.Cl)({},e),{popups:e.popups.filter((function(e){return e.id!==n.id}))})}))),m=n(29978),g=n(15520),v=(0,m.Mz)((function(e){return e[r]}),(function(e){return e.popups})),y=(0,m.Mz)(v,(function(e,t){return t}),(function(e,t){return e.find((function(e){return e.id===t}))})),_=(0,m.Mz)(v,(function(e){return e.filter((function(e){return e.type===g.n.Dialog}))})),b=n(44834),w=n(56880),C=n(88960);function A(e){var t;return(0,o.YH)(this,(function(n){switch(n.label){case 0:return t=(0,C.A)(),[4,(0,b.yJ)(d({menu:{type:g.n.ContextMenu,id:t,parentId:e.parentMenuId,name:e.name,context:e.context,position:e.position,positionCalculationStrategy:e.positionCalculationStrategy}}))];case 1:return n.sent(),[2,t]}}))}function I(e,t){var n;return(0,o.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,b.Lt)(y,e)];case 1:return(null==(n=i.sent())?void 0:n.type)!==g.n.ContextMenu?[2]:[4,(0,b.yJ)(f({id:e,back:t.back}))];case 2:return i.sent(),t.back?[3,4]:n.parentId?[4,(0,b.yJ)(h({id:n.parentId,cancelled:!0}))]:[3,4];case 3:i.sent(),i.label=4;case 4:return[2]}}))}function S(e){return(0,o.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,w.l)(h,(function(t){return t.payload.id===e}))];case 1:return[2,t.sent()]}}))}function P(e,t,n){var i;return void 0===n&&(n=!0),(0,o.YH)(this,(function(r){switch(r.label){case 0:return i=(0,C.A)(),[4,(0,b.yJ)(u({dialog:{type:g.n.Dialog,id:i,name:e,context:t,supportNativeScroll:n}}))];case 1:return r.sent(),[2,i]}}))}function x(e){return(0,o.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,b.yJ)(l({id:e}))];case 1:return t.sent(),[2]}}))}i.bX.addFeature(r,p)},15520:function(e,t,n){"use strict";var i;n.d(t,{n:function(){return i}}),function(e){e[e.ContextMenu=0]="ContextMenu",e[e.Dialog=1]="Dialog"}(i||(i={}))},62444:function(e,t,n){"use strict";var i;n.d(t,{W:function(){return i}}),function(e){e[e.Center=0]="Center",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Top=3]="Top",e[e.Bottom=4]="Bottom",e[e.ScreenCenter=10]="ScreenCenter",e[e.ScreenLeft=11]="ScreenLeft",e[e.ScreenRight=12]="ScreenRight",e[e.ScreenTop=13]="ScreenTop",e[e.ScreenBottom=14]="ScreenBottom",e[e.Auto=15]="Auto"}(i||(i={}))},33260:function(e,t,n){"use strict";n.d(t,{KT:function(){return s},qI:function(){return a},St:function(){return o}});var i=n(89103),r="@pressreader/purchase/",o=(0,i.lQ)("".concat(r,"purchase_done")),a=(0,i.lQ)("".concat(r,"issue_purchase_request_done")),s=(0,i.lQ)("".concat(r,"issue_purchase_request"))},20974:function(e,t,n){"use strict";n.d(t,{S:function(){return l},u:function(){return c}});var i=n(31555),r=n(5059),o=n(97556),a=n(83421),s=function(e){var t=["fli",e.className,"combobox-item"],n=(0,r.useId)(),s=(0,r.useContext)(a.L),u=(null==s?void 0:s.selectedItemId)===n,c=e.onClick,l=(0,r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),c(),null==s||s.close()}),[c,s]);return(0,i.jsx)("li",{role:"none",className:"combobox-item-wrapper ".concat(u?"focused":""),children:(0,i.jsx)(o.o,{id:n,role:"option","aria-selected":u,onClick:l,tabIndex:-1,className:t.join(" "),children:e.children})})},u=(0,r.createContext)(null);function c(){return(0,r.useContext)(u)}var l=function(e){var t=e.inputRef,n=e.onClose,o=e.children,a=(0,r.useMemo)((function(){return{close:n,itemAs:s,searchInputRef:t}}),[n,t]);return(0,i.jsx)(u.Provider,{value:a,children:o})}},85834:function(e,t,n){"use strict";n.d(t,{O:function(){return v}});var i=n(58932),r=n(31555),o=n(5059),a=n(85387),s=n(59148),u=n(33005),c=n(81832),l=n(27602),d=n(64404),h=n(82666),f=n(99529),p=n(83421),m=n(20974),g=n(70317),v=function(e){var t=e.autoFocus,n=e.hasCancelButton,v=e.onChange,y=e.onSearch,_=e.onClose,b=(0,a.wA)(),w=(0,o.useRef)(null),C=(0,a.d4)(s.V),A=(0,a.d4)(h.iN),I=(0,a.d4)(l.SG),S=(0,a.d4)(l.zo),P=(0,a.d4)(h.Dm),x=(0,a.d4)(h.bg),T=(0,m.u)();T&&(T.searchInputRef=w);var k=(0,i.zs)((0,o.useState)(!1),2),E=k[0],M=k[1],D=E&&C.booleanSearchEnabled&&!C.advancedSearchInPopup&&A,N=(0,o.useMemo)((function(){return D&&E}),[D,E]),L=(0,i.zs)((0,o.useState)(P),2),V=L[0],R=L[1];(0,o.useEffect)((function(){var e;R(P),C.booleanSearchEnabled||b((0,f.$2)({term:P})),!A&&E&&(null===(e=w.current)||void 0===e||e.focus())}),[b,P,C.booleanSearchEnabled,A,w,E]),(0,d.C)((function(){(null==I?void 0:I.id)!==(null==S?void 0:S.id)&&(null==_||_())}),[null==I?void 0:I.id,null==S?void 0:S.id,_]);var H=(0,o.useCallback)((function(e,t){t||M(!0),R(C.booleanSearchEnabled?P:e),v&&v(e),P.trimEnd()!==e.trimEnd()&&b((0,f.$2)({term:e}))}),[v,R,C.booleanSearchEnabled,P,b,M]),F=(0,o.useCallback)((function(){M(!1),null==_||_()}),[M,_]),B=(0,o.useCallback)((function(){""===P?null==F||F():(v&&v(""),b((0,f.$2)({term:""})))}),[b,v,P,F]),z=(0,o.useCallback)((function(){""!==P&&(null==y||y(P,x),null==_||_())}),[y,_,P,x]),O=(0,o.useCallback)((function(){C.advancedSearchInPopup?(b((0,u.jT)({query:window.location.search})),null==_||_()):(E||M(!0),b((0,f.qM)()))}),[b,C.advancedSearchInPopup,_,E,M]),j=(0,o.useCallback)((function(){M(!0)}),[M]);return(0,r.jsx)("div",{className:"topbar-search ".concat(D?"advsearch-open":"results-open"),children:(0,r.jsxs)(p._,{value:V,ref:w,onChange:H,onSubmit:z,onClose:F,onReset:B,onFocus:t?j:void 0,onClick:t?void 0:j,autoFocus:t,options:{hasReset:!0},hasAdvancedSearchSwitch:C.hasAdvancedSearchSwitch,hasCancelButton:n,onAdvancedSearch:O,disabled:N,opened:E,allowUnfocus:e.allowUnfocus,children:[!D&&(0,r.jsx)(g.S,{inputRef:w,onClose:F,onAdvancedSearch:O}),D&&(0,r.jsx)(c.C,{onSearch:z,booleanSearchMode:!0})]})})}},70317:function(e,t,n){"use strict";n.d(t,{S:function(){return M}});var i=n(31555),r=n(5059),o=n(85387),a=n(78698),s=n(51880),u=n(43125),c=n(27602),l=n(12705),d=n(22496),h=n(82666),f=n(81779),p=n(13931),m=n(41002),g=n(97556),v=n(85738),y=function(e){var t=e.title,n=e.onClick,r=e.className,o=(0,v.W)("fli fli-action",r);return(0,i.jsx)(g.o,{className:o,role:"option",tabIndex:-1,onClick:n,children:(0,i.jsx)("div",{className:"fli-in",children:(0,i.jsx)("div",{className:"flic flic--fit",children:(0,i.jsx)("div",{className:"flic-in",children:(0,i.jsx)("div",{className:"title",children:t})})})})})},_=function(){var e=(0,o.d4)(h.Dm),t=(0,o.d4)(c.SG),n=(0,o.d4)(a.uF);if(!e||!t||!n)return null;var r=(0,f.P)(t)&&t.issueKey,s=(0,p.f)(t)||r;return r||s?(0,i.jsx)("div",{className:"flist flist-button list-type-topactions",children:(0,i.jsxs)("ul",{className:"flist-box",children:[r?(0,i.jsx)(w,{}):null,s?(0,i.jsx)(C,{issueKey:t.issueKey}):null]})}):null},b=function(e){var t=e.children;return(0,i.jsx)("li",{role:"none",className:"combobox-item-wrapper",children:t})},w=function(){var e=(0,o.wA)(),t=(0,d.f)().localizedString;return(0,i.jsx)(b,{children:(0,i.jsx)(y,{onClick:function(){return e((0,m.GX)())},title:t("Search.CurrentIssue"),className:"combobox-item"})})},C=function(e){var t=e.issueKey,n=(0,o.wA)(),r=(0,d.f)().localizedString,a=(0,u.Yb)(t),c=(0,l.y)(s.Wt,{cidDateKey:a}),h=null==c?void 0:c.info;if(!h)return null;var f=r("Search.CurrentTitle",h.newspaper.name);return(0,i.jsx)(b,{children:(0,i.jsx)(y,{onClick:function(){return n((0,m.vc)())},title:f,className:"combobox-item"})})},A=n(20974),I=n(59038),S=n(28507),P=n(68158),x=n(68863),T=function(){var e=(0,r.useContext)(I.j),t=(0,o.d4)(S.e);return(0,r.useEffect)((function(){null==e||e.reposition()}),[e,t]),Object.keys(t).map((function(e){var n=t[e],o=(0,P.eB)(e);if(!o||!(null==n?void 0:n.data))return null;var a=o.component;return(0,i.jsx)(x.a$.Provider,{value:{result:n},children:(0,i.jsx)(r.Suspense,{fallback:null,children:(0,i.jsx)(a,{result:n})})},e)}))},k=n(59148),E=function(e){var t=e.onAdvancedSearch,n=(0,d.f)().localizedString;return(0,o.d4)(k.V).advancedSearchEnabled?(0,i.jsx)("div",{className:"flist flist-button",children:(0,i.jsx)(y,{onClick:t,title:n("Dialogs.AdvancedSearch.Header")})}):null},M=function(e){var t=e.inputRef,n=e.onClose,o=e.onAdvancedSearch,a=(0,r.useCallback)((function(){null==n||n()}),[n]);return(0,i.jsxs)(A.S,{inputRef:t,onClose:a,children:[(0,i.jsx)(_,{}),(0,i.jsx)(T,{}),(0,i.jsx)(E,{onAdvancedSearch:o})]})}},68863:function(e,t,n){"use strict";n.d(t,{VM:function(){return u},a$:function(){return s},pr:function(){return c}});var i=n(31555),r=n(5059),o=n(97556),a=n(6666),s=(0,r.createContext)({result:null});function u(){return(0,r.useContext)(s)}var c=function(e){var t=e.title,n=e.className,s=e.disableAction,u=e.isShowMoreAction,c=e.children,l=e.actionTitle,d=e.ariaLabel,h=e.action,f=(0,r.useCallback)((function(e){return(0,a.T)(e.nativeEvent),null==h||h(),!1}),[h]);return(0,i.jsxs)("div",{className:"flist flist-button ".concat(n||""),children:[t&&(0,i.jsx)("div",{className:"flist-header",children:(0,i.jsxs)("div",{className:"header-content",children:[(0,i.jsx)("div",{className:"header-copy-wrapper",children:(0,i.jsx)("h2",{className:"title",children:t})}),!s&&(0,i.jsx)("div",{className:"header-accessory",children:(0,i.jsx)(o.o,{className:u?"seemore":"","aria-label":d,role:"option",tabIndex:-1,onClick:f,children:l})})]})}),(0,i.jsx)("ul",{className:"flist-box",children:c})]})}},35334:function(e,t,n){"use strict";n.d(t,{I:function(){return r},p:function(){return i}});var i="@pressreader/quicksearch",r="@pressreader.quicksearch.dialog"},41002:function(e,t,n){"use strict";n.d(t,{AR:function(){return l},GX:function(){return g},IN:function(){return s},Jt:function(){return a},_x:function(){return u},cj:function(){return f},eO:function(){return m},jp:function(){return p},pM:function(){return c},ps:function(){return d},vc:function(){return v},xS:function(){return h}});var i=n(89103),r=n(35334),o="".concat(r.p,"/common/"),a=(0,i.lQ)("".concat(o,"open_dialog")),s=(0,i.lQ)("".concat(o,"search_request")),u=(0,i.lQ)("".concat(o,"search_began")),c=(0,i.lQ)("".concat(o,"search_source_began")),l=(0,i.lQ)("".concat(o,"search_source_done")),d=(0,i.lQ)("".concat(o,"search_source_failed")),h=(0,i.lQ)("".concat(o,"search_done")),f=(0,i.lQ)("".concat(o,"search_failed")),p=(0,i.lQ)("".concat(o,"cancel_search")),m=(0,i.lQ)("".concat(o,"navigate_to_search")),g=(0,i.lQ)("".concat(o,"search_in_current_issue")),v=(0,i.lQ)("".concat(o,"search_in_current_title"))},28507:function(e,t,n){"use strict";n.d(t,{e:function(){return a},w:function(){return s}});var i=n(29978),r=n(35334),o=function(e){return e[r.p]},a=(0,i.Mz)(o,(function(e){return e.results})),s=(0,i.Mz)(o,(function(e){return e.status}))},68158:function(e,t,n){"use strict";n.d(t,{eB:function(){return o},h4:function(){return r},kh:function(){return a}});var i=[];function r(e){i.push(e)}function o(e){return i.find((function(t){return t.sourceId===e}))}function a(){return i}},64404:function(e,t,n){"use strict";n.d(t,{B:function(){return o},C:function(){return r}});var i=n(5059);function r(e,t){var n=(0,i.useRef)(!1);(0,i.useEffect)((function(){n.current?e():n.current=!0}),t)}function o(e){var t=(0,i.useRef)(!1);(0,i.useLayoutEffect)((function(){t.current?e():t.current=!0}))}},11718:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var i=n(5059),r=n(23684),o=n(4291),a=n(30212),s=n(3503);function u(e){for(var t=[],n=1;n /g,">")),decodeURIComponent(e)}function x(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map(I).join(f);if(t.length){var r=t.map((function(e){var t=(0,i.zs)(e,2),n=t[0],r=t[1];return"".concat(S(n)).concat(g).concat(S(r))})).join(m);n="".concat(n).concat(p).concat(r)}return n.replace(/%2C/g,",")}function T(){return window.basePath||"/"}function k(e){return c(e,f)&&(e=e.substring(1)),"".concat(T()).concat(e)}function E(e){var t=T();return c(e,t)?e.substring(t.length):e}function M(){var e=document.location,t=E(e.pathname);return"".concat(t).concat(e.search)}function D(){return 0===document.location.pathname.replace(T(),"").length}var N=/[;/\\?:@&=+$,<>#%.!*'"()[\]{}^`~ââââ⻫]+/g,L=s((function(e){if(!a(e))throw new Error("Cannot generate slug for non-string value. Given ".concat(e));var t=e.trim().replace(N,"").replace(/[| -]+/g,"-");return encodeURI(t).toLowerCase()}));function V(e,t){if(!(0,l.Ct)(d.oo,!1))return e;var n=E(e).split(f).filter((function(e){return e})),i=(0,l.Ct)(d.dN,[]),r=i.find((function(e){return e.id===t}));if(n.length>0){var o=n[0].toLowerCase();i.find((function(e){return e.id===o&&!!e.slug}))&&n.shift()}return(null==r?void 0:r.slug)&&n.unshift(r.slug),T()+n.join(f)}function R(e){if(!(0,l.Ct)(d.oo,!1))return e;var t=(0,l.Ct)(d.zk,"").split(","),n=(0,l.Ct)(d.mo,""),i=(0,l.Ct)(d.dN,[]).find((function(e){return e.id===n})),r=null==i?void 0:i.slug,o=e.length>0?e[0].split("?")[0]:"/";return t.indexOf(o)>=0&&r&&e.unshift(r),e}function H(e){return R((null!=e?e:"").split("/")).join("/")}},30877:function(e,t,n){"use strict";n.d(t,{MN:function(){return r},PB:function(){return o},pW:function(){return i}});var i="@pressreader/search-core",r=110,o=30},46191:function(e,t,n){"use strict";n.d(t,{mU:function(){return m},TP:function(){return p},Xy:function(){return y}});var i,r,o=n(18647),a=n(26906),s=n(7368),u=n(15397),c=function(e){var t=(0,u.Ct)("baseUrls.images");return t?(t.endsWith("/")||(t+="/"),"".concat(t).concat(e)):null},l=n(30657),d=n(66973),h=n(30877),f=n(76433);function p(e,t,n){var i,r=o(e.latestIssue.issueDate)?e.latestIssue.issueDate:(0,d.R)(e.latestIssue.issueDate);return{id:e.id,cid:e.cid,categories:e.categories,selected:!1,displayName:e.displayName,imageUrl:null!==(i=(0,s.TK)(e.cid,r||"",h.MN))&&void 0!==i?i:"",subtitle:(0,f.fT)(t,n,e.categories)}}function m(e){var t={};return e&&e.items.forEach((function(n){t[n.id]=function(e,t){var n;return e===a.b7.Countries?n=c("flags/32/".concat(t.iso,".png")):e===a.b7.Categories&&t.titlePublicationCid&&(n=(0,s.sP)(t.titlePublicationCid,h.MN)),{id:t.id,iso:t.iso,imageUrl:null!=n?n:void 0,displayName:t.displayName,selected:!1}}(e.id,n)})),t}var g=((i={})[l.aZ.All]="Everywhere",i[l.aZ.Headline]="Header",i[l.aZ.Body]="Body",i),v=((r={})[l.yx.Today]="Today",r[l.yx.Last3Days]="ThreeDays",r[l.yx.ThisWeek]="Week",r[l.yx.ThisMonth]="Month",r[l.yx.Anytime]="AllTime",r[l.yx.Range]="DateRange",r);function y(e,t,n){var i,r,o,a,s={query:e.query,limit:n,continuationToken:t,author:e.author,languages:null===(i=e.languages)||void 0===i?void 0:i.split(","),cids:(null===(r=e.cids)||void 0===r?void 0:r.split(","))||(null===(o=e.newspapers)||void 0===o?void 0:o.split(",")),categories:null===(a=e.categories)||void 0===a?void 0:a.split(","),startDate:e.start,endDate:e.stop,hideSame:void 0===e.hideSimilar||Boolean(e.hideSimilar),location:g[e.in||l.pi],sortOrder:e.orderBy||l.mF.Relevance,documentsType:e.searchFor||l.m8.All,additionalFields:"All",articleSearchFields:"All",pageSearchFields:"All",shortTextLength:100};return(!e.start&&!e.stop||e.date)&&(s.period=v[e.date||l.lh]),s}},99529:function(e,t,n){"use strict";n.d(t,{$2:function(){return p},JL:function(){return v},Jb:function(){return c},Ox:function(){return f},a:function(){return l},iq:function(){return s},qM:function(){return h},qf:function(){return d},rm:function(){return m},sl:function(){return g},tX:function(){return u},uF:function(){return a}});var i=n(89103),r=n(30877),o="".concat(r.pW,"/"),a=(0,i.lQ)("".concat(o,"init_search_core")),s=(0,i.lQ)("".concat(o,"catalog_categories_loading")),u=(0,i.lQ)("".concat(o,"catalog_categories_loaded")),c=(0,i.lQ)("".concat(o,"search_parameters_changed")),l=(0,i.lQ)("".concat(o,"search_meta_changed")),d=(0,i.lQ)("".concat(o,"search_meta_description_changed")),h=(0,i.lQ)("".concat(o,"toggle_search_mode")),f=(0,i.lQ)("".concat(o,"set_search_mode")),p=(0,i.lQ)("".concat(o,"search_term_changed")),m=(0,i.lQ)("".concat(o,"query_changed")),g=(0,i.lQ)("".concat(o,"clear_search_query")),v=(0,i.lQ)("".concat(o,"search_query_tokens_changed"))},82666:function(e,t,n){"use strict";n.d(t,{EH:function(){return C},md:function(){return b},fI:function(){return w},nR:function(){return E},iN:function(){return v},BF:function(){return k},M8:function(){return x},HK:function(){return P},Wh:function(){return g},Gm:function(){return I},Dm:function(){return _},FC:function(){return N},J9:function(){return y},bg:function(){return T},Hw:function(){return m},eg:function(){return D},q$:function(){return M}});var i,r=n(29978),o=n(13981),a=n(18978),s=n(27602),u=n(13384),c=n(30877),l=n(30657),d=((i={})[l.aZ.All]="Dialogs.AdvancedSearch.Anywhere",i[l.aZ.Headline]="Dialogs.AdvancedSearch.InHeadline",i[l.aZ.Body]="Dialogs.AdvancedSearch.InBody",i),h=n(76433),f=(0,o.bb)("sourceKey"),p=function(e){return e[c.pW]},m=(0,r.Mz)(p,(function(e){return null==e?void 0:e.state})),g=(0,r.Mz)(p,(function(e){return null==e?void 0:e.searchMode})),v=(0,r.Mz)(g,(function(e){return"advanced"===e})),y=(0,r.Mz)(p,(function(e){return e.searchTerm})),_=(0,r.Mz)(p,(function(e){return e.query})),b=(0,r.Mz)(p,(function(e){return e.countries})),w=(0,r.Mz)(p,(function(e){return e.languages})),C=(0,r.Mz)(p,(function(e){return e.categories})),A=(0,r.Mz)(p,(function(e){return e.searchParameters})),I=(0,r.Mz)(f,A,(function(e,t){return t[e]})),S=(0,r.Mz)(p,(function(e){return e.searchMeta})),P=(0,r.Mz)(f,S,(function(e,t){return t[e]})),x=(0,r.Mz)(s.SG,(function(e){return e?(0,h.lm)(e):null})),T=(0,r.Mz)(p,(function(e){return e.searchLocation})),k=(0,r.Mz)(T,(function(e){return Object.keys(d).map((function(t){return{id:t,label:(0,u.p3)(d[t]),selected:e===t}}))})),E=(0,r.Mz)(a.W,(function(e){return e.defaultTab})),M=(0,r.Mz)(a.W,(function(e){return e.tabsEnabled})),D=(0,r.Mz)(a.W,(function(e){return e.tabsAvailable})),N=(0,r.Mz)(p,(function(e){return e.queryTokens}))},56455:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var i,r=n(30657),o=((i={})[r.yx.Last3Days]="Dialogs.AdvancedSearch.Last3Days",i[r.yx.Today]="Dialogs.AdvancedSearch.Today",i[r.yx.ThisWeek]="Dialogs.AdvancedSearch.ThisWeek",i[r.yx.ThisMonth]="Dialogs.AdvancedSearch.ThisMonth",i[r.yx.Anytime]="Dialogs.AdvancedSearch.Anytime",i[r.yx.Range]="Dialogs.AdvancedSearch.Range",i)},76433:function(e,t,n){"use strict";n.d(t,{Bw:function(){return v},aM:function(){return f},bs:function(){return y},fT:function(){return d},lm:function(){return b},m1:function(){return h},oK:function(){return m},y_:function(){return g},zO:function(){return w}});var i=n(58932),r=n(13384),o=n(29178),a=n(30657),s=n(56455),u=3,c=(0,o.g)(a.Gh);function l(e,t){var n,r;if(!e||0===e.length||!t)return null;try{for(var o=(0,i.Ju)(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(s in t)return t[s]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function d(e,t,n){if(e||t)return[l(n,e),l(n,t)].reduce((function(e,t){return t&&e.push(t.displayName),e}),[]).join(" / ")}function h(e,t){return void 0===t&&(t=u),0===e.length?(0,r.p3)("Dialogs.AdvancedSearch.AllLanguages"):e.length>t?(0,r.p3)("Dialogs.AdvancedSearch.Selection.Languages",e.length):e.map((function(e){return e.displayName})).join(", ")}function f(e){return e<=0?"":(0,r.p3)(1===e?"Dialogs.AdvancedSearch.TitleSelected":"Dialogs.AdvancedSearch.TitlesSelected",e)}function p(e){return!e||0===e.length}function m(e){if(function(e){if(!e)return!0;var t=!1;return t||(t=!p(e.newspapers)),t||(t=!p(e.countries)),t||(t=!p(e.categories)),!t}(e))return(0,r.p3)("Dialogs.AdvancedSearch.AllTitles");var t=e.newspapers||[],n=e.countries||[],i=e.categories||[];if(1===t.length&&p(n)&&p(i))return t[0].displayName;if(1===n.length&&p(t)&&p(i))return n[0].displayName;if(1===i.length&&p(t)&&p(n))return i[0].displayName;var o=[];return 1===n.length?o.push(n[0].displayName):n.length>1&&o.push((0,r.p3)("Dialogs.AdvancedSearch.Selection.Countries",n.length)),1===i.length?o.push(i[0].displayName):i.length>1&&o.push((0,r.p3)("Dialogs.AdvancedSearch.Selection.Categories",i.length)),1===t.length?o.push(t[0].displayName):t.length>1&&o.push((0,r.p3)("Dialogs.AdvancedSearch.Selection.Titles",t.length)),o.join(", ")}function g(e){var t=e.searchDate,n=e.dateRange;if(t===a.yx.Range&&n){var i=n.start,o=n.stop;return"".concat(i," - ").concat(o)}return(0,r.p3)(s.n[t])}function v(e){var t,n=new URLSearchParams(e),i={query:null!==(t=n.get("query"))&&void 0!==t?t:""},r=n.get("author");r&&(i.author=r);var o=n.get("in");o&&(i.in=o);var a=n.get("date");a&&(i.date=a);var s=n.get("publicationDate");s&&c(s)&&(i.publicationDate=s);var u=n.get("start");u&&(i.start=u);var l=n.get("stop");l&&(i.stop=l);var d=n.get("languages");d&&(i.languages=d);var h=n.get("newspapers");h&&(i.newspapers=h);var f=n.get("cids");f&&(i.cids=f);var p=n.get("countries");p&&(i.countries=p);var m=n.get("categories");m&&(i.categories=m);var g=n.get("types");g&&(i.types=g);var v=n.get("genres");v&&(i.genres=v);var y=n.get("orderBy");return y&&(i.orderBy=y),i}function y(){var e=new URLSearchParams(window.location.search),t=Number(e.get("searchId"));return isNaN(t)?null:t}var _="search__";function b(e){return"".concat(_).concat(e.cacheKey)}function w(e){return e.startsWith(_)}},69761:function(e,t,n){"use strict";n.d(t,{I:function(){return r},p:function(){return i}});var i="@pressreader.search.languages",r="".concat(i,".select-languages-dialog")},88135:function(e,t,n){"use strict";n.d(t,{k:function(){return h},o:function(){return d}});var i=n(58932),r=n(44834),o=n(13981),a=n(33730),s=n(26877),u=n(69761),c=!1;function l(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return c?[2]:[4,Promise.all([n.e(8540),n.e(4326)]).then(n.bind(n,94326))];case 1:return(0,e.sent().init)(),c=!0,[2]}}))}))}function d(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n;return(0,i.YH)(this,(function(c){switch(c.label){case 0:return t=e.dialogId,n=e.initialSelections,[4,l()];case 1:return c.sent(),[4,new Promise((function(e){o.bX.runSaga((function(){var o;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return n?[4,(0,r.yJ)((0,s.I3)(n))]:[3,2];case 1:i.sent(),i.label=2;case 2:return[4,(0,a.PB)({type:"dialog",name:u.I,supportNativeScroll:!0,parentId:t})];case 3:return o=i.sent(),e(o),[2]}}))}))}))];case 2:return[2,c.sent()]}}))}))}function h(e){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return t=e.dialogId,n=e.initialSelections,[4,l()];case 1:return i.sent(),n?[4,(0,r.yJ)((0,s.I3)(n))]:[3,3];case 2:i.sent(),i.label=3;case 3:return[4,(0,a.PB)({type:"dialog",name:u.I,supportNativeScroll:!0,parentId:t})];case 4:return[2,i.sent()]}}))}},26877:function(e,t,n){"use strict";n.d(t,{I3:function(){return c},Ni:function(){return u},jJ:function(){return s},lI:function(){return a}});var i=n(89103),r=n(69761),o="".concat(r.p,"/"),a=(0,i.lQ)("".concat(o,"load_language_list_action")),s=(0,i.lQ)("".concat(o,"language_list_changed")),u=(0,i.lQ)("".concat(o,"language_selection_changed")),c=(0,i.lQ)("".concat(o,"set_initial_selections"))},27889:function(e,t,n){"use strict";n.d(t,{p:function(){return i},s:function(){return r}});var i="@pressreader.search.publications",r="".concat(i,".select-publications-dialog")},6714:function(e,t,n){"use strict";n.d(t,{Y:function(){return h},G:function(){return d}});var i=n(58932),r=n(44834),o=n(13981),a=n(33730),s=n(47853),u=n(27889),c=!1;function l(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return c?[2]:[4,Promise.all([n.e(8540),n.e(4289)]).then(n.bind(n,34289))];case 1:return(0,e.sent().init)(),c=!0,[2]}}))}))}function d(){return(0,i.sH)(this,arguments,void 0,(function(e){return void 0===e&&(e={useTabSwitcher:!0}),(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,l()];case 1:return t.sent(),[4,new Promise((function(t){o.bX.runSaga((function(){var n;return(0,i.YH)(this,(function(r){switch(r.label){case 0:return[5,(0,i.Ju)(h(e))];case 1:return n=r.sent(),t(n),[2]}}))}))}))];case 2:return[2,t.sent()]}}))}))}function h(e){var t,n,o,c;return void 0===e&&(e={useTabSwitcher:!0}),(0,i.YH)(this,(function(i){switch(i.label){case 0:return t=e.dialogId,n=e.useTabSwitcher,o=e.initialSelections,[4,l()];case 1:return i.sent(),[4,(0,r.yJ)((0,s.I3)({initialSelections:o}))];case 2:return i.sent(),c={type:"dialog",name:u.s,supportNativeScroll:!0,parentId:t,useTabSwitcher:null==n||n},[4,(0,a.PB)(c)];case 3:return[2,i.sent()]}}))}},47853:function(e,t,n){"use strict";n.d(t,{I3:function(){return a},LM:function(){return d},Mj:function(){return l},_E:function(){return s},_U:function(){return c},ap:function(){return g},kT:function(){return f},o5:function(){return m},oY:function(){return p},rk:function(){return u},yO:function(){return h}});var i=n(89103),r=n(27889),o="".concat(r.p,"/"),a=(0,i.lQ)("".concat(o,"set_initial_selections_action")),s=(0,i.lQ)("".concat(o,"groups_loaded")),u=(0,i.lQ)("".concat(o,"select_titles_in_category_action")),c=(0,i.lQ)("".concat(o,"selection_updated_event")),l=(0,i.lQ)("".concat(o,"change_active_tab_action")),d=(0,i.lQ)("".concat(o,"load_catalog_metadata_action")),h=(0,i.lQ)("".concat(o,"catalog_metadata_updated")),f=(0,i.lQ)("".concat(o,"publications_filter_changed_event")),p=(0,i.lQ)("".concat(o,"publications_list_changed")),m=(0,i.lQ)("".concat(o,"item_selection_changed")),g=(0,i.lQ)("".concat(o,"reset_all_selections_action"))},31827:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var i="giftedAccessToken"},82534:function(e,t,n){"use strict";n.d(t,{Ct:function(){return C},HE:function(){return v},bE:function(){return _},gg:function(){return m},y$:function(){return y}});var i=n(58932),r=n(17207),o=n(20056),a=n(17950),s=n(31827),u=n(53308),c=n(19299),l=n(32512),d=function(){return window.basePath||"/"},h="".concat(d(),"authentication/v1"),f="pr_".concat(d(),"authTickets"),p=[];function m(e){p=(0,i.fX)([],e,!0),window.sessionStorage.setItem(f,JSON.stringify(e.filter((function(e){return e.session})).map((function(e){return e.value})))),window.localStorage.setItem(f,JSON.stringify(e.filter((function(e){return!e.session})).map((function(e){return e.value}))))}function g(){var e,t,n=JSON.parse(null!==(e=window.sessionStorage.getItem(f))&&void 0!==e?e:"[]"),r=JSON.parse(null!==(t=window.localStorage.getItem(f))&&void 0!==t?t:"[]");return n.length||r.length||!(null==p?void 0:p.length)?(0,i.fX)((0,i.fX)([],n,!0),r,!0):(m(p),g())}function v(){var e=a.get("PDAuth")?[]:g(),t=a.get(s.v)||void 0;return(0,l.Tt)({url:"".concat(h,"/initialize"),data:{tickets:e,language:(0,c.KK)(),urlReferrer:window.document.referrer,url:window.location.href,giftedAccessToken:t},maxRetries:3,method:"POST"})}function y(e,t){return(0,u.zA)({url:"".concat(h,"/signIn"),data:{signInToken:e,tickets:g(),language:(0,c.KK)(),enableAutoLogin:t},requestConfig:{contentType:"application/json",disableBearerToken:!0}})}function _(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){return[2,(0,u.zA)({url:"".concat(h,"/signout"),data:{tickets:g(),language:(0,c.KK)()},requestConfig:{contentType:"application/json",disableBearerToken:!0}})]}))}))}var b=void 0;function w(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:if(document.hidden)return[2,b];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,r.TR)()];case 2:return e=n.sent(),b=e,[2,e];case 3:return t=n.sent(),(0,o.R)("Authentication API refreshBearerToken","geoLocation",t),[2,void 0];case 4:return[2]}}))}))}function C(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e?[4,w()]:[3,2];case 1:return n=i.sent(),[3,3];case 2:n=void 0,i.label=3;case 3:return t=n,[2,(0,u.zA)({url:"".concat(h,"/refresh"),data:{tickets:g(),language:(0,c.KK)(),lat:null==t?void 0:t.lat,lng:null==t?void 0:t.lng},requestConfig:{contentType:"application/json",disableBearerToken:!0}})]}}))}))}},58735:function(e,t,n){"use strict";n.r(t),n.d(t,{authorized:function(){return H},bearerToken:function(){return z},bind:function(){return O},initAuthTickets:function(){return M},isEmailVerified:function(){return X},online:function(){return D},setGiftedAccessToken:function(){return E},token:function(){return F},unbind:function(){return j},updateAuthorizationTickets:function(){return Y},updateBearerToken:function(){return R},userKey:function(){return B}});var i=n(58932),r=n(25208),o=n(69463),a=n(42861),s=n(30212),u=n(17950),c=n(24428),l=n(31827),d=n(82534),h=n(19299),f=n(32512),p="ab",m="sub",g="exp",v={},y=null,_=null,b=!1,w=null,C=!1,A=!1,I="",S=!0,P=!1,x=new o.B;x.subscribe({next:function(){S=!1},error:function(){S=!1}});var T=(0,a._)(x);function k(){S||(S=!0,T=(0,a._)(x))}var E=function(e){e&&u.set(l.v,e)};function M(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,W()];case 1:return[2,e.sent()];case 2:return[2,N(e.sent())];case 3:return[2]}}))}))}function D(){for(var e=[],t=0;tDate.now()?[2,e]:[4,R()];case 2:return n.sent(),[4,T];case 3:return[2,n.sent()]}}))}))}function F(){var e=(0,c.$)(z());return e?encodeURIComponent(e[p]):""}function B(){return y}function z(){return _}function O(e,t){var n=v[e];if(n||(n=v[e]={subject:new o.B,subscriptions:[]}),n.subscriptions.map((function(e){return e.callback})).indexOf(t)<0){var i=n.subject.subscribe(t).unsubscribe;n.subscriptions.push({callback:t,unsubscribe:i})}}function j(e,t){var n=v[e];if(n){var i=n.subscriptions.findIndex((function(e){return e.callback===t}));i<0||(n.subscriptions[i].unsubscribe(),n.subscriptions.splice(i,1))}}function U(e){var t=v[e];t&&t.subject.next()}function W(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:if(A)return[2];if(A=!0,!(t=new URL(document.location.href).searchParams.get("signInToken")))return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,d.y$)(t,!0)];case 2:return e=i.sent(),P=!0,[3,4];case 3:return n=i.sent(),(0,s.z)("EmailVerified: siteSignInResult error",n),[3,4];case 4:return e?[3,7]:[4,(0,d.HE)()];case 5:return 1!==(e=i.sent()).useGeoLocation?[3,7]:[4,(0,d.Ct)(!0)];case 6:e=i.sent(),i.label=7;case 7:return Y(e),[2]}}))}))}function Y(e){b=1===e.useGeoLocation,(0,d.gg)(e.tickets),L(e.bearerToken)}function X(){return P}},76514:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var i=n(58932),r=n(30264),o=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.status=t,r.statusText=n,r.json=i,r}return(0,i.C6)(t,e),t.prototype.getHttpError=function(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n,o,a,s;return(0,i.YH)(this,(function(u){switch(u.label){case 0:e={Message:"Unknown error",ResourceKey:null},u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.json];case 2:return e=u.sent(),[3,4];case 3:return u.sent(),[3,4];case 4:return e&&"string"==typeof e?t={message:e,resourceKey:""}:(n=e.Message,o=e.message,a=e.ResourceKey,s=(0,i.Tt)(e,["Message","message","ResourceKey"]),t=(0,i.Cl)((0,i.Cl)({},s),{message:null!=o?o:n,resourceKey:null!=a?a:""})),[2,new r.j({status:this.status,responseText:this.statusText,responseJSON:t})]}}))}))},t}(n(84386).e)},76131:function(e,t,n){"use strict";n.d(t,{J:function(){return o},h:function(){return r}});var i=new(n(69463).B);function r(e){e&&i.next(e)}var o=i.asObservable()},60213:function(e,t,n){"use strict";n.d(t,{a:function(){return m}});var i,r=n(58932),o=n(45400),a=n(1766),s=n(76514),u=n(76131),c=n(42832),l=n(81854);!function(e){e.JSON="application/json",e.FORM="application/x-www-form-urlencoded",e.MULTIPART="multipart/form-data",e.TEXT="text/plain"}(i||(i={}));var d=function(e,t){return t||(e instanceof FormData?i.MULTIPART:c(e)?i.FORM:i.TEXT)},h=function(e){return null===e||c(e)||l(e)},f=function(e,t){if(t.includes(i.MULTIPART)&&e instanceof FormData)return e;if(t.includes(i.FORM)){if(e instanceof URLSearchParams)return e;var n=c(e)?(0,o.stringify)(e,{arrayFormat:"indices",encodeValuesOnly:!0}):null;return n?new URLSearchParams(n):null}return t.includes(i.JSON)?c(e)?JSON.stringify(e):e:t.includes(i.TEXT)&&l(e)?e:null},p=new Map;function m(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,c,l,m,g,v,y,_,b,w,C,A,I,S,P,x,T,k,E,M,D,N;return(0,r.YH)(this,(function(L){switch(L.label){case 0:t=e.url,n=e.timeout,i=e.cancellableKey,c=e.contentType,l=e.accept,m=e.data,g=e.query,v=void 0===g?{}:g,y=e.withCredentials,_=void 0!==y&&y,b=(0,r.Tt)(e,["url","timeout","cancellableKey","contentType","accept","data","query","withCredentials"]),w=b.headers?b.headers["Content-Type"]:void 0,C=d(m,c||w),A=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},b.headers),c?{"Content-Type":C}:{}),l?{Accept:l}:{}),I=h(m)?f(m,C):null,S=new AbortController,i&&(null===(N=p.get(i))||void 0===N||N.abort(),p.set(i,S)),P=(0,r.Cl)((0,r.Cl)({},b),{body:I,headers:A,signal:S.signal}),x=a(v)?null:(0,o.stringify)(v,{arrayFormat:"brackets"}),T=x?"".concat(t,"?").concat(x):t,_&&(P.credentials="include"),k=n?new Promise((function(e,t){return setTimeout((function(){S.abort();var e="Request timed out",n=new s.f(408,e,Promise.resolve({Message:e,ResourceKey:null}));t(n)}),n)})):null,E=fetch(T,P).then((function(e){if(!e.ok)throw new s.f(e.status,e.statusText,e.json());var t=e.headers.get("ndstate");t&&(0,u.h)(t);var n=e.headers.get("content-type");return(null==n?void 0:n.includes("application/json"))?e.json():e.text()})),L.label=1;case 1:return L.trys.push([1,3,,7]),[4,Promise.race((0,r.fX)([E],k?[k]:[],!0))];case 2:return M=L.sent(),i&&p.delete(i),[2,M];case 3:return D=L.sent(),i&&p.delete(i),D instanceof s.f?[4,D.getHttpError()]:[3,5];case 4:throw L.sent();case 5:throw D;case 6:return[3,7];case 7:return[2]}}))}))}},53308:function(e,t,n){"use strict";n.d(t,{lx:function(){return h},wu:function(){return m},yd:function(){return p},zA:function(){return f}});var i=n(58932),r=n(41e3),o=n(15397),a=n(30264),s=n(58735),u=n(32512);function c(e){return!0===e||"true"===e}function l(e,t){return(0,i.sH)(this,arguments,void 0,(function(e,t){var n,r,l,d,h,f,p,m,g,v,y,_,b,w,C,A=t.url,I=t.service,S=t.command,P=t.data,x=t.requestConfig;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return x||(x={}),!x.serviceName&&I&&(x.serviceName="".concat(I).concat(S?"/".concat(S):"")),n={},I?[4,(0,o.kq)("services",{})]:[3,2];case 1:r=t.sent(),n=r[I]||{},t.label=2;case 2:return l=(0,u.H_)()||c(n.httpsrequired)||c(n.httpsRequired),d=!1,h={},f=(0,u.pc)(),n.cdnProfile&&(p=(0,o.Ct)("cdnProfiles",{})[n.cdnProfile])&&(!p.httpsBaseUrl&&l||(m=function(e){return e.indexOf("://")>0&&(e=e.substring(e.indexOf("/",8))),e}(f),l=l||c(p.httpsRequired),f=function(e,t){return"/"===e[e.length-1]&&"/"===t[0]&&(t=t.substring(1)),e+t}(f=l&&null!==(C=p.httpsBaseUrl)&&void 0!==C?C:p.baseUrl,m),d=!0)),g="".concat(f).concat(I,"/"),x.disableBearerToken||d?[3,4]:[4,(0,s.authorized)()];case 3:v=t.sent(),h.Authorization="Bearer ".concat(v),t.label=4;case 4:l&&(g=g.replace(/^http:\/\//i,"https://")),S&&(g+=S),y={maxRetries:x.disableRetry?0:3},_=(0,i.Cl)((0,i.Cl)({},y),n.retryPolicy),b=(0,i.Cl)((0,i.Cl)({method:e,url:A||g,data:"GET"===e?null:P,query:"GET"===e?P:null},x),{headers:(0,i.Cl)((0,i.Cl)({},h),x.headers)}),t.label=5;case 5:return t.trys.push([5,7,,8]),[4,(0,u.Ez)(b,_)];case 6:return[2,t.sent()];case 7:throw w=t.sent(),new a.j(w);case 8:return[2]}}))}))}function d(e){for(var t=[],n=1;n0&&"string"==typeof t[0]&&(a=t[0],t=t.slice(1));var s=void 0;t.length>0&&(s="object"==typeof t[0]?r(t[0]):void 0===t[0]?{}:t[0],t=t.slice(1));var u=void 0;return t.length>0&&(u=t[0],t=t.slice(1)),l(e,{service:o,command:a,data:s,requestConfig:u})}var c=(0,i.Cl)({},t[0]);return"object"==typeof c.data?c.data=r(c.data):void 0===c.data&&(c.data={}),c.requestConfig&&(c.requestConfig=r(c.requestConfig)),l(e,c)}function h(){for(var e=[],t=0;t=t.maxRetries)throw i;if(i instanceof s.f&&i.status<500)throw i;return[3,7];case 7:return++n,[3,3];case 8:throw new Error}}))}))}(e,t):f(e)}var m="",g=null!==(i=window.serviceUrl)&&void 0!==i?i:"https://ingress.pressreader.com/services/";function v(){for(var e=[],t=0;t0}var f=n(13384),p=n(79371),m=n(88612),g="readlater",v={facebook:"Menu.Facebook",twitter:"Menu.Twitter",evernote:"Menu.Evernote",instapaper:"Menu.Instapaper",onenote:"Menu.OneNote",email:"Menu.eMail",all:"ReadLater",channel:"Channel",public_all:"ReadLater"};function y(e){switch(e){case 1:return p.X.System;case 2:return p.X.User;case 3:return p.X.Sharing}}function _(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,f.Kc)()];case 1:return t.sent(),[2,o(e,(function(e){return e.id===g?0:1}),"name").map(b)]}}))}))}function b(e){var t=e.name,n=e.id;e.type!==p.X.User&&(0,m.X)(n,v)&&(t=(0,f.p3)(v[n]));var i=n===g;return{id:n,displayName:t,name:t,slug:e.webName,isPublic:e.isPublic,type:y(e.type),contentCount:e.contentCount,isDeleteDisabled:i}}var w=n(90189);function C(e,t){return(0,i.Cl)((0,i.Cl)({},(0,w.b)(t)),{pageSetId:e,collectionContent:a.P.pageSet})}function A(e,t){return(0,i.Cl)((0,i.Cl)({},(0,w.b)(t)),{articleId:e,collectionContent:a.P.article})}var I=n(60588),S=(0,s.J)({expire:3e5});function P(){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,c.qw)()];case 1:return[4,_(e.sent().items)];case 2:return[2,e.sent()]}}))}))}function x(e,t){return(0,i.sH)(this,void 0,void 0,(function(){var n,r;return(0,i.YH)(this,(function(i){if(!e)throw new Error("profileId not specified");return!t&&(n=S.get(e))?[2,n]:(r=(0,c.jT)(e).then((function(e){return _(e.items)})),S.set(e,r),[2,r])}))}))}function T(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n;return(0,i.YH)(this,(function(i){switch(i.label){case 0:if(!e)throw new Error("context not specified");return[4,(0,c.Wv)(e)];case 1:return t=i.sent(),n=t.id,S.clear(),u.YT.next({event:u.JT.create,data:n}),[2,t]}}))}))}function k(e){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){switch(t.label){case 0:if(!e)throw new Error("collectionId not specified");return[4,(0,c._F)(e)];case 1:return t.sent(),S.clear(),u.YT.next({event:u.JT.delete,data:e}),[2]}}))}))}function E(e,t){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(n){switch(n.label){case 0:if(!e)throw new Error("collectionId not specified");return[4,(0,c.jk)(e,t)];case 1:return n.sent(),S.clear(),u.YT.next({event:u.JT.update,data:e}),[2]}}))}))}function M(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,r,a;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return e?(t="linked_".concat(e),(n=S.get(t))?[2,Promise.resolve(n)]:[4,(0,c.bG)(e)]):[2,Promise.reject("cid not specified")];case 1:return r=i.sent(),a=o(r,"orderKey").map((function(e){return Object.freeze({id:e.linkedCollection.id,name:e.linkedCollection.name,webName:e.linkedCollection.webName,contentCount:e.contentCount||"",profileId:e.linkedCollectionOwner.profileName})})),S.set(t,a),[2,a]}}))}))}function D(e){return(0,i.sH)(this,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return[4,V(e)];case 1:return t=n.sent(),[2,(0,i.Cl)((0,i.Cl)({},t),{articleId:e,collectionContent:a.P.article})]}}))}))}function N(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,r;return(0,i.YH)(this,(function(o){switch(o.label){case 0:return[4,Promise.all([(0,I.aI)(e),(0,l.J)(e)])];case 1:return t=o.sent(),n=t[0],r=t[1],[2,(0,i.Cl)((0,i.Cl)({},C(e,r)),{pageSet:n,collectionContent:a.P.pageSet,pageSetId:e})]}}))}))}function L(e,t){return(0,i.sH)(this,void 0,void 0,(function(){var n,o,a;return(0,i.YH)(this,(function(s){switch(s.label){case 0:return[4,(0,I.Wm)(e)];case 1:return n=s.sent(),o=n.filter((function(e){return 0===r(t,e.pages).length})),a=o.map((function(e){return(0,l.J)(e.id).then((function(t){return(0,i.Cl)((0,i.Cl)({},t),{pageSet:e})}))})),[2,Promise.all(a)]}}))}))}function V(e){return(0,i.sH)(this,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,d.wr)(e)];case 1:return t=n.sent(),[2,A(e,t)]}}))}))}function R(e){return(0,i.sH)(this,void 0,void 0,(function(){var t;return(0,i.YH)(this,(function(n){switch(n.label){case 0:return t=e.map(l.J),[4,Promise.all(t)];case 1:return[2,n.sent().map((function(t,n){return C(e[n],t)})).filter(h)]}}))}))}function H(e,t){return(0,i.sH)(this,void 0,void 0,(function(){return(0,i.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,d.rD)(e,t)];case 1:return n.sent(),[2,A(e,t)]}}))}))}},90189:function(e,t,n){"use strict";function i(e){var t=e.createdDate,n=e.id;return t?{createdDate:new Date(t),id:n}:{id:n}}function r(e){return{collections:e.collections.map(i)}}n.d(t,{b:function(){return r}})},14821:function(e,t,n){"use strict";function i(e){var t,n,i=null!==(n=null!==(t=e.issueKey)&&void 0!==t?t:e.issue)&&void 0!==n?n:"";return{id:e.id,encryptedOwnerId:e.encryptedOwnerId,issueKey:i,issueId:e.issueId,issueVer:e.issueVer,pages:e.pages}}n.d(t,{j:function(){return i}})},60588:function(e,t,n){"use strict";n.d(t,{dW:function(){return g},nO:function(){return v},ZZ:function(){return m},Wm:function(){return p},aI:function(){return f},F8:function(){return y},xm:function(){return b},um:function(){return _}});var i=n(58932),r=n(8485),o=n(57962),a=n(74010),s=n(43125),u=n(53477),c=n(20263),l=n(14821),d={accepted:202,created:201,ok:200},h={202:a.U.Pending,201:a.U.Done,200:a.U.Pending};function f(e){if(!e)throw new Error("pageSetId not specified");return(0,u.ag)(e).then(l.j)}function p(e){if(!e)throw new Error("issue not specified");return(0,u._o)(e).then((function(e){return r(e.pageSets,l.j)}))}function m(e){return(0,i.sH)(this,arguments,void 0,(function(e){var t,n=e.issueKey,r=e.pages;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return t=(0,s.Tm)(n),[4,p(n)];case 1:return[2,e.sent().find((function(e){return 0===o(e.pages,r).length&&e.issueVer===t}))]}}))}))}function g(e){return(0,i.sH)(this,arguments,void 0,(function(e){var t,n,r=e.issueKey,o=e.pages;return(0,i.YH)(this,(function(e){switch(e.label){case 0:return[4,m({issueKey:r,pages:o})];case 1:return(t=e.sent())?[3,3]:[4,(0,u.w6)({issue:r,pages:o})];case 2:return n=e.sent(),[2,(0,l.j)(n)];case 3:return[2,t]}}))}))}function v(e){return(0,i.sH)(this,arguments,void 0,(function(e){var t,n,r,o,s=e.pageSetId,c=e.baseUrl;return(0,i.YH)(this,(function(e){switch(e.label){case 0:if(!s)throw new Error("pageSetId not specified");return[4,(0,u.JR)({baseUrl:c,pageSetId:s})];case 1:if(t=e.sent(),n=t.status,r=t.location,n!==d.accepted&&n!==d.created)throw new Error("Response with unknown status. Code - ".concat(n));return[2,{status:null!==(o=h[n])&&void 0!==o?o:a.U.None,url:r}]}}))}))}function y(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,r;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,u.v7)(e)];case 1:if(t=i.sent(),n=t.status,r=t.location,n!==d.ok&&n!==d.created)throw new Error("Response with unknown status. Code - ".concat(n));return[2,{status:h[n],url:r}]}}))}))}function _(e,t){return(0,c.yA)(e,{collections:t})}function b(e,t){return(0,u.tI)(e,{pages:t})}},97600:function(e,t,n){"use strict";n.d(t,{JT:function(){return i},YT:function(){return a}});var i,r=n(69463),o=n(25778);!function(e){e[e.create=1]="create",e[e.delete=2]="delete",e[e.update=3]="update"}(i||(i={}));var a=new r.B;a.pipe((0,o.p)((function(e){return e.event===i.delete})))},67373:function(e,t,n){"use strict";var i,r;n.d(t,{P:function(){return r},x:function(){return i}}),function(e){e[e.article=1]="article",e[e.pages=2]="pages",e[e.pageSet=3]="pageSet"}(i||(i={})),function(e){e[e.article=1]="article",e[e.pageSet=2]="pageSet"}(r||(r={}))},79371:function(e,t,n){"use strict";var i;n.d(t,{X:function(){return i}}),function(e){e[e.System=1]="System",e[e.User=2]="User",e[e.Sharing=3]="Sharing",e[e.Feed=10]="Feed"}(i||(i={}))},35374:function(e,t,n){"use strict";n.d(t,{$F:function(){return i},F:function(){return r},KM:function(){return o},LQ:function(){return a}});var i="all",r="channel",o="readlater",a=i},36945:function(e,t,n){"use strict";n.d(t,{UN:function(){return ct},Y$:function(){return l},vb:function(){return p},f8:function(){return f},jq:function(){return R},ym:function(){return z},O0:function(){return B},Dz:function(){return L},tB:function(){return N},z9:function(){return re},lL:function(){return ae},gq:function(){return se},Zn:function(){return le},Gx:function(){return ut},lN:function(){return it},pY:function(){return m},c_:function(){return O},Zo:function(){return V},e7:function(){return ce},AK:function(){return Te},sr:function(){return xe},zb:function(){return St},yT:function(){return qe},mg:function(){return Xe},C9:function(){return It},x3:function(){return xt},Ld:function(){return Pt},Sg:function(){return rt},wW:function(){return ke},gr:function(){return Ze}});var i=n(13981),r="@pressreader/social",o=n(44229),a=n(58932),s=n(89103),u=n(74010),c=r+"/article_collections/",l=(0,s.lQ)("".concat(c,"load_article_collections_action")),d=(0,s.lQ)("".concat(c,"load_article_collections_began")),h=(0,s.lQ)("".concat(c,"load_article_collections_done")),f=(0,s.lQ)("".concat(c,"load_article_collections_failed")),p=(0,s.lQ)("".concat(c,"load_article_collections_cancelled")),m=(0,s.lQ)("".concat(c,"reset_article_collections")),g=(0,s.lQ)("".concat(c,"upsert_article_collections_action")),v=(0,s.lQ)("".concat(c,"upsert_article_collections_began")),y=(0,s.lQ)("".concat(c,"upsert_article_collections_done")),_=(0,s.lQ)("".concat(c,"upsert_article_collections_failed")),b=(0,s.lQ)("".concat(c,"remove_article_from_collections_action")),w=(0,s.lQ)("".concat(c,"remove_article_from_collections_began")),C=(0,s.lQ)("".concat(c,"remove_article_from_collections_done")),A=(0,s.lQ)("".concat(c,"remove_article_from_collections_failed")),I=Object.freeze([h,f,p,y,_,C,A]);function S(e,t){var n,i=t.articleId,r=t.collections;return(0,a.Cl)((0,a.Cl)({},e),{articleCollections:(0,a.Cl)((0,a.Cl)({},e.articleCollections),(n={},n[i]=(0,a.Cl)((0,a.Cl)({},e.articleCollections[i]),{status:u.U.Done,collections:r}),n))})}function P(e,t){var n,i=t.articleId,r=t.status;return(0,a.Cl)((0,a.Cl)({},e),{articleCollections:(0,a.Cl)((0,a.Cl)({},e.articleCollections),(n={},n[i]=(0,a.Cl)((0,a.Cl)({},e.articleCollections[i]),{status:r}),n))})}var x=(0,s.vy)({articleCollections:{}},(0,s.po)(d,(function(e,t){return P(e,{articleId:t.payload.articleId,status:u.U.Pending})})),(0,s.po)(h,(function(e,t){var n=t.payload;return S(e,{articleId:n.articleId,collections:n.collections})})),(0,s.po)(f,(function(e,t){return P(e,{articleId:t.payload.articleId,status:u.U.Failed})})),(0,s.po)(p,(function(e,t){return P(e,{articleId:t.payload.articleId,status:u.U.None})})),(0,s.po)(v,(function(e,t){return P(e,{articleId:t.payload.articleId,status:u.U.Pending})})),(0,s.po)(y,(function(e,t){var n=t.payload;return S(e,{articleId:n.articleId,collections:n.articleCollections})})),(0,s.po)(_,(function(e,t){return P(e,{articleId:t.payload.articleId,status:u.U.Failed})})),(0,s.po)(m,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{articleCollections:(0,a.Cl)((0,a.Cl)({},e.articleCollections),(n={},n[i.articleId]=(0,a.Cl)((0,a.Cl)({},e.articleCollections[i.articleId]),{status:u.U.Failed,collections:void 0}),n))})})),(0,s.po)(w,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{articleCollections:(0,a.Cl)((0,a.Cl)({},e.articleCollections),(n={},n[i.articleId]=(0,a.Cl)((0,a.Cl)({},e.articleCollections[i.articleId]),{status:u.U.Pending}),n))})})),(0,s.po)(C,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{articleCollections:(0,a.Cl)((0,a.Cl)({},e.articleCollections),(n={},n[i.articleId]=(0,a.Cl)((0,a.Cl)({},e.articleCollections[i.articleId]),{status:u.U.Done,collections:void 0}),n))})})),(0,s.po)(A,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{articleCollections:(0,a.Cl)((0,a.Cl)({},e.articleCollections),(n={},n[i.articleId]=(0,a.Cl)((0,a.Cl)({},e.articleCollections[i.articleId]),{status:u.U.Failed}),n))})}))),T=n(77394),k=n(20056),E=r+"/issue/pageset/",M=((0,s.lQ)("".concat(E,"load_issue_pageset_by_issue_key_action")),(0,s.lQ)("".concat(E,"load_issue_pageset_by_issue_key_began"))),D=(0,s.lQ)("".concat(E,"load_issue_pageset_by_issue_key_done")),N=(0,s.lQ)("".concat(E,"load_issue_pageset_by_issue_key_failed")),L=(0,s.lQ)("".concat(E,"load_issue_pageset_by_issue_key_cancelled")),V=(0,s.lQ)("".concat(E,"reset_issue_pageset")),R=(0,s.lQ)("".concat(E,"load_issue_pageset_by_id_action")),H=(0,s.lQ)("".concat(E,"load_issue_pageset_by_id_began")),F=(0,s.lQ)("".concat(E,"load_issue_pageset_by_issue_key_done")),B=(0,s.lQ)("".concat(E,"load_issue_pageset_by_id_failed")),z=(0,s.lQ)("".concat(E,"load_issue_pageset_by_id_cancelled")),O=(0,s.lQ)("".concat(E,"reset_issue_pageset_by_id")),j=(0,s.lQ)("".concat(E,"upsert_page_set_collection_action")),U=(0,s.lQ)("".concat(E,"upsert_page_set_collection_began")),W=(0,s.lQ)("".concat(E,"upsert_page_set_collection_done")),Y=(0,s.lQ)("".concat(E,"upsert_page_set_collection_failed")),X=Object.freeze([W,Y]),q=(0,s.lQ)("".concat(E,"remove_pageset_from_collections_action")),G=(0,s.lQ)("".concat(E,"remove_pageset_from_collections_began")),K=(0,s.lQ)("".concat(E,"remove_pageset_from_collections_done")),J=(0,s.lQ)("".concat(E,"remove_pageset_from_collections_failed")),Q=(0,s.lQ)("".concat(E,"update_issue_pageset_by_id_action")),Z=(0,s.lQ)("".concat(E,"update_issue_pageset_by_id_began")),$=(0,s.lQ)("".concat(E,"update_issue_pageset_by_issue_key_done")),ee=(0,s.lQ)("".concat(E,"update_issue_pageset_by_id_failed")),te=Object.freeze((0,a.fX)([D,N,L,F,B,z,K,J,$,ee],(0,a.zs)(X),!1)),ne=(0,s.vy)({issuePageSets:{},pageSet:{},pageSetCollections:{}},(0,s.po)(M,(function(e,t){var n,i,r,o=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{issuePageSets:(0,a.Cl)((0,a.Cl)({},e.issuePageSets),(n={},n[o.issueKey]={status:u.U.Pending,issueKey:o.issueKey,pageSetIds:(null===(i=e.issuePageSets[o.issueKey])||void 0===i?void 0:i.pageSetIds)||[]},n)),pageSet:((null===(r=e.issuePageSets[o.issueKey])||void 0===r?void 0:r.pageSetIds)||[]).reduce((function(t,n){return t[n]=(0,a.Cl)((0,a.Cl)({},e.pageSet[n]),{pageSetId:n,status:u.U.Pending}),t}),(0,a.Cl)({},e.pageSet))})})),(0,s.po)(D,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{issuePageSets:(0,a.Cl)((0,a.Cl)({},e.issuePageSets),(n={},n[i.issueKey]={status:u.U.Done,issueKey:i.issueKey,pageSetIds:i.pageSet.map((function(e){return e.id}))},n)),pageSet:i.pageSet.reduce((function(t,n){return t[n.id]=(0,a.Cl)((0,a.Cl)({},e.pageSet[n.id]),{pageSetId:n.id,status:u.U.Done,pageSet:n}),t}),(0,a.Cl)({},e.pageSet))})})),(0,s.po)(N,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{issuePageSets:(0,a.Cl)((0,a.Cl)({},e.issuePageSets),(n={},n[i.issueKey]=(0,a.Cl)((0,a.Cl)({},e.issuePageSets[i.issueKey]),{status:u.U.Failed,pageSetIds:[]}),n))})})),(0,s.po)(V,(function(e,t){var n,i,r=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{issuePageSets:(0,a.Cl)((0,a.Cl)({},e.issuePageSets),(n={},n[r.issueKey]={status:u.U.None,issueKey:r.issueKey,pageSetIds:[]},n)),pageSet:(0,a.Cl)((0,a.Cl)({},e.pageSet),null===(i=e.issuePageSets[r.issueKey])||void 0===i?void 0:i.pageSetIds.reduce((function(t,n){return t[n]=(0,a.Cl)((0,a.Cl)({},e.pageSet[n]),{pageSetId:n,status:u.U.None,pageSet:void 0}),t}),(0,a.Cl)({},e.pageSet)))})})),(0,s.po)(O,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSet:(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSet[i.pageSetId]),{pageSetId:i.pageSetId,status:u.U.None}),n)})})),(0,s.po)(L,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{issuePageSets:(0,a.Cl)((0,a.Cl)({},e.issuePageSets),(n={},n[i.issueKey]=(0,a.Cl)((0,a.Cl)({},e.issuePageSets[i.issueKey]),{status:u.U.None}),n))})})),(0,s.po)(H,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSet:(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSet[i.pageSetId]),{pageSetId:i.pageSetId,status:u.U.Pending}),n)})})),(0,s.po)(F,(function(e,t){var n,i,r,o=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{issuePageSets:(0,a.Cl)((0,a.Cl)({},e.issuePageSets),(n={},n[o.issueKey]={status:(null===(i=e.issuePageSets[o.issueKey])||void 0===i?void 0:i.status)||u.U.None,issueKey:o.issueKey,pageSetIds:T(((null===(r=e.issuePageSets[o.issueKey])||void 0===r?void 0:r.pageSetIds)||[]).concat(o.pageSet.map((function(e){return e.id}))))},n)),pageSet:o.pageSet.reduce((function(t,n){return t[n.id]=(0,a.Cl)((0,a.Cl)({},e.pageSet[n.id]),{pageSetId:n.id,status:u.U.Done,pageSet:n}),t}),(0,a.Cl)({},e.pageSet))})})),(0,s.po)(B,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSet:(0,a.Cl)((0,a.Cl)({},e.pageSet),(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSet[i.pageSetId]),{pageSet:void 0,status:u.U.Failed}),n))})})),(0,s.po)(z,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSet:(0,a.Cl)((0,a.Cl)({},e.pageSet),(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSet[i.pageSetId]),{status:u.U.None}),n))})})),(0,s.po)(U,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSetCollections:(0,a.Cl)((0,a.Cl)({},e.pageSetCollections),(n={},n[i.pageSetId]={status:u.U.Pending,pageSetId:i.pageSetId,collections:[]},n))})})),(0,s.po)(W,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSetCollections:(0,a.Cl)((0,a.Cl)({},e.pageSetCollections),(n={},n[i.pageSetId]={status:u.U.Done,pageSetId:i.pageSetId,collections:i.collections},n))})})),(0,s.po)(Y,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSetCollections:(0,a.Cl)((0,a.Cl)({},e.pageSetCollections),(n={},n[i.pageSetId]={status:u.U.Failed,pageSetId:i.pageSetId,collections:[]},n))})})),(0,s.po)(G,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSetCollections:(0,a.Cl)((0,a.Cl)({},e.pageSetCollections),(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSetCollections[i.pageSetId]),{status:u.U.Pending}),n)),issuePageSets:Object.keys(e.issuePageSets).reduce((function(t,n){return-1!==e.issuePageSets[n].pageSetIds.findIndex((function(e){return e!==i.pageSetId}))&&(t[n]=(0,a.Cl)((0,a.Cl)({},e.issuePageSets[n]),{status:u.U.Pending})),t}),(0,a.Cl)({},e.issuePageSets))})})),(0,s.po)(K,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSetCollections:(0,a.Cl)((0,a.Cl)({},e.pageSetCollections),(n={},n[i.pageSetId]={status:u.U.Done,pageSetId:i.pageSetId,collections:[]},n)),issuePageSets:Object.keys(e.issuePageSets).reduce((function(t,n){return t[n]=(0,a.Cl)((0,a.Cl)({},e.issuePageSets[n]),{pageSetIds:e.issuePageSets[n].pageSetIds.filter((function(e){return e!==i.pageSetId}))}),t}),(0,a.Cl)({},e.issuePageSets))})})),(0,s.po)(J,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSetCollections:(0,a.Cl)((0,a.Cl)({},e.pageSetCollections),(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSetCollections[i.pageSetId]),{status:u.U.Failed}),n))})})),(0,s.po)(Z,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSet:(0,a.Cl)((0,a.Cl)({},e.pageSet),(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSet[i.pageSetId]),{pageSetId:i.pageSetId,status:u.U.Pending}),n))})})),(0,s.po)($,(function(e,t){var n,i=t.payload,r=e.pageSet[i.pageSetId].pageSet;return r||(0,k.R)("Page set not found by id ".concat(i.pageSetId)),(0,a.Cl)((0,a.Cl)({},e),{pageSet:(0,a.Cl)((0,a.Cl)({},e.pageSet),(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSet[i.pageSetId]),{status:u.U.Done,pageSetId:i.pageSetId,pageSet:r?(0,a.Cl)((0,a.Cl)({},r),{id:i.pageSetId,pages:i.pages}):void 0}),n))})})),(0,s.po)(ee,(function(e,t){var n,i=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{pageSet:(0,a.Cl)((0,a.Cl)({},e.pageSet),(n={},n[i.pageSetId]=(0,a.Cl)((0,a.Cl)({},e.pageSet[i.pageSetId]),{status:u.U.Failed}),n))})}))),ie=r+"/user_collections/",re=(0,s.lQ)("".concat(ie,"load_user_collections_action")),oe=(0,s.lQ)("".concat(ie,"load_user_collections_began")),ae=(0,s.lQ)("".concat(ie,"load_user_collections_done")),se=(0,s.lQ)("".concat(ie,"load_user_collections_failed")),ue=(0,s.lQ)("".concat(ie,"load_user_collections_cancelled")),ce=(0,s.lQ)("".concat(ie,"reset_user_collections_action")),le=Object.freeze([ae,se,ue]),de={status:u.U.None,userCollections:[]},he=(0,s.vy)(de,(0,s.po)(oe,(function(e){return(0,a.Cl)((0,a.Cl)({},e),{userCollections:(0,a.Cl)((0,a.Cl)({},e.userCollections),{status:u.U.Pending})})})),(0,s.po)(ae,(function(e,t){var n=t.payload;return(0,a.Cl)((0,a.Cl)({},e),{status:u.U.Done,userCollections:n.collections})})),(0,s.po)(se,(function(e){return(0,a.Cl)((0,a.Cl)({},e),{status:u.U.Failed})})),(0,s.po)(ce,(function(e){return(0,a.Cl)((0,a.Cl)({},e),{status:u.U.None,userCollections:[]})})),(0,s.po)(ue,(function(e){return(0,a.Cl)((0,a.Cl)({},e),{status:u.U.None})}))),fe=(0,o.HY)({userCollections:he,issuePageSet:ne,articleCollections:x}),pe=function(e){return e[r]},me=n(44834),ge=n(96424),ve=n(30212),ye=n(67660),_e=n(60474),be=n(88544),we=n(56880),Ce=n(29978),Ae=(0,Ce.Mz)(pe,(function(e){return e.articleCollections})),Ie=(0,Ce.Mz)(Ae,(function(e){return e.articleCollections})),Se=(0,i.bb)("articleId"),Pe=(0,Ce.Mz)(Ie,Se,(function(e,t){return e[t]})),xe=(0,Ce.Mz)(Pe,(function(e){return null==e?void 0:e.status})),Te=(0,Ce.Mz)(Pe,(function(e){return null==e?void 0:e.collections}));function ke(e){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[5,(0,a.Ju)((0,be.N)(xe,{articleId:e}))];case 1:return t.sent()!==u.U.Pending?[2]:[5,(0,a.Ju)((0,we.l)((0,a.fX)([],(0,a.zs)(I),!1),(function(t){return t.payload.articleId===e})))];case 2:return t.sent(),[2]}}))}function Ee(e){var t,n;return(0,a.YH)(this,(function(i){switch(i.label){case 0:return[5,(0,a.Ju)(ke(e))];case 1:return i.sent(),[5,(0,a.Ju)((0,be.N)(xe,{articleId:e}))];case 2:return void 0!==(t=i.sent())&&t!==u.U.None&&t!==u.U.Failed?t!==u.U.Done?[3,4]:[5,(0,a.Ju)((0,be.N)(Te,{articleId:e}))]:[3,6];case 3:return[2,null!=(n=i.sent())?n:void 0];case 4:return[5,(0,a.Ju)(Ee(e))];case 5:return[2,i.sent()];case 6:return[2,void 0]}}))}function Me(e){var t,n,i,r=e.articleId,o=e.isForce,s=void 0!==o&&o;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[5,(0,a.Ju)(Ee(r))];case 1:return t=e.sent(),[4,(0,me.yJ)(d({articleId:r}))];case 2:return e.sent(),Boolean(t)&&!s?(i=t,[3,5]):[3,3];case 3:return[5,(0,a.Ju)((0,ge.p)(ye.oz,r))];case 4:i=e.sent(),e.label=5;case 5:return n=i,[4,(0,me.yJ)(h({articleId:r,collections:n}))];case 6:return e.sent(),[2]}}))}function De(e){var t,n,i,r=e.payload;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return t=r.articleId,n=r.isForce,[4,ke(t)];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,4,6,10]),[5,(0,a.Ju)(Me({articleId:t,isForce:n}))];case 3:return e.sent(),[3,10];case 4:return i=e.sent(),(0,ve.z)(i),[4,(0,me.yJ)(f({articleId:t,error:i}))];case 5:return e.sent(),[3,10];case 6:return[4,(0,me.KW)()];case 7:return e.sent()?[4,(0,me.yJ)(p({articleId:t}))]:[3,9];case 8:e.sent(),e.label=9;case 9:return[7];case 10:return[2]}}))}function Ne(e){var t,n,i=e.payload,r=i.articleId,o=i.collectionsData;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,7]),[5,(0,a.Ju)(ke(r))];case 1:return e.sent(),[4,(0,me.yJ)(v({articleId:r}))];case 2:return e.sent(),[4,(0,me.T1)(ye.lw,r,o)];case 3:return t=e.sent(),[4,(0,me.yJ)(y({articleId:r,articleCollections:t}))];case 4:case 6:return e.sent(),[3,7];case 5:return n=e.sent(),(0,ve.z)(n),[4,(0,me.yJ)(_({articleId:r}))];case 7:return[2]}}))}function Le(e){var t,n=e.payload.articleId;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,7]),[5,(0,a.Ju)(ke(n))];case 1:return e.sent(),[4,(0,me.yJ)(w({articleId:n}))];case 2:return e.sent(),[4,(0,me.T1)(_e.SR,n)];case 3:return e.sent(),[4,(0,me.yJ)(C({articleId:n}))];case 4:case 6:return e.sent(),[3,7];case 5:return t=e.sent(),(0,ve.z)(t),[4,(0,me.yJ)(A({articleId:n}))];case 7:return[2]}}))}function Ve(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,me.p8)(l,De)];case 1:return e.sent(),[4,(0,me.jP)(g,Ne)];case 2:return e.sent(),[4,(0,me.jP)(b,Le)];case 3:return e.sent(),[2]}}))}var Re=n(67373),He=r+"/bookmarks/",Fe=(0,s.lQ)("".concat(He,"load_article_collections_action")),Be=((0,s.lQ)("".concat(He,"load_article_collections_began")),(0,s.lQ)("".concat(He,"load_article_collections_done"))),ze=(0,s.lQ)("".concat(He,"load_article_collections_failed")),Oe=n(60588),je=(0,Ce.Mz)(pe,(function(e){return e.issuePageSet})),Ue=(0,Ce.Mz)(je,(function(e){return e.pageSet})),We=(0,i.bb)("pageSetId"),Ye=(0,Ce.Mz)(Ue,We,(function(e,t){return e[t]})),Xe=(0,Ce.Mz)(Ye,(function(e){return null==e?void 0:e.status})),qe=(0,Ce.Mz)(Ye,(function(e){return null==e?void 0:e.pageSet})),Ge=(0,Ce.Mz)(je,(function(e){return e.pageSetCollections})),Ke=(0,Ce.Mz)(Ge,We,(function(e,t){return e[t]})),Je=(0,Ce.Mz)(Ke,(function(e){return null==e?void 0:e.collections})),Qe=(0,Ce.Mz)(Ke,(function(e){return null==e?void 0:e.status}));function Ze(e){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[5,(0,a.Ju)((0,be.N)(Xe,{pageSetId:e}))];case 1:return t.sent()!==u.U.Pending?[2]:[4,(0,me.s)((0,a.fX)([],(0,a.zs)(te),!1))];case 2:return t.sent(),[5,(0,a.Ju)((0,be.N)(Xe,{pageSetId:e}))];case 3:return t.sent()!==u.U.Pending?[2]:[5,(0,a.Ju)(Ze(e))];case 4:return t.sent(),[2]}}))}function $e(e){var t,n;return(0,a.YH)(this,(function(i){switch(i.label){case 0:return[5,(0,a.Ju)(Ze(e))];case 1:return i.sent(),[5,(0,a.Ju)((0,be.N)(Xe,{pageSetId:e}))];case 2:return null!=(t=i.sent())&&t!==u.U.None&&t!==u.U.Failed?t!==u.U.Done?[3,4]:[5,(0,a.Ju)((0,be.N)(qe,{pageSetId:e}))]:[3,6];case 3:return[2,null!=(n=i.sent())?n:null];case 4:return[5,(0,a.Ju)($e(e))];case 5:return[2,i.sent()];case 6:return[2,null]}}))}function et(e){var t;return(0,a.YH)(this,(function(n){switch(n.label){case 0:return[5,(0,a.Ju)((0,be.N)(Qe,{pageSetId:e}))];case 1:return(t=n.sent())!==u.U.Done?[3,3]:[5,(0,a.Ju)((0,be.N)(Je,{pageSetId:e}))];case 2:case 5:return[2,n.sent()];case 3:return t!==u.U.Pending?[3,6]:[4,(0,we.l)((0,a.fX)([],(0,a.zs)(X),!1),(function(t){return t.payload.pageSetId===e}))];case 4:return n.sent(),[5,(0,a.Ju)(et(e))];case 6:return[2,void 0]}}))}function tt(e,t){return(0,a.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,me.yJ)(j({pageSetId:e,collections:t}))];case 1:return n.sent(),[5,(0,a.Ju)(et(e))];case 2:return n.sent(),[2]}}))}function nt(e,t){var n,i;return(0,a.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,5]),[4,(0,me.T1)(Oe.dW,{issueKey:e,pages:t})];case 1:return n=r.sent(),[4,(0,me.yJ)(D({issueKey:e,pageSet:[n]}))];case 2:return r.sent(),[2,n];case 3:return i=r.sent(),(0,ve.z)(i),[4,(0,me.yJ)(N({issueKey:e,error:i}))];case 4:throw r.sent(),i;case 5:return[2]}}))}function it(e){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,me.yJ)(q({pageSetId:e}))];case 1:return t.sent(),[4,(0,we.l)([K,J],(function(t){return t.payload.pageSetId===e}))];case 2:if(t.sent().type===String(J))throw new Error("Failed to remove page set from collections");return[2]}}))}function rt(e,t){return(0,a.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,me.yJ)(Q({pageSetId:e,pages:t}))];case 1:return n.sent(),[5,(0,a.Ju)((0,we.l)([$,ee],(function(t){return t.payload.pageSetId===e})))];case 2:if(n.sent().type===String(ee))throw new Error("Failed to update page set");return[2]}}))}var ot=n(1766),at=n(35374);function st(e,t){return(0,a.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,me.yJ)(g({articleId:e,collectionsData:t}))];case 1:return n.sent(),[4,(0,we.l)([y,_],(function(t){return t.payload.articleId===e}))];case 2:if(n.sent().type===String(_))throw new Error("Failed to upsert article collections");return[2]}}))}function ut(e){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,me.yJ)(b({articleId:e}))];case 1:return t.sent(),[4,(0,we.l)([C,A],(function(t){return t.payload.articleId===e}))];case 2:if(t.sent().type===String(A))throw new Error("Failed to remove article from collections");return[2]}}))}function ct(e){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,me.yJ)(Fe(e))];case 1:return t.sent(),[4,(0,we.l)([Be,ze],(function(t){return t.payload===e}))];case 2:if(t.sent().type===String(ze))throw new Error("Failed to add bookmark");return[2]}}))}function lt(e,t){return(0,a.YH)(this,(function(n){switch(n.label){case 0:return[5,(0,a.Ju)(dt({contentId:e,collections:t,contentType:Re.P.pageSet}))];case 1:return[2,n.sent()]}}))}function dt(e){var t=e.contentId,n=e.collections,i=e.contentType;return(0,a.YH)(this,(function(e){switch(e.label){case 0:if(!t)throw new Error("Content ID is not specified");return ot(n)&&(n=[{id:at.KM}]),i!==Re.P.article?[3,2]:[5,(0,a.Ju)(st(t,{collections:n}))];case 1:case 3:return e.sent(),[3,5];case 2:return i!==Re.P.pageSet?[3,4]:[5,(0,a.Ju)(tt(t,n))];case 4:throw new Error("unknown contentType");case 5:return[2]}}))}function ht(e){var t,n,i,r,o,s;return(0,a.YH)(this,(function(u){switch(u.label){case 0:return t=e.bookmarkType,n=e.bookmarkData,i=e.collections,t!==Re.x.pages?[3,2]:(o=n,[5,(0,a.Ju)(nt(o.issueKey,o.pages))]);case 1:s=u.sent(),r=s.id,u.label=2;case 2:if(t===Re.x.pageSet&&(r=n.pageSetId),!r)throw new Error("PageSet ID is not specified");return[5,(0,a.Ju)(lt(r,i||[]))];case 3:return u.sent(),[2]}}))}function ft(e){var t,n,i,r,o,s=e.payload;return(0,a.YH)(this,(function(e){switch(e.label){case 0:if(e.trys.push([0,6,,8]),!s)throw new Error("Bookmark is not specified");return t=s.bookmarkType,n=s.bookmarkData,i=s.collections,t!==Re.x.article?[3,2]:(r=n.articleId,[5,(0,a.Ju)(dt({contentId:r,collections:null!=i?i:[],contentType:Re.P.article}))]);case 1:return e.sent(),[3,4];case 2:return[5,(0,a.Ju)(ht(s))];case 3:e.sent(),e.label=4;case 4:return[4,(0,me.yJ)(Be(s))];case 5:return e.sent(),[3,8];case 6:return o=e.sent(),(0,ve.z)(o),[4,(0,me.yJ)(ze(s))];case 7:return e.sent(),[3,8];case 8:return[2]}}))}function pt(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,me.jP)(Fe,ft)];case 1:return e.sent(),[2]}}))}var mt=n(20263);function gt(e){var t,n,i,r,o=e.pageSetId,s=e.isForce,u=void 0!==s&&s;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[5,(0,a.Ju)($e(o))];case 1:return t=e.sent(),[4,(0,me.yJ)(H({pageSetId:o}))];case 2:return e.sent(),Boolean(t)&&!u?(i=t,[3,5]):[3,3];case 3:return[4,(0,me.T1)(Oe.aI,o)];case 4:i=e.sent(),e.label=5;case 5:return n=i,[4,(0,me.yJ)(F({pageSet:n?[n]:[],issueKey:null!==(r=null==n?void 0:n.issueKey)&&void 0!==r?r:""}))];case 6:return e.sent(),[2]}}))}function vt(e){var t,n=e.payload;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,5,9]),[5,(0,a.Ju)(Ze(n.pageSetId))];case 1:return e.sent(),[5,(0,a.Ju)(gt({pageSetId:n.pageSetId,isForce:n.isForce}))];case 2:return e.sent(),[3,9];case 3:return t=e.sent(),(0,ve.z)(t),[4,(0,me.yJ)(B({pageSetId:n.pageSetId,error:t}))];case 4:return e.sent(),[3,9];case 5:return[4,(0,me.KW)()];case 6:return e.sent()?[4,(0,me.yJ)(L({issueKey:n.pageSetId}))]:[3,8];case 7:e.sent(),e.label=8;case 8:return[7];case 9:return[2]}}))}function yt(e){var t,n=e.payload;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,7]),[5,(0,a.Ju)(Ze(n.pageSetId))];case 1:return e.sent(),[4,(0,me.yJ)(U(n))];case 2:return e.sent(),[4,(0,me.T1)(Oe.um,n.pageSetId,n.collections)];case 3:return e.sent(),[4,(0,me.yJ)(W(n))];case 4:case 6:return e.sent(),[3,7];case 5:return t=e.sent(),(0,ve.z)(t),[4,(0,me.yJ)(Y(n))];case 7:return[2]}}))}function _t(e){var t,n=e.payload;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,7]),[5,(0,a.Ju)(Ze(n.pageSetId))];case 1:return e.sent(),[4,(0,me.yJ)(G(n))];case 2:return e.sent(),[4,(0,ge.p)(mt.L2,n.pageSetId)];case 3:return e.sent(),[4,(0,me.yJ)(K(n))];case 4:case 6:return e.sent(),[3,7];case 5:return t=e.sent(),(0,ve.z)(t),[4,(0,me.yJ)(J(n))];case 7:return[2]}}))}function bt(e){var t=e.payload;return(0,a.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,7]),[5,(0,a.Ju)(Ze(t.pageSetId))];case 1:return e.sent(),[4,(0,me.yJ)(Z({pageSetId:t.pageSetId}))];case 2:return e.sent(),[4,(0,ge.p)(Oe.xm,t.pageSetId,t.pages)];case 3:return e.sent(),[4,(0,me.yJ)($(t))];case 4:case 6:return e.sent(),[3,7];case 5:return e.sent(),[4,(0,me.yJ)(ee({pageSetId:t.pageSetId}))];case 7:return[2]}}))}function wt(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,me.jP)(R,vt)];case 1:return e.sent(),[4,(0,me.jP)(j,yt)];case 2:return e.sent(),[4,(0,me.jP)(Q,bt)];case 3:return e.sent(),[4,(0,me.jP)(q,_t)];case 4:return e.sent(),[2]}}))}var Ct=n(28809),At=(0,Ce.Mz)(pe,(function(e){return e.userCollections})),It=(0,Ce.Mz)(Ct._t,(function(e){return{menu:e("ui.SharingMenu",[]).map((function(e){return{provider:e.id,enabled:e.enabled}}))}})),St=(0,Ce.Mz)(Ct._t,(function(e){return{oAuth:{facebookAppId:e("Authentication.OAuth.client_facebook.AppId")}}})),Pt=(0,Ce.Mz)(At,(function(e){return e.status})),xt=(0,Ce.Mz)(At,(function(e){return e.userCollections}));function Tt(){var e,t;return(0,a.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,me.Lt)(Pt)];case 1:return e=n.sent(),[4,(0,me.Lt)(xt)];case 2:return t=n.sent(),null!=e&&e!==u.U.None?e===u.U.Done?[2,t]:e===u.U.Failed?[2,null]:[4,(0,me.s)((0,a.fX)([],(0,a.zs)(le),!1))]:[3,5];case 3:return n.sent(),[5,(0,a.Ju)(Tt())];case 4:return[2,n.sent()];case 5:return[2,null]}}))}function kt(e){var t,n,i,r,o,s;return(0,a.YH)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,10,,12]),[4,(0,me.Lt)(Pt)];case 1:return t=c.sent(),e&&t===u.U.Pending?(i=null,[3,4]):[3,2];case 2:return[5,(0,a.Ju)(Tt())];case 3:i=c.sent(),c.label=4;case 4:return n=i,[4,(0,me.yJ)(oe())];case 5:return c.sent(),Boolean(n)&&!e?(o=n,[3,8]):[3,6];case 6:return[4,(0,me.T1)(ye.Re)];case 7:o=c.sent(),c.label=8;case 8:return r=o,[4,(0,me.yJ)(ae({collections:r}))];case 9:return c.sent(),[2,r];case 10:return s=c.sent(),(0,ve.z)(s),[4,(0,me.yJ)(se({error:s}))];case 11:return c.sent(),[3,12];case 12:return[2,[]]}}))}function Et(e){var t,n=e.payload;return(0,a.YH)(this,(function(e){switch(e.label){case 0:t=n.isForce,e.label=1;case 1:return e.trys.push([1,,3,7]),[5,(0,a.Ju)(kt(t))];case 2:return e.sent(),[3,7];case 3:return[4,(0,me.KW)()];case 4:return e.sent()?[4,(0,me.yJ)(ue())]:[3,6];case 5:e.sent(),e.label=6;case 6:return[7];case 7:return[2]}}))}function Mt(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,me.p8)(re,Et)];case 1:return e.sent(),[2]}}))}i.bX.addFeature(r,fe,(function(){return(0,a.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,me.Zy)(wt)];case 1:return e.sent(),[4,(0,me.Zy)(Mt)];case 2:return e.sent(),[4,(0,me.Zy)(Ve)];case 3:return e.sent(),[4,(0,me.Zy)(pt)];case 4:return e.sent(),[2]}}))}))},34132:function(e,t,n){"use strict";n.d(t,{KP:function(){return c},M_:function(){return u},fm:function(){return l},su:function(){return s}});var i=n(58932),r=n(73690),o=n(17207),a="SponsorshipManager",s=function(e){return(0,r._s)(a,"SetHotzoneStatus",JSON.stringify({enabled:e}),{contentType:"application/json"})},u=function(){return(0,r.G4)(a,"get",{},{ignoreInitState:!0})},c=function(){return(0,r.G4)(a,"GetCobranding",{})},l=function(){return(0,i.sH)(void 0,void 0,void 0,(function(){var e;return(0,i.YH)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,o.TR)()];case 1:return e=t.sent(),[3,3];case 2:return t.sent(),e=void 0,[3,3];case 3:return[2,(0,r._s)(a,"findAndActivateByLocation",e?JSON.stringify({myLat:e.lat,myLng:e.lng}):void 0,{contentType:"application/json"})]}}))}))}},61445:function(e,t,n){"use strict";n.d(t,{cl:function(){return _},xJ:function(){return T},sF:function(){return P},$4:function(){return x},dZ:function(){return E},pP:function(){return k},uL:function(){return l},NX:function(){return d},GQ:function(){return p},rx:function(){return m},$y:function(){return v},Wj:function(){return f},RR:function(){return y},FE:function(){return M},N$:function(){return D},jA:function(){return N},B4:function(){return g},c0:function(){return h}});var i=n(13981),r="@pressreader/sponsorship-core",o=n(58932),a=n(74010),s=n(89103),u=n(43566),c="".concat(r,"/"),l=(0,s.lQ)("".concat(c,"load_hotspot_info")),d=(0,s.lQ)("".concat(c,"load_hotspot_info_cancelled")),h=(0,s.lQ)("".concat(c,"toggle_hotspot")),f=(0,s.lQ)("".concat(c,"open_hotspot")),p=(0,s.lQ)("".concat(c,"load_hotspot_info_done")),m=(0,s.lQ)("".concat(c,"load_hotspot_info_failed")),g=(0,s.lQ)("".concat(c,"sponsorship_changed")),v=(0,s.lQ)("".concat(c,"load_partner_info")),y=(0,s.lQ)("".concat(c,"partner_info_changed")),_=(0,s.lQ)("".concat(c,"find_and_activate_sponsorship_by_location")),b={loading:a.U.None,sponsor:null,partner:void 0},w=(0,s.vy)(b,(0,s.po)(u.YC,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{loading:a.U.None,sponsor:null})})),(0,s.po)(p,(function(e,t){var n=t.payload.sponsor;return(0,o.Cl)((0,o.Cl)({},e),{loading:a.U.Done,sponsor:n})})),(0,s.po)(m,(function(e){return(0,o.Cl)((0,o.Cl)({},e),{loading:a.U.Failed})})),(0,s.po)(g,(function(e,t){var n=t.payload.sponsor;return(0,o.Cl)((0,o.Cl)({},e),{loading:a.U.Done,sponsor:n})})),(0,s.po)(y,(function(e,t){var n=t.payload.partner;return(0,o.Cl)((0,o.Cl)({},e),{partner:n})}))),C=n(29978),A=n(28809),I=n(46674),S=function(e){return e[r]},P=(0,C.Mz)(S,(function(e){return e.loading})),x=(0,C.Mz)(S,(function(e){return e.sponsor})),T=(0,C.Mz)(x,(function(e){return!!(null==e?void 0:e.isHotspotEnabled)})),k=(0,C.Mz)(x,(function(e){return null==e?void 0:e.status})),E=(0,C.Mz)(x,(function(e){return(null==e?void 0:e.status)===I.D.On?e:null})),M=(0,C.Mz)(x,(function(e){return(null==e?void 0:e.isEmbeddedModeEnabled)||!1})),D=(0,C.Mz)(M,A._t,(function(e,t){return e||t("features.authentication.disabled",!1)})),N=(0,C.Mz)(S,(function(e){return e.partner}));i.bX.addFeature(r,w)},46674:function(e,t,n){"use strict";var i;n.d(t,{D:function(){return i}}),function(e){e[e.Off=0]="Off",e[e.Busy=1]="Busy",e[e.On=2]="On",e[e.BusyLimitExceeded=3]="BusyLimitExceeded",e[e.OutOfHotspot=4]="OutOfHotspot"}(i||(i={}))},80835:function(e,t,n){"use strict";var i,r;n.d(t,{Z:function(){return i}}),function(e){e.Web="web",e.Pervasive="pervasive",e.Voyager="voyager"}(i||(i={})),function(e){e.JPEG="image/jpeg",e.PNG="image/png",e.GIF="image/gif",e.WEBP="image/webp",e.PDF="application/pdf",e.EPUB_ZIP="application/epub+zip"}(r||(r={}))},91894:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var i=[{prop:"",css:"",fun:""},{prop:"Webkit",css:"-webkit-",fun:"webkit"},{prop:"Moz",css:"-moz-",fun:"moz"},{prop:"ms",css:"-ms-",fun:"ms"},{prop:"O",css:"-o-",fun:"o"}]},84386:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var i=n(58932),r=function(e){function t(t){var n=this.constructor,i=e.call(this,t)||this;return Object.setPrototypeOf(i,n.prototype),i}return(0,i.C6)(t,e),t}(Error)},30264:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var i=n(58932),r=function(e){function t(t){var n=t.status,i=t.responseText,r=t.responseJSON,o=this,a=(null==r?void 0:r.message)||i||"",s=null==r?void 0:r.resourceKey;return(o=e.call(this,a,s)||this).status=n,o.responseText=i,o.responseJSON=r,o}return(0,i.C6)(t,e),t}(function(e){function t(t,n){var i=e.call(this,t)||this;return i.resourceKey=n,i}return(0,i.C6)(t,e),t}(n(84386).e))},3503:function(e,t,n){"use strict";function i(e){return null!=e}function r(e){return function(t){return i(null==t?void 0:t[e])}}function o(e){for(var t=[],n=1;ni[1])continue;i=u}}return i}function p(e){return e&&e.isDefault}function m(e){return!!e&&(function(e){var t=e.getAttribute("tabindex"),n=t?Number(t):null;(null===n||!Number.isFinite(n)||n<-1)&&e.setAttribute("tabindex","-1")}(e),e.focus(),!0)}var g=(0,r.memo)((function(e){var t=(0,r.useRef)({type:u.S.SkipLinkContainer,items:[]}),n=(0,a.f)(t.current),c=(0,r.useRef)({}),l=(0,r.useMemo)((function(){return{isDefault:!1,addItem:function(e){t.current.items.indexOf(e)<0&&t.current.items.push(e)},removeItem:function(e){var n=t.current.items.indexOf(e);n>=0&&t.current.items.splice(n,1)},skip:function(e){return e.ref.current?n.goNext(t.current,h(e.ref.current),e.tag):null},goNext:function(e,i,r){var o,a,s=t.current,u=s.items.filter((function(t){return t!==e})),c=f(u,r,i),l=null;if(c)l=null!==(o=c[0].ref.current)&&void 0!==o?o:null;else{if(!p(n))return n.goNext(s,i,r);var d=f(u,r);l=null!==(a=null==d?void 0:d[0].ref.current)&&void 0!==a?a:null}return l&&m(l)?l:null},registerInGlobalContext:function(e){var t=e.tag;if(t)if(p(n)){var i=c.current;i[t]&&i[t]!==e&&(0,o.z)('A ISkipLinkTargetItem with tag "'.concat(t,'" is already registered in the global context')),i[t]=e}else n.registerInGlobalContext(e);else(0,o.z)("ISkipLinkTargetItem should have a tag when registered in the global context")},removeFromGlobalContext:function(e){var t=e.tag;t&&(p(n)?delete c.current[t]:n.removeFromGlobalContext(e))},goToTag:function(e){if(!p(n))return n.goToTag(e);var t=c.current[e];return!!t&&m(t.ref.current)}}}),[t,c,n]);return(0,i.jsx)(s.y.Provider,{value:l,children:e.children})}));g.displayName="SkipLinkContainer"},20820:function(e,t,n){"use strict";n.d(t,{q:function(){return c}});var i=n(31555),r=n(5059),o=n(30212),a=n(97556),s=n(30431),u=n(77511),c=(0,r.memo)((0,r.forwardRef)((function(e,t){var n=(0,r.useRef)(void 0),c=(0,r.useMemo)((function(){return{type:u.S.SkipLink,ref:n,tag:e.tag}}),[e.tag]),l=(0,s.f)(c),d=e.onClick,h=(0,r.useCallback)((function(){var e=l.skip(c);e?null==d||d(e):(0,o.z)("SkipLink: No SkipLinkTarget found for the item:",c)}),[l,c,d]),f=(0,r.useCallback)((function(e){n.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[t]);return(0,i.jsx)(a.o,{ref:f,id:e.id,onClick:h,className:"skip-link ".concat(e.className||""),"aria-label":e["aria-label"],children:e.children})})));c.displayName="SkipLink"},70841:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var i=n(5059),r=n(55134),o=n(88612),a=n(30431),s=n(77511),u=(0,i.memo)((function(e){var t=(0,i.useRef)(void 0),n=(0,i.useMemo)((function(){return{type:s.S.SkipLinkTarget,ref:t,tag:e.tag}}),[e.tag]);(0,a.f)(n);var u=i.Children.only(e.children);return(0,i.useMemo)((function(){var e;if(!t)return u;if(!(0,i.isValidElement)(u))return u;var n=u.type,a=(0,r.G)(n)?n.refProp:"ref";return(0,i.cloneElement)(u,((e={})[a]=function(e){if(t.current=e,(0,o.m)(u,"ref")){var n=u.ref;"function"==typeof n?n(e):(0,o.m)(n,"current")&&(n.current=e)}},e))}),[u])}));u.displayName="SkipLinkTarget"},30431:function(e,t,n){"use strict";n.d(t,{d:function(){return c},f:function(){return l}});var i=n(5059),r=n(85387),o=n(30212),a=n(27602),s=n(64769),u=n(63567);function c(){var e=(0,i.useContext)(s.y);if(!e||e.isDefault){var t=new Error("SkipLinkContainerContext should be used inside a context provider");throw(0,o.z)(t),t}return e}function l(e){var t=(0,i.useContext)(s.y),n=(0,r.wA)(),o=t.addItem,c=t.removeItem,l=t.removeFromGlobalContext,d=t.registerInGlobalContext;return(0,i.useLayoutEffect)((function(){if((0,u.Q)(e)){var t={type:"skipLinkTarget",timestampMs:Date.now(),refocusTarget:{id:e.tag}};return d(e),n((0,a.FL)(t)),function(){l(e),n((0,a.aq)({reason:"skip-link-target-unmount",target:t}))}}}),[e,d,l,n]),(0,i.useEffect)((function(){return o(e),function(){c(e)}}),[e,o,c]),t}},64769:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var i=function(){},r=function(){return null},o={isDefault:!0,addItem:i,removeItem:i,goNext:r,skip:r,registerInGlobalContext:i,removeFromGlobalContext:i,goToTag:function(){return!1}},a=(0,n(5059).createContext)(o)},77511:function(e,t,n){"use strict";var i;n.d(t,{S:function(){return i}}),function(e){e[e.SkipLink=0]="SkipLink",e[e.SkipLinkTarget=1]="SkipLinkTarget",e[e.SkipLinkContainer=2]="SkipLinkContainer"}(i||(i={}))},63567:function(e,t,n){"use strict";n.d(t,{Q:function(){return o},U:function(){return r}});var i=n(77511);function r(e){return e.type===i.S.SkipLinkTarget}function o(e){return r(e)&&"tag"in e&&"string"==typeof e.tag}},18752:function(e,t,n){"use strict";n.d(t,{dS:function(){return h},HG:function(){return c},el:function(){return T},LU:function(){return I},CL:function(){return x},ff:function(){return A},Fq:function(){return P},L9:function(){return S},l9:function(){return H},O4:function(){return k},iz:function(){return d}});var i=n(13981),r="@pressreader/ui-common",o=n(58932),a=n(89103),s=n(75069),u="ui/common/",c=(0,a.lQ)("".concat(u,"screen_resized")),l=(0,a.lQ)("".concat(u,"screen_changed")),d=(0,a.lQ)("".concat(u,"topbar_height_changed")),h=(0,a.lQ)("".concat(u,"notify_screen_reader")),f=(0,a.lQ)("".concat(u,"screen_reader_notified")),p={screen:(0,s.gc)(),notification:null},m=(0,a.vy)(p,(0,a.po)(l,(function(e,t){return(0,o.Cl)((0,o.Cl)({},e),{screen:(0,o.Cl)({},t.payload.screen)})})),(0,a.po)(f,(function(e,t){var n;return(0,o.Cl)((0,o.Cl)({},e),{notification:{id:((null===(n=e.notification)||void 0===n?void 0:n.id)||0)+1,message:t.payload.message}})}))),g=n(44834),v=n(4291),y=n(29978),_=n(28809),b=n(11677),w=n(16343),C=function(e){return e[r]},A=(0,y.Mz)(C,(function(e){return e.screen})),I=(0,y.Mz)(A,(function(e){return w.j.mobile?e.screenType<=b.a.Small?"phone":"tablet":"desktop"})),S=(0,y.Mz)(A,(function(e){return e.screenType})),P=(0,y.Mz)(A,(function(e){return e.orientation})),x=(0,y.Mz)(C,(function(e){return e.notification})),T=(0,y.Mz)(_._t,(function(e){return{threshold:e("app.common.swiper.threshold",0)}})),k=(0,y.Mz)(_._t,(function(e){return e("ui.Sidebar.SignInEnabled",!0)&&e("ui.TopToolbar.SignInEnabled",!0)}));function E(e,t){var n=e.headerHeight;(null==t?void 0:t.newHeaderHeight)&&(n=t.newHeaderHeight);var i=(0,s.gc)(),r={top:n,left:0,width:i.availWidth,height:i.availHeight-n};return(0,o.Cl)((0,o.Cl)({},i),{headerHeight:n,viewport:r})}function M(e,t){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return v(e,t)?[3,2]:[4,(0,g.yJ)(l({prevScreen:e,screen:t}))];case 1:n.sent(),n.label=2;case 2:return[2]}}))}function D(){var e,t;return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,g.Lt)(A)];case 1:return e=n.sent(),t=E(e),[4,M(e,t)];case 2:return n.sent(),[2]}}))}function N(e){var t,n,i;return(0,o.YH)(this,(function(r){switch(r.label){case 0:return t=e.payload.topbarHeight,[4,(0,g.Lt)(A)];case 1:return n=r.sent(),i=E(n,{newHeaderHeight:t}),[4,M(n,i)];case 2:return r.sent(),[2]}}))}function L(e){return(0,o.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,g.yJ)(f({message:e.payload.message}))];case 1:return t.sent(),[2]}}))}var V=n(27602),R=n(65678),H=(0,y.Mz)(V.SG,(function(e){return[R.lP.Article,R.lP.FTSArticles,R.lP.TextView,R.lP.TopNews].some((function(t){return t===(null==e?void 0:e.viewName)}))}));i.bX.addFeature(r,m,(function(){return(0,o.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,g.jP)(c,D)];case 1:return e.sent(),[4,(0,g.jP)(d,N)];case 2:return e.sent(),[4,(0,g.jP)(h,L)];case 3:return e.sent(),[2]}}))}))},75069:function(e,t,n){"use strict";n.d(t,{DK:function(){return h},I1:function(){return p},gc:function(){return u},jG:function(){return l},jd:function(){return d},pX:function(){return f},w3:function(){return c}});var i=n(58932),r=n(80835),o=n(11677),a=n(88960),s=n(1333);function u(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;if(void 0===e||void 0===t)throw new Error("Critical error: document size is undefined.");var n=e>t?o.Z.Landscape:o.Z.Portrait;return{screenWidth:window.screen.width,screenHeight:window.screen.height,screenType:(0,s.a)(),availWidth:e,availHeight:t,orientation:n,devicePixelRatio:window.devicePixelRatio,headerHeight:0,viewport:{top:0,left:0,width:e,height:t}}}function c(e,t,n){return"vp_".concat(e.width,"_").concat(t||"","_").concat(n)}function l(e){return e===r.Z.Voyager?"platform-".concat(r.Z.Web," platform-extend-").concat(r.Z.Voyager):"platform-".concat(e)}function d(){return"a".concat((0,a.A)())}function h(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+(parseInt(n.marginTop,10)+parseInt(n.marginBottom,10))}function f(e,t){if("function"==typeof e.closest)return e.closest(t)||null;if(!Element.prototype.matches)return null;for(var n=e;n;n=n.parentElement)if(n.matches(t))return n;return null}var p=function(e){return(0,i.fX)([],e,!0).sort((function(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},6666:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var i=function(e){return e.stopPropagation(),e.preventDefault(),!1}},16957:function(e,t,n){"use strict";n.d(t,{Px:function(){return m},_U:function(){return p},bx:function(){return v},sP:function(){return g}});var i=n(58932),r=n(83123),o=n(26308),a=n(19589),s=n(26476),u=n(74594),c=50,l=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],d="webkitbeginfullscreen",h="webkitendfullscreen",f=document;function p(){return!!(f.fullscreenElement||f.webkitFullscreenElement||f.mozFullScreenElement||f.msFullscreenElement)}function m(e){return(0,i.sH)(this,void 0,void 0,(function(){var t,n,r,o;return(0,i.YH)(this,(function(i){if(!e)throw new TypeError("`element` is expected to be a DOM element");return[2,(null===(t=e.requestFullscreen)||void 0===t?void 0:t.call(e))||(null===(n=e.msRequestFullscreen)||void 0===n?void 0:n.call(e))||(null===(r=e.webkitRequestFullscreen)||void 0===r?void 0:r.call(e))||(null===(o=e.mozRequestFullScreen)||void 0===o?void 0:o.call(e))]}))}))}function g(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n,r;return(0,i.YH)(this,(function(i){return[2,(null===(e=f.exitFullscreen)||void 0===e?void 0:e.call(f))||(null===(t=f.msExitFullscreen)||void 0===t?void 0:t.call(f))||(null===(n=f.mozCancelFullScreen)||void 0===n?void 0:n.call(f))||(null===(r=f.webkitExitFullscreen)||void 0===r?void 0:r.call(f))]}))}))}function v(e){var t=l.map((function(e){return(0,o.R)(document,e).pipe((0,s.T)((function(){return p()})))}));return r(e)&&(t.push((0,o.R)(e,d).pipe((0,s.T)((function(){return!0})))),t.push((0,o.R)(e,h).pipe((0,s.T)((function(){return!1}))))),a.h.apply(void 0,t).pipe((0,u.c)(c))}},32874:function(e,t,n){"use strict";function i(e){var t=window.devicePixelRatio;return Math.round(e*t)/t}n.d(t,{L:function(){return i}})},1333:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var i=n(11677),r=n(68565),o=n(16343),a=[[1200,i.a.XLarge],[992,i.a.Large],[768,i.a.Medium],[480,i.a.Small],[0,i.a.XSmall]];function s(){var e=(0,r.Q)(),t=e.width;o.j.mobile&&(t=Math.min(e.width,e.height));for(var n=0,s=a;n=u[0])return u[1]}return i.a.XSmall}},69851:function(e,t,n){"use strict";function i(e){var t=document.documentElement,n=e.getBoundingClientRect(),i=n.top+window.scrollY-t.clientTop,r=i+n.height,o=n.left+window.scrollX-t.clientLeft;return{bottom:r,left:o,right:o+n.width,top:i}}function r(e,t){var n=i(t),r=i(e),o=n.topr.bottom;o?(e.scrollTop=n.top-r.top+e.scrollTop,e.scrollTopm-r&&b>m&&(b=m),g+_+r-p>0&&g-r<=0&&(_=Math.max(0,p-g-r));var A=Math.max(0,_-w-C),I=!1;if(f&&f.childElementCount>0&&A>0){for(var S=0,P=0;PA}return{width:b,height:A,scrollable:I}},l=function(e){var t=(0,o.useMemo)((function(){var t,n,i,r,o;return i={alignX:(null===(t=e.position.align)||void 0===t?void 0:t.x)||a.W.Center,alignY:(null===(n=e.position.align)||void 0===n?void 0:n.y)||a.W.Center},r=i.alignX,o=i.alignY,function(e){var t=e.initialPosition,n=e.totalHeight,i=e.totalWidth,s=e.windowHeight,u=e.windowWidth,c=e.marginPx,l=void 0===c?0:c,d=t.top,h=t.left;o===a.W.Top||o===a.W.ScreenTop||(o===a.W.Center?n>s-(d=t.top-n/2-l)&&(d=s-n-l):o===a.W.Bottom?d=t.top-n:o===a.W.ScreenCenter?d=(s-n)/2:o===a.W.ScreenBottom&&(d=s-n)),d=Math.max(Math.ceil(d),l),r===a.W.Left||r===a.W.ScreenLeft||(r===a.W.Center?h=t.left-i/2:r===a.W.Right?h=t.left-i:r===a.W.ScreenCenter?h=(u-i)/2:r===a.W.ScreenRight&&(h=t.left-i)),(h=Math.max(Math.ceil(h),l))+i>u-l&&(h=i>u?0:u-i-Math.min(l,(u-i)/2));var f=d+n+l-s;if(f>0){var p=d-l;p>0&&(d=f>p?l:d-f)}return{top:Math.ceil(d),left:Math.ceil(h)}}}),[e.position.align]);return(0,r.jsx)(s.y,(0,i.Cl)({},e,{positionCalculationStrategy:t,bodyDimensionsOverrideCb:c}))}},37389:function(e,t,n){"use strict";n.d(t,{D:function(){return o},R:function(){return a}});var i=n(5059),r=(0,i.createContext)(null),o=r.Provider,a=function(){return(0,i.useContext)(r)}},10207:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var i=n(5059).createContext({close:function(){throw new Error("Not implemented")}})},41035:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var i=n(31555),r=n(5059),o=n(13384),a=n(97556),s=n(61577),u=(0,r.forwardRef)((function(e,t){var n=e.onClose,u=(0,r.useRef)(null),c=(0,r.useRef)(null),l=(0,r.useState)(0),d=l[0],h=l[1],f=(0,r.useMemo)((function(){return{minWidth:d}}),[d]),p=(0,r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),n({back:!0})}),[n]),m=(0,r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),n({back:!1})}),[n]);return(0,r.useLayoutEffect)((function(){if(u.current&&c.current){var e=Math.max(u.current.clientWidth,c.current.clientWidth);d!==e&&h(e)}})),(0,i.jsxs)("div",{ref:t,className:"toolbar-in",children:[(0,i.jsxs)("div",{className:"toolbar-left",ref:u,style:f,children:[e.leftControls,!e.leftControls&&e.canGoBack&&(0,i.jsx)(a.o,{className:"toolbar-button toolbar-button-back",onClick:p,children:(0,i.jsx)("span",{children:(0,i.jsx)("span",{children:(0,o.p3)("Buttons.Back.Text")})})}),!e.leftControls&&!e.canGoBack&&(0,i.jsx)(s.n,{className:"btn toolbar-btn",onClick:m,children:(0,i.jsx)("span",{className:"title",children:(0,o.p3)("Buttons.Close")})})]}),(0,i.jsxs)("div",{className:"toolbar-center",children:[e.centerControls,!e.centerControls&&e.title&&(0,i.jsx)("h1",{children:e.title})]}),(0,i.jsx)("div",{className:"toolbar-right",ref:c,style:f,children:e.rightControls})]})}))},59565:function(e,t,n){"use strict";n.d(t,{t:function(){return y}});var i=n(31555),r=n(5059),o=n(76700),a=n(31728);function s(e){return e instanceof HTMLElement&&!e.hasAttribute("disabled")&&!e.hasAttribute("inert")}var u=n(6666),c=n(43150),l=n(88960),d=n(18416),h=n(23068),f=n(45164),p=n(64492),m=(0,r.createContext)(null),g=(0,r.forwardRef)((function(e,t){var n=(0,r.useRef)(null),a=(0,o.N)(t),s=(0,r.useState)(null),u=s[0],c=s[1];(0,r.useEffect)((function(){if(e.opened){var t=f((function(){var t=(0,h.GY)(e.options,e.controledByRef,a,n);c(t)}),200);return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e.controledByRef,e.opened,e.options,a]),(0,r.useEffect)((function(){if(e.opened){var t=(0,h.GY)(e.options,e.controledByRef,a,n);c(t)}else c(null)}),[e.opened,a,e.controledByRef,n,e.options]);var l=(0,r.useMemo)((function(){return{reposition:function(){var t=(0,h.GY)(e.options,e.controledByRef,a,n);c(t)}}}),[e.options,a,e.controledByRef,n]),d=e.opened&&!!u,g={display:e.opened?"block":"none",visibility:d?"visible":"hidden",position:"fixed",left:null==u?void 0:u.x,top:null==u?void 0:u.y,maxWidth:null==u?void 0:u.maxWidth},v=(null==u?void 0:u.maxHeight)?{maxHeight:null==u?void 0:u.maxHeight}:void 0;return(0,i.jsxs)(m.Provider,{value:l,children:[e.opened&&(0,i.jsx)(p._,{ref:n,style:{visibility:d?"visible":"hidden"},className:"dialog-tint dropdown-tint"}),(0,i.jsx)("div",{ref:a,className:"dropmenu dropmenu-body-wrapper",style:g,children:(0,i.jsx)("div",{className:"dropmenu-body",style:v,children:(0,i.jsx)("div",{className:"pop-list dropmenu-list-wrapper",children:e.children})})})]})}));g.displayName="ContextMenuBody";var v=n(10207),y=(0,r.forwardRef)((function(e,t){var n,f=e.button.props,p=(0,o.N)(null!==(n=f.ref)&&void 0!==n?n:null),m=(0,r.useRef)(null),y=(0,r.useRef)(null),_=(0,r.useContext)(a.w),b=(0,r.useState)(-1),w=b[0],C=b[1],A=f.onClick,I=(0,r.useCallback)((function(e){null==A||A(e),e.stopPropagation(),C((function(e){return-1===e?0:-1}))}),[C,A]),S=f.onKeyDown,P=(0,r.useCallback)((function(e){if(null==S||S(e),y.current){var t=Array.from(x(y.current)),n=-1;switch(e.keyCode){case c.u.up:n=t.length-1;break;case c.u.down:case c.u.space:case c.u.enter:n=0;break;default:return}-1!==n&&(C(n),_.startKeyboardInteraction(),e.preventDefault(),e.stopPropagation())}}),[y,C,_]),x=(0,r.useCallback)((function(e){return void 0===e&&(e=y.current),e?(t=e,void 0===n&&(n=s),Array.from(t.querySelectorAll('a, button, [role="link"][tabindex], [role="button"][tabindex]')).filter(n)):[];var t,n}),[]),T=(0,r.useCallback)((function(e){var t;e&&(null===(t=p.current)||void 0===t||t.focus()),C(-1)}),[C]),k=(0,r.useCallback)((function(e){switch(e.keyCode){case c.u.esc:case c.u.enter:return void T(!0);case c.u.tab:return void T(!1)}var t=x();if(t.length){var n=t.indexOf(e.target),i=(0,h.LC)({event:e,contextMenuItems:t,focusedMenuItemIndex:n});n!==i&&(_.startKeyboardInteraction(),t[i].focus(),(0,u.T)(e))}}),[w,_,x,T]);(0,r.useLayoutEffect)((function(){if(m.current){var e=m.current,t=function(e){return e.stopPropagation()};return e.addEventListener("keyup",t),function(){return e.removeEventListener("keyup",t)}}}),[m]),(0,r.useEffect)((function(){if(-1!==w&&m.current){var e=Array.from(x(m.current));e.length>0&&setTimeout((function(){e[w].focus()}),25)}}),[m,w]);var E=-1!==w,M=(0,r.useCallback)((function(){T(!1)}),[T]),D=(0,r.useCallback)((function(){var e=m.current;if(e){var t=document.activeElement,n=x(e),i=p.current===t,r=!!n.find((function(e){return t&&function(e,t){if(e===t)return!0;if(!e.children)return!1;for(var n=0;nm){var g=o.top-u.top;a.height>g?m>g?(f=o.bottom,p=m):(f=o.top-g,p=g):f=o.top-a.height}else f=o.bottom;return((h=o.left+o.width/2-c/2)+c>u.left+u.width||hu.left+u.width||e.align===l.K.Right)&&(h=e.align===l.K.Right?o.right-c:u.left+u.width-c),{x:h,y:f,maxHeight:p,maxWidth:u.width}}function f(e){var t=e.event,n=e.contextMenuItems,i=e.focusedMenuItemIndex,o=n.length;if(!o)return i;if(i>o-1||i<0){var u=new Error('"focusedMenuItemIndex" is out of bounds. Value is "'.concat(i,'", whereas menu items list length is "').concat(o,'"'));throw(0,r.z)(u),u}var c=i,l=!0;switch(t.keyCode){case a.u.up:c--;break;case a.u.down:c++;break;case a.u.home:case a.u.pgUp:c=0;break;case a.u.end:case a.u.pgDown:c=n.length-1;break;default:if((0,s.aE)(t.key)){var d=t.key.toLowerCase(),h=n.findIndex((function(e){return(e.textContent||"").toLowerCase().startsWith(d)}));-1!==h&&(c=h)}else l=!1}return l?(c<0?c=n.length-1:c>=n.length&&(c=0),c):i}function p(e){return e.x===o.W.Auto&&e.y===o.W.Auto}function m(e){void 0===e&&(e=document.body);var t=window.getComputedStyle(e).getPropertyValue(c);return t?parseInt(t):u}},54218:function(e,t,n){"use strict";n.d(t,{LN:function(){return c},t9:function(){return l},zp:function(){return d}});var i=n(58932),r=n(31555),o=n(5059),a=n(3491),s=n(64404),u=(0,o.createContext)({onUpdate:a}),c=function(e){var t=e.onUpdate,n=(0,o.useMemo)((function(){return{onUpdate:t}}),[t]);return(0,r.jsx)(u.Provider,(0,i.Cl)({value:n},e))},l=function(e){var t=(0,o.useContext)(u).onUpdate;return(0,s.B)(t),(0,r.jsx)(r.Fragment,{children:e.children})};function d(){var e=(0,o.useContext)(u).onUpdate;(0,s.B)(e)}},54805:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var i=n(31555),r=n(5059),o=n(76700),a=(0,r.forwardRef)((function(e,t){var n,a=e.scrollable,s=e.mouseDrag,u=e.className,c=e.style,l=e.scrollPosition,d=e.onScroll,h=e.onKeyDown,f=e.children,p=a&&s,m=(0,r.useRef)({canDrag:!1,dragging:!1,startX:0,diffX:0}).current,g=(0,r.useRef)(0),v=g.current,y=(0,o.N)(t),_=(0,r.useRef)(0);_.current=(null===(n=y.current)||void 0===n?void 0:n.scrollLeft)||0;var b=(0,r.useCallback)((function(e){if(p){var t=Date.now()-v<150;(m.diffX||t)&&e.stopPropagation()}}),[p,m,v]),w=(0,r.useCallback)((function(e){if(p){var t=e.currentTarget;m.canDrag=!0,m.startX=t.scrollLeft+e.clientX,m.diffX=0,e.preventDefault()}}),[p,m]),C=(0,r.useCallback)((function(){if(p&&(m.canDrag=!1,m.dragging)){m.dragging=!1;var e=y.current;if(e){var t=1,n=function(){var i=Math.pow(t,3);i<=0||(e.scrollLeft+=m.diffX*i,t-=.01,window.requestAnimationFrame(n))};n(),g.current=Date.now()}}}),[y,p,m]),A=(0,r.useCallback)((function(e){if(p&&(m.canDrag&&(m.dragging=!0),m.dragging)){var t=e.currentTarget;m.diffX=m.startX-(e.clientX+t.scrollLeft),t.scrollLeft+=m.diffX,e.preventDefault()}}),[p,m]),I=(0,r.useCallback)((function(e){a&&e.stopPropagation()}),[a]),S=(0,r.useCallback)((function(e){a&&e.stopPropagation()}),[a]),P=(0,r.useCallback)((function(){var e,t=(null===(e=y.current)||void 0===e?void 0:e.scrollLeft)||0,n=t-_.current;_.current=t,null==d||d(n)}),[y,d]);return(0,r.useEffect)((function(){var e=y.current,t=new AbortController,n=t.signal;return null==e||e.addEventListener("touchmove",I,{signal:n}),null==e||e.addEventListener("wheel",S,{signal:n}),document.addEventListener("mouseup",C,{signal:n}),h&&(null==e||e.addEventListener("keydown",h,{signal:n})),function(){t.abort()}}),[y,I,S,h,C]),(0,r.useEffect)((function(){l&&y.current&&(y.current.scrollLeft=l)}),[y,l]),(0,i.jsx)("div",{ref:y,className:u,style:c,onScroll:P,onClickCapture:b,onMouseDown:w,onMouseUp:C,onMouseMove:A,children:f})}))},21290:function(e,t,n){"use strict";n.d(t,{K:function(){return s},x:function(){return a}});var i=n(31555),r=n(5059),o=n(32242),a=(0,r.createContext)(null);function s(e){var t=(0,o.X)(e),n=t[0],r=t[1];return(0,i.jsx)("div",{ref:n,className:e.className,children:(0,i.jsx)(a.Provider,{value:r,children:e.children})})}},73314:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var i=n(31555),r=n(5059),o=n(61577),a=n(85738),s=(0,r.forwardRef)((function(e,t){var n=e.title,r=e.icon,s=e.role,u=void 0===s?"menuitem":s,c=e.meta,l=e.subtitle,d=e.isDisabled,h=void 0!==d&&d,f=e.className,p=void 0===f?void 0:f,m=e.tabIndex,g=void 0===m?0:m,v=e.onClick;return(0,i.jsxs)(o.n,{ref:t,role:u,className:(0,a.W)("btn-icon",p,h&&"is-disabled"),tabIndex:g,onClick:v,children:["string"==typeof r?(0,i.jsx)("span",{className:(0,a.W)("pri",r),"aria-hidden":"true"}):r,(0,i.jsx)("span",{className:"title",children:n}),l&&(0,i.jsx)("span",{className:"text-secondary",children:l}),c&&(0,i.jsx)("span",{className:"meta",children:c})]})}))},64492:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var i=n(31555),r=n(5059),o=n(76700),a=(0,r.forwardRef)((function(e,t){var n=(0,o.N)(t),a=e.onKeyDown;return(0,r.useLayoutEffect)((function(){var e=function(e){e.preventDefault()},t=function(e){e.preventDefault()},i=n.current;return null==i||i.addEventListener("touchmove",e),null==i||i.addEventListener("wheel",t),a&&(null==i||i.addEventListener("keydown",a)),function(){null==i||i.removeEventListener("touchmove",e),null==i||i.removeEventListener("wheel",t),a&&(null==i||i.removeEventListener("keydown",a))}}),[n,a]),(0,i.jsx)("div",{ref:n,className:e.className,style:e.style,role:e.role,onTouchMove:e.onTouchMove,onClick:e.onClick,children:e.children})}));a.displayName="NoScrollDiv"},13984:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var i=n(31555),r=n(5059),o=n(85738),a=function(e){var t=e.onChange,n=(0,r.useState)(!1),a=n[0],s=n[1],u=(0,r.useId)(),c=(0,r.useCallback)((function(){return s(!0)}),[s]),l=(0,r.useCallback)((function(){return s(!1)}),[s]),d=(0,r.useCallback)((function(n){e.disabled||t(n.currentTarget.checked)}),[e.disabled,t]),h=(0,o.W)("radio",e.checked&&"checked",e.disabled&&"dis",e.className,a&&"focus");return(0,i.jsxs)("label",{className:h,children:[(0,i.jsxs)("span",{id:u,className:"title",children:[e.title,!!e.count&&(0,i.jsx)("span",{className:"count",children:e.count})]}),(0,i.jsx)("input",{type:"radio",name:e.groupName,checked:e.checked,"aria-labelledby":u,"aria-checked":e.checked,tabIndex:e.checked?0:-1,onChange:d,onFocus:c,onBlur:l})]})}},93230:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var i=n(31555),r=n(99558),o=function(){return(0,i.jsx)("div",{id:"Panel_loadingScreenLabel","data-testid":"loadingScreen",className:"alert alert-wait",children:(0,i.jsx)("div",{className:"alert-body",children:(0,i.jsx)("div",{className:"ab-content overthrow",children:(0,i.jsx)(r.y,{type:"large"})})})})}},57324:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=(0,n(5059).createContext)({isScrollEnabled:!1,scrollY:null})},99558:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var i=n(31555),r=n(22496);function o(e){var t=(0,r.f)().localizedString,n="pr-spinner ".concat("small"===e.type?"pr-spinner-s":"pr-spinner-l");return(0,i.jsx)("div",{className:n,children:(0,i.jsxs)("div",{className:"spinner",role:"status","aria-live":"polite","aria-label":t("Loading.Text","Loading..."),children:[(0,i.jsx)("div",{className:"spinner-line line1"}),(0,i.jsx)("div",{className:"spinner-line line2"}),(0,i.jsx)("div",{className:"spinner-line line3"}),(0,i.jsx)("div",{className:"spinner-line line4"}),(0,i.jsx)("div",{className:"spinner-line line5"}),(0,i.jsx)("div",{className:"spinner-line line6"}),(0,i.jsx)("div",{className:"spinner-line line7"}),(0,i.jsx)("div",{className:"spinner-line line8"}),(0,i.jsx)("div",{className:"spinner-line line9"}),(0,i.jsx)("div",{className:"spinner-line line10"}),(0,i.jsx)("div",{className:"spinner-line line11"})]})})}},1052:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var i={},r={dialogs:i,register:function(e,t){if(i[e])throw new Error('Dialog "'.concat(e,'" was already registered.'));i[e]=t},unregister:function(e){i[e]&&delete i[e]}}},59038:function(e,t,n){"use strict";n.d(t,{a:function(){return c},j:function(){return u}});var i=n(31555),r=n(5059),o=n(97598),a=n(64492),s=n(19869),u=(0,r.createContext)(null),c=(0,r.memo)((0,r.forwardRef)((function(e,t){var n=e.controlledByRef,c=(0,r.useRef)(null),l=(0,r.useRef)(null),d=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return{getBodyEl:function(){return c.current}}}),[c]);var h=(0,r.useState)(null),f=h[0],p=h[1],m=(0,r.useCallback)((function(){var e=(0,s.GY)(n,d,l);if(e){var t=n.current.getBoundingClientRect();e.y=t.height}p(e)}),[n,d,l]);(0,r.useEffect)((function(){if(!e.opened)return p(null),void(0,o.enableBodyScroll)(c.current);m()}),[e.opened,m,p,c]);var g=(0,r.useMemo)((function(){return{reposition:m}}),[m]);(0,r.useLayoutEffect)((function(){var e=n.current,t=function(){e.blur()},i=c.current;return(0,o.disableBodyScroll)(i),i.addEventListener("touchmove",t),function(){i.removeEventListener("touchmove",t),(0,o.enableBodyScroll)(i)}}),[c,n,e.opened]);var v=e.opened&&!!f,y={maxHeight:null==f?void 0:f.maxHeight};return(0,i.jsxs)(u.Provider,{value:g,children:[e.opened&&(0,i.jsx)(a._,{ref:l,style:{visibility:v?"visible":"hidden"},className:"dialog-tint combobox-tint",onClick:e.onTintClick}),(0,i.jsx)("div",{ref:d,className:"dropmenu combobox-body-wrapper",children:(0,i.jsx)("div",{ref:c,className:"dropmenu-body combobox-body",style:y,children:(0,i.jsx)("div",{className:"combobox-list-wrapper",children:e.children})})})]})})));c.displayName="FormComboBoxListBody"},83421:function(e,t,n){"use strict";n.d(t,{L:function(){return g},_:function(){return v}});var i=n(31555),r=n(5059),o=n(11718),a=n(22496),s=n(31728),u=n(61577),c=n(6666),l=n(69851),d=n(45235),h=n(85738),f=n(9774),p=n(59038),m=n(19869),g=(0,r.createContext)(null),v=(0,r.forwardRef)((function(e,t){var n=e.value,v=e.autoFocus,y=e.hasCancelButton,_=e.disabled,b=e.opened,w=e.options,C=e.hasAdvancedSearchSwitch,A=e.allowUnfocus,I=void 0!==A&&A,S=e.onChange,P=e.onSubmit,x=e.onClose,T=e.onReset,k=e.onAdvancedSearch,E=e.onFocus,M=e.onClick,D=(0,a.f)().localizedString,N=(0,r.useId)(),L=(0,r.useId)(),V=(0,r.useState)(v),R=V[0],H=V[1],F=(0,r.useMemo)((function(){return{clickOutsideDeactivates:!0,initialFocus:!1,activate:R,pause:I}}),[I,R]),B=(0,o.r)(F),z=(0,r.useRef)(null),O=(0,r.useRef)(null),j=(0,r.useRef)(null),U=(0,r.useRef)(null),W=(0,r.useState)(null),Y=W[0],X=W[1],q=(0,r.useState)(n),G=q[0],K=q[1];(0,r.useEffect)((function(){H(b&&!_),K(n)}),[b,_,n]),(0,r.useImperativeHandle)(t,(function(){return{focus:function(){O.current.focus()},blur:function(){O.current.blur()}}}),[O]);var J=(0,r.useContext)(s.w),Q=(0,r.useCallback)((function(){H(!1),X(null),null==x||x()}),[X,x]),Z=(0,r.useCallback)((function(e){""!==n&&(null==P||P(n),Q()),(0,c.T)(e.nativeEvent)}),[P,Q,n]),$=(0,r.useCallback)((function(e){if("Tab"!==e.key){var t=(0,m.FE)(j.current),n=(0,m.oO)(t),i=t.indexOf(n);switch(e.key){case"Escape":return Q(),(0,c.T)(e.nativeEvent);case"Enter":var r=(0,m.QA)(B.current),o=(0,m.SM)(r);return"BUTTON"===(null==o?void 0:o.tagName)?o.click():n&&n.click(),(0,c.T)(e.nativeEvent);case"ArrowUp":--i<0&&(i=t.length-1);break;case"ArrowDown":++i>=t.length&&(i=0);break;case"Home":case"PageUp":i=0;break;case"End":case"PageDown":i=t.length-1;break;default:if(!(0,d.aE)(e.key))return;i=-1}if(J.startKeyboardInteraction(),t[i]||(i=-1),-1!==i)return t[i].focus(),X(t[i].id),(0,l.$v)(z.current.getBodyEl(),t[i]),(0,c.T)(e.nativeEvent);O.current.focus(),X(null)}}),[B,O,j,z,J,Q,X]),ee=(0,r.useCallback)((function(e){K(e),S(e,b)}),[S,b,K]),te=(0,r.useCallback)((function(){T&&T(),ee("")}),[ee,T]),ne=(0,r.useMemo)((function(){return{selectedItemId:Y,close:Q}}),[Q,Y]),ie=(0,r.useMemo)((function(){return w||{hasProminentReset:!1}}),[w]);return(0,i.jsx)(g.Provider,{value:ne,children:(0,i.jsxs)("div",{ref:B,className:(0,h.W)("combobox-wrapper",b&&"combobox-opened"),onKeyDown:$,children:[(0,i.jsx)("div",{className:"combobox",role:"combobox","aria-haspopup":"listbox","aria-owns":L,"aria-expanded":b,"aria-controls":L,children:(0,i.jsx)("div",{className:"ui-search has-searchbtn",ref:U,children:(0,i.jsx)("div",{role:"search","aria-label":D("Site.Search.Header.Aria"),children:(0,i.jsxs)("div",{className:"search-container",children:[(0,i.jsx)(f.N,{id:N,ref:O,type:"search",value:G,"aria-label":D("Search.Description.Label"),"aria-autocomplete":"list","aria-controls":L,"aria-activedescendant":Y,placeholder:D("Buttons.Search.Text"),onChange:function(e,t){return ee(t)},onSubmit:Z,onAdvancedSearch:k,hasAdvanced:C,onReset:te,onFocus:E,onClick:M,autoFocus:v,hasReset:ie.hasReset,hasProminentReset:ie.hasProminentReset,disabled:_}),(0,i.jsxs)(u.n,{type:"submit",className:"btn btn-action btn-search",tabIndex:0,onClick:Z,children:[(0,i.jsx)("span",{className:"pri pri-search","aria-hidden":"true"}),(0,i.jsx)("span",{className:"title",children:D("Buttons.Search.Text")})]}),y&&(0,i.jsxs)(u.n,{type:"submit",className:"btn btn-cancel",tabIndex:0,onClick:Q,children:[(0,i.jsx)("span",{className:"pri pri-close","aria-hidden":"true"}),(0,i.jsx)("span",{className:"title",children:D("Buttons.Cancel")})]})]})})})}),(0,i.jsx)(p.a,{ref:z,controlledByRef:U,opened:b,onTintClick:Q,children:b&&(0,i.jsx)("ul",{id:L,ref:j,role:"listbox",className:"combobox-list","aria-labelledby":"",children:e.children})})]})})}));v.displayName="FormComboBox"},19869:function(e,t,n){"use strict";n.d(t,{FE:function(){return a},GY:function(){return o},QA:function(){return u},SM:function(){return c},oO:function(){return s}});var i=n(2111),r=-20;function o(e,t,n){if(!e.current||!t.current||!n.current)return null;var o,a,s=e.current.getBoundingClientRect(),u=t.current.getBoundingClientRect(),c=n.current.getBoundingClientRect(),l={top:c.top,left:c.left,width:c.width,height:c.height};l=(0,i.fT)(l,r);var d=s.width,h=null,f=l.height-s.bottom;if(u.height>f){var p=s.top-l.top;u.height>p?f>p?(a=s.bottom,h=f):(a=s.top-p,h=p):a=s.top-u.height}else a=s.bottom,h=f;return(o=s.left+s.width/2-d/2)+d>l.left+l.width&&(o=s.left),o+d>l.left+l.width&&(o=s.right-d),{x:o,y:a,width:d,maxHeight:h}}function a(e){if(!e)return[];var t=Array.from(e.getElementsByTagName("a"));return t.filter((function(e){var t;return"option"===(null===(t=e.attributes.getNamedItem("role"))||void 0===t?void 0:t.value)})).filter((function(e){return"none"!==window.getComputedStyle(e.parentElement).display}))}function s(e){return e.find((function(e){return document.activeElement===e}))}function u(e){return e?Array.from(e.querySelectorAll('[tabindex="0"]')):[]}function c(e){return e.find((function(e){return document.activeElement===e}))}},75517:function(e,t,n){"use strict";n.d(t,{a:function(){return h}});var i=n(31555),r=n(5059),o=n(27797),a=n(88960),s=n(76542),u="_empty_option_id_",c=window.navigator.userAgent.indexOf("Windows")>=0;function l(e,t,n){var i,r,o,a,u,c=["form-control"];return(null===(i=e.config)||void 0===i?void 0:i.labelType)===s.h.Outer?c.push("has-formlabel"):(null===(r=e.config)||void 0===r?void 0:r.labelType)===s.h.Inner?c.push("has-inputlabel"):(null===(o=e.config)||void 0===o?void 0:o.labelType)===s.h.InnerLeft&&c.push("has-prefixinputlabel"),(null===(a=e.config)||void 0===a?void 0:a.validationLabelType)===s.q.Inner?c.push("has-innervalidation"):(null===(u=e.config)||void 0===u?void 0:u.validationLabelType)===s.q.Outer&&c.push("has-outervalidation"),e.required&&c.push("is-required"),!t&&n&&c.push("is-error"),e.disabled&&c.push("is-disabled"),c.join(" ")}function d(e,t){var n=["form-input-control","selectbox"];return t&&n.push("focus"),e.selected&&n.push("has-value"),e.className&&n.push(e.className),n.join(" ")}var h=(0,r.memo)((function(e){var t,n,s=e.onChange,h=(0,r.useState)(!0),f=h[0],p=h[1],m=(0,r.useState)(!1),g=m[0],v=m[1],y=(0,r.useState)(!!e.selected),_=y[0],b=y[1],w=(0,r.useMemo)(a.A,[]),C=(0,r.useMemo)(a.A,[]),A=(0,r.useMemo)(a.A,[]),I=(0,r.useRef)(!1),S=(0,r.useCallback)((function(t){if(!e.disabled){var n=t.target.value;n!==e.selected&&(I.current=!0,s(n,t))}}),[e.disabled,e.selected,s,I]);(0,r.useEffect)((function(){I.current||b(!!e.selected)}),[I,e.selected,b]);var P=(0,r.useCallback)((function(){v(!0)}),[v]),x=(0,r.useCallback)((function(){v(!1),b(!0)}),[v]),T=e.options.find((function(t){return t.id===e.selected})),k=!!(null===(t=e.config)||void 0===t?void 0:t.validationWithFieldLabel);return(0,i.jsxs)("div",{className:l(e,f,_),children:[e.label&&(0,i.jsx)("label",{className:"form-label",htmlFor:w,"aria-hidden":!0,children:e.label}),(0,i.jsx)("div",{className:"form-input",children:(0,i.jsxs)("div",{className:d(e,g),children:[(0,i.jsxs)("select",{"aria-required":e.required,"aria-invalid":_&&!f,"aria-labelledby":e.label?C:null,"aria-describedby":A,title:e.title,className:"control-input selectbox-select",id:w,name:e.name,value:null!==(n=null==T?void 0:T.id)&&void 0!==n?n:u,autoComplete:e.autoComplete,required:e.required,disabled:e.disabled,onChange:S,onFocus:P,onBlur:x,children:[!T&&(0,i.jsx)("option",{value:u,disabled:!0,hidden:c,"aria-hidden":!0,children:e.emptyOptionLabel}),e.options.map((function(e){return(0,i.jsx)("option",{value:e.id,children:e.label},e.id)}))]}),(0,i.jsx)("span",{className:"select ".concat(T?"value":"placeholder"),"aria-hidden":!0,children:T?T.label:e.emptyOptionLabel}),e.label&&(0,i.jsx)("span",{id:C,className:"input-label",children:(0,i.jsx)("span",{className:"label-title",children:e.label})}),e.validators&&(0,i.jsx)("div",{className:"form-message",children:(0,i.jsx)("div",{id:A,className:"form-validation-error",role:"alert",children:(0,i.jsx)(o.D,{className:"validation-text",fieldLabel:k?e.label:null,validators:e.validators,value:e.selected,isInputDirty:_,onChange:p})})})]})})]})}));h.displayName="FormDropdown"},9774:function(e,t,n){"use strict";n.d(t,{N:function(){return c}});var i=n(31555),r=n(5059),o=n(13384),a=n(27797),s=n(85738),u=n(76542),c=(0,r.forwardRef)((function(e,t){var n,c,l,d,h,f,p,m=(0,r.useState)(!0),g=m[0],v=m[1],y=(0,r.useState)(!1),_=y[0],b=y[1],w=(0,r.useState)(!!e.value),C=w[0],A=w[1],I=(0,r.useId)(),S=e.id||I,P=(0,r.useId)(),x=(0,r.useId)(),T=(0,r.useRef)(!1),k=(0,r.useRef)(null),E=e.onChange,M=e.onFocus,D=e.onBlur,N=e.onSubmit,L=e.onKeyDown,V=e.onReset,R=(0,r.useCallback)((function(t){if(!e.disabled){var n=t.target.value;n!==e.value&&(T.current=!0,E(t,n))}}),[e.disabled,e.value,E,T]);(0,r.useEffect)((function(){T.current||A(!!e.value)}),[T,e.value,A]);var H=(0,r.useCallback)((function(){b(!0),null==M||M()}),[b,M]),F=(0,r.useCallback)((function(){return window.setTimeout((function(){document.activeElement!==k.current&&(b(!1),A(!0),null==D||D())}),1)}),[b,D]),B=(0,r.useCallback)((function(t){e.disabled||("Enter"===t.code?(b(!1),A(!0),null==N||N(t)):null==L||L(t))}),[e.disabled,N,A,L]),z=(0,r.useCallback)((function(){var t;e.disabled||(null==V||V(),null===(t=document.getElementById(S))||void 0===t||t.focus())}),[e.disabled,V,S]),O=!!(null===(n=e.config)||void 0===n?void 0:n.validationWithFieldLabel),j=e.placeholder||null;(null===(c=e.config)||void 0===c?void 0:c.labelType)===u.h.Inner&&(j=null);var U=e.disabled?(0,o.p3)("Menu.Search.BasicSearch"):(0,o.p3)("Menu.Search.AdvancedSearch");return(0,i.jsxs)("div",{className:(0,s.W)("form-control",(null===(l=e.config)||void 0===l?void 0:l.labelType)===u.h.Outer&&"has-formlabel",(null===(d=e.config)||void 0===d?void 0:d.labelType)===u.h.Inner&&"has-inputlabel",(null===(h=e.config)||void 0===h?void 0:h.labelType)===u.h.InnerLeft&&"has-prefixinputlabel",(null===(f=e.config)||void 0===f?void 0:f.validationLabelType)===u.q.Inner&&"has-innervalidation",(null===(p=e.config)||void 0===p?void 0:p.validationLabelType)===u.q.Outer&&"has-outervalidation",e.required&&"is-required",!g&&C&&"is-error",e.disabled&&"is-disabled"),children:[e.label&&(0,i.jsx)("label",{className:"form-label",htmlFor:S,children:(0,i.jsx)("span",{className:"label-title",children:e.label})}),(0,i.jsxs)("div",{className:"form-input",children:[(0,i.jsxs)("div",{className:(0,s.W)("form-input-control","textbox",_&&"focus",e.value&&"has-value",e.hasProminentReset?"has-prominent-reset":e.hasReset&&"has-reset",e.isSearch&&"is-search",e.hasAdvanced&&"has-advsearch",e.className),children:[(0,i.jsx)("input",{ref:t,"aria-required":e.required,"aria-invalid":C&&!g,"aria-labelledby":e.label?P:null,"aria-describedby":e.validators?x:null,type:e.type,className:"control-input textbox-input",id:S,name:e.name,autoCapitalize:"off",autoCorrect:"off",autoComplete:e.autoComplete||"off",spellCheck:!1,value:e.value,placeholder:j,required:e.required,disabled:e.disabled,maxLength:e.maxLength,onChange:R,onFocus:H,onClick:e.onClick,onBlur:F,onKeyDown:B,"aria-autocomplete":e["aria-autocomplete"],"aria-controls":e["aria-controls"],"aria-activedescendant":e["aria-activedescendant"],"aria-label":e["aria-label"],autoFocus:e.autoFocus,tabIndex:0}),e.label&&(0,i.jsx)("span",{id:P,className:"input-label",children:(0,i.jsx)("span",{className:"label-title",children:e.label})}),(e.hasReset||e.hasProminentReset)&&(0,i.jsxs)("button",{ref:k,className:"btn-icon btn-reset",title:(0,o.p3)("Buttons.Reset"),tabIndex:0,onClick:z,children:[(0,i.jsx)("span",{className:"pri pri-reset","aria-hidden":"true"}),(0,i.jsx)("span",{className:"title",children:(0,o.p3)("Buttons.Reset")})]}),e.hasAdvanced&&(0,i.jsxs)("button",{onClick:e.onAdvancedSearch,className:"btn-icon btn-advsearch",title:U,tabIndex:0,children:[(0,i.jsx)("span",{className:"pri pri-filter","aria-hidden":"true"}),(0,i.jsx)("span",{className:"title",children:U})]})]}),e.validators&&(0,i.jsx)("div",{className:"form-message",children:(0,i.jsx)("div",{id:x,className:"form-validation-error",role:"alert",children:(0,i.jsx)(a.D,{className:"validation-text",fieldLabel:O?e.label:null,validators:e.validators,value:e.value,isInputDirty:C,onChange:v})})})]})]})}));c.displayName="FormTextbox"},76542:function(e,t,n){"use strict";var i,r;n.d(t,{h:function(){return i},q:function(){return r}}),function(e){e[e.Outer=0]="Outer",e[e.Inner=1]="Inner",e[e.InnerLeft=2]="InnerLeft"}(i||(i={})),function(e){e[e.Outer=0]="Outer",e[e.Inner=1]="Inner"}(r||(r={}))},54777:function(e,t,n){"use strict";n.d(t,{KB:function(){return c},l8:function(){return u}});var i=n(58932),r=n(84386),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(r.e),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(r.e),s={};function u(e,t){if(s[e])throw new o('Popup "'.concat(e,'" is already reagistered.'));s[e]=t}function c(e){var t=s[e];if(!t)throw new a('Popup "'.concat(e,'" is not found.'));return t}},19578:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var i=n(5059),r=n(76700),o=n(8049),a=n(90690),s=(0,i.forwardRef)((function(e,t){var n=e.onMeasure,s=e.children,u=(0,r.N)(t),c=(0,o.Z)(u.current),l=(0,i.useMemo)((function(){return(0,a.t)(s,{ref:u})}),[u,s]);return(0,i.useEffect)((function(){c&&n(c)}),[c,n]),l}));s.displayName="PopupChildMeasurer"},48508:function(e,t,n){"use strict";n.d(t,{f:function(){return g}});var i=n(58932),r=n(31555),o=n(5059),a=n(659),s=n(32874),u=n(8049),c=n(19578),l=n(53537),d=Object.freeze({flex:"1 1 auto",display:"flex",flexDirection:"column",overflow:"hidden",minHeight:"100px",height:"auto"}),h=Object.freeze({display:"flex",flexDirection:"column",height:"100%",flex:"1 1 auto",overflow:"hidden"}),f=Object.freeze({flex:"1 1 auto",display:"flex",flexDirection:"column",overflow:"hidden",height:"auto"}),p=Object.freeze({flex:"1 1 auto",overflowY:"auto",overflowX:"hidden",height:"100%",boxSizing:"border-box",transition:"height 0.2s ease-in-out"}),m=(0,o.forwardRef)((function(e,t){var n=e.className,a=e.style,s=e.height,u=e.mode,c=e.contentClassName,l=void 0===c?"pop-body-content":c,f="css"===u,p=(0,o.useMemo)((function(){return(0,i.Cl)((0,i.Cl)({height:s},a),f?d:void 0)}),[f,s,a]),m=(0,o.useMemo)((function(){return f?h:void 0}),[f]);return(0,r.jsx)("div",{className:n,style:p,children:(0,r.jsx)("div",{ref:t,className:l,style:m,children:e.children})})}));function g(e){var t=e.children,n=e.footer,d=e.scrollableSegmentClassName,h=void 0===d?"pop-segment-scrollable":d,g=e.childrenDimensions,v=e.contentContainerRefCb,y=(0,i.Tt)(e,["children","footer","scrollableSegmentClassName","childrenDimensions","contentContainerRefCb"]),_=(0,l.WF)(),b=_.maxContentHeight,w=_.mode,C=_.onContentResize,A="css"===w,I=(0,o.useState)(null),S=I[0],P=I[1],x=(0,o.useState)(null),T=x[0],k=x[1],E=(0,o.useState)(),M=E[0],D=E[1],N=(0,o.useState)(!1),L=N[0],V=N[1],R=(0,o.useState)(),H=R[0],F=R[1],B=(0,o.useState)(),z=B[0],O=B[1],j=(0,o.useRef)(null),U=(0,u.Z)(S),W=(0,o.useCallback)((function(){var e,t;if(!A&&b&&U){var n=(null===(e=j.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0,i=(null==g?void 0:g.height)?(null!==(t=null==g?void 0:g.height)&&void 0!==t?t:0)+n:U.height,r=i>b,o=Math.min(b,i),a=o-n;F((0,s.L)(o)),O((0,s.L)(a)),V(r)}}),[A,U,g,b]),Y=(0,o.useMemo)((function(){return A?p:{overflowY:"auto"}}),[A]),X=(0,o.useMemo)((function(){return{style:Y,className:"pop-segment-scrollable-in"}}),[Y]),q=(0,o.useMemo)((function(){return a(t)?t((0,i.Cl)((0,i.Cl)({},X),{bodyHeight:H,scrollable:L})):(0,r.jsx)("div",(0,i.Cl)({},X,{children:(0,o.isValidElement)(t)?(0,o.cloneElement)(t,(0,i.Cl)({},t.props)):t}))}),[t,H,L,X]),G=(0,o.useMemo)((function(){return(0,i.Cl)((0,i.Cl)({},A?void 0:{height:z}),A?f:void 0)}),[z,A]),K=null==M?void 0:M.width,J=(0,o.useMemo)((function(){return T&&K?(0,i.Cl)((0,i.Cl)({},T),{width:K}):T}),[T,K]);(0,o.useLayoutEffect)(W,[W,J]),(0,o.useLayoutEffect)((function(){J&&C(J)}),[J,C]),(0,o.useEffect)((function(){null==v||v(S)}),[S,v]);var Q=(0,r.jsx)("div",{className:h,style:G,children:A?q:(0,r.jsx)(c.J,{onMeasure:k,children:q})}),Z=A?Q:(0,r.jsx)(c.J,{onMeasure:D,children:Q}),$=(0,o.isValidElement)(n)?(0,o.cloneElement)(n,{ref:j}):n;return(0,r.jsxs)(m,(0,i.Cl)({},y,{ref:P,height:H,mode:w,children:[Z,null!=$?$:null]}))}},53537:function(e,t,n){"use strict";n.d(t,{QU:function(){return o},WF:function(){return u},sE:function(){return s}});var i=n(5059),r=n(30212),o=Object.freeze({mode:"js",onContentResize:function(){(0,r.z)(new Error("PopupContainerDynamicSizeContext is not initialized."))}}),a=(0,i.createContext)(o),s=a.Provider,u=function(){return(0,i.useContext)(a)}},25509:function(e,t,n){"use strict";n.d(t,{E:function(){return A}});var i=n(58932),r=n(31555),o=n(5059),a=n(30212),s=n(11718),u=n(85738),c=n(32874),l=n(53537);function d(e){var t=e.totalWidth,n=e.totalHeight,i=e.windowHeight,r=e.windowWidth;return{top:Math.max((i-n)/2,0),left:Math.max((r-t)/2,0)}}var h=function(e){return parseInt(e,10)||0},f=n(8049),p=n(90690);function m(e){var t=e.coordinateValue,n=e.coordinatePlusTotalSize-e.windowSize;return n>0?Math.max((0,c.L)(t-n),0):Math.max(t,0)}function g(e){var t=e.coordinate,n=e.marginPx,i=e.windowSize,r=e.totalSize,o=Math.abs(i-r),a=o-t;if(Math.round(t)>=n&&a>=n)return t;var s=Math.min(o/2,n),u=(0,c.L)(t?t-s:s);return u<0?t:u}function v(e){var t=e.currentPosition,n=e.totalHeight,i=e.totalWidth,r=e.windowHeight,o=e.windowWidth,a=e.marginPx,s=void 0===a?0:a,u=t.left,c=t.top;return{top:g({coordinate:m({coordinateValue:c,coordinatePlusTotalSize:c+n,windowSize:r}),marginPx:s,windowSize:r,totalSize:n}),left:g({coordinate:m({coordinateValue:u,coordinatePlusTotalSize:u+i,windowSize:o}),marginPx:s,windowSize:o,totalSize:i})}}function y(e){var t=e.calcCurrentPosition,n=(0,i.Tt)(e,["calcCurrentPosition"]),r=n.initialPosition,o=r.left,a=r.top,s=n.currentPosition,u=s.left,c=s.top;if(u===o&&c===a){var l=t(n);u=l.left,c=l.top}return v((0,i.Cl)((0,i.Cl)({},n),{currentPosition:{left:u,top:c}}))}var _=Object.freeze({center:d,expand:v,centerXExpandY:function(e){var t=e.initialPosition,n=e.currentPosition,i=e.totalHeight,r=e.totalWidth,o=e.windowHeight,a=e.windowWidth,s=e.marginPx;return y({initialPosition:t,currentPosition:n,totalHeight:i,totalWidth:r,windowHeight:o,windowWidth:a,marginPx:void 0===s?0:s,calcCurrentPosition:function(e){var t=e.initialPosition,n=t.left,r=t.top,o=e.totalWidth,a=e.marginPx;return{left:n-o/2,top:r-i-(void 0===a?0:a)}}})},centerXExpandBottom:function(e){var t=e.initialPosition,n=e.currentPosition,i=e.totalHeight,r=e.totalWidth,o=e.windowHeight,a=e.windowWidth,s=e.marginPx;return y({initialPosition:t,currentPosition:n,totalHeight:i,totalWidth:r,windowHeight:o,windowWidth:a,marginPx:void 0===s?0:s,calcCurrentPosition:function(e){var t=e.initialPosition,n=t.left,i=t.top,r=e.totalWidth,o=e.marginPx;return{left:n-r/2,top:i+(void 0===o?0:o)}}})}}),b=Object.freeze({display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box",maxHeight:"100%"}),w=Object.freeze({display:"flex",flexFlow:"column nowrap",height:"100%",maxHeight:"inherit",overflow:"hidden"}),C=Object.freeze({flex:"0 0 auto"}),A=function(e){var t=e.role,n=void 0===t?"dialog":t,m=e.position,g=e.containerRef,v=e.widthPx,y=e.size,A=void 0===y?"default":y,I=e.marginPx,S=void 0===I?0:I,P=e.positionCalculationStrategy,x=e.className,T=void 0===x?"pop":x,k=e.mode,E=void 0===k?l.QU.mode:k,M=e.onPositionChange,D=(0,o.useState)(null),N=D[0],L=D[1],V=(0,o.useRef)(null),R=(0,o.useRef)(null),H=(0,o.useRef)(null),F=(0,i.Cl)({clickOutsideDeactivates:!1,escapeDeactivates:!1},e.focusTrapOptions),B=(0,s.r)(F),z=(0,o.useMemo)((function(){return function(e){L(e),B.current=e}}),[B]),O=(0,o.useMemo)((function(){return m?{left:m.center.x,top:m.center.y}:void 0}),[m]),j="function"==typeof P?P:P?_[P]:void 0;P&&!j&&(0,a.z)('The strategy "'.concat(P,'" is not supported'));var U=function(e){var t,n,r=e.headerRef,a=e.subheaderRef,s=e.footerRef,u=e.containerElement,f=e.initialPosition,p=e.mode,m=e.marginPx,g=e.strategy,v=void 0===g?d:g,y=e.onPositionChange,_=(0,o.useState)(null!==(t=null==f?void 0:f.left)&&void 0!==t?t:0),b=_[0],w=_[1],C=(0,o.useState)(null!==(n=null==f?void 0:f.top)&&void 0!==n?n:0),A=C[0],I=C[1],S=(0,o.useState)(0),P=S[0],x=S[1],T=(0,o.useState)("css"===p?void 0:0),k=T[0],E=T[1],M=(0,o.useCallback)((function(e){var t,n,i,o,l,d,g;if(u){var y=window.innerWidth,_=window.innerHeight,C=function(e){var t=e.paddingTop,n=e.paddingBottom,i=e.marginTop,r=e.marginBottom,o=e.borderTop,a=e.borderBottom;return Object.values({paddingTop:t,paddingBottom:n,marginTop:i,marginBottom:r,borderTop:o,borderBottom:a}).reduce((function(e,t){return e+h(t)}),0)}(u.style),S=null!==(n=null===(t=null==r?void 0:r.current)||void 0===t?void 0:t.getBoundingClientRect().height)&&void 0!==n?n:0,P=null!==(o=null===(i=null==a?void 0:a.current)||void 0===i?void 0:i.getBoundingClientRect().height)&&void 0!==o?o:0,T=null!==(d=null===(l=null==s?void 0:s.current)||void 0===l?void 0:l.getBoundingClientRect().height)&&void 0!==d?d:0;if("js"===p){var k=_-S-P-T-C;E((0,c.L)(k))}void 0!==(null==e?void 0:e.width)&&x((0,c.L)(e.width));var M=null!==(g=null==e?void 0:e.width)&&void 0!==g?g:u.getBoundingClientRect().width,D=void 0!==(null==e?void 0:e.height)?e.height+S+P+T+C:function(e){var t=e.style,n=t.marginBottom,i=t.marginTop;return e.getBoundingClientRect().height+h(n)+h(i)}(u),N=v({initialPosition:{left:Number(null==f?void 0:f.left),top:Number(null==f?void 0:f.top)},currentPosition:{left:b,top:A},totalWidth:M,totalHeight:D,windowHeight:_,windowWidth:y,marginPx:m}),L=N.left,V=N.top;w(Math.round(L)),I(Math.round(V))}}),[u,r,a,s,v,b,A,f,p,m]),D=(0,o.useMemo)((function(){return(0,i.Cl)((0,i.Cl)({},l.QU),{left:b,top:A,width:P,maxContentHeight:k,mode:p,onContentResize:M})}),[b,A,P,k,M]);return(0,o.useEffect)((function(){var e=function(){return M()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[M]),(0,o.useLayoutEffect)(M,[M]),(0,o.useEffect)((function(){null==y||y({left:b,top:A})}),[b,A,y]),D}({containerElement:N,headerRef:V,subheaderRef:R,footerRef:H,initialPosition:O,marginPx:S,mode:E,strategy:j,onPositionChange:M}),W=U.left,Y=U.top,X=U.onContentResize,q="css"===E,G=(0,o.useMemo)((function(){return(0,i.Cl)({left:W,top:Y,width:v||void 0},q?b:{})}),[q,W,Y,v]),K=q?w:void 0,J=q?C:void 0,Q=(0,f.Z)(N);return(0,o.useEffect)((function(){null==g||g(N)}),[N,g]),(0,o.useEffect)((function(){var e=document.body.style.overflowY;return document.body.style.overflowY="hidden",function(){document.body.style.overflowY=e}}),[]),(0,o.useEffect)((function(){X(null!=Q?Q:{})}),[Q,X]),(0,r.jsx)(l.sE,{value:U,children:(0,r.jsx)("div",{ref:z,role:n,className:(0,u.W)(T,null!==A&&"pop-".concat(A)),style:G,children:(0,r.jsxs)("section",{ref:B,role:n,"aria-modal":"true","aria-label":e.ariaLabel,style:K,children:[(0,p.t)(e.header,{ref:V,style:J}),(0,p.t)(e.subheader,{ref:R,style:J}),e.children,(0,p.t)(e.footer,{forwardRef:H,style:J})]})})})}},8049:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(5059),r=n(30212),o=n(19504);function a(e){if(!e)return null;var t=e.getBoundingClientRect();return Object.freeze(t)}function s(e){var t=(0,i.useState)(a(e)),n=t[0],s=t[1],u=(0,o.L)((function(){return globalThis.ResizeObserver?new globalThis.ResizeObserver((function(e){var t=null==e?void 0:e[0].target;t&&s(a(t))})):((0,r.z)("ResizeObserver is not supported"),null)}));return(0,i.useLayoutEffect)((function(){if(e&&u)return u.observe(e),function(){u.unobserve(e)}}),[e,u]),(0,i.useEffect)((function(){return function(){null==u||u.disconnect()}}),[]),n}},90954:function(e,t,n){"use strict";function i(e){return"dialog"===(null==e?void 0:e.type)}function r(e){return"menu"===(null==e?void 0:e.type)}function o(e){return"alert"===(null==e?void 0:e.type)}n.d(t,{MD:function(){return r},nL:function(){return o},rp:function(){return i}})},90690:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var i=n(5059);function r(e,t){var n,r="function"==typeof e?e():e;return null!==(n=(0,i.isValidElement)(r)?(0,i.cloneElement)(r,t):r)&&void 0!==n?n:null}},83999:function(e,t,n){"use strict";n.d(t,{g:function(){return d},p:function(){return l}});var i=n(31555),r=n(5059),o=n(659),a=n(97556),s=n(70841),u=n(6666),c=n(85738),l=(0,r.createContext)({asMenuItem:!0,tabIndex:-1,hidden:!1}),d=function(e){var t=(0,r.useContext)(l),n=t.asMenuItem,d=t.hidden,h=t.tabIndex,f=null;e.icon&&(f=o(e.icon)?e.icon():(0,i.jsx)("span",{className:e.icon,"aria-hidden":"true"}));var p=[],m=[];n?(p.push("dropmenu-item-wrapper"),m.push("dropmenu-item")):(p.push("ui-nav-item"),m.push("nav-link"));var g=(0,r.useCallback)((function(t){return e.onClick(),(0,u.T)(t.nativeEvent)}),[e.onClick]),v=(0,i.jsxs)(a.o,{role:n?"menuitem":null,onClick:g,href:e.hrefSEO,className:m.join(" "),tabIndex:h,style:{visibility:d?"hidden":void 0},"aria-hidden":d,children:[f,(0,i.jsx)("span",{className:"title",children:e.title})]});return(0,i.jsx)("li",{role:n?"none":void 0,className:(0,c.W)("nav-item",p.join(" "),e.selected?"is-selected":"",d?"nav-item-hidden":"",e.className),children:n?v:(0,i.jsx)(s.P,{tag:e.title,children:v})})}},62713:function(e,t,n){"use strict";n.d(t,{D:function(){return b},a:function(){return _}});var i=n(31555),r=n(5059),o=n(85387),a=n(59423),s=n(74855),u=n(13384),c=n(51425),l=n(70841),d=n(20820),h=n(18752),f=n(54218),p=n(21290),m=n(97556),g=n(78698),v=n(80835),y=function(){var e=(0,o.wA)(),t=(0,o.d4)(g.nw),n=(0,o.d4)(g.ZF);if(-1===n.indexOf(v.Z.Pervasive)||n.length<2)return null;var r=t===v.Z.Pervasive,a=r?n.filter((function(e){return e!==v.Z.Pervasive}))[0]:v.Z.Pervasive,s=r?(0,u.p3)("Menu.SwitchTo.Normal"):(0,u.p3)("Menu.SwitchTo.Pervasive");return r?null:(0,i.jsx)(m.o,{className:"skip-link",onClick:function(){return e((0,g.n1)({newTargetPlatform:a}))},children:s})},_=(0,r.createContext)(null),b=function(e){var t,n,m=(0,o.wA)(),g=e.onHeaderContextChanged,v=(0,r.useId)(),b=(0,s.W)({throttleTime:100,trackWidth:!0,trackHeight:!0,trackTop:!0}),w=b[0],C=b[1],A=(0,r.useState)("none"),I=A[0],S=A[1];(0,r.useEffect)((function(){var e=0,t=function(){var t=Math.round(window.pageYOffset);if(!(Math.abs(t-e)<0)){if(0===t||e<0)return S("none"),void(e=0);S(t<=e?"down":"up"),e=t}};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}),[S]),(0,r.useEffect)((function(){(null==C?void 0:C.height)&&m((0,h.iz)({topbarHeight:C.height}))}),[null==C?void 0:C.height,m]);var P=(0,r.useRef)(null),x=(0,r.useRef)(null),T=(0,r.useRef)(null),k=(0,r.useMemo)((function(){return a((function(){if(w.current&&P.current&&T.current&&x.current){if(!e.align||"none"===e.align)return P.current.style.cssText="flex: 1;",x.current.style.cssText="flex: 1 1 auto;",void(T.current.style.cssText="flex: 1;");var t=w.current.clientWidth;P.current.style.cssText="",x.current.style.cssText="",T.current.style.cssText="";var n=x.current.clientWidth;x.current.style.flex="1",2*T.current.clientWidth+n>t?(P.current.style.cssText="",x.current.style.cssText="flex: 1",T.current.style.cssText=""):(P.current.style.cssText="flex: 1;",x.current.style.cssText="",T.current.style.cssText="flex: 1;")}}),100,{leading:!0,trailing:!0})}),[e.align,w]);(0,r.useLayoutEffect)((function(){k()}),[null==C?void 0:C.width,k]);var E=(0,r.useMemo)((function(){return(null==C?void 0:C.height)&&(null==C?void 0:C.width)?{height:C.height,width:C.width,visible:!0,realign:k}:{height:0,width:0,visible:!1,realign:k}}),[null==C?void 0:C.height,null==C?void 0:C.width,k]);(0,r.useEffect)((function(){null==g||g(E)}),[E,g]);var M=null===(t=e.center)||void 0===t?void 0:t.call(e,null),D=!e.config||e.config.canSkipToMainContent,N=(null===(n=e.config)||void 0===n?void 0:n.skipLinks)||[];return(0,i.jsx)(_.Provider,{value:E,children:(0,i.jsxs)(c.X,{children:[(0,i.jsx)("div",{className:"site-header-v2 site-header-ghost scroll-dir-".concat(I," ").concat(e.className||""),style:{height:null==C?void 0:C.height}}),(0,i.jsxs)("header",{id:v,ref:w,className:"site-header-v2 scroll-dir-".concat(I," ").concat(e.className||""),children:[D&&(0,i.jsx)(l.P,{children:(0,i.jsx)(d.q,{children:(0,u.p3)("MainContentSkipLink")})}),(0,i.jsx)(c.X,{children:N.map((function(e){return(0,i.jsx)(d.q,{tag:e.tag,"aria-label":e.title,children:e.title},e.title)}))}),(0,i.jsx)(y,{}),(0,i.jsxs)("div",{className:"m-topbar ".concat(e.replaceWith?"content-replaced":""),children:[(0,i.jsx)("div",{className:"topbar-content",children:(0,i.jsxs)(f.LN,{onUpdate:k,children:[(0,i.jsx)("div",{ref:P,className:"topbar-controls topbar-left",children:(0,i.jsx)(p.K,{className:"topbar-left-content",trackWidth:!0,children:e.left})}),(0,i.jsx)("div",{ref:x,className:"topbar-center",children:(0,i.jsx)("div",{className:"topbar-center-content",children:M})}),(0,i.jsx)("div",{ref:T,className:"topbar-controls topbar-right",children:(0,i.jsx)("div",{className:"topbar-right-content",children:e.right})})]})}),e.replaceWith&&(0,i.jsx)("div",{className:"topbar-content-replacement",children:e.replaceWith})]}),e.accessory]}),e.outerAccessory]})})}},72944:function(e,t,n){"use strict";n.d(t,{c:function(){return f}});var i=n(31555),r=n(5059),o=n(85387),a=n(89247),s=n(6666),u=n(27602),c=n(65678),l=n(97556),d=n(13384),h=(0,a.DT)(),f=function(){var e=(0,o.wA)(),t=(0,o.d4)(u.Lr).homeViewName,n=t&&t!==c.lP.Landing?"".concat(h).concat(t):"".concat(h),a=(0,r.useCallback)((function(t){return e((0,u.TU)({})),(0,s.T)(t.nativeEvent)}),[e]);return(0,i.jsx)("div",{className:"topbar-logo",children:(0,i.jsx)(l.o,{className:"logo-pressreader","aria-label":(0,d.p3)("Navigation.Logo.Aria"),onClick:a,href:n,children:(0,i.jsx)("span",{children:(0,d.p3)("BrandPublisher")})})})}},42597:function(e,t,n){"use strict";n.d(t,{q:function(){return p}});var i=n(31555),r=n(58932),o=n(5059),a=n(13384),s=n(21290),u=n(83999),c=n(62713),l=n(67760),d=function(e){var t,n=(0,o.useContext)(c.a),d=(0,o.useContext)(s.x),h=(0,o.useState)(e.alwaysCompact),f=h[0],p=h[1],m=(0,o.useRef)(null),g=(0,r.fX)((0,r.fX)([],e.items,!0),e.menuItems||[],!0),v=(0,o.useMemo)((function(){if(!m.current||!(null==d?void 0:d.width))return{visible:e.items.length,total:g.length};var t,n=0,i=0,r=(t=m).current?Array.from(t.current.getElementsByTagName("li")).reduce((function(e,t){return t.classList.contains("ui-nav-item")&&(t.classList.contains("ui-nav-more")?e.navMoreItem=t:e.navItems.push(t)),e}),{navItems:[],navMoreItem:null}):null,o=r.navItems,a=r.navMoreItem.getBoundingClientRect().width;if(1===o.length)return{visible:1,total:o.length};for(var s=0,u=0;u1),{visible:n,total:o.length}}),[null==d?void 0:d.width,e.items,g.length,e.alwaysCompact]),y=(v.visible!==v.total||(null===(t=e.menuItems)||void 0===t?void 0:t.length))&&!f;return(0,o.useEffect)((function(){n.realign()}),[n.realign,v,n]),(0,i.jsx)("nav",{role:"navigation",className:"ui-nav","aria-label":(0,a.p3)("Navigation.Site"),children:(0,i.jsxs)("div",{className:"ui-nav-content ".concat(f?"is-compact":""),children:[f&&(0,i.jsx)("div",{className:"ui-nav-controls-compact",children:(0,i.jsx)(l.t,{type:"menu",label:(0,a.p3)("Buttons.Menu"),children:g})}),(0,i.jsx)("div",{className:"ui-nav-controls",children:(0,i.jsx)("ul",{ref:m,className:"ui-nav-nav",children:g.reduce((function(e,t,n){var r=n=e?{isValid:!0}:{isValid:!1,message:t}}}(e.minLength,e.message))):"equalTo"===e.name?(0,C.A)(e.requiredValue,e.message):"regex"===e.name?(t=e.name+(e.message||"")+e.regex,A[t]||(A[t]=function(e,t){return function(n){return t||(t=""),null==n||""===n.trim()||e.test(n)?{isValid:!0}:{isValid:!1,message:t}}}(e.regex,e.message))):void 0}(e)}));this.validatorsSubject.next(t)}this.valueSubject.next(this.props.value)},t.prototype.canShowMessage=function(){return this.props.showMessageAlways||this.props.isInputDirty},t.contextType=I.L,t}(o.PureComponent)},79416:function(e,t,n){"use strict";function i(e,t){return function(n){return n===e?{isValid:!0}:{isValid:!1,message:t}}}n.d(t,{A:function(){return i}})},52518:function(e,t,n){"use strict";n.d(t,{J:function(){return o},h:function(){return a}});var i=n(58932),r=n(40657);function o(){return(0,i.sH)(this,void 0,void 0,(function(){var e,t,n,o,a,s,u,c,l,d,h,f,p,m;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return[4,(0,r.Jt)("FeedSettings")];case 1:return(e=i.sent())?e.locales||(e.locales=[]):e={locales:[],following:null,sections:null},e.locales.length?[3,5]:[4,(0,r.Jt)("DefaultLocales")];case 2:return(null==(t=i.sent())?void 0:t.length)?[3,4]:[4,(0,r.zm)()];case 3:(null==(t=i.sent())?void 0:t.length)||(t=["en-US"]),i.label=4;case 4:for(n=0,o=t;n=i.u[0]&&e<=i.u[9]||e>=i.u.num0&&e<=i.u.num9},a=function(e){return e>64&&e<91||e>96&&e<123},s=function(e){return e<=i.u.delete&&e!==i.u.space},u=function(e,t){return t&&[i.u.a,i.u.x,i.u.c,i.u.v].indexOf(e)>=0},c=function(e){return e>=i.u.f1&&e<=i.u.f12};function l(e,t){return e===i.u.delete?r.e.Delete:e===i.u.backspace?r.e.Backspace:e===i.u.x&&t?r.e.Cut:e===i.u.v&&t?r.e.Paste:o(e)?r.e.Type:r.e.None}},22702:function(e,t,n){"use strict";var i;n.d(t,{e:function(){return i}}),function(e){e[e.None=0]="None",e[e.Delete=1]="Delete",e[e.Backspace=2]="Backspace",e[e.Cut=3]="Cut",e[e.Paste=4]="Paste",e[e.Type=5]="Type"}(i||(i={}))},43150:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var i={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause:19,capsLock:20,esc:27,space:32,pgUp:33,pgDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,semicolonFirefox:59,equalsFirefox:61,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,context:93,num0:96,num1:97,num2:98,num3:99,num4:100,num5:101,num6:102,num7:103,num8:104,num9:105,numMultiply:106,numPlus:107,numMinus:109,numPeriod:110,numDivision:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,minus:173,semicolon:186,equals:187,dash:189,":":188,".":190,"/":191,"`":192,openSquareBracket:219,"\\":220,closeSquareBracket:221,singleQuote:222,win:224}},86854:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var i=Object.keys},12651:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var i=["ar","arc","dv","far","ha","he","khw","ks","ku","ps","ur","yi"];function r(e){return i.indexOf(e)>=0}},35765:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});var i=n(58932),r={};function o(e,t){try{(null==e?void 0:e.startsWith("//"))&&(e="".concat(document.location.protocol).concat(e)),new URL(e)}catch(e){return Promise.reject(e)}var n=(0,i.Cl)({async:!0},t);return r[e]||(r[e]=new Promise((function(t,i){var r=document.createElement("script");r.onload=function(){return t(r)},r.onerror=function(t){return i(new URIError("The script ".concat(e," didn't load correctly. ").concat(t)))},Object.keys(n).forEach((function(e){r[e]=n[e]})),document.body.appendChild(r),r.src=e}))),r[e]}},9045:function(e,t,n){"use strict";n.d(t,{De:function(){return u},tw:function(){return c}});var i=n(58932),r=n(41e3),o={object:{},name:"",caseSensitive:!1},a=function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e},s=function(e){return(0,i.Cl)({},e)};function u(e){var t=e.object,n=function(e){var t=(0,i.Cl)((0,i.Cl)({},o),e),n=t.object,r=t.name,u=t.caseSensitive;if(a(n)&&r)return Object.keys(s(n)).find(u?function(e){return e===r}:function(e){return e.toLocaleLowerCase()===r.toLocaleLowerCase()})}({object:t,name:e.name,caseSensitive:e.caseSensitive});return n?s(t)[n]:void 0}function c(e){var t=r(e);if(!a(t))return t;var n=s(t);return Object.keys(n).forEach((function(e){"function"==typeof n[e]?delete n[e]:a(n[e])&&(n[e]=c(n[e]))})),n}},68565:function(e,t,n){"use strict";n.d(t,{Q:function(){return r},l:function(){return o}});var i=480;function r(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight}}function o(){var e=r();return e.width=v&&e<=y}function b(e){return!Number.isNaN(e)&&!_(e)}function w(e){return 1===e.length&&!!e.match(/\S/)}function C(e,t){return e.substring(0,t)+e.substring(t+1)}function A(e,t,n){if(t>n){var i=t;t=n,n=i}return e.substring(0,t)+e.substring(n+1)}function I(e){return e?e.replace(/\u00AD/g,""):e}function S(e){void 0===e&&(e="");for(var t="",n=0,i=e.split(" ");ns?h(Math.min(i,t)):(e(),r=Date.now(),h(t))}})).unsubscribe;return{dispose:function(){l&&clearTimeout(l),f()}}}},41233:function(e,t,n){"use strict";n.d(t,{u:function(){return f}});var i=n(31555),r=n(85387),o=n(18752),a=n(58932),s=n(5059),u=n(48473),c=n(41349),l=n(28809),d=n(23131),h=n(89247),f=function(e){var t,n,f,p,m,g;t=(0,r.d4)(l._t),n=t(d.oo,!1),f=t(d.dN,[]),p=t(d.zk,"").split(","),m=t(d.HA,""),g=new RegExp(m),(0,s.useEffect)((function(){if(n){var e=(0,h.Ti)().split(h.qt).filter((function(e){return""!==e}));if(e.length>0){var t=e[0].toLowerCase();f.find((function(e){return e.id===t}))&&e.shift()}if(!(e.length>0&&m&&g.test(e.join("/")))){var i=e.length>0?e[0]:"/";if(!(p.indexOf(i)<0))return f.forEach((function(t){var n;if((null===(n=t.hrefLangs)||void 0===n?void 0:n.length)>0){var i=(0,a.fX)([],(0,a.zs)(e),!1);t.slug&&i.unshift(t.slug);var r="".concat(window.location.origin).concat((0,h.DT)()).concat(i.join(h.qt));t.hrefLangs.forEach((function(e){var t=document.createElement("link");t.rel="alternate",t.href=r,t.hreflang=e,document.head.appendChild(t)}))}})),function(){var e=document.head.getElementsByTagName("link");c(u(e,(function(e){return"alternate"===e.rel})),(function(e){return document.head.removeChild(e)}))}}}}),[f,n,p]);var v=(0,r.d4)(o.ff).availHeight,y=["app-panel-content-container","container-".concat(e.viewName)];return e.subviewName&&y.push("subview-".concat(e.viewName,"-").concat(e.subviewName)),e.className&&y.push(e.className),(0,i.jsx)("div",{className:y.join(" "),style:{minHeight:v},children:e.children})}},54688:function(e,t,n){"use strict";n.d(t,{G:function(){return f}});var i=n(58932),r=n(85387),o=n(77394),a=n(78698),s=n(27602),u=n(61445),c=n(18752),l=n(75069),d=n(73663),h=["root-panel","root-panel-mobile"];function f(e){void 0===e&&(e=[]);var t=(0,r.d4)(d.oA),n=(0,r.d4)(d.LA),f=(0,r.d4)(a.X6),p=(0,r.d4)(u.N$),m=(0,r.d4)(a.nw),g=(0,r.d4)(c.LU),v=(0,r.d4)(a.uF),y=(0,r.d4)(s.zq),_=(0,r.d4)(d.Bo),b=o((0,i.fX)((0,i.fX)((0,i.fX)((0,i.fX)([],(0,i.zs)(h),!1),(0,i.zs)(e),!1),(0,i.zs)(_),!1),[(0,l.jG)(m)],!1));return t&&b.push(t),n&&b.push("scale".concat(n)),y&&b.push("view-".concat(y)),b.push("device-".concat(g)),"phone"!==g&&"tablet"!==g||b.push("device-mobile"),v&&b.push("facelift-on"),f&&b.push("app-".concat(f)),p&&b.push("mode-embedded"),b.join(" ")}},68819:function(e,t,n){"use strict";n.d(t,{i:function(){return I}});var i,r=n(31555),o=n(5059),a=n(85387),s=n(10358),u=n(78698),c=n(43566);!function(e){e.SignIn="signin",e.SignInEmail="signin-email",e.SignInLibrary="signin-library",e.SignUpEmail="signup-email",e.EmailVerification="email-confirmation",e.ForgotPwd="forgot-pwd"}(i||(i={}));var l=n(27602),d=n(65678),h=n(64404),f=n(22496),p=n(61445),m=n(80835),g=n(61577),v=n(59565),y=n(62713),_=n(26906),b=n(42906),w=n(74637),C=n(89486),A=function(){var e=(0,a.wA)(),t=(0,f.f)().localizedString,n=(0,a.d4)(c.mB),i=(0,a.d4)(u.nw),o=(0,a.d4)(u.uF),h=(0,a.d4)(b.c),p=i===m.Z.Pervasive;return(0,r.jsxs)(r.Fragment,{children:[!p&&(0,r.jsxs)(r.Fragment,{children:[!o&&(0,r.jsx)(w.k,{icon:"pri pri-compose",text:t("ToolbarTop.NewPost"),onClick:function(){return e((0,l.Ng)({viewName:d.lP.Post}))}}),!o&&(0,r.jsx)(w.k,{icon:function(){return(0,r.jsx)(C.a,{user:n,size:s.eV.medium})},text:t("Menu.Account.MyProfile"),onClick:function(){return e((0,l.Ng)({viewName:d.lP.Profile,params:{profileId:n.id}}))}}),(0,r.jsx)(w.k,{icon:"pri pri-account",text:t(o?"NavigationBar.Account":"Menu.Account.MyAccount"),onClick:function(){return e((0,l.Ng)({viewName:d.lP.Account,params:{anchor:"account"}}))}}),o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.k,{icon:"pri pri-bookmarks",text:t("Tab.Item.Bookmarks"),onClick:function(){return e((0,l.Ng)({viewName:d.lP.Bookmarks,params:{profileId:n.id}}))}}),(0,r.jsx)(w.k,{icon:"pri pri-publications",text:t("v7.Client.Catalog.mypublications"),onClick:function(){return e((0,l.Ng)({viewName:d.lP.StoreHub,params:{catalogView:d.$r.Catalog,filter0:_.b7.Favorites}}))}}),h.enabled&&(0,r.jsx)(w.k,{icon:"pri pri-books",text:t("v7.Client.Catalog.mybooks"),onClick:function(){return e((0,l.Ng)({viewName:d.lP.StoreHub,params:{catalogView:d.$r.Books,filter0:_.b7.BooksMyBooks}}))}})]})]}),(0,r.jsx)(w.k,{icon:"pri pri-logout",text:t("Sidebar.LogOut"),onClick:function(){return e((0,c.Op)())}})]})},I=function(){var e=(0,a.wA)(),t=(0,f.f)().localizedString,n=(0,o.useContext)(y.a),_=(0,a.d4)(c.mB),b=(0,a.d4)(u.nw),w=(0,a.d4)(p.N$);return(0,h.C)((function(){n.realign()}),[n.realign,_.isAuthenticated,b]),b===m.Z.Voyager||w?null:_.isAuthenticated?(0,r.jsx)(v.t,{className:"btn-account",button:(0,r.jsxs)(g.n,{className:"btn btn-dropdown","data-testid":"myProfileButton","aria-label":t("Header.Menu.User"),children:[(0,r.jsx)(C.a,{user:_,size:s.eV.normal}),(0,r.jsx)("span",{className:"btn-title",children:t("Header.Menu.User")})]}),children:(0,r.jsx)(A,{})}):b===m.Z.Pervasive?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.n,{"data-testid":"loginButton",className:"btn btn-login ".concat(w?"is-disabled":""),onClick:w?void 0:function(){return e((0,l.Ng)({viewName:d.lP.Auth,params:{subview:i.SignIn}}))},children:(0,r.jsx)("span",{className:"btn-title",children:t("Buttons.Login.Text")})}),(0,r.jsx)(g.n,{className:"btn btn-signup ".concat(w?"is-disabled":""),onClick:w?void 0:function(){return e((0,l.Ng)({viewName:d.lP.Auth,params:{subview:i.SignUpEmail}}))},children:(0,r.jsx)("span",{className:"btn-title",children:t("Buttons.SignUp")})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.n,{"data-testid":"loginButton",className:"btn btn-login ".concat(w?"is-disabled":""),onClick:w?void 0:function(){return e((0,c.IZ)({}))},children:(0,r.jsx)("span",{className:"btn-title",children:t("Buttons.Login.Text")})}),(0,r.jsx)(g.n,{className:"btn btn-signup ".concat(w?"is-disabled":""),onClick:w?void 0:function(){return e((0,c.IZ)({startWith:{signUp:!0}}))},children:(0,r.jsx)("span",{className:"btn-title",children:t("Buttons.SignUp")})})]})}},86353:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n(31555),r=n(85387),o=n(27602),a=n(22496),s=n(61577),u=function(){var e=(0,r.wA)(),t=(0,a.f)().localizedString;return(0,i.jsxs)(s.n,{className:"btn-icon btn-back",title:t("Buttons.Back.Text"),onClick:function(){return e((0,o.Lm)())},children:[(0,i.jsx)("span",{className:"pri pri-back","aria-hidden":"true"}),(0,i.jsx)("span",{className:"btn-title",children:t("Buttons.Back.Text")})]})}},86718:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var i=n(31555),r=n(85387),o=n(22496),a=n(61577),s=n(59565),u=n(73663),c=function(e){var t=(0,r.wA)(),n=(0,o.f)().localizedString;return e.children?(0,i.jsx)(s.t,{className:"btn-options",button:(0,i.jsxs)(a.n,{className:"btn-icon",children:[(0,i.jsx)("span",{className:"pri pri-action","aria-hidden":"true"}),(0,i.jsx)("span",{className:"btn-title",children:n("Buttons.Options")})]}),children:e.children}):(0,i.jsxs)(a.n,{className:"btn-icon btn-options",onClick:function(e,n){return t((0,u.de)({center:n.center}))},children:[(0,i.jsx)("span",{className:"pri pri-action","aria-hidden":"true"}),(0,i.jsx)("span",{className:"btn-title",children:n("Buttons.Options")})]})}},34788:function(e,t,n){"use strict";n.d(t,{u:function(){return re}});var i,r=n(58932),o=n(31555),a=n(5059),s=n(85387),u=n(78698),c=n(80835),l=n(18752),d=n(72944),h=n(62713),f=n(27602),p=n(65678),m=n(64404),g=n(22496),v=n(61445),y=n(97556),_=n(59565),b=n(74637),w=n(11677);!function(e){e.Billing="billing",e.Success="success",e.Receipt="receipt"}(i||(i={}));var C,A=function(){var e=(0,s.wA)(),t=(0,g.f)().localizedString,n=(0,a.useContext)(h.a),r=(0,s.d4)(l.L9),c=(0,s.d4)(u.q3),d=(0,s.d4)(v.FE),C=r>w.a.Medium;if((0,m.C)((function(){n.realign()}),[n.realign,C,c]),d||!c)return null;var A=C?(0,o.jsx)(y.o,{className:"toolbar-button-text toolbar-button-giftcard",children:(0,o.jsx)("span",{children:(0,o.jsx)("span",{className:"btn-title",children:t("ToolbarTop.GiftCards")})})}):(0,o.jsx)(y.o,{className:"toolbar-button-text toolbar-button-giftcard",children:(0,o.jsx)("span",{children:(0,o.jsx)("span",{className:"pri pri-gift","aria-hidden":"true"})})});return(0,o.jsxs)(_.t,{className:"btn-giftcards",button:A,children:[(0,o.jsx)(b.k,{text:t("ToolbarTop.BuyGiftCard"),icon:"pri pri-gift",onClick:function(){return e((0,f.Ng)({viewName:p.lP.GiftCard,params:{subview:i.Billing}}))}}),(0,o.jsx)(b.k,{text:t("ToolbarTop.RedeemGiftCard"),icon:"pri pri-giftredeem",onClick:function(){return e((0,f.bv)({link:"giftedaccess/campaign/giftcard-redeem"}))}})]})},I=n(46674),S=n(61577),P=function(){var e=(0,s.wA)(),t=(0,g.f)().localizedString,n=(0,a.useContext)(h.a),i=(0,s.d4)(v.pP);if((0,m.C)((function(){return n.realign()}),[n.realign,i]),void 0===i)return null;var r=function(e){switch(e){case I.D.Off:case I.D.OutOfHotspot:return"off";case I.D.Busy:case I.D.BusyLimitExceeded:return"wait";case I.D.On:return"on";default:return""}}(i);return(0,o.jsxs)(S.n,{className:"btn-icon btn-hotspot ".concat(r),onClick:function(){return e((0,v.Wj)())},children:[(0,o.jsx)("span",{className:"pri pri-hotspot","aria-hidden":"true"}),(0,o.jsx)("span",{className:"btn-title",children:t("Buttons.Hotzone.Text")})]})},x=n(68819),T=n(86718),k=n(10610),E=function(e){var t=(0,s.d4)(u.nw);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A,{}),(0,o.jsx)(P,{}),!1!==e.search&&(0,o.jsx)(k.u,{}),(0,o.jsx)(x.i,{}),t!==c.Z.Voyager&&(0,o.jsx)(T.u,{children:e.optionsMenuItems})]})},M=n(42597),D=n(89247),N=n(73663),L=n(83999),V=function(e){var t=e.selected,n=e.title,i=e.hrefSEO,r=e.catalogView,a=(0,s.wA)(),u=(0,g.f)().localizedString;return(0,o.jsx)(L.g,{icon:"pri pri-sources",title:null!=n?n:u("Navigation.Catalog"),selected:t,onClick:function(){return a((0,f.Ng)({viewName:p.lP.StoreHub,params:{catalogView:null!=r?r:p.$r.Catalog}}))},hrefSEO:i})},R=function(e){var t=(0,s.wA)(),n=(0,g.f)().localizedString;return(0,o.jsx)(L.g,{icon:"pri pri-newsfeed",title:n("Navigation.ForYou"),selected:e.selected,onClick:function(){return t((0,f.Ng)({viewName:p.lP.TopNews}))},hrefSEO:e.hrefSEO})},H=function(e){var t=(0,s.wA)();return(0,o.jsx)(L.g,{icon:"pri pri-home",title:e.title,selected:e.selected,onClick:function(){return t((0,f.Ng)({viewName:p.lP.Home}))},hrefSEO:e.hrefSEO})},F=function(e){var t=(0,s.wA)(),n=(0,g.f)().localizedString;return(0,o.jsx)(L.g,{icon:"pri pri-books",title:n("v7.Client.Catalog.pdfbooks"),selected:e.selected,onClick:function(){return t((0,f.Ng)({viewName:p.lP.StoreHub,params:{catalogView:p.$r.PDFBooks}}))}})},B=function(e){var t=(0,s.wA)(),n=(0,g.f)().localizedString;return(0,o.jsx)(L.g,{icon:"pri pri-magazine",title:n("v7.Client.Catalog.magazines"),selected:e.selected,onClick:function(){return t((0,f.Ng)({viewName:p.lP.StoreHub,params:{catalogView:p.$r.Magazines}}))}})},z=function(e){var t=(0,s.wA)(),n=(0,g.f)().localizedString;return(0,o.jsx)(L.g,{icon:"pri pri-newspaper",title:n("v7.Client.Catalog.newspapers"),selected:e.selected,onClick:function(){return t((0,f.Ng)({viewName:p.lP.StoreHub,params:{catalogView:p.$r.Newspapers}}))}})},O=n(92961),j=function(e){var t=e.title,n=e.addDivider,i=void 0!==n&&n,r=(0,s.wA)(),u=(0,a.useContext)(L.p).asMenuItem,c=(0,a.useCallback)((function(){r((0,O.D8)())}),[r]);return u?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(L.g,{icon:"pri pri-arrowleft",title:t,selected:!1,className:"dropmenu-item-aux-top",onClick:c}),i&&(0,o.jsx)("div",{role:"separator",className:"nav-divider"})]}):null},U=(0,D.DT)(),W=function(e){var t=(0,s.wA)(),n=(0,g.f)().localizedString;return(0,o.jsx)(L.g,{icon:"pri pri-hotspotmap",title:n("Sidebar.HotzoneMap"),selected:e.selected,onClick:function(){return t((0,f.Ng)({viewName:p.lP.HotSpotsHub}))},hrefSEO:e.hrefSEO})},Y=(0,D.DT)(),X=n(13981),q=n(26906),G=n(78897),K=n(12705),J=n(29978);!function(e){e[e.Default=0]="Default",e[e.Tabbar=1]="Tabbar"}(C||(C={}));var Q=(0,J.Mz)(u.nw,l.LU,(function(e,t){var n=e===c.Z.Pervasive,i=C.Default;return"phone"===t&&(i=C.Tabbar),{enabled:n,navigationMode:i}})),Z=function(e){var t=(0,s.wA)(),n=(0,g.f)().localizedString;return(0,o.jsx)(L.g,{icon:"pri pri-myprofile",title:n("Catalog.MyFavorites"),selected:e.selected,onClick:function(){return t((0,f.Ng)({viewName:p.lP.MyProfile}))}})},$=function(e){var t,n,i,r,u,c=(0,g.f)().localizedString,l=(n=q.$I.PublicationTypes,i=(0,s.wA)(),r=(0,K.y)(G.I,n),u=(0,s.d4)(G.F$),(0,a.useEffect)((function(){u||i((0,G.So)())}),[i,u]),null!=r?r:[]),d=(0,s.d4)(f.SG),h=null!==(t=null==d?void 0:d.currentPath)&&void 0!==t?t:"none",m=(0,s.d4)(Q),v=[(0,o.jsx)(H,{title:c("Navigation.Home"),selected:""===h||(null==d?void 0:d.viewName)===p.lP.Home},"pervasive_home")],y={magazines:p.$r.Magazines,newspapers:p.$r.Newspapers};return l.forEach((function(e){var t=y[e.slug];t&&v.push((0,o.jsx)(L.g,{icon:"pri pri-".concat(e.slug),title:e.displayName,selected:h.startsWith(e.slug),onClick:function(){return(0,X.JD)((0,f.Ng)({viewName:p.lP.StoreHub,params:{catalogView:t}}))}},"pervasive_".concat(e.slug)))})),m.enabled&&v.push((0,o.jsx)(Z,{selected:h.startsWith("myprofile")},"pervasive_myprofile")),(0,o.jsx)(M.q,{mode:e.mode,items:v})},ee=function(e){var t=(0,s.d4)(v.FE),n=(0,s.d4)(u.nw),i=function(){var e,t=(0,g.f)().localizedString,n=(0,s.d4)(u.nw),i=(0,s.d4)(N.aq),r=(0,s.d4)(f.SG),l=null!==(e=null==r?void 0:r.currentPath)&&void 0!==e?e:"none";return(0,a.useMemo)((function(){if(n===c.Z.Pervasive)return[];var e=[];if(n===c.Z.Web){!i.exitPublication.enabled||(null==r?void 0:r.viewName)!==p.lP.PagesView&&(null==r?void 0:r.viewName)!==p.lP.TextView&&(null==r?void 0:r.viewName)!==p.lP.Article||e.push((0,o.jsx)(j,{title:t("Navigation.ExitPublication"),addDivider:!0},"web_exit_publication"));var a=l.startsWith("catalog")||l.endsWith("details")||l.endsWith("latest");e.push((0,o.jsx)(V,{selected:a,hrefSEO:"".concat(U,"catalog")},"web_catalog")),i.topnews.enabled&&e.push((0,o.jsx)(R,{selected:(null==r?void 0:r.viewName)===p.lP.TopNews,hrefSEO:"".concat(U,"foryou")},"web_topnews"))}return n===c.Z.Voyager&&(e.push((0,o.jsx)(H,{title:t("Navigation.Home"),selected:""===l||(null==r?void 0:r.viewName)===p.lP.Home},"voyager_home")),i.books.enabled&&e.push((0,o.jsx)(F,{selected:l.startsWith("pdfbooks")},"voyager_books")),e.push((0,o.jsx)(B,{selected:l.startsWith("magazines")},"voyager_magazines")),e.push((0,o.jsx)(z,{selected:l.startsWith("newspapers")},"voyager_newspapers"))),e}),[i,l,t,r,n])}(),r=function(){var e,t=(0,s.wA)(),n=(0,g.f)().localizedString,i=(0,s.d4)(u.nw),r=(0,s.d4)(N.aq),l=(0,s.d4)(f.SG),d=null!==(e=null==l?void 0:l.currentPath)&&void 0!==e?e:"none";return(0,a.useMemo)((function(){if(i!==c.Z.Web)return[];var e=[];return r.hotspotMap.enabled&&e.push((0,o.jsx)(W,{selected:d.startsWith("hotspot"),hrefSEO:"".concat(Y,"hotspot/map")},"web_hotspot")),r.about.enabled&&e.push((0,o.jsx)(L.g,{title:n("Sidebar.About"),selected:!1,onClick:function(){r.about.location&&t((0,f.bv)({link:r.about.location,openNewWindow:!0}))},hrefSEO:"//about.pressreader.com/"},"web_about")),r.blog.enabled&&e.push((0,o.jsx)(L.g,{title:n("Sidebar.Blog"),selected:!1,onClick:function(){r.blog.location&&t((0,f.bv)({link:r.blog.location,openNewWindow:!0}))},hrefSEO:"//blog.pressreader.com/"},"web_blog")),r.help.enabled&&e.push((0,o.jsx)(L.g,{icon:"pri pri-help",title:n("Sidebar.HelpCenter"),selected:!1,onClick:function(){r.help.location&&t((0,f.bv)({link:r.help.location,openNewWindow:!0}))},hrefSEO:"//care.pressreader.com/hc"},"web_help")),e}),[i,r,d,n,t])}();return n===c.Z.Pervasive?(0,o.jsx)($,{mode:e.mode}):(0,o.jsx)(M.q,{mode:e.mode,items:i,menuItems:t?[]:r})},te=n(80784),ne=n(10320),ie=function(e){var t=(0,s.d4)(u.nw),n=(0,s.d4)(l.LU),i=(0,a.useContext)(ne.D),r=[],f=null,p="none"!==e.navigation;p&&(f=t===c.Z.Pervasive?"phone"===n?"tabbar":"navbar":"compact"===e.navigation?"inline-compact":"inline");var m=(0,o.jsxs)(o.Fragment,{children:[t===c.Z.Pervasive&&!e.left&&!e.center&&(0,o.jsx)(d.c,{}),e.left,p&&("inline"===f||"inline-compact"===f)&&(0,o.jsx)(ee,{mode:f})]}),g=e.center;t===c.Z.Pervasive||g||(g=function(){return(0,o.jsx)(d.c,{})});var v=(0,a.useMemo)((function(){return e.align?e.align:"inline"===f?"sides-flex":g?"center-flex":"none"}),[e.align,f,g]),y=e.right||(0,o.jsx)(E,{optionsMenuItems:e.optionsMenuItems,search:e.search}),_=e.accessory,b=e.outerAccessory;return"navbar"===f?_=(0,o.jsxs)(o.Fragment,{children:[_,p&&(0,o.jsx)(ee,{mode:"navbar"})]}):"tabbar"===f&&(b=(0,o.jsxs)(o.Fragment,{children:[b,p&&(0,o.jsx)(ee,{mode:"tabbar"})]})),i.showSearchInput&&(r.push("site-header-search-shown"),b=(0,o.jsx)(o.Fragment,{children:b})),i.extraControlsShown&&r.push("site-header-access-controls-shown"),(0,o.jsx)(h.D,{className:r.join(" "),left:m,center:g,right:y,align:v,replaceWith:i.showSearchInput?(0,o.jsx)(te.O,{}):null,accessory:_,outerAccessory:b,config:e.config,onHeaderContextChanged:e.onHeaderContextChanged})},re=function(e){return(0,o.jsx)(ne.j,{children:(0,o.jsx)(ie,(0,r.Cl)({},e))})}},80784:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var i=n(31555),r=n(5059),o=n(85387),a=n(41002),s=n(85834),u=n(10320),c=function(){var e=(0,o.wA)(),t=(0,r.useContext)(u.D),n=(0,r.useCallback)((function(n,i){t.setShowSearchInput(!1),e((0,a.eO)({query:n,location:i}))}),[e,t]),c=(0,r.useCallback)((function(){t.setShowSearchInput(!1)}),[t]);return(0,i.jsx)(s.O,{onSearch:n,onClose:c,autoFocus:!0})}},10610:function(e,t,n){"use strict";n.d(t,{u:function(){return C}});var i=n(31555),r=n(5059),o=n(85387),a=n(78698),s=n(41002),u=n(64404),c=n(80835),l=n(18752),d=n(62713),h=n(11677),f=n(10320),p=n(22496),m=n(61577),g=function(e){var t=e.onClick,n=(0,p.f)().localizedString;return(0,i.jsxs)(m.n,{className:"btn-icon btn-search",onClick:t,children:[(0,i.jsx)("span",{className:"pri pri-search","aria-hidden":"true"}),(0,i.jsx)("span",{className:"btn-title",children:n("Buttons.Search")})]})},v=n(58932),y=n(27602),_=n(13384),b=n(9774),w=function(e){var t=e.onSearch,n=(0,o.d4)(y.SG),a=(0,v.zs)((0,r.useState)(""),2),s=a[0],u=a[1];return(0,r.useEffect)((function(){return u("")}),[null==n?void 0:n.currentPath]),(0,i.jsx)("div",{className:"topbar-search",children:(0,i.jsx)("div",{className:"ui-search",children:(0,i.jsx)("div",{role:"search","aria-label":(0,_.p3)("Site.Search.Header.Aria"),children:(0,i.jsx)("div",{className:"search-container",children:(0,i.jsx)(b.N,{value:s,"aria-label":(0,_.p3)("Site.Search.Header.Placeholder"),"aria-autocomplete":"list",placeholder:(0,_.p3)("Site.Search.Header.Placeholder"),onChange:function(e,t){return u(t)},onSubmit:function(){return t(s)}})})})})})},C=function(){var e=(0,o.wA)(),t=(0,r.useContext)(d.a),n=(0,r.useContext)(f.D),p=(0,o.d4)(a.nw),m=(0,o.d4)(l.L9);(0,u.C)((function(){t.realign()}),[t.realign,m]);var v=function(t){return e((0,s.eO)({query:t}))};return p===c.Z.Pervasive?m<=h.a.Medium?(0,i.jsx)(g,{onClick:function(){return v("")}}):(0,i.jsx)(w,{onSearch:v}):m<=h.a.Small?(0,i.jsx)(g,{onClick:function(){return e((0,s.Jt)({query:""}))}}):(0,i.jsx)(g,{onClick:function(){n.setShowSearchInput(!0)}})}},10320:function(e,t,n){"use strict";n.d(t,{D:function(){return s},j:function(){return u}});var i=n(58932),r=n(31555),o=n(5059),a=n(3491),s=(0,o.createContext)({showSearchInput:!1,setShowSearchInput:a,extraControlsShown:!1,setExtraControlsShown:a}),u=function(e){var t=e.children,n=(0,i.zs)((0,o.useState)(!1),2),a=n[0],u=n[1],c=(0,i.zs)((0,o.useState)(!1),2),l=c[0],d=c[1],h=(0,i.zs)((0,o.useState)(),2),f=h[0],p=h[1],m=(0,o.useMemo)((function(){return{showSearchInput:a,setShowSearchInput:function(e){u(e),e?p(document.activeElement):f&&f.focus()},extraControlsShown:l,setExtraControlsShown:d}}),[a,u,l,d,f]);return(0,r.jsx)(s.Provider,{value:m,children:t})}},89486:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var i=n(31555),r=n(10358),o=n(90185),a=n(45235),s=function(e){var t=e.user,n=e.size;return t.isAuthenticated?(0,i.jsx)("span",{className:"userphoto",children:function(){var e,s,u=t.avatarImageId&&(0,o.V)(t.avatarImageId)||t.photo&&t.photo.url&&(0,r.He)(t.photo.url);return u?(0,i.jsx)("img",{src:u,width:null!==(e=null==n?void 0:n.width)&&void 0!==e?e:0,height:null!==(s=null==n?void 0:n.height)&&void 0!==s?s:0,alt:""}):(0,i.jsx)("span",{className:"userphoto-title",children:(0,a.gs)(t.name)})}()}):(0,i.jsx)("span",{className:"userphoto"})}},93399:function(e,t,n){"use strict";n.d(t,{_:function(){return u}});var i=n(31555),r=n(5059),o=n(85738),a=function(e){var t=e.viewName,n=e.subviewName,r=e.contentClassName,a=e.children;return(0,i.jsx)("div",{"data-testid":t,className:(0,o.W)("".concat(t,"-hub view-hub"),n&&"subview-".concat(n)),role:"main",children:(0,i.jsx)("div",{className:"".concat(t,"-panel-content view-panel-content"),children:(0,i.jsx)("div",{className:(0,o.W)("".concat(t,"-panel view-panel"),r),children:a})})})},s=n(41233),u=function(e){var t=e.viewName,n=e.subviewName,o=e.className,u=e.contentClassName,c=e.header,l=e.footer,d=e.contextProvider,h=e.children,f=d||r.Fragment;return(0,i.jsx)(s.u,{viewName:t,className:o,children:(0,i.jsxs)(f,{children:[c,(0,i.jsx)(a,{viewName:t,subviewName:n,contentClassName:u,children:h}),l]})})}},8351:function(e,t,n){"use strict";n.d(t,{$Y:function(){return l},H5:function(){return o},IK:function(){return d},L9:function(){return a},O1:function(){return c},aq:function(){return f},dz:function(){return u},o5:function(){return h},oL:function(){return s},pW:function(){return r}});var i=n(89247),r="@pressreader/views-common",o="contextmenu.views.common.translate",a="contextmenu.views.common.interfacelang",s="contextmenu.views.common.fonts",u="TextView.Scale",c="TextView.Fontset",l="".concat((0,i.DT)(),"multilanguage"),d=7,h=1,f="features.views.homefeed.enabled"},99891:function(e,t,n){"use strict";n.d(t,{A9:function(){return u},C6:function(){return A},LM:function(){return y},Mu:function(){return w},WC:function(){return m},Xm:function(){return p},Y:function(){return c},aA:function(){return v},cn:function(){return a},de:function(){return g},e_:function(){return d},iI:function(){return h},ku:function(){return f},mQ:function(){return I},nt:function(){return C},qX:function(){return s},ru:function(){return b},sr:function(){return l},uT:function(){return _}});var i=n(89103),r=n(8351),o="".concat(r.pW,"/"),a=(0,i.lQ)("".concat(o,"change_interface_language")),s=(0,i.lQ)("".concat(o,"change_font")),u=(0,i.lQ)("".concat(o,"change_font_done")),c=(0,i.lQ)("".concat(o,"available_fonts_changed")),l=(0,i.lQ)("".concat(o,"change_font_scale")),d=(0,i.lQ)("".concat(o,"increase_font_scale")),h=(0,i.lQ)("".concat(o,"decrease_font_scale")),f=(0,i.lQ)("".concat(o,"font_scale_changed")),p=(0,i.lQ)("".concat(o,"open_change_interface_language_menu")),m=(0,i.lQ)("".concat(o,"open_fonts_menu")),g=(0,i.lQ)("".concat(o,"open_legacy_options_menu")),v=(0,i.lQ)("".concat(o,"open_translate_menu")),y=(0,i.lQ)("".concat(o,"translate_menu_opened")),_=(0,i.lQ)("".concat(o,"translate_menu_closed")),b=(0,i.lQ)("".concat(o,"translate_menu_language_code_changed")),w=(0,i.lQ)("".concat(o,"legacy_app_load_began")),C=(0,i.lQ)("".concat(o,"legacy_app_load_done")),A=(0,i.lQ)("".concat(o,"legacy_app_load_failed")),I=(0,i.lQ)("".concat(o,"check_issue_read_limits"))},73663:function(e,t,n){"use strict";n.d(t,{qX:function(){return _.qX},A9:function(){return _.A9},sr:function(){return _.sr},cn:function(){return _.cn},mQ:function(){return _.mQ},iI:function(){return _.iI},ku:function(){return _.ku},e_:function(){return _.e_},Mu:function(){return _.Mu},nt:function(){return _.nt},C6:function(){return _.C6},Xm:function(){return _.Xm},WC:function(){return _.WC},de:function(){return _.de},aA:function(){return _.aA},g0:function(){return ie},oA:function(){return re},LA:function(){return oe},NO:function(){return de},TZ:function(){return he},iA:function(){return fe},aq:function(){return ne},oG:function(){return se},oz:function(){return ce},C4:function(){return ue},py:function(){return me},ND:function(){return ae},Bo:function(){return le},ru:function(){return _.ru}});var i=n(13981),r=n(25672),o=n(31555),a=n(5059),s=n(85387),u=n(78698),c=n(51880),l=n(43125),d=n(12705),h=n(22496),f=n(3503),p=n(34624),m=n(6201),g=n(41035),v=n(18844),y=n(74637),_=n(99891),b=n(8351),w=n(58932),C=n(74010),A=n(89103),I=n(24167),S={fonts:[],currentFontId:null,currentFontScale:parseInt(I.get(b.dz,"3"),10),legacyAppStatus:C.U.None},P=(0,A.vy)(S,(0,A.po)(_.Y,(function(e,t){var n=t.payload;return(0,w.Cl)((0,w.Cl)({},e),{fonts:n.fonts})})),(0,A.po)(_.A9,(function(e,t){var n=t.payload;return(0,w.Cl)((0,w.Cl)({},e),{currentFontId:n.fontId})})),(0,A.po)(_.ku,(function(e,t){var n=t.payload;return(0,w.Cl)((0,w.Cl)({},e),{currentFontScale:n.fontScale})})),(0,A.po)(_.Mu,(function(e){return(0,w.Cl)((0,w.Cl)({},e),{legacyAppStatus:C.U.Pending})})),(0,A.po)(_.nt,(function(e){return(0,w.Cl)((0,w.Cl)({},e),{legacyAppStatus:C.U.Done})})),(0,A.po)(_.C6,(function(e){return(0,w.Cl)((0,w.Cl)({},e),{legacyAppStatus:C.U.Failed})}))),x=n(44834),T=n(51413),k=n(47476);function E(){return(0,w.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,x.yJ)((0,T.df)({category:"Menus",action:"IssueContextMenu",label:"fonts"}))];case 1:return e.sent(),[2]}}))}function M(){return(0,w.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,k.j)(_.WC,E)];case 1:return e.sent(),[2]}}))}var D=n(4291),N=n(10235),L=n(30212),V=n(27602),R=n(80606),H=n(62444),F=n(89247),B=n(19299),z=n(82534),O=n(61445),j=n(80835),U=n(74057),W=n(29978),Y=n(14823),X=n(43566),q=n(70474),G=n(28809),K=n(42906),J=n(33730),Q=n(46674),Z=n(18752),$=n(11677),ee=n(60456),te=function(e){return e[b.pW]},ne=(0,W.Mz)(G._t,K.c,O.FE,u.uF,(function(e,t,n,i){var r={hotspotMap:{enabled:!1},about:{enabled:!1,location:null},blog:{enabled:!1,location:null},help:{enabled:!1,location:null},topnews:{enabled:!0},books:{enabled:t.enabled},exitPublication:{enabled:i}},o=e("app.views.common.nav_menu");if(!o)return r;var a=Y(r,o);return{hotspotMap:{enabled:e(a.hotspot_map.enabled_feature_key,!0)},about:{enabled:a.about.enabled,location:a.about.location},blog:{enabled:a.blog.enabled,location:a.blog.location},help:{enabled:a.help.enabled,location:a.help.location},topnews:{enabled:a.topnews.enabled&&!n&&e(b.aq,!0)},books:{enabled:t.enabled},exitPublication:{enabled:i}}})),ie=(0,W.Mz)(te,(function(e){return e.fonts})),re=(0,W.Mz)(te,(function(e){return e.currentFontId})),oe=(0,W.Mz)(te,(function(e){return e.currentFontScale})),ae=((0,W.Mz)(oe,(function(e){return eb.o5})),(0,W.Mz)(te,(function(e){return e.legacyAppStatus}))),se=(0,W.Mz)(V.zq,ae,R.i3,J.i3,(function(e,t,n,i){var r=!e&&!n.length&&!i.length;return t!==C.U.Done&&r})),ue=(0,W.Mz)(X.Vj,ae,(function(e,t){return e||t===C.U.Pending})),ce=(0,W.Mz)(R.i3,J.i3,(function(e,t){return!(e.length&&e[e.length-1].supportNativeScroll||t.length&&t[t.length-1].supportNativeScroll)})),le=(0,W.Mz)(G._t,(function(e){return e("app.common.rootPanelClassName","").split(" ").filter((function(e){return e}))})),de=(0,W.Mz)(G._t,u.uF,(function(e,t){return t&&e("features.feedback.form.enabled",!1)})),he=(0,W.Mz)(G._t,(function(e){return e("features.feedback.form.url","")})),fe=(0,W.Mz)(u.nw,Z.LU,Z.ff,G._t,(function(e,t,n,i){return{showFooterContent:i("features.views.footer.generic.showContent",!0),showFooterLinks:e!==j.Z.Voyager,mobileView:"phone"===t||n.screenType<=$.a.Medium}})),pe=(0,W.Mz)(G._t,(function(e){var t=e("translation");return{enable:(0,ee.A)(null==t?void 0:t.enableTextViewTranslation.value),enableForAnonymous:(0,ee.A)(null==t?void 0:t.enableTextViewTranslation.enableForAnonymous),enableForSponsored:(0,ee.A)(null==t?void 0:t.enableTextViewTranslation.enableForSponsored),enableForPremium:(0,ee.A)(null==t?void 0:t.enableTextViewTranslation.enableForPremium),enableForRegistered:(0,ee.A)(null==t?void 0:t.enableTextViewTranslation.enableForRegistered)}})),me=(0,W.Mz)(u.nw,X.mB,q.rU,O.pP,pe,(function(e,t,n,i,r){return e!==j.Z.Voyager&&(i===Q.D.On?r.enableForSponsored:t.isAuthenticated?n&&n.isUnlimited?r.enableForPremium:n&&n.isFree?r.enableForRegistered:r.enable:r.enableForAnonymous)}));function ge(e){var t,n,i,r,o,a,s,u,c,l=e.payload;return(0,w.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,6,,7]),t=l.parentMenuId,n=l.center,i=l.issueKey,r=l.currentLanguageCode,o={center:null!=n?n:{x:0,y:0},align:n?{y:H.W.Center,x:H.W.Center}:{x:H.W.ScreenCenter,y:H.W.ScreenCenter}},[5,(0,w.Ju)((0,R.jA)({parentMenuId:t,name:b.H5,context:{issueKey:i,currentLanguageCode:r},position:o}))];case 1:return a=e.sent(),[4,(0,x.yJ)((0,_.LM)())];case 2:return e.sent(),[4,(0,x.O4)({close:(0,R.d3)(a),navigateBegan:(0,x.s)(V.DI)})];case 3:return s=e.sent(),[4,(0,R.Z_)(a,{back:(null===(c=s.close)||void 0===c?void 0:c.payload.back)||!1})];case 4:return e.sent(),[4,(0,x.yJ)((0,_.uT)())];case 5:return e.sent(),[3,7];case 6:return u=e.sent(),(0,L.z)(u),[3,7];case 7:return[2]}}))}function ve(e){var t,n,i,r,o,a;return(0,w.YH)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,6,,7]),t={center:e.payload.center,align:{y:H.W.ScreenCenter,x:H.W.ScreenCenter}},[4,(0,R.jA)({parentMenuId:e.payload.parentMenuId,name:b.L9,context:null,position:t})];case 1:return n=s.sent(),[4,(0,R.d3)(n)];case 2:return i=s.sent().payload,[4,(0,R.Z_)(n,{back:i.back})];case 3:return s.sent(),[4,(0,x.Lt)(u.zw)];case 4:return r=s.sent(),[4,(0,x.Lt)(u.R1)];case 5:return o=s.sent(),window.localStorage.setItem(b.$Y,JSON.stringify({interfaceLangCode:r,preferredLanguageCode:o,result:!1})),[3,7];case 6:return a=s.sent(),(0,L.z)(a),[3,7];case 7:return[2]}}))}function ye(e){var t,n,i,r,o=e.payload;return(0,w.YH)(this,(function(e){switch(e.label){case 0:return t=o.languageCode,n=(0,F.m2)(window.location.pathname+window.location.search,t),[4,(0,x.Lt)(u.nw)];case 1:return e.sent()===j.Z.Voyager?[3,5]:[4,(0,x.T1)(B.gV,t)];case 2:return e.sent(),[4,(0,x.Lt)(O.$4)];case 3:return i=e.sent(),[4,(0,x.T1)(z.Ct,!!(null==i?void 0:i.isGeoLocationValidationEnabled))];case 4:return e.sent(),setTimeout((function(){window.location.assign(n)}),30),[3,6];case 5:r=(0,F.jM)("ChangeLanguage?lng=".concat(t,"&returnUrl=").concat(encodeURIComponent(n))),setTimeout((function(){window.location.assign(r)}),30),e.label=6;case 6:return[2]}}))}function _e(){var e,t;return(0,w.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,x.Lt)(u.XT)];case 1:return e=n.sent()===N.O.Android?[{id:"fontset1",name:null},{id:"fontset2",name:"Sans Serif"},{id:"fontset3",name:"Palantino"},{id:"fontset4",name:"Times"}]:[{id:"fontset1",name:null},{id:"fontset2",name:"Palantino"},{id:"fontset3",name:"Times New Roman"},{id:"fontset4",name:"Helvetica"},{id:"fontset5",name:"Verdana"},{id:"fontset6",name:"Georgia"},{id:"fontset-dyslexic",name:"Dyslexic"}],[4,(0,x.Lt)(ie)];case 2:return t=n.sent(),D(e,t)?[3,4]:[4,(0,x.yJ)((0,_.Y)({fonts:e}))];case 3:n.sent(),n.label=4;case 4:return[2]}}))}function be(){var e,t;return(0,w.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,x.Lt)(re)];case 1:return e=n.sent(),t=I.get(b.O1,"fontset1"),e===t?[3,3]:[4,(0,x.yJ)((0,_.A9)({fontId:t}))];case 2:n.sent(),n.label=3;case 3:return I.onSettingsChanged(b.O1).subscribe((function(e){(0,i.JD)((0,_.A9)({fontId:e}))})),[2]}}))}function we(e){var t,n,i,r,o,a=e.payload;return(0,w.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),t=a.center?{center:a.center,align:{y:H.W.Center,x:H.W.Center}}:{center:{x:0,y:0},align:{y:H.W.ScreenCenter,x:H.W.ScreenCenter}},[4,(0,R.jA)({parentMenuId:a.parentMenuId,name:b.oL,context:{showFonts:a.showFonts},position:t})];case 1:return n=e.sent(),[4,(0,x.O4)({close:(0,R.d3)(n),navigateBegan:(0,x.s)(V.DI)})];case 2:return i=e.sent(),[4,(0,R.Z_)(n,{back:(null===(o=i.close)||void 0===o?void 0:o.payload.back)||!1})];case 3:return e.sent(),[3,5];case 4:return r=e.sent(),(0,L.z)(r),[3,5];case 5:return[2]}}))}function Ce(e){var t=e.payload;return(0,w.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,x.Lt)(re)];case 1:return e.sent()!==t.fontId&&I.set(b.O1,t.fontId),[2]}}))}function Ae(e){var t,n,i,r=e.payload;return(0,w.YH)(this,(function(e){switch(e.label){case 0:return t=r.fontScale,n=(0,U.V)(t),[4,(0,x.Lt)(oe)];case 1:return i=e.sent(),n===i?[2]:(I.set(b.dz,n),[4,(0,x.yJ)((0,_.ku)({fontScale:n}))]);case 2:return e.sent(),[2]}}))}function Ie(){var e;return(0,w.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,x.Lt)(oe)];case 1:return e=t.sent(),[4,(0,x.yJ)((0,_.sr)({fontScale:e+1}))];case 2:return t.sent(),[2]}}))}function Se(){var e;return(0,w.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,x.Lt)(oe)];case 1:return e=t.sent(),[4,(0,x.yJ)((0,_.sr)({fontScale:e-1}))];case 2:return t.sent(),[2]}}))}function Pe(){return(0,w.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,x.jP)(_.Xm,ve)];case 1:return e.sent(),[4,(0,x.jP)(_.cn,ye)];case 2:return e.sent(),[4,(0,x.jP)(_.aA,ge)];case 3:return e.sent(),[4,_e()];case 4:return e.sent(),[4,be()];case 5:return e.sent(),[4,(0,x.jP)(_.WC,we)];case 6:return e.sent(),[4,(0,x.jP)(_.qX,Ce)];case 7:return e.sent(),[4,(0,x.jP)(_.sr,Ae)];case 8:return e.sent(),[4,(0,x.jP)(_.e_,Ie)];case 9:return e.sent(),[4,(0,x.jP)(_.iI,Se)];case 10:return e.sent(),[2]}}))}var xe=n(87542),Te=n(13384);function ke(e){var t,n;return(0,w.YH)(this,(function(i){switch(i.label){case 0:return(t=e.payload)?(n=null,t.hasReachedDailyIssueReadLimit?n=(0,Te.p3)("ReadLimit.DailyLimitExceeded"):t.hasReachedIssueReadLimit?n=(0,Te.p3)("ReadLimit.IssuesHardLimitExceeded"):t.hasIssueReadLimitReachingWarning&&(n=(0,Te.p3)("ReadLimit.IssuesSoftLimitExceeded")),n?[4,(0,xe.Z)({message:n})]:[3,2]):[2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}function Ee(){return(0,w.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,k.j)(_.mQ,ke)];case 1:return e.sent(),[2]}}))}r.A.register(b.H5,(function(e){var t,n=(0,s.wA)(),i=e.onClose,r=e.context,b=r.issueKey,w=r.currentLanguageCode,C=(0,h.f)().localizedString,A=(0,l.Yb)(b||""),I=(0,d.y)(c.Wt,{cidDateKey:A}),S=(0,s.d4)(u.Rt)((null===(t=null==I?void 0:I.info)||void 0===t?void 0:t.newspaper.isoLanguage)||"").filter(f.R),P=S.find((function(e){var t;return e.code===(null===(t=null==I?void 0:I.info)||void 0===t?void 0:t.newspaper.isoLanguage)})),x=!!w&&(null==P?void 0:P.code)!==w,T=(0,a.useCallback)((function(e){void 0===e&&(e={back:!1}),i({back:e.back})}),[i]),k=function(e){T(),n((0,_.ru)({languageCode:e===P?null:e.code}))};if(b&&S.length)return(0,o.jsx)(m.E,{menuId:e.menuId,parentMenuId:e.parentMenuId,context:e.context,position:e.position,onClose:e.onClose,header:(0,o.jsx)(g.S,{title:C("Menu.Translate"),canGoBack:!!e.parentMenuId,onClose:T}),body:(0,o.jsx)(p.f,{grouped:!0,children:(0,o.jsxs)(v.S,{children:[x&&P&&(0,o.jsx)(y.k,{text:C("Menu.OriginalLanguage",P.title),icon:"",onClick:function(){return k(P)}}),S.filter((function(e){return e.code!==w&&e.code!==(null==P?void 0:P.code)})).sort((function(e,t){return e.titlei.IK?i.IK:e=i)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[a])}))?t.splice(a--,1):(o=!1,i0&&deferred[u-1][2]>i;u--)deferred[u]=deferred[u-1];deferred[u]=[t,n,i]},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var i={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var r=2&t&&e;"object"==typeof r&&!~leafPrototypes.indexOf(r);r=getProto(r))Object.getOwnPropertyNames(r).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},__webpack_require__.d(n,i),n},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,n){return __webpack_require__.f[n](e,t),t}),[]))},__webpack_require__.u=function(e){return({1608:"libs.catalog.publications.section",2270:"app.popups.share.email.article",4364:"viewer.legacy",4570:"app.views.topstories",6324:"app.views.article",8565:"vimeo.player.external"}[e]||e)+".build.min.js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},inProgress={},dataWebpackPrefix="beclient:",__webpack_require__.l=function(e,t,n,i){if(inProgress[e])inProgress[e].push(t);else{var r,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s