;
(self.AMP=self.AMP||[]).push({m:1,v:"2601162341000",n:"amp-addthis",ev:"0.1",l:!0,f:function(t,e){(()=>{function e(t){return t?Array.prototype.slice.call(t):[]}var{isArray:i}=Array,{hasOwnProperty:r,toString:s}=Object.prototype;function n(t){return"[object Object]"===s.call(t)}function o(t){return JSON.parse(t)}function a(t){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t)}function c(t,e,i){return function(t,e){for(const i in e)t.setAttribute(i,e[i]);return t}(t.createElement(e),i)}var h,d=["Webkit","webkit","Moz","moz","ms","O","o"];function u(t,e,i,r,s){const n=function(t,e,i){if(e.startsWith("--"))return e;h||(h=Object.create(null));let r=h[e];if(!r||i){if(r=e,void 0===t[e]){const i=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(e),s=function(t,e){for(let i=0;i<d.length;i++){const r=d[i]+e;if(void 0!==t[r])return r}return""}(t,i);void 0!==t[s]&&(r=s)}i||(h[e]=r)}return r}(t.style,e,s);if(!n)return;const o=r?i+r:i;t.style.setProperty(function(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return d.some((t=>e.startsWith(t+"-")))?`-${e}`:e}(n),o)}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var l=self.__AMP_LOG;function p(t){return function(t,e){throw new Error("failed to call initLogConstructor")}()}function f(t,e,i,r,s,n,o,a,c,h,d){return t}function m(t,e,i,r,s,n,o,a,c,h,d){return(l.user||(l.user=p()),void l.user.win?l.userForEmbed||(l.userForEmbed=p()):l.user).assert(t,e,i,r,s,n,o,a,c,h,d)}function g(t,e){return w(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),e)}function b(t,e){return w(function(t){const e=v(t);return e.isSingleDoc()?e.win:e}(v(t)),e)}function v(t){return t.nodeType?(i=t,e=(i.ownerDocument||i).defaultView,g(e,"ampdoc")).getAmpDoc(t):t;var e,i}function w(t,e){f(function(t,e){const i=t.__AMP_SERVICES&&t.__AMP_SERVICES[e];return!(!i||!i.ctor)}(t,e));const i=function(t){let e=t.__AMP_SERVICES;return e||(e=t.__AMP_SERVICES={}),e}(t)[e];return i.obj||(f(i.ctor),f(i.context),i.obj=new i.ctor(i.context),f(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}var C,_,y=t=>b(t,"viewport");function I(t,e,i,r){return function(t,e,i,r){let s=t,n=i,o=t=>{try{return n(t)}catch(t){var e,i;throw null===(e=(i=self).__AMP_REPORT_ERROR)||void 0===e||e.call(i,t),t}};const a=function(){if(void 0!==C)return C;C=!1;try{const t={get capture(){return C=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return C}(),c=!(null==r||!r.capture);return s.addEventListener(e,o,a?r:c),()=>{null==s||s.removeEventListener(e,o,a?r:c),n=null,s=null,o=null}}(t,e,i,r)}function x(t){return t.data}function k(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function P(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function A(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?P(Object(i),!0).forEach((function(e){k(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function M(t,e){return _||(_=self.document.createElement("a")),function(t,e,i){return t.href="",new URL(e,t.href)}(_,t)}function D(t,e){return function(t,e,i){if(!e)return t;const r=t.split("#",2),s=r[0].split("?",2);let n=s[0]+(s[1]?`?${s[1]}&${e}`:`?${e}`);return n+=r[1]?`#${r[1]}`:"",n}(t,function(t){const e=[];for(const o in t){let a=t[o];if(null!=a){a=i(n=a)?n:[n];for(let t=0;t<a.length;t++)e.push((r=o,s=a[t],`${encodeURIComponent(r)}=${encodeURIComponent(s)}`))}}var r,s,n;return e.join("&")}(e))}var O="addthis.amp.configuration",j="addthis.share",S="https://s7.addthis.com",T="https://m.addthis.com",$="https://m.addthisedge.com",R="AddThis Website Tools",E=["url","title","media","description","email_template","email_vars","passthrough","url_transforms"],N=["services_exclude","services_compact","services_expanded","services_custom","ui_click","ui_disable","ui_delay","ui_hover_direction","ui_language","ui_offset_top","ui_offset_left","ui_tabindex","track_addressbar","track_clickback","ga_property","ga_social"],z=/[A-Z]/gi,F=/[^a-zA-Z]/g,q=/\s/g,V=/#iframe$/,L="Pxltr Frame",J=(t,e)=>{const i=e.win.document,r=c(i,"amp-pixel",{"layout":"nodisplay","referrerpolicy":"no-referrer","src":t});i.body.appendChild(r)},W=t=>{const{ampDoc:e,endpoint:i}=t,r=function(t){const e={};if(null==t)return e;const i="string"==typeof t?t:JSON.stringify(t);try{const t=o(i);if(n(t))for(const i in t)e[i]=t[i]}catch(t){}return e}(x(t)),s=D(i,r);var a;(a=e.win,g(a,"xhr")).fetchJson(s,{mode:"cors",method:"GET",ampCors:!1,credentials:"include"}).then((t=>t.json())).then((t=>{const{pixels:i=[]}=t;i.length>0&&((t,e)=>{const{ampDoc:i,sid:r}=e,s=(t=>{const e=t.map((t=>{const{delay:e}=t;return A(A({},t),{},{delay:Array.isArray(e)&&e.length?e:[0]})})).map((t=>t.delay.map((e=>({delay:e,pixels:[t]}))))).reduce(((t,e)=>t.concat(e)),[]).reduce(((t,e)=>{const{delay:i,pixels:r}=e;return t[i]||(t[i]=[]),t[i]=t[i].concat(r),t}),{});return Object.keys(e).map((t=>({delay:Number(t),pixels:e[t]})))})(t);s.forEach((t=>{const{delay:e,pixels:s}=t;setTimeout((()=>{const t=s.map((t=>(((t,e)=>{const i=V.test(t);if(-1!==t.indexOf("//")){if(i){const i=(t=>M(t).host.split(".").concat(L.toLowerCase().replace(/\s/,"_")))(t);return((t,e,i)=>{const{name:r,title:s}=i,n=e.win.document,o=c(n,"iframe",{"frameborder":0,"width":0,"height":0,"name":r,"title":s,"src":t});var a,h;a=o,void 0===(h=!1)&&(h=a.hasAttribute("hidden")),h?a.removeAttribute("hidden"):a.setAttribute("hidden",""),function(t,e){for(const i in e)u(t,i,e[i])}(o,{position:"absolute",clip:"rect(0px 0px 0px 0px)"}),n.body.appendChild(o)})(t,e,{name:i,title:L})}J(t,e)}})(t.url,i),t.id))),n={"delay":`${e}`,"ids":t.join("-"),"sid":r},o=D(`${$}/live/prender`,n);i.win.navigator.sendBeacon?i.win.navigator.sendBeacon(o,"{}"):J(o,i)}),1e3*e)}))})(i,{sid:r.sid,ampDoc:e})}),(()=>{}))},U=/^[0-9a-f]{16}$/,H=4294967295,Z=Date.now(),B=(Z/1e3&H).toString(16)+("00000000"+Math.floor(Math.random()*(H+1)).toString(16)).slice(-8),G=()=>B,K=["backgroundColor","borderRadius","counterColor","counts","countsFontSize","desktopPosition","elements","hideDevice","hideEmailSharingConfirmation","hideLabel","iconColor","label","mobilePosition","numPreferredServices","offset","originalServices","postShareFollowMsg","postShareRecommendedMsg","postShareTitle","responsive","shareCountThreshold","size","style","textColor","thankyou","titleFontSize","__hideOnHomepage","originalServices","services"],Q=t=>t.head.querySelectorAll("meta"),X=t=>({name:(t.getAttribute("property")||t.name||"").toLowerCase(),content:t.content||""}),Y=t=>t.reduce(((t,e)=>(t[(t=>t.replace(z,(t=>{const e=t.charCodeAt(0),i=e<=90?90:122;return String.fromCharCode(i>=e+13?e+13:e-13)})))(e)]=1,t)),{}),tt=/^(?:q|search|bs|wd|p|kw|keyword|query|qry|querytext|text|searchcriteria|searchstring|searchtext|sp_q)=(.*)/i,et=/ws\/results\/(web|images|video|news)/,it=/google.*\/(search|url|aclk|m\?)/,rt=/aol.*\/aol/,st=".com/",nt=Y(["cbea","cbeab","kkk","zvys","gvgf","shpxf","chfflyvcf","pernzcvr","svfgvat","wvmm","fcybbtr","flovna"]),ot=Y(["phz"]),at=(t="",e=!1)=>{let i=0;const r=t.toLowerCase().split(F);for(let t=0;t<r.length;t++){const s=r[t];if(nt[s]||!e&&ot[s]){i|=1;break}}return i},ct=(t,e)=>{let i=at(t.title)|at(t.hostname,!0);return e.forEach((t=>{const{content:e,name:r}=X(t);"description"!==r&&"keywords"!==r||(i|=at(e)),"rating"===r&&(i|=((t="")=>{let e=0;return"mature"!==(t=t.toLowerCase().replace(q,""))&&"adult"!==t&&"rta-5042-1996-1400-1577-rta"!==t||(e|=1),e})(e))})),i},ht=(t,e,i)=>{let r=0;return t&&e&&(e.host===i.host?r|=2:r|=4,((t="")=>{const e=t.toLowerCase();return!!e.match(et)||void 0!==(t=>{const e=t.split("?").pop().toLowerCase().split("&");let i;for(let t=0;t<e.length;t++)if(i=tt.exec(e[t]),i)return i[1]})(t)&&-1===e.indexOf("addthis")&&(it.test(e)||rt.test(e)||e.indexOf("/pagead/aclk?")>-1||e.indexOf(st+"url")>-1||e.indexOf(st+"l.php")>-1||e.indexOf("/search?")>-1||e.indexOf("/search/?")>-1||e.indexOf("search?")>-1||e.indexOf("yandex.ru/clck/jsredir?")>-1||e.indexOf(st+"search")>-1||e.indexOf(".org/search")>-1||e.indexOf("/search.html?")>-1||e.indexOf("search/results.")>-1||e.indexOf(st+"s?bs")>-1||e.indexOf(st+"s?wd")>-1||e.indexOf(st+"mb?search")>-1||e.indexOf(st+"mvc/search")>-1||e.indexOf(st+"web")>-1||e.indexOf("hotbot"+st)>-1)})(t)&&(r|=1)),r},dt=(t,e)=>!!(t.getElementById("product")||(t.getElementsByClassName("product")||[]).length>0||t.getElementById("productDescription")||t.getElementById("page-product")||t.getElementById("vm_cart_products")||window.Virtuemart)||"product"===e.reduce(((t,e)=>{const{content:i,name:r}=X(e);return r.startsWith("og:")&&(t[r.split(":").pop()]=i),t}),{}).type,ut=t=>t.filter((t=>"keywords"===X(t).name.toLowerCase())).map((t=>(t=>{const e=[],i=t.split(",");let r=0;for(let t=0;t<i.length;t++){const s=(i[t]||"").trim();if(s){if(s.length+r+1>=200)break;e.push(s),r+=s.length+1}}return e})(X(t).content))).reduce(((t,e)=>t.concat(e)),[]).join(","),lt=/^\.[a-z0-9\-_]{11}(\.[a-z0-9_]+)?$/i,pt=t=>{let e=t.split("#").pop();return e=e.split(";").shift(),lt.test(e)?e:void 0},ft=t=>{return!!pt(t)||(e=t.split("#").pop(),!!(Boolean(e&&e.match(U)&&!(t=>{const e=(t=>{let e=new Date;try{e=new Date(1e3*parseInt(t.substr(0,8),16))}catch(t){}return e})(t);return e.setDate(e.getDate()-1),(t=>{const e=new Date;if(t.getFullYear()<e.getFullYear())return!1;const i=t.getFullYear()>e.getFullYear(),r=t.getFullYear()===e.getFullYear(),s=t.getMonth()>e.getMonth(),n=t.getMonth()===e.getMonth(),o=t.getDate()>e.getDate();return i||r&&s||r&&n&&o})(e)})(e))||t.indexOf("#at_pco=")>-1));var e},mt=t=>{const e=pt(t);return e?e.split(".").slice(1).shift():void 0},gt=/\.gov|\.mil/;function bt(t){const{hasProductCode:e,hasPubId:i,hasWidgetId:r}=function(t){const{productCode:e,pubId:i,widgetId:r}=t;return{hasPubId:vt(i),hasWidgetId:wt(r),hasProductCode:"string"==typeof e&&("shin"===e||"shfs"===e)}}(t);if(i){if(r&&!e)return 1;if(!r&&e)return 2}else if(!r&&e)return 3;return-1}function vt(t){return"string"==typeof t&&t.length>0}function wt(t){return"string"==typeof t&&4===t.length}function Ct(t){return"shin"===t||"shfs"===t}var _t=/[0-9\-].*/,yt=new class{constructor(){this.g7={},this.v7=[],this.w7=null}receiveConfiguration(t){const e=t.config,i=t.pubId,r=t.source;if(!this.v7.some((t=>t.contentWindow===r)))return;const s=this.g7[i];s.config=e,s.requestStatus=2;const{iframeData:n}=s;n.forEach((t=>{const{atConfig:e,containerClassName:r,iframe:s,productCode:n,shareConfig:o,widgetId:a}=t;this.C7({iframe:s,widgetId:a,pubId:i,shareConfig:o,atConfig:e,productCode:n,containerClassName:r})}))}C7(t){const{atConfig:e,containerClassName:i,iframe:r,productCode:s,pubId:n,shareConfig:o,widgetId:a}=t,c=this.g7[n],{config:h,requestStatus:d}=c,u={"event":O,"shareConfig":o,"atConfig":e,"pubId":n,"widgetId":a,"productCode":s,"containerClassName":i,"configRequestStatus":d,"dashboardConfig":h};if(h&&h.widgets&&Object.keys(h.widgets).length>0)switch(bt({pubId:n,widgetId:a,productCode:s})){case 1:a&&h.widgets[a]&&this.w7.record(h.widgets[a]);break;case 2:s&&this.w7.recordProductCode(s);break;case 3:return void(s&&this.w7.recordProductCode(s));default:return}r.contentWindow.postMessage(JSON.stringify(u),S),0===d&&(this.v7.push(r),c.requestStatus=1)}register(t){const{activeToolsMonitor:e,atConfig:i,containerClassName:r,iframe:s,iframeLoadPromise:n,productCode:o,pubId:a,shareConfig:c,widgetId:h}=t;this.w7||(this.w7=e),this.g7[a]||(this.g7[a]={});const d=this.g7[a];d.requestStatus||(d.requestStatus=0),d.iframeData||(d.iframeData=[]),d.iframeData.push({iframe:s,shareConfig:c,atConfig:i,widgetId:h,productCode:o,containerClassName:r}),n.then((()=>this.C7({iframe:s,pubId:a,widgetId:h,shareConfig:c,atConfig:i,productCode:o,containerClassName:r})))}unregister(t){const{iframe:e,pubId:i}=t;this.v7=this.v7.filter((t=>t!==e));const r=this.g7[i]||{};r.iframeData&&(r.iframeData=r.iframeData.filter((t=>t.iframe!==e)))}},It=new class{constructor(){this.Il=null,this._7=0,this.y7=0,this.I7=0}startForDoc(t){this.Il=y(t),this._7=this.Il.getHeight()||0,this.y7=this.Il.getScrollTop()||0,this.I7=this.y7+this._7,this.Il.onScroll(this.listener.bind(this))}listener(){const t=this.Il.getScrollTop()||0;this.y7=Math.max(this.y7,t),this.I7=Math.max(this.I7,(this.Il.getHeight()||0)+t)}getInitialViewHeight(){return this._7}getScrollHeight(){return this.I7-this.y7}},xt=new class{constructor(){this.x7=0,this.zi=null}startForDoc(t){this.zi=t,this.zi.onVisibilityChanged(this.listener.bind(this))}listener(){if(!this.zi.isVisible()){const t=this.zi.getLastVisibleTime()||0;this.x7+=Date.now()-t}}getDwellTime(){return this.x7}},kt=new class{constructor(){this.k7={},this.P7=0,this.A7=null,this.i=null}startForDoc(t){this.i=t.win,this.A7=this.i.document.activeElement,I(this.i,"blur",this.M7.bind(this)),I(this.i,"click",this.D7.bind(this))}M7(){const{activeElement:t}=this.i.document;if(!t)return;const e=t!==this.A7;"IFRAME"===t.tagName&&e&&this.O7(t),this.A7=t}D7(){this.P7++,this.A7=this.i.document.activeElement}O7(t){const e=t.src.split("://").pop();this.k7[e]?this.k7[e]++:this.k7[e]=1}getPageClicks(){return this.P7}getIframeClickString(){return Object.keys(this.k7).map((t=>`${t}|${this.k7[t]}`)).join(",")}},Pt=new class{constructor(){this.j7={}}record(t){const e=(t.id||t.pco||"").replace(_t,"");e&&!this.j7[e]&&z.test(e)&&(this.j7[e]=e)}recordProductCode(t){const e=t;e&&!this.j7[e]&&z.test(e)&&(this.j7[e]=e)}getActivePcos(){return Object.keys(this.j7)}},At=!0,Mt=class extends t.BaseElement{constructor(t){super(t),this.bv=null,this.S7="",this.iy="",this.T7="",this.EU="",this.R7="",this.Fj="",this.E7=null,this.N7=null,this.z7="",this.tO=-1,this.F7=""}buildCallback(){const t=this.element.getAttribute("data-pub-id")||"",i=this.element.getAttribute("data-widget-id")||"",r=this.element.getAttribute("data-product-code")||"";this.tO=bt({pubId:t,widgetId:i,productCode:r}),-1===this.tO&&(vt(t)?Ct(r)||wt(i)?Ct(r)&&wt(i)&&m(r,"Only widget id or product code is required <amp-addthis> %s",this.element):m(i,"Widget id or product code is required for <amp-addthis> %s",this.element):m(t,"The data-pub-id attribute is required for <amp-addthis> %s",this.element)),this.F7=this.element.getAttribute("data-class-name")||"",this.S7=t,this.iy=3===this.tO?function(t){const e={};K.forEach((i=>{const r=t.element.getAttribute(`data-attr-${i}`);"string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r||(e[String(i)]=r)}));const i=JSON.stringify(e);return"{}"===i?"":i}(this):i,this.T7=r,"shfs"===this.T7&&this.element.setAttribute("data-widget-type","floating");const s=this.getAmpDoc();if(this.EU=this.element.getAttribute("data-canonical-url")||(n=this.element,b(n,"documentInfo").get()).canonicalUrl||s.getUrl(),this.R7=this.element.getAttribute("data-canonical-title")||s.win.document.title,this.z7=this.element.getAttribute("data-widget-type"),this.E7=this.q7(),this.N7=this.V7(s),At){At=!1;const t=(t=>b(t,"viewer"))(s),i=M(this.EU);if(s.whenFirstVisible().then((()=>t.getReferrerUrl())).then((t=>{this.Fj=t,function(t){const i=function(t){const{ampDoc:i,atConfig:r,loc:s,pubId:n,referrer:o,title:a}=t,{hash:c,host:h,hostname:d,href:u,pathname:l,port:p,protocol:f,search:m}=s,g={du:u.split("#").shift(),hostname:d,href:u,referrer:o,search:m,pathname:l,title:a,hash:c,protocol:f,port:p},b=o?M(o):{},v=r.ui_language.split("-"),w=v[0],C=v.slice(1),_=(t=>{const e=pt(t);return e?e.split(".").slice(2).shift():void 0})(g.du),{win:y}=i,I=e(Q(y.document)),x=y.navigator.doNotTrack&&"unspecified"!==y.navigator.doNotTrack&&"no"!==y.navigator.doNotTrack&&"0"!==y.navigator.doNotTrack;return{"amp":1,"bl":0|(!1!==r.use_cookies?1:0)|(!0===r.track_textcopy?2:0)|(!0===r.track_addressbar?4:0),"cb":ct(g,I),"colc":Date.now(),"ct":!1!==r.track_clickback&&!1!==r.track_linkback?1:0,"dc":1,"dp":h,"dr":h===b.host?void 0:b.host,"fcu":_?"":mt(g.du),"fp":M((k=g.du,ft(k)?k.split("#").shift():k)).pathname,"fr":b.pathname||"","gen":100,"ln":w,"lnlc":C,"mk":ut(I),"of":x?4:gt.test(d)?1:0,"pd":dt(y.document,I)?1:0,"pub":n,"rb":ht(o,b,M(g.du)),"sid":G(),"skipb":1,"sr":_};var k}(t);W({ampDoc:t.ampDoc,endpoint:`${T}/live/red_lojson/300lo.json`,data:i})}({loc:i,title:this.R7,pubId:this.S7,atConfig:this.N7,referrer:t,ampDoc:s}),xt.startForDoc(s),It.startForDoc(s),kt.startForDoc(s)})),this.L7({ampDoc:s,loc:i,pubId:this.S7}),"messages"===this.element.getAttribute("data-widget-type")){const t=c(this.win.document,"button",{"class":"i-amphtml-addthis-close"});t.onclick=()=>a(this.element),this.element.appendChild(t)}}var n}preconnectCallback(t){const e=g(this.win,"preconnect"),i=this.getAmpDoc();e.url(i,S,t),e.url(i,T,t),e.url(i,$,t),e.url(i,"https://api-public.addthis.com",t),e.url(i,"https://cache.addthiscdn.com",t),e.url(i,"https://su.addthis.com",t)}isAlwaysFixed(){return"floating"===this.z7}createPlaceholderCallback(){const t=c(this.win.document,"div",{"placeholder":""});u(t,"background-color","#fff");const e=c(this.win.document,"amp-img",{"src":"https://cache.addthiscdn.com/icons/v3/thumbs/32x32/addthis.png","layout":"fixed","width":"32","height":"32","referrerpolicy":"origin","alt":R});return t.appendChild(e),t}layoutCallback(){const t=c(this.element.ownerDocument,"iframe",{"frameborder":0,"title":R,"src":`${S}/dc/amp-addthis.html?_amp_=2601162341000`,"id":this.iy,"pco":this.T7,"containerClassName":this.F7}),e=this.loadPromise(t);return t.classList.add("i-amphtml-fill-content"),this.element.appendChild(t),this.bv=t,yt.register({pubId:this.S7,widgetId:this.iy,productCode:this.T7,shareConfig:this.E7,atConfig:this.N7,containerClassName:this.F7,iframe:t,iframeLoadPromise:e,activeToolsMonitor:Pt}),e}isLayoutSupported(t){return function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)}unlayoutCallback(){return this.bv&&(a(this.bv),yt.unregister({pubId:this.S7,iframe:this.bv}),this.bv=null),!0}q7(){const t={};return E.map((e=>{const i=this.element.getAttribute(`data-${e}`);i?t[e]=i:"url"===e?t[e]=this.getAmpDoc().getUrl():"title"===e?t[e]=this.getAmpDoc().win.document.title:"media"===e&&(t[e]=(t=>{const e=this.getAmpDoc().win.document.head.querySelector('meta[property="og:image"]');return e?e.content:""})())})),t}V7(t){return N.reduce(((e,i)=>{const r=this.element.getAttribute(`data-${i}`);if(r)e[i]=r;else{const{win:r}=t;"ui_language"===i&&(e[i]=r.document.documentElement.lang||r.navigator.language||r.navigator.userLanguage||"en")}return e}),{})}L7(t){const{ampDoc:i,loc:r,pubId:s}=t;I(i.win,"pagehide",(()=>(t=>{const e=(t=>{const{ampDoc:e,loc:i,monitors:r,pubId:s}=t,{activeToolsMonitor:n,clickMonitor:o,dwellMonitor:a,scrollMonitor:c}=r,{hash:h,host:d,pathname:u}=i,l=y(e);return{al:n.getActivePcos().join(",")||void 0,amp:1,dc:1,dp:d,dt:a.getDwellTime(),fp:u.replace(h,""),ict:o.getIframeClickString(),ivh:c.getInitialViewHeight(),pct:o.getPageClicks(),pfm:e.win.navigator.sendBeacon?0:1,ph:l.getHeight(),pub:s,sh:c.getScrollHeight(),sid:G()}})(t),i={"al":e.al,"amp":e.amp,"dc":e.dc,"dp":e.dp,"dt":e.dt,"fp":e.fp,"ict":e.ict,"ivh":e.ivh,"pct":e.pct,"pfm":e.pfm,"ph":e.ph,"pub":e.pub,"sh":e.sh,"sid":e.sid},r=D(`${T}/live/red_lojson/100eng.json`,i),{ampDoc:s}=t;s.win.navigator.sendBeacon?s.win.navigator.sendBeacon(r,"{}"):J(r,s)})({monitors:{dwellMonitor:xt,scrollMonitor:It,clickMonitor:kt,activeToolsMonitor:Pt},ampDoc:i,loc:r,pubId:s})));const a=new class{constructor(){this.Wt={}}on(t,e){this.Wt[t]||(this.Wt[t]=[]),this.Wt[t].push(e)}vC(t,e){this.Wt[t]&&this.Wt[t].forEach((t=>t(e)))}J7(t){const e=x(t);return n(e)?e:"string"==typeof e&&e.startsWith("{")?function(t,e){try{return o(t)}catch(t){return null}}(e):void 0}handleAddThisMessage(t){if(t.origin!==S||!x(t))return;const e=this.J7(t)||{};switch(e.event){case O:this.vC(O,A(A({},e),{},{"source":t.source}));break;case j:this.vC(j,e)}}},c=a.handleAddThisMessage.bind(a);I(i.win,"message",c),a.on(j,(t=>(t=>{const i=(t=>{const{ampDoc:i,data:r,loc:s,pubId:n,referrer:o,title:a}=t,{hash:c,hostname:h,href:d,pathname:u,port:l,protocol:p,search:f}=s,m={du:d.split("#").shift(),hostname:h,href:d,referrer:o,search:f,pathname:u,title:a,hash:c,protocol:p,port:l},g=o?M(o):{},{win:b}=i,v=e(Q(b.document));return{amp:1,cb:ct(m,v),dc:1,dest:r.service,gen:300,mk:ut(v),pub:n,rb:ht(o,g,M(m.du)),sid:G(),url:r.url}})(t);W({ampDoc:t.ampDoc,endpoint:`${T}/live/red_pjson`,data:i})})({data:t,loc:r,pubId:s,ampDoc:i,title:this.R7,atConfig:this.N7,referrer:this.Fj}))),a.on(O,yt.receiveConfiguration.bind(yt))}};t.registerElement("amp-addthis",Mt,'amp-addthis[data-widget-type=messages]{position:fixed!important;width:100%!important;top:0}amp-addthis .i-amphtml-addthis-close{right:10px!important;top:10px!important;width:32px!important;height:32px!important;opacity:0.5!important;float:right!important;cursor:pointer!important;position:relative!important;z-index:1!important;background-color:transparent!important;border:none!important}amp-addthis .i-amphtml-addthis-close:hover{opacity:1!important}.i-amphtml-addthis-close:after,amp-addthis .i-amphtml-addthis-close:before{position:absolute;content:" ";height:20px;width:2px;background-color:#fff}amp-addthis .i-amphtml-addthis-close:before{transform:rotate(45deg)}amp-addthis .i-amphtml-addthis-close:after{transform:rotate(-45deg)}@media only screen and (max-width:979px){amp-addthis[data-widget-type=floating]{position:fixed!important;width:100%!important;height:50px;bottom:0}}@media only screen and (min-width:979px){amp-addthis[data-widget-type=floating]{position:fixed!important;width:70px!important;height:320px!important;top:200px}}\n/*# sourceURL=/extensions/amp-addthis/0.1/amp-addthis.css*/')})();
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
//# sourceMappingURL=amp-addthis-0.1.mjs.map