/*
 lazysizes - v5.1.2  lazysizes - v5.3.2 */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(d){return d.raw=d};$jscomp.createTemplateTagFirstArgWithRaw=function(d,a){d.raw=a;return d};$jscomp.arrayIteratorImpl=function(d){var a=0;return function(){return a<d.length?{done:!1,value:d[a++]}:{done:!0}}};$jscomp.arrayIterator=function(d){return{next:$jscomp.arrayIteratorImpl(d)}};$jscomp.makeIterator=function(d){var a="undefined"!=typeof Symbol&&Symbol.iterator&&d[Symbol.iterator];return a?a.call(d):$jscomp.arrayIterator(d)};
!function(d,a){a=a(d,d.document);d.lazySizes=a;"object"==typeof module&&module.exports&&(module.exports=a)}("undefined"!=typeof window?window:{},function(d,a){var b,c;if(function(){var G,P={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,
throttleDelay:125};c=d.lazySizesConfig||d.lazysizesConfig||{};for(G in P)G in c||(c[G]=P[G])}(),!a||!a.getElementsByClassName)return{init:function(){},cfg:c,noSupport:!0};var e=a.documentElement,f=d.Date,g=d.HTMLPictureElement,h=d.addEventListener,k=d.setTimeout,m=d.requestAnimationFrame||k,n=d.requestIdleCallback,t=/^picture$/i,u=["load","error","lazyincluded","_lazyloaded"],x={},y=Array.prototype.forEach,B=function(G,P){return x[P]||(x[P]=new RegExp("(\\s|^)"+P+"(\\s|$)")),x[P].test(G.getAttribute("class")||
"")&&x[P]},K=function(G,P){B(G,P)||G.setAttribute("class",(G.getAttribute("class")||"").trim()+" "+P)},E=function(G,P){var Y;(Y=B(G,P))&&G.setAttribute("class",(G.getAttribute("class")||"").replace(Y," "))},A=function(G,P,Y){var ea=Y?"addEventListener":"removeEventListener";Y&&A(G,P);u.forEach(function(S){G[ea](S,P)})},N=function(G,P,Y,ea,S){var na=a.createEvent("Event");return Y||(Y={}),Y.instance=b,na.initEvent(P,!ea,!S),na.detail=Y,G.dispatchEvent(na),na},M=function(G,P){var Y;!g&&(Y=d.picturefill||
c.pf)?(P&&P.src&&!G.getAttribute("srcset")&&G.setAttribute("srcset",P.src),Y({reevaluate:!0,elements:[G]})):P&&P.src&&(G.src=P.src)},J=function(G,P,Y){for(Y=Y||G.offsetWidth;Y<c.minSize&&P&&!G._lazysizesWidth;)Y=P.offsetWidth,P=P.parentNode;return Y},H=function(){var G,P,Y=[],ea=[],S=Y,na=function(){var ma=S;S=Y.length?ea:Y;G=!0;for(P=!1;ma.length;)ma.shift()();G=!1},ua=function(ma,z){G&&!z?ma.apply(this,arguments):(S.push(ma),P||(P=!0,(a.hidden?k:m)(na)))};return ua._lsFlush=na,ua}(),ba=function(G,
P){return P?function(){H(G)}:function(){var Y=this,ea=arguments;H(function(){G.apply(Y,ea)})}},W=function(G){var P,Y=0,ea=c.throttleDelay,S=c.ricTimeout,na=function(){P=!1;Y=f.now();G()},ua=n&&49<S?function(){n(na,{timeout:S});S!==c.ricTimeout&&(S=c.ricTimeout)}:ba(function(){k(na)},!0);return function(ma){var z;(ma=!0===ma)&&(S=33);P||(P=!0,z=ea-(f.now()-Y),0>z&&(z=0),ma||9>z?ua():k(ua,z))}},V=function(G){var P,Y,ea=function(){P=null;G()},S=function(){var na=f.now()-Y;99>na?k(S,99-na):(n||ea)(ea)};
return function(){Y=f.now();P||(P=k(S,99))}},ca=function(){var G,P,Y,ea,S,na,ua,ma,z,T,F,Q,ia=/^img$/i,R=/^iframe$/i,Z="onscroll"in d&&!/(gle|ing)bot/.test(navigator.userAgent),za=0,la=0,Ia=-1,Ja=function(ra){la--;(!ra||0>la||!ra.target)&&(la=0)},Da=function(ra){return null==Q&&(Q="hidden"==(getComputedStyle(a.body,null)||{}).visibility),Q||!("hidden"==(getComputedStyle(ra.parentNode,null)||{}).visibility&&"hidden"==(getComputedStyle(ra,null)||{}).visibility)},fa=function(){var ra,Qa,jb,gb,wb,Za,
xb,Gb,Pb,fc,kb=b.elements;if((ea=c.loadMode)&&8>la&&(ra=kb.length)){var Va=0;for(Ia++;Va<ra;Va++)if(kb[Va]&&!kb[Va]._lazyRace)if(!Z||b.prematureUnveil&&b.prematureUnveil(kb[Va]))gc(kb[Va]);else{(Za=kb[Va].getAttribute("data-expand"))&&(gb=1*Za)||(gb=za);Gb||(Gb=!c.expand||1>c.expand?500<e.clientHeight&&500<e.clientWidth?500:370:c.expand,b._defEx=Gb,Pb=Gb*c.expFactor,fc=c.hFac,Q=null,za<Pb&&1>la&&2<Ia&&2<ea&&!a.hidden?(za=Pb,Ia=0):za=1<ea&&1<Ia&&6>la?Gb:0);xb!==gb&&(na=innerWidth+gb*fc,ua=innerHeight+
gb,wb=-1*gb,xb=gb);var qb=kb[Va].getBoundingClientRect();if((qb=(F=qb.bottom)>=wb&&(ma=qb.top)<=ua&&(T=qb.right)>=wb*fc&&(z=qb.left)<=na&&(F||T||z||ma)&&(c.loadHidden||Da(kb[Va])))&&!(qb=P&&3>la&&!Za&&(3>ea||4>Ia))){qb=void 0;var yb=kb[Va],xc=gb,Vb=yb;yb=Da(yb);ma-=xc;F+=xc;z-=xc;for(T+=xc;yb&&(Vb=Vb.offsetParent)&&Vb!=a.body&&Vb!=e;)(yb=0<((getComputedStyle(Vb,null)||{}).opacity||1))&&"visible"!=(getComputedStyle(Vb,null)||{}).overflow&&(qb=Vb.getBoundingClientRect(),yb=T>qb.left&&z<qb.right&&F>
qb.top-1&&ma<qb.bottom+1);qb=yb}if(qb){if(gc(kb[Va]),jb=!0,9<la)break}else!jb&&P&&!Qa&&4>la&&4>Ia&&2<ea&&(G[0]||c.preloadAfterLoad)&&(G[0]||!Za&&(F||T||z||ma||"auto"!=kb[Va].getAttribute(c.sizesAttr)))&&(Qa=G[0]||kb[Va])}Qa&&!jb&&gc(Qa)}},Ga=W(fa),zb=function(ra){var Qa=ra.target;if(Qa._lazyCache)return void delete Qa._lazyCache;Ja(ra);K(Qa,c.loadedClass);E(Qa,c.loadingClass);A(Qa,rb);N(Qa,"lazyloaded")},hb=ba(zb),rb=function(ra){hb({target:ra.target})},Qb=function(ra,Qa){try{ra.contentWindow.location.replace(Qa)}catch(jb){ra.src=
Qa}},Ab=function(ra){var Qa,jb=ra.getAttribute(c.srcsetAttr);(Qa=c.customMedia[ra.getAttribute("data-media")||ra.getAttribute("media")])&&ra.setAttribute("media",Qa);jb&&ra.setAttribute("srcset",jb)},sb=ba(function(ra,Qa,jb,gb,wb){var Za,xb,Gb,Pb,fc,kb;(fc=N(ra,"lazybeforeunveil",Qa)).defaultPrevented||(gb&&(jb?K(ra,c.autosizesClass):ra.setAttribute("sizes",gb)),xb=ra.getAttribute(c.srcsetAttr),Za=ra.getAttribute(c.srcAttr),wb&&(Gb=ra.parentNode,Pb=Gb&&t.test(Gb.nodeName||"")),kb=Qa.firesLoad||"src"in
ra&&(xb||Za||Pb),fc={target:ra},K(ra,c.loadingClass),kb&&(clearTimeout(Y),Y=k(Ja,2500),A(ra,rb,!0)),Pb&&y.call(Gb.getElementsByTagName("source"),Ab),xb?ra.setAttribute("srcset",xb):Za&&!Pb&&(R.test(ra.nodeName)?Qb(ra,Za):ra.src=Za),wb&&(xb||Pb)&&M(ra,{src:Za}));ra._lazyRace&&delete ra._lazyRace;E(ra,c.lazyClass);H(function(){var Va=ra.complete&&1<ra.naturalWidth;kb&&!Va||(Va&&K(ra,"ls-is-cached"),zb(fc),ra._lazyCache=!0,k(function(){"_lazyCache"in ra&&delete ra._lazyCache},9));"lazy"==ra.loading&&
la--},!0)}),gc=function(ra){if(!ra._lazyRace){var Qa,jb=ia.test(ra.nodeName),gb=jb&&(ra.getAttribute(c.sizesAttr)||ra.getAttribute("sizes")),wb="auto"==gb;(!wb&&P||!jb||!ra.getAttribute("src")&&!ra.srcset||ra.complete||B(ra,c.errorClass)||!B(ra,c.lazyClass))&&(Qa=N(ra,"lazyunveilread").detail,wb&&aa.updateElem(ra,!0,ra.offsetWidth),ra._lazyRace=!0,la++,sb(ra,Qa,wb,gb,jb))}},mc=V(function(){c.loadMode=3;Ga()}),jd=function(){3==c.loadMode&&(c.loadMode=2);mc()},Ic=function(){if(!P){if(999>f.now()-S)return void k(Ic,
999);P=!0;c.loadMode=3;Ga();h("scroll",jd,!0)}};return{_:function(){S=f.now();b.elements=a.getElementsByClassName(c.lazyClass);G=a.getElementsByClassName(c.lazyClass+" "+c.preloadClass);h("scroll",Ga,!0);h("resize",Ga,!0);d.MutationObserver?(new MutationObserver(Ga)).observe(e,{childList:!0,subtree:!0,attributes:!0}):(e.addEventListener("DOMNodeInserted",Ga,!0),e.addEventListener("DOMAttrModified",Ga,!0),setInterval(Ga,999));h("hashchange",Ga,!0);"focus mouseover click load transitionend animationend".split(" ").forEach(function(ra){a.addEventListener(ra,
Ga,!0)});/d$|^c/.test(a.readyState)?Ic():(h("load",Ic),a.addEventListener("DOMContentLoaded",Ga),k(Ic,2E4));b.elements.length?(fa(),H._lsFlush()):Ga()},checkElems:Ga,unveil:gc,_aLSL:jd}}(),aa=function(){var G,P=ba(function(S,na,ua,ma){var z;if(S._lazysizesWidth=ma,ma+="px",S.setAttribute("sizes",ma),t.test(na.nodeName||"")){na=na.getElementsByTagName("source");var T=0;for(z=na.length;T<z;T++)na[T].setAttribute("sizes",ma)}ua.detail.dataAttr||M(S,ua.detail)}),Y=function(S,na,ua){var ma,z=S.parentNode;
z&&(ua=J(S,z,ua),ma=N(S,"lazybeforesizes",{width:ua,dataAttr:!!na}),ma.defaultPrevented||(ua=ma.detail.width)&&ua!==S._lazysizesWidth&&P(S,z,ma,ua))},ea=V(function(){var S,na=G.length;if(na)for(S=0;S<na;S++)Y(G[S])});return{_:function(){G=a.getElementsByClassName(c.autosizesClass);h("resize",ea)},checkElems:ea,updateElem:Y}}(),ja=function(){!ja.i&&a.getElementsByClassName&&(ja.i=!0,aa._(),ca._())};return k(function(){c.init&&ja()}),b={cfg:c,autoSizer:aa,loader:ca,init:ja,uP:M,aC:K,rC:E,hC:B,fire:N,
gW:J,rAF:H}});
!function(d,a){var b=function(){a(d.lazySizes);d.removeEventListener("lazyunveilread",b,!0)};a=a.bind(null,d,d.document);"object"==typeof module&&module.exports?a(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],a):d.lazySizes?b():d.addEventListener("lazyunveilread",b,!0)}(window,function(d,a,b){function c(h,k,m){var n,t;g[h]||(n=a.createElement(k?"link":"script"),t=a.getElementsByTagName("script")[0],k?(n.rel="stylesheet",n.href=h):(n.onload=function(){n.onerror=null;
n.onload=null;m()},n.onerror=n.onload,n.src=h),g[h]=!0,g[n.src||n.href]=!0,t.parentNode.insertBefore(n,t))}var e,f,g={};a.addEventListener&&(e=function(h,k){var m=a.createElement("img");m.onload=function(){m.onload=null;m=m.onerror=null;k()};m.onerror=m.onload;m.src=h;m&&m.complete&&m.onload&&m.onload()},addEventListener("lazybeforeunveil",function(h){var k,m,n;if(h.detail.instance==b&&!h.defaultPrevented){var t=h.target;if("none"==t.preload&&(t.preload=t.getAttribute("data-preload")||"auto"),null!=
t.getAttribute("data-autoplay"))if(t.getAttribute("data-expand")&&!t.autoplay)try{t.play()}catch(u){}else requestAnimationFrame(function(){t.setAttribute("data-expand","-10");b.aC(t,b.cfg.lazyClass)});(k=t.getAttribute("data-link"))&&c(k,!0);(k=t.getAttribute("data-script"))&&(h.detail.firesLoad=!0,c(k,null,function(){h.detail.firesLoad=!1;b.fire(t,"_lazyloaded",{},!0,!0)}));(k=t.getAttribute("data-require"))&&(b.cfg.requireJs?b.cfg.requireJs([k]):c(k));(m=t.getAttribute("data-bg"))&&(h.detail.firesLoad=
!0,e(m,function(){t.style.backgroundImage="url("+(f.test(m)?JSON.stringify(m):m)+")";h.detail.firesLoad=!1;b.fire(t,"_lazyloaded",{},!0,!0)}));(n=t.getAttribute("data-poster"))&&(h.detail.firesLoad=!0,e(n,function(){t.poster=n;h.detail.firesLoad=!1;b.fire(t,"_lazyloaded",{},!0,!0)}))}},!(f=/\(|\)|\s|'/)))});
var tns=function(){function d(){for(var z,T,F,Q=arguments[0]||{},ia=1,R=arguments.length;ia<R;ia++)if(null!==(z=arguments[ia]))for(T in z)F=z[T],Q!==F&&void 0!==F&&(Q[T]=F);return Q}function a(z){return 0<=["true","false"].indexOf(z)?JSON.parse(z):z}function b(z,T,F,Q){if(Q)try{z.setItem(T,F)}catch(ia){}return F}function c(){var z=window.tnsId;window.tnsId=z?z+1:1;return"tns"+window.tnsId}function e(){var z=document,T=z.body;T||(T=z.createElement("body"),T.fake=!0);return T}function f(z){var T="";
z.fake&&(T=G.style.overflow,z.style.background="",z.style.overflow=G.style.overflow="hidden",G.appendChild(z));return T}function g(z,T){z.fake&&(z.remove(),G.style.overflow=T,G.offsetHeight)}function h(){var z=document,T=e(),F=f(T);z=z.createElement("div");var Q=!1;T.appendChild(z);try{for(var ia=["calc(10px * 10)","-moz-calc(10px * 10)","-webkit-calc(10px * 10)"],R,Z=0;3>Z;Z++)if(R=ia[Z],z.style.width=R,100===z.offsetWidth){Q=R.replace("(10px * 10)","");break}}catch(za){}T.fake?g(T,F):z.remove();
return Q}function k(){var z=document,T=e(),F=f(T),Q=z.createElement("div");z=z.createElement("div");var ia="";Q.className="tns-t-subp2";z.className="tns-t-ct";for(var R=0;70>R;R++)ia+="\x3cdiv\x3e\x3c/div\x3e";z.innerHTML=ia;Q.appendChild(z);T.appendChild(Q);z=2>Math.abs(Q.getBoundingClientRect().left-z.children[67].getBoundingClientRect().left);T.fake?g(T,F):Q.remove();return z}function m(){var z=document,T=e(),F=f(T),Q=z.createElement("div"),ia=z.createElement("style");ia.type="text/css";Q.className=
"tns-mq-test";T.appendChild(ia);T.appendChild(Q);ia.styleSheet?ia.styleSheet.cssText="@media all and (min-width:1px){.tns-mq-test{position:absolute}}":ia.appendChild(z.createTextNode("@media all and (min-width:1px){.tns-mq-test{position:absolute}}"));z=window.getComputedStyle?window.getComputedStyle(Q).position:Q.currentStyle.position;T.fake?g(T,F):Q.remove();return"absolute"===z}function n(z){var T=document.createElement("style");z&&T.setAttribute("media",z);document.querySelector("head").appendChild(T);
return T.sheet?T.sheet:T.styleSheet}function t(z,T,F,Q){"insertRule"in z?z.insertRule(T+"{"+F+"}",Q):z.addRule(T,F,Q)}function u(z){return("insertRule"in z?z.cssRules:z.rules).length}function x(z,T,F){for(var Q=0,ia=z.length;Q<ia;Q++)T.call(F,z[Q],Q)}function y(z,T){z="undefined"!==typeof z.item||z instanceof Array?z:[z];if("[object Object]"===Object.prototype.toString.call(T))for(var F=z.length;F--;)for(var Q in T)z[F].setAttribute(Q,T[Q])}function B(z,T){z="undefined"!==typeof z.item||z instanceof
Array?z:[z];T=T instanceof Array?T:[T];for(var F=T.length,Q=z.length;Q--;)for(var ia=F;ia--;)z[Q].removeAttribute(T[ia])}function K(z){for(var T=[],F=0,Q=z.length;F<Q;F++)T.push(z[F]);return T}function E(z,T){"none"!==z.style.display&&(z.style.display="none")}function A(z,T){"none"===z.style.display&&(z.style.display="")}function N(z){if("string"===typeof z){var T=[z],F=z.charAt(0).toUpperCase()+z.substr(1);["Webkit","Moz","ms","O"].forEach(function(Z){"ms"===Z&&"transform"!==z||T.push(Z+F)});z=T}for(var Q=
document.createElement("fakeelement"),ia=0;ia<z.length;ia++){var R=z[ia];if(void 0!==Q.style[R])return R}return!1}function M(z){if(!z||!window.getComputedStyle)return!1;var T=document,F=e(),Q=f(F);T=T.createElement("p");var ia=9<z.length?"-"+z.slice(0,-9).toLowerCase()+"-":"";ia+="transform";F.insertBefore(T,null);T.style[z]="translate3d(1px,1px,1px)";z=window.getComputedStyle(T).getPropertyValue(ia);F.fake?g(F,Q):T.remove();return void 0!==z&&0<z.length&&"none"!==z}function J(z,T){var F=!1;/^Webkit/.test(z)?
F="webkit"+T+"End":/^O/.test(z)?F="o"+T+"End":z&&(F=T.toLowerCase()+"end");return F}function H(z,T,F){for(var Q in T){var ia=0<=["touchstart","touchmove"].indexOf(Q)&&!F?ua:!1;z.addEventListener(Q,T[Q],ia)}}function ba(z,T){for(var F in T){var Q=0<=["touchstart","touchmove"].indexOf(F)?ua:!1;z.removeEventListener(F,T[F],Q)}}function W(){return{topics:{},on:function(z,T){this.topics[z]=this.topics[z]||[];this.topics[z].push(T)},off:function(z,T){if(this.topics[z])for(var F=0;F<this.topics[z].length;F++)if(this.topics[z][F]===
T){this.topics[z].splice(F,1);break}},emit:function(z,T){T.type=z;this.topics[z]&&this.topics[z].forEach(function(F){F(T,z)})}}}function V(z,T,F,Q,ia,R,Z){function za(){R-=la;Ja+=Da;z.style[T]=F+Ja+Ia+Q;0<R?setTimeout(za,la):Z()}var la=Math.min(R,10),Ia=0<=ia.indexOf("%")?"%":"px";ia=ia.replace(Ia,"");var Ja=Number(z.style[T].replace(F,"").replace(Q,"").replace(Ia,"")),Da=(ia-Ja)/R*la;setTimeout(za,la)}var ca=window,aa=ca.requestAnimationFrame||ca.webkitRequestAnimationFrame||ca.mozRequestAnimationFrame||
ca.msRequestAnimationFrame||function(z){return setTimeout(z,16)};ca=window;var ja=ca.cancelAnimationFrame||ca.mozCancelAnimationFrame||function(z){clearTimeout(z)},G=document.documentElement,P=(ca="classList"in document.createElement("_"))?function(z,T){return z.classList.contains(T)}:function(z,T){return 0<=z.className.indexOf(T)},Y=ca?function(z,T){P(z,T)||z.classList.add(T)}:function(z,T){P(z,T)||(z.className+=" "+T)},ea=ca?function(z,T){P(z,T)&&z.classList.remove(T)}:function(z,T){P(z,T)&&(z.className=
z.className.replace(T,""))},S=!1;try{var na=Object.defineProperty({},"passive",{get:function(){S=!0}});window.addEventListener("test",null,na)}catch(z){}var ua=S?{passive:!0}:!1;Object.keys||(Object.keys=function(z){var T=[],F;for(F in z)Object.prototype.hasOwnProperty.call(z,F)&&T.push(F);return T});"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var ma=function(z){function T(q){for(var C in q)Aa||("slideBy"===C&&(q[C]="page"),
"edgePadding"===C&&(q[C]=!1),"autoHeight"===C&&(q[C]=!1)),"responsive"===C&&T(q[C])}function F(q){q&&(Yb=Zb=nc=oc=yc=Bb=zc=$b=!1)}function Q(){for(var q=Aa?oa-lb:oa;0>q;)q+=wa;return q%wa+1}function ia(q){q=q?Math.max(0,Math.min($a?wa-1:wa-Ha,q)):0;return Aa?q+lb:q}function R(q){null==q&&(q=oa);for(Aa&&(q-=lb);0>q;)q+=wa;return Math.floor(q%wa)}function Z(){var q=R();q=kd?q:xa||Ba?Math.ceil((q+1)*Wb/wa-1):Math.floor(q/Ha);!$a&&Aa&&oa===Rb&&(q=Wb-1);return q}function za(){if(Ba||xa&&!ee)var q=wa-1;
else{q=xa?"fixedWidth":"items";var C=[];(xa||z[q]<wa)&&C.push(z[q]);if(Sa)for(var O in Sa){var X=Sa[O][q];X&&(xa||X<wa)&&C.push(X)}C.length||C.push(0);q=Math.ceil(xa?ee/Math.min.apply(null,C):Math.max.apply(null,C))}C=Aa?Math.ceil((5*q-wa)/2):4*q-wa;C=Math.max(q,C);return Da("edgePadding")?C+1:C}function la(q){return"top"===q?"afterbegin":"beforeend"}function Ia(q){if(null!=q){var C=mb.createElement("div");q.appendChild(C);var O=C.getBoundingClientRect();O=O.right-O.left;C.remove();return O||Ia(q.parentNode)}}
function Ja(){var q=ab?2*ab-Ka:0;return Ia(fe)-q}function Da(q){if(z[q])return!0;if(Sa)for(var C in Sa)if(Sa[C][q])return!0;return!1}function fa(q,C){null==C&&(C=Wc);if("items"===q&&xa)return Math.floor((nb+Ka)/(xa+Ka))||1;var O=z[q];if(Sa)for(var X in Sa)C>=parseInt(X)&&q in Sa[X]&&(O=Sa[X][q]);"slideBy"===q&&"page"===O&&(O=fa("items"));Aa||"slideBy"!==q&&"items"!==q||(O=Math.floor(O));return O}function Ga(q,C,O,X,pa){var ya="";void 0!==q?(O=q,C&&(O-=C),ya=Pa?"margin: 0 "+O+"px 0 "+q+"px;":"margin: "+
q+"px 0 "+O+"px 0;"):C&&!O&&(q="-"+C+"px",ya="margin: 0 "+(Pa?q+" 0 0":"0 "+q+" 0")+";");!Aa&&pa&&bb&&X&&(ya+=Ab(X));return ya}function zb(q,C,O){return q?(q+C)*Na+"px":hc?hc+"("+100*Na+"% / "+O+")":100*Na/O+"%"}function hb(q,C,O){q?q=q+C+"px":(Aa||(O=Math.floor(O)),q=Aa?Na:O,q=hc?hc+"(100% / "+q+")":100/q+"%");q="width:"+q;return"inner"!==pc?q+";":q+" !important;"}function rb(q){var C="";!1!==q&&(C=(Pa?"padding-":"margin-")+(Pa?"right":"bottom")+": "+q+"px;");return C}function Qb(q,C){(q=q.substring(0,
q.length-C).toLowerCase())&&(q="-"+q+"-");return q}function Ab(q){return Qb(bb,18)+"transition-duration:"+q/1E3+"s;"}function sb(q){return Qb(qc,17)+"animation-duration:"+q/1E3+"s;"}function gc(){if(Da("autoHeight")||Ba||!Pa){var q=qa.querySelectorAll("img");x(q,function(C){var O=C.src;ld||(O&&0>O.indexOf("data:image")?(C.src="",H(C,Od),Y(C,"loading"),C.src=O):(Y(C,"loaded"),yb(C)))});aa(function(){md(K(q),function(){ge=!0})});Da("autoHeight")&&(q=xc(oa,Math.min(oa+Ha-1,Na-1)));ld?mc():aa(function(){md(K(q),
mc)})}else Aa&&nd(),Ic(),ra()}function mc(){if(Ba){var q=$a?oa:wa-1;(function O(){var X=La[q].getBoundingClientRect().left,pa=La[q-1].getBoundingClientRect().right;1>=Math.abs(X-pa)?jd():setTimeout(function(){O()},16)})()}else jd()}function jd(){if(!Pa||Ba)Ae(),Ba?(Jc=he(),Pd&&(Sb=gb()),Rb=ic(),F(Hb||Sb)):Qd();Aa&&nd();Ic();ra()}function Ic(){ie();Eb.insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"tns-liveregion tns-visually-hidden" aria-live\x3d"polite" aria-atomic\x3d"true"\x3eslide \x3cspan class\x3d"current"\x3e'+
kb()+"\x3c/span\x3e  of "+wa+"\x3c/div\x3e");je=Eb.querySelector(".tns-liveregion .current");if(Rd){var q=Bb?"stop":"start";Wa?y(Wa,{"data-action":q}):z.autoplayButtonOutput&&(Eb.insertAdjacentHTML(la(z.autoplayPosition),'\x3cbutton type\x3d"button" data-action\x3d"'+q+'"\x3e'+od[0]+q+od[1]+rc[0]+"\x3c/button\x3e"),Wa=Eb.querySelector("[data-action]"));Wa&&H(Wa,{click:Be});Bb&&(Sd(),zc&&H(qa,pd),$b&&H(qa,qd))}if(ke){if(tb)y(tb,{"aria-label":"Carousel Pagination"}),Ib=tb.children,x(Ib,function(X,pa){y(X,
{"data-nav":pa,tabindex:"0","aria-label":Xc+(pa+1),"aria-controls":cb})});else{q="";for(var C=kd?"":'style\x3d"display:none"',O=0;O<wa;O++)q+='\x3cbutton type\x3d"button" data-nav\x3d"'+O+'" tabindex\x3d"-1" aria-controls\x3d"'+cb+'" '+C+' aria-label\x3d"'+Xc+(O+1)+'"\x3e\x3c/button\x3e';q='\x3cdiv class\x3d"tns-nav" aria-label\x3d"Carousel Pagination"\x3e'+q+"\x3c/div\x3e";Eb.insertAdjacentHTML(la(z.navPosition),q);tb=Eb.querySelector(".tns-nav");Ib=tb.children}rd();bb&&(q=bb.substring(0,bb.length-
18).toLowerCase(),C="transition: all "+Jb/1E3+"s",q&&(C="-"+q+"-"+C),t(Ta,"[aria-controls^\x3d"+cb+"-item]",C,u(Ta)));y(Ib[Tb],{"aria-label":Xc+(Tb+1)+Kc});B(Ib[Tb],"tabindex");Y(Ib[Tb],sd);H(tb,le)}if(td){Xa||Ua&&Ra||(Eb.insertAdjacentHTML(la(z.controlsPosition),'\x3cdiv class\x3d"tns-controls" aria-label\x3d"Carousel Navigation" tabindex\x3d"0"\x3e\x3cbutton type\x3d"button" data-controls\x3d"prev" tabindex\x3d"-1" aria-controls\x3d"'+cb+'"\x3e'+Ac[0]+'\x3c/button\x3e\x3cbutton type\x3d"button" data-controls\x3d"next" tabindex\x3d"-1" aria-controls\x3d"'+
cb+'"\x3e'+Ac[1]+"\x3c/button\x3e\x3c/div\x3e"),Xa=Eb.querySelector(".tns-controls"));Ua&&Ra||(Ua=Xa.children[0],Ra=Xa.children[1]);!z.controlsContainer||z.controlsContainer.closest(".hero-slider")||z.controlsContainer.closest(".slider-container")||y(Xa,{"aria-label":"Carousel Navigation",tabindex:"0"});(z.controlsContainer||z.prevButton&&z.nextButton)&&y([Ua,Ra],{"aria-controls":cb,tabindex:"0"});if(z.controlsContainer||z.prevButton&&z.nextButton)y(Ua,{"data-controls":"prev"}),y(Ra,{"data-controls":"next"});
ud="button"===Ua.nodeName.toLowerCase();vd="button"===Ra.nodeName.toLowerCase();Ce();Xa?H(Xa,Lc):(H(Ua,Lc),H(Ra,Lc))}Za()}function ra(){if(Aa&&Bc){var q={};q[Bc]=ac;H(qa,q)}nc&&H(qa,wd,z.preventScrollOnTouch);oc&&H(qa,xd);yc&&H(mb,Yc);if("inner"===pc)ob.on("outerResized",function(){jb();ob.emit("innerLoaded",ub())});else(Sa||xa||Ba||Kb||!Pa)&&H(Ub,{resize:Qa});if(Kb)if("outer"===pc)ob.on("innerLoaded",Vb);else Hb||Vb();qb();qa&&qa.classList&&qa.classList.contains("abm-featuredasins__carousel__wrapper__layer")&&
wa&&3<wa&&(Sb=!1);Hb?Pb():Sb&&Gb();ob.on("indexChanged",De);"inner"===pc&&ob.emit("innerLoaded",ub());"function"===typeof me&&me(ub());yd=!0}function Qa(q){aa(function(){jb(Fb(q))})}function jb(q){if(yd){"outer"===pc&&ob.emit("outerResized",ub(q));Wc=Ub.innerWidth||mb.documentElement.clientWidth||mb.body.clientWidth;var C,O=Zc,X=!1;Sa&&(wb(),(C=O!==Zc)&&ob.emit("newBreakpointStart",ub(q)));var pa,ya=Ha,Ya=Hb,Mc=Sb,Nc=yc,$c=Yb,eb=Zb,l=nc,p=oc,r=Bb,v=zc,D=$b;O=oa;if(C){var w=xa,L=Kb,I=Ac,U=vb;var da=
rc;if(!jc)var ha=Ka,sa=ab}yc=fa("arrowKeys");Yb=fa("controls");Zb=fa("nav");nc=fa("touch");vb=fa("center");oc=fa("mouseDrag");Bb=fa("autoplay");zc=fa("autoplayHoverPause");$b=fa("autoplayResetOnVisibility");C&&(Hb=fa("disable"),xa=fa("fixedWidth"),Jb=fa("speed"),Kb=fa("autoHeight"),Ac=fa("controlsText"),rc=fa("autoplayText"),ne=fa("autoplayTimeout"),jc||(ab=fa("edgePadding"),Ka=fa("gutter")));F(Hb);nb=Ja();Pa&&!Ba||Hb||(Ae(),Pa||(Qd(),X=!0));if(xa||Ba)Jc=he(),Rb=ic();if(C||xa)if(Ha=fa("items"),Cc=
fa("slideBy"),pa=Ha!==ya)xa||Ba||(Rb=ic()),ad();if(C&&Hb!==Ya)if(Hb)Pb();else if(zd){Ta.disabled=!1;qa.className+=sc;nd();if($a)for(ya=lb;ya--;)Aa&&A(La[ya]),A(La[Na-ya-1]);if(!Aa)for(ya=oa,Ya=oa+wa;ya<Ya;ya++){var ka=La[ya],Ea=ya<oa+Ha?bc:cc;ka.style.left=100*(ya-oa)/Ha+"%";Y(ka,Ea)}xb();zd=!1}if(Pd&&(C||xa||Ba)&&(Sb=gb(),Sb!==Mc))if(Sb)oe(Td(ia(0))),Gb();else{if(Ad){ab&&jc&&(ib.style.margin="");if(lb)for(X=lb;X--;)Aa&&ea(La[X],"tns-transparent"),ea(La[Na-X-1],"tns-transparent");xb();Ad=!1}X=!0}F(Hb||
Sb);Bb||(zc=$b=!1);yc!==Nc&&(yc?H(mb,Yc):ba(mb,Yc));Yb!==$c&&(Yb?Xa?A(Xa):(Ua&&A(Ua),Ra&&A(Ra)):Xa?E(Xa):(Ua&&E(Ua),Ra&&E(Ra)));Zb!==eb&&(Zb?A(tb):E(tb));nc!==l&&(nc?H(qa,wd,z.preventScrollOnTouch):ba(qa,wd));oc!==p&&(oc?H(qa,xd):ba(qa,xd));Bb!==r&&(Bb?(Wa&&A(Wa),Lb||Dc||Sd()):(Wa&&E(Wa),Lb&&Bd()));zc!==v&&(zc?H(qa,pd):ba(qa,pd));$b!==D&&($b?H(mb,qd):ba(mb,qd));if(C){if(xa!==w||vb!==U)X=!0;Kb===L||Kb||(ib.style.height="");Yb&&Ac!==I&&(Ua.innerHTML=Ac[0],Ra.innerHTML=Ac[1]);Wa&&rc!==da&&(w=Bb?1:0,
L=Wa.innerHTML,I=L.length-da[w].length,L.substring(I)===da[w]&&(Wa.innerHTML=L.substring(0,I)+rc[w]))}else vb&&(xa||Ba)&&(X=!0);if(pa||xa&&!Ba)Wb=pe(),rd();if(da=oa!==O)ob.emit("indexChanged",ub()),X=!0;else if(pa)da||De();else if(xa||Ba)qb(),ie(),fc();pa&&!Aa&&Ud();if(!Hb&&!Sb){if(C&&!jc){if(ab!==sa||Ka!==ha)ib.style.cssText=Ga(ab,Ka,xa,Jb,Kb);Pa&&(Aa&&(qa.style.width=zb(xa,Ka,Ha)),pa=hb(xa,Ka,Ha)+rb(Ka),ha=Ta,sa=u(Ta)-1,"deleteRule"in ha?ha.deleteRule(sa):ha.removeRule(sa),t(Ta,"#"+cb+" \x3e .tns-item",
pa,u(Ta)))}Kb&&Vb();X&&(nd(),Ec=oa)}C&&ob.emit("newBreakpointEnd",ub(q))}}function gb(){if(!xa&&!Ba)return wa<=(vb?Ha-(Ha-1)/2:Ha);var q=xa?(xa+Ka)*wa:db[wa],C=ab?nb+2*ab:nb+Ka;vb&&(C-=xa?(nb-xa)/2:(nb-(db[oa+1]-db[oa]-Ka))/2);return q<=C}function wb(){Zc=0;for(var q in Sa)q=parseInt(q),Wc>=q&&(Zc=q)}function Za(){!Bb&&Wa&&E(Wa);!Zb&&tb&&E(tb);qa&&qa.classList&&qa.classList.contains("abm-featuredasins__carousel__wrapper__layer")&&wa&&3<wa&&(Yb=!0);Yb||(Xa?E(Xa):(Ua&&E(Ua),Ra&&E(Ra)))}function xb(){Bb&&
Wa&&A(Wa);Zb&&tb&&A(tb);Yb&&(Xa?A(Xa):(Ua&&A(Ua),Ra&&A(Ra)))}function Gb(){if(!Ad){ab&&(ib.style.margin="0px");if(lb)for(var q=lb;q--;)Aa&&Y(La[q],"tns-transparent"),Y(La[Na-q-1],"tns-transparent");Za();Ad=!0}}function Pb(){if(!zd){Ta.disabled=!0;qa.className=qa.className.replace(sc.substring(1),"");B(qa,["style"]);if($a)for(var q=lb;q--;)Aa&&E(La[q]),E(La[Na-q-1]);Pa&&Aa||B(ib,["style"]);if(!Aa){q=oa;for(var C=oa+wa;q<C;q++){var O=La[q];B(O,["style"]);ea(O,bc);ea(O,cc)}}Za();zd=!0}}function fc(){var q=
kb();je.innerHTML!==q&&(je.innerHTML=q)}function kb(){var q=Va(),C=q[0]+1;q=q[1]+1;return C===q?C+"":C+" to "+q}function Va(q){null==q&&(q=Td());var C=oa;if(vb||ab){if(Ba||xa){var O=-(parseFloat(q)+ab);var X=O+nb+2*ab}}else Ba&&(O=db[oa],X=O+nb);if(Ba)db.forEach(function(ya,Ya){Ya<Na&&((vb||ab)&&ya<=O+.5&&(C=Ya),.5<=X-ya&&(pa=Ya))});else{if(xa)if(q=xa+Ka,vb||ab){C=Math.floor(O/q);var pa=Math.ceil(X/q-1)}else qa&&qa.classList&&qa.classList.contains("abm-featuredasins__carousel__wrapper__layer")?(1023<
Wc&&(Ha=3),pa=C+Ha-1):pa=qa&&qa.classList&&qa.classList.contains("abm-bp-po__carousel__wrapper__layer")?C:C+Math.ceil(nb/q)-1;else vb||ab?(q=Ha-1,vb?(C-=q/2,pa=oa+q/2):pa=oa+q,ab&&(q=ab*Ha/nb,C-=q,pa+=q),C=Math.floor(C),pa=Math.ceil(pa)):pa=C+Ha-1;C=Math.max(C,0);pa=Math.min(pa,Na-1)}return[C,pa]}function qb(){if(ld&&!Hb){var q=Va();q.push(Je);xc.apply(null,q).forEach(function(C){if(!P(C,bd)){var O={};O[Bc]=function(X){X.stopPropagation()};H(C,O);H(C,Od);C.src=C.getAttribute("data-src");if(O=C.getAttribute("data-srcset"))C.srcset=
O;Y(C,"loading")}})}}function yb(q){Y(q,bd);ea(q,"loading");ba(q,Od)}function xc(q,C,O){var X=[];for(O||(O="img");q<=C;)x(La[q].querySelectorAll(O),function(pa){X.push(pa)}),q++;return X}function Vb(){var q=xc.apply(null,Va());aa(function(){md(q,Cd)})}function md(q,C){if(ge)return C();q.forEach(function(O,X){!ld&&O.complete&&yb(O);P(O,bd)&&q.splice(X,1)});if(!q.length)return C();aa(function(){md(q,C)})}function De(){qb();ie();fc();Ce();if(Zb&&(Tb=0<=Oc?Oc:Z(),Oc=-1,Tb!==Pc)){var q=Ib[Pc],C=Ib[Tb];
y(q,{tabindex:"0","aria-label":Xc+(Pc+1)});ea(q,sd);y(C,{"aria-label":Xc+(Tb+1)+Kc});B(C,"tabindex");Y(C,sd);Pc=Tb}}function qe(q,C){var O=[],X=q;for(q=Math.min(q+C,Na);X<q;X++)O.push(La[X].offsetHeight);return Math.max.apply(null,O)}function Cd(){var q=Kb?qe(oa,Ha):qe(lb,wa),C=pb?pb:ib;C.style.height!==q&&(C.style.height=q+"px")}function Ae(){db=[0];var q=Pa?"left":"top",C=Pa?"right":"bottom",O=La[0].getBoundingClientRect()[q];x(La,function(X,pa){pa&&db.push(X.getBoundingClientRect()[q]-O);pa===
Na-1&&db.push(X.getBoundingClientRect()[C]-O)})}function ie(){var q=Va(),C=q[0],O=q[1];x(La,function(X,pa){pa>=C&&pa<=O?X.hasAttribute("aria-hidden")&&(B(X,["aria-hidden","tabindex"]),Y(X,Vd)):X.hasAttribute("aria-hidden")||(y(X,{"aria-hidden":"true",tabindex:"-1"}),ea(X,Vd));X.classList.contains("abm-featuredasins__carousel__wrapper__layer__item")&&(pa===O?Y(X,"no-border"):ea(X,"no-border"))});q=document.querySelectorAll(".tns-item");[].forEach.call(q,function(X){X.style.opacity=null;X.classList.contains("tns-slide-active")?
X.querySelectorAll("a").forEach(function(pa){pa.hasAttribute("data-hero-cta")||pa.hasAttribute("data-product-search-asin-btn")?pa.setAttribute("tabindex","0"):pa.setAttribute("tabindex","-1")}):X.querySelectorAll("a").forEach(function(pa){pa.setAttribute("tabindex","-1")})});document.querySelectorAll(".tns-slider").forEach(function(X){X.classList.contains("abm-featuredasins__carousel__wrapper__layer")||X.classList.contains("abm-bp-po__carousel__wrapper__layer")||X.classList.contains("abm-asin-search__carousel__wrapper__layer")||
(X.getElementsByClassName("tns-slide-active")[0]&&(X.getElementsByClassName("tns-slide-active")[0].setAttribute("tabindex","-1"),amznbase.isIE11()||(X.getElementsByClassName("tns-slide-active")[0].style.opacity=.5,X.getElementsByClassName("tns-slide-active")[0].style.pointerEvents="none")),X.getElementsByClassName("tns-slide-active")[2]&&(X.getElementsByClassName("tns-slide-active")[2].setAttribute("tabindex","-1"),amznbase.isIE11()||(X.getElementsByClassName("tns-slide-active")[2].style.opacity=
.5,X.getElementsByClassName("tns-slide-active")[2].style.pointerEvents="none")),X.getElementsByClassName("tns-slide-active")[1]&&(X.getElementsByClassName("tns-slide-active")[1].setAttribute("tabindex","0"),X.getElementsByClassName("tns-slide-active")[1].removeAttribute("style"),X.getElementsByClassName("tns-slide-active")[1].querySelectorAll("a").forEach(function(pa){pa.setAttribute("tabindex","0")})))})}function Ud(){for(var q=oa+Math.min(wa,Ha),C=Na;C--;){var O=La[C];C>=oa&&C<q?(Y(O,"tns-moving"),
O.style.left=100*(C-oa)/Ha+"%",Y(O,bc),ea(O,cc)):O.style.left&&(O.style.left="",Y(O,cc),ea(O,bc));ea(O,Fc)}setTimeout(function(){x(La,function(X){ea(X,"tns-moving")})},300)}function Wd(q,C,O){q?C.disabled=O:C.setAttribute("aria-disabled",O.toString())}function Ce(){if(Yb&&!Dd&&!$a){var q=ud?Ua.disabled:"true"===Ua.getAttribute("aria-disabled"),C=vd?Ra.disabled:"true"===Ra.getAttribute("aria-disabled"),O=oa<=kc?!0:!1,X=!Dd&&oa>=Rb?!0:!1;O&&!q&&Wd(ud,Ua,!0);!O&&q&&Wd(ud,Ua,!1);X&&!C&&Wd(vd,Ra,!0);!X&&
C&&Wd(vd,Ra,!1)}}function dc(q){null==q&&(q=oa);var C=ab?Ka:0;return Ba?(nb-C-(db[q+1]-db[q]-Ka))/2:xa?(nb-xa)/2:(Ha-1)/2}function he(){var q=nb+(ab?Ka:0)-(xa?(xa+Ka)*Na:db[Na]);vb&&!$a&&(q=xa?-(xa+Ka)*(Na-1)-dc():dc(Na-1)-db[Na-1]);0<q&&(q=0);return q}function Td(q){null==q&&(q=oa);if(Pa&&!Ba)if(xa)q*=-(xa+Ka),vb&&(q+=dc());else{var C=tc?Na:Ha;vb&&(q-=dc());q=100*-q/C}else q=-db[q],vb&&Ba&&(q+=dc());Xd&&(q=Math.max(q,Jc));return q+=!Pa||Ba||xa?"px":"%"}function nd(q){bb&&(qa.style[bb]="0s");oe(q)}
function oe(q){null==q&&(q=Td());qa.style[lc]=uc+q+Mb}function vc(q,C,O,X){var pa=q+Ha;$a||(pa=Math.min(pa,Na));for(var ya=q;ya<pa;ya++){var Ya=La[ya];X||(Ya.style.left=100*(ya-oa)/Ha+"%");re&&Ed&&(Ya.style[Ed]=Ya.style[se]=re*(ya-q)/1E3+"s");ea(Ya,C);Y(Ya,O);X&&Qc.push(Ya)}}function Yd(q,C){Fd&&ad();if(oa!==Ec||C)ob.emit("indexChanged",ub()),ob.emit("transitionStart",ub()),Kb&&Vb(),Lb&&q&&0<=["click","keydown"].indexOf(q.type)&&Bd(),Gc=!0,Ke()}function ac(q){if(Aa||Gc){ob.emit("transitionEnd",ub(q));
if(!Aa&&0<Qc.length)for(var C=0;C<Qc.length;C++){var O=Qc[C];O.style.left="";se&&Ed&&(O.style[se]="",O.style[Ed]="");ea(O,Fc);Y(O,cc)}if(!q||!Aa&&q.target.parentNode===qa||q.target===qa&&q.propertyName.toLowerCase().replace(/-/g,"")===lc.toLowerCase().replace(/-/g,""))Fd||(q=oa,ad(),oa!==q&&(ob.emit("indexChanged",ub()),nd())),"inner"===pc&&ob.emit("innerLoaded",ub()),Gc=!1,Ec=oa}}function cd(q,C){if(!Sb)if("prev"===q)wc(C,-1);else if("next"===q)wc(C,1);else{if(Gc){if(Zd)return;ac()}var O=R(),X=0;
"first"===q?X=-O:"last"===q?X=Aa?wa-Ha-O:wa-1-O:("number"!==typeof q&&(q=parseInt(q)),isNaN(q)||(C||(q=Math.max(0,Math.min(wa-1,q))),X=q-O));!Aa&&X&&Math.abs(X)<Ha&&(q=0<X?1:-1,X+=oa+X-wa>=kc?wa*q:2*wa*q*-1);oa+=X;Aa&&$a&&(oa<kc&&(oa+=wa),oa>Rb&&(oa-=wa));R(oa)!==R(Ec)&&Yd(C)}}function wc(q,C){if(Gc){if(Zd)return;ac()}if(!C){q=Fb(q);for(var O=dd(q);O!==Xa&&0>[Ua,Ra].indexOf(O);)O=O.parentNode;O=[Ua,Ra].indexOf(O);if(0<=O){var X=!0;C=0===O?-1:1}}if(Dd){if(oa===kc&&-1===C){cd("last",q);return}if(oa===
Rb&&1===C){cd("first",q);return}}C&&(oa+=Cc*C,Ba&&(oa=Math.floor(oa)),Yd(X||q&&"keydown"===q.type?q:null))}function Gd(){ed=setInterval(function(){wc(null,te)},ne);Lb=!0}function Hd(){clearInterval(ed);Lb=!1}function Db(q,C){y(Wa,{"data-action":q});Wa.innerHTML=od[0]+q+od[1]+C}function Sd(){Gd();Wa&&Db("stop",rc[1])}function Bd(){Hd();Wa&&Db("start",rc[0])}function Be(){Lb?(Bd(),Dc=!0):(Sd(),Dc=!1)}function Fb(q){q=q||Ub.event;return Rc(q)?q.changedTouches[0]:q}function dd(q){return q.target||Ub.event.srcElement}
function Rc(q){return 0<=q.type.indexOf("touch")}function Ee(){var q=!1,C=Math.abs(90-Math.abs(180/Math.PI*Math.atan2(Nb.y-Sc.y,Nb.x-Sc.x)));C>=90-Id?q="horizontal":C<=Id&&(q="vertical");return q===z.axis}function Fe(q){if(Gc){if(Zd)return;ac()}Bb&&Lb&&Hd();Hc=!0;Ob&&(ja(Ob),Ob=null);var C=Fb(q);ob.emit(Rc(q)?"touchStart":"dragStart",ub(q));!Rc(q)&&0<=["img","a"].indexOf(dd(q).nodeName.toLowerCase())&&(q.preventDefault?q.preventDefault():q.returnValue=!1);Nb.x=Sc.x=C.clientX;Nb.y=Sc.y=C.clientY;Aa&&
($d=parseFloat(qa.style[lc].replace(uc,"")),bb&&(qa.style[bb]="0s"))}function ue(q){if(Hc){var C=Fb(q);Nb.x=C.clientX;Nb.y=C.clientY;Aa?Ob||(Ob=aa(function(){fd(q)})):("?"===Xb&&(Xb=Ee()),Xb&&(Jd=!0));("boolean"!==typeof q.cancelable||q.cancelable)&&Jd&&q.preventDefault()}}function fd(q){if(Xb){if(ja(Ob),Hc&&(Ob=aa(function(){fd(q)})),"?"===Xb&&(Xb=Ee()),Xb){!Jd&&Rc(q)&&(Jd=!0);try{q.type&&ob.emit(Rc(q)?"touchMove":"dragMove",ub(q))}catch(X){}var C=$d,O=Kd(Nb,Sc);!Pa||xa||Ba?C=C+O+"px":(C+=tc?O*Ha*
100/((nb+Ka)*Na):100*O/(nb+Ka),C+="%");qa.style[lc]=uc+C+Mb}}else Hc=!1}function gd(q){if(Hc){Ob&&(ja(Ob),Ob=null);Aa&&bb&&(qa.style[bb]="");Hc=!1;var C=Fb(q);Nb.x=C.clientX;Nb.y=C.clientY;var O=Kd(Nb,Sc);if(Math.abs(O)){if(!Rc(q)){var X=dd(q);H(X,{click:function Ya(ya){ya.preventDefault?ya.preventDefault():ya.returnValue=!1;ba(X,{click:Ya})}})}Aa?Ob=aa(function(){if(Pa&&!Ba){var pa=-O*Ha/(nb+Ka);pa=0<O?Math.floor(pa):Math.ceil(pa);oa+=pa}else if(pa=-($d+O),0>=pa)oa=kc;else if(pa>=db[Na-1])oa=Rb;
else for(var ya=0;ya<Na&&pa>=db[ya];)oa=ya,pa>db[ya]&&0>O&&(oa+=1),ya++;Yd(q,O);ob.emit(Rc(q)?"touchEnd":"dragEnd",ub(q))}):Xb&&wc(q,0<O?-1:1)}}"auto"===z.preventScrollOnTouch&&(Jd=!1);Id&&(Xb="?");Bb&&!Lb&&Gd()}function Qd(){(pb?pb:ib).style.height=db[oa+Ha]-db[oa]+"px"}function pe(){return Math.min(Math.ceil(xa?(xa+Ka)*wa/nb:wa/Ha),wa)}function rd(){if(Zb&&!kd&&Wb!==Tc){var q=Tc,C=Wb,O=A;Tc>Wb&&(q=Wb,C=Tc,O=E);for(;q<C;)O(Ib[q]),q++;Tc=Wb}}function ub(q){return{container:qa,slideItems:La,navContainer:tb,
navItems:Ib,controlsContainer:Xa,hasControls:td,prevButton:Ua,nextButton:Ra,items:Ha,slideBy:Cc,cloneCount:lb,slideCount:wa,slideCountNew:Na,index:oa,indexCached:Ec,displayIndex:Q(),navCurrentIndex:Tb,navCurrentIndexCached:Pc,pages:Wb,pagesCached:Tc,sheet:Ta,isOn:yd,event:q||{}}}z=d({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,
prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5E3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,
mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0},z||{});var mb=document,Ub=window,Fa={},Cb=z.useLocalStorage;if(Cb){var ve=navigator.userAgent,Uc=new Date;try{(Fa=Ub.localStorage)?(Fa.setItem(Uc,Uc),Cb=Fa.getItem(Uc)==Uc,Fa.removeItem(Uc)):Cb=!1,Cb||(Fa={})}catch(q){Cb=!1}Cb&&(Fa.tnsApp&&Fa.tnsApp!==ve&&"tC tPL tMQ tTf t3D tTDu tTDe tADu tADe tTE tAE".split(" ").forEach(function(q){Fa.removeItem(q)}),localStorage.tnsApp=
ve)}var hc=Fa.tC?a(Fa.tC):b(Fa,"tC",h(),Cb),we=Fa.tPL?a(Fa.tPL):b(Fa,"tPL",k(),Cb),jc=Fa.tMQ?a(Fa.tMQ):b(Fa,"tMQ",m(),Cb),tc=Fa.tTf?a(Fa.tTf):b(Fa,"tTf",N("transform"),Cb),hd=Fa.t3D?a(Fa.t3D):b(Fa,"t3D",M(tc),Cb),bb=Fa.tTDu?a(Fa.tTDu):b(Fa,"tTDu",N("transitionDuration"),Cb),Ed=Fa.tTDe?a(Fa.tTDe):b(Fa,"tTDe",N("transitionDelay"),Cb),qc=Fa.tADu?a(Fa.tADu):b(Fa,"tADu",N("animationDuration"),Cb),se=Fa.tADe?a(Fa.tADe):b(Fa,"tADe",N("animationDelay"),Cb),Bc=Fa.tTE?a(Fa.tTE):b(Fa,"tTE",J(bb,"Transition"),
Cb),Ge=Fa.tAE?a(Fa.tAE):b(Fa,"tAE",J(qc,"Animation"),Cb),Ld=Ub.console&&"function"===typeof Ub.console.warn,ae="container controlsContainer prevButton nextButton navContainer autoplayButton".split(" "),xe={};ae.forEach(function(q){if("string"===typeof z[q]){var C=z[q],O=mb.querySelector(C);xe[q]=C;O&&O.nodeName?z[q]=O:Ld&&console.warn("Can't find",z[q])}});if(1>z.container.children.length)Ld&&console.warn("No slides found in",z.container);else{var Sa=z.responsive,pc=z.nested,Aa="carousel"===z.mode?
!0:!1;if(Sa){0 in Sa&&(z=d(z,Sa[0]),delete Sa[0]);var be={},Md;for(Md in Sa){var Nd=Sa[Md];Nd="number"===typeof Nd?{items:Nd}:Nd;be[Md]=Nd}Sa=be;be=null}Aa||T(z);if(!Aa){z.axis="horizontal";z.slideBy="page";z.edgePadding=!1;var bc=z.animateIn,Fc=z.animateOut,re=z.animateDelay,cc=z.animateNormal}var Pa="horizontal"===z.axis?!0:!1,Eb=mb.createElement("div"),ib=mb.createElement("div"),pb,qa=z.container,fe=qa.parentNode,He=qa.outerHTML,La=qa.children,wa=La.length,Zc,Wc=Ub.innerWidth||mb.documentElement.clientWidth||
mb.body.clientWidth,yd=!1;Sa&&wb();Aa&&(qa.className+=" tns-vpfix");var Ba=z.autoWidth,xa=fa("fixedWidth"),ab=fa("edgePadding"),Ka=fa("gutter"),nb=Ja(),vb=fa("center"),Ha=Ba?1:Math.floor(fa("items")),Cc=fa("slideBy"),ee=z.viewportMax||z.fixedWidthViewportWidth,yc=fa("arrowKeys"),Jb=fa("speed"),Dd=z.rewind,$a=Dd?!1:z.loop,Kb=fa("autoHeight"),Yb=fa("controls"),Ac=fa("controlsText"),Zb=fa("nav"),nc=fa("touch"),oc=fa("mouseDrag"),Bb=fa("autoplay"),ne=fa("autoplayTimeout"),rc=fa("autoplayText"),zc=fa("autoplayHoverPause"),
$b=fa("autoplayResetOnVisibility"),Ta=n(),ld=z.lazyload,Je=z.lazyloadSelector,db,Qc=[],lb=$a?za():0,Na=Aa?wa+2*lb:wa+lb,Xd=!xa&&!Ba||$a?!1:!0,Jc=xa?he():null,Fd=Aa&&$a?!1:!0,lc=Pa?"left":"top",uc="",Mb="",ic=function(){return xa?function(){return vb&&!$a?wa-1:Math.ceil(-Jc/(xa+Ka))}:Ba?function(){for(var q=Na;q--;)if(db[q]>=-Jc)return q}:function(){return vb&&Aa&&!$a?wa-1:$a||Aa?Math.max(0,Na-Math.ceil(Ha)):Na-1}}(),oa=ia(fa("startIndex")),Ec=oa;Q();var kc=0,Rb=Ba?null:ic(),Zd=z.preventActionWhenRunning,
Id=z.swipeAngle,Xb=Id?"?":!0,Gc=!1,me=z.onInit,ob=new W,sc=" tns-slider tns-"+z.mode,cb=qa.id||c(),Hb=fa("disable"),zd=!1,Pd=z.freezable,Sb=Pd&&!Ba?gb():!1,Ad=!1,Lc={click:wc,keydown:function(q){q=Fb(q);var C=[37,39].indexOf(q.keyCode);0<=C&&(0===C?Ua.disabled||wc(q,-1):Ra.disabled||wc(q,1))}},le={click:function(q){if(Gc){if(Zd)return;ac()}q=Fb(q);for(var C=dd(q);C!==tb&&!C.hasAttribute("data-nav");)C=C.parentNode;if(C.hasAttribute("data-nav")){C=Oc=Number(C.getAttribute("data-nav"));var O=xa||Ba?
C*wa/Wb:C*Ha;cd(kd?C:Math.min(Math.ceil(O),wa-1),q);Tb===C&&(Lb&&Bd(),Oc=-1)}},keydown:function(q){q=Fb(q);var C=mb.activeElement;if(C.hasAttribute("data-nav")){var O=[37,39,13,32].indexOf(q.keyCode);C=Number(C.getAttribute("data-nav"));0<=O&&(0===O?0<C&&Ib[C-1].focus():1===O?C<Wb-1&&Ib[C+1].focus():(Oc=C,cd(C,q)))}}},pd={mouseover:function(){Lb&&(Hd(),ce=!0)},mouseout:function(){ce&&(Gd(),ce=!1)}},qd={visibilitychange:function(){mb.hidden?Lb&&(Hd(),id=!0):id&&(Gd(),id=!1)}},Yc={keydown:function(q){q=
Fb(q);var C=[37,39].indexOf(q.keyCode);0<=C&&wc(q,0===C?-1:1)}},wd={touchstart:Fe,touchmove:ue,touchend:gd,touchcancel:gd},xd={mousedown:Fe,mousemove:ue,mouseup:gd,mouseleave:gd},td=Da("controls"),ke=Da("nav"),kd=Ba?!0:z.navAsThumbnails,Rd=Da("autoplay"),de=Da("touch"),ye=Da("mouseDrag"),Vd="tns-slide-active",bd="tns-complete",Od={load:function(q){q=dd(q);Y(q,"loaded");yb(q)},error:function(q){q=dd(q);Y(q,"failed");yb(q)}},ge,je,Jd="force"===z.preventScrollOnTouch?!0:!1;if(td)var Xa=z.controlsContainer,
ze=z.controlsContainer?z.controlsContainer.outerHTML:"",Ua=z.prevButton,Ra=z.nextButton,Le=z.prevButton?z.prevButton.outerHTML:"",Me=z.nextButton?z.nextButton.outerHTML:"",ud,vd;if(ke)var tb=z.navContainer,Vc=z.navContainer?z.navContainer.outerHTML:"",Ib,Wb=Ba?wa:pe(),Tc=0,Oc=-1,Tb=Z(),Pc=Tb,sd="tns-nav-active",Xc="Carousel Page ",Kc=" (Current Slide)";if(Rd)var te="forward"===z.autoplayDirection?1:-1,Wa=z.autoplayButton,Ie=z.autoplayButton?z.autoplayButton.outerHTML:"",od=["\x3cspan class\x3d'tns-visually-hidden'\x3e",
" animation\x3c/span\x3e"],ed,Lb,ce,Dc,id;if(de||ye)var Sc={},Nb={},$d,Hc=!1,Ob,Kd=Pa?function(q,C){return q.x-C.x}:function(q,C){return q.y-C.y};Ba||F(Hb||Sb);tc&&(lc=tc,uc="translate",hd?(uc+=Pa?"3d(":"3d(0px, ",Mb=Pa?", 0px, 0px)":", 0px)"):(uc+=Pa?"X(":"Y(",Mb=")"));Aa&&(qa.className=qa.className.replace("tns-vpfix",""));(function(){Da("gutter");Eb.className="tns-outer";ib.className="tns-inner";Eb.id=cb+"-ow";ib.id=cb+"-iw";""===qa.id&&(qa.id=cb);sc+=we||Ba?" tns-subpixel":" tns-no-subpixel";
sc+=hc?" tns-calc":" tns-no-calc";Ba&&(sc+=" tns-autowidth");sc+=" tns-"+z.axis;qa.className+=sc;Aa?(pb=mb.createElement("div"),pb.id=cb+"-mw",pb.className="tns-ovh",Eb.appendChild(pb),pb.appendChild(ib)):Eb.appendChild(ib);Kb&&((pb?pb:ib).className+=" tns-ah");fe.insertBefore(Eb,qa);ib.appendChild(qa);x(La,function(ya,Ya){Y(ya,"tns-item");ya.id||(ya.id=cb+"-item"+Ya);!Aa&&cc&&Y(ya,cc);y(ya,{"aria-hidden":"true",tabindex:"-1"})});if(lb){for(var q=mb.createDocumentFragment(),C=mb.createDocumentFragment(),
O=lb;O--;){var X=O%wa,pa=La[X].cloneNode(!0);B(pa,"id");C.insertBefore(pa,C.firstChild);Aa&&(X=La[wa-1-X].cloneNode(!0),B(X,"id"),q.appendChild(X))}qa.insertBefore(q,qa.firstChild);qa.appendChild(C);La=qa.children}})();(function(){if(!Aa)for(var q=oa,C=oa+Math.min(wa,Ha);q<C;q++){var O=La[q];O.style.left=100*(q-oa)/Ha+"%";Y(O,bc);ea(O,cc)}Pa&&(we||Ba?(t(Ta,"#"+cb+" \x3e .tns-item","font-size:"+Ub.getComputedStyle(La[0]).fontSize+";",u(Ta)),t(Ta,"#"+cb,"font-size:0;",u(Ta))):Aa&&x(La,function(p,r){p.style.marginLeft=
hc?hc+"("+100*r+"% / "+Na+")":100*r/Na+"%"}));jc?(bb&&(C=pb&&z.autoHeight?Ab(z.speed):"",t(Ta,"#"+cb+"-mw",C,u(Ta))),C=Ga(z.edgePadding,z.gutter,z.fixedWidth,z.speed,z.autoHeight),t(Ta,"#"+cb+"-iw",C,u(Ta)),Aa&&(C=Pa&&!Ba?"width:"+zb(z.fixedWidth,z.gutter,z.items)+";":"",bb&&(C+=Ab(Jb)),t(Ta,"#"+cb,C,u(Ta))),C=Pa&&!Ba?hb(z.fixedWidth,z.gutter,z.items):"",z.gutter&&(C+=rb(z.gutter)),Aa||(bb&&(C+=Ab(Jb)),qc&&(C+=sb(Jb)))):(Aa&&Kb&&(pb.style[bb]=Jb/1E3+"s"),ib.style.cssText=Ga(ab,Ka,xa,Kb),Aa&&Pa&&!Ba&&
(qa.style.width=zb(xa,Ka,Ha)),C=Pa&&!Ba?hb(xa,Ka,Ha):"",Ka&&(C+=rb(Ka)));C&&t(Ta,"#"+cb+" \x3e .tns-item",C,u(Ta));if(Sa&&jc)for(var X in Sa){X=parseInt(X);q=Sa[X];var pa=O=C=C="",ya="",Ya=Ba?null:fa("items",X),Mc=fa("fixedWidth",X),Nc=fa("speed",X),$c=fa("edgePadding",X),eb=fa("autoHeight",X),l=fa("gutter",X);bb&&pb&&fa("autoHeight",X)&&"speed"in q&&(C="#"+cb+"-mw{"+Ab(Nc)+"}");if("edgePadding"in q||"gutter"in q)O="#"+cb+"-iw{"+Ga($c,l,Mc,Nc,eb)+"}";Aa&&Pa&&!Ba&&("fixedWidth"in q||"items"in q||xa&&
"gutter"in q)&&(pa="width:"+zb(Mc,l,Ya)+";");bb&&"speed"in q&&(pa+=Ab(Nc));pa&&(pa="#"+cb+"{"+pa+"}");if("fixedWidth"in q||xa&&"gutter"in q||!Aa&&"items"in q)ya+=hb(Mc,l,Ya);"gutter"in q&&(ya+=rb(l));!Aa&&"speed"in q&&(bb&&(ya+=Ab(Nc)),qc&&(ya+=sb(Nc)));ya&&(ya="#"+cb+" \x3e .tns-item{"+ya+"}");(C=C+O+pa+ya)&&Ta.insertRule("@media (min-width: "+X/16+"em) {"+C+"}",Ta.cssRules.length)}})();gc();var ad=function(){return $a?Aa?function(){var q=kc,C=Rb;q+=Cc;C-=Cc;ab?(q+=1,--C):xa&&(nb+Ka)%(xa+Ka)&&--C;
lb&&(oa>C?oa-=wa:oa<q&&(oa+=wa))}:function(){if(oa>Rb)for(;oa>=kc+wa;)oa-=wa;else if(oa<kc)for(;oa<=Rb-wa;)oa+=wa}:function(){oa=Math.max(kc,Math.min(Rb,oa))}}(),Ke=function(){return Aa?function(){bb&&(qa.style[bb]="");bb||!Jb?(oe(),Jb&&"none"!==window.getComputedStyle(qa).display||ac()):V(qa,lc,uc,Mb,Td(),Jb,ac);Pa||Qd()}:function(){Qc=[];var q={};q[Bc]=q[Ge]=ac;ba(La[Ec],q);H(La[oa],q);vc(Ec,bc,Fc,!0);vc(oa,cc,bc);Bc&&Ge&&Jb&&"none"!==window.getComputedStyle(qa).display||ac()}}();return{version:"2.9.2",
getInfo:ub,events:ob,goTo:cd,play:function(){Bb&&!Lb&&(Sd(),Dc=!1)},pause:function(){Lb&&(Bd(),Dc=!0)},isOn:yd,updateSliderHeight:Cd,refresh:gc,destroy:function(){Ta.disabled=!0;Ta.ownerNode&&Ta.ownerNode.remove();ba(Ub,{resize:Qa});yc&&ba(mb,Yc);Xa&&ba(Xa,Lc);tb&&ba(tb,le);ba(qa,pd);ba(qa,qd);Wa&&ba(Wa,{click:Be});Bb&&clearInterval(ed);if(Aa&&Bc){var q={};q[Bc]=ac;ba(qa,q)}nc&&ba(qa,wd);oc&&ba(qa,xd);var C=[He,ze,Le,Me,Vc,Ie];ae.forEach(function(X,pa){var ya="container"===X?Eb:z[X];if("object"===
typeof ya&&ya){var Ya=ya.previousElementSibling?ya.previousElementSibling:!1,Mc=ya.parentNode;ya.outerHTML=C[pa];z[X]=Ya?Ya.nextElementSibling:Mc.firstElementChild}});ae=bc=Fc=re=cc=Pa=Eb=ib=qa=fe=He=La=wa=Zc=Wc=Ba=xa=ab=Ka=nb=Ha=Cc=ee=yc=Jb=Dd=$a=Kb=Ta=ld=db=Qc=lb=Na=Xd=Jc=Fd=lc=uc=Mb=ic=oa=Ec=kc=Rb=Id=Xb=Gc=me=ob=sc=cb=Hb=zd=Pd=Sb=Ad=Lc=le=pd=qd=Yc=wd=xd=td=ke=kd=Rd=de=ye=Vd=bd=Od=ge=Yb=Ac=Xa=ze=Ua=Ra=ud=vd=Zb=tb=Vc=Ib=Wb=Tc=Oc=Tb=Pc=sd=Xc=Kc=Bb=ne=te=rc=zc=Wa=Ie=$b=od=ed=Lb=ce=Dc=id=Sc=Nb=$d=Hc=
Ob=Kd=nc=oc=null;for(var O in this)"rebuild"!==O&&(this[O]=null);yd=!1},rebuild:function(){return ma(d(z,xe))}}}};return ma}(),customCarousel={sliders:[],init:function(){this.initializeSuppressCta();this.initializeTinySlider();this.loaderCarousel();this.addEventListeners()},addEventListeners:function(){var d=this;window.addEventListener("resize",amznbase.debounce(function(){d.resized()},250));document.querySelector(".downloadable-cta")&&document.querySelectorAll(".downloadable-cta").forEach(function(a){a.closest(".slider-container").querySelector(".abm-cta--download")&&
d.downloadProductCardAssets(a)})},loaderCarousel:function(){document.querySelectorAll(".slider-container-wrapper").forEach(function(d){d.getElementsByClassName("abm-loader-container")[0].classList.add("hide");d.getElementsByClassName("slider-container")[0].classList.remove("hide")})},initializeSuppressCta:function(){document.querySelectorAll(".slider-container-wrapper").forEach(function(d){for(var a=d.getElementsByClassName("abm-service-card hide"),b=d.getElementsByClassName("abm-success-story hide");a[0];)a[0].closest(".item").remove(),
d.querySelectorAll(".thumbnails button")[0].remove();for(;b[0];)b[0].closest(".item").remove(),d.querySelectorAll(".thumbnails button")[0].remove();3>d.getElementsByClassName("abm-service-card").length&&0===d.getElementsByClassName("abm-success-story").length&&d.classList.add("hide")})},downloadProductCardAssets:function(d){var a=[];d.closest(".slider-container").querySelectorAll(".abm-cta--download").forEach(function(c){c=c.getAttribute("href");var e="path\x3d"+encodeURIComponent(c);c&&"#"!==c&&
-1===a.indexOf(e)&&a.push(e)});concatenatedAssetPaths=a.join("\x26");var b=d.dataset.assetDownloadUrl;b&&(b=b.replace("path",concatenatedAssetPaths),d.href=b)},initializeTinySlider:function(){var d=this;document.querySelectorAll(".slider-container").forEach(function(a){var b=!1,c=!1;a.classList.contains("abm-testimonial-component__desktop")&&(c=!0);a.querySelectorAll(".abm-success-story").length&&(a.classList.add("video-carousel"),b=!0);var e={320:{controls:!0,fixedWidth:296,edgePadding:13,gutter:16},
360:{controls:!0,fixedWidth:296,edgePadding:32,gutter:16},375:{controls:!0,fixedWidth:296,edgePadding:39,gutter:16},410:{controls:!0,fixedWidth:296,edgePadding:57,gutter:16},768:{controls:!0,fixedWidth:592,edgePadding:88,gutter:32},810:{controls:!0,fixedWidth:592,edgePadding:109,gutter:32},1024:{controls:!0,fixedWidth:681,edgePadding:171.5,gutter:32},1200:{controls:!0,fixedWidth:680,edgePadding:252,gutter:32},1250:{controls:!0,fixedWidth:680,edgePadding:285,gutter:90},1440:{controls:!0,fixedWidth:728,
edgePadding:356,gutter:32}};var f={320:{controls:!0,fixedWidth:296,edgePadding:13,gutter:16},360:{controls:!0,fixedWidth:296,edgePadding:32,gutter:16},375:{controls:!0,fixedWidth:296,edgePadding:39,gutter:16},410:{controls:!0,fixedWidth:296,edgePadding:57,gutter:16},768:{controls:!0,fixedWidth:592,edgePadding:88,gutter:32},810:{controls:!0,fixedWidth:592,edgePadding:109,gutter:32},1024:{controls:!0,fixedWidth:681,edgePadding:171.5,gutter:32},1200:{controls:!0,fixedWidth:680,edgePadding:252,gutter:32},
1250:{controls:!0,fixedWidth:680,edgePadding:285,gutter:90},1440:{controls:!0,fixedWidth:728,edgePadding:356,gutter:32}};var g={320:{controls:!0,fixedWidth:296,edgePadding:13,gutter:16},360:{controls:!0,fixedWidth:296,edgePadding:32,gutter:16},375:{controls:!0,fixedWidth:296,edgePadding:39,gutter:16},410:{controls:!0,fixedWidth:296,edgePadding:57,gutter:16},768:{controls:!0,fixedWidth:594,edgePadding:92,gutter:30},1024:{controls:!0,fixedWidth:673,edgePadding:185,gutter:79},1200:{controls:!0,fixedWidth:673,
edgePadding:270,gutter:79},1250:{controls:!0,fixedWidth:673,edgePadding:300,gutter:79},1440:{controls:!0,fixedWidth:728,edgePadding:356,gutter:96}};var h={1024:{controls:!0,fixedWidth:768,edgePadding:117,gutter:32,center:!0},1200:{controls:!0,fixedWidth:768,edgePadding:215,gutter:32,center:!0},1250:{controls:!0,fixedWidth:768,edgePadding:230,gutter:32,center:!0},1440:{controls:!0,fixedWidth:1108,edgePadding:155,gutter:40,center:!0}};a={container:a.querySelector(".customize"),items:1,controls:!0,mouseDrag:!0,
controlsContainer:a.querySelector(".controls"),navContainer:a.querySelector(".tns-nav"),navAsThumbnails:!0,autoplay:!1};b?a.responsive=g:amznbase.isiOSDevice()?a.responsive=f:a.responsive=e;c&&(a.responsive=h);var k=tns(a);d.sliders.push(k);b=null==k?void 0:k.getInfo();b.nextButton.addEventListener("keyup",function(m){13!==m.keyCode&&13!==m.which||k.goTo("next")});b.prevButton.addEventListener("keyup",function(m){13!==m.keyCode&&13!==m.which||k.goTo("prev")});Array.from(b.navItems).forEach(function(m){m.addEventListener("keyup",
function(n){13!==n.keyCode&&13!==n.which||m.click()})})})},resized:function(){amznbase.isBPChanged()&&(this.sliders.forEach(function(d){d.destroy()}),this.sliders=[],this.initializeTinySlider())}},amznbase={hashLocation:"",isAuthor:document.querySelector('meta[name\x3d"mode"]'),excludeRef:document.querySelector('meta[name\x3d"excluderef"]'),isXS:!!window.matchMedia("(max-width: 374px)").matches,isS:!!window.matchMedia("(min-width: 375px) and (max-width: 767px)").matches,isM:!!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches,
isL:!!window.matchMedia("(min-width: 1024px) and (max-width: 1439px)").matches,isXL:!!window.matchMedia("(min-width: 1440px)").matches,isIpad:!!window.matchMedia("(max-width: 1023px)").matches,isDesk:!!window.matchMedia("(min-width: 1024px)").matches,bodyTag:document.body,navTag:document.querySelector(".primary-navigation__bottom"),scrollWidth:window.innerWidth-document.body.clientWidth,domainsList:".amazon.co.jp .amazon.ca .amazon.es .amazon.de .amazon.in .amazon.fr .amazon.it .amazon.co.uk .amazon.com".split(" "),
cookieList:[],performanceCookies:[],advertisingCookies:[],functionalCookies:[],isLoadMoreClicked:!1,oldListLength:"",facetList:{},dynamicFormGenericListData:{},isDynamicForm:!1,isUTMEnabled:!1,dynamicFormInitialDropDownList:[],dynamicFormInitialCheckboxList:[],dynamicFormDropdownMapping:[],invalidResponses:[400,401,403,404,500,502],amazonAccountObserver:"",primeAccountObserver:"",abAccountEle:document.getElementById("isB2B"),primeAccountEle:document.getElementById("business_prime_account"),personalizationContainer:document.getElementById("abm-personalization-container-id"),
isTouchStarted:!1,gpc:!1,allYTCustomThumbnail:document.querySelectorAll(".yt-custom-thumbnail--lightbox"),allCustomVideoPlayBtns:document.querySelectorAll(".custom-play-icon"),init:function(){var d=amznbase.getValueFromMetaTag("pagename"),a=document.querySelector(".userpreference-cookieconsent");this.initializeLoginObserver();this.abAccountCheck();this.componentDisplayRules();this.downVideoVolumeOnHighlight();amznbase.personalizationContainer&&this.initializePersonalizationObserver();0<amznbase.allCustomVideoPlayBtns.length&&
this.addVideoCustomPlayBtns();this.isSignInLink();this.ishopScotchCheck();this.linkWithHashClicked();this.hashPresent(!1,window.location.hash);this.ddMenus=[];this.toggleDropdowns();this.addEventListeners();this.getDeviceMode();this.handlePDFViewerCompatibility();this.increaseYoutubePerformance();a?this.setPreferenceCookies(!1):(this.setDefaultCookiePreferences(),this.setPreferenceCookies(!0));if(!amznbase.isAuthor&&"/"!==window.location.pathname&&d&&0>d.indexOf("error")){d=!1;if(0<=window.location.pathname.indexOf("/.noheader")||
0<=window.location.pathname.indexOf("/.noheadernofooter"))d=!0;this.addAliasURL(d)}document.addEventListener("click",function(b){amznbase.languageOptionsPopupListener(b)});document.addEventListener("keydown",function(b){if(13===b.which)amznbase.languageOptionsPopupListener(b);else if(b.target.closest(".languageOptionsModal__dialog__header__closeIcon")||b.target.closest(".languageOptionsModal__dialog__footer button"))b.shiftKey&&"Tab"===b.key?amznbase.trapFocusInsideModal(!0,b.target):"Tab"===b.key&&
amznbase.trapFocusInsideModal(!1,b.target),b.preventDefault()});this.setGpc();0<amznbase.allYTCustomThumbnail.length&&this.addYTCustomThumbnail()},isSignInLink:function(){var d=document.querySelectorAll(".signInLink:not(.excludeReturnTo)");d&&d.forEach(function(a){var b=a.href,c=amznbase.getUrlParameter("ref_",b);b&&(c=window.location.search?c?encodeURIComponent(window.location.href+"\x26ref_\x3d"+c):encodeURIComponent(window.location.href):c?encodeURIComponent(window.location.href+"?ref_\x3d"+c):
encodeURIComponent(window.location.href),a.href=amznbase.replaceQueryParam("openid.return_to",c,b))})},triggerHopScotch:function(){var d=amznbase.abAccountEle&&"true"===amznbase.abAccountEle.textContent,a=document.querySelector(".error-page");if(d||!amznbase.abAccountEle&&a&&"true"===amznbase.getParams(window.location.href).isb2b)this.isLoggedInUser();else{d=document.querySelector(".topnavbutton");var b;null==(b=document.querySelector(".signInLink"))||b.classList.remove("hide");d&&(b=document.querySelector(".abm-loader-container"),
a=document.querySelector(".topnavspinner"),amznbase.showhideelements(b,d,a))}},ishopScotchCheck:function(){if("true"===amznbase.getValueFromMetaTag("enabled_hopscotch")&&!amznbase.isAuthor){var d=document.querySelector("#hdnHsCallComplete");amznbase.setHiddenInputFacet(d,"Y","Y");this.triggerHopScotch();this.checkBPUser()}document.querySelector(".slider-container")&&customCarousel.init()},enableDropdownSearch:function(){document.querySelectorAll(".searchableDropdown").forEach(function(d){var a=d.querySelector(".cmp-form-options__wrapper__field"),
b=document.createElement("input");b.classList.add("searchableDropdown__input");b.setAttribute("type","text");var c=a.getAttribute("aria-labelledby");b.setAttribute("aria-labelledby",c);if(c=a.querySelector(".active"))c.classList.add("activeLiVisibility"),b.classList.add("inputVisibility"),b.setAttribute("placeholder",c.innerText);d.insertBefore(b,a);b.addEventListener("keyup",function(e){amznbase.triggerDropdownSearch(e)});b.addEventListener("click",function(e){amznbase.triggerDropdownSearch(e)})})},
triggerDropdownSearch:function(d){amznbase.resetActiveSearchDropdowns();if(d.target.parentElement){var a;var b=d.target.parentElement.querySelector(".cmp-form-options__wrapper__field");var c=b.querySelectorAll("span");var e=(a=b?b.querySelector(".active"):d.target.parentElement.querySelector("span.active"))?a.querySelector(".arrows"):"";if("keyup"===d.type&&b){b.classList.add("active");a.classList.remove("activeLiVisibility");var f=b.parentElement.querySelector(".cmp-form-options__wrapper__selected.active");
c.forEach(function(g){0>g.innerText.toString().toLowerCase().indexOf(d.target.value.toLowerCase())||g.classList.contains("mapHide")?g.classList.add("hide"):g.classList.remove("hide");4>=b.childElementCount-b.querySelectorAll("span.hide").length&&b.classList.contains("addScroll")?b.classList.remove("addScroll"):4<b.childElementCount-b.querySelectorAll("span.hide").length&&b.classList.add("addScroll")});b.querySelectorAll("span.hide").length===b.childElementCount?(b.classList.remove("active"),b.classList.remove("addScroll"),
(a=b.querySelector(".active"))&&a.classList.remove("hide"),f&&(f.classList.add("hide"),e=f.querySelector(".arrows"),a&&e&&a.appendChild(e))):b.classList.contains("active")&&f&&e&&(f.appendChild(e),f.classList.remove("hide"))}else"click"===d.type&&b&&(amznbase.resetActiveSearchDropdowns(d.target),""===d.target.value&&(b.querySelectorAll("span").forEach(function(g){g&&g.classList.contains("hide")&&g.classList.remove("hide")}),a&&(d.target.setAttribute("placeholder",a.innerText),e&&d.target.nextElementSibling&&
!d.target.nextElementSibling.classList.contains("arrows")&&(e.classList.add("activeArrow"),d.target.after(e)),b.classList.add("active"))));document.querySelectorAll(".cmp-form-options__wrapper__field--drop-down.addScroll").forEach(function(g){g&&g.parentElement!==b.parentElement&&g.classList.remove("addScroll")})}},resetActiveSearchDropdowns:function(d,a){document.querySelectorAll(".cmp-form-options__wrapper__field--drop-down").forEach(function(b){if(b&&b.classList.contains("active")&&(b.classList.remove("active"),
!b.parentElement.classList.contains("searchableDropdown"))){var c=b.parentElement.querySelector(".cmp-form-options__wrapper__selected"),e=c.querySelector(".arrows");c&&c.classList.contains("active")&&e&&(c.classList.remove("active"),b.querySelector(".active").appendChild(e))}b&&b.parentElement&&(c=b.parentElement.querySelector(".searchableDropdown__input"),d&&c&&c!==d&&(c.value=""),!d&&a&&c&&(c.value="",b.classList.contains("active")||b.querySelectorAll("span").forEach(function(f){f&&f.classList.contains("hide")&&
f.classList.remove("hide")})),b&&4<b.childElementCount&&!b.classList.contains("addScroll")&&b.classList.add("addScroll"))})},handlePDFViewerCompatibility:function(){var d=document.querySelectorAll(".cmp-pdfviewer");this.isIE11()&&d.forEach(function(a){if(a&&(a.querySelector(".cmp-pdfviewer__content").classList.add("hide"),a=a.querySelector(".cmp-pdfviewer__ieErrorBlock"),a.classList.remove("hide"),a=a.querySelector(".cmp-pdfviewer__ieErrorBlock__downloadLink"),a.hasAttribute("href"))){var b=a.getAttribute("href");
b&&(b=b.replace(".html",""));a.setAttribute("href",b)}})},focusElementOnListRefresh:function(d,a){d&&amznbase.isLoadMoreClicked&&amznbase.oldListLength&&d.childNodes.forEach(function(b,c){c===amznbase.oldListLength+1&&(a?b.querySelector("a").focus():b.firstChild.focus(),amznbase.isLoadMoreClicked=!1)})},deletePreferenceCookieList:function(d){amznbase.cookieList.length&&(d?(!d.performance&&amznbase.performanceCookies&&amznbase.deleteCookieList(amznbase.performanceCookies),!d.advertising&&amznbase.advertisingCookies&&
amznbase.deleteCookieList(amznbase.advertisingCookies),!d.functional&&amznbase.functionalCookies&&amznbase.deleteCookieList(amznbase.functionalCookies)):(d=amznbase.performanceCookies.concat(amznbase.advertisingCookies,amznbase.functionalCookies),amznbase.deleteCookieList(d)))},setPreferenceCookies:function(d,a){var b=this.getUrlParameter("ref"),c=this.getUrlParameter("ref_"),e=this.getUrlParameter("ef_id"),f=document.querySelectorAll("a"),g=document.querySelector('meta[name\x3d"lead-data"]'),h=this.getUrlParameter("geo-pref"),
k=amznbase.getValueFromMetaTag("events_page"),m=amznbase.getCookie("userconsent");m=m?JSON.parse(m):void 0;a?amznbase.deletePreferenceCookieList(m):amznbase.makeHttpRequest("/content/amzn-biz/_jcr_content/servlets/glist.json?listPath\x3d/etc/acs-commons/lists/cookie-categorization","GET",function(u,x){if(!amznbase.invalidResponses.includes(u)&&(amznbase.cookieList=JSON.parse(x),amznbase.cookieList.length)){var y;amznbase.cookieList.map(function(B){(y=B.text?B.text.toLowerCase():void 0)&&"performance"===
y&&(amznbase.performanceCookies=B.value.split(","));y&&"advertising"===y&&(amznbase.advertisingCookies=B.value.split(","));y&&"functional"===y&&(amznbase.functionalCookies=B.value.split(","))});amznbase.deletePreferenceCookieList(m)}});if(m&&m.timestamp&&!m.cookieVersion){var n=new Date(m.timestamp),t=document.querySelector("#preferences-cookie-consent");t=t&&t.getAttribute("data-consentExpTime")?parseInt(t.getAttribute("data-consentExpTime"),10):12;n=new Date(n.getFullYear(),n.getMonth()+t,n.getDate());
amznbase.deleteCookie("userconsent");t="expires\x3d"+n.toUTCString();m.timestamp=n.getTime();m.cookieVersion="v1";document.cookie="userconsent\x3d"+JSON.stringify(m)+";"+t+";path\x3d/"}h&&(amznbase.setCookie("ab-geo-pref","true"),h=amznbase.getValueFromMetaTag("language"),n=amznbase.getValueFromMetaTag("langpreference"),amznbase.settingLanguageCookies(h,n));k&&amznbase.eventsPageHrefUpdateToCountryLinks();amznbase.getCookie("ab-geo-pref")&&amznbase.appendGeoParamToCountryLinks();d?e&&amznbase.setCookie("ef_id",
e):m&&(m.advertising?e&&amznbase.setCookie("ef_id",e):amznbase.deleteCookie("ef_id"),m.functional&&amznbase.getCookie("authCookieAEM")&&Object.keys(amznbase.facetList).length&&amznbase.setCookie("facets",JSON.stringify(amznbase.facetList)));-1<document.referrer.indexOf(window.location.host)?this.getUrlParameter("langredirect")||amznbase.setRefValue("refInternal",b,c):amznbase.setRefValue("ref_",b,c);g?amznbase.loadScript(g.dataset.leadcodeSource,function(){new LeadCode({marketingChannel:g.dataset.leadcodeChannel,
locale:g.dataset.leadcodeCountry,product:g.dataset.leadcodeProduct,appendix:g.dataset.leadcodeAppendix});f.length&&amznbase.updateUrl(f,a)}):f.length&&amznbase.updateUrl(f,a)},loadScript:function(d,a){var b=document.createElement("script");b.type="text/javascript";b.readyState?b.onreadystatechange=function(){if("loaded"===b.readyState||"complete"===b.readyState)b.onreadystatechange=null,a()}:b.onload=function(){a()};b.src=d;document.getElementsByTagName("head")[0].appendChild(b)},removeBodyScroll:function(){amznbase.bodyTag.classList.add("stopScrollY");
if(1024<window.innerWidth){amznbase.bodyTag.style.paddingRight=amznbase.scrollWidth+"px";var d=amznbase.navTag;d&&(d.style.paddingRight=amznbase.scrollWidth+"px")}},addBodyScroll:function(){amznbase.bodyTag.classList.remove("stopScrollY");amznbase.bodyTag.removeAttribute("style");var d=amznbase.navTag;d&&d.removeAttribute("style")},isIE11:function(){return!!window.msCrypto},isiOSDevice:function(){var d="iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod;MacIntel".split(";");if(navigator.platform){for(;d.length;)if(navigator.platform===
d.pop()&&navigator.maxTouchPoints)return!0;return!1}},inViewport:function(d,a){var b=d.getBoundingClientRect(),c=window.innerWidth||document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return a?0<=b.top&&0<=b.left&&b.right<=c&&b.bottom<=e:b.top>=-d.offsetHeight&&b.left>=-d.offsetWidth&&b.right<=c+d.offsetWidth&&b.bottom<=e+d.offsetHeight},ecidAndSessionIdAssignment:function(){var d="",a="";if("undefined"!==typeof _satellite&&null!==_satellite&&(d=_satellite.getVisitorId().getMarketingCloudVisitorID(),
document.querySelectorAll(".ecidInput").forEach(function(c){c.value=d}),d)){var b=document.querySelectorAll(".form-hidden-item");b&&b.forEach(function(c){"true"===c.getAttribute("data-auto-email")&&(c.value=d+"@amazon.com")});document.querySelectorAll("a[data-bpuser]").forEach(function(c){var e=c.href;e&&(e=-1<e.indexOf("?")?e+"\x26ecid\x3d"+d+"\x26abreg_ecid\x3d"+d:e+"?ecid\x3d"+d+"\x26abreg_ecid\x3d"+d,c.href=e)})}amznbase.getCookie("session-id")&&(a=amznbase.getCookie("session-id"),document.querySelectorAll("input[name\x3dsession_id]").forEach(function(c){c&&
(c.value=a)}))},addAliasURL:function(d){var a=amznbase.getValueFromMetaTag("vanityurl"),b=window.location.origin+window.location.pathname;a&&!a.startsWith("/")&&(a="/"+a);if(!a||a&&window.location.pathname!==a.toLowerCase())if(a=document.querySelector("html").getAttribute("lang")){a=a.toLowerCase();var c=document.querySelector("meta[lang\x3d"+a+"]");a=window.location.search;c&&((c=c.getAttribute("href"))&&b!==c&&0>c.indexOf("/error/")&&!d?a?window.history.pushState("","",c+a):window.history.pushState("",
"",c):c&&b!==c&&0>c.indexOf("/error/")&&d&&("/.noheader"===window.location.pathname||"/.noheadernofooter"===window.location.pathname)&&window.history.pushState("","",window.location.origin))}},setRefValue:function(d,a,b){a?this.setCookie(d,a):b&&this.setCookie(d,b)},getDeviceMode:function(){window.isXS=!!window.matchMedia("(max-width: 374px)").matches;window.isS=!!window.matchMedia("(min-width: 375px) and (max-width: 767px)").matches;window.isM=!!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches;
window.isL=!!window.matchMedia("(min-width: 1024px) and (max-width: 1439px)").matches;window.isXL=!!window.matchMedia("(min-width: 1440px)").matches;window.isIpad=!!window.matchMedia("(max-width: 1023px)").matches;window.isDesk=!!window.matchMedia("(min-width: 1024px)").matches},isDesktop:function(){return this.isIpad!==window.isIpad||this.isDesk!==window.isDesk?(this.isIpad=window.isIpad,this.isDesk=window.isDesk,!0):!1},isBPChanged:function(){return this.isXS!==window.isXS||this.isS!==window.isS||
this.isM!==window.isM||this.isL!==window.isL||this.isXL!==window.isXL?(this.isXS=window.isXS,this.isS=window.isS,this.isM=window.isM,this.isL=window.isL,this.isXL=window.isXL,!0):!1},debounce:function(d,a,b){var c;return function(){var e=this,f=arguments,g=b&&!c;clearTimeout(c);c=setTimeout(function(){c=null;b||d.apply(e,f)},a);g&&d.apply(e,f)}},throttle:function(d,a){var b=!1;return function(){b||(d.call(),b=!0,setTimeout(function(){b=!1},a))}},addEventListeners:function(){var d=this,a=document.body;
a.addEventListener("mousedown",function(){a.classList.add("using-mouse");a.classList.remove("using-tab")});a.addEventListener("keydown",function(b){9===b.keyCode&&(a.classList.remove("using-mouse"),a.classList.add("using-tab"))});window.addEventListener("resize",this.debounce(function(){d.getDeviceMode();if(d.isDesktop()){var b=document.querySelector(".languageOptionsModal");b&&!b.classList.contains("hide")&&(b.classList.add("hide"),document.body.classList.remove("stopScrollY"));d.ddMenus.forEach(function(c){c.classList.contains("open")&&
(c.classList.remove("open"),c.querySelector("button")&&c.querySelector("button").setAttribute("aria-expanded",!1))})}},0));window.addEventListener("hashchange",this.hashChanged.bind(this))},appendUrlParams:function(d,a,b,c){var e=window.location.search;!b&&e&&(e=amznbase.removeQueryParam("geo-nav",e));!c&&e&&(e=amznbase.removeQueryParam("geo-pref",e));if(a){if(window.isL||window.isXL)e?(e=d.match(/\?./)?e.replace("?","\x26"):e,window.location.href=d+e):window.location.href=d}else e?(e=d.match(/\?./)?
e.replace("?","\x26"):e,window.location.href=d+e):window.location.href=d},settingLanguageCookies:function(d,a){var b;window.location.hostname&&(b=window.location.hostname.split(".").slice(1).join("."));var c=new Date;c.setYear(c.getFullYear()+15);d&&a&&b&&c&&(document.cookie="lc-main\x3d"+a+";domain\x3d."+b+";expires\x3d"+c.toUTCString()+";path\x3d/",document.cookie="lc-acb"+d.split("_")[1].toLowerCase()+"\x3d"+a+";domain\x3d."+b+";expires\x3d"+c.toUTCString()+";path\x3d/")},toggleDropdowns:function(){var d=
this;document.querySelectorAll(".nav-menu-dropdown, .mobile-nav-dropdown, .footer-menu-dropdown").forEach(function(a){d.ddMenus.push(a)});d.ddMenus.length&&(document.querySelectorAll(".languageContainer__options__list__item input").forEach(function(a){var b=a.dataset.locale,c=a.dataset.cookieValue;if(b){if(amznbase.isAuthor){var e=window.location.pathname;if(e&&1<e.length&&(e=e.split("/"),e.length)){e[4]=b.split("_")[0].toLowerCase();var f=e.join("/")}}else e=b.replace("_","-").toLowerCase(),(e=document.querySelector("meta[lang\x3d"+
e+"]"))&&(e=e.getAttribute("href"))&&(f=e);f&&(a.value=f)}document.querySelectorAll(".languageContainer__footer").forEach(function(g){g.addEventListener("click",function(){"langauageoptions"!==a.name&&"footerlangauageoptions"!==a.name||!a.checked||a.closest("li").classList.contains("selected")||(amznbase.settingLanguageCookies(b,c),-1===window.location.search.indexOf("langredirect")&&0>a.value.indexOf("langredirect")&&(a.value+="?langredirect\x3dtrue"),amznbase.appendUrlParams(a.value,!0,!0))})})}),
this.ddMenus.map(function(a){var b=a.querySelector("button");b&&b.addEventListener("click",function(){d.hideshowmenu(a,b)})}))},hideshowmenu:function(d,a){d.classList.contains("countrydropdown")?this.hideshowcontent(d,a):window.isL||window.isXL?this.hideshowcontent(d,a):(document.querySelector(".languageOptionsModal").classList.remove("hide"),document.body.classList.add("stopScrollY"),document.querySelector(".languageContainer")&&this.updateFocusInLangModel(document.querySelector(".languageOptionsModal:not(.hide)")))},
hideshowcontent:function(d,a){var b=this;d.classList.contains("open")?(a.setAttribute("aria-expanded",!1),d.classList.remove("open")):(b.ddMenus.forEach(function(c){c.classList.remove("open");c.querySelector("button")&&c.querySelector("button").setAttribute("aria-expanded",!1)}),d.classList.add("open"),a.setAttribute("aria-expanded",!0),d.querySelector(".languageContainer")&&b.updateFocusInLangModel(d));setTimeout(function(){b.outclick(d)})},outclick:function(d){this.listener&&window.removeEventListener("click",
this.listener);this.listener=function(a){a.target.classList.contains("menulabel")||a.target.parentNode.classList.contains("menulabel")||a.target.closest(".languageContainer")||d.classList.remove("open")};window.addEventListener("click",this.listener.bind(this))},updateFocusInLangModel:function(d){d&&(d=d.querySelector(".languageContainer__options__list__item input"))&&d.focus()},trapFocusInsideModal:function(d,a){var b;a&&a.closest(".languageOptionsModal__dialog__header__closeIcon")?(a=a.parentNode.parentNode,
d&&a?b=a.querySelector(".languageOptionsModal__dialog__footer button"):!d&&a&&(b=a.querySelector(".languageContainer__options__list__item input"))):a&&a.closest(".languageOptionsModal__dialog__footer button")&&(a=a.parentNode.parentNode,d&&a?(d=a.querySelectorAll(".languageContainer__disclaimer a"),b=d[d.length-1]?d[d.length-1]:a.querySelector(".languageContainer__options__list__item input")):!d&&a&&(b=a.querySelector(".languageOptionsModal__dialog__header__closeIcon")));b&&b.focus({focusVisible:!0})},
hashChanged:function(){this.hashPresent(!1,window.location.hash)},linkWithHashClicked:function(){var d=this;document.querySelectorAll('a[href*\x3d"#"]').forEach(function(a){var b=a.getAttribute("target");b&&"_self"!==b||a.addEventListener("click",function(c){this.hashLocation="#"+c.currentTarget.getAttribute("href").split("#")[1];window.location.pathname===a.pathname&&(c.preventDefault(),window.history.pushState("","",this.hashLocation));d.hashPresent(!0,this.hashLocation)})})},hashPresent:function(d,
a){if(a&&document.querySelectorAll(a).length){var b=this,c=d?100:500,e=document.querySelector("#sticky-navigation__bottom"),f=document.querySelector(".primary-navigation__top");window.history&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual");d?f&&(f.style.display="none"):window.scroll(0,1);setTimeout(function(){var g=0;e&&(g=e.offsetHeight);var h=window.pageYOffset+document.querySelector(a).getBoundingClientRect().top;b.scrollTo(h-g+1,500);f&&(f.style.display="block")},
c)}},scrollTo:function(d,a){var b=document.scrollingElement||document.documentElement,c=b.scrollTop,e=d-c,f=+new Date,g=function(){var h=+new Date-f,k=parseInt;var m=h/(a/2);1>m?m=e/2*m*m+c:(m--,m=-e/2*(m*(m-2)-1)+c);b.scrollTop=k(m,10);h<a?requestAnimationFrame(g):b.scrollTop=d};g()},replaceQueryParam:function(d,a,b){b=b.replace(new RegExp("([?;\x26])"+d+"[^\x26;]*[;\x26]?"),"$1").replace(/&$/,"");return(2<b.length?b+"\x26":"?")+(a?d+"\x3d"+a:"")},removeQueryParam:function(d,a){var b=a.split("?")[0];
a=-1!==a.indexOf("?")?a.split("?")[1]:"";if(""!==a){var c=a.split("\x26");for(var e=c.length-1;0<=e;--e)a=c[e].split("\x3d")[0],a===d&&c.splice(e,1);b=b+"?"+c.join("\x26")}if(b&&"?"!==b&&"\x26"!==b)return b},updateUrlParameter:function(d,a,b){var c=d.indexOf("#"),e=-1===c?"":d.substr(c);d=-1===c?d:d.substr(0,c);c=new RegExp("([?\x26])"+a+"\x3d.*?(\x26|$)","i");var f=-1!==d.indexOf("?")?"\x26":"?";null===b?(d="ref"===a||"ref_"===a?d.replace(new RegExp("([?\x26]?)"+a+"\x3d[^\x26?]*","i"),""):d.replace(new RegExp("([?\x26]?)"+
a+"\x3d[^\x26]*","i"),""),"?"===d.slice(-1)&&(d=d.slice(0,-1)),-1===d.indexOf("?")&&(d=d.replace(/&/,"?"))):d=d.match(c)?d.replace(c,"$1"+a+"\x3d"+b+"$2"):d+f+a+"\x3d"+b;return d+e},setCookie:function(d,a,b,c){var e=new Date;b?(c&&e.setTime(e.getTime()+864E5*b),e.setTime(e.getTime()+36E5*b),b="expires\x3d"+e.toUTCString(),document.cookie=d+"\x3d"+a+";"+b+";path\x3d/"):document.cookie=d+"\x3d"+a+";path\x3d/"},getCookie:function(d){d=decodeURIComponent(d+"\x3d");for(var a=decodeURIComponent(document.cookie).split(";"),
b=0;b<a.length;b+=1){for(var c=a[b];" "===c.charAt(0);)c=c.substring(1);if(0===c.indexOf(d))return c.substring(d.length,c.length)}return null},deleteCookie:function(d,a){amznbase.getCookie(d)&&(document.cookie=d+"\x3d;path\x3d/"+(a?";domain\x3d"+a:"")+";expires\x3dThu, 01 Jan 1970 00:00:00 UTC")},deleteCookieList:function(d){d.forEach(function(a){amznbase.domainsList.forEach(function(b){amznbase.deleteCookie(a,b)})})},getUrlParameter:function(d,a){d=d.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");d=
new RegExp("[\\?\x26]"+d+"\x3d([^\x26#]*)");a=a?d.exec(a):d.exec(window.location.search);return null===a?"":decodeURIComponent(a[1].replace(/\+/g," "))},updateUrl:function(d,a){var b=amznbase.getCookie("ef_id"),c=amznbase.getCookie("ref_"),e=amznbase.getCookie("refInternal"),f=document.querySelector("input[name\x3dref_]"),g=this.getUrlParameter("retainRef"),h=this.getUrlParameter("tag"),k=/^(http|https):\/\//i;c&&f&&(f.value=c);c||e&&(c=e);if(c||b){if(c&&!b&&amznbase.excludeRef)return!1;var m=c;d.forEach(function(n){c=
m;var t=n.getAttribute("href");if(t){var u=t.toString().replace("https://","").replace("http://","");n.setAttribute("data-link-name",n.text+"|"+u);u=amznbase.getUrlParameter("ld",t);var x=!1,y=n.closest(".hasOverrideRef");y&&y.dataset.overrideReflink&&"true"===y.dataset.overrideReflink&&(x=!0);"true"===n.dataset.overrideReflink||x?0<t.indexOf("ref\x3d")||0<t.indexOf("ref_\x3d")?t=0<t.indexOf("?")?t+"\x26retainRef\x3dtrue":t+"?retainRef\x3dtrue":k.test(t)&&(g&&(c=e),c&&0<t.indexOf("ref\x3d")&&(t=amznbase.updateUrlParameter(t,
"ref",null)),amznbase.excludeRef||(t=u&&-1===c.indexOf(u)?amznbase.updateUrlParameter(t,"ref_",c+"_"+u):amznbase.updateUrlParameter(t,"ref_",c)),t=amznbase.updateUrlParameter(t,"ef_id",b)):k.test(t)&&(g&&(c=e),c&&0<t.indexOf("ref\x3d")&&0>t.indexOf("href\x3d")&&0>t.indexOf("pref\x3d")&&(t=amznbase.updateUrlParameter(t,"ref",null)),amznbase.excludeRef||(t=u&&-1===c.indexOf(u)?amznbase.updateUrlParameter(t,"ref_",c+"_"+u):amznbase.updateUrlParameter(t,"ref_",c)),t=amznbase.updateUrlParameter(t,"ef_id",
b));k.test(t)&&h&&(t=amznbase.updateUrlParameter(t,"tag",h));n.setAttribute("href",t)}a||n.addEventListener("click",function(){amznbase.saveEcidParams(n,k)})},this)}else d.forEach(function(n){var t=n.getAttribute("href");if(null!=t){var u=t.toString().replace("https://","").replace("http://","");n.setAttribute("data-link-name",n.text+"|"+u)}if(t&&k.test(t)){u=amznbase.getUrlParameter("ref",t);var x=amznbase.getUrlParameter("ref_",t),y=amznbase.getUrlParameter("ld",t);u?t=y&&-1===u.indexOf(y)?amznbase.updateUrlParameter(t,
"ref",u+"_"+y):amznbase.updateUrlParameter(t,"ref",u):x&&(t=y&&-1===x.indexOf(y)?amznbase.updateUrlParameter(t,"ref_",x+"_"+y):amznbase.updateUrlParameter(t,"ref_",x));t&&h&&(t=amznbase.updateUrlParameter(t,"tag",h));n.setAttribute("href",t)}a||n.addEventListener("click",function(){amznbase.saveEcidParams(n,k)})})},saveEcidParams:function(d,a){var b=window.location.hostname,c=(d=d.href)?(new URL(d)).hostname:"";if(d&&b!=c&&a.test(d)){a=document.location.href;b=amznbase.getUrlParameter("ecid",d);c=
+new Date;var e=amznbase.getValueFromMetaTag("language"),f=amznbase.getUrlParameter("ref_",d)?amznbase.getUrlParameter("ref_",d):amznbase.getUrlParameter("ref",d);d=amznbase.getValueFromMetaTag("cf-url")+"/1x1.png?type\x3dctaclicks\x26referrerurl\x3d"+a+(f?"\x26cpcode\x3d"+f:"")+(b?"\x26ucode\x3d"+b:"")+"\x26destinationUrl\x3d"+d+"\x26timestamp\x3d"+c+"\x26locale\x3d"+e;amznbase.makeHttpRequest(d,"GET",function(g){amznbase.invalidResponses.includes(g)})}},showhideformelements:function(d,a){d=JSON.parse(d.dataset.dependentfieldlist);
d.length&&"true"!==amznbase.isDynamicForm&&d.forEach(function(b){var c=b.dependentValue,e=b.dependentField;if(c&&e){(b=document.querySelector('[data-name\x3d"'+e+'"]'))||(b=document.querySelector('[name\x3d"'+e+'"]'));var f=null;if(b&&"DIV"==b.tagName){if(f=b.closest(".cmp-form-options")){f.parentElement.classList.add("hide");e=f.querySelector("span.active");var g=e.getAttribute("data-content"),h=f.querySelector("input");h&&h.setAttribute("value","");g&&e.setAttribute("data-value","");a&&a.dataset.value&&
a.dataset.value.toLowerCase()===c.toLowerCase()&&(f.parentElement.classList.remove("hide"),g&&(e.setAttribute("data-value",g),h.setAttribute("value",g)))}JSON.parse(b.dataset.dependentfieldlist).length&&(c=b.querySelector("span.active"))&&b&&amznbase.showhideformelements(b,c)}else if(!b||"INPUT"!=b.tagName||"radio"!=b.type&&"checkbox"!=b.type)b&&(f=b.closest(".cmp-form-text"))&&(f.parentElement.classList.add("hide"),b.disabled=!0,a&&a.dataset.value&&a.dataset.value.toLowerCase()===c.toLowerCase()&&
(f.parentElement.classList.remove("hide"),b.disabled=!1));else if(e=document.querySelectorAll('[name\x3d"'+e+'"]'),f=b.closest(".cmp-form-options"))f.parentElement.classList.add("invisible"),e.forEach(function(k){k.disabled=!0}),a&&a.dataset.value&&a.dataset.value.toLowerCase()===c.toLowerCase()&&(f.parentElement.classList.remove("invisible"),e.forEach(function(k){k.disabled=!1}))}})},customDropdown:function(d,a,b,c){d.classList.contains("abm-ul-select")||d.classList.add("abm-ul-select");var e=0,
f=document.createElement("img");f.id="ul-arrow"+a;f.setAttribute("aria-hidden","true");f.src=amznbase.isAuthor?"/etc.clientlibs/amzn-biz/clientlibs/clientlib-site/resources/images/icons/small-chevron-down.svg":amznbase.getValueFromMetaTag("cf-domain")+"/etc.clientlibs/amzn-biz/clientlibs/clientlib-site/resources/images/icons/small-chevron-down.svg";f.alt="arrow";f.className="arrows";var g=d.children,h=-1;g&&4<g.length&&(d.classList.contains("addScroll")||d.classList.add("addScroll"));f.addEventListener("click",
function(){f.classList.contains("activeArrow")?f.classList.remove("activeArrow"):f.classList.add("activeArrow")});Array.from(g).forEach(function(k,m){k&&(k.classList&&k.classList.contains("active")&&(e=1,k.appendChild(f)),k.matches(".dropdown-placeholder.active")&&1<d.querySelectorAll("span.active").length&&k.classList.remove("active"));k.addEventListener("click",function(n){if(d.previousElementSibling&&""!==d.previousElementSibling.textContent&&n.target.classList.contains("disabled"))return!1;b.ulElements.forEach(function(u,
x){a!==x&&u.previousElementSibling&&u.previousElementSibling.classList.contains(b.selectedElemClassName)&&u.parentNode.removeChild(u.previousElementSibling);a!==x&&u.classList.contains("active")&&(u.classList.remove("active"),Array.from(u.children).forEach(function(y){y.classList.contains("active")&&y.append(f.cloneNode(!0))}))});d.previousElementSibling&&d.previousElementSibling.classList.contains(b.selectedElemClassName)&&d.parentNode.removeChild(d.previousElementSibling);n=document.createElement("div");
n.id="selected--abm-ul-select"+a;n.className=b.selectedElemClassName;d.before(n);n=d.previousElementSibling;d.classList.contains("active")?(d.classList.remove("active"),d.setAttribute("aria-expanded",!1)):(d.classList.add("active"),d.setAttribute("aria-expanded",!0),4<d.childElementCount&&d.classList.add("addScroll"));k.classList.contains("disabled")||(Array.from(g).forEach(function(u){var x=u.innerText;u.innerHTML="";u.innerText=x;u.classList.remove("active")}),k.classList.contains("active")?(k.blur(),
k.classList.remove("active")):(k.focus(),k.classList.add("active"),h=m),d.nextElementSibling&&(d.parentNode.classList.contains("reduce-padding-form-field")&&d.parentNode.parentNode.classList.add("reduce-padding-form-field"),d.parentNode.removeChild(d.nextElementSibling)),d.classList.contains("hovered")&&d.classList.remove("hovered"),"true"===amznbase.isDynamicForm&&document.querySelectorAll(".cmp-form-options__wrapper__field--drop-down").forEach(function(u){if(u&&u.parentElement&&u.parentElement.classList.contains("searchableDropdown")){var x=
u.parentElement.querySelector(".searchableDropdown__input"),y=u.querySelector(".active");x&&y&&!u.classList.contains("active")&&(x.setAttribute("placeholder",y.innerText),x.value="")}}));var t=k.textContent;d.classList.contains("active")?(n.textContent=t,n.classList.add("active"),n.appendChild(f),d.setAttribute("aria-expanded",!0)):(n.textContent="",n.classList.remove("active"),Array.from(g).forEach(function(u){if(u.classList.contains("active")){u.appendChild(f);if(c){var x=u.getAttribute("data-value");
x?document.querySelector('[data-activetab\x3d "'+x+'"]').click():(x=document.querySelector(".abm-search-result__tabs-wrapper__tablist__tab"))&&x.innerText&&x.innerText.trim()===u.innerText&&x.click()}d.classList.contains("publish")&&amznbase.showhideformelements(d,u)}}.bind(this)));b.errorMessage&&b.submitClicked&&(b.getSelectedValues(b.selectedTask,b.selectedIndustry),b.checkValidity(b.selectedTask,b.selectedIndustry));"true"===amznbase.isDynamicForm&&amznbase.handleDynamicReq()}.bind(this));k.addEventListener("mouseover",
function(){k.parentNode.classList.contains("active")&&Array.from(k.parentNode.children).forEach(function(n){n.classList.contains("active")&&(n.classList.add("inactive"),n.parentNode.classList.add("hovered"))})});k.addEventListener("mouseleave",function(){k.parentNode.classList.contains("active")&&Array.from(k.parentNode.children).forEach(function(n){n.classList.contains("active")&&(n.classList.remove("inactive"),n.parentNode.classList.remove("hovered"))})});k.addEventListener("keydown",function(n){h=
-1;parent=k.parentElement;if(k.classList.contains("active"))if(38===n.which||40===n.which){var t=k.previousElementSibling,u=k.nextElementSibling;38===n.which&&k.classList.contains("active")&&t&&!t.classList.contains("disabled")&&(k.click(),k.classList.remove("active"),t.classList.add("active"),t.click());40===n.which&&(k.classList.contains("active")&&u&&(k.click(),k.classList.remove("active"),u.classList.add("active"),u.click()),k.classList.contains("disabled")&&u.click())}else 13===n.which&&parent.classList.contains("abm-ul-select")&&
(n.target.classList.add("active"),n.target.click());else 13===n.which&&parent.classList.contains("abm-ul-select")&&(n.target.classList.add("active"),n.target.click())});k.addEventListener("focusout",function(n){var t=k.parentElement;if("SPAN"===k.tagName&&t.classList.contains("abm-ul-select")){if(null==n.relatedTarget||n.relatedTarget.parentElement!=t&&n.relatedTarget.parentElement==t.parentElement)return!1;n.relatedTarget.parentElement!=t&&(amznbase.resetActiveSearchDropdowns(!1,!0),t.previousElementSibling&&
amznbase.closeSiblingUlSelect(t.previousElementSibling))}})}.bind(this));document.addEventListener("focusout",function(k){if(k.target.classList.contains("searchableDropdown__input")){var m=k.target.parentElement.querySelector(".abm-ul-select");null!=k.relatedTarget&&k.relatedTarget.parentElement!=m&&(amznbase.resetActiveSearchDropdowns(!1,!0),amznbase.closeSiblingUlSelect(k.target.nextElementSibling))}});!e&&d.firstElementChild&&(d.firstElementChild.classList.add("active"),d.firstElementChild.appendChild(f));
document.addEventListener("click",function(k){if(d.classList.contains("abm-ul-select")){if("SPAN"===k.target.tagName||"INPUT"===k.target.tagName||k.target.classList.contains("activeArrow"))return"INPUT"===k.target.tagName&&d.classList.contains("active")&&amznbase.resetActiveSearchDropdowns(!1,!0),!1;"true"===amznbase.isDynamicForm?amznbase.resetActiveSearchDropdowns(!1,!0):(f.classList.remove("activeArrow"),0<=h&&(d.children[h].classList.add("active"),d.children[h].click(),h=-1),d.classList.remove("active"));
d.setAttribute("aria-expanded",!1);d.previousElementSibling&&d.previousElementSibling.classList.contains(b.selectedElemClassName)&&(k=d.previousElementSibling,k.classList.remove("active"),k.innerHTML="");Array.from(g).forEach(function(m){m.children.length&&m.firstElementChild.parentNode.removeChild(m.firstElementChild);m.classList.contains("active")&&m.appendChild(f)})}})},closeSiblingUlSelect:function(d){if(d){var a=document.createElement("img");a.id="ul-arrow"+d.id.split("selected--abm-ul-select")[1];
a.src=amznbase.isAuthor?"/etc.clientlibs/amzn-biz/clientlibs/clientlib-site/resources/images/icons/small-chevron-down.svg":amznbase.getValueFromMetaTag("cf-domain")+"/etc.clientlibs/amzn-biz/clientlibs/clientlib-site/resources/images/icons/small-chevron-down.svg";a.alt="arrow icon";a.className="arrows";d.classList.remove("active");(firstChild=d.nextElementSibling)&&firstChild.firstElementChild&&!firstChild.querySelector(".arrows")&&firstChild.querySelector("span.active").append(a)}},serializeArray:function(d){for(var a=
[],b=0;b<d.elements.length;b++){var c=d.elements[b];if(c.name&&!c.disabled&&"file"!==c.type&&"reset"!==c.type&&"submit"!==c.type&&"button"!==c.type)if("select-multiple"===c.type)for(var e=0;e<c.options.length;e++)c.options[e].selected&&a.push({name:c.name,value:c.options[e].value});else("checkbox"!==c.type&&"radio"!==c.type||c.checked)&&a.push({name:c.name,value:c.value})}return a},getParams:function(d){var a={};d.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(b,c,e){a[c]=decodeURIComponent(e).replace(/\+/g,
" ")});return a},makeHttpRequest:function(d,a,b,c){var e=new XMLHttpRequest;e.overrideMimeType("application/json");e.open(a,d,!0);c&&e.setRequestHeader("Content-Type","application/json;charset\x3dUTF-8");e.onload=function(){var f=e.status;200===f||201===f?e.response&&b(f,e.response):b(e.status)};e.onerror=function(){b(e.status)};c?e.send(c):e.send(null)},getValueFromMetaTag:function(d){var a=document.getElementsByTagName("meta");if(a)for(var b=0;b<a.length;b+=1)if(a[b].getAttribute("property")===
d)return a[b].getAttribute("content");return""},languageOptionsPopupListener:function(d){if(d.target.closest(".languageOptionsModal__dialog__header__closeIcon svg")||d.target.closest(".languageOptionsModal__dialog__header__closeIcon"))d.target.closest(".languageOptionsModal").classList.add("hide"),document.body.classList.remove("stopScrollY");if(d.target.matches(".languageOptionsModal__dialog__footer button")){d.preventDefault();var a=document.querySelectorAll(".languageContainer__options__list__item input");
a&&a.forEach(function(b){if(b.closest("li").classList.contains("selected"))return d.target.closest(".languageOptionsModal").classList.add("hide"),document.body.classList.remove("stopScrollY"),!1;"popuplangauageoptions"===b.name&&b.checked&&(amznbase.settingLanguageCookies(b.dataset.locale,b.dataset.cookieValue),amznbase.appendUrlParams(b.value,!1,!0))})}},setDefaultCookiePreferences:function(){var d={performance:!0,functional:!0,advertising:!0},a=amznbase.getCookie("userconsent");a&&(a=JSON.parse(a),
"newcookieconsent"in a&&"userconsent ef_id refInternal ref_ ld closeConsent".split(" ").forEach(function(b){amznbase.deleteCookie(b)}));amznbase.getCookie("userconsent")||(document.cookie="userconsent\x3d"+JSON.stringify(d)+";path\x3d/")},appendGeoParamToCountryLinks:function(){var d=document.querySelectorAll(".footer-menu-dropdown.countrydropdown a");d&&d.forEach(function(a){var b=a.href;b=amznbase.updateUrlParameter(b,"geo-pref","1");a.href=b})},eventsPageHrefUpdateToCountryLinks:function(){var d=
document.querySelectorAll(".footer-menu-dropdown.countrydropdown a");d&&d.forEach(function(a){var b=a.href,c=a.dataset&&a.dataset.locale?a.dataset.locale:void 0;c&&(c=document.querySelector("meta[lang\x3d"+c+"]"))&&(c=c.getAttribute("href"))&&(b=c);a.href=b})},setMaxHeight:function(d,a){var b=-1;d=d.querySelectorAll(a);d.forEach(function(c){b=b>c.offsetHeight?b:c.offsetHeight});d.forEach(function(c){c.style.height=b+"px"})},showhideelements:function(d,a,b){d&&d.classList&&!d.classList.contains("hide")&&
d.classList.add("hide");b&&b.classList&&!b.classList.contains("hide")&&b.classList.add("hide");a&&a.classList.remove("hide")},deleteAuthCookies:function(){amznbase.domainsList.forEach(function(d){amznbase.deleteCookie("authCookieAEM",d)})},setHiddenInputFacet:function(d,a,b){a&&a===b?(d.value=encodeURIComponent("1"),amznbase.facetList[d.name]=!0):(d.value=encodeURIComponent("0"),amznbase.facetList[d.name]=!1)},isLoggedInUser:function(){hdnHsCallComplete=document.querySelector("#hdnHsCallComplete");
loaderIcon=document.querySelector(".abm-loader-container");topnavspinner=document.querySelector(".topnavspinner");topnavbutton=document.querySelector(".topnavbutton");signInLink=document.querySelector(".signInLink");amznbase.setHiddenInputFacet(hdnHsCallComplete,"Y","Y");amznbase.fetchOtherHiddenFieldValue();var d=document.querySelectorAll("a"),a=amznbase.getCookie("ld");if(d&&d.length){var b=[],c=amznbase.getValueFromMetaTag("yap_content").split(";");d.forEach(function(e){var f=e.classList,g=e.closest("[data-authexp]"),
h=amznbase.getValueFromMetaTag("reg_link_hopscotch").split(","),k=e.href?e.href:void 0;if(k){var m=k.lastIndexOf("/");m=k.slice(m);var n=k.split("/");n=k.slice(k.indexOf(n[n.length-3])-1);m=m.split("?")[0];n=n.split("?")[0]}if(e.href&&e.dataset&&"true"===e.dataset.signinLink&&(k=amznbase.getValueFromMetaTag("sign_out_content").split(";"))&&k[0]&&k[1]){e.innerText=k[0];e.dataset.primaryNavigationTopItem=k[0];e.href=k[1];a&&(e.href=amznbase.updateUrlParameter(e.href,"ld",a));e.target="_self";e.setAttribute("aria-label",
k[0]);var t;null==(t=topnavspinner)||t.classList.add("hide");var u;null==(u=signInLink)||u.classList.remove("hide");b.push(e)}if(h.includes(m)||h.includes(n)){if((!f||!f.contains("sociallinks"))&&c&&c[0]&&c[1]){if(e.children&&e.children.length){var x=!1;Array.from(e.children).forEach(function(B){"SPAN"===B.tagName&&(x=!0)});x&&(e.querySelector("span").textContent=c[0])}else e.innerText=c[0];"_blank"===e.target?e.setAttribute("aria-label",c[0]+" Opens in a new tab"):e.setAttribute("aria-label",c[0]);
"data-feature-column-box-cta data-feature-column-box-callout data-contact-us-cta data-action-block-btn data-bold-header-link data-carousel-cta data-error-cta data-feature-list-primary-cta data-feature-list-cta data-vertical-grid data-hero-cta data-short-hero-cta data-hero-header-cta data-higlight-cta data-linked-story data-primary-create-btn data-notification-link data-pdfviewer-cta data-quote data-service-grid-cta data-clp-footer data-statistic-cta data-text-image-cta data-service-card data-article-grid-link data-primary-navigation-bottom-center-menu-item data-sbb-hero data-product-search-asin-btn data-pj-hero".split(" ").forEach(function(B){e.hasAttribute(B)&&
e.setAttribute(B,c[0])});e.href=c[1];a&&(e.href=amznbase.updateUrlParameter(e.href,"ld",a));e.setAttribute("data-bpuser",!0);if(f&&(h=f.contains("isButton"),ctaClasses=f.toString(),-1<ctaClasses.split("").join("").indexOf("abm-btn--")||h)){e.style.backgroundColor="#FFD814";e.style.color="#232F3E";if(-1!==e.classList.toString().indexOf("abm-notification__container__content__cta-wrapper")||-1!==e.classList.toString().indexOf("abm-shorter-notification__container__cta"))e.style.border="2px solid #fff";
e.addEventListener("mouseover",function(){e.style.backgroundColor="#F2CC37"});e.addEventListener("mouseleave",function(){e.style.backgroundColor="#FFD814"});f.contains("topnavbutton")&&amznbase.showhideelements(loaderIcon,topnavbutton,topnavspinner)}b.push(e)}if(g)if("suppress-component"===g.dataset.authexp&&!amznbase.isAuthor)g.classList.add("hide");else if("suppress-cta"===g.dataset.authexp||"suppress-headline"===g.dataset.authexp){"suppress-headline"===g.dataset.authexp&&[".abm-featurelist__container__main-feature",
".abm-on-demand-video__container__main-feature"].forEach(function(B){(B=e.closest(B))&&B.classList.add("hide")});if(e.hasChildNodes()){var y=e.querySelector(".abm-cta--external");h=e.querySelector(".abm-cta--chevron");f=e.querySelector(".abm-cta--download");y=y?y:e.querySelector(".abm-cta--external--white");h=h?h:e.querySelector(".abm-cta--chevron--white");f=f?f:e.querySelector(".abm-cta--download--white");y=y?y:h?h:f}e.classList&&e.parentElement.classList&&(-1!==e.classList.toString().indexOf("abm-calltoaction")||
-1!==e.parentElement.classList.toString().indexOf("abm-cta--")||-1!==e.parentElement.classList.toString().indexOf("sg__list__item__content__cta")||-1!==e.parentElement.classList.toString().indexOf("abm-service-card__content-container__CTA"))?e.parentElement.classList.add("hide"):y?y.classList.add("hide"):e.classList.add("hide")}}else f.contains("topnavbutton")&&amznbase.showhideelements(loaderIcon,topnavbutton,topnavspinner);if(g&&"show-for-auth"===g.dataset.authexp)-1!==g.classList.toString().indexOf("abm-calltoaction--showForAuth")?
g.classList.remove("abm-calltoaction--showForAuth"):g.classList.remove("hide");else if(g&&"cta-link-for-auth"===g.dataset.authexp)if(g=["abm-story-telling__content__cta","abm-featurelist__container__sub-feature__item__cta","abm-featurelist__container__sub-feature__item__content__cta","abm-notification__two-column__container__content__text__cta","abm-notification__three-column__container__content__text__cta"],-1!==e.parentElement.classList.toString().indexOf("authCta")){if(e.parentElement.classList.remove("hide"),
-1!==e.parentElement.classList.toString().indexOf("skinny-hero-component__top__text__cta-block__button")||-1!==e.parentElement.classList.toString().indexOf("skinny-hero-component__top__text__cta-block__secondary-button")||-1!==e.parentElement.classList.toString().indexOf("hero-component__top__text__button"))e.parentElement.parentElement&&-1!==e.parentElement.parentElement.classList.toString().indexOf("empty-text")&&e.parentElement.parentElement.classList.remove("empty-text"),(g=e.closest(".hero-component__top"))&&
g.querySelector(".hero-component__top__media.emptyText")&&g.querySelector(".hero-component__top__media.emptyText").classList.remove("emptyText"),(g=e.closest(".skinny-hero-component__top"))&&g.querySelector(".skinny-hero-component__top__media.emptyText")&&g.querySelector(".skinny-hero-component__top__media.emptyText").classList.remove("emptyText")}else-1!==e.parentElement.classList.toString().indexOf("notAuthCta")?e.parentElement.classList.add("hide"):g.forEach(function(B){-1!==e.classList.toString().indexOf(B)&&
(-1!==e.classList.toString().indexOf("authCta")?e.classList.remove("hide"):-1!==e.classList.toString().indexOf("notAuthCta")&&e.classList.add("hide"))});else g&&"show-cta-for-auth"===g.dataset.authexp&&e&&e.classList&&e.classList.remove("hide")});b&&b.length&&amznbase.updateUrl(b,!0)}d=document.querySelectorAll(".skinny-hero-component__top__text__cta-block");0<d.length&&d.forEach(function(e){e&&2<=e.querySelectorAll("a").length&&1===e.querySelectorAll("a:not(.hide)").length&&e.classList.add("single-cta")})},
checkBPUser:function(){var d,a=document.querySelector("#hdnHsCallComplete"),b=document.querySelector("#business_prime_account");pageLanguage=amznbase.getValueFromMetaTag("language");var c=pageLanguage.split("_"),e="us";1<c.length&&(e=c[1].toLowerCase());document.querySelector(".bp-account-element")&&amznbase.makeHttpRequest("/"+e+"/customerstatus","GET",function(f,g){amznbase.invalidResponses.includes(f)||(d=JSON.parse(g),amznbase.setHiddenInputFacet(a,"Y","Y"),d.statusCode&&d.headers&&amznbase.setHiddenInputFacet(b,
d.headers.BusinessPrimeAccount,"BPAcc"));document.querySelector(".abm-error")&&document.querySelectorAll(".abm-error").forEach(function(h){h.getElementsByClassName("abm-error__ctaList__link hide").length===h.getElementsByClassName("abm-error__ctaList__link").length&&h.querySelector(".abm-error__ctaList").classList.add("hide")})})},fetchOtherHiddenFieldValue:function(){var d=document.getElementById("fetchHiddenInputValue");if(d){var a=d.getAttribute("name");(a=document.getElementById(a))&&a.value&&
(d.value=a.value)}},handleDynamicReq:function(){if(amznbase.dynamicFormGenericListData&&0<Object.keys(amznbase.dynamicFormGenericListData).length){var d=!1;amznbase.handleDropdownMapping();amznbase.dynamicFormGenericListData.forEach(function(a){if("else"!==a.text){var b=[];a.text.split(";").forEach(function(f){f=f.split("\x3d");b.push({key:f[0],value:f[1]})});var c=!0,e;b.forEach(function(f){var g=document.getElementById(f.key);e=g?g.querySelector(".active"):void 0;c=g&&e&&c?e.getAttribute("data-content").toLowerCase()===
f.value.toLowerCase()?!0:!1:!1})}else c=!0;c&&!d&&(a=a.value.split(";"),amznbase.showHideDynamicFormEle(a),d=!0)})}},showHideDynamicFormEle:function(d){d&&document.querySelectorAll(".cmp-form-options__wrapper__field ,.cmp-form-text__text , .cmp-form-text__textarea , .cmp-button, .abm-text, .cmp-form-options--checkbox").forEach(function(a){if(a){var b=!1;d.includes(a.id)&&(b=!0);if("DIV"!==a.tagName||a.classList.contains("abm-text"))if("INPUT"===a.tagName||"TEXTAREA"===a.tagName){var c=a.closest(".cmp-form-text");
if(b&&(a.value="",c)){var e=c.querySelector(".error");e&&""!==e.innerHTML&&(e.innerHTML="")}}else"A"===a.tagName||"BUTTON"===a.tagName?c=a:a.classList&&(a.classList.contains("abm-text")&&a.parentElement&&a.parentElement.parentElement?"FORM"===a.parentElement.parentElement.tagName&&(c=a):a.classList.contains("cmp-form-options--checkbox")&&(c=a));else c=a.closest(".cmp-form-options");if(c&&c.classList)if(b)if(c.classList.add("hide"),a.setAttribute("disabled","true"),"DIV"===a.tagName){e=a.querySelector(".active");
b=c.querySelector(".cmp-form-dropdownvalue");if(e&&e.classList){var f=e.querySelector(".arrows");e.classList.remove("active");e.setAttribute("data-value","")}b&&b.setAttribute("value","");amznbase.resetDynamicFormDropdowns(a,f)}else c.classList.contains("cmp-form-options--checkbox")&&amznbase.resetDynamicFormCheckbox(c,!0);else"DIV"===a.tagName?(b=c.querySelector(".cmp-form-dropdownvalue"),(f=a.querySelector(".active"))&&b&&(b.setAttribute("value",f.getAttribute("data-value")),f.setAttribute("data-value",
f.getAttribute("data-content")))):c.classList.contains("cmp-form-options--checkbox")&&c.classList.contains("hide")&&amznbase.resetDynamicFormCheckbox(c,!1),c.classList.remove("hide"),a.removeAttribute("disabled")}})},resetDynamicFormDropdowns:function(d,a){0<amznbase.dynamicFormInitialDropDownList.length&&amznbase.dynamicFormInitialDropDownList.forEach(function(b){b.id===d.id&&(b=d.querySelector('[data-content\x3d"'+b.value+'"]'))&&b.classList&&(b.classList.add("active"),a&&b.appendChild(a),d&&d.parentElement&&
d.parentElement.querySelector(".searchableDropdown__input")&&d.parentElement.querySelector(".searchableDropdown__input").setAttribute("placeholder",b.innerText))})},resetDynamicFormCheckbox:function(d,a){d&&d.querySelectorAll(".cmp-form-options__field--checkbox").forEach(function(b){b&&(a?b.checked=!1:0<amznbase.dynamicFormInitialCheckboxList.length&&amznbase.dynamicFormInitialCheckboxList.forEach(function(c){c&&c.id===d.id&&c.value&&c.value.forEach(function(e){d.querySelector("#"+e).checked=!0})}),
b.parentElement.classList.contains("invalid")&&(b.parentElement.parentElement.classList.remove("invalid"),b.parentElement.classList.remove("invalid"),b.classList.remove("invalid")))})},handleDropdownMapping:function(){0<amznbase.dynamicFormDropdownMapping.length&&amznbase.dynamicFormDropdownMapping.forEach(function(d){var a=d.id.split("\x3d")[0],b=d.value.split("!\x3d")[0];a=document.getElementById(a);b=document.getElementById(b);var c=d.value.split("!\x3d")[1].split(";");if((a=a.querySelector(".active"))&&
a.getAttribute("data-value")===d.id.split("\x3d")[1]){d=b.querySelector("span.active").querySelector("img");!d&&b.parentElement.classList.contains("searchableDropdown")&&(d=b.parentElement.querySelector("img.arrows"));a=!1;b.querySelectorAll("span").forEach(function(f){f&&f.getAttribute("data-value")&&(c.includes(f.getAttribute("data-value"))?(f.classList.add("mapHide"),f.classList.contains("active")&&f.classList.remove("active")):(f.classList.remove("mapHide"),f.classList.contains("hide")&&f.classList.remove("hide")))});
var e=b.querySelector("span:not(.mapHide)");!a&&d&&e&&!b.querySelector("span.active")&&(e.classList.add("active"),e.appendChild(d.cloneNode(!0)),a=!0);b.parentElement&&b.parentElement.classList.contains("searchableDropdown")&&(d=b.parentElement.querySelector(".searchableDropdown__input"),(b=b.querySelector("span.active"))?d.setAttribute("placeholder",b.innerText):"")}})},makePDFiframeAccessibile:function(){document.querySelectorAll(".cmp-pdfviewer").forEach(function(d){if(d){var a=d.dataset.alttext;
d=(d=d.querySelector(".cmp-pdfviewer__content"))?d.querySelector("iframe"):!1;a&&d&&(d.title=a)}})},initializePersonalizationObserver:function(){(new MutationObserver(amznbase.isPersonalizationAppended)).observe(amznbase.personalizationContainer,{childList:!0})},isPersonalizationAppended:function(){var d=amznbase.personalizationContainer;d.children.length?d.classList.remove("hide"):d.classList.add("hide")},initializeLoginObserver:function(){amznbase.primeAccountObserver=new MutationObserver(amznbase.updateContentOnLogin);
amznbase.primeAccountObserver.observe(amznbase.primeAccountEle,{attributes:!0,attributeOldValue:!0})},abAccountCheck:function(){amznbase.abAccountEle&&"true"===amznbase.abAccountEle.textContent&&this.hideLoggedElement(!1)},updateContentOnLogin:function(d){var a=document.querySelectorAll(".bp-account-element");d&&"business_prime_account"===d[0].target.id&&"1"===d[0].target.value&&amznbase.abAccountEle&&"true"===amznbase.abAccountEle.textContent&&(amznbase.hideLoggedElement(!0),a.forEach(function(b){b&&
b.classList.remove("hide")}),amznbase.primeAccountObserver.disconnect())},hideLoggedElement:function(d){var a=document.querySelectorAll(".ab-account-element");document.querySelectorAll(".no-ab-account-element").forEach(function(b){b&&b.classList.add("hide")});a.forEach(function(b){b&&d?b.classList.add("hide"):b.classList.remove("hide")})},increaseYoutubePerformance:function(){var d=document.querySelectorAll(".performance-youtube-player");if(0<d.length){var a=this,b,c;d.forEach(function(e){if(e&&!e.querySelector("iframe")){b=
!1;var f=e.dataset.id,g=document.createElement("div"),h=e.closest("section");g.setAttribute("data-id",f);g.setAttribute("data-alt",e.dataset.alt?e.dataset.alt:"");g.setAttribute("data-start",e.dataset.start);g.setAttribute("tabindex","0");var k=document.createElement("img");e.dataset.thumbnail?k.src=e.dataset.thumbnail:h&&(h.classList.contains("abm-on-demand-hero")||h.classList.contains("abm-reshape-ondemand-feature")||h.classList.contains("abm-pj-hero"))?k.src="//i.ytimg.com/vi/ID/maxresdefault.jpg".replace("ID",
f):k.src="//i.ytimg.com/vi/ID/hqdefault.jpg".replace("ID",f);k.alt=e.dataset.alt?e.dataset.alt:"";g.appendChild(k);f=document.createElement("div");f.setAttribute("class","play");g.appendChild(f);e.classList.contains("performance-lightbox")&&(b=!0,(c=e.querySelector(".performance-lightbox__wrapper"))&&c.dataset.thumbnail&&(c.style.backgroundImage="url("+c.dataset.thumbnail+")",c.style.backgroundPosition="center",c.style.backgroundSize="cover",c.style.borderRadius="10px",amznbase.bodyTag.classList.contains("jupiter-template")&&
(c.style.borderRadius="10px 10px 0 0")));f=e.classList.toString().replace("performance-youtube-player","");f=f.replace("performance-lightbox","");g.setAttribute("class",f);g.classList.add("clickable-div");b&&g.classList.add("performance-lightbox");g.onclick=function(){a.createYoutubeIframe(this)};g.onkeydown=function(m){if("Enter"===m.code||"Space"===m.code)m.preventDefault(),a.createYoutubeIframe(this)};b&&c?e.insertBefore(g,c):e.appendChild(g)}})}},createYoutubeIframe:function(d){var a=document.createElement("iframe"),
b=!1,c=d.nextElementSibling,e=d.classList.toString().replace("clickable-div","");if(d.classList.contains("performance-lightbox")){b=!0;if(c){c.setAttribute("tabindex","0");var f=c.classList.toString().replace("--performance","");c.setAttribute("class",f)}a.setAttribute("src","https://www.youtube.com/embed/"+d.dataset.id+"?rel\x3d0"+("undefined"!==d.dataset.start?"\x26start\x3d"+d.dataset.start:"")+"\x26playsinline\x3d0\x26enablejsapi\x3d1");a.setAttribute("tabindex","-1")}else amznbase.isTouchStarted?
a.setAttribute("src","https://www.youtube.com/embed/"+d.dataset.id+"?rel\x3d0\x26"+("undefined"!==d.dataset.start?"start\x3d"+d.dataset.start:"")):a.setAttribute("src","https://www.youtube.com/embed/"+d.dataset.id+"?rel\x3d0\x26autoplay\x3d1\x26"+("undefined"!==d.dataset.start?"start\x3d"+d.dataset.start:""));a.setAttribute("frameborder","0");a.setAttribute("allowfullscreen","1");a.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture");a.setAttribute("title",
d.dataset.alt);a.setAttribute("class",e);a.setAttribute("sandbox","allow-scripts allow-same-origin\tallow-presentation");var g;null==(g=d.parentNode.querySelector(".custom-play-icon"))||g.classList.remove("hide");d.parentNode.replaceChild(a,d);!amznbase.isIpad&&b&&c&&c.click()},triggerIframeVideos:function(){var d=document.querySelectorAll(".clickable-div");amznbase.isTouchStarted=!0;0<d.length&&d.forEach(function(a){a.click()})},setGpc:function(d){var a=amznbase.getValueFromMetaTag("language"),b=
document.querySelector(".gpc-enabled");a.toLowerCase().includes("us")&&b&&(amznbase.gpc=navigator.globalPrivacyControl,a=(a=amznbase.getCookie("userconsent"))?JSON.parse(a):void 0,void 0===d&&a?void 0!==amznbase.gpc?void 0===a.gpc?(amznbase.deleteCookie("userconsent"),a.gpc=!1,amznbase.gpc&&(a.gpc=!0,a.advertising=!1),amznbase.getCookie("userconsent")||(document.cookie="userconsent\x3d"+JSON.stringify(a)+";path\x3d/")):amznbase.gpc!==a.gpc&&(amznbase.gpc?(amznbase.deleteCookie("userconsent"),a.gpc=
!0,a.advertising=!1):(amznbase.deleteCookie("userconsent"),a.gpc=!1),amznbase.getCookie("userconsent")||(document.cookie="userconsent\x3d"+JSON.stringify(a)+";path\x3d/")):void 0!==amznbase.gpc||void 0!==a.gpc&&!a.gpc||(amznbase.deleteCookie("userconsent"),a.gpc=!1,amznbase.getCookie("userconsent")||(document.cookie="userconsent\x3d"+JSON.stringify(a)+";path\x3d/")):!a||a.gpc===amznbase.gpc&&a.gpc===d&&a.advertising===d||(amznbase.deleteCookie("userconsent"),amznbase.gpc?(a.advertising=!1,a.gpc=!0):
(a.advertising=!0,a.gpc=!1,d||void 0===d||(a.advertising=!1)),amznbase.getCookie("userconsent")||(document.cookie="userconsent\x3d"+JSON.stringify(a)+";path\x3d/")))},componentDisplayRules:function(){var d=amznbase.getParams(window.location.href);if(!document.querySelector('meta[property\x3d"authorMode"]')&&"undefined"!==typeof displayRulesObj&&0<displayRulesObj.length){var a,b;displayRulesObj.forEach(function(c){a=!1;b=document.getElementById(c.componentIdentifier);d.hasOwnProperty(c.queryParamName)&&
d[c.queryParamName]===c.queryParamValue&&(a=!0);a&&b&&("hide"===c.componentVisibility?b.classList.add("hide"):"show"===c.componentVisibility&&b.classList.remove("hide"),b.classList.add("display-rules-active"));"show"!==c.componentVisibility||a||!b||b.classList.contains("display-rules-active")||b.classList.add("hide")})}},sanitizeURLParams:function(d){var a=(new URL(document.location)).searchParams,b={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"};
return(null==a.get(d)?"":a.get(d)).replace(/[&<>"'/]/gi,function(c){return b[c]})},addYTCustomThumbnail:function(){amznbase.allYTCustomThumbnail.forEach(function(d){["click","keydown"].forEach(function(a){d.addEventListener(a,function(b){"click"!==b.type&&("keydown"!==b.type||13!==b.keyCode&&32!==b.keyCode)||d.nextElementSibling.nextElementSibling.click()})})})},playPauseSBSSVideo:function(d){document.querySelectorAll(".sbss-styles video").forEach(function(a){a.paused||a==d||a.pause()})},addVideoCustomPlayBtns:function(){amznbase.allCustomVideoPlayBtns.forEach(function(d){["click",
"keydown"].forEach(function(a){d.addEventListener(a,function(b){b.stopPropagation();if("click"===b.type||"keydown"===b.type&&(13===b.keyCode||32===b.keyCode))d.classList.contains("lightbox-enabled")?d.previousElementSibling.click():(d.parentElement.querySelector("video").setAttribute("controls","true"),d.classList.add("hide"),amznbase.playPauseSBSSVideo(d.parentElement.querySelector("video")),d.parentElement.querySelector("video").play())})})})},downVideoVolumeOnHighlight:function(){var d=document.querySelectorAll(".abm-success-story__media video");
amznbase.bodyTag.classList.contains("jupiter-template")&&d.forEach(function(a){a.volume=.5})}};window.addEventListener("DOMContentLoaded",function(){amznbase.init()});window.addEventListener("load",function(){amznbase.ecidAndSessionIdAssignment()});document.onreadystatechange=function(){"complete"===document.readyState&&document.querySelector(".cmp-pdfviewer")&&amznbase.makePDFiframeAccessibile()};document.addEventListener("touchstart",function(){!amznbase.isTouchStarted&&amznbase.isIpad&&amznbase.triggerIframeVideos()});
var formButtonBackground={init:function(){this.setFormButtonBg()},setFormButtonBg:function(){var d=document.querySelectorAll(".formBackgroundContainer");if(d.length)for(var a=0;a<d.length;a+=1)d[a].classList.contains("formBackgroundContainer")?d[a].closest(".button").classList.add(d[a].closest(".container-component__wrapper").classList[1]):d[a].classList.contains("Default")&&d[a].closest(".cmp-form").classList.add("cmp-form--margin")}};window.addEventListener("DOMContentLoaded",function(){formButtonBackground.init()});
var Notification={usercookievalue:{},init:function(){this.notificationContainer=[];Notification.usercookievalue.domain=window.location.hostname;this.addElements();this.addEventListeners();this.generateUUID();if(this.notificationContainer){var d=this;this.notificationContainer.forEach(function(a){var b,c;if("consent-container"===a.id){if(!a.classList.contains("notvisible")){this.scrollEntireFooter(a);var e=(e=a.getAttribute("data-consentExpTime"))?parseInt(e,10):e;var f="closeConsent";if(c=a.classList.contains("shorter-cookieconsent")?
a.querySelector("#consent-container .abm-notification__container__close-icon"):a.querySelector("#consent-container .abm-notification__container__content__btnwrapper__button"))c.addEventListener("click",function(){this.closeNotification(a,e,f);document.body.style.paddingBottom=null}.bind(this)),c.addEventListener("keyup",function(A){if(13===A.keyCode||13===A.which)this.closeNotification(a,e,f),document.body.style.paddingBottom=null}.bind(this))}this.checkCookie(a,b,e,f)}else if("preferences-cookie-consent"===
a.id){if(!a.classList.contains("notvisible")){this.scrollEntireFooter(a);e=(e=a.getAttribute("data-consentExpTime"))?parseInt(e,10):12;Notification.usercookievalue.cookieExpTime=e;f="userconsent";c=a.querySelectorAll("#preferences-cookie-consent .acceptAllOptions,#preferences-cookie-consent .rejectAllOptions");var g=a.querySelector(".customizeSettings");var h=document.querySelectorAll(".about-cookie__content__items__item__wrapper__switch__label__input"),k=document.querySelector(".cookie-preferences-modal");
var m=document.documentElement.clientHeight;window.isL&&m&&671>m?k.classList.add("reducePopupHeight"):k.classList.remove("reducePopupHeight");c&&c.forEach(function(A){A.addEventListener("click",function(){Notification.hideNotification(a);A.dataset.notificationIcon||(A.classList.contains("rejectAllOptions")?Notification.setCookiePreferences(h,!1,!1,!0):Notification.setCookiePreferences(h,!0,!1,!1))});A.addEventListener("keyup",function(N){if(13===N.keyCode||13===N.which)Notification.hideNotification(a),
A.dataset.notificationIcon||(A.classList.contains("rejectAllOptions")?Notification.setCookiePreferences(h,!1,!1,!0):Notification.setCookiePreferences(h,!0,!1,!1))})});if(g){var n=document.querySelector(".custom-cmp-tabs .cmp-tabs__tablist .cmp-tabs__tab");g.addEventListener("click",function(){amznbase.removeBodyScroll();k.classList.remove("hide");d.setTabPanelHeight();n&&n.focus()});g.addEventListener("keyup",function(A){if(13===A.keyCode||13===A.which)amznbase.removeBodyScroll(),k.classList.remove("hide"),
d.setTabPanelHeight(),n&&n.focus()})}}this.checkCookie(a,b,e,f);if(b=amznbase.getCookie("userconsent"))b=JSON.parse(b),"newcookieconsent"in b||"userconsent ef_id refInternal ref_ ld closeConsent".split(" ").forEach(function(A){amznbase.deleteCookie(A)});var t=amznbase.getCookie("userconsent"),u=0,x=setInterval(function(){t&&"undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track?(_satellite.track("consentPreferenceAll"),clearInterval(x)):(u+=1,20<u&&clearInterval(x))},500)}else{b=a.getAttribute("data-showhideNotification");
e=(e=a.getAttribute("data-cookieExpTime"))?parseInt(e,10):e;f=a.dataset.cookiename;var y;a.querySelector(".abm-notification__container__close-icon")?y=a.querySelector(".abm-notification__container__close-icon"):a.querySelector(".abm-shorter-notification__close-icon")&&(y=a.querySelector(".abm-shorter-notification__close-icon"));var B=a.querySelector(".abm-notification__accordion__icon");var K=a.querySelector(".abm-notification__accordion")&&"true"===a.querySelector(".abm-notification__accordion").dataset.enableAccordion;
c=a.querySelector(".abm-notification__accordion")&&"true"===a.querySelector(".abm-notification__accordion").dataset.enableAutoCollapse;g=a.querySelector(".abm-notification__accordion")&&a.querySelector(".abm-notification__accordion").dataset.accordionState;m=a.querySelector(".abm-notification__accordion")&&parseInt(a.querySelector(".abm-notification__accordion").dataset.collapseTime,10);y&&(y.addEventListener("click",function(){this.closeNotification(a,e,f)}.bind(this)),y.addEventListener("keyup",
function(A){13!==A.keyCode&&13!==A.which||this.closeNotification(a,e,f)}.bind(this)));B?(K&&a.classList.add("abm-notification--accordion"),B.addEventListener("click",function(A){this.toggleContent(A)}.bind(this)),B.addEventListener("keyup",function(A){13!==A.keyCode&&13!==A.which||this.toggleContent(A)}.bind(this))):a.classList.remove("abm-notification--accordion");this.checkCookie(a,b,e,f);var E=this;!amznbase.isAuthor&&(K&&c&&"expanded"===g||!K&&c)&&!a.classList.contains("inside-viewport")&&amznbase.inViewport(a,
!1)&&(a.classList.add("inside-viewport"),setTimeout(function(){E.autoCollapseNotifications(a,K)},1E3*m))}}.bind(this))}},setTabPanelHeight:function(){var d=document.querySelector(".cookie-preferences-modal"),a=document.querySelectorAll(".cookie-preferences-modal .cmp-tabs__tabpanel");if(window.isXS||window.isS||window.isM){var b=d.querySelector(".cmp-tabs__section-title").offsetHeight+d.querySelector(".tabs-list").offsetHeight+d.querySelector(".cmp-tabs__ctaWrapper").offsetHeight;a&&a.forEach(function(c,
e){if(0===e||1===e)c.style.height="calc(100% - "+b+"px)"})}else a&&a.forEach(function(c,e){0!==e&&1!==e||c.removeAttribute("style")})},resized:function(){document.querySelector(".userpreference-cookieconsent")&&this.setTabPanelHeight()},scrollEntireFooter:function(d){var a=this;window.addEventListener("load",function(){document.body.style.paddingBottom=d.offsetHeight+"px"});window.addEventListener("resize",amznbase.debounce(function(){document.body.style.paddingBottom=d.offsetHeight+"px";a.resized()},
250))},generateUUID:function(){var d=amznbase.getCookie("userconsent");d?Notification.usercookievalue.id=JSON.parse(d).id:(d="_"+Math.random().toString(36).substr(2,9),Notification.usercookievalue.id=d)},setCookiePreferences:function(d,a,b,c){var e={},f=new Date;document.body.style.paddingBottom=null;if(d&&d.length){a||c?d.forEach(function(h){if(h.dataset.name){var k=c&&"essential"===h.dataset.name?c:a;e[h.dataset.name]=k;Notification.usercookievalue[h.dataset.name]=k}}):d.forEach(function(h){h.checked||
"hidden"===h.type?h.dataset.name&&(Notification.usercookievalue[h.dataset.name]=!0,e[h.dataset.name]=!0):h.dataset.name&&(Notification.usercookievalue[h.dataset.name]=!1,e[h.dataset.name]=!1)});if(f){var g=new Date(f.getFullYear(),f.getMonth()+Notification.usercookievalue.cookieExpTime,f.getDate());g="expires\x3d"+g.toUTCString();Notification.usercookievalue.timestamp=f.getTime();Notification.usercookievalue.newcookieconsent=!0;document.cookie="userconsent\x3d"+JSON.stringify(Notification.usercookievalue)+
";"+g+";path\x3d/"}if(f=document.querySelector(".cookie-preferences-modal"))f.classList.add("hide"),(g=document.querySelectorAll(".abm-global-footer__link__item__text"))&&g.length&&b&&(f.setAttribute("aria-hidden","true"),g[0].focus()),amznbase.addBodyScroll();d[0]&&d[0].dataset.cloudFrontUrl&&(f="uuid\x3d"+Notification.usercookievalue.id+"\x26timestamp\x3d"+Notification.usercookievalue.timestamp+"\x26domain\x3d."+Notification.usercookievalue.domain+"\x26url\x3d"+window.location.href+"\x26cookie\x3d"+
JSON.stringify(e),b&&(f+="\x26popupopened\x3dtrue"),amznbase.makeHttpRequest(d[0].dataset.cloudFrontUrl+"?"+f,"GET",function(h){amznbase.invalidResponses.includes(h)}));"undefined"!==typeof _satellite&&null!==_satellite&&(_satellite.track("consentPreference"),_satellite.track("consentPreferenceAll"));(d[1]&&d[1].checked&&"performance"===d[1].dataset.name||a)&&this.sendCookieConsent();amznbase.setPreferenceCookies(!1,!0)}},sendCookieConsent:function(){var d=document.querySelector("html").getAttribute("lang");
d=document.querySelector("meta[lang\x3d"+d+"]").getAttribute("href");var a=window.location.search;amznbase.makeHttpRequest(d+(a?a+"\x26":"?")+"cookieconsent\x3dtrue","GET",function(b){amznbase.invalidResponses.includes(b)})},addEventListeners:function(){var d=this;window.addEventListener("scroll",amznbase.throttle(function(){d.checkInView()},100))},checkInView:function(){if(this.notificationContainer){var d=this,a,b,c,e;this.notificationContainer.forEach(function(f){a=f.querySelector(".abm-notification__accordion")&&
"true"===f.querySelector(".abm-notification__accordion").dataset.enableAccordion;b=f.querySelector(".abm-notification__accordion")&&"true"===f.querySelector(".abm-notification__accordion").dataset.enableAutoCollapse;c=f.querySelector(".abm-notification__accordion")&&f.querySelector(".abm-notification__accordion").dataset.accordionState;e=f.querySelector(".abm-notification__accordion")&&parseInt(f.querySelector(".abm-notification__accordion").dataset.collapseTime,10);!amznbase.isAuthor&&(a&&b&&"expanded"===
c||!a&&b)&&!f.classList.contains("inside-viewport")&&amznbase.inViewport(f,!1)&&(f.classList.add("inside-viewport"),setTimeout(function(){d.autoCollapseNotifications(f,a)},1E3*e))})}},autoCollapseNotifications:function(d,a){a?d.querySelector(".abm-notification__accordion__icon").click():a||(a=d.querySelector(".abm-notification__container"))&&a.classList.contains("show")&&(a.classList.remove("show"),a.classList.add("hide"),d.querySelector(".abm-notification__accordion").classList.remove("hide"),d.querySelector(".abm-notification__accordion").classList.add("show"),
d.querySelector(".abm-notification__accordion__icon").setAttribute("aria-expanded","false"),d.classList.contains("hiddenAccordion")||d.classList.add("hiddenAccordion"),d.classList.contains("abm-notification--accordion")||d.classList.add("abm-notification--accordion"),d.querySelector(".abm-notification__accordion__icon").classList.remove("expanded"))},addElements:function(){var d=this;document.querySelectorAll(".abm-notification").forEach(function(a){d.notificationContainer.push(a)});document.querySelectorAll(".abm-shorter-notification").forEach(function(a){d.notificationContainer.push(a)})},
toggleContent:function(d){if(d.target&&"consent-container"!==d.target.closest(".abm-notification").id){var a=d.target.closest(".abm-notification").querySelector(".abm-notification__container"),b=d.target.closest(".abm-notification").querySelector(".abm-notification__accordion"),c="true"===b.dataset.enableAccordion,e="true"===b.dataset.enableAutoCollapse,f=d.target.closest(".abm-notification");a&&a.classList.contains("show")?(a.classList.remove("show"),a.classList.add("hide"),d.target.setAttribute("aria-expanded",
"false"),f.classList.contains("hiddenAccordion")||f.classList.add("hiddenAccordion"),d.target.classList.remove("expanded")):(d.target.setAttribute("aria-expanded","true"),a.classList.remove("hide"),a.classList.add("show"),f.classList.remove("hiddenAccordion"),d.target.classList.add("expanded"),!c&&e&&(b.classList.remove("show"),b.classList.add("hide"),d.target.closest(".abm-notification").classList.remove("abm-notification--accordion")))}},closeNotification:function(d,a,b){d.classList.remove("abm-notification--show");
d&&"consent-container"===d.id?a?amznbase.setCookie(b,!0,a,!0):amznbase.setCookie(b,!0,365,!0):a?amznbase.setCookie(b,!0,a):amznbase.setCookie(b,!0,168)},checkCookie:function(d,a,b,c){b=amznbase.getCookie(c);"userconsent"===c||"closeConsent"===c?b?this.hideNotification(d):this.showNotification(d):b&&a&&"true"===a?this.hideNotification(d):this.showNotification(d)},hideNotification:function(d){d&&d.classList.remove("abm-notification--show")},showNotification:function(d){d&&d.classList.add("abm-notification--show")}};
window.addEventListener("DOMContentLoaded",function(){(document.querySelector(".abm-notification")||document.querySelector(".abm-shorter-notification"))&&Notification.init()});
var rte={init:function(){var d=document.querySelectorAll(".abm-featurelist__container__main-feature__description ul li span.checked"),a=document.querySelectorAll(".abm-featurelist__container__sub-feature__item__description ul li span.checked"),b=document.querySelectorAll(".abm-featurelist__bp-container__sub-feature__item__bp-details ul li span.ab-business-prime-checked");[d,a,b].forEach(function(c){c&&this.addClassToElement(c)}.bind(this))},addClassToElement:function(d){d.forEach(function(a){a.closest("ul").classList.add("list-checked")})}};
window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-featurelist")&&rte.init()});
window.addEventListener("DOMContentLoaded",function(){var d=document.querySelectorAll("a");d.length&&d.forEach(function(a){var b=a.classList&&a.classList.contains("sociallinks"),c,e=(null==(c=a.rel)?0:c.includes("nofollow"))?"nofollow noopener":"noopener";"_blank"===a.target?amznbase.isIE11()?(b&&a.setAttribute("rel","noreferrer"),a.addEventListener("click",function(f){f.preventDefault();f=window.open();f.opener=null;f.location=a.href})):(a.setAttribute("rel",e),b&&a.setAttribute("rel",e+" noreferrer")):
b&&a.setAttribute("rel","noreferrer")})});
var previousFocusedElement=null,lightboxvideo={init:function(){this.bindEvents();this.disableCaptions()},closeVideoPopup:function(d){d.closest(".lightbox-video").classList.add("hide");amznbase.addBodyScroll();d.nextElementSibling.innerHTML=""},focusOnClose:function(){null!==previousFocusedElement&&(previousFocusedElement.focus(),previousFocusedElement=null)},youtubeJsSkin:function(d,a,b){new YT.Player(d.id,{events:{onReady:function(c){a?(a.classList.remove("hide"),a.querySelector(".lightbox-video__content").children[0].focus(),
c.target.playVideo(),amznbase.bodyTag.classList.contains("jupiter-template")&&c.target.setVolume(50)):(c.target.playVideo(),amznbase.bodyTag.classList.contains("jupiter-template")&&c.target.setVolume(50),(c=d.requestFullScreen||d.mozRequestFullScreen||d.webkitRequestFullScreen)&&c.bind(d)(),b&&b.classList.add("hide"));d.removeAttribute("id")}}})},onYouTubeIframeAPIReady:function(d,a,b){setTimeout(function(){if("undefined"===typeof YT||"undefined"===typeof YT.Player)lightboxvideo.onYouTubeIframeAPIReady(d);
else lightboxvideo.youtubeJsSkin(d,a,b)},500)},playVideoFullScreen:function(d){var a=d.previousElementSibling,b=d.closest(".jupiter-template"),c=document.documentElement.scrollTop;a&&"IFRAME"===a.nodeName?(a.id="fullplayer",lightboxvideo.onYouTubeIframeAPIReady(a,!1,d)):(a.play().then(function(){"undefined"!==typeof a.webkitEnterFullscreen?a.webkitEnterFullscreen():"undefined"!==typeof a.webkitRequestFullscreen?a.webkitRequestFullscreen():"undefined"!==typeof a.mozRequestFullScreen&&a.mozRequestFullScreen()}),
d.classList.add("hide"));b&&["fullscreenchange","mozfullscreenchange","MSFullscreenChange","webkitfullscreenchange"].forEach(function(e){a.addEventListener(e,function(f){!document.fullscreenElement&&a.matches("video")&&(a.pause(),"webkitfullscreenchange"===f.type&&setTimeout(function(){window.scrollTo(0,c)},200))},!1)})},fetchVideoProperties:function(d,a,b,c,e){d.querySelector(".lightbox-video__content__util-wrapper__learn-more__link").href=b;d.querySelector(".lightbox-video__content__util-wrapper__feedback").dataset.ratingVideo=
e;d.querySelector(".lightbox-video__content__util-wrapper__feedback").dataset.videoSrc=c;a.appendChild(d);d=a.querySelectorAll(".feedback-wrapper__star-rating span");b=a.querySelectorAll(".feedback-wrapper__star-rating--mobile");a=a.querySelectorAll(".feedback-wrapper__modal");0<d.length&&starRating.init(d,b,a)},pauseVideo:function(){document.querySelectorAll(".sbss-styles video").forEach(function(d){d.pause()})},openVideoPopup:function(d){var a=document.querySelector(".lightbox-video"),b=a.querySelector(".lightbox-video__content");
amznbase.removeBodyScroll();if(d.matches(".sbss-video__video-component__media__overlay")||d.matches(".abm-sbss-content-display__twocolumn__video-tile__video__overlay"))this.pauseVideo(),a.classList.add("sbss-lightbox");var c=d.previousElementSibling,e=c.cloneNode(!0);b.innerHTML="";if(e&&"IFRAME"===e.nodeName)e.src&&(e.src+="\x26enablejsapi\x3d1",e.id="player",b.appendChild(e),lightboxvideo.onYouTubeIframeAPIReady(e,a));else{c.parentElement.querySelector(".custom-play-icon")&&e.setAttribute("controls",
"true");e.removeAttribute("class");amznbase.bodyTag.classList.contains("jupiter-template")&&(e.volume=.5);e.autoplay=!0;if(c=e.textTracks)for(var f=0;f<c.length;f+=1)c[f].mode="hidden";b.appendChild(e);if(d.matches(".sbss-video__video-component__media__overlay")||d.matches(".abm-sbss-content-display__twocolumn__video-tile__video__overlay"))c=d.closest(".lightbox-rating-template").querySelector(".lightbox-video__content__util-wrapper").cloneNode(!0),this.fetchVideoProperties(c,b,d.dataset.videoHref,
d.dataset.videoSrc,d.dataset.videoName);e.addEventListener("loadedmetadata",function(){a.classList.remove("hide");b.children[0].focus()})}this.trapFocus();previousFocusedElement=d},trapFocus:function(){var d=document.querySelector(".lightbox-video"),a=d.querySelector(".lightbox-video__content"),b=document.createElement("span");b.setAttribute("tabindex",0);b.addEventListener("focus",function(c){d.querySelector(".lightbox-video__close").focus()});a.querySelector("iframe")?a.querySelector("iframe").setAttribute("tabindex",
0):a.querySelector("video").setAttribute("tabindex",0);a.appendChild(b)},bindEvents:function(){var d=document.querySelector(".lightbox-video__close"),a=document.querySelector(".lightbox-video");document.addEventListener("click",function(b){lightboxvideo.handleVideoClick(b.target)});document.addEventListener("keyup",function(b){13===b.keyCode&&lightboxvideo.handleVideoClick(b.target)});document.addEventListener("keydown",function(b){13!==b.keyCode&&32!==b.keyCode||a.classList.contains("hide")||b.target.closest(".sbss-lightbox")||
!(0>b.target.classList.toString().indexOf("lightbox-video")||0>b.target.classList.toString().indexOf("lightbox-video__close"))||lightboxvideo.closeVideoPopup(d)});d.addEventListener("keydown",function(b){9===b.which&&b.shiftKey&&(b.preventDefault(),b=a.querySelector(".lightbox-video__content"),b.querySelector("iframe")?b.querySelector("iframe").contentWindow.focus():b.querySelector("video").focus())});d&&(d.addEventListener("click",function(){lightboxvideo.closeVideoPopup(this);lightboxvideo.focusOnClose()}),
d.addEventListener("keyup",function(b){13===b.keyCode&&(lightboxvideo.closeVideoPopup(this),lightboxvideo.focusOnClose())}));a&&a.addEventListener("click",function(b){b.target===a&&(a.classList.add("hide"),amznbase.addBodyScroll(),a.querySelector(".lightbox-video__content")&&(a.querySelector(".lightbox-video__content").innerHTML=""))})},handleVideoClick:function(d){if(d.matches(".abm-success-story__media__overlay")||d.matches(".blog-video__media__overlay")||d.matches(".abm-story-telling__media__overlay")||
d.matches(".hero-component__top__video-player__wrapper__overlay")||d.matches(".abm-blog__ivy__media__overlay")||d.matches(".abm-feature-columns__wrapper__item__videoWrapper__overlay")||d.matches(".abm-events-filter__content-container__articles__wrapper__videoWrapper__overlay")||d.matches(".abm-multi-filter__content-container__articles__wrapper__videoWrapper__overlay")||d.matches(".abm-reshape-feature__feature-list__feature__media__yt__overlay")||d.matches(".abm-on-demand-hero__right__youtube-video__overlay")||
d.matches(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay")||d.matches(".sbss-video__video-component__media__overlay")||d.matches(".abm-sbss-content-display__twocolumn__video-tile__video__overlay")||d.matches(".abm-pj-hero__media__overlay"))767>window.innerWidth&&!d.matches(".sbss-video__video-component__media__overlay")&&!d.matches(".abm-sbss-content-display__twocolumn__video-tile__video__overlay")?(lightboxvideo.playVideoFullScreen(d),lightboxvideo.removeCustomThumbnail(d)):
(d.classList.remove("hide"),lightboxvideo.modifyDynamicHeight(d,!0),lightboxvideo.openVideoPopup(d),lightboxvideo.modifyDynamicHeight(d,!1))},modifyDynamicHeight:function(d,a){d&&a?(d.parentElement.classList.remove("dynamic-height"),d.parentElement.classList.add("position-removed")):d&&d.parentElement.classList.contains("position-removed")&&(d.parentElement.classList.remove("position-removed"),d.parentElement.classList.add("dynamic-height"))},removeCustomThumbnail:function(d){d&&d.classList.contains("custom-thumbnail")&&
(d.removeAttribute("style"),d.classList.remove("custom-thumbnail"))},disableCaptions:function(){var d=document.querySelectorAll(".blog-video__media--video, .abm-success-story__media--video, .abm-story-telling__media--video, .hero-component__top__video-player__wrapper__content");d&&d.forEach(function(a){if(a=a.textTracks)for(var b=0;b<a.length;b+=1)a[b].mode="hidden"})}};window.addEventListener("DOMContentLoaded",function(){lightboxvideo.init()});
var lightboxWrapper=document.querySelector(".lightbox-quote"),closeQuote=document.querySelector(".lightbox-quote__wrapper__close"),tileImageContentSelector=".abm-casestudies-quotes__content__casestudy-list__case-study__img-logo",tileImageSelector=".abm-casestudies-quotes__content__casestudy-list__case-study__img-logo__img",tileTitleSelector=".abm-casestudies-quotes__content__casestudy-list__case-study__text__title",tileQuoteSelector=".abm-casestudies-quotes__content__casestudy-list__case-study__text",
tileQuoteContentSelector=".abm-casestudies-quotes__content__casestudy-list__case-study__text__quote",tileLinkSelector=".abm-casestudies-quotes__content__casestudy-list__case-study__text__quote-link",lightboxquote={init:function(){this.bindEvents()},closeQuotePopup:function(){amznbase.addBodyScroll();lightboxWrapper.classList.add("hide");lightboxWrapper.querySelector(".lightbox-quote__wrapper__content").innerHTML=""},openQuotePopup:function(d){var a=lightboxWrapper;amznbase.removeBodyScroll();var b=
d.parentElement;d=b.previousElementSibling;b=b.cloneNode(!0);d=d.cloneNode(!0);a.querySelector(".lightbox-quote__wrapper__content").appendChild(d);a.querySelector(".lightbox-quote__wrapper__content").appendChild(b);d=a.querySelector(tileImageContentSelector);b=a.querySelector(tileImageSelector);var c=a.querySelector(tileTitleSelector),e=a.querySelector(tileQuoteSelector),f=a.querySelector(tileQuoteContentSelector);a=a.querySelector(tileLinkSelector);d.classList.add("card-modal__image-modal-content");
d.classList.remove(tileImageContentSelector.replaceAll(".",""));b.classList.add("card-modal__image-modal");b.classList.remove(tileImageSelector.replaceAll(".",""));c.classList.add("card-modal__title-modal");c.classList.remove(tileTitleSelector.replaceAll(".",""));e.classList.add("card-modal__description-modal");e.classList.remove(tileQuoteSelector.replaceAll(".",""));f.classList.add("card-modal__quote-text-modal");f.classList.remove(tileQuoteContentSelector.replaceAll(".",""));a.classList.add("hide");
a.classList.remove(tileLinkSelector.replaceAll(".",""));this.trapFocusQuote()},trapFocusQuote:function(){var d=document.querySelector(".lightbox-quote"),a=d.querySelector(".lightbox-quote__wrapper"),b=document.createElement("span");b.setAttribute("tabindex","0");b.addEventListener("focus",function(c){d.querySelector(".lightbox-quote__wrapper__close").focus()});a.appendChild(b)},bindEvents:function(){var d=document.querySelector(".lightbox-quote__wrapper__close-text");document.addEventListener("click",
function(a){lightboxquote.handleQuoteClick(a.target)});document.addEventListener("keyup",function(a){13===a.keyCode&&lightboxquote.handleQuoteClick(a.target)});d&&(d.addEventListener("click",function(){lightboxquote.closeQuotePopup(this)}),d.addEventListener("keyup",function(a){13===a.keyCode&&lightboxquote.closeQuotePopup(this)}));closeQuote&&(closeQuote.addEventListener("click",function(){lightboxquote.closeQuotePopup(this)}),closeQuote.addEventListener("keyup",function(a){13===a.keyCode&&lightboxquote.closeQuotePopup(this)}));
lightboxWrapper&&lightboxWrapper.addEventListener("click",function(a){a.target===lightboxWrapper&&(lightboxWrapper.classList.add("hide"),amznbase.addBodyScroll(),lightboxWrapper.querySelector(".lightbox-quote__wrapper__content")&&(lightboxWrapper.querySelector(".lightbox-quote__wrapper__content").innerHTML=""))})},handleQuoteClick:function(d){d.matches(tileLinkSelector)&&!d.getAttribute("href")&&(lightboxWrapper.classList.remove("hide"),lightboxquote.openQuotePopup(d),closeQuote.focus())}};
window.addEventListener("DOMContentLoaded",function(){lightboxquote.init()});
var dateFormatter={init:function(){document.querySelectorAll(".dateElement").forEach(function(d){var a=d.getAttribute("data-date-format"),b=d.getAttribute("data-date");if(a=dateFormatter.formatDate(b,a))d.textContent+=a})},formatDate:function(d,a){d=new Date(d);var b=document.querySelector("html").getAttribute("lang");var c=d.toLocaleString(b,{day:"2-digit"});var e=d.toLocaleString(b,{month:"2-digit"});var f=d.toLocaleString(b,{month:"long"});var g=d.toLocaleString(b,{year:"numeric"});var h=d.toLocaleString(b,
{year:"2-digit"});var k=d.toLocaleString(b,{dateStyle:"long"});"MMMM/dd/yyyy"===a?a=f+"/"+c+"/"+g:"dd.MM.yyyy"===a?a=c+"."+e+"."+g:"d.MMMM yyyy"===a?a=c+"."+f+" "+g:"DD/MM/YY"===a?a=c+"/"+e+"/"+h:(a=k,"ja-JP"===b&&(a=d.toLocaleString(b,{year:"numeric"})+d.toLocaleString(b,{month:"long"})+d.toLocaleString(b,{day:"numeric"})));return a}};
window.addEventListener("DOMContentLoaded",function(){var d=document.querySelector("html").getAttribute("lang");d&&"ja-JP"===d&&(document.querySelector(".blogs-overview")||document.querySelector(".release-overview")||document.querySelector(".story-content-page"))&&document.querySelector(".dateElement")&&dateFormatter.init()});
var starRating={allFeedbackStarRating:"",allFeedbackWrapper:"",mobileFeedbackRating:"",feedbackModal:"",videoDataObj:[],init:function(d,a,b){this.allFeedbackStarRating=d;this.mobileFeedbackRating=a;this.feedbackModal=b;this.allFeedbackWrapper=document.querySelectorAll("[data-rating-video]");this.checkLocalStorage();this.addAccessibilityLabel();0<starRating.allFeedbackStarRating.length&&this.addEventsToRating()},addAccessibilityLabel:function(){starRating.allFeedbackStarRating.forEach(function(d){d&&
d.closest("[data-rating-accessibility]")&&d.setAttribute("aria-label",d.getAttribute("data-rating")+d.closest("[data-rating-accessibility]").getAttribute("data-rating-accessibility"))})},addEventsToRating:function(){starRating.allFeedbackStarRating.forEach(function(d,a){["mouseover","mouseout","click","keydown","tab"].forEach(function(b){"mouseout"===b||"tab"===b?d.addEventListener(b,starRating.handleFeedbackSelection.bind(this,!1,d,a,!1)):d.addEventListener(b,starRating.handleFeedbackSelection.bind(this,
!0,d,a,!1))});d.addEventListener("focus",function(){document.body.classList.contains("using-tab")&&(d.innerHTML="\x26#9733",d.classList.add("filled-star"))})});["click","keydown"].forEach(function(d){starRating.mobileFeedbackRating.forEach(function(a){a&&a.addEventListener(d,starRating.openRatingModal.bind(this,a))});starRating.feedbackModal.forEach(function(a){a&&a.addEventListener(d,starRating.closeModal.bind(this,a))})})},handleFeedbackSelection:function(d,a,b,c,e){if(a){var f,g,h,k=a.closest("[data-rating-video]");
!e||"click"!==e.type&&"click"!==e&&("keydown"!==e.type||13!==e.keyCode&&32!==e.keyCode)||(f=!0);"Tab"===e.key&&(g=!0);e.shiftKey&&"Tab"===e.key&&(h=!0);d&&k&&!k.classList.contains("feedback-recorded")?(a.parentElement.querySelectorAll("span").forEach(function(m,n){c&&m.getAttribute("data-rating")<=b?(m.innerHTML="\x26#9733",m.classList.add("filled-star")):!c&&n<=b&&(m.innerHTML="\x26#9733",m.classList.add("filled-star"))}),f&&(k.classList.add("feedback-recorded"),d=b,c?k.classList.add("page-refreshed"):
(d=a.getAttribute("data-rating"),k.setAttribute("data-rating",d),k.querySelector(".feedback-question").classList.add("hide"),k.querySelector(".feedback-response").classList.remove("hide"),starRating.recordVideoRating(k.getAttribute("data-rating-video"),d),a.closest(".feedback-wrapper__modal")&&(a.closest(".feedback-wrapper__modal").classList.add("hide"),k.querySelector(".feedback-wrapper__star-rating--mobile").classList.add("hide"),a.closest(".feedback-wrapper").append(a.parentElement)),k.querySelector(".feedback-response").focus(),
starRating.triggerAnalyticsCall(k)),a.parentElement.querySelectorAll("span").forEach(function(m){m.removeAttribute("tabindex")}),a.closest(".feedback-wrapper").setAttribute("tabindex",0),a.closest(".feedback-wrapper").setAttribute("aria-label",d+k.getAttribute("data-rating-accessibility")),a.parentElement.setAttribute("aria-hidden","true"))):k&&!k.classList.contains("feedback-recorded")&&(a.innerHTML="\x26#9734",a.classList.remove("filled-star"),a.parentElement.querySelectorAll("span").forEach(function(m,
n){n<=b&&(m.innerHTML="\x26#9734",m.classList.remove("filled-star"))}));g&&!k.classList.contains("feedback-recorded")&&4===b&&(a.parentElement.querySelectorAll("span").forEach(function(m){m.innerHTML="\x26#9734";m.classList.remove("filled-star")}),a.closest(".feedback-wrapper__modal")&&!h&&a.closest(".feedback-wrapper__modal").classList.add("hide"));h&&!k.classList.contains("feedback-recorded")&&(a.innerHTML="\x26#9734",a.classList.remove("filled-star"),a.closest(".feedback-wrapper__modal")&&0===
b&&a.closest(".feedback-wrapper__modal").classList.add("hide"))}},recordVideoRating:function(d,a){d=d+":"+a+";";localStorage&&localStorage.getItem("userVideoRatings")?(a=localStorage.getItem("userVideoRatings"),localStorage.setItem("userVideoRatings",a+d)):localStorage&&localStorage.setItem("userVideoRatings",d)},checkLocalStorage:function(){if(localStorage&&localStorage.getItem("userVideoRatings")&&0<starRating.allFeedbackWrapper.length){var d=localStorage.getItem("userVideoRatings").split(";");
starRating.allFeedbackWrapper.forEach(function(a){var b=a.getAttribute("data-rating-video");d.forEach(function(c){c&&c.includes(b)&&(c=c.split(":")[1],a.querySelector(".feedback-question").classList.add("hide"),starRating.handleFeedbackSelection(!0,a.querySelector("span"),c,!0,"click"),a.classList.contains("page-refreshed")&&a.querySelector(".feedback-display-msg").classList.remove("hide"))})})}},openRatingModal:function(d,a){if("click"===a.type||"keydown"===a.type&&(13===a.keyCode||32===a.keyCode))var b=
!0;b&&(b=d.closest(".feedback-wrapper"))&&(a=b.querySelector(".feedback-wrapper__modal__content"),b=b.querySelector(".feedback-wrapper__star-rating"),d=d.closest("[data-rating-video]")?d.closest("[data-rating-video]").querySelector(".feedback-question"):"",""!==d||d)&&(a.querySelector(".feedback-question")||(a.append(d.cloneNode(!0)),a.append(b)),a.parentElement.classList.remove("hide"))},closeModal:function(d,a){("click"===a.type||"keydown"===a.type&&27===a.keyCode)&&a.target.matches(".feedback-wrapper__modal")&&
(d.querySelectorAll(".filled-star").forEach(function(b){b&&(b.innerHTML="\x26#9734",b.classList.remove("filled-star"))}),d.classList.add("hide"))},triggerAnalyticsCall:function(d){digitalData&&d&&(digitalData.videoRating={videoSrc:d.getAttribute("data-video-src"),videoName:d.getAttribute("data-rating-video"),videoRating:d.getAttribute("data-rating")});"undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track("video_feedback_rating")}};
window.addEventListener("DOMContentLoaded",function(){var d=document.querySelectorAll(".video-overview__content__util-wrapper__feedback .feedback-wrapper__star-rating span"),a=document.querySelectorAll(".video-overview__content__util-wrapper__feedback .feedback-wrapper__star-rating--mobile"),b=document.querySelectorAll(".video-overview__content__util-wrapper__feedback .feedback-wrapper__modal");0<d.length&&starRating.init(d,a,b)});
var sbssVideoBlogTiles={excludeList:[],init:function(d,a,b){var c="true"===a.renderSquareTile?"":"body-small",e=function(x){return x="true"===a.isAuthor&&x?x.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+x},f=function(x){var y={dataSrc:"",dataSrcSet:"",imageAlt:""};if("true"===a.renderSquareTile&&x.event_cover_image){var B=e(x.event_cover_image);y.dataSrc=B+".transform/896x896/image.jpg";y.dataSrcSet=B+".transform/896x896/image.jpg 2x,"+B+".transform/448x448/image.jpg 1x"}else x.image&&
(B=e(x.image),y.dataSrc=B+".transform/768x464/image.jpg",y.dataSrcSet=B+".transform/768x464/image.jpg 2x,"+B+".transform/404x244/image.jpg 1x");y.imageAlt=x.cover_image_alt?x.cover_image_alt:"";return y},g=function(x){var y;return 1===(null==(y=a.categoryTitle)?void 0:y.length)?a.categoryTitle[0]:1>a.categoryTitle.length&&0<(null==x?void 0:x.length)?x[0]:null==x?void 0:x.find(function(B){return a.categoryTitle.includes(B)})},h=function(x){return!a.isRelatedContent&&x?'\x3cp class\x3d"sbss-related__grid__tile__text-wrapper__tag-title body-small"\x3e'+
x+"\x3c/p\x3e":""},k=function(x){var y=window.location.pathname.toLowerCase();if(a.isAuthor){var B=a.locale.split("_")[1].toLowerCase();y=y.replace("/content/amzn-biz/"+B,"");y=y.replace(".html","")}return x.filter(function(K){return!(K.fields&&K.fields.uri===y)}).slice(0,a.count)},m=function(){d.querySelectorAll("a").forEach(function(x){x.addEventListener("click",function(){window.digitalData&&_satellite&&(a.isRelatedContent?(window.digitalData.relatedContent={linkName:x.dataset.relatedCta,linkHref:x.href},
_satellite.track("related_content")):(window.digitalData.resourceFilter={linkName:x.dataset.relatedCta,linkHref:x.href},_satellite.track("resource_filter")))})})},n=function(x){var y;JSON.parse(null==a?void 0:a.labelData).forEach(function(B){x.includes(null==B?void 0:B.path)&&(y={lbl:null==B?void 0:B.tr_ctaLabel,altText:null==B?void 0:B.tr_ctaAltText})});return y},t=function(x){null==x||x.forEach(function(B){if(B&&B.fields)if(a.isRelatedContent&&sbssVideoBlogTiles.excludeList.push(B.fields.uri),B.fields.cover_video){var K=
d.insertAdjacentHTML;B=B.fields;var E=f(B),A=B.cover_video,N="",M="",J="";A&&(A=A.split(":"),A[0]&&(N=A[0],J=A[0].substring(A[0].lastIndexOf("/")+1)),1<A.length&&(M=A[1]));A=g(B.tagtitles);var H=n(B.uri);B='\x3cdiv class\x3d"sbss-related__grid__tile"\x3e\x3cdiv class\x3d"sbss-related__grid__tile__videoWrapper"\x3e\x3cvideo class\x3d"sbss-related__grid__tile__videoWrapper__video lazyload" src\x3d"'+e(N)+'" data-poster\x3d"'+E.dataSrc+'" title\x3d"'+E.imageAlt+'" data-media-name\x3d"'+J+'" tabIndex\x3d"-1" crossorigin\x3d"anonymous" playsInline\x3eSorry, your browser doesn\'t support embedded videos. Video is of '+
E.imageAlt+'.\x3ctrack default\x3d"" src\x3d"'+M+'"\x3e\x3c/video\x3e\x3cdiv class\x3d"sbss-video__video-component__media__overlay" data-video-src\x3d"'+N+'" data-video-name\x3d"'+J+'" data-video-href\x3d"'+B.uri+'" aria-label\x3d"'+E.imageAlt+'" tabIndex\x3d"0"\x3e\x3c/div\x3e\x3cdiv class\x3d"custom-play-icon sbss-icon"\x3e\x3cimg alt\x3d"Play" class\x3d"lightbox-enabled" src\x3d"/etc.clientlibs/amzn-biz/clientlibs/clientlib-site/resources/images/icons/sbss-custom-play-icon.svg"/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"sbss-related__grid__tile__text-wrapper"\x3e'+
h(A)+'\x3ch5 class\x3d"sbss-related__grid__tile__text-wrapper__title"\x3e'+B.title+'\x3c/h5\x3e\x3cp class\x3d"sbss-related__grid__tile__text-wrapper__description '+c+'"\x3e'+B.description+'\x3c/p\x3e\x3cdiv class\x3d"sbss-related__grid__tile__text-wrapper__link-wrapper"\x3e\x3ca class\x3d"sbss-related__grid__tile__text-wrapper__link" target\x3d"'+a.target+'" href\x3d"'+B.uri+'" data-related-cta\x3d"'+B.title+'" aria-label\x3d"'+(null==H?void 0:H.altText)+'"\x3e'+(null==H?void 0:H.lbl)+"\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e";
K.call(d,"beforeend",B)}else K=d.insertAdjacentHTML,B=B.fields,E=f(B),N=g(B.tagtitles),M=n(B.uri),B='\x3ca class\x3d"sbss-related__grid__tile" target\x3d"'+a.target+'" href\x3d"'+B.uri+'" data-related-cta\x3d"'+B.title+'" aria-label\x3d"'+(null==M?void 0:M.altText)+'"\x3e\x3cdiv class\x3d"sbss-related__grid__tile__videoWrapper"\x3e\x3cimg class\x3d"sbss-related__grid__tile__videoWrapper__video lazyload" data-srcset\x3d"'+E.dataSrc+'" data-src\x3d"'+E.dataSrcSet+'" alt\x3d"'+E.imageAlt+'"\x3e\x3c/div\x3e\x3cdiv class\x3d"sbss-related__grid__tile__text-wrapper"\x3e'+
h(N)+'\x3ch5 class\x3d"sbss-related__grid__tile__text-wrapper__title"\x3e'+B.title+'\x3c/h5\x3e\x3cp class\x3d"sbss-related__grid__tile__text-wrapper__description '+c+'"\x3e'+B.description+'\x3c/p\x3e\x3cdiv class\x3d"sbss-related__grid__tile__text-wrapper__link-wrapper"\x3e\x3cdiv class\x3d"sbss-related__grid__tile__text-wrapper__link"\x3e'+(null==M?void 0:M.lbl)+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/a\x3e",K.call(d,"beforeend",B)});m();if(a.tabEvent&&0<x.length&&(x=d.querySelectorAll(".sbss-related__grid__tile"),
x.length>a.start))if(x=x[a.start],x.hasAttribute("href"))x.focus();else{var y;null==(y=x.querySelector(".sbss-video__video-component__media__overlay"))||y.focus()}},u=function(){var x,y;null==a||null==(x=a.wrapper)||null==(y=x.querySelector(".sbss-related"))||y.classList.add("hide");a.wrapper&&(a.wrapper.style.margin="20px")};(function(){var x=a.url+"?size\x3d"+(a.count+1)+"\x26locale\x3d"+a.locale+"\x26start\x3d"+a.start+"\x26content-type\x3d"+a.contentType+"\x26tags\x3d"+a.category,y;null==b||null==
(y=b.loader)||y.classList.remove("hide");var B;null==b||null==(B=b.apiError)||B.classList.add("hide");var K;null==b||null==(K=b.noResultError)||K.classList.add("hide");a.isRelatedContent?(null==a?0:a.categoryTilesList.length)?(x=a.categoryTilesList.filter(function(E){var A;return!sbssVideoBlogTiles.excludeList.includes(null==(A=E.fields)?void 0:A.uri)}),(null==x?void 0:x.length)>a.count&&x.splice(a.count,(null==x?NaN:x.length)-1),t(x)):u():amznbase.makeHttpRequest(x,"GET",function(E,A){if(null===
E){var N;null==b||null==(N=b.showMoreButton)||N.classList.add("hide");var M;null==b||null==(M=b.apiError)||M.classList.remove("hide");var J;null==b||null==(J=b.loader)||J.classList.add("hide");u()}else{var H;try{amznbase.invalidResponses.includes(E)||(H=JSON.parse(A))}catch(P){H=""}var ba,W;if((null==(ba=H)?0:null==(W=ba.hits)?0:W.hit)&&0<H.hits.found){E=k(H.hits.hit);t(E);if(a.count+a.start<H.hits.found){var V;null==b||null==(V=b.showMoreButton)||V.classList.remove("hide")}else{var ca;null==b||null==
(ca=b.showMoreButton)||ca.classList.add("hide")}0>=E.length&&u()}else{var aa;null==b||null==(aa=b.showMoreButton)||aa.classList.add("hide");var ja;null==b||null==(ja=b.noResultError)||ja.classList.remove("hide");u()}var G;null==b||null==(G=b.loader)||G.classList.add("hide")}});a.observeElement&&(a.observeElement.value="1")})()}},guestIframe={init:function(){if(document.querySelector('meta[name\x3d"template"][content\x3d"guest-experience-page"]')){this.guestFormModal=document.querySelector("#guestFormModal");
var d;this.iframe=null==(d=this.guestFormModal)?void 0:d.querySelector(".guest__content__modal__wrapper__content iframe");var a;this.modalContent=null==(a=this.guestFormModal)?void 0:a.querySelector(".guest__content__modal__wrapper");this.guestFormModal&&this.iframe&&(this.hideModal(),this.preloadIframe(),this.setupEventListeners())}},preloadIframe:function(){this.iframe&&!this.iframe.src&&this.iframe.dataset.src&&(this.iframe.src=this.iframe.dataset.src)},setupEventListeners:function(){var d=this;
document.addEventListener("click",function(c){c.target.closest(".guest-iframe-button")&&(c.preventDefault(),d.showModal())});this.guestFormModal.addEventListener("click",function(c){c.target===d.guestFormModal&&d.hideModal()});var a,b;null==(a=this.guestFormModal)||null==(b=a.querySelector(".guest__content__modal__wrapper__close"))||b.addEventListener("click",function(){d.hideModal()})},showModal:function(){this.guestFormModal.classList.add("show");this.guestFormModal.classList.remove("hide");document.body.classList.add("stopScrollY")},
hideModal:function(){this.guestFormModal.classList.add("hide");this.guestFormModal.classList.remove("show")}};document.addEventListener("DOMContentLoaded",function(){guestIframe.init()});Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);
Element.prototype.closest||(Element.prototype.closest=function(d){var a=this;if(!document.documentElement.contains(a))return null;do{if(a.matches(d))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType);return null});
(function(){function d(n){function t(V){V.element.removeAttribute("data-cmp-is");x(V.options);u(V.element);W._elements.item&&(W._elements.item=Array.isArray(W._elements.item)?W._elements.item:[W._elements.item],W._elements.button=Array.isArray(W._elements.button)?W._elements.button:[W._elements.button],W._elements.panel=Array.isArray(W._elements.panel)?W._elements.panel:[W._elements.panel],W._properties.singleExpansion&&(V=H(),0===V.length&&B(0),1<V.length&&B(V.length-1)),N(),y(),M(),window.Granite&&
window.Granite.author&&window.Granite.author.MessageChannel&&(new window.Granite.author.MessageChannel("cqauthor",window)).subscribeRequestMessage("cmp.panelcontainer",function(ca){if(ca.data&&"cmp-accordion"===ca.data.type&&ca.data.id===W._elements.self.dataset.cmpPanelcontainerId&&"navigate"===ca.data.operation){var aa=W._properties.singleExpansion;W._properties.singleExpansion=!0;B(ca.data.index);W._properties.singleExpansion=aa}}));document.querySelectorAll("[data-expandedItems-select\x3d'select']").length&&
document.querySelectorAll(".cmp-accordion li[data-cmp-expanded]").forEach(function(ca){if(ca){var aa=ca.querySelector(".cmp-accordion__button--expanded");aa&&(aa.removeAttribute("aria-disabled"),aa.setAttribute("aria-expanded","false"),aa.classList.remove("cmp-accordion__button--expanded","cmp-accordion__button--disabled"));if(aa=ca.querySelector(".cmp-accordion__panel--expanded"))aa.classList.remove("cmp-accordion__panel--expanded"),aa.classList.add("cmp-accordion__panel--hidden"),aa.setAttribute("aria-hidden",
"false");ca.removeAttribute("data-cmp-expanded")}})}function u(V){W._elements={};W._elements.self=V;V=W._elements.self.querySelectorAll("[data-cmp-hook-accordion]");for(var ca=0;ca<V.length;ca++){var aa=V[ca];if(aa.closest(".cmp-accordion")===W._elements.self){var ja="accordion";ja=ja.charAt(0).toUpperCase()+ja.slice(1);ja=aa.dataset["cmpHook"+ja];W._elements[ja]?(Array.isArray(W._elements[ja])||(W._elements[ja]=[W._elements[ja]]),W._elements[ja].push(aa)):W._elements[ja]=aa}}}function x(V){W._properties=
{};for(var ca in m)if(m.hasOwnProperty(ca)){var aa=m[ca],ja=null;V&&null!=V[ca]&&(ja=V[ca],aa&&"function"===typeof aa.transform&&(ja=aa.transform(ja)));null===ja&&(ja=m[ca]["default"]);W._properties[ca]=ja}}function y(){var V=W._elements.item;if(V)for(var ca=0;ca<V.length;ca++)(function(aa){V[ca].addEventListener("click",function(ja){ja.target&&ja.target.closest(".cmp-accordion__button")&&(B(aa),ba(aa))});V[ca].addEventListener("keydown",function(ja){if(ja.target&&!ja.target.closest(".text")){var G=
W._elements.button.length-1;switch(ja.keyCode){case f.ARROW_LEFT:case f.ARROW_UP:ja.preventDefault();0<aa&&ba(aa-1);break;case f.ARROW_RIGHT:case f.ARROW_DOWN:ja.preventDefault();aa<G&&ba(aa+1);break;case f.HOME:ja.preventDefault();ba(0);break;case f.END:ja.preventDefault();ba(G);break;case f.ENTER:case f.SPACE:ja.preventDefault(),B(aa),ba(aa)}}})})(ca)}function B(V){if(V=W._elements.item[V])if(W._properties.singleExpansion){for(var ca=0;ca<W._elements.item.length;ca++)W._elements.item[ca]!==V&&E(W._elements.item[ca])&&
K(W._elements.item[ca],!1);V.hasAttribute("data-cmp-expanded")?K(V,!1):K(V,!0)}else K(V,!E(V))}function K(V,ca){ca?V.setAttribute(k.item.expanded,""):V.removeAttribute(k.item.expanded);A(V)}function E(V){return V&&V.dataset&&void 0!==V.dataset.cmpExpanded}function A(V){if(E(V)){var ca=W._elements.item.indexOf(V);J();-1<ca&&(V=W._elements.button[ca],ca=W._elements.panel[ca],V.classList.add(h.button.expanded),V.setAttribute("aria-expanded",!0),ca.classList.add(h.panel.expanded),ca.classList.remove(h.panel.hidden),
ca.setAttribute("aria-hidden",!1))}else ca=W._elements.item.indexOf(V),J(),-1<ca&&(V=W._elements.button[ca],ca=W._elements.panel[ca],V.classList.remove(h.button.disabled),V.classList.remove(h.button.expanded),V.removeAttribute("aria-disabled"),V.setAttribute("aria-expanded",!1),ca.classList.add(h.panel.hidden),ca.classList.remove(h.panel.expanded),ca.setAttribute("aria-hidden",!0))}function N(){for(var V=0;V<W._elements.item.length;V++)A(W._elements.item[V])}function M(){for(var V=0;V<W._elements.item.length;V+=
1)c[V].setAttribute("aria-controls","accordion-control"+V),c[V].setAttribute("id","accordion-id"+V),e[V].setAttribute("id","accordion-control"+V),e[V].setAttribute("aria-labelledby","accordion-id"+V);return[]}function J(){var V=W._elements.button.length-1;document.activeElement.hasAttribute("aria-controls")&&(document.getElementsByClassName("cmp-accordion__button")[0].focus(),document.getElementsByClassName("cmp-accordion__button")[V].focus())}function H(){for(var V=[],ca=0;ca<W._elements.item.length;ca++){var aa=
W._elements.item[ca];E(aa)&&V.push(aa)}return V}function ba(V){W._elements.button[V].focus()}var W=this;n&&n.element&&t(n)}function a(n){n=n.dataset;var t=[],u="accordion";u=u.charAt(0).toUpperCase()+u.slice(1);u=["is","hook"+u];for(var x in n)if(n.hasOwnProperty(x)){var y=n[x];0===x.indexOf("cmp")&&(x=x.slice(3),x=x.charAt(0).toLowerCase()+x.substring(1),-1===u.indexOf(x)&&(t[x]=y))}return t}function b(){for(var n=document.querySelectorAll(g.self),t=0;t<n.length;t++)new d({element:n[t],options:a(n[t])});
n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;t=document.querySelector("body");(new n(function(u){u.forEach(function(x){x=[].slice.call(x.addedNodes);0<x.length&&x.forEach(function(y){y.querySelectorAll&&[].slice.call(y.querySelectorAll(g.self)).forEach(function(B){new d({element:B,options:a(B)})})})})})).observe(t,{subtree:!0,childList:!0,characterData:!0})}var c=document.getElementsByClassName("cmp-accordion__button"),e=document.getElementsByClassName("cmp-accordion__panel"),
f={ENTER:13,SPACE:32,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},g={self:'[data-cmp-is\x3d"accordion"]'},h={button:{disabled:"cmp-accordion__button--disabled",expanded:"cmp-accordion__button--expanded"},panel:{hidden:"cmp-accordion__panel--hidden",expanded:"cmp-accordion__panel--expanded"}},k={item:{expanded:"data-cmp-expanded"}},m={singleExpansion:{"default":!1,transform:function(n){return!(null===n||"undefined"===typeof n)}}};"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",
b())})();window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);var a=this,b;do for(b=d.length;0<=--b&&d.item(b)!==a;);while(0>b&&(a=a.parentElement));return a});
window.Element&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);for(var a=d.length;0<=--a&&d.item(a)!==this;);return-1<a});
Object.assign||(Object.assign=function(d,a){if(null===d)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(d),c=1;c<arguments.length;c++){var e=arguments[c];if(null!==e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(b[f]=e[f])}return b});
(function(d){d.forEach(function(a){Object.prototype.hasOwnProperty.call(a,"remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
(function(d){window.CMP=window.CMP||{};window.CMP.utils=function(){return{readData:function(a,b){a=a.dataset;var c=[];b=b.charAt(0).toUpperCase()+b.slice(1);b=["is","hook"+b];for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=a[e];0===e.indexOf("cmp")&&(e=e.slice(3),e=e.charAt(0).toLowerCase()+e.substring(1),-1===b.indexOf(e)&&(c[e]=f))}return c},setupProperties:function(a,b){var c={},e;for(e in b)if(Object.prototype.hasOwnProperty.call(b,e)){var f=b[e];c[e]=a&&null!=a[e]?f&&"function"===
typeof f.transform?f.transform(a[e]):a[e]:b[e]["default"]}return c}}}()})(window.document);
(function(d){window.CMP=window.CMP||{};window.CMP.image=window.CMP.image||{};window.CMP.image.dynamicMedia=function(){function a(g,h){for(var k=g.length,m=0;m<k-1&&g[m]<h;)m++;return void 0!==g[m]?g[m].toString():h}var b={},c=window.devicePixelRatio||1,e=function(g){var h=new XMLHttpRequest;g=g.split("{.width}")[0]+"?req\x3dset,json";h.open("GET",g,!1);h.onload=function(){if(200<=h.status&&400>h.status){var k=new RegExp(/^{[\s\S]*}$/gmi),m=(new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gmi)).exec(h.responseText),
n;m&&(m=m[2],k.test(m)&&(n=JSON.parse(m)));if(n&&n.set.relation&&0<n.set.relation.length)for(k=0;k<n.set.relation.length;k++)b[parseInt(n.set.relation[k].userdata.SmartCropWidth)]=":"+n.set.relation[k].userdata.SmartCropDef}};h.send();return b},f=function(g,h){for(var k=g.offsetWidth;20>k&&h&&!g._autoWidth;)k=h.offsetWidth,h=h.parentNode;return k};return{getAutoSmartCrops:e,getSrcSet:function(g,h){if(0<Object.keys(h).length){var k=[];for(var m in b)k.push(g.replace("{.width}",h[m])+" "+m+"w")}return k.join(",")},
getSrc:function(g,h){-1<g.indexOf("{.width}")&&(g=g.replace("{.width}",h));return g},setDMAttributes:function(g,h){var k=h.src.replace("dpr\x3doff","dpr\x3don,{dpr}");k=k.replace("{dpr}",c);var m={};"SmartCrop:Auto"===h.smartcroprendition&&(m=e(k));if(h.widths&&0<h.widths.length||0<Object.keys(m).length){var n=g.querySelector("img");g=f(g,g.parentNode);"SmartCrop:Auto"===h.smartcroprendition?(n.setAttribute("srcset",CMP.image.dynamicMedia.getSrcSet(k,m)),h=a(Object.keys(m,g)),n.setAttribute("src",
CMP.image.dynamicMedia.getSrc(k,m[h]))):(h=a(h.widths,g),n.setAttribute("src",CMP.image.dynamicMedia.getSrc(k,h)))}},getWidth:f}}();d.dispatchEvent(new CustomEvent("core.wcm.components.commons.site.image.dynamic-media.loaded"))})(window.document);
(function(){function d(g){function h(J){J.element.removeAttribute("data-cmp-is");J.options.src&&0<=J.options.src.indexOf("width\x3d{width}")&&(N=!0,M="width\x3d{width}");E._properties=CMP.utils.setupProperties(J.options,c);y(J.element);J.options.src&&Object.prototype.hasOwnProperty.call(J.options,"dmimage")&&"SmartCrop:Auto"===J.options.smartcroprendition&&(A=CMP.image.dynamicMedia.getAutoSmartCrops(J.options.src));E._elements.noscript&&(E._elements.container=E._elements.link?E._elements.link:E._elements.self,
t(),E._properties.lazy&&n(),E._elements.map&&E._elements.image.addEventListener("load",K),window.addEventListener("resize",B),"focus click load transitionend animationend scroll".split(" ").forEach(function(H){document.addEventListener(H,E.update)}),E._elements.image.addEventListener("cmp-image-redraw",E.update),E._interSectionObserver=new IntersectionObserver(function(H,ba){H.forEach(function(W){0<W.intersectionRatio&&E.update()})}),E._interSectionObserver.observe(E._elements.self),E.update())}function k(){var J=
E._properties.widths&&0<E._properties.widths.length||0<Object.keys(A).length;if(0<Object.keys(A).length){var H=m(Object.keys(A),!1);H=A[H]}else H=J?(E._properties.dmimage?"":".")+m(E._properties.widths,!0):"";N&&(H=""!==H?"width\x3d"+H.substring(1):"");H=E._properties.src.replace(M,H);H=H.replace("{dpr}",e);var ba=E._elements.image.getAttribute("src");if(H!==ba)if(null===ba||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"===ba)E._elements.image.setAttribute("src",
H);else{var W=E._properties.src.split(M),V=ba.startsWith(W[0]);V&&1<W.length&&(V=ba.endsWith(W[W.length-1]));V&&(E._elements.image.setAttribute("src",H),J||window.removeEventListener("scroll",E.update))}E._lazyLoaderShowing&&E._elements.image.addEventListener("load",u);E._interSectionObserver.unobserve(E._elements.self)}function m(J,H){for(var ba=E._elements.self,W=ba.clientWidth;0===W&&ba.parentNode;)ba=ba.parentNode,W=ba.clientWidth;H=W*(H?e:1);ba=J.length;for(W=0;W<ba-1&&J[W]<H;)W++;return J[W].toString()}
function n(){var J=E._elements.image.getAttribute("width"),H=E._elements.image.getAttribute("height");if(J&&H){var ba=b.style;ba["padding-bottom"]=H/J*100+"%";for(var W in ba)Object.prototype.hasOwnProperty.call(ba,W)&&(E._elements.image.style[W]=ba[W])}E._elements.image.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");E._elements.image.classList.add(b.cssClass);E._lazyLoaderShowing=!0}function t(){var J=E._elements.noscript.textContent.trim();J=
J.replace(/&(amp;)*lt;/g,"\x3c");J=J.replace(/&(amp;)*gt;/g,"\x3e");J=(new DOMParser).parseFromString(J,"text/html");var H=J.querySelector(a.image);H.removeAttribute("src");E._elements.container.insertBefore(H,E._elements.noscript);(J=J.querySelector(a.map))&&E._elements.container.insertBefore(J,E._elements.noscript);E._elements.noscript.parentNode.removeChild(E._elements.noscript);E._elements.container.matches(a.image)?E._elements.image=E._elements.container:E._elements.image=E._elements.container.querySelector(a.image);
E._elements.map=E._elements.container.querySelector(a.map);E._elements.areas=E._elements.container.querySelectorAll(a.area)}function u(){E._elements.image.classList.remove(b.cssClass);for(var J in b.style)Object.prototype.hasOwnProperty.call(b.style,J)&&(E._elements.image.style[J]="");E._elements.image.removeEventListener("load",u);E._lazyLoaderShowing=!1}function x(){if(E._elements.areas&&0<E._elements.areas.length)for(var J=0;J<E._elements.areas.length;J++){var H=E._elements.image.width,ba=E._elements.image.height;
if(H&&ba){var W=E._elements.areas[J].dataset.cmpRelcoords;if(W){W=W.split(",");for(var V=Array(W.length),ca=0;ca<V.length;ca++)V[ca]=0===ca%2?parseInt(W[ca]*H):parseInt(W[ca]*ba);E._elements.areas[J].coords=V}}}}function y(J){E._elements={};E._elements.self=J;J=E._elements.self.querySelectorAll("[data-cmp-hook-image]");for(var H=0;H<J.length;H++){var ba=J[H],W="image";W=W.charAt(0).toUpperCase()+W.slice(1);E._elements[ba.dataset["cmpHook"+W]]=ba}}function B(){E.update();x()}function K(){x()}var E=
this,A={},N=!1,M="{.width}";E.update=function(){if(E._properties.lazy){if(null===E._elements.container.offsetParent)var J=!1;else{J=window.pageYOffset;var H=J+document.documentElement.clientHeight,ba=E._elements.container.getBoundingClientRect().top+J;J=ba+E._elements.container.clientHeight>=J-E._properties.lazythreshold&&ba<=H+E._properties.lazythreshold}J&&k()}else k()};g&&g.element&&h(g)}var a={self:'[data-cmp-is\x3d"image"]',image:'[data-cmp-hook-image\x3d"image"]',map:'[data-cmp-hook-image\x3d"map"]',
area:'[data-cmp-hook-image\x3d"area"]'},b={cssClass:"cmp-image__image--is-loading",style:{height:0,"padding-bottom":""}},c={widths:{"default":[],transform:function(g){var h=[];g.split(",").forEach(function(k){k=parseFloat(k);isNaN(k)||h.push(k)});return h}},lazy:{"default":!1,transform:function(g){return!(null===g||"undefined"===typeof g)}},dmimage:{"default":!1,transform:function(g){return!(null===g||"undefined"===typeof g)}},lazythreshold:{"default":0,transform:function(g){g=parseInt(g);return isNaN(g)?
0:g}},src:{transform:function(g){return decodeURIComponent(g)}}},e=window.devicePixelRatio||1,f="loading"!==document.readyState?Promise.resolve():new Promise(function(g){document.addEventListener("DOMContentLoaded",g)});Promise.all([f]).then(function(){for(var g=document.querySelectorAll(a.self),h=0;h<g.length;h++)new d({element:g[h],options:CMP.utils.readData(g[h],"image")});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;h=document.querySelector("body");(new g(function(k){k.forEach(function(m){m=
[].slice.call(m.addedNodes);0<m.length&&m.forEach(function(n){n.querySelectorAll&&[].slice.call(n.querySelectorAll(a.self)).forEach(function(t){new d({element:t,options:CMP.utils.readData(t,"image")})})})})})).observe(h,{subtree:!0,childList:!0,characterData:!0})})})();
(function(){function d(m){m=m.dataset;var n=[],t="search";t=t.charAt(0).toUpperCase()+t.slice(1);t=["is","hook"+t];for(var u in m)if(Object.prototype.hasOwnProperty.call(m,u)){var x=m[u];0===u.indexOf("cmp")&&(u=u.slice(3),u=u.charAt(0).toLowerCase()+u.substring(1),-1===t.indexOf(u)&&(n[u]=x))}return n}function a(m,n){m&&(!1!==n?(m.style.display="block",m.setAttribute("aria-hidden",!1)):(m.style.display="none",m.setAttribute("aria-hidden",!0)))}function b(m){var n=[];if(m&&m.elements)for(var t=0;t<
m.elements.length;t++){var u=m.elements[t];!u.disabled&&u.name&&(u=[u.name,encodeURIComponent(u.value)],n.push(u.join("\x3d")))}return n.join("\x26")}function c(m,n){if(m&&n)if(3===m.nodeType){var t=m.nodeValue;n=n.exec(t);if(t&&n){t=document.createElement("mark");t.className="cmp-search__item-mark";t.appendChild(document.createTextNode(n[0]));var u=m.splitText(n.index);u.nodeValue=u.nodeValue.substring(n[0].length);m.parentNode.insertBefore(t,u)}}else if(m.hasChildNodes())for(t=0;t<m.childNodes.length;t++)c(m.childNodes[t],
n)}function e(m){m.element&&m.element.removeAttribute("data-cmp-is");this._cacheElements(m.element);this._setupProperties(m.options);this._action=this._elements.form.getAttribute("action");this._resultsOffset=0;this._hasMoreResults=!0;this._elements.input.addEventListener("input",this._onInput.bind(this));this._elements.input.addEventListener("focus",this._onInput.bind(this));this._elements.input.addEventListener("keydown",this._onKeydown.bind(this));this._elements.clear.addEventListener("click",
this._onClearClick.bind(this));document.addEventListener("click",this._onDocumentClick.bind(this));this._elements.results.addEventListener("scroll",this._onScroll.bind(this));this._makeAccessible()}function f(){for(var m=document.querySelectorAll(g.self),n=0;n<m.length;n++)new e({element:m[n],options:d(m[n])});m=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;n=document.querySelector("body");(new m(function(t){t.forEach(function(u){u=[].slice.call(u.addedNodes);
0<u.length&&u.forEach(function(x){x.querySelectorAll&&[].slice.call(x.querySelectorAll(g.self)).forEach(function(y){new e({element:y,options:d(y)})})})})})).observe(n,{subtree:!0,childList:!0,characterData:!0})}var g={self:'[data-cmp-is\x3d"search"]',item:{self:'[data-cmp-hook-search\x3d"item"]',title:'[data-cmp-hook-search\x3d"itemTitle"]',focused:".cmp-search__item--is-focused"}},h={minLength:{"default":3,transform:function(m){m=parseFloat(m);return isNaN(m)?null:m}},resultsSize:{"default":10,transform:function(m){m=
parseFloat(m);return isNaN(m)?null:m}}},k=0;e.prototype._displayResults=function(){0===this._elements.input.value.length?(a(this._elements.clear,!1),this._cancelResults()):(this._elements.input.value.length<this._properties.minLength||this._updateResults(),a(this._elements.clear,!0))};e.prototype._onScroll=function(m){this._elements.results.scrollTop+2*this._elements.results.clientHeight>=this._elements.results.scrollHeight&&(this._resultsOffset+=this._properties.resultsSize,this._displayResults())};
e.prototype._onInput=function(m){var n=this;n._cancelResults();this._timeout=setTimeout(function(){n._displayResults()},300)};e.prototype._onKeydown=function(m){switch(m.keyCode){case 9:this._resultsOpen()&&(a(this._elements.results,!1),this._elements.input.setAttribute("aria-expanded","false"));break;case 13:m.preventDefault();this._resultsOpen()&&(m=this._elements.results.querySelector(g.item.focused))&&m.click();break;case 27:this._cancelResults();break;case 38:this._resultsOpen()&&(m.preventDefault(),
this._stepResultFocus(!0));break;case 40:this._resultsOpen()?(m.preventDefault(),this._stepResultFocus()):this._onInput()}};e.prototype._onClearClick=function(m){m.preventDefault();this._elements.input.value="";a(this._elements.clear,!1);a(this._elements.results,!1);this._elements.input.setAttribute("aria-expanded","false")};e.prototype._onDocumentClick=function(m){var n=this._elements.input.contains(m.target);m=this._elements.results.contains(m.target);n||m||(a(this._elements.results,!1),this._elements.input.setAttribute("aria-expanded",
"false"))};e.prototype._resultsOpen=function(){return"none"!==this._elements.results.style.display};e.prototype._makeAccessible=function(){var m="cmp-search-results-"+k;this._elements.input.setAttribute("aria-owns",m);this._elements.results.id=m;k++};e.prototype._generateItems=function(m,n){var t=this;m.forEach(function(u){var x=document.createElement("span");x.innerHTML=t._elements.itemTemplate.innerHTML;x.querySelectorAll(g.item.title)[0].appendChild(document.createTextNode(u.title));x.querySelectorAll(g.item.self)[0].setAttribute("href",
u.url);n.innerHTML+=x.innerHTML})};e.prototype._markResults=function(){var m=this._elements.results.querySelectorAll(g.item.self),n=this._elements.input.value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$\x26");n=new RegExp("("+n+")","gi");for(var t=this._resultsOffset-1;t<m.length;++t)c(m[t],n)};e.prototype._stepResultFocus=function(m){var n=this._elements.results.querySelectorAll(g.item.self),t=this._elements.results.querySelector(g.item.focused);t=Array.prototype.indexOf.call(n,t);if(0<n.length)if(m){if(1<=
t&&(n[t].classList.remove("cmp-search__item--is-focused"),n[t].setAttribute("aria-selected","false"),n[t-1].classList.add("cmp-search__item--is-focused"),n[t-1].setAttribute("aria-selected","true")),m=this._elements.results.querySelector(g.item.focused))m=this._elements.results.scrollTop-m.offsetTop,0<m&&(this._elements.results.scrollTop-=m)}else if(0>t?(n[0].classList.add("cmp-search__item--is-focused"),n[0].setAttribute("aria-selected","true")):t+1<n.length&&(n[t].classList.remove("cmp-search__item--is-focused"),
n[t].setAttribute("aria-selected","false"),n[t+1].classList.add("cmp-search__item--is-focused"),n[t+1].setAttribute("aria-selected","true")),m=this._elements.results.querySelector(g.item.focused))m=m.offsetTop+m.offsetHeight-this._elements.results.scrollTop-this._elements.results.clientHeight,0<m?this._elements.results.scrollTop+=m:this._onScroll()};e.prototype._updateResults=function(){var m=this;if(m._hasMoreResults){var n=new XMLHttpRequest,t=m._action+"?"+b(m._elements.form)+"\x26resultsOffset\x3d"+
m._resultsOffset;n.open("GET",t,!0);n.onload=function(){setTimeout(function(){a(m._elements.loadingIndicator,!1);a(m._elements.icon,!0)},300);if(200<=n.status&&400>n.status){var u=JSON.parse(n.responseText);0<u.length?(m._generateItems(u,m._elements.results),m._markResults(),a(m._elements.results,!0),m._elements.input.setAttribute("aria-expanded","true")):m._hasMoreResults=!1;0<m._elements.results.querySelectorAll(g.item.self).length%m._properties.resultsSize&&(m._hasMoreResults=!1)}};a(m._elements.loadingIndicator,
!0);a(m._elements.icon,!1);n.send()}};e.prototype._cancelResults=function(){clearTimeout(this._timeout);this._resultsOffset=this._elements.results.scrollTop=0;this._hasMoreResults=!0;this._elements.results.innerHTML="";this._elements.input.setAttribute("aria-expanded","false")};e.prototype._cacheElements=function(m){this._elements={};this._elements.self=m;m=this._elements.self.querySelectorAll("[data-cmp-hook-search]");for(var n=0;n<m.length;n++){var t=m[n],u="search";u=u.charAt(0).toUpperCase()+
u.slice(1);this._elements[t.dataset["cmpHook"+u]]=t}};e.prototype._setupProperties=function(m){this._properties={};for(var n in h)if(Object.prototype.hasOwnProperty.call(h,n)){var t=h[n];this._properties[n]=m&&null!=m[n]?t&&"function"===typeof t.transform?t.transform(m[n]):m[n]:h[n]["default"]}};"loading"!==document.readyState?f():document.addEventListener("DOMContentLoaded",f)})();
(function(){function d(f){f=f.dataset;var g=[],h="formText";h=h.charAt(0).toUpperCase()+h.slice(1);h=["is","hook"+h];for(var k in f)if(Object.prototype.hasOwnProperty.call(f,k)){var m=f[k];0===k.indexOf("cmp")&&(k=k.slice(3),k=k.charAt(0).toLowerCase()+k.substring(1),-1===h.indexOf(k)&&(g[k]=m))}return g}function a(f){f.element&&f.element.removeAttribute("data-cmp-is");this._cacheElements(f.element);this._setupProperties(f.options);this._elements.input.addEventListener("invalid",this._onInvalid.bind(this));
this._elements.input.addEventListener("input",this._onInput.bind(this))}function b(){for(var f=document.querySelectorAll(c.self),g=0;g<f.length;g++)new a({element:f[g],options:d(f[g])});f=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;g=document.querySelector("body");(new f(function(h){h.forEach(function(k){k=[].slice.call(k.addedNodes);0<k.length&&k.forEach(function(m){m.querySelectorAll&&[].slice.call(m.querySelectorAll(c.self)).forEach(function(n){new a({element:n,
options:d(n)})})})})})).observe(g,{subtree:!0,childList:!0,characterData:!0})}var c={self:'[data-cmp-is\x3d"formText"]'},e={constraintMessage:"",requiredMessage:""};a.prototype._onInvalid=function(f){f.target.setCustomValidity("");f.target.validity.typeMismatch?this._properties.constraintMessage&&f.target.setCustomValidity(this._properties.constraintMessage):f.target.validity.valueMissing&&this._properties.requiredMessage&&f.target.setCustomValidity(this._properties.requiredMessage)};a.prototype._onInput=
function(f){f.target.setCustomValidity("")};a.prototype._cacheElements=function(f){this._elements={};this._elements.self=f;f=this._elements.self.querySelectorAll("[data-cmp-hook-form-text]");for(var g=0;g<f.length;g++){var h=f[g],k="formText";k=k.charAt(0).toUpperCase()+k.slice(1);this._elements[h.dataset["cmpHook"+k]]=h}};a.prototype._setupProperties=function(f){this._properties={};for(var g in e)if(Object.prototype.hasOwnProperty.call(e,g)){var h=e[g];this._properties[g]=f&&null!=f[g]?h&&"function"===
typeof h.transform?h.transform(f[g]):f[g]:e[g]["default"]}};"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b)})();
(function(){function d(){var f=0<document.querySelectorAll(e.sdkScript).length;window.adobe_dc_view_sdk||f||(f=document.createElement("script"),f.type="text/javascript",f.src="https://acrobatservices.adobe.com/view-sdk/viewer.js",document.body.appendChild(f))}function a(f){f.removeAttribute("data-cmp-is");d();f.dataset&&f.id&&(window.AdobeDC&&window.AdobeDC.View?b(f):document.addEventListener("adobe_dc_view_sdk.ready",function(){b(f)}))}function b(f){(new window.AdobeDC.View({clientId:f.dataset.cmpClientId,
divId:f.id+"-content",reportSuiteId:f.dataset.cmpReportSuiteId})).previewFile({content:{location:{url:f.dataset.cmpDocumentPath}},metaData:{fileName:f.dataset.cmpDocumentFileName}},JSON.parse(f.dataset.cmpViewerConfigJson))}function c(){for(var f=document.querySelectorAll(e.self),g=0;g<f.length;g++)a(f[g]);f=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;g=document.querySelector("body");(new f(function(h){h.forEach(function(k){k=[].slice.call(k.addedNodes);0<k.length&&
k.forEach(function(m){m.querySelectorAll&&[].slice.call(m.querySelectorAll(e.self)).forEach(function(n){a(n)})})})})).observe(g,{subtree:!0,childList:!0,characterData:!0})}var e={self:'[data-cmp-is\x3d"pdfviewer"]',sdkScript:'script[src\x3d"https://acrobatservices.adobe.com/view-sdk/viewer.js"]'};"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c)})();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);
Element.prototype.closest||(Element.prototype.closest=function(d){var a=this;if(!document.documentElement.contains(a))return null;do{if(a.matches(d))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType);return null});
(function(){function d(f){function g(x){x.element.removeAttribute("data-cmp-is");k(x.element);u._active=h(u._elements.tab);u._elements.tabpanel&&(n(),m());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(new window.Granite.author.MessageChannel("cqauthor",window)).subscribeRequestMessage("cmp.panelcontainer",function(y){y.data&&"cmp-tabs"===y.data.type&&y.data.id===u._elements.self.dataset.cmpPanelcontainerId&&"navigate"===y.data.operation&&(u._active=y.data.index,n())})}
function h(x){if(x)for(var y=0;y<x.length;y++)if(x[y].classList.contains(e.active.tab))return y;return 0}function k(x){u._elements={};u._elements.self=x;x=u._elements.self.querySelectorAll("[data-cmp-hook-tabs]");for(var y=0;y<x.length;y++){var B=x[y];if(B.closest(".cmp-tabs")===u._elements.self){var K="tabs";K=K.charAt(0).toUpperCase()+K.slice(1);K=B.dataset["cmpHook"+K];u._elements[K]?(Array.isArray(u._elements[K])||(u._elements[K]=[u._elements[K]]),u._elements[K].push(B)):u._elements[K]=B}}}function m(){var x=
u._elements.tab;if(x)for(var y=0;y<x.length;y++)(function(B){x[y].addEventListener("click",function(K){t(B)});x[y].addEventListener("keydown",function(K){var E=u._active,A=u._elements.tab.length-1;switch(K.keyCode){case c.ARROW_LEFT:case c.ARROW_UP:K.preventDefault();0<E&&t(E-1);break;case c.ARROW_RIGHT:case c.ARROW_DOWN:K.preventDefault();E<A&&t(E+1);break;case c.HOME:K.preventDefault();t(0);break;case c.END:K.preventDefault();t(A);break;case c.ENTER:K.preventDefault(),t(B)}})})(y)}function n(){var x=
u._elements.tabpanel,y=u._elements.tab;if(x)if(Array.isArray(x))for(var B=0;B<x.length;B++)B===parseInt(u._active)?(x[B].classList.add(e.active.tabpanel),x[B].removeAttribute("aria-hidden"),y[B].classList.add(e.active.tab),y[B].setAttribute("aria-selected",!0)):(x[B].classList.remove(e.active.tabpanel),x[B].setAttribute("aria-hidden",!0),y[B].classList.remove(e.active.tab),y[B].setAttribute("aria-selected",!1));else x.classList.add(e.active.tabpanel),y&&y.classList.add(e.active.tab)}function t(x){u._active=
x;n();var y=window.scrollX||window.pageXOffset,B=window.scrollY||window.pageYOffset;u._elements.tab[x].focus();window.scrollTo(y,B);(x=u._elements.tab[x])&&x.closest(".tabs-list")&&(y=x.closest(".tabs-list").querySelector(".tabs-list-dropdown span"))&&(y.textContent=x.innerText)}var u=this;f&&f.element&&g(f)}function a(f){f=f.dataset;var g=[],h="tabs";h=h.charAt(0).toUpperCase()+h.slice(1);h=["is","hook"+h];for(var k in f)if(f.hasOwnProperty(k)){var m=f[k];0===k.indexOf("cmp")&&(k=k.slice(3),k=k.charAt(0).toLowerCase()+
k.substring(1),-1===h.indexOf(k)&&(g[k]=m))}return g}function b(){for(var f=document.querySelectorAll(e.self),g=0;g<f.length;g++)new d({element:f[g],options:a(f[g])});f=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;g=document.querySelector("body");(new f(function(h){h.forEach(function(k){k=[].slice.call(k.addedNodes);0<k.length&&k.forEach(function(m){m.querySelectorAll&&[].slice.call(m.querySelectorAll(e.self)).forEach(function(n){new d({element:n,options:a(n)})})})})})).observe(g,
{subtree:!0,childList:!0,characterData:!0})}var c={END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,ENTER:13},e={self:'[data-cmp-is\x3d"tabs"]',active:{tab:"cmp-tabs__tab--active",tabpanel:"cmp-tabs__tabpanel--active"}};"loading"!==document.readyState?document.querySelector(".custom-cmp-tabs")&&b():document.addEventListener("DOMContentLoaded",function(){document.querySelector(".custom-cmp-tabs")&&b()})})();
var cookiePreferences={cookieModal:document.querySelector(".cookie-preferences-modal"),init:function(){var d=document.querySelector(".cookie-preferences"),a=document.querySelector(".cookie-preferences-modal__content"),b=document.querySelectorAll(".about-cookie__content__items__item__wrapper__switch__label__input, .about-cookie__content__items__item__titleWrapper__switch__label__input");d&&a&&a.appendChild(d);this.bindEvents(b)},setActiveInactiveText:function(d){var a=d.dataset.activetext,b=d.dataset.inactivetext,
c=d.closest("label");c&&(c=c.nextElementSibling)&&(c.textContent=d.checked?a:b)},loadUserCookiePreferences:function(d){var a=amznbase.getCookie("userconsent");a&&(a=JSON.parse(a),d&&d.length&&d.forEach(function(b){b.dataset.name in a&&(b.checked=a[b.dataset.name],cookiePreferences.setActiveInactiveText(b))}));amznbase.removeBodyScroll();cookiePreferences.cookieModal&&(cookiePreferences.cookieModal.classList.remove("hide"),cookiePreferences.cookieModal.focus(),cookiePreferences.cookieModal.setAttribute("aria-hidden",
"false"),Notification.setTabPanelHeight())},setActiveInactiveSwitch:function(d,a){d.forEach(function(b){b.dataset.name===a.dataset.name&&(b.checked=a.checked,cookiePreferences.setActiveInactiveText(b))})},bindEvents:function(d){var a=document.querySelector(".custom-cmp-tabs .cmp-tabs__tabpanel .cmp-tabs .tabs-list button"),b=document.querySelector("#acceptOptedCookies"),c=document.querySelector("#acceptAllCookies"),e=document.querySelector("#rejectAllCookies"),f=document.querySelector(".preferences"),
g=document.querySelector(".userpreference-cookieconsent"),h=document.querySelector(".cmp-tabs__tab.cmp-tabs__tab--single2"),k={};if(a){var m=a.nextElementSibling;a.addEventListener("click",function(){m&&(m.classList&&m.classList.contains("open")?m.classList.remove("open"):m.classList.add("open"))});window.addEventListener("click",function(n){n.target&&!n.target.closest(".tabs-list-dropdown")&&m.classList.remove("open")});window.addEventListener("keydown",function(n){k[n.key]=!0;k.Shift&&"Tab"===n.key&&
!cookiePreferences.cookieModal.classList.contains("hide")?b&&(h&&h===document.activeElement||cookiePreferences.cookieModal===document.activeElement)&&(b.focus(),n.preventDefault()):"Tab"===n.key&&b&&b===document.activeElement&&cookiePreferences.cookieModal.focus()});window.addEventListener("keyup",function(n){delete k[n.key]})}f&&(f.addEventListener("click",function(){cookiePreferences.loadUserCookiePreferences(d)}),f.addEventListener("keyup",function(n){13!==n.keyCode&&13!==n.which||cookiePreferences.loadUserCookiePreferences(d)}));
d&&d.length&&d.forEach(function(n){n.addEventListener("change",function(){cookiePreferences.setActiveInactiveSwitch(d,n)});n.addEventListener("keyup",function(t){if(13===t.keyCode||13===t.which)n.click(),cookiePreferences.setActiveInactiveSwitch(d,n)})});b&&(b.addEventListener("click",function(){Notification.hideNotification(g);Notification.setCookiePreferences(d,!1,!0,!1)}),b.addEventListener("keyup",function(n){if(13===n.keyCode||13===n.which)Notification.hideNotification(g),Notification.setCookiePreferences(d,
!1,!0,!1)}));c&&(c.addEventListener("click",function(){Notification.hideNotification(g);Notification.setCookiePreferences(d,!0,!0,!1)}),c.addEventListener("keyup",function(n){if(13===n.keyCode||13===n.which)Notification.hideNotification(g),Notification.setCookiePreferences(d,!1,!0,!1)}));e&&(e.addEventListener("click",function(){Notification.hideNotification(g);Notification.setCookiePreferences(d,!1,!0,!0)}),e.addEventListener("keyup",function(n){if(13===n.keyCode||13===n.which)Notification.hideNotification(g),
Notification.setCookiePreferences(d,!1,!0,!0)}))}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".custom-cmp-tabs")&&cookiePreferences.init()});
(function(){var d={init:function(){this.adjustCTAHeight();this.addEventListeners()},addEventListeners:function(){document.querySelector(".abm-calltoaction__signUpForm__form__submit")&&document.querySelector(".abm-calltoaction__signUpForm__form__submit").addEventListener("click",function(a){var b=document.querySelector(".abm-calltoaction__signUpForm__form"),c=b.querySelector(".abm-calltoaction__signUpForm__form__fieldset__input"),e=document.querySelector(".abm-calltoaction__signUpForm__form__error-message");
a&&a.preventDefault();b&&(c&&c.setCustomValidity(""),b.action&&b.method&&b.checkValidity()?("undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track("lead_gen"),b.submit()):c&&(a=c.dataset.constraintmsg,b=c.dataset.mandatorymsg,c.validity.valueMissing&&b&&e?(e.innerHTML=b,e.classList.remove("hide")):a&&e&&(e.innerHTML=a,e.classList.remove("hide"))))})},adjustCTAHeight:function(){var a=document.querySelectorAll(".abm-calltoaction"),b=document.querySelectorAll(".btn_container_wrapper__btn");
a&&!b&&a.forEach(function(c){c.classList&&0>c.classList.toString().indexOf("abm-calltoaction--appDownload")&&amznbase.setMaxHeight(c,"a")})}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-calltoaction"))&&d.init()})})();
(function(){var d={init:function(){this.featureTextSections=[];this.addElements();this.initiateAnimation();this.addEventListeners()},addElements:function(){var a=this;document.querySelectorAll(".abm-featurelist__container__sub-feature__item__content.publish.bar").forEach(function(b){a.featureTextSections.push(b)})},addEventListeners:function(){var a=this;window.addEventListener("scroll",amznbase.throttle(function(){a.initiateAnimation()},100))},initiateAnimation:function(){this.featureTextSections.length&&
this.featureTextSections.forEach(function(a){!a.classList.contains("animate")&&amznbase.inViewport(a,!1)&&a.classList.add("animate")})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-featurelist")&&d.init()})})();
var Hero={init:function(){this.unstuck=document.querySelector(".hero-compoment-cta-wrapper");this.sticky=document.querySelector(".hero-compoment-sticky-cta");this.globalNav=document.getElementById("overflow-menu-desktop");this.muteHeroVideo();this.globalNav||(this.scrollStick(),this.checkScrollPosition())},checkScrollPosition:function(){if(this.unstuck&&this.sticky){var d=this.unstuck.getBoundingClientRect();0>=d.top?(this.sticky.classList.add("stuck"),this.unstuck.classList.add("stuck")):(this.sticky.classList.remove("stuck"),
this.unstuck.classList.remove("stuck"));0>=window.scrollY&&(this.sticky.classList.remove("stuck"),this.unstuck.classList.remove("stuck"))}},muteHeroVideo:function(){document.querySelectorAll(".hero-component__top__media__bg-video").forEach(function(d){d.muted="muted"})},scrollStick:function(){var d,a=this;window.addEventListener("scroll",function(){d&&window.cancelAnimationFrame(d);d=window.requestAnimationFrame(function(){a.dimensions=window.innerWidth;a.checkScrollPosition()})},!1)}};
window.addEventListener("DOMContentLoaded",function(){document.querySelector(".hero-component")&&Hero.init()});
var Navigation={init:function(){this.desktopButton=document.getElementById("overflow-menu-desktop-trigger");this.mobileButton=document.getElementById("overflow-menu-mobile-trigger");this.desktopContainer=document.getElementById("overflow-menu-desktop");this.mobileContainer=document.getElementById("overflow-menu-mobile");this.mobileCloseBtn=document.getElementById("overflow-menu-mobile-close");this.isIOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;
this.dimensions=window.innerWidth;this.listener=null;this.menuToggle();this.checkScrollPosition();this.addEventListeners();this.internalPageRedirectMenuEventListner();this.addActiveElement();this.addAriaControls();this.skipToMainContent()},internalPageRedirectMenuEventListner:function(){var d=this;document.querySelectorAll("a.mobile-menu__item--label.menu-label").forEach(function(a){a.addEventListener("click",function(b){var c=(new URL(b.target.href)).pathname;b=b.target.getAttribute("href");window.location.pathname===
c&&-1!==b.indexOf("#")&&(d.toggleMobileMenu(),c=b.substr(b.indexOf("#")+1),document.getElementById(c).scrollIntoView({behavior:"smooth"}))})})},menuToggle:function(){this.mobileButton&&(this.mobileButton.removeEventListener("click",this.toggleMobileMenu.bind(this)),this.mobileButton.addEventListener("click",this.toggleMobileMenu.bind(this)));this.desktopButton&&(this.desktopButton.removeEventListener("click",this.toggleDesktopMenu.bind(this)),this.desktopButton.addEventListener("click",this.toggleDesktopMenu.bind(this)))},
toggleDesktopMenu:function(d){var a=!0;d&&d.target===this.desktopButton.children[1]&&(a=!1);a&&(this.desktopContainer.classList.contains("open")?this.hideDesktopMenu():this.showDesktopMenu())},showDesktopMenu:function(){var d=this;this.desktopButton.classList.add("open");this.desktopContainer.classList.add("open");setTimeout(function(){d.clickOutside([d.desktopContainer,d.desktopButton,d.desktopButton.children[0]],d.hideDesktopMenu.bind(d))})},hideDesktopMenu:function(){this.desktopButton.classList.remove("open");
this.desktopContainer.classList.remove("open");this.mobileCloseBtn.removeEventListener("click",this.hideMobileMenu.bind(this))},toggleMobileMenu:function(){this.mobileContainer.classList.contains("open")?this.hideMobileMenu():this.showMobileMenu()},showMobileMenu:function(){this.mobileCloseBtn.addEventListener("click",this.hideMobileMenu.bind(this));this.mobileButton.setAttribute("aria-expanded",!0);this.mobileContainer.setAttribute("aria-hidden",!1);this.mobileContainer.classList.add("open");this.isIOS?
document.body.style.overflow="hidden":(document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top="-"+window.scrollY+"px")},hideMobileMenu:function(){this.listener&&window.removeEventListener("click",this.listener);this.mobileContainer.classList.remove("open");this.mobileContainer.setAttribute("aria-hidden",!0);this.mobileButton.setAttribute("aria-expanded",!1);if(this.isIOS)document.body.style.overflow="";else{var d=document.body.style.top;document.body.style.position=
"";document.body.style.top="";document.body.style.width="";window.scrollTo(0,-1*parseInt(d||"0",10))}},clickOutside:function(d,a){this.listener&&window.removeEventListener("click",this.listener);this.listener=function(b){d.includes(b.target)||a()};window.addEventListener("click",this.listener)},checkScrollPosition:function(){function d(f){if(f){var g=f.getBoundingClientRect();var h=c?f.querySelector(".geobanner"):f.querySelector(".sticky-wrapper");0>=g.top?(f.classList.add("stuck"),f.classList.remove("geobanner-visible"),
h&&(h.style.transform="translateY(-"+h.offsetHeight+"px)")):(f.classList.remove("stuck"),f.classList.add("geobanner-visible"),h&&h.removeAttribute("style"));0>=window.pageYOffset&&(f.classList.remove("stuck"),f.classList.add("geobanner-visible"),h&&h.removeAttribute("style"))}}var a=document.getElementById("sticky-navigation"),b=document.querySelector(".bold-header-component");if(b)var c=b.dataset.sticky;var e=document.querySelectorAll(".desktop-menu-dropdown");e&&e.forEach(function(f){f&&f.classList.remove("open")});
b&&c?d(b):b?0===window.pageYOffset?b.classList.remove("hidebutton"):b.classList.add("hidebutton"):d(a)},addEventListeners:function(){var d,a=this;window.addEventListener("scroll",function(){d&&window.cancelAnimationFrame(d);d=window.requestAnimationFrame(function(){a.dimensions=window.innerWidth;a.checkScrollPosition()})},!1)},addActiveElement:function(){var d=document.querySelector('meta[name\x3d"template"]');if(d){var a=d.content;d=window.location.pathname;var b=document.querySelectorAll("a.menu-label");
if(("smart-business-buying-template"===a||"smart-business-buying-template-v2"===a)&&d&&b.length)for(a=0;a<b.length;a+=1){var c=b[a].getAttribute("href");c&&c===d&&b[a].classList.add("active")}}},addAriaControls:function(){var d=document.querySelectorAll(".submenu__desktop, .languageContainer");document.querySelectorAll(".languageOptionsModal__dialog__header__title").forEach(function(a){var b=a.closest(".languageOptionsModal"),c=a.getAttribute("id");a.setAttribute("id",c+"-main-modal");b.setAttribute("aria-labelledby",
c+"-main-modal")});d.forEach(function(a){var b=a.closest(".footer-menu-dropdown"),c=document.querySelector(".languageContainer__options__selectortext"),e=a.closest(".nav-menu-dropdown"),f=document.querySelector(".languageOptionsModal__dialog__content .languageContainer__options__selectortext");if(a.closest(".languageOptionsModal__dialog__content")){var g=f.getAttribute("id");a.id=f.setAttribute("id",g+"-modal");a.setAttribute("aria-labelledby",g+"-modal")}e&&(e=c.getAttribute("id"),c.setAttribute("id",
e+"-desktop"),a.setAttribute("aria-labelledby",e+"-desktop"));c=a.parentNode.querySelector(".menulabel")||a.parentNode.querySelector("button.menu-label");e=c.querySelector("span")?c.querySelector("span").innerText:c.innerText;e.includes("\n")&&(e=e.split("\n")[0]);e.includes(" ")&&(e=e.split(" ").join("_"));a.id=e+"__panel";c.setAttribute("aria-controls",e+"__panel");b&&(a.id=e+"__footer-panel",c.setAttribute("aria-controls",e+"__footer-panel"))})},skipToMainContent:function(d){var a=document.getElementById("skipToContent");
a&&(a.addEventListener("keyup",this.skipToMainContent),a.addEventListener("click",this.skipToMainContent),document.getElementsByClassName("responsivegrid")[0].setAttribute("TabIndex",-1),document.getElementsByClassName("responsivegrid")[0].setAttribute("id","mainContent"));d&&("click"===d.type||"keyup"===d.type&&"Space"===d.code)&&(document.querySelectorAll(".responsivegrid")[0].focus(),a.click())}};
window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.getElementById("sticky-navigation")||document.querySelector(".bold-header-component"))&&!document.body.contains(document.querySelector(".new-nav"))&&Navigation.init()});
var NewNavigation={totalScrolledDown:0,init:function(){this.mobileButton=document.getElementById("overflow-nav-mobile-trigger");this.mobileContainer=document.getElementById("overflow-nav-mobile");this.mobileCloseBtn=document.getElementById("overflow-nav-mobile-close");this.mobileBlur=document.querySelector(".overflow-mobile");this.isIOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;this.listener=null;this.menuToggle();this.onBlurHandler();
this.handleScrollBehavior();this.skipToMainContent();768<window.innerWidth&&this.handlePrimaryNavWidthOverflow();this.showMoreNavClickHandler()},onBlurHandler:function(){var d=document.querySelector(".primary-navigation__bottom__center--menu");["click","scroll"].forEach(function(a){window.addEventListener(a,function(b){d.contains(b.target)||document.querySelectorAll(".menu__item.submenu-parent.open").forEach(function(c){c.classList.remove("open");c.children[0].setAttribute("aria-expanded",!1)})})})},
handleScrollBehavior:function(){var d=0;window.addEventListener("scroll",function(){var a=window.scrollY||document.documentElement.scrollTop,b=document.querySelector(".new-nav");if(a>d||0===a)0===a&&(b.classList.remove("stick-to-top"),b.nextElementSibling&&(b.nextElementSibling.style.display="none")),b.classList.remove("scrolled-down"),a>b.offsetHeight?b.classList.add("removed-sticky-behavior"):b.classList.remove("removed-sticky-behavior");else if(a<d){b.classList.contains("scrolled-down")||(NewNavigation.totalScrolledDown=
a);b.classList.remove("removed-sticky-behavior");b.classList.add("stick-to-top","scrolled-down");b.nextElementSibling&&(b.nextElementSibling.style.display="block");var c=NewNavigation.totalScrolledDown-a;b.style.top=c>b.offsetHeight||a<=b.offsetHeight?0:"-"+(b.offsetHeight-c)+"px"}d=0>=a?0:a})},handlePrimaryNavWidthOverflow:function(){var d=document.querySelector(".primary-navigation__bottom__center--menu"),a=document.querySelector(".wrapped-nav-div")?84:48;if(768<window.innerWidth){d.parentNode.nextElementSibling.style.display=
"none";d.querySelectorAll(".wrapped-nav-div li.menu__item.submenu-parent").forEach(function(e){return d.append(e)});var b;null==(b=d.querySelector(".wrapped-nav-div"))||b.remove();if(d.offsetWidth>=window.innerWidth-(document.querySelector(".primary-navigation__bottom__right").offsetWidth+a)){d.parentNode.nextElementSibling.style.display="inline";var c=document.createElement("div");c.classList.add("wrapped-nav-div");a=Array.from(d.querySelectorAll("li.menu__item.submenu-parent")).filter(function(e){return 53<
e.offsetTop});d.parentNode.nextElementSibling.style.display="none";0<a.length&&(d.parentNode.nextElementSibling.style.display="inline",a.forEach(function(e){c.append(e)}),d.append(c))}}768>=window.innerWidth&&(d.parentNode.nextElementSibling.style.display="none")},showMoreNavClickHandler:function(){var d=document.querySelector(".primary-navigation__bottom__center--menu");["click","keydown"].forEach(function(a){document.querySelector(".more-nav").addEventListener(a,function(b){var c=d.querySelector(".wrapped-nav-div");
if(c&&c.classList.contains("show-wrapped"))c.classList.remove("show-wrapped"),document.querySelector(".more-nav").classList.remove("active");else{d.style.backgroundColor="transparent";if("Enter"===b.key||"click"===a)b.preventDefault(),c.classList.add("show-wrapped"),c.querySelector(".menu-label").focus();document.querySelector(".more-nav").classList.add("active");document.querySelector(".more-nav").setAttribute("aria-expanded","true")}})})},menuToggle:function(){this.mobileButton&&(this.mobileButton.removeEventListener("click",
this.toggleMobileMenu.bind(this)),this.mobileButton.addEventListener("click",this.toggleMobileMenu.bind(this)))},toggleMobileMenu:function(){this.mobileContainer.classList.contains("open")?this.hideMobileMenu():this.showMobileMenu()},showMobileMenu:function(){this.mobileCloseBtn.addEventListener("click",this.hideMobileMenu.bind(this));this.mobileButton.setAttribute("aria-expanded",!0);this.mobileContainer.setAttribute("aria-hidden",!1);this.mobileContainer.classList.add("open");this.mobileBlur.classList.remove("hide");
this.isIOS?document.body.style.overflow="hidden":(document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top="-"+window.scrollY+"px")},hideMobileMenu:function(){this.listener&&window.removeEventListener("click",this.listener);this.mobileContainer.classList.remove("open");this.mobileContainer.setAttribute("aria-hidden",!0);this.mobileButton.setAttribute("aria-expanded",!1);this.mobileBlur.classList.add("hide");if(this.isIOS)document.body.style.overflow="";else{var d=
document.body.style.top;document.body.style.position="";document.body.style.top="";document.body.style.width="";window.scrollTo(0,-1*parseInt(d||"0",10))}},skipToMainContent:function(d){var a=document.getElementById("skipToContent");a&&(a.addEventListener("keyup",this.skipToMainContent),a.addEventListener("click",this.skipToMainContent),document.getElementsByClassName("responsivegrid")[0].setAttribute("TabIndex",-1),document.getElementsByClassName("responsivegrid")[0].setAttribute("id","mainContent"));
d&&("click"===d.type||"keyup"===d.type&&"Space"===d.code)&&(document.querySelectorAll(".responsivegrid")[0].focus(),a.click())}};window.addEventListener("resize",function(){document.body.contains(document.querySelector(".new-nav"))&&NewNavigation.handlePrimaryNavWidthOverflow()});window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".new-nav"))&&NewNavigation.init()});
(function(){var d={init:function(){var a=document.querySelectorAll(".abm-text p a span.abm-cta--external"),b=document.querySelectorAll(".abm-text p a span.abm-cta--download"),c=document.querySelectorAll(".abm-text p a span.abm-cta--chevron"),e=document.querySelectorAll(".abm-text p a span.abm-cta--underline");a=[a,b,c,e];a.length&&a.forEach(function(f){f.length&&f.forEach(function(g){g&&d.addClassToElement(g)})})},addClassToElement:function(a){a.closest("a").classList.add("abm-cta--parent")}};window.addEventListener("DOMContentLoaded",
function(){document.querySelector(".abm-text")&&d.init()})})();
(function(){var d={init:function(){function a(e){b.length&&b.forEach(function(f){var g=f.querySelector(".container-component__wrapper");g&&(e?(g.style.paddingTop=f.dataset.mobiletoppadding+"px",g.style.paddingBottom=f.dataset.mobilebottompadding+"px"):(g.style.paddingTop=f.dataset.desktoptoppadding+"px",g.style.paddingBottom=f.dataset.desktopbottompadding+"px"))})}var b=document.querySelectorAll(".container-component"),c=window.innerWidth;window.onresize=function(){c=window.innerWidth;768>c?a(!0):
a(!1)};768>c?a(!0):a(!1)}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".container-component")&&d.init()})})();
(function(){var d={init:function(){this.addLogoImage()},addLogoImage:function(){document.querySelectorAll(".abm-resource-tiles__tile__wrapper__logoImage").forEach(function(a){a&&a.closest(".abm-resource-tiles").classList.add("resourceTileLogo")})}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-resource-tiles"))&&d.init()})})();
var Form={init:function(){var d=document.querySelector("input[name\x3d'cu_source']");amznbase.fetchOtherHiddenFieldValue();if(d){var a=document.referrer;a&&0<a.length&&d.setAttribute("value",a)}var b=document.querySelector("form"),c=window.location.href.split("?")[0],e="";if(b.classList.contains("two-cta-btn")&&b.querySelectorAll(".button").length){var f=document.createElement("div");b.querySelectorAll(".button").forEach(function(A){A.classList.add("two-btn");f.classList.add("btnWrapper");e+=A.outerHTML;
A.remove()});f.innerHTML=e;b.append(f)}d=function(){document.querySelector(".disclaimer-checkbox")&&document.querySelectorAll(".disclaimer-checkbox").forEach(function(A){A&&(A=A.closest(".formoptions"))&&(A.style.width="100%")})};if(document.querySelector(".cmp-form-options--checkbox")){var g=document.querySelector(".cmp-form-options--checkbox").dataset.ischeckboxreq;d()}if(b&&b.dataset){var h=b.dataset.thankyoupagepath;var k=b.dataset.rememberuser;var m=b.dataset.dynamicformgenericlist;var n=b.dataset.dynamicformoptionsgenericlist;
amznbase.isDynamicForm=b.dataset.isdynamicform;amznbase.isUTMEnabled=b.dataset.isutmenabled}var t=document.querySelectorAll(".cmp-form-text");this.ulElements=document.querySelectorAll(".cmp-form-options__wrapper__field");this.selectedElemClassName="cmp-form-options__wrapper__selected";this.ulElements.forEach(function(A,N){amznbase.customDropdown(A,N,this)}.bind(this));(function(){document.querySelectorAll(".cmp-form-options__wrapper__field--drop-down").forEach(function(A){var N=A.querySelector("span.active");
A.classList.contains("publish")&&amznbase.showhideformelements(A,N)})})();if(amznbase.getUrlParameter("errors")){d=amznbase.getParams(window.location.href);this.formReload(d,b);var u=amznbase.sanitizeURLParams("errorMessage");if(b.parentElement.classList.contains("formcontainer")){if(d=document.getElementById("abm-form-pardoterror"))a=d.dataset.defaultErrorMessage,u?d.querySelector("p").textContent=u.replace(/~~~/g,"\x3cbr\x3e"):a&&(d.querySelector("p").innerText=a),d.classList.contains("show-abm-form-error")||
d.classList.add("show-abm-form-error")}else b.parentElement.classList.contains("gatedresourceform")&&(d=document.getElementById("gated-pardoterror"))&&(a=d.dataset.defaultErrorMessage,u?d.querySelector("p").textContent=u.replace(/~~~/g,"\x3cbr\x3e"):a&&(d.querySelector("p").innerText=a),d.classList.contains("show-abm-gated-error")||d.classList.add("show-abm-gated-error"))}var x=function(A,N,M,J){if(A&&A.dataset&&A.dataset.maxcharlimit&&A.dataset.charlimitcheck&&A.dataset.errormsg&&N){var H=parseInt(A.dataset.maxcharlimit);
var ba=A.dataset.charlimitcheck;var W=A.dataset.errormsg;var V=A.value.length;V>H&&"true"===ba?(A&&A.classList&&!A.classList.contains("invalid")&&(N.textContent=W,A.classList.add("invalid"),A.parentNode.classList.add("invalid")),J&&J.preventDefault()):0<V&&V<=H&&"true"===ba&&M===N.textContent&&(N.textContent="",A&&A.classList&&A.classList.contains("invalid")&&(A.classList.remove("invalid"),A.parentNode.classList.remove("invalid")))}},y=function(A){t.forEach(function(N){var M=N.querySelector("textarea"),
J=N.querySelector("input[type\x3dtext]");N=N.querySelector(".error");if(M){var H=M.getAttribute("data-errormsg");x(M,N,H,A)}J&&(H=J.getAttribute("data-errormsg"),x(J,N,H,A))})},B=function(A){A=amznbase.serializeArray(A);if(digitalData){var N={eventName:"lead_gen"};if(document.querySelector(".cmp-form").dataset.thankyoupagepath.includes("en/register/user-profile")){var M,J=document.querySelectorAll(".cmp-form-options__wrapper__field"),H=J[0].querySelector("span.active").dataset.value;J=J[1].querySelector("span.active").dataset.value;
var ba=null==(M=document.querySelector(".cmp-form-options--checkbox"))?void 0:M.querySelectorAll(" .cmp-form-options__field--checkbox:checked");if("Every day"===H||"Multiple times a week"===H||"Once a week"===H)M=!0;else if("none"!==J)M=!0;else{var W,V;M=1<ba.length||"My organization"===(null==(W=ba[0])?void 0:W.value)||"My team/department"===(null==(V=ba[0])?void 0:V.value)?!0:!1}A.push({name:"Power_buyer",value:M})}N.eventData=A;digitalData.event=N;"undefined"!==typeof _satellite&&null!==_satellite&&
_satellite.track("lead_gen")}};t.forEach(function(A){if(A.querySelector("input[type\x3dtext]")){var N=A.querySelector("input[type\x3dtext]");var M=N.getAttribute("data-errormsg")}else A.querySelector("textarea")&&(N=A.querySelector("textarea"),M=N.getAttribute("data-errormsg"));A.addEventListener("keyup",function(){var J=A.querySelector(".error");J&&0<J.textContent.length&&M&&N&&M===J.textContent&&x(N,J,M)})});var K=function(A,N){if(document.forms[0].UTM_Campaign)document.forms[0]&&document.forms[0].querySelector('[name\x3d"UTM_Campaign"]')&&
(document.forms[0].querySelector('[name\x3d"UTM_Campaign"]').value=A);else{var M=document.createElement("input");M.setAttribute("type","hidden");M.setAttribute("name","UTM_Campaign");M.setAttribute("value",A);b.appendChild(M)}document.forms[0].UTM_Source?document.forms[0]&&document.forms[0].querySelector('[name\x3d"UTM_Source"]')&&(document.forms[0].querySelector('[name\x3d"UTM_Source"]').value=N):(A=document.createElement("input"),A.setAttribute("type","hidden"),A.setAttribute("name","UTM_Source"),
A.setAttribute("value",N),b.appendChild(A))},E=function(A,N){A||(A=document.querySelectorAll(".cmp-form-options__field--checkbox"));A.forEach(function(M){var J=M.closest(".cmp-form-options--checkbox");J&&"true"===J.getAttribute("data-ischeckboxreq")&&(0<J.querySelectorAll(".cmp-form-options__field--checkbox:checked").length?M.removeAttribute("required"):M.setAttribute("required","true"))});A.forEach(function(M){N&&b.checkValidity()&&(M.removeAttribute("disabled"),M.classList.remove("invalid"),M.parentElement.classList.remove("invalid"))})};
g&&document.querySelectorAll(".cmp-form-options__field--checkbox").forEach(function(A){var N=A.closest(".cmp-form-options--checkbox").querySelectorAll(".cmp-form-options__field--checkbox");A.addEventListener("change",function(){E(N)})});b&&(b.onsubmit=function(A){var N=(new URL(document.location)).searchParams,M=N.get("UTM_Campaign")?N.get("UTM_Campaign"):"";N=N.get("UTM_Source")?N.get("UTM_Source"):"";"true"===amznbase.isUTMEnabled&&K(M,N);E(null,!0);b.checkValidity()||A.preventDefault();y(A);Array.from(this.ulElements).forEach(function(H){var ba=
H.querySelector("span.active"),W=H.parentNode.querySelector(".error");document.body.contains(H)&&!W&&ba.classList.contains("disabled")&&(H.insertAdjacentHTML("afterend",'\x3cdiv class\x3d"error dropdown-field-error" id\x3d"'+H.id+'--error" aria-live\x3d"assertive"\x3e\x3c/div\x3e'),H.setAttribute("aria-describedby",H.id+"--error"),H.nextSibling.textContent=H.getAttribute("data-cmp-constraint-message"));H.parentNode.querySelector(".error")&&(H.parentNode.parentNode.classList.remove("reduce-padding-form-field"),
A.preventDefault());Array.from(H.children).forEach(function(V){if(document.body.contains(H)&&V.classList.contains("active")&&""!==V.dataset.value){var ca=document.getElementsByName(H.getAttribute("data-name"));ca&&ca[0]&&(ca[0].value=V.dataset.value)}})});if(!b.checkValidity()||b.querySelector(".dropdown-field-error")){var J=!1;document.querySelectorAll(".error , .checkbox-error").forEach(function(H){if(!J&&H&&""!==H.innerHTML&&H.parentElement&&0<H.parentElement.querySelectorAll(".invalid").length&&
H.parentElement.querySelector("input:not(:disabled)")){if(!H.classList.contains("checkbox-error")||H.matches(".checkbox-error")&&H.parentElement.matches(".cmp-form-options--checkbox.invalid"))H.parentElement.querySelector("input:not(:disabled)").focus(),H.parentElement.querySelector("input:not(:disabled)").scrollIntoView({behavior:"instant",block:"center"}),J=!0}else!J&&H&&""!==H.innerHTML&&H.parentElement&&H.classList.contains("dropdown-field-error")&&H.parentElement.parentElement&&H.parentElement.parentElement.querySelector("input")&&
H.parentElement.parentElement.querySelector(".active.dropdown-placeholder")&&(H.parentElement.parentElement.querySelector(".active.dropdown-placeholder").focus(),J=!0)})}b.checkValidity()&&localStorage&&!b.querySelector(".dropdown-field-error")&&k&&(M=(new Date).getTime().toString(),localStorage.getItem("abUserFormsData")?(N=JSON.parse(localStorage.getItem("abUserFormsData")),N.abmcs.gatedforms&&N.abmcs.gatedforms.push({pagePath:c,lastFilled:M})):N={abmcs:{gatedforms:[{pagePath:c,lastFilled:M}]}},
localStorage.setItem("abUserFormsData",JSON.stringify(N)));!b.checkValidity()||b.querySelector(".dropdown-field-error")||b.querySelector(".invalid")||(B(b),HTMLFormElement.prototype.submit.call(b))}.bind(this),b.querySelectorAll("input, textarea, select").forEach(function(A){if(0<A.offsetWidth||0<A.offsetHeight||0<A.getClientRects().length)if("checkbox"===A.type){if(A.parentElement.parentElement&&!A.parentElement.parentElement.querySelector(".checkbox-error")){var N=document.createElement("div");
N.classList.add("checkbox-error");A.parentElement.parentElement.appendChild(N)}}else A.insertAdjacentHTML("afterend",'\x3cdiv class\x3d"error" id\x3d"'+A.id+'--error"\x3e\x3c/div\x3e'),A.setAttribute("aria-describedby",A.id+"--error");A.addEventListener("invalid",function(){A.classList.add("invalid");A.parentNode.classList.add("invalid");if(A.validity.patternMismatch||A.validity.typeMismatch)A.nextSibling.textContent=A.parentElement.getAttribute("data-cmp-constraint-message");else if("checkbox"===
A.type&&A.parentElement.parentElement.querySelector(".checkbox-error")){A.parentElement.parentElement.querySelector(".checkbox-error").textContent=A.parentElement.getAttribute("data-cmp-required-message");var M=!1;A.parentElement.parentElement.querySelectorAll("input[type\x3d'checkbox']").forEach(function(J){J.checked&&(M=!0)});M?(A.classList.remove("invalid"),A.parentNode.classList.remove("invalid"),A.parentNode.parentElement.classList.remove("invalid")):"true"===A.getAttribute("required")&&(A.classList.add("invalid"),
A.parentNode.classList.add("invalid"),A.parentNode.parentElement.classList.add("invalid"))}else A.nextSibling.textContent=A.validationMessage;A.oninput=function(){A.oninput=null;A.nextSibling.textContent="";A.classList.remove("invalid");A.parentNode.classList.remove("invalid");"checkbox"===A.type&&A.parentNode.parentElement.classList.remove("invalid");A.checkValidity()}});A.addEventListener("keyup",function(M){9!==M.which&&A.checkValidity();13===M.which&&"radio"===A.type&&(M.target.checked=M.target.checked?
!1:!0)});A.addEventListener("keydown",function(M){if(13===M.which){if("radio"===A.type||"checkbox"===A.type){M.target.checked=M.target.checked?!1:!0;if("checkbox"===A.type){var J=new Event("change"),H=new Event("invalid");A.dispatchEvent(J);A.dispatchEvent(H)}M.preventDefault();M.stopPropagation()}}else 9===M.which&&A.checkValidity()})}));(function(){if(!amznbase.isAuthor&&k&&localStorage&&localStorage.getItem("abUserFormsData")){var A=JSON.parse(localStorage.getItem("abUserFormsData"));A.abmcs&&
A.abmcs.gatedforms&&A.abmcs.gatedforms.forEach(function(N){N.pagePath===c&&(N=h,"localhost"===document.location.hostname&&(N+=window.location.search),window.location.assign(N))})}})();g=function(){try{if(null===amznbase.isAuthor||void 0===amznbase.isAuthor)n&&amznbase.makeHttpRequest("/content/amzn-biz/_jcr_content/servlets/glist.json?listPath\x3d"+n,"GET",function(A,N){amznbase.invalidResponses.includes(A)||(A=JSON.parse(N),0<Object.keys(A).length&&A.forEach(function(M){amznbase.dynamicFormDropdownMapping.push({id:M.text,
value:M.value})}))}),amznbase.makeHttpRequest("/content/amzn-biz/_jcr_content/servlets/glist.json?listPath\x3d"+m,"GET",function(A,N){amznbase.invalidResponses.includes(A)||(amznbase.dynamicFormGenericListData=JSON.parse(N),amznbase.handleDynamicReq())})}catch(A){}};d=function(){var A=document.querySelectorAll(".cmp-form-options__wrapper__field"),N=document.querySelectorAll(".cmp-form-options--checkbox");A.forEach(function(M){var J=M.querySelector(".active");amznbase.dynamicFormInitialDropDownList.push({id:M.id,
value:J.getAttribute("data-value")})});N.forEach(function(M){if(M&&M.id){var J=M.querySelectorAll("[checked]");if(0<J.length){var H=[];J.forEach(function(ba){ba&&ba.id&&H.push(ba.id)});amznbase.dynamicFormInitialCheckboxList.push({id:M.id,value:H})}}})};a=function(){var A=document.querySelector(".dynamic-form"),N=A.closest(".container-component");A&&(A.parentElement.classList.add("dynamic-form-container"),N.classList.add("form-overflow-visible"),N.parentElement.classList.add("form-overflow-visible"),
A=A.querySelectorAll(".formtext input"),0<A.length&&A.forEach(function(M){if(M){var J=M.getAttribute("id");M.setAttribute("title",J)}}))};"true"===amznbase.isDynamicForm&&(a(),g(),d(),amznbase.enableDropdownSearch());(function(){document.getElementsByClassName("cmp-form-text__textarea").forEach(function(A){A.closest(".formtext").classList.add("formtextarea")})})()},formReload:function(d,a){for(var b=Object.keys(d),c=0;c<a.elements.length;c+=1){var e=a.elements[c];if(-1<b.indexOf(e.name))if("radio"===
e.type||"checkbox"===e.type){var f=document.getElementsByName(e.name);Array.from(f).forEach(function(g){g.value===d[e.name]&&(g.checked=!0)})}else document.getElementsByName(e.name)[0].value=d[e.name]}Array.from(this.ulElements).forEach(function(g){if(-1<b.indexOf(g.getAttribute("data-name"))){var h=d[g.getAttribute("data-name")];Array.from(g.children).forEach(function(k){k.dataset.value===h?k.classList.add("active"):k.classList.remove("active")})}})}};
window.addEventListener("DOMContentLoaded",function(){(document.body.contains(document.getElementsByClassName("formcontainer")[0])||document.body.contains(document.getElementsByClassName("gatedresourceform")[0]))&&Form.init()});
(function(){var d={gatedResourceForm:document.querySelectorAll(".abm-gatedresource"),init:function(){this.addEventListener()},addEventListener:function(){var a=this;this.gatedResourceForm.forEach(function(b){var c=b.querySelector(".abm-gatedresource__cVariation__accordion__icon"),e=b.querySelector(".abm-gatedresource__cVariation__body");c&&c.addEventListener("click",function(){a.accordionShowHide(c,e)})})},accordionShowHide:function(a,b){a&&a.classList&&b&&b.classList&&(a.classList.contains("expand")?
b.classList.contains("accordion")&&(b.classList.remove("accordion"),a.classList.remove("expand"),a.classList.add("collapse"),a.closest("div").classList.add("collapsed")):a.classList.contains("collapse")&&(a.classList.remove("collapse"),a.closest("div").classList.remove("collapsed"),a.classList.add("expand"),b.classList.add("accordion")))}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-gatedresource")&&d.init()})})();
var selfselection={init:function(){this.submitButton=document.getElementById("selfselection-button");this.errorMessage=document.getElementById("errorMessage");this.pill=document.querySelectorAll(".abm-selfselection__content__list__item");this.fetchAll=document.getElementById("fetchAll");this.cqTags="";this.bindEvents()},bindEvents:function(){Array.from(this.pill).forEach(function(d){d.addEventListener("click",this.selectPill.bind(this,d));d.addEventListener("keydown",function(a){13===a.keyCode&&(a.preventDefault(),
this.selectPill(d))}.bind(this));"fetchAll"!==d.id&&(this.cqTags=""!==this.cqTags?this.cqTags+","+d.dataset.value:d.dataset.value)}.bind(this));this.submitButton.addEventListener("click",this.navigation.bind(this));this.submitButton.addEventListener("keydown",function(d){13===d.keyCode&&this.navigation()}.bind(this))},navigation:function(){var d="";this.fetchAll.classList.contains("selected")?d="":Array.from(this.pill).forEach(function(c){"fetchAll"!==c.id&&c.classList.contains("selected")&&(d=""!==
d?d+","+c.dataset.value:c.dataset.value)});var a=this.submitButton.dataset.url,b=d;""!==b&&(a+="?tags\x3d"+b);document.querySelector("#selfselection-button").setAttribute("href",a)},selectPill:function(d){d.classList.contains("selected")?(d.setAttribute("aria-selected",!1),d.classList.remove("selected")):(d.setAttribute("aria-selected",!0),d.classList.add("selected"));"fetchAll"===d.id&&d.classList.contains("selected")?Array.from(this.pill).forEach(function(a){"fetchAll"!==a.id&&a.classList.contains("selected")&&
(a.classList.remove("selected"),a.setAttribute("aria-selected",!1))}):"fetchAll"!==d.id&&this.fetchAll.classList.contains("selected")&&(this.fetchAll.classList.remove("selected"),this.fetchAll.setAttribute("aria-selected",!1))}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.getElementById("abm-selfselection"))&&selfselection.init()});
(function(){var d={init:function(){this.asinProductCount=(this.asinSearchSection=document.querySelector(".abm-asin-search"))?this.asinSearchSection.dataset.productcount:"";this.asinDiscountLabel=this.asinSearchSection?this.asinSearchSection.dataset.discountlabel:"";this.asinPriceLabel=this.asinSearchSection?this.asinSearchSection.dataset.pricelabel:"";this.loggedInUserCTA=this.asinSearchSection?this.asinSearchSection.dataset.loggedcta:"";this.nonLoggedInUserCTA=this.asinSearchSection?this.asinSearchSection.dataset.nonloggedcta:
"";this.nonloggedCTALink=this.asinSearchSection?this.asinSearchSection.dataset.nonloggedctalink:"";this.asinLoader=document.querySelector(".abm-asin-search__loader-overlay");this.sliders=[];this.productCount=this.expanded=0;this.setDataAttribute();this.asinSearchBottomText=document.querySelector(".abm-asin-search__bottom");var a=this.asinSearchSection?this.asinSearchSection.dataset.enableasinsearch:"",b=document.getElementById("searchResultsList"),c=document.getElementById("searchResultsCacheList"),
e=document.getElementById("search-result-component"),f=e.dataset.locale,g=e.dataset.errortext;document.querySelector(".abm-search-result__tabs-wrapper__tablist").children[1].classList.add("cmp-tabs__tab--active");var h=e.dataset.limit,k=e.dataset.noresult,m=document.querySelector(".abm-search-result__tabs-wrapper__tablist").children[1].getAttribute("data-activetab"),n,t=(new URL(document.location)).searchParams,u=null==t.get("q")?"":t.get("q");document.querySelector(".abm-search-result__searchResultsList__resultsText__searchQuery").textContent=
'"'+decodeURI(u)+'"';document.querySelector(".abm-search-result__header__search__input").value=decodeURI(u);this.ulElements=document.querySelectorAll(".abm-search-result__mobile-dropdown__field");this.ulElements.forEach(function(S,na){amznbase.customDropdown(S,na,this,!0)}.bind(this));this.asinSearchQuery=u;var x=e.getAttribute("data-url"),y=0;e=x+"?q\x3d"+u+"\x26locale\x3d"+f+"\x26start\x3d"+y+"\x26size\x3d"+h;null!=m&&m&&(e=e+"\x26content-type\x3d"+m);var B=e,K=[],E="",A=b.querySelector(".abm-search-result__searchResultsList__wrapper"),
N=document.querySelector(".abm-search-result__tabs-wrapper__tablist__right-arrow"),M=document.querySelector(".abm-search-result__tabs-wrapper__tablist__left-arrow"),J=document.querySelector(".abm-search-result__tabs-wrapper__tablist"),H=J.querySelectorAll("li"),ba=function(S,na,ua,ma,z){var T=0,F=setInterval(function(){"left"===na?(S.scrollLeft-=z,0===document.querySelector(".abm-search-result__tabs-wrapper__tablist").scrollLeft&&M.classList.add("hide")):(S.scrollLeft+=z,!J||Math.round(J.scrollWidth-
J.scrollLeft)!==J.offsetWidth&&Math.round(J.scrollWidth-J.scrollLeft)-1!==J.offsetWidth||N.classList.add("hide"));T+=z;T>=ma&&window.clearInterval(F)},ua)},W=function(){ba(J,"left",25,100,10);N.classList.remove("hide")},V=function(){ba(J,"right",25,100,10);M.classList.remove("hide")},ca=function(){J&&J.scrollWidth>J.clientWidth&&(N.classList.remove("hide"),N.querySelector(".abm-search-result__tabs-wrapper__tablist__right-arrow__btn")&&(N.querySelector(".abm-search-result__tabs-wrapper__tablist__right-arrow__btn").removeEventListener("click",
V),N.querySelector(".abm-search-result__tabs-wrapper__tablist__right-arrow__btn").addEventListener("click",V)),M.querySelector(".abm-search-result__tabs-wrapper__tablist__left-arrow__btn")&&(M.querySelector(".abm-search-result__tabs-wrapper__tablist__left-arrow__btn").removeEventListener("click",W),M.querySelector(".abm-search-result__tabs-wrapper__tablist__left-arrow__btn").addEventListener("click",W)),J&&J.addEventListener("scroll",function(){M.classList.remove("hide");N.classList.remove("hide");
0===document.querySelector(".abm-search-result__tabs-wrapper__tablist").scrollLeft?M.classList.add("hide"):(Math.round(J.scrollWidth-J.scrollLeft)===J.offsetWidth||Math.round(J.scrollWidth-J.scrollLeft)-1===J.offsetWidth)&&N.classList.add("hide")}))};ca();window.onresize=function(){J&&J.scrollWidth>J.clientWidth?ca():(M.classList.add("hide"),N.classList.add("hide"))};var aa=function(S,na){S.forEach(function(ua){var ma=document.createElement("li");ma.classList.add("abm-search-result__searchResultsList__wrapper__item");
var z=document.createElement("span");z.classList.add("abm-search-result__searchResultsList__wrapper__item__type");var T=document.createElement("a");T.classList.add("abm-search-result__searchResultsList__wrapper__item__title");var F=document.createElement("p");F.classList.add("abm-search-result__searchResultsList__wrapper__item__description");ua.fields&&(ua.fields.content_type_titles&&ua.fields.content_type_titles.length&&ua.fields.content_type_titles.forEach(function(Q,ia){z.innerHTML=ia===ua.fields.content_type_titles.length-
1?z.innerHTML+("\x3cspan\x3e"+Q+"\x3c/span\x3e"):z.innerHTML+("\x3cspan\x3e"+Q+",\x3c/span\x3e")}),T.innerText=ua.fields.title,T.setAttribute("data-search-result",ua.fields.title),T.href=ua.fields.uri,F.innerText=ua.fields.description);ma.appendChild(z);ma.appendChild(T);ma.appendChild(F);na?c.appendChild(ma):A.appendChild(ma)})},ja=function(S,na,ua,ma,z){"undefined"===na&&(na=!1);A&&amznbase.isLoadMoreClicked&&(amznbase.oldListLength=A.childElementCount);!na&&ma&&(b.querySelector(".abm-search-result__searchResultsList__wrapper").innerHTML=
"");ua&&na?(A.innerHTML+=c.innerHTML,c.innerHTML="",document.querySelector(".abm-loader-overlay").classList.add("hide"),A&&z&&A.querySelectorAll("li")[z-1].querySelector("a").focus()):ua&&!na&&(c.innerHTML="");aa(S,ua);amznbase.focusElementOnListRefresh(A,!0);c.children.length?document.getElementById("show-more").classList.remove("hide"):document.getElementById("show-more").classList.add("hide")},G=function(S,na,ua,ma,z){"undefined"===na&&(na=!0);document.querySelector(".abm-loader-overlay").classList.remove("hide");
u?amznbase.makeHttpRequest(S,"GET",function(T,F){if(amznbase.invalidResponses.includes(T))b.querySelector(".abm-search-result__searchResultsList__wrapper").innerHTML='\x3cspan class\x3d"abm-search-result__searchResultsList__wrapper__no-result"\x3e'+g+"\x3c/span\x3e",document.querySelector(".abm-loader-overlay").classList.add("hide"),b.children[0].classList.add("hide");else{try{var Q=JSON.parse(F)}catch(ia){Q="",document.querySelector(".abm-loader-overlay").classList.add("hide"),b.children[0].classList.add("hide"),
b.querySelector(".abm-search-result__searchResultsList__wrapper").innerHTML='\x3cspan class\x3d"abm-search-result__searchResultsList__wrapper__no-result"\x3e'+g+"\x3c/span\x3e"}document.querySelector(".abm-loader-overlay").classList.add("hide");Q&&Q.hits&&(E=Q&&Q.hits?Q.hits.found:"",document.querySelector(".abm-search-result__searchResultsList__resultsText__count").textContent=E,document.querySelector(".abm-search-result__searchResultsList__resultsText__searchQuery").textContent='"'+decodeURI(u)+
'"',!H[0].classList.contains("cmp-tabs__tab--active")&&0<H.length?b.children[0].classList.add("hide"):"true"===b.children[0].dataset.isdataloaded&&b.children[0].classList.remove("hide"),K.length?Q.hits.hit.forEach(function(ia){K.push(ia)}):K=Q.hits.hit?Q.hits.hit:"",na?(Q.hits&&Q.hits.hit.length?("false"===b.children[0].dataset.isdataloaded&&b.children[0].classList.add("hide"),ja(Q.hits.hit,!1,ua,na)):(document.getElementById("show-more").classList.add("hide"),b.children[0].classList.add("hide"),
H[0].classList.contains("cmp-tabs__tab--active")&&0===Q.hits.hit.length&&"true"===b.children[0].dataset.isdataloaded&&b.children[0].classList.remove("hide"),b.querySelector(".abm-search-result__searchResultsList__wrapper").innerHTML='\x3cspan class\x3d"abm-search-result__searchResultsList__wrapper__no-result"\x3e'+k+"\x3c/span\x3e"),digitalData&&(T={eventName:"search",eventData:{}},T.eventData.searchTerm=u,T.eventData.searchResults=Q.hits.found,m?n&&(T.eventData.filterType=n.innerText):T.eventData.filterType=
"All results",digitalData.event=T,ua||"undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track("search_page")),K.length<E&&(y=Number(y)+Number(h),B=x+"?q\x3d"+u+"\x26locale\x3d"+f+"\x26start\x3d"+y+"\x26size\x3d"+h,null!=m&&m&&(B=B+"\x26content-type\x3d"+m),G(B,!1,!0,!1))):ua&&!ma?ja(Q.hits.hit,!1,ua,na):ja(Q.hits.hit,!0,ua,na,z))}}):(b.querySelector(".abm-search-result__searchResultsList__wrapper").innerHTML='\x3cspan class\x3d"abm-search-result__searchResultsList__wrapper__no-result"\x3e'+
k+"\x3c/span\x3e",document.querySelector(".abm-loader-overlay").classList.add("hide"),b.children[0].classList.add("hide"))};G(B,!0,!1,!1);var P=function(S){document.querySelector(".abm-loader-overlay").classList.remove("hide");K.length<E?(y=Number(y)+Number(h),B=x+"?q\x3d"+u+"\x26locale\x3d"+f+"\x26start\x3d"+y+"\x26size\x3d"+h,null!=m&&m&&(B=B+"\x26content-type\x3d"+m),G(B,!1,!0,!0,S)):(amznbase.oldListLength=A?A.childElementCount:amznbase.oldListLength,A.innerHTML+=c.innerHTML,amznbase.focusElementOnListRefresh(A,
!0),document.getElementById("show-more").classList.add("hide"),document.querySelector(".abm-loader-overlay").classList.add("hide"),c.innerHTML="")},Y=function(S){if(!S.classList.contains("cmp-tabs__tab--active")){K=[];document.querySelector(".cmp-tabs__tab--active")&&document.querySelector(".cmp-tabs__tab--active").classList.remove("cmp-tabs__tab--active");S.classList.add("cmp-tabs__tab--active");m=S.dataset.activetab;n=S;y=0;B=x+"?q\x3d"+u+"\x26locale\x3d"+f+"\x26start\x3d"+y+"\x26size\x3d"+h;null!=
m&&m&&(B=B+"\x26content-type\x3d"+m);S=document.querySelector('.abm-search-result__mobile-dropdown__field--dropdown [data-value\x3d"'+S.getAttribute("data-activetab")+'"]');var na=document.querySelectorAll(".abm-search-result__mobile-dropdown__field--dropdown li");if(S){var ua="";na.forEach(function(ma){ma.classList.contains("active")&&(ma.classList.remove("active"),ua=ma.querySelector("img"))});S.classList.add("active");S.querySelector("img")||(S.innerHTML+='\x3cimg src\x3d"'+ua.src+'"\x3e')}G(B,
!0,!1,!1)}},ea=function(S){document.getElementById("show-more").classList.add("hide");c&&(c.innerHTML="");Y(S)};document.addEventListener("click",function(S){S.target.matches(".abm-search-result__show-more__button")&&P();S.target.matches(".abm-search-result__tabs-wrapper__tablist__tab")&&ea(S.target)},!1);document.addEventListener("keydown",function(S){S.target.matches(".abm-search-result__tabs-wrapper__tablist__tab")&&(13===S.keyCode||13===S.which)&&ea(S.target);if(S.target.matches(".abm-search-result__header__search__input")&&
(13===S.keyCode||13===S.which)){var na=S.target;document.getElementById("show-more").classList.add("hide");c&&(c.innerHTML="");na.value?(K=[],y=0,u=na.value,B=x+"?q\x3d"+u+"\x26locale\x3d"+f+"\x26start\x3d"+y+"\x26size\x3d"+h,null!=m&&m&&(B=B+"\x26content-type\x3d"+m),window.history.pushState("","","?q\x3d"+encodeURI(u)),G(B,!0,!1,!1),a&&d.callAsinSearchApi(u)):window.history.pushState("","",window.location.origin+window.location.pathname)}S.target.matches(".abm-search-result__show-more__button")&&
13===S.keyCode&&(S.preventDefault(),A&&0<A.childElementCount&&(amznbase.isLoadMoreClicked=!0,P(A.childElementCount)))},!1);this.hideAsinBottomText()},addBorderClass:function(){var a=document.querySelector(".abm-search-result__searchResultsList__resultsText");a&&this.asinSearchSection&&(this.asinSearchSection.classList.contains("hide")?a.classList.remove("carousel-present"):(a.classList.add("carousel-present"),this.asinSearchBottomText.classList.contains("hide")?a.classList.add("no-logged-text"):a.classList.remove("no-logged-text")))},
resetToDefaultState:function(){this.expanded=0;document.querySelector(".abm-asin-search__carousel").classList.remove("expanded");this.asinSearchSection.classList.remove("expanded");var a=document.querySelector(".abm-asin-search__carousel__wrapper__layer--collapsed-view");a&&a.classList.remove("expanded");document.querySelector(".abm-asin-search__carousel__wrapper__controls")&&document.querySelector(".abm-asin-search__carousel__wrapper__controls").classList.add("hide")},callAsinSearchApi:function(a){this.resetToDefaultState();
this.asinLoader.classList.remove("hide");this.asinSearchSection.dataset.isdataloaded="false";a&&(this.asinSearchQuery=a);if(this.asinSearchQuery){a=document.location.pathname.replace(".html","")+".category-search.json?"+(this.asinProductCount?"count\x3d"+this.asinProductCount:"")+(this.asinSearchQuery?"\x26keyword\x3d"+this.asinSearchQuery:"");var b=this,c;try{amznbase.makeHttpRequest(a,"GET",function(e,f){!amznbase.invalidResponses.includes(e)&&f&&""!==f.trim()?(c=JSON.parse(f))&&"success"===c.status&&
0<c.data.length?(b.asinSearchSection.dataset.isdataloaded="true",b.productCount=c.data.length,b.createCarouselItems(c.data,b.productCount),b.createCarouselBtns(c.data.length),6>b.productCount?document.querySelector(".abm-asin-search__carousel__wrapper__expand").classList.add("hide"):document.querySelector(".abm-asin-search__carousel__wrapper__expand").classList.remove("hide")):b.handleSearchAsinError():b.handleSearchAsinError()})}catch(e){this.handleSearchAsinError()}}},handleSearchAsinError:function(){this.asinSearchSection.classList.add("hide");
this.asinLoader.classList.add("hide")},createCarouselItems:function(a){var b=this;this.checkAndDestroyExistingTinySlider();var c=document.querySelector(".abm-asin-search__carousel__wrapper__layer"),e=document.querySelector(".abm-asin-search__carousel__wrapper__layer--collapsed-view");c.innerHTML="";e.innerHTML="";var f,g=document.querySelector(".abm-asin-search__title");g.textContent=g.dataset.title+' "'+this.asinSearchQuery+'"';var h=document.getElementById("search-result-component").dataset.overridehreftext,
k=(this.asinSearchSection=document.querySelector(".abm-asin-search"))?this.asinSearchSection.dataset.enableoverridehref:"",m=new URLSearchParams(window.location.href);a.forEach(function(n){var t="Currently Unavailable";n.productBusinessPrice&&n.minimumQuantity&&n.currencyCode&&(t=n.productBusinessPrice);var u=document.createElement("div");u.classList.add("abm-asin-search__carousel__wrapper__layer__item");var x=document.createElement("div");x.classList.add("abm-asin-search__carousel__wrapper__layer__item__img-wrapper");
var y=document.createElement("img");y.src=n.productImage;y.alt=n.productImageAltText;y.setAttribute("data-src",n.productImage);x.appendChild(y);u.appendChild(x);var B=n.productUrl;x=new URL(n.productUrl);amznbase.excludeRef||!m.get("ref")&&!m.get("ref_")?amznbase.excludeRef||!amznbase.getCookie("ref")&&!amznbase.getCookie("ref_")?"true"===k&&h&&(x.searchParams.set("ref_",h),B=x.toString()):(y=amznbase.getCookie("ref")?amznbase.getCookie("ref"):amznbase.getCookie("ref_"),x.searchParams.set("ref_",
y),B=x.toString()):(y=m.get("ref")?m.get("ref"):m.get("ref_"),x.searchParams.set("ref_",y),B=x.toString());x=document.createElement("div");x.classList.add("abm-asin-search__carousel__wrapper__layer__item__discount__cta-details");y=document.createElement("a");y.classList.add("abm-btn--orange");y.setAttribute("target","_blank");amznbase.abAccountEle&&"true"===amznbase.abAccountEle.textContent?(y.setAttribute("href",B),y.setAttribute("data-product-search-asin-btn",b.loggedInUserCTA+"|"+n.productName),
y.innerText=b.loggedInUserCTA,"_blank"===y.target&&y.setAttribute("aria-label",b.loggedInUserCTA+" Opens in a new tab")):(y.setAttribute("href",b.nonloggedCTALink),y.setAttribute("data-product-search-asin-btn",b.nonLoggedInUserCTA+"|"+n.productName),y.innerText=b.nonLoggedInUserCTA,"_blank"===y.target&&y.setAttribute("aria-label",b.nonLoggedInUserCTA+" Opens in a new tab"));B=document.createElement("div");B.classList.add("abm-asin-search__carousel__wrapper__layer__item__title");B.innerText=n.productName;
u.appendChild(B);B=document.createElement("div");B.classList.add("abm-asin-search__carousel__wrapper__layer__item__desc");B.innerText="";B=document.createElement("div");B.classList.add("abm-asin-search__carousel__wrapper__layer__item__discount");var K=document.createElement("div");K.classList.add("abm-asin-search__carousel__wrapper__layer__item__discount__business-price");var E=document.createElement("span"),A=document.createElement("div");A.classList.add("abm-asin-search__carousel__wrapper__layer__item__discount__business-price__label");
var N=document.createElement("span"),M=document.createElement("span"),J=document.createElement("sup");E.innerText=b.asinDiscountLabel;M.innerText=t.split(".")[0];J.innerText=parseFloat(t).toFixed(2).split(".")[1];n.currencyCode&&(N.innerText=n.currencyCode);t=document.createElement("div");t.classList.add("abm-asin-search__carousel__wrapper__layer__item__discount__non-business-price");var H=document.createElement("span"),ba=document.createElement("span");H.innerText=n.currencyCode+n.productPrice;b.asinPriceLabel&&
(ba.innerText=b.asinPriceLabel);t.appendChild(H);t.appendChild(ba);A.appendChild(N);A.appendChild(M);A.appendChild(J);K.appendChild(E);K.appendChild(A);B.appendChild(K);B.appendChild(t);x.appendChild(y);B.appendChild(x);u.appendChild(B);f=u.cloneNode(!0);c.appendChild(u);e.appendChild(f)})},setDataAttribute:function(){var a=document.querySelector(".abm-asin-search__bottom__sub-title");a&&a.querySelectorAll("a").forEach(function(b){b&&b.setAttribute("data-product-search-asin-btn",b.textContent)})},
createCarouselBtns:function(a){var b=document.querySelector(".abm-asin-search__carousel__wrapper__controls__slick-dots");b.innerHTML="";for(var c=0;c<a;c+=1){var e=document.createElement("span");e.setAttribute("role","button");b.appendChild(e)}this.checkAndInitializeTinySlider();this.asinSearchSection.classList.remove("hide");this.addBorderClass();this.asinLoader.classList.add("hide")},checkAndInitializeTinySlider:function(){var a=document.querySelector(".abm-asin-search__carousel__wrapper__controls"),
b=document.querySelector(".abm-asin-search__carousel__wrapper__expand"),c=document.querySelector(".abm-asin-search__carousel__wrapper__layer"),e=document.querySelector(".abm-asin-search__carousel__wrapper__layer--collapsed-view");768>window.innerWidth&&a?2>this.productCount?(a.classList.add("hide"),c.classList.add("hide"),e.classList.remove("hide")):(a.classList.remove("hide"),this.initializeTinySlider()):1024>window.innerWidth&&a?4>this.productCount?(a.classList.add("hide"),b.classList.add("hide"),
e.classList.remove("hide"),c.classList.add("hide")):(a.classList.remove("hide"),this.initializeTinySlider()):1440>window.innerWidth&&a?6>this.productCount?(a.classList.add("hide"),b&&b.classList.add("hide"),e.classList.remove("hide"),e.classList.add("expanded"),c.classList.add("hide")):this.expanded?(a.classList.remove("hide"),this.initializeTinySlider()):b&&(b.classList.remove("hide"),e.classList.remove("hide"),c.classList.add("hide")):1440<=window.innerWidth&&a&&(6>this.productCount||6===this.productCount&&
this.expanded?(a.classList.add("hide"),5>=this.productCount&&b&&b.classList.add("hide"),e.classList.remove("hide"),e.classList.add("expanded"),c.classList.add("hide")):6===this.productCount?(b.classList.remove("hide"),e.classList.remove("hide"),c.classList.add("hide")):6<this.productCount&&(this.expanded?(a.classList.remove("hide"),this.initializeTinySlider()):b&&(b.classList.remove("hide"),e.classList.remove("hide"),c.classList.add("hide"))))},hideAsinBottomText:function(){this.asinSearchBottomText&&
amznbase.abAccountEle&&"true"===amznbase.abAccountEle.textContent&&this.asinSearchBottomText.classList.add("hide")},initializeTinySlider:function(){var a=document.querySelector(".abm-asin-search__carousel"),b=document.querySelector(".abm-asin-search__carousel__wrapper__layer"),c=document.querySelector(".abm-asin-search__carousel__wrapper__layer--collapsed-view");if("true"===a.parentElement.dataset.isdataloaded){a={container:a.querySelector(".customize"),items:1,controls:!0,mouseDrag:!0,controlsContainer:a.querySelector(".controls"),
navContainer:a.querySelector(".tns-nav"),navAsThumbnails:!0,autoplay:!1,responsive:{320:{controls:!0,fixedWidth:334,items:1},768:{controls:!0,fixedWidth:196,items:3},1024:{controls:!0,fixedWidth:190,items:5,nav:!1},1440:{controls:!0,fixedWidth:196,items:5,nav:!1}}};a.mouseDrag=window.isXS||window.isS||window.isM?!0:!1;var e=tns(a);this.sliders.push(e);var f=e.getInfo();f.nextButton.addEventListener("keyup",function(m){13!==m.keyCode&&13!==m.which||e.goTo("next")});f.prevButton.addEventListener("keyup",
function(m){13!==m.keyCode&&13!==m.which||e.goTo("prev")});Array.from(f.navItems).forEach(function(m){m.addEventListener("keyup",function(n){13!==n.keyCode&&13!==n.which||m.click()})});var g=f.index+f.slideCount-1,h=f.slideCount-1,k=f.index+f.slideCount;f.container.addEventListener("keyup",function(m){if("Tab"===m.key&&!m.shiftKey)try{window.isM||window.isS||document.activeElement.closest(".tns-slide-active").nextElementSibling.classList.contains("tns-slide-active")||f.container.children[g].children[2].children[2].children[0]===
document.activeElement||e.goTo("next"),window.isM&&!document.activeElement.closest(".tns-slide-active").nextElementSibling.nextElementSibling.classList.contains("tns-slide-active")&&f.container.children[g+2].children[2].children[2].children[0]!==document.activeElement&&(e.goTo("next"),document.activeElement===f.container.children[k].children[2].children[2].children[0]&&f.container.children[k+2].children[2].children[2].children[0].setAttribute("tabindex","-1"))}catch(n){return!1}if("Tab"===m.key&&
m.shiftKey)try{window.isM||window.isS||document.activeElement.closest(".tns-slide-active").previousElementSibling.classList.contains("tns-slide-active")||f.container.children[h].children[2].children[2].children[0]===document.activeElement||e.goTo("prev"),window.isM&&!document.activeElement.closest(".tns-slide-active").previousElementSibling.previousElementSibling.previousElementSibling.classList.contains("tns-slide-active")&&f.container.children[f.index].children[2].children[2].children[0]!==document.activeElement&&
e.goTo("prev")}catch(n){return!1}})}c.classList.add("hide");b.classList.remove("hide")},checkAndDestroyExistingTinySlider:function(){document.querySelector(".abm-asin-search__carousel__wrapper \x3e .tns-outer")&&(this.sliders.forEach(function(a){a.destroy()}),this.sliders=[])},searchAsinResized:function(){var a=document.querySelector(".abm-asin-search__carousel");a&&"true"===a.parentElement.dataset.isdataloaded&&(this.checkAndDestroyExistingTinySlider(),this.resetToDefaultState(),this.checkAndInitializeTinySlider())},
setupExpandAsinEvents:function(){var a=document.querySelector(".abm-asin-search__carousel__wrapper__expand__layer"),b=document.querySelector(".abm-asin-search__carousel__wrapper__layer--collapsed-view"),c=0;b.addEventListener("keyup",function(e){"Tab"!==e.key||e.shiftKey?"Tab"===e.key&&e.shiftKey&&--c:(c+=1,b.children[0].children[1]===document.activeElement&&(c=1),3<c&&(d.initializeAsinCarousel(),setTimeout(function(){c=0;document.getElementsByClassName("tns-slide-active")[3].children[2].children[2].children[0].focus()},
100)))});a.addEventListener("click",function(){d.initializeAsinCarousel()});a.addEventListener("keydown",function(e){if(32===e.keyCode||13===e.keyCode)d.initializeAsinCarousel(e),e.preventDefault()})},initializeAsinCarousel:function(a){var b=document.querySelector(".abm-asin-search__carousel__wrapper__layer"),c=document.querySelector(".abm-asin-search__carousel__wrapper__layer--collapsed-view");d.expandTrigger();7>d.productCount&&1440<=window.innerWidth?(b.classList.add("hide"),document.querySelector(".abm-asin-search").classList.add("expanded"),
c.classList.add("expanded")):(document.querySelector(".abm-asin-search").classList.remove("expanded"),c.classList.remove("expanded"),d.checkAndInitializeTinySlider(),this.setFocusOnCarouselArrow(a))},setFocusOnCarouselArrow:function(a){var b=document.querySelector(".abm-asin-search__carousel__wrapper__controls\x3e#customize-controls");b.setAttribute("tabindex","-1");b&&a&&"keydown"===a.type&&(b.setAttribute("tabindex","0"),b.focus(),b.setAttribute("tabindex","-1"),a.preventDefault())},expandTrigger:function(){this.expanded=
1;document.querySelector(".abm-asin-search__carousel__wrapper__expand").classList.add("hide");document.querySelector(".abm-asin-search__carousel__wrapper__controls \x3e .controls").classList.remove("hide");document.querySelector(".abm-asin-search__carousel").classList.add("expanded")}};window.addEventListener("DOMContentLoaded",function(){document.getElementById("search-result-component")&&d.init();document.querySelector(".abm-asin-search")&&"true"===document.querySelector(".abm-asin-search").dataset.enableasinsearch&&
(d.callAsinSearchApi(),d.setupExpandAsinEvents())});window.addEventListener("resize",function(){document.querySelector(".abm-asin-search")&&"true"===document.querySelector(".abm-asin-search").dataset.enableasinsearch&&(1023<window.innerWidth?(d.expanded=0,document.querySelector(".abm-asin-search__carousel").classList.remove("expanded"),document.querySelector(".abm-asin-search__carousel__wrapper__controls .controls").classList.add("hide")):document.querySelector(".abm-asin-search__carousel__wrapper__controls .controls").classList.remove("hide"),
d.searchAsinResized())})})();
(function(){var d={init:function(){var a=document.querySelector("#resourceDownloadEmail"),b=document.querySelector("#resource-download-component");if(b&&a){var c=a.dataset.requirederror,e=a.dataset.emailerror;b.onsubmit=function(f){b.checkValidity()||f.preventDefault();"undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track("resource_download")};(0<a.offsetWidth||0<a.offsetHeight||0<a.getClientRects().length)&&a.insertAdjacentHTML("afterend",'\x3cdiv class\x3d"error"\x3e\x3c/div\x3e');a.oninvalid=
function(){a.classList.add("invalid");a.setAttribute("aria-invalid",!0);a.nextSibling.textContent=a.validity.patternMismatch||a.validity.typeMismatch?e:c;a.oninput=function(){a.oninput=null;a.nextSibling.textContent="";a.classList.remove("invalid");a.setAttribute("aria-invalid",!1);a.checkValidity()}};a.addEventListener("keyup",function(){a.checkValidity()})}}};window.addEventListener("DOMContentLoaded",function(){document.getElementById("resource-download-component")&&d.init()})})();
(function(){var d={init:function(){var a=[],b=[],c=[],e="",f=document.getElementById("resourceList"),g=document.getElementById("filter-component"),h=document.getElementById("resourceFilterApiErrorMessage"),k=document.getElementById("resourceFilterIndustryTags"),m=document.getElementById("resourceCategoryDropDown"),n=g.dataset.locale;h.classList.add("hide");var t=document.getElementsByClassName("abm-resource-filters__filter-list__category__tags__tag__checkbox"),u=f.children[0],x="",y=document.getElementsByClassName("abm-resource-filters__filter-list__category__tags__tag__group"),
B=(new URL(document.location.href)).searchParams,K=g.dataset.limit,E=g.dataset.limitLoadmore,A=g.dataset.noresult,N=g.dataset.errortext,M=g.dataset.isauthor,J=g.getAttribute("data-url"),H=e=n?J+"?size\x3d"+E+"\x26locale\x3d"+n:J+"?size\x3d"+E,ba=[],W="",V=document.createElement("div");V.id="resourceCacheList";V.style.display="none";var ca=document.querySelector(".abm-loader-overlay"),aa=document.querySelector(".abm-resource-filters__filter-list__category__right-arrow"),ja=document.querySelector(".abm-resource-filters__filter-list__category__left-arrow"),
G=document.querySelectorAll(".abm-resource-filters__filter-list__category__tags")[1],P=function(R,Z,za,la,Ia){var Ja=0,Da=setInterval(function(){"left"===Z?(R.scrollLeft-=Ia,0===document.querySelectorAll(".abm-resource-filters__filter-list__category__tags")[1].scrollLeft&&ja.classList.add("hide")):(R.scrollLeft+=Ia,!G||Math.round(G.scrollWidth-G.scrollLeft)!==G.offsetWidth&&Math.round(G.scrollWidth-G.scrollLeft)-1!==G.offsetWidth&&Math.round(G.scrollWidth-G.scrollLeft)+1!==G.offsetWidth||aa.classList.add("hide"));
Ja+=Ia;Ja>=la&&window.clearInterval(Da)},za)},Y=function(){P(G,"left",25,100,10);aa.classList.remove("hide")},ea=function(){P(G,"right",25,100,10);ja.classList.remove("hide")},S=function(){G&&G.scrollWidth>G.clientWidth&&(G.setAttribute("style","justify-content:initial"),aa.classList.remove("hide"),aa.querySelector(".abm-resource-filters__filter-list__category__right-arrow__btn")&&(aa.querySelector(".abm-resource-filters__filter-list__category__right-arrow__btn").removeEventListener("click",ea),aa.querySelector(".abm-resource-filters__filter-list__category__right-arrow__btn").addEventListener("click",
ea)),ja.querySelector(".abm-resource-filters__filter-list__category__left-arrow__btn")&&(ja.querySelector(".abm-resource-filters__filter-list__category__left-arrow__btn").removeEventListener("click",Y),ja.querySelector(".abm-resource-filters__filter-list__category__left-arrow__btn").addEventListener("click",Y)),G&&G.addEventListener("scroll",function(){ja.classList.remove("hide");aa.classList.remove("hide");0===document.querySelectorAll(".abm-resource-filters__filter-list__category__tags")[1].scrollLeft?
ja.classList.add("hide"):(Math.round(G.scrollWidth-G.scrollLeft)===G.offsetWidth||Math.round(G.scrollWidth-G.scrollLeft)-1===G.offsetWidth||Math.round(G.scrollWidth-G.scrollLeft)+1===G.offsetWidth)&&aa.classList.add("hide")}))};S();var na=function(R){document.querySelectorAll(".abm-resource-filters__resource-list__item").forEach(function(Z){function za(fa,Ga,zb){function hb(Ab,sb,gc){for(;gc.scrollHeight>Ab;)sb.pop(),gc.innerHTML=sb.join(" ")+"..."}var rb=Ga.innerHTML.split(" "),Qb=zb.innerHTML.split(" ");
hb(80,rb,Ga);1===fa?hb(85,Qb,zb):2===fa?hb(70,Qb,zb):3===fa&&hb(36,Qb,zb)}var la=Z.querySelector(".abm-resource-filters__resource-list__item__text__title"),Ia=Z.querySelector(".abm-resource-filters__resource-list__item__text__description"),Ja=!!document.documentMode;R&&Z.classList.remove("clamp-1","clamp-2","clamp-3");if(la.innerText){var Da=la.getBoundingClientRect().height;Da=Math.ceil(Math.floor(Da)/23.94);1===Da?Z.classList.add("clamp-3"):2===Da?Z.classList.add("clamp-2"):3===Da&&Z.classList.add("clamp-1")}Ja&&
za(Da,la,Ia)})};window.onresize=function(){G&&G.scrollWidth>G.clientWidth?S():(ja&&ja.classList.add("hide"),aa&&aa.classList.add("hide"));na(!0)};var ua=function(R,Z,za,la,Ia){"undefined"===Z&&(Z=!1);u&&amznbase.isLoadMoreClicked&&(amznbase.oldListLength=u.childElementCount);la&&(V.innerHTML="");za&&Z?(u.innerHTML+=V.innerHTML,V.innerHTML="",ca.classList.add("hide"),u&&Ia&&u.querySelectorAll("li")[Ia-1].querySelector("a").focus()):za&&!Z&&(V.innerHTML="");R.forEach(function(Ja,Da){var fa=document.createElement("li");
fa.classList.add("abm-resource-filters__resource-list__item");var Ga=document.createElement("a"),zb=document.createElement("div");zb.classList.add("abm-resource-filters__resource-list__item__image");var hb=document.createElement("img"),rb=document.createElement("div");rb.classList.add("abm-resource-filters__resource-list__item__text");var Qb=document.createElement("div");Qb.classList.add("abm-resource-filters__resource-list__item__text__title");var Ab=document.createElement("p");Ab.classList.add("abm-resource-filters__resource-list__item__text__description");
if(Ja.fields){Ga.href=Ja.fields.uri;var sb=Ja.fields.image;sb="true"===M&&sb?sb.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+sb;hb.setAttribute("data-src",sb+".transform/470x215/image.jpg");hb.classList.add("lazyload");hb.setAttribute("data-srcset",sb+".transform/470x215/image.jpg 1x,"+sb+".transform/940x430/image.jpg 2x");hb.alt=Ja.fields.title;Qb.innerText=Ja.fields.title;Ga.setAttribute("data-resource-filters-tiles",Ja.fields.title);Ab.innerText=Ja.fields.description}zb.appendChild(hb);
rb.appendChild(Qb);rb.appendChild(Ab);Ga.appendChild(zb);Ga.appendChild(rb);fa.appendChild(Ga);za?V.appendChild(fa):Z?u.appendChild(fa):3>=Da?(x=document.querySelector(".abm-resource-filters__resource-list__promo-tile"),u.insertBefore(fa,x)):u.appendChild(fa)});amznbase.focusElementOnListRefresh(u);V.children.length?document.getElementById("show-more").classList.remove("hide"):document.getElementById("show-more").classList.add("hide");na()},ma=function(R,Z,za,la,Ia){"undefined"===Z&&(Z=!0);ca.classList.remove("hide");
amznbase.makeHttpRequest(R,"GET",function(Ja,Da){h.classList.add("hide");if(null===Ja)h.classList.remove("hide"),ca.classList.add("hide"),h.innerText=N;else{try{var fa=JSON.parse(Da)}catch(Ga){fa="",h.classList.remove("hide"),ca.classList.add("hide"),h.innerText=N}x=document.querySelector(".abm-resource-filters__resource-list__promo-tile");ca.classList.add("hide");fa&&fa.hits&&0<fa.hits.found?(W=fa&&fa.hits&&fa.hits.found?fa.hits.found:"",f.className=4>fa.hits.found&&fa.hits&&fa.hits.hit&&fa.hits.hit.length?
"abm-resource-filters__results-count-"+fa.hits.hit.length:"",ba.length?fa.hits.hit.forEach(function(Ga){ba.push(Ga)}):ba=fa.hits.hit,Z?(0<=W?x.classList.remove("hide"):x.classList.add("hide"),ua(fa.hits.hit,!1,za,Z),ba.length<fa.hits.found&&(Ja=ba.length,R=amznbase.replaceQueryParam("size",K,R),ma(R+"\x26start\x3d"+Ja,!1,!0,!1)),a&&a.length&&(digitalData&&(digitalData.resourcefiltertags=a),za||"undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track("resource_filter_tags"))):za&&!la?ua(fa.hits.hit,
!1,za,Z):ua(fa.hits.hit,!0,za,Z,Ia)):(x.classList.add("hide"),h.classList.remove("hide"),h.innerText=A,document.getElementById("show-more").classList.add("hide"))}})},z=function(){for(var R=document.getElementsByClassName("abm-resource-filters__resource-list__item"),Z=R.length-1;0<R.length;--Z)R[Z].remove();ba=[]};k&&(k.querySelectorAll(".abm-resource-filters__filter-list__category__tags__tag__group").forEach(function(R){b.push(R.getAttribute("value"))}),H+="\x26content-type\x3d"+(b.length?b.toString():
""));if(B.has("tags")){k=B.get("tags").split(",");var T=document.querySelectorAll(".abm-resource-filters__filter-list__category__tags__tag__checkbox"),F=!1;k.forEach(function(R){T.forEach(function(Z){Z.id===R&&(F=!0)});c.push(R)});F&&(H+="\x26tags\x3d"+B.get("tags"));c.forEach(function(R){if((R=document.getElementById(R))&&document.getElementById("checkbox"+R.id)){var Z=R.parentElement,za=R.name;R.checked=!0;document.getElementById("checkbox"+R.id).checked=!0;a.push(za);Z.classList.add("selected")}});
g.classList.remove("no-filters")}ma(H,!0,!1,!1);var Q=function(R){var Z=R.parentElement,za=Z.querySelector(".abm-resource-filters__filter-list__category__tags__tag__label").innerText;za&&(za=za.trim());var la=R.id,Ia=R.classList.contains("industry");document.getElementById("checkbox"+la).checked=R.checked;H=e;R.checked?(Z.classList.add("selected"),a.includes(za)||(Ia?b.push(la):c.push(la),a.push(za),a.length&&g.classList.remove("no-filters"))):(Z.classList.remove("selected"),a.includes(za)&&(R=a.indexOf(za),
Z=0,Ia?(Z=b.indexOf(la),b.splice(Z,1)):(Z=c.indexOf(la),c.splice(Z,1)),a.splice(R,1),a.length||g.classList.add("no-filters")));c.length?window.history.pushState("","","?tags\x3d"+c.join(",")):window.history.pushState("","",window.location.origin+window.location.pathname);if(b.length||c.length)if(H+="\x26",b.length&&(H+="content-type\x3d"+b.join(",")),c.length){var Ja=[],Da=Array.from(c),fa=document.querySelectorAll(".abm-resource-filters__filter-list__category__tags__tag__checkbox");Da.forEach(function(Ga,
zb){var hb=!1;fa.forEach(function(rb){rb.id===Ga&&(hb=!0)});hb||Ja.push(Da.indexOf(Ga))});Ja.length?(Ja.forEach(function(Ga){Da.splice(Ga,1)}),Da.length&&(H+="\x26tags\x3d"+Da.join(","))):H+="\x26tags\x3d"+c.join(",")}z();ma(H,!0,!1,!0)},ia=function(R){ca.classList.remove("hide");if(ba.length<W){var Z=ba.length;0<Z&&(H=amznbase.replaceQueryParam("size",K,H),ma(H+"\x26start\x3d"+Z,!1,!0,!0,R))}else amznbase.oldListLength=u?u.childElementCount:amznbase.oldListLength,u.innerHTML+=V.innerHTML,amznbase.focusElementOnListRefresh(u),
document.getElementById("show-more").classList.add("hide"),V.innerHTML="",ca.classList.add("hide"),na()};m&&m.addEventListener("click",function(R){R=R.target.closest(".abm-resource-filters__drop-down");var Z=R.querySelector(".abm-resource-filters__drop-down__field").classList;Z&&Z.contains("hide")?(m.querySelector(".arrow-icon").classList.add("up-arrow"),R.querySelector(".hide").classList.remove("hide")):(R.querySelector(".abm-resource-filters__drop-down__field").classList.add("hide"),m.querySelector(".arrow-icon").classList.remove("up-arrow"))});
document.addEventListener("click",function(R){R.target.matches(".abm-resource-filters__filter-list__category__tags__tag__checkbox")&&Q(R.target);if(R.target.matches(".abm-resource-filters__filter-list__selected__clear")){a=[];c=[];g.classList.add("no-filters");H=e;H+="\x26content-type\x3d"+(b.length?b.toString():"");for(var Z=0;Z<t.length;Z+=1)t[Z].checked=!1;for(Z=0;Z<y.length;Z+=1)y[Z].classList.remove("selected");z();ma(H,!0,!1,!1)}R.target.matches(".abm-resource-filters__resource-list__show-more__button")&&
ia();R.target.matches(".abm-resource-filters__drop-down__field li")&&R.target.querySelector('input[type\x3d"checkbox"]').click();R.target.matches('.abm-resource-filters__drop-down__field input[type\x3d"checkbox"]')&&document.getElementById(R.target.value).click();R.target.classList.contains("dropdown_button")||R.target.classList.contains("checkbox__wrapper")||R.target.classList.contains("abm-resource-filters__drop-down__field__checkbox")||R.target.classList.contains("abm-resource-filters__filter-list__category__tags__tag__checkbox")||
((R=document.querySelector(".abm-resource-filters__drop-down__field"))&&R.classList.add("hide"),m&&m.querySelector(".arrow-icon").classList.remove("up-arrow"))},!1);document.addEventListener("keydown",function(R){13===R.keyCode&&(R.target.matches(".abm-resource-filters__filter-list__category__tags__tag__checkbox")&&(R.target.checked=!R.target.checked,Q(R.target)),R.target.matches(".abm-resource-filters__resource-list__show-more__button")&&(R.preventDefault(),u&&0!==u.childElementCount&&(amznbase.isLoadMoreClicked=
!0,ia(u.childElementCount))),R.target.matches(".abm-resource-filters__drop-down__field li")&&R.target.querySelector('input[type\x3d"checkbox"]').click(),R.target.matches('.abm-resource-filters__drop-down__field input[type\x3d"checkbox"]')&&document.getElementById(R.target.value).click(),R.target.classList.contains("dropdown_button")||R.target.classList.contains("checkbox__wrapper")||R.target.classList.contains("abm-resource-filters__drop-down__field__checkbox")||R.target.classList.contains("abm-resource-filters__filter-list__category__tags__tag__checkbox")||
((R=document.querySelector(".abm-resource-filters__drop-down__field"))&&R.classList.add("hide"),m&&m.querySelector(".arrow-icon").classList.remove("up-arrow")))},!1)}};window.addEventListener("DOMContentLoaded",function(){document.getElementById("filter-component")&&(d.init(),window.onpopstate=function(){window.location.reload()})})})();
var ABSearchBar={init:function(){this.body=document.querySelector("body");this.container=document.getElementById("ab-search-bar");this.searchTriggers=document.getElementsByClassName("search-trigger-open");this.closeBtn=document.getElementById("ab-search-close-btn");this.input=document.getElementById("ab-search-input");this.defaultContainer=document.getElementById("ab-search-bar-default");this.resultContainer=document.getElementById("ab-search-bar-result");this.resultList=document.getElementById("ab-search-bar-result-list");
this.noResultContainer=document.getElementById("ab-search-bar-no-results");this.searchTips=document.querySelector(".search-bar__result__search-tips");this.customErrorContainer=document.getElementById("ab-custom-error-message");this.statusResults=document.getElementById("status");this.api_endpoint=document.getElementById("suggestionDomainURL").value;this.resultLimit=this.container.dataset.resultlimit;this.resultStart=0;this.firstToggle=1;this.localeValue=amznbase.getValueFromMetaTag("language");this.setupEvents();
this.mobileSearchEvent()},setupEvents:function(){var d=this;d.show.bind(this);if(this.searchTriggers)for(var a=0;a<this.searchTriggers.length;a+=1)this.searchTriggers[a].addEventListener("click",function(b){b.preventDefault();d.toggle()}),this.searchTriggers[a].addEventListener("keydown",function(b){13===b.keyCode&&(b.preventDefault(),b.target.closest(".primary-navigation__top__item")&&b.target.closest(".primary-navigation__top__item").classList.contains("search-trigger-open")&&d.toggle())}),this.container.classList.contains("open")&&
(this.closeBtn.addEventListener("click",this.hide.bind(this)),this.closeBtn.addEventListener("keydown",function(b){13===b.keyCode&&this.closeBtn.click();b.preventDefault()}),window.addEventListener("keyup",this.hideOnEsc.bind(this)))},createCORSRequest:function(d,a){var b=new XMLHttpRequest;"withCredentials"in b?b.open(d,a,!0):"undefined"!==typeof XDomainRequest?(b=new XDomainRequest,b.open(d,a)):b=null;return b},doSearch:function(d){var a=this,b=this.input.value;if(13!==d.keyCode||this.firstToggle)this.firstToggle=
0;else return d.preventDefault(),window.location.href=a.resultList.dataset.viewalllink+"?q\x3d"+encodeURI(b),!1;if(b&&2<b.length){if(-1<[20,16,17,91,18,32,33,34,35,36,93,37,38,39,40,113,114,115,116,117,118,119,120,121,122,123].indexOf(d.keyCode))return!1;var c=this.createCORSRequest("GET",this.api_endpoint+"?q\x3d"+b+"\x26size\x3d"+this.resultLimit+"\x26start\x3d"+this.resultStart+"\x26locale\x3d"+this.localeValue);this.defaultContainer.classList.add("hide");this.resultContainer.classList.remove("hide");
c.addEventListener("load",function(){if(200===c.status&&4===c.readyState){var e=JSON.parse(c.responseText);a.resultList.innerHTML="";if(e.hits.hit&&0<e.hits.hit.length){for(var f=0;f<e.hits.hit.length;f+=1){var g=e.hits.hit[f].fields;if(g.uri){var h=document.createElement("li");var k=document.createElement("a");k.textContent=g.title;k.setAttribute("href",encodeURI(g.uri));h.appendChild(k)}else h=document.createElement("li"),h.textContent=g.title;a.resultList.append(h)}e.hits.hit&&0<e.hits.hit.length&&
e.hits.found>a.resultLimit&&a.resultList.dataset.viewalltext&&(e=document.createElement("li"),f=document.createElement("a"),a.resultList.dataset.viewalllink?(f.innerHTML=a.resultList.dataset.viewalltext,f.href=a.resultList.dataset.viewalllink+"?q\x3d"+encodeURI(b),f.target=a.resultList.dataset.viewalltarget?"_blank":"_self",e.appendChild(f)):(e=document.createElement("li"),e.innerHTML=a.resultList.dataset.viewalltext),a.resultList.append(e),a.statusResults.setAttribute("aria-label","results available"),
a.statusResults.innerHTML="Results available");a.noResultContainer.classList.add("hide");a.searchTips.classList.add("hide");a.customErrorContainer.classList.add("hide");a.resultList.classList.remove("hide")}else a.noResultContainer.classList.remove("hide"),a.searchTips.classList.remove("hide"),a.customErrorContainer.classList.add("hide"),a.resultList.classList.add("hide"),a.statusResults.setAttribute("aria-label","No results available"),a.statusResults.innerHTML="No results available"}else a.resultList.classList.add("hide"),
a.customErrorContainer.classList.remove("hide")});c.send()}else this.defaultContainer.classList.remove("hide"),this.resultContainer.classList.add("hide"),this.statusResults.removeAttribute("aria-label"),this.statusResults.innerHTML=""},toggle:function(){this.container.classList.contains("open")?this.hide():this.show()},preventScrolling:function(d,a){window.scrollTo(d,a)},show:function(){this.container.setAttribute("aria-expanded",!0);this.container.style.height=window.innerHeight+"px";this.container.classList.add("open");
this.closeBtn.addEventListener("click",this.hide.bind(this));this.body.classList.add("scoll-locked");this.input.value="";this.input.focus();window.addEventListener("keyup",this.hideOnEsc.bind(this));this.defaultContainer.classList.remove("hide");this.resultContainer.classList.add("hide");this.preventScrolling=this.preventScrolling.bind(this,window.pageYOffset||document.documentElement.scrollTop||0,window.pageXOffset||document.documentElement.scrollLeft||0);window.addEventListener("scroll",this.preventScrolling)},
hide:function(){this.firstToggle=1;this.container.setAttribute("aria-expanded",!1);this.container.classList.remove("open");this.closeBtn.removeEventListener("click",this.hide.bind(this));this.body.classList.remove("scoll-locked");window.removeEventListener("scroll",this.preventScrolling);1024>window.innerWidth?document.querySelector(".search-icon").focus():"LI"===document.querySelectorAll(".primary-navigation__top__item")[0].nodeName?document.querySelectorAll(".primary-navigation__top__item")[0].focus():
document.querySelectorAll(".primary-navigation__top__item")[1].querySelector("button")?document.querySelectorAll(".primary-navigation__top__item")[1].querySelector("button").focus():document.querySelectorAll(".primary-navigation__top__item")[1].querySelector("a").focus()},hideOnEsc:function(d){27===d.keyCode&&(window.removeEventListener("keyup",this.hideOnEsc.bind(this)),this.hide())},mobileSearchEvent:function(){document.querySelector(".search-icon").addEventListener("keydown",function(d){13===d.keyCode&&
document.querySelector("li.primary-navigation__top__item").click()})}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.getElementById("ab-search-bar"))&&(ABSearchBar.init(),document.getElementById("ab-search-input").addEventListener("keyup",function(d){ABSearchBar.doSearch(d)}))});
var DesktopNavigationSubMenu={init:function(){this.listener=[];this.subMenus=[];this.viewPortHeight=document.documentElement.clientHeight;this.findSubMenus();this.setupEvents();this.detectTabEvent();this.addLangAttribute()},addLangAttribute:function(){document.querySelectorAll(".languageContainer__options__list__item input").forEach(function(d){var a=d.getAttribute("data-locale").split("_");d.closest(".languageContainer__options__list__item").querySelector("label").setAttribute("lang",a[0])})},findSubMenus:function(){var d=
this;document.querySelectorAll(".submenu-parent").forEach(function(a){amznbase.isiOSDevice()&&a.classList.add("mac");d.subMenus.push(a)})},detectTabEvent:function(){var d=this;document.onkeydown=function(){document.body.classList.contains("using-tab")&&d.subMenus.map(function(a){a.childNodes.forEach(function(b){b.classList&&(b.classList.contains("submenu")||b.classList.contains("menu__item__wrapper"))&&(a.blur(),a.addEventListener("click",d.toggleMenu.bind(d,a,b)))})})}},setupEvents:function(){var d=
this;this.subMenus.map(function(a){a.childNodes.forEach(function(b){if(b.classList&&(b.classList.contains("submenu","submenu__desktop")||b.classList.contains("menu__item__wrapper"))){a.blur();["mouseenter","mouseleave"].forEach(function(f){a.removeEventListener(f,d.toggleMenu.bind(d,a,b));a.addEventListener(f,d.toggleMenu.bind(d,a,b))});var c=b.querySelector(".submenu__wrapper--inner"),e=b.querySelector(".menu__item__wrapper--inner");d.viewPortHeight&&700<d.viewPortHeight?!e&&c?c.classList.remove("scroll"):
e&&c&&e.classList.remove("scroll"):(!e&&c&&c.classList.add("scroll"),e&&c&&e.classList.add("scroll"))}b.classList&&b.classList.contains("menu__item__wrapper")&&b.querySelectorAll(".menu__item__wrapper__categories li").forEach(function(f){f.addEventListener("click",d.categoryClicked.bind(d))})})});window.addEventListener("resize",amznbase.debounce(function(){d.subMenus.map(function(a){a.childNodes.forEach(function(b){if(b.classList&&(b.classList.contains("submenu","submenu__desktop")||b.classList.contains("menu__item__wrapper"))){var c=
b.querySelector(".submenu__wrapper--inner");b=b.querySelector(".menu__item__wrapper--inner");d.viewPortHeight&&700<d.viewPortHeight?(c&&c.classList.add("noscroll"),b&&(b.classList.remove("scroll"),b.classList.add("noscroll"))):(c&&c.classList.remove("noscroll"),b&&(b.classList.remove("noscroll"),b.classList.add("scroll")))}})})},0))},categoryClicked:function(d){d.stopImmediatePropagation();for(var a=d.currentTarget.closest(".menu__item__wrapper__categories").querySelectorAll("li"),b=d.currentTarget.closest(".menu__item__wrapper").querySelectorAll(".submenu-content"),
c=0;c<a.length;c+=1)a[c].classList.remove("active");for(a=0;a<b.length;a+=1)b[a].classList.remove("show");d.currentTarget.classList.add("active");b="."+d.currentTarget.classList[0].replace("categories","submenu");d.currentTarget.closest(".menu__item__wrapper--inner").querySelector(b).classList.add("show")},toggleMenu:function(d,a,b){b.stopImmediatePropagation();var c="mouseenter"===b.type,e="mouseleave"===b.type;b="click"===b.type;d&&(c||e||b)&&(d.classList.contains("open")&&(e||b)?(d.children[0].setAttribute("aria-expanded",
!1),this.hideMenu(d)):d.classList.contains("open")||!c&&!b||(this.setSubNavigationPosition(d,a),d.children[0].setAttribute("aria-expanded",!0),this.showMenu(d),(d=d.querySelectorAll(".column3layout"))&&d.forEach(function(f){var g=0,h=0,k=0,m=0;f.querySelector(".submenu__center ul")&&(g=f.querySelector(".submenu__center ul").offsetHeight+35);f.querySelector(".submenu__right")&&(f.querySelector(".submenu__right"),f.querySelector(".submenu__right img")&&!f.querySelector(".submenu__right img").classList.contains("heightComputed")?
(h=f.querySelector(".submenu__right").offsetHeight+127-f.querySelector(".submenu__right img").offsetHeight,f.querySelector(".submenu__right img").classList.add("heightComputed")):h=f.querySelector(".submenu__right").offsetHeight);f.querySelector(".submenu__left ul")&&(k=f.querySelector(".submenu__left ul").offsetHeight+35);f.querySelector(".submenu__mobile-container")&&(f.querySelector(".submenu__mobile-container img")&&!f.querySelector(".submenu__mobile-container img").classList.contains("heightComputed")?
(m=f.querySelector(".submenu__mobile-container").offsetHeight+127-f.querySelector(".submenu__mobile-container img").offsetHeight,f.querySelector(".submenu__mobile-container img").classList.add("heightComputed")):m=f.querySelector(".submenu__mobile-container").offsetHeight);g=Math.max(g,h,k,m);f.querySelector(".submenu__right")&&(f.querySelector(".submenu__right").style.height=g+"px");f.querySelector(".submenu__mobile-container")&&(f.querySelector(".submenu__mobile-container").style.height=g+"px")})))},
setSubNavigationPosition:function(d,a){var b=Array.prototype.slice.call(document.querySelectorAll(".menu__item.submenu-parent")),c;"submenu"===a.classList[0]?c="regular":"menu__item__wrapper"===a.classList[0]&&(c="tabbed");"regular"===c?2<b.length&&(0===b.indexOf(d)?3===d.querySelector(".submenu__wrapper--inner").childElementCount?d.querySelector("."+a.classList[0]).classList.add("subnav1-layout3"):2===d.querySelector(".submenu__wrapper--inner").childElementCount?d.querySelector("."+a.classList[0]).classList.add("subnav1-layout2"):
4===d.querySelector(".submenu__wrapper--inner").childElementCount&&d.querySelector("."+a.classList[0]).classList.add("subnav2-layout4"):1===b.indexOf(d)?3===d.querySelector(".submenu__wrapper--inner").childElementCount?d.querySelector("."+a.classList[0]).classList.add("subnav2-layout3"):2===d.querySelector(".submenu__wrapper--inner").childElementCount?d.querySelector("."+a.classList[0]).classList.add("subnav2-layout2"):4===d.querySelector(".submenu__wrapper--inner").childElementCount&&d.querySelector("."+
a.classList[0]).classList.add("subnav2-layout4"):2===b.indexOf(d)?3===d.querySelector(".submenu__wrapper--inner").childElementCount?d.querySelector("."+a.classList[0]).classList.add("subnav3-layout3"):2===d.querySelector(".submenu__wrapper--inner").childElementCount?d.querySelector("."+a.classList[0]).classList.add("subnav3-layout2"):4===d.querySelector(".submenu__wrapper--inner").childElementCount&&d.querySelector("."+a.classList[0]).classList.add("subnav2-layout4"):3===b.indexOf(d)?3===d.querySelector(".submenu__wrapper--inner").childElementCount?
d.querySelector("."+a.classList[0]).classList.add("subnav4-layout3"):4===d.querySelector(".submenu__wrapper--inner").childElementCount&&d.querySelector("."+a.classList[0]).classList.add("subnav2-layout4"):4===b.indexOf(d)&&(3===d.querySelector(".submenu__wrapper--inner").childElementCount?d.querySelector("."+a.classList[0]).classList.add("subnav5-layout3"):4===d.querySelector(".submenu__wrapper--inner").childElementCount&&d.querySelector("."+a.classList[0]).classList.add("subnav2-layout4"))):"tabbed"===
c&&(b="subnav"+(5-b.length+b.indexOf(d)+1),d.querySelector("."+a.classList[0]).classList.add(b))},showMenu:function(d){document.querySelectorAll(".menu__item.submenu-parent.open").forEach(function(a){a.classList.remove("open")});d.classList.add("open");d.querySelector(".menu__item__wrapper")&&(d.querySelectorAll(".menu__item__wrapper__categories li").forEach(function(a){a.classList.remove("active")}),d.querySelectorAll(".menu__item__wrapper__submenu .submenu-content").forEach(function(a){a.classList.remove("show")}),
d.querySelector(".menu__item__wrapper__categories li").classList.add("active"),d.querySelector(".menu__item__wrapper__submenu .submenu-content").classList.add("show"))},hideMenu:function(d){d.classList.remove("open")}},MobileNavigationSubMenu={init:function(){this.logo=document.querySelectorAll(".overflow-menu-mobile__top--logo")[0];this.backBtn=document.querySelectorAll(".overflow-menu-mobile__top--back-btn")[0];this.ctaBtn=document.getElementById("mobile-primary-cta");this.card=document.getElementById("mobile-cards");
(this.closeBtn=document.getElementById("overflow-menu-mobile-close"))&&this.closeBtn.addEventListener("click",this.hideMenu.bind(this));this.subMenus=[];this.findSubMenus();this.setupEvents()},findSubMenus:function(){var d=this;document.querySelectorAll(".mobile-submenu-parent").forEach(function(a){d.subMenus.push(a)})},setupEvents:function(){var d=this;this.subMenus.map(function(a){a.childNodes.forEach(function(b){b.classList&&(b.classList.contains("mobile-menu__item--submenu")||b.classList.contains("mobile-menu__item__wrapper"))&&
a.addEventListener("click",function(c){d.showMenu(a,c)});b.classList&&b.classList.contains("mobile-menu__item__wrapper")&&b.querySelectorAll(".mobile-menu__item__wrapper__categories li").forEach(function(c){c.addEventListener("click",d.categoryClicked.bind(d))})})})},categoryClicked:function(d){d.stopImmediatePropagation();for(var a=d.currentTarget.closest(".mobile-menu__item__wrapper__categories").querySelectorAll("li"),b=d.currentTarget.closest(".mobile-menu__item__wrapper").querySelectorAll(".submenu-content"),
c=0;c<a.length;c+=1)a[c].classList.remove("active");for(a=0;a<b.length;a+=1)b[a].classList.remove("show");d.currentTarget.classList.add("active");b="."+d.currentTarget.classList[0].replace("categories","submenu");d.currentTarget.closest(".mobile-menu__item__wrapper").querySelector(b).classList.add("show")},showMenu:function(d,a){if((a=a.target)&&!a.closest(".mobile-menu__item__wrapper__submenu")){var b=this;document.querySelectorAll(".menu__item.submenu-parent.open").forEach(function(c){c.classList.remove("open")});
d&&(this.subMenus.map(function(c){c.classList.add("hide")}),document.querySelectorAll(".mobile-menu__item").forEach(function(c){c.classList.add("hide")}),d.querySelector(".mobile-menu__item__wrapper")&&(d.querySelectorAll(".mobile-menu__item__wrapper__categories li").forEach(function(c){c.classList.remove("active")}),d.querySelectorAll(".mobile-menu__item__wrapper__submenu .submenu-content").forEach(function(c){c.classList.remove("show")}),d.querySelector(".mobile-menu__item__wrapper__categories li").classList.add("active"),
d.querySelector(".mobile-menu__item__wrapper__submenu .submenu-content").classList.add("show")),this.backBtn.classList.remove("hide"),this.logo.classList.add("hide"),d.classList.remove("hide"),d.classList.add("open"),d.setAttribute("aria-expanded",!0),this.backBtn.addEventListener("click",function(){b.hideMenu(d);d.setAttribute("aria-expanded",!1)}),(a=d.getElementsByTagName("a"))&&a[0].focus())}},hideMenu:function(){this.subMenus.map(function(d){d.classList.add("hide")});document.querySelectorAll(".mobile-menu__item").forEach(function(d){d.classList.remove("hide");
d.classList.remove("open")});this.backBtn.classList.add("hide");this.ctaBtn&&this.ctaBtn.classList.remove("hide");this.logo.classList.remove("hide");this.closeBtn.removeEventListener("click",this.hideMenu.bind(this))}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.getElementById("sticky-navigation"))&&(DesktopNavigationSubMenu.init(),MobileNavigationSubMenu.init())});
var DesktopSimpleNavigationSubMenu={init:function(){this.listener=[];this.subMenus=[];this.viewPortHeight=document.documentElement.clientHeight;this.findSubMenus();this.setupEvents();this.hideSimpleTitle()},findSubMenus:function(){var d=this;document.querySelectorAll(".submenu-parent").forEach(function(a){amznbase.isiOSDevice()&&a.classList.add("mac");d.subMenus.push(a)})},hideSimpleTitle:function(){this.title=document.querySelectorAll(".submenu-list_col_1 .submenu-col_link");this.title.forEach(function(d){var a=
d.closest(".submenu__mobile").previousElementSibling;d?a.classList.add("hide"):a.classList.remove("hide")})},setupEvents:function(){var d=this;this.subMenus.map(function(a){a.childNodes.forEach(function(b){b.classList&&b.classList.contains("submenu-new")&&(navigator.userAgent.includes("Firefox")&&b.classList.add("firefox-scroll"),a.addEventListener("click",d.toggleMenuSimple.bind(d,a,b)))})})},toggleMenuSimple:function(d,a,b){b.stopImmediatePropagation();a=b.target.classList.contains("menu-label_span")||
b.target.classList.contains("menu-label");b="click"===b.type;d&&b&&a&&(d.classList.contains("open")?(d.children[0].setAttribute("aria-expanded",!1),this.hideMenu(d)):(d.children[0].setAttribute("aria-expanded",!0),this.showMenu(d)))},showMenu:function(d){document.querySelectorAll(".menu__item.submenu-parent.open").forEach(function(b){b.classList.remove("open")});d.classList.add("open");d.querySelector(".submenu__desktop").removeAttribute("style");var a=d.querySelector(".submenu__desktop").getBoundingClientRect().right;
a>window.outerWidth&&(a=window.outerWidth-a+"px",d.querySelector(".submenu__desktop").style.left=a,d.querySelector(".submenu__desktop").style.marginLeft="-16px")},hideMenu:function(d){d.classList.remove("open")}},MobileSimpleNavigationSubMenu={init:function(){this.logo=document.querySelectorAll(".overflow-nav-mobile__top--logo")[0];this.backBtn=document.querySelectorAll(".overflow-nav-mobile__top--back-btn")[0];this.ctaBtn=document.getElementById("mobile-primary-cta");this.closeBtn=document.getElementById("overflow-nav-mobile-close");
this.mobileBottom=document.querySelector(".overflow-nav-mobile__bottom");this.mobileMiddle=document.querySelector(".overflow-nav-mobile__middle");this.mobileMiddleSection=document.querySelector(".overflow-nav-mobile__middle__fieldWrapper");this.subMenus=[];this.findSubMenus();this.setupEvents()},findSubMenus:function(){var d=this;document.querySelectorAll(".mobile-submenu-parent").forEach(function(a){d.subMenus.push(a)})},setupEvents:function(){var d=this;this.subMenus.map(function(a){a.childNodes.forEach(function(b){b.classList&&
b.classList.contains("submenu__mobile")&&a.addEventListener("click",function(c){d.showMenu(a,c)})})})},showMenu:function(d,a){if((a=a.target)&&!a.closest(".mobile-menu__item__wrapper__submenu")){var b=this;document.querySelectorAll(".menu__item.submenu-parent.open").forEach(function(c){c.classList.remove("open")});d&&(this.subMenus.map(function(c){c.classList.add("hide")}),this.backBtn.classList.remove("hide"),this.logo.classList.add("hide"),d.classList.remove("hide"),d.classList.add("open"),d.setAttribute("aria-expanded",
!0),this.closeBtn.classList.add("hide"),this.mobileBottom.classList.add("hide"),this.mobileMiddle.style.height="100%",this.mobileMiddleSection.classList.add("hide"),this.backBtn.addEventListener("click",function(){b.hideMenu(d);d.setAttribute("aria-expanded",!1)}))}},hideMenu:function(){this.subMenus.map(function(d){d.classList.add("hide")});document.querySelectorAll(".mobile-menu__item").forEach(function(d){d.classList.remove("hide");d.classList.remove("open")});this.backBtn.classList.add("hide");
this.ctaBtn&&this.ctaBtn.classList.remove("hide");this.logo.classList.remove("hide");this.closeBtn.classList.remove("hide");this.mobileBottom.classList.remove("hide");this.closeBtn.removeEventListener("click",this.hideMenu.bind(this));this.mobileMiddleSection.classList.remove("hide");this.mobileMiddle.style.height=""}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.getElementById("new-navigation"))&&(DesktopSimpleNavigationSubMenu.init(),MobileSimpleNavigationSubMenu.init())});
var NewNavigationSubmenuDeskTop={init:function(){this.subMenus=[];this.findSubMenus();this.setupEvents()},findSubMenus:function(){var d=this;document.querySelectorAll(".submenu-parent").forEach(function(a){amznbase.isiOSDevice()&&a.classList.add("mac");d.subMenus.push(a)})},setupEvents:function(){var d=this;this.subMenus.map(function(a){a.childNodes.forEach(function(b){b.classList&&b.classList.contains("nav__item__wrapper")&&(navigator.userAgent.includes("Firefox")&&b.classList.add("firefox-scroll"),
b.querySelectorAll(".nav__item__wrapper__categories li").forEach(function(c){["click","keypress"].forEach(function(e){c.addEventListener(e,d.categoryClicked.bind(d))})}),a.addEventListener("click",d.toggleMenu.bind(d,a,b)))})})},toggleMenu:function(d,a,b){a=b.target.classList.contains("menu-label_span")||b.target.classList.contains("menu-label");d&&a&&(d.classList.contains("open")?(d.children[0].setAttribute("aria-expanded",!1),this.hideMenu(d)):(d.children[0].setAttribute("aria-expanded",!0),this.showMenu(d)))},
categoryClicked:function(d){for(var a=d.currentTarget.closest(".nav__item__wrapper__categories").querySelectorAll("li"),b=d.currentTarget.closest(".nav__item__wrapper").querySelectorAll(".submenu-content"),c=0;c<a.length;c+=1)a[c].classList.remove("active");for(a=0;a<b.length;a+=1)b[a].classList.remove("show"),b[a].classList.add("hide");d.currentTarget.classList.add("active");b="."+d.currentTarget.classList[0].replace("categories","submenu");d.currentTarget.closest(".nav__item__wrapper--inner").querySelector(b).classList.replace("hide",
"show")},showMenu:function(d){document.querySelectorAll(".menu__item.submenu-parent.open").forEach(function(b){b.classList.remove("open")});d.classList.add("open");d.querySelector(".nav__item__wrapper")&&(d.querySelectorAll(".nav__item__wrapper__categories li").forEach(function(b){b.classList.remove("active")}),d.querySelectorAll(".nav__item__wrapper__submenu .submenu-content").forEach(function(b){b.classList.remove("show");b.classList.add("hide")}),d.querySelector(".nav__item__wrapper__categories li").classList.add("active"),
d.querySelector(".nav__item__wrapper__submenu .submenu-content").classList.replace("hide","show"));d.querySelector(".nav__item__wrapper").removeAttribute("style");var a=d.querySelector(".nav__item__wrapper").getBoundingClientRect().right;a>window.outerWidth&&(a=window.outerWidth-a+"px",d.querySelector(".nav__item__wrapper").style.left=a,d.querySelector(".nav__item__wrapper").style.marginLeft="-16px")},hideMenu:function(d){d.classList.remove("open")}},NewNavigationSubmenuMobile={init:function(){this.logo=
document.querySelectorAll(".overflow-nav-mobile__top--logo")[0];this.backBtn=document.querySelectorAll(".overflow-nav-mobile__top--back-btn")[0];this.ctaBtn=document.getElementById("mobile-primary-cta");this.closeBtn=document.getElementById("overflow-nav-mobile-close");this.mobileBottom=document.querySelector(".overflow-nav-mobile__bottom");this.mobileMiddle=document.querySelector(".overflow-nav-mobile__middle");this.mobileMiddleSection=document.querySelector(".overflow-nav-mobile__middle__fieldWrapper");
this.subMenus=[];this.findSubMenus();this.setupEvents()},findSubMenus:function(){var d=this;document.querySelectorAll(".mobile-submenu-parent").forEach(function(a){d.subMenus.push(a)})},setupEvents:function(){var d=this;this.subMenus.map(function(a){a.childNodes.forEach(function(b){b.classList&&b.classList.contains("mobile-nav__item__wrapper")&&a.addEventListener("click",function(c){d.showMenu(a,c)});b.classList&&b.classList.contains("mobile-nav__item__wrapper")&&b.querySelectorAll(".mobile-nav__item__wrapper__categories li").forEach(function(c){c.addEventListener("click",
d.categoryClicked.bind(d))})})})},categoryClicked:function(d){for(var a=d.currentTarget.closest(".mobile-nav__item__wrapper__categories"),b=d.currentTarget.closest(".mobile-nav__item__wrapper").querySelectorAll(".submenu-content"),c=0;c<b.length;c+=1)b[c].classList.remove("show"),b[c].classList.add("hide");b="."+d.currentTarget.classList[0].replace("categories","submenu");d.currentTarget.closest(".mobile-nav__item__wrapper").querySelector(b).classList.replace("hide","show");a.classList.add("hide");
this.backBtn.classList.add("atL2")},showMenu:function(d,a){if((a=a.target)&&!a.closest(".mobile-nav__item__wrapper__categories")&&!a.closest(".subcategory-link_mobile")){var b=this;document.querySelectorAll(".mobile-menu__item.mobile-submenu-parent.open").forEach(function(c){c.classList.remove("open")});d&&(this.subMenus.map(function(c){c.classList.add("hide")}),d.querySelector(".mobile-nav__item__wrapper")&&(d.querySelectorAll(".mobile-nav__item__wrapper__categories li").forEach(function(c){c.classList.remove("active")}),
d.querySelectorAll(".mobile-nav__item__wrapper__submenu .submenu-content").forEach(function(c){c.classList.remove("show")})),this.backBtn.classList.remove("hide"),this.logo.classList.add("hide"),this.closeBtn.classList.add("hide"),d.classList.remove("hide"),d.classList.add("open"),d.setAttribute("aria-expanded",!0),this.mobileBottom.classList.add("hide"),this.mobileMiddleSection.classList.add("hide"),this.mobileMiddle.style.height="100%",this.backBtn.addEventListener("click",function(c){c.stopImmediatePropagation();
c.currentTarget.classList.contains("atL2")?(c.currentTarget.classList.remove("atL2"),d.querySelector(".mobile-nav__item__wrapper__categories").classList.remove("hide"),d.querySelectorAll(".submenu-content").forEach(function(e){e.classList.remove("show");e.classList.add("hide")})):(b.hideMenu(d),d.setAttribute("aria-expanded",!1),b.closeBtn.classList.remove("hide"))}))}},hideMenu:function(){this.subMenus.map(function(d){d.classList.add("hide")});document.querySelectorAll(".mobile-menu__item").forEach(function(d){d.classList.remove("hide");
d.classList.remove("open")});this.backBtn.classList.add("hide");this.ctaBtn&&this.ctaBtn.classList.remove("hide");this.logo.classList.remove("hide");this.mobileBottom.classList.remove("hide");this.mobileMiddleSection.classList.remove("hide");this.mobileMiddle.style.height="";this.closeBtn.removeEventListener("click",this.hideMenu.bind(this))}},newNavigationStart=!1;
window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.getElementById("new-navigation"))&&!1===newNavigationStart&&(newNavigationStart=!0,NewNavigationSubmenuDeskTop.init(),NewNavigationSubmenuMobile.init())});
(function(){function d(k){function m(P){P.element.removeAttribute("data-cmp-is");t(P.options);n(P.element);G._active=0;G._paused=!1;G._elements.item&&(M(),u(),ca(),N());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(new window.Granite.author.MessageChannel("cqauthor",window)).subscribeRequestMessage("cmp.panelcontainer",function(Y){Y.data&&"cmp-carousel"===Y.data.type&&Y.data.id===G._elements.self.dataset.cmpPanelcontainerId&&"navigate"===Y.data.operation&&W(Y.data.index)})}
function n(P){G._elements={};G._elements.self=P;P=G._elements.self.querySelectorAll("[data-cmp-hook-carousel]");for(var Y=0;Y<P.length;Y++){var ea=P[Y],S="carousel";S=S.charAt(0).toUpperCase()+S.slice(1);S=ea.dataset["cmpHook"+S];G._elements[S]?(Array.isArray(G._elements[S])||(G._elements[S]=[G._elements[S]]),G._elements[S].push(ea)):G._elements[S]=ea}}function t(P){G._properties={};for(var Y in h)if(h.hasOwnProperty(Y)){var ea=h[Y],S=null;P&&null!=P[Y]&&(S=P[Y],ea&&"function"===typeof ea.transform&&
(S=ea.transform(S)));null===S&&(S=h[Y]["default"]);G._properties[Y]=S}}function u(){G._elements.previous&&G._elements.previous.addEventListener("click",function(){W(ba())});G._elements.next&&G._elements.next.addEventListener("click",function(){W(H())});var P=G._elements.indicator;if(P)for(var Y=0;Y<P.length;Y++)(function(ea){P[Y].addEventListener("click",function(S){V(ea)})})(Y);G._elements.pause&&G._properties.autoplay&&G._elements.pause.addEventListener("click",K);G._elements.play&&G._properties.autoplay&&
G._elements.play.addEventListener("click",E);G._elements.self.addEventListener("keydown",x);G._properties.autopauseDisabled||(G._elements.self.addEventListener("mouseenter",y),G._elements.self.addEventListener("mouseleave",B));G._elements.self.addEventListener("touchstart",function(ea){ea=ea.changedTouches[0];e=ea.pageX;f=ea.pageY},!1);G._elements.self.addEventListener("touchend",function(ea){var S=e-ea.changedTouches[0].pageX;Math.abs(S)>Math.abs(f-ea.changedTouches[0].pageY)&&(0<S?W(ba()):W(H()))},
!1)}function x(P){var Y=G._active,ea=G._elements.indicator.length-1;switch(P.keyCode){case c.ARROW_LEFT:case c.ARROW_UP:P.preventDefault();0<Y&&V(Y-1);break;case c.ARROW_RIGHT:case c.ARROW_DOWN:P.preventDefault();Y<ea&&V(Y+1);break;case c.HOME:P.preventDefault();V(0);break;case c.END:P.preventDefault();V(ea);break;case c.SPACE:G._properties.autoplay&&P.target!==G._elements.previous&&P.target!==G._elements.next&&(P.preventDefault(),G._paused?A():(G._paused=!0,aa(),N())),P.target===G._elements.pause&&
G._elements.play.focus(),P.target===G._elements.play&&G._elements.pause.focus()}}function y(P){aa()}function B(P){ca()}function K(P){G._paused=!0;aa();N();G._elements.play.focus()}function E(){A();G._elements.pause.focus()}function A(){var P=G._paused=!1;G._elements.self.parentElement&&(P=G._elements.self.parentElement.querySelector(":hover")===G._elements.self);!G._properties.autopauseDisabled&&P||ca();N()}function N(){ja(G._elements.pause,G._paused);ja(G._elements.play,!G._paused)}function M(){var P=
G._elements.item,Y=G._elements.indicator;if(P)if(Array.isArray(P))for(var ea=0;ea<P.length;ea++)if(ea===parseInt(G._active)){P[ea].classList.add("cmp-carousel__item--active");P[ea].removeAttribute("aria-hidden");Y[ea].classList.add("cmp-carousel__indicator--active");Y[ea].setAttribute("aria-selected",!0);var S=P[ea].closest(".linked-story-carousel");if(S){for(var na=P[ea].getAttribute("aria-label").slice(6,7),ua=S.querySelectorAll(".cmp-carousel__left-panel__list__item"),ma=0;ma<ua.length;ma+=1)ua[ma].classList.remove("active");
na=S.querySelector(".cmp-carousel__left-panel__list__item:nth-child("+na+")");na.classList.add("active");na=na.offsetTop;(S=S.querySelector(".simplebar-content-wrapper"))&&J(S,na,500)}}else P[ea].classList.remove("cmp-carousel__item--active"),P[ea].setAttribute("aria-hidden",!0),Y[ea].classList.remove("cmp-carousel__indicator--active"),Y[ea].setAttribute("aria-selected",!1);else P.classList.add("cmp-carousel__item--active"),Y.classList.add("cmp-carousel__indicator--active")}function J(P,Y,ea){var S=
P.scrollTop,na=Y-S,ua=+new Date,ma=function(){var z=+new Date-ua,T=parseInt;var F=z/(ea/2);1>F?F=na/2*F*F+S:(F--,F=-na/2*(F*(F-2)-1)+S);P.scrollTop=T(F,10);z<ea?requestAnimationFrame(ma):P.scrollTop=Y};ma()}function H(){var P=G._active===G._elements.item.length-1?0:G._active+1;G._elements.item[P].querySelector(".bg-video video")&&G._elements.item[P].querySelector(".bg-video video").play();return P}function ba(){return 0===G._active?G._elements.item.length-1:G._active-1}function W(P){0>P||P>G._elements.item.length-
1||(G._active=P,G._elements.item[P].querySelector(".bg-video video")&&G._elements.item[P].querySelector(".bg-video video").play(),M(),G._elements.self.parentElement&&G._elements.self.parentElement.querySelector(":hover")!==G._elements.self&&ca())}function V(P){W(P);var Y=window.scrollX||window.pageXOffset,ea=window.scrollY||window.pageYOffset;G._elements.indicator[P].focus();window.scrollTo(Y,ea)}function ca(){!G._paused&&G._properties.autoplay&&(aa(),G._autoplayIntervalId=window.setInterval(function(){if(!document.visibilityState||
!document.hidden){var P=G._elements.indicators;P!==document.activeElement&&P.contains(document.activeElement)?V(H()):W(H())}},G._properties.delay))}function aa(){window.clearInterval(G._autoplayIntervalId);G._autoplayIntervalId=null}function ja(P,Y){P&&(!1!==Y?(P.disabled=!0,P.classList.add("cmp-carousel__action--disabled")):(P.disabled=!1,P.classList.remove("cmp-carousel__action--disabled")))}var G=this;k&&k.element&&m(k)}function a(k){k=k.dataset;var m=[],n="carousel";n=n.charAt(0).toUpperCase()+
n.slice(1);n=["is","hook"+n];for(var t in k)if(k.hasOwnProperty(t)){var u=k[t];0===t.indexOf("cmp")&&(t=t.slice(3),t=t.charAt(0).toLowerCase()+t.substring(1),-1===n.indexOf(t)&&(m[t]=u))}return m}function b(){for(var k=document.querySelectorAll(g.self),m=0;m<k.length;m++)new d({element:k[m],options:a(k[m])});k=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;m=document.querySelector("body");(new k(function(n){n.forEach(function(t){t=[].slice.call(t.addedNodes);0<
t.length&&t.forEach(function(u){u.querySelectorAll&&[].slice.call(u.querySelectorAll(g.self)).forEach(function(x){new d({element:x,options:a(x)})})})})})).observe(m,{subtree:!0,childList:!0,characterData:!0})}var c={SPACE:32,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},e=null,f=null,g={self:'[data-cmp-is\x3d"carousel"]'},h={autoplay:{"default":!1,transform:function(k){return!(null===k||"undefined"===typeof k)}},delay:{"default":5E3,transform:function(k){k=parseFloat(k);return isNaN(k)?
null:k}},autopauseDisabled:{"default":!1,transform:function(k){return!(null===k||"undefined"===typeof k)}}};"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b)})();
(function(){var d={init:function(){var a=[],b=[],c=[],e=[],f=[],g=[],h=[],k="",m=document.getElementById("searchListCacheList"),n=document.getElementById("search-list-component"),t=document.querySelectorAll(".filterOptions li"),u=document.querySelector(".abm-search-list__right__searchList"),x=document.getElementById("searchListApiError"),y=document.querySelector(".abm-search-list__right__resultsmsg"),B=amznbase.getValueFromMetaTag("language"),K=n.dataset.categorylabel;this.searchListInput=document.querySelector(".abm-search-list__right__search__input");
x.classList.add("hide");var E="",A=n.getAttribute("data-productservleturl");A=A+"\x26locale\x3d"+B;var N=n.getAttribute("data-url")+"?size\x3d"+n.dataset.limit+"\x26locale\x3d"+B,M=N,J=document.querySelector(".abm-loader-overlay"),H=document.querySelectorAll(".categories__filter__dropdown__list__items"),ba=document.querySelectorAll(".categories__filter__label__name"),W=document.querySelector(".filter-dropdown__list.filterOptions--products"),V=document.querySelector(".abm-search-list__left__filter__options.filterOptions--products"),
ca=document.querySelectorAll(".filterProducts"),aa=function(F){F.forEach(function(Q){var ia=document.createElement("li");ia.className="filter-dropdown__list__items";var R=ia.cloneNode(!0);R.className="abm-search-list__left__filter__options__products";var Z=document.createElement("input");Z.type="checkbox";Z.id=Q.title;Z.name=Q.title;Z.className="filter-dropdown__list__items__item";Z.value=Q.name;Z.tabIndex=0;Z.autocomplete="off";var za=Z.cloneNode(!0);za.id="checkbox"+Q.title;za.name="checkbox"+Q.title;
za.className="abm-search-list__left__filter__options__products__product";var la=document.createElement("label");la.setAttribute("for",Q.title);la.innerText=Q.title;var Ia=la.cloneNode(!0);Ia.setAttribute("for","checkbox"+Q.title);ia.appendChild(Z);ia.appendChild(la);R.appendChild(za);R.appendChild(Ia);W.appendChild(R);V.appendChild(ia)})},ja=function(F,Q){F.forEach(function(ia){Q?ia.classList.remove("hide"):ia.classList.add("hide")})},G=function(F,Q,ia,R){"undefined"===Q&&(Q=!1);u&&amznbase.isLoadMoreClicked&&
(amznbase.oldListLength=u.childElementCount);R&&(m.innerHTML="");ia&&Q?(u.innerHTML+=m.innerHTML,m.innerHTML="",J.classList.add("hide")):ia&&!Q&&(m.innerHTML="");F.forEach(function(Z){var za=document.createElement("li");za.classList.add("abm-search-list__right__searchList__listItem");var la=document.createElement("a");la.classList.add("abm-search-list__right__searchList__listItem__title");var Ia=document.createElement("p");Ia.classList.add("abm-search-list__right__searchList__listItem__description");
var Ja=document.createElement("a");Ja.classList.add("abm-search-list__right__searchList__listItem__link");var Da=document.createElement("div");Da.classList.add("abm-search-list__right__searchList__listItem__date");Da.innerText=n.dataset.datelabel;var fa=document.createElement("span");if(Z.fields){la.innerText=Z.fields.title;la.href=Z.fields.uri;Ia.innerText=Z.fields.description;Ja.innerText=n.dataset.learnmore;Ja.href=Z.fields.uri;la.setAttribute("data-releasenotes-search-result",Z.fields.title);
Ja.setAttribute("data-releasenotes-search-result",Z.fields.title);var Ga=document.querySelector("html").getAttribute("lang");Ga&&"ja-JP"===Ga?Z.fields.release_updated_date&&(Z=new Date(Z.fields.release_updated_date),Z=Z.toLocaleString(Ga,{dateStyle:"long"}),fa.innerText=" "+Z):Z.fields.release_updated_date_locale&&(fa.innerText=" "+Z.fields.release_updated_date_locale)}Da.appendChild(fa);za.appendChild(la);za.appendChild(Ia);za.appendChild(Ja);za.appendChild(Da);ia?m.appendChild(za):u.appendChild(za)});
amznbase.focusElementOnListRefresh(u);m.children.length?(document.getElementById("show-more").classList.remove("hide"),u&&u.classList.remove("no-load-more")):(document.getElementById("show-more").classList.add("hide"),u&&u.classList.add("no-load-more"))},P=function(F){b=[];f=[];document.querySelectorAll(".abm-search-list__top__filter__label__count").forEach(function(Q){Q.innerText=""});F?(W.innerHTML="",V.innerHTML=""):document.querySelectorAll(".filterOptions--products input").forEach(function(Q){Q.checked=
!1})},Y=function(F,Q,ia,R){"undefined"===Q&&(Q=!0);J.classList.remove("hide");amznbase.makeHttpRequest(F,"GET",function(Z,za){x.classList.add("hide");if(amznbase.invalidResponses.includes(Z))x.classList.remove("hide"),J.classList.add("hide"),x.innerText=n.dataset.errortext;else{try{var la=JSON.parse(za)}catch(Ia){la="",x.classList.remove("hide"),J.classList.add("hide"),x.innerText=n.dataset.errortext}J.classList.add("hide");la&&la.hits&&0<la.hits.found?(E=la&&la.hits&&la.hits.found?la.hits.found:
"",K&&(y.innerHTML="\x3cb\x3e"+E+"\x3c/b\x3e "+n.dataset.countlabel+" \x3cb\x3e"+K+"\x3c/b\x3e"),y.classList.remove("hide"),h.length?la.hits.hit.forEach(function(Ia){h.push(Ia)}):h=la.hits.hit,Q?(G(la.hits.hit,!1,ia,Q),h.length<la.hits.found&&Y(F+"\x26start\x3d"+h.length,!1,!0,!1)):ia&&!R?G(la.hits.hit,!1,ia,Q):G(la.hits.hit,!0,ia,Q)):(x.classList.remove("hide"),y.classList.add("hide"),x.innerText=n.dataset.noresultsmessage,document.getElementById("show-more").classList.add("hide"),u&&u.classList.add("no-load-more"));
digitalData&&(Z={releasenoteEventName:"releasenotes_search",releasenoteEventData:{}},this.searchListInput&&this.searchListInput.value&&(Z.releasenoteEventData.searchTerm=this.searchListInput.value),e.length&&(Z.releasenoteEventData.monthFilter=e),g.length&&(Z.releasenoteEventData.yearFilter=g),f.length&&(Z.releasenoteEventData.productFilter=f),Z.releasenoteEventData.searchResults=la.hits.found,k&&(Z.releasenoteEventData.selectedCategory=k),digitalData.releasenoteEvent=Z,ia||"undefined"!==typeof _satellite&&
null!==_satellite&&_satellite.track("releasenotes_search"))}}.bind(this))}.bind(this),ea=function(){"undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track("releasenote_search_clear");a=[];c=[];e=[];g=[];k="";P();M=N;this.searchListInput&&this.searchListInput.value&&(M=M+"\x26q\x3d"+this.searchListInput.value);t.forEach(function(F){F.classList.remove("selected")});H.forEach(function(F){F.dataset&&F.dataset.categorylabel&&F.innerText===F.dataset.categorylabel?F.classList.add("selected"):
F.classList.remove("selected")});ba.forEach(function(F){F.innerText=F.dataset.categorylabel});K=n.dataset.categorylabel}.bind(this),S=function(){for(var F=document.getElementsByClassName("abm-search-list__right__searchList__listItem"),Q=F.length-1;0<F.length;--Q)F[Q].remove();h=[]},na=function(F,Q){Q&&(F=F+"\x26tagCategoryData\x3d"+Q);amznbase.makeHttpRequest(F,"GET",function(ia,R){W.innerHTML="";V.innerHTML="";if(null!==ia)try{var Z=JSON.parse(R);aa(Z);ja(ca,!0)}catch(za){ja(ca,!1)}})};na(A);Y(M,
!0,!1,!1);var ua=function(F){document.querySelectorAll(".abm-search-list-filter").forEach(function(Q){F?F.closest(".abm-search-list-filter").dataset.name!==Q.dataset.name&&Q.classList.remove("open"):(Q.classList.remove("open"),(Q=Q.querySelector(".categories__filter__label"))&&Q.setAttribute("aria-expanded",!1))})},ma=function(F){F.classList.contains("selected")?(F.classList.remove("selected"),F.setAttribute("aria-checked",!1)):(F.classList.add("selected"),F.setAttribute("aria-checked",!0))},z=function(F,
Q){M=N;if(!1===Q){var ia=F.value;if(F&&F.classList&&F.classList.contains("categories__filter__dropdown__list__items"))ua(),P(!0),H.forEach(function(Z){Z.classList.remove("selected");Z.setAttribute("aria-selected",!1);Z.dataset.value&&F.dataset.value&&Z.dataset.value===F.dataset.value&&(Z.classList.add("selected"),Z.setAttribute("aria-selected",!0))}),ba.forEach(function(Z){Z.innerText=F.innerText}),F&&F.dataset&&F.dataset.id?na(A,F.dataset.id):na(A),F&&F.dataset&&F.dataset.categorylabel?(k="",K=n.dataset.categorylabel):
(k=F.dataset.value,K=F.innerText);else if("checkbox"===F.type)if(document.querySelectorAll(".filterOptions--products input").forEach(function(Z){Z.value===ia&&(Z.checked=F.checked)}),F.checked)b.push(ia),f.push(F.name);else{var R=0;R=b.indexOf(ia);b.splice(R,1);f.splice(R,1)}else ma(F),ia=F.dataset.value,t.forEach(function(Z){Z.dataset.value===ia&&(F.classList.contains("selected")?Z.classList.add("selected"):Z.classList.remove("selected"))}),F.classList.contains("selected")?F.closest(".filterOptions").classList.contains("filterOptions--year")?
(c.push(ia),g.push(F.textContent)):(a.push(ia),e.push(F.textContent)):(R=0,F.closest(".filterOptions").classList.contains("filterOptions--year")?(R=c.indexOf(ia),c.splice(R,1),g.splice(R,1)):(R=a.indexOf(ia),a.splice(R,1),e.splice(R,1)))}(R=document.querySelector(".abm-search-list__right__search__input"))&&R.value&&!1===Q&&(M+="\x26q\x3d"+R.value);if(c.length||a.length||b.length||Q||k)Q&&F&&F.value&&(M+="\x26q\x3d"+F.value),k&&(M+="\x26product-category\x3d"+k),b.length&&(M+="\x26product-topics\x3d"+
b.join(",")),c.length&&(M+="\x26years\x3d"+c.join(",")),a.length&&(M+="\x26months\x3d"+a.join(","));S();Q=0;Q=b.length;F.closest(".abm-search-list__top__filter--monthyear")&&(Q=a.length+c.length);if(R=F.closest(".abm-search-list__top__filter"))R=R.querySelector(".abm-search-list__top__filter__label__count"),R.classList.add("hide"),0<Q?(R.innerText=" ("+Q+")",R.classList.remove("hide")):R.classList.add("hide");Y(M,!0,!1,!0);1023<window.innerWidth&&n.scrollIntoView(!0)},T=function(F){if(F.closest(".abm-search-list__left__filter__icon")){var Q=
F.closest(".abm-search-list__left__filter").querySelector(".abm-search-list__left__filter__options");Q.classList.contains("hide")?(Q.classList.remove("hide"),F.closest(".abm-search-list__left__filter__icon").classList.remove("changeArrow")):(Q.classList.add("hide"),F.closest(".abm-search-list__left__filter__icon").classList.add("changeArrow"))}};document.addEventListener("click",function(F){(F.target.matches(".abm-search-list__left__filter__options__option")||F.target.matches(".abm-search-list__left__filter__options__products__product")||
F.target.matches(".filter-dropdown__list__items__item")||F.target.matches(".filter-dropdown__list__item")||F.target.matches(".categories__filter__dropdown__list__items"))&&z(F.target,!1);T(F.target);F.target.closest(".abm-search-list-filter")||ua();if(F.target.matches(".abm-search-list__right__show-more__button"))if(amznbase.isLoadMoreClicked=!0,J.classList.remove("hide"),h.length<E){var Q=h.length;0<Q&&Y(M+"\x26start\x3d"+Q,!1,!0,!0)}else amznbase.oldListLength=u?u.childElementCount:amznbase.oldListLength,
u.innerHTML+=m.innerHTML,amznbase.focusElementOnListRefresh(u),document.getElementById("show-more").classList.add("hide"),u&&u.classList.add("no-load-more"),m.innerHTML="",J.classList.add("hide");F.target.matches(".clearLabel")&&(ea(),S(),na(A),Y(M,!0,!1,!1))},!1);document.addEventListener("keyup",function(F){if(13===F.keyCode){T(F.target);F.target.matches(".abm-search-list__right__search__input")&&z(F.target,!0);(F.target.matches(".abm-search-list__left__filter__options__option")||F.target.matches(".filter-dropdown__list__item")||
F.target.matches(".categories__filter__dropdown__list__items"))&&z(F.target,!1);if(F.target.matches(".abm-search-list__left__filter__options__products__product")||F.target.matches(".filter-dropdown__list__items__item"))F.target.checked=F.target.checked?!1:!0,z(F.target,!1);F.target.matches(".clearLabel")&&(ea(),S(),na(A),Y(M,!0,!1,!1))}});document.querySelectorAll(".abm-search-list-filter__label").forEach(function(F){F.addEventListener("click",function(){ua(F);var Q=F.closest(".abm-search-list-filter");
Q&&Q.classList.contains("open")?(Q.classList.remove("open"),Q.classList.contains("categories__filter")&&Q.querySelector("button").setAttribute("aria-expanded","false")):(Q.classList.add("open"),Q.classList.contains("categories__filter")&&Q.querySelector("button").setAttribute("aria-expanded","true"))})})}};window.addEventListener("DOMContentLoaded",function(){document.getElementById("search-list-component")&&d.init()})})();
(function(){var d={init:function(){var a=function(c){var e=document.querySelectorAll(".abm-pinnedarticle__grid__tiles li"),f=document.querySelector(".abm-pinnedarticle__grid__tiles__tile__descopy"),g=function(){for(var k=0;k<e.length;k+=1)e[k].classList.remove("hide")};if(1024<=c&&3<=e.length){g();for(var h=e.length-e.length%3;h<e.length;h+=1)e[h].classList.add("hide")}f&&768<=c&&1024>c&&3<=e.length&&(g(),0===e.length%2&&e[e.length-1].classList.add("hide"));!f&&768<=c&&1023>c&&2<=e.length&&(g(),0!==
e.length%2&&e[e.length-1].classList.add("hide"));768>c&&g()},b=function(){document.querySelectorAll(".abm-pinnedarticle__grid__tiles__tile__article__content").forEach(function(c){var e=c.querySelector(".abm-pinnedarticle__grid__tiles__tile__article__content__title"),f=c.querySelector(".abm-pinnedarticle__grid__tiles__tile__article__content__blogdesc"),g=!!document.documentMode;c.classList.remove("clamp-1","clamp-2","clamp-3");if(e.innerText){var h=e.getBoundingClientRect().height;h=Math.ceil(Math.floor(h)/
23.94);1===h?c.classList.add("clamp-1"):2===h?c.classList.add("clamp-2"):3===h&&c.classList.add("clamp-3")}c=function(k,m,n){var t=m.innerHTML.split(" "),u=n.innerHTML.split(" "),x=function(y,B,K){for(;K.scrollHeight>y;)B.pop(),K.innerHTML=B.join(" ")+"..."};768<=window.innerWidth&&x(75,t,m);768<=window.innerWidth&&1024>window.innerWidth&&(1===k?x(105,u,n):2===k?x(85,u,n):3<=k&&x(65,u,n));1024<=window.innerWidth&&1440>=window.innerWidth&&(1===k?x(128,u,n):2===k?x(105,u,n):3<=k&&x(85,u,n));1440<=window.innerWidth&&
(1===k?x(108,u,n):2===k?x(85,u,n):3<=k&&x(65,u,n))};g&&c(h,e,f)})};b();a(window.innerWidth);window.addEventListener("resize",function(){b();a(window.innerWidth)})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-pinnedarticle")&&d.init()})})();
(function(){var d={init:function(){var a=document.getElementById("tags");a&&a.lastElementChild&&(a.lastElementChild.innerHTML=a.lastElementChild.innerHTML.replace(/,/g,""))}};window.addEventListener("DOMContentLoaded",function(){document.getElementById("blogs-overview-component")&&d.init()})})();
(function(){var d={init:function(a){var b=document.querySelector("."+a),c=function(g,h){var k=b.querySelector(".abm-articlegrid__grid__tiles");g.forEach(function(m){var n=document.createElement("li");n.classList.add("abm-articlegrid__grid__tiles__tile");var t=document.createElement("a"),u=document.createElement("img");u.classList.add("abm-articlegrid__grid__tiles__tile__image");u.classList.add("lazyload");var x=document.createElement("h3");x.classList.add("abm-articlegrid__grid__tiles__tile__title");
var y=document.createElement("p");y.classList.add("abm-articlegrid__grid__tiles__tile__content");if(m.fields){t.href=m.fields.uri;var B=m.fields.image;B="true"===h&&B?B.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+B;u.setAttribute("data-src",B+".transform/696x320/image.jpg");u.alt="Article image";x.innerText=m.fields.title;y.innerText=m.fields.description;u.setAttribute("data-srcset",B+".transform/696x320/image.jpg 2x,"+B+".transform/348x160/image.jpg 1x")}t.appendChild(u);
t.appendChild(x);t.appendChild(y);n.appendChild(t);k.appendChild(n)})},e=function(){document.querySelectorAll(".abm-articlegrid__grid__tiles__tile").forEach(function(g){var h=g.querySelector(".abm-articlegrid__grid__tiles__tile__title"),k=g.querySelector(".abm-articlegrid__grid__tiles__tile__content"),m=!!document.documentMode;g.classList.remove("clamp-1","clamp-2","clamp-3");if(h.innerText){var n=h.getBoundingClientRect().height;n=Math.ceil(Math.floor(n)/23.94);1===n?g.classList.add("clamp-1"):2===
n?g.classList.add("clamp-2"):3===n&&g.classList.add("clamp-3")}g=function(t,u,x){var y=u.innerHTML.split(" "),B=x.innerHTML.split(" "),K=function(E,A,N){for(;N.scrollHeight>E;)A.pop(),N.innerHTML=A.join(" ")+"..."};768<=window.innerWidth&&K(75,y,u);768<=window.innerWidth&&1024>window.innerWidth&&(1===t?K(130,B,x):2===t?K(105,B,x):3===t&&K(65,B,x));1024<=window.innerWidth&&1440>=window.innerWidth&&(1===t?K(147,B,x):2===t?K(128,B,x):3===t&&K(85,B,x));1440<=window.innerWidth&&(1===t?K(108,B,x):2===t?
K(85,B,x):3===t&&K(65,B,x))};m&&g(n,h,k)})},f=function(g){var h=b.querySelector(".abm-articlegrid__grid").querySelectorAll(".abm-articlegrid__grid__tiles li"),k=function(){for(var n=0;n<h.length;n+=1)h[n].classList.remove("hide")};if(1024<=g&&3<=h.length){k();for(var m=h.length-h.length%3;m<h.length;m+=1)h[m].classList.add("hide")}if(768<=g&&1024>g&&2<=h.length)for(k(),m=h.length-h.length%2;m<h.length;m+=1)h[m].classList.add("hide");768>g&&k()};(function(){var g=b.querySelector(".abm-articlegrid__grid"),
h=g.getAttribute("data-count"),k=g.getAttribute("data-catagory"),m=g.getAttribute("data-url"),n=g.getAttribute("data-defaultcategory"),t=g.getAttribute("data-locale"),u=g.getAttribute("data-isauthor"),x=g.getAttribute("data-excludeitems"),y=[];var B=parseInt(h);if(x){var K=x.split(",");if(x=K.length)x+=1,h=parseInt(h)+x}else h=parseInt(h)+1;m=m+"?size\x3d"+h+"\x26locale\x3d"+t+("\x26content-type\x3d"+n);"mostRecentPublished"!==g.getAttribute("data-source")&&k&&(m+="\x26tags\x3d"+k);amznbase.makeHttpRequest(m,
"GET",function(E,A){var N;try{amznbase.invalidResponses.includes(E)||(N=JSON.parse(A))}catch(M){N=""}if(N&&N.hits&&N.hits.hit){N.hits.hit.forEach(function(M,J){if(M&&M.fields&&M.fields.uri){var H=M.fields.uri.toLowerCase();M=window.location.pathname.toLowerCase();if(u){var ba=t.split("_")[1].toLowerCase();M=M.replace("/content/amzn-biz/"+ba,"");M=M.replace(".html","")}M===H&&y.push(J);K&&K.forEach(function(W){W===H&&y.push(J)})}});if(y.length)for(E=y.length-1;0<=E;E--)N.hits.hit.splice(y[E],1);N.hits.hit.length>
B&&N.hits.hit.splice(B,h-B);c(N.hits.hit,u)}e();f(window.innerWidth);window.addEventListener("resize",function(){e();f(window.innerWidth)})})})()}};window.addEventListener("DOMContentLoaded",function(){var a=Array.from(document.querySelectorAll(".abm-articlegrid"));if(0<a.length)for(var b=0;b<a.length;b+=1)a[b].classList.add("abm-articlegrid"+b),d.init("abm-articlegrid"+b)})})();
(function(){var d={init:function(){this.abLogoParent=document.querySelector(".abm-logoslist ul");this.setupDataLogoLink()},setupDataLogoLink:function(){this.abLogoParent&&this.abLogoParent.children&&this.abLogoParent.children.forEach(function(a){if(a.children[0]&&a.children[0].getAttribute("href")){var b=a.children[0].getAttribute("href").split("/");a.children[0].setAttribute("data-logo-link",b[b.length-1])}})}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-logoslist"))&&
d.init()})})();
(function(){var d={init:function(){this.$skinnyHeroVideos=document.querySelectorAll(".skinny-hero-component__top__media.bg-video");this.initUI()},initUI:function(){this.setVideoInfo();this.addEventListeners();this.muteSkinnyHeroVideo()},addEventListeners:function(){var a=this;window.addEventListener("resize",amznbase.debounce(function(){a.setVideoInfo()},250))},setVideoInfo:function(){this.$skinnyHeroVideos.forEach(function(a){a=a.querySelector(".skinny-hero-component__top__media__bg-video");var b=
window.isXS||window.isS?a.dataset.isxsVideo:window.isM?a.dataset.ismVideo:window.isL?a.dataset.islVideo:a.dataset.isxlVideo;a.setAttribute("src","");b&&a.setAttribute("src",b)})},muteSkinnyHeroVideo:function(){document.querySelectorAll(".skinny-hero-component__top__media__bg-video").forEach(function(a){a.muted="muted"})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".skinny-hero-component")&&d.init()})})();
var textImage={init:function(){this.mainContainers=document.querySelectorAll(".text-image-maincontainer");this.body=document.querySelector("body");this.model=document.querySelector(".text-image-component__content__imageModelWrapper");this.modelimg=this.model.querySelector(".text-image-component__content__imageModelWrapper__content--img");this.closeicon=this.model.querySelector(".text-image-component__content__imageModelWrapper--close");this.hideShowImageModel()},hideShowImageModel:function(){var d=
this;document.querySelectorAll(".text-image-component").forEach(function(a){if(a=a.querySelector(".text-image-component__content__image-wrapper")){var b=a.getAttribute("data-enable-enlarge"),c=a.getAttribute("data-transform-checker");b&&!a.classList.contains("disableEnlarge")&&(a.querySelector(".text-image-component__content__image-wrapper--img").addEventListener("click",function(e){var f=e.target.dataset.src.split(".transform")[0];f="svg"===c?f:f+".transform/width-1122/image.jpg";"svg"!==c||d.modelimg.classList.contains("imageTypeSVG")?
"svg"!==c&&d.modelimg.classList.contains("imageTypeSVG")&&d.modelimg.classList.remove("imageTypeSVG"):d.modelimg.classList.add("imageTypeSVG");d.modelimg.src=f;d.modelimg.alt=e.target.alt;d.modelimg.onload=function(){d.model.classList.remove("hide");d.body.classList.add("stopScrollY")}}),d.closeicon.addEventListener("click",function(){d.model.classList.add("hide");d.body.classList.remove("stopScrollY")}),d.model.addEventListener("click",function(e){e.target===d.model&&(d.model.classList.add("hide"),
d.body.classList.remove("stopScrollY"))}))}})}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".text-image-component"))&&textImage.init()});
var heroCarousel={sliders:[],init:function(){this.initializeTinySlider();this.addEventListeners();this.muteHeroVideo()},addEventListeners:function(){window.addEventListener("resize",this.resized)},removeEventListeners:function(){window.removeEventListener("resize",this.resized)},muteHeroVideo:function(){document.querySelectorAll(".hero-component__top__media__bg-video").forEach(function(d){d.muted="muted"})},initializeTinySlider:function(){var d=this;document.querySelectorAll(".hero-slider").forEach(function(a){var b=
""===a.dataset.autoplay?!0:!1;a={container:a.querySelector(".customize"),items:1,controls:!0,controlsContainer:a.querySelector(".customize-controls"),navContainer:a.querySelector(".customize-nav"),navAsThumbnails:!0,autoplay:b,autoplayHoverPause:!0,autoplayTimeout:6E3,autoHeight:!0,autoplayButton:!1,navPosition:"bottom",autoplayButtonOutput:!1,prevButton:a.querySelector(".customize-controls li.prev"),nextButton:a.querySelector(".customize-controls li.next"),navItems:a.querySelectorAll(".customize-nav button")};
a.mouseDrag=window.isXS||window.isS||window.isM?!0:!1;var c=tns(a);d.sliders.push(c);a=c.getInfo();a.nextButton.addEventListener("keyup",function(e){if(13===e.keyCode||13===e.which)c.pause(),c.goTo("next"),c.play()});a.prevButton.addEventListener("keyup",function(e){if(13===e.keyCode||13===e.which)c.pause(),c.goTo("prev"),sliderp.play()})})},resized:amznbase.debounce(function(){amznbase.isBPChanged()&&heroCarousel&&(heroCarousel.sliders.forEach(function(d){d.destroy()}),heroCarousel.sliders=[],heroCarousel.initializeTinySlider())},
250)};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".hero-slider")&&heroCarousel.init()});
(function(){var d={init:function(){this.initUI()},initUI:function(){var a=this,b=document.querySelectorAll(".table-component__regular");b.forEach(function(c){var e=c.querySelectorAll("table tr:first-child th");e&&2>e.length?(e=c.querySelectorAll("table tr:first-child td"))&&3<e.length&&c.classList.add("three-up"):e&&3<e.length-1&&c.classList.add("three-up");767<window.innerWidth&&a.addEqualColumnWidth(c)});window.addEventListener("resize",amznbase.debounce(function(){b.forEach(function(c){767<window.innerWidth?
a.addEqualColumnWidth(c):(c.querySelectorAll("table th").forEach(function(e){e.removeAttribute("style")}),c.querySelectorAll("table td").forEach(function(e){e.removeAttribute("style")}))})},0))},addEqualColumnWidth:function(a){if(a&&a.classList&&a.classList.contains("equalColumnWidth")){var b=a.querySelector("table tr:first-child").childElementCount;if(b){var c=parseFloat((100/b).toFixed(4));a.querySelectorAll("table th").forEach(function(e){e.style.width=c+"%"});a.querySelectorAll("table td").forEach(function(e){e.style.width=
c+"%"})}}}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".table-component__regular")&&d.init()})})();
!function(d,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):(d=d||self).SimpleBar=a()}(this,function(){function d(l,p){return l(p={exports:{}},p.exports),p.exports}function a(l,p,r){function v(ta){var fb=U,ec=da;return U=da=void 0,Ca=ta,sa=l.apply(ec,fb)}function D(ta){var fb=ta-Ea;return void 0===Ea||fb>=p||0>fb||va&&ta-Ca>=ha}function w(){var ta=Xb.Date.now();if(D(ta))return L(ta);var fb=setTimeout,ec=p-(ta-Ea);ta=va?ob(ec,
ha-(ta-Ca)):ec;ka=fb(w,ta)}function L(ta){return ka=void 0,Oa&&U?v(ta):(U=da=void 0,sa)}function I(){var ta=Xb.Date.now(),fb=D(ta);if(U=arguments,da=this,Ea=ta,fb){if(void 0===ka)return ta=Ea,Ca=ta,ka=setTimeout(w,p),Ma?v(ta):sa;if(va)return ka=setTimeout(w,p),v(Ea)}return void 0===ka&&(ka=setTimeout(w,p)),sa}var U,da,ha,sa,ka,Ea,Ca=0,Ma=!1,va=!1,Oa=!0;if("function"!=typeof l)throw new TypeError("Expected a function");return p=c(p)||0,b(r)&&(Ma=!!r.leading,ha=(va="maxWait"in r)?me(c(r.maxWait)||0,
p):ha,Oa="trailing"in r?!!r.trailing:Oa),I.cancel=function(){void 0!==ka&&clearTimeout(ka);Ca=0;U=Ea=da=ka=void 0},I.flush=function(){return void 0===ka?sa:L(Xb.Date.now())},I}function b(l){var p=typeof l;return!!l&&("object"==p||"function"==p)}function c(l){if("number"==typeof l)return l;if("symbol"==typeof l||l&&"object"==typeof l&&"[object Symbol]"==Gc.call(l))return NaN;b(l)&&(l="function"==typeof l.valueOf?l.valueOf():l,l=b(l)?l+"":l);if("string"!=typeof l)return 0===l?l:+l;l=l.replace(oa,"");
var p=kc.test(l);return p||Rb.test(l)?Zd(l.slice(2),p?2:8):Ec.test(l)?NaN:+l}function e(l){var p=typeof l;return!!l&&("object"==p||"function"==p)}function f(l){if("number"==typeof l)return l;if("symbol"==typeof l||l&&"object"==typeof l&&"[object Symbol]"==le.call(l))return NaN;e(l)&&(l="function"==typeof l.valueOf?l.valueOf():l,l=e(l)?l+"":l);if("string"!=typeof l)return 0===l?l:+l;l=l.replace(cb,"");var p=zd.test(l);return p||Pd.test(l)?Sb(l.slice(2),p?2:8):Hb.test(l)?NaN:+l}function g(l){var p=
-1,r=l?l.length:0;for(this.clear();++p<r;){var v=l[p];this.set(v[0],v[1])}}function h(l){var p=-1,r=l?l.length:0;for(this.clear();++p<r;){var v=l[p];this.set(v[0],v[1])}}function k(l){var p=-1,r=l?l.length:0;for(this.clear();++p<r;){var v=l[p];this.set(v[0],v[1])}}function m(l,p){for(var r,v,D=l.length;D--;)if((r=l[D][0])===(v=p)||r!=r&&v!=v)return D;return-1}function n(l){return!(!y(l)||(p=l,ye&&ye in p))&&(function(r){r=y(r)?Od.call(r):"";return"[object Function]"==r||"[object GeneratorFunction]"==
r}(l)||function(r){var v=!1;if(null!=r&&"function"!=typeof r.toString)try{v=!!(r+"")}catch(D){}return v}(l)?ge:wd).test(function(r){if(null!=r){try{return Vd.call(r)}catch(v){}return r+""}return""}(l));var p}function t(l,p){var r;l=l.__data__;return("string"==(r=typeof p)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==p:null===p)?l["string"==typeof p?"string":"hash"]:l.map}function u(l,p){l=null==l?void 0:l[p];return n(l)?l:void 0}function x(l,p){if("function"!=typeof l||p&&"function"!=typeof p)throw new TypeError("Expected a function");
var r=function(){var v=arguments,D=p?p.apply(this,v):v[0],w=r.cache;if(w.has(D))return w.get(D);v=l.apply(this,v);return r.cache=w.set(D,v),v};return r.cache=new (x.Cache||k),r}function y(l){var p=typeof l;return!!l&&("object"==p||"function"==p)}function B(l){for(var p=[],r=1;r<arguments.length;r++)p[r-1]=arguments[r];return p.reduce(function(v,D){return v+(parseFloat(l["border-"+D+"-width"])||0)},0)}function K(){if(null===Kc){if("undefined"==typeof document)return Kc=0;var l=document.body,p=document.createElement("div");
p.classList.add("simplebar-hide-scrollbar");l.appendChild(p);var r=p.getBoundingClientRect().right;l.removeChild(p);Kc=r}return Kc}function E(l){return l&&l.ownerDocument&&l.ownerDocument.defaultView?l.ownerDocument.defaultView:window}function A(l){return l&&l.ownerDocument?l.ownerDocument:document}var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},M=function(l){return l&&l.Math==Math&&l},J=M("object"==
typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof N&&N)||Function("return this")(),H=function(l){try{return!!l()}catch(p){return!0}},ba=!H(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),W={}.propertyIsEnumerable,V=Object.getOwnPropertyDescriptor,ca=V&&!W.call({1:2},1)?function(l){l=V(this,l);return!!l&&l.enumerable}:W,aa=function(l,p){return{enumerable:!(1&l),configurable:!(2&l),writable:!(4&l),
value:p}},ja={}.toString,G=function(l){return ja.call(l).slice(8,-1)},P="".split,Y=H(function(){return!Object("z").propertyIsEnumerable(0)})?function(l){return"String"==G(l)?P.call(l,""):Object(l)}:Object,ea=function(l){if(null==l)throw TypeError("Can't call method on "+l);return l},S=function(l){return"object"==typeof l?null!==l:"function"==typeof l},na=function(l,p){if(!S(l))return l;var r,v;if(p&&"function"==typeof(r=l.toString)&&!S(v=r.call(l))||"function"==typeof(r=l.valueOf)&&!S(v=r.call(l))||
!p&&"function"==typeof(r=l.toString)&&!S(v=r.call(l)))return v;throw TypeError("Can't convert object to primitive value");},ua={}.hasOwnProperty,ma=function(l,p){return ua.call(l,p)},z=J.document,T=S(z)&&S(z.createElement),F=!ba&&!H(function(){return 7!=Object.defineProperty(T?z.createElement("div"):{},"a",{get:function(){return 7}}).a}),Q=Object.getOwnPropertyDescriptor,ia=ba?Q:function(l,p){if(l=Y(ea(l)),p=na(p,!0),F)try{return Q(l,p)}catch(r){}if(ma(l,p))return aa(!ca.call(l,p),l[p])},R=function(l){if(!S(l))throw TypeError(String(l)+
" is not an object");return l},Z=Object.defineProperty,za={f:ba?Z:function(l,p,r){if(R(l),p=na(p,!0),R(r),F)try{return Z(l,p,r)}catch(v){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(l[p]=r.value),l}},la=ba?function(l,p,r){return za.f(l,p,aa(1,r))}:function(l,p,r){return l[p]=r,l},Ia=function(l,p){try{la(J,l,p)}catch(r){J[l]=p}return p},Ja=d(function(l){var p=J["__core-js_shared__"]||Ia("__core-js_shared__",{});(l.exports=function(r,v){return p[r]||(p[r]=
void 0!==v?v:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"\u00a9 2019 Denis Pushkarev (zloirock.ru)"})}),Da=Ja("native-function-to-string",Function.toString),fa=J.WeakMap,Ga="function"==typeof fa&&/native code/.test(Da.call(fa)),zb=0,hb=Math.random(),rb=function(l){return"Symbol("+String(void 0===l?"":l)+")_"+(++zb+hb).toString(36)},Qb=Ja("keys"),Ab=function(l){return Qb[l]||(Qb[l]=rb(l))},sb={},gc=J.WeakMap;if(Ga){var mc=new gc,jd=mc.get,Ic=mc.has,ra=mc.set;var Qa=function(l,
p){return ra.call(mc,l,p),p};var jb=function(l){return jd.call(mc,l)||{}};var gb=function(l){return Ic.call(mc,l)}}else{var wb=Ab("state");sb[wb]=!0;Qa=function(l,p){return la(l,wb,p),p};jb=function(l){return ma(l,wb)?l[wb]:{}};gb=function(l){return ma(l,wb)}}var Za={set:Qa,get:jb,has:gb,enforce:function(l){return gb(l)?jb(l):Qa(l,{})},getterFor:function(l){return function(p){var r;if(!S(p)||(r=jb(p)).type!==l)throw TypeError("Incompatible receiver, "+l+" required");return r}}},xb=d(function(l){var p=
Za.get,r=Za.enforce,v=String(Da).split("toString");Ja("inspectSource",function(D){return Da.call(D)});(l.exports=function(D,w,L,I){var U=!!I&&!!I.unsafe,da=!!I&&!!I.enumerable;I=!!I&&!!I.noTargetGet;"function"==typeof L&&("string"!=typeof w||ma(L,"name")||la(L,"name",w),r(L).source=v.join("string"==typeof w?w:""));D!==J?(U?!I&&D[w]&&(da=!0):delete D[w],da?D[w]=L:la(D,w,L)):da?D[w]=L:Ia(w,L)})(Function.prototype,"toString",function(){return"function"==typeof this&&p(this).source||Da.call(this)})}),
Gb=function(l){return"function"==typeof l?l:void 0},Pb=function(l,p){return 2>arguments.length?Gb(J[l])||Gb(J[l]):J[l]&&J[l][p]||J[l]&&J[l][p]},fc=Math.ceil,kb=Math.floor,Va=function(l){return isNaN(l=+l)?0:(0<l?kb:fc)(l)},qb=Math.min,yb=function(l){return 0<l?qb(Va(l),9007199254740991):0},xc=Math.max,Vb=Math.min,md=function(l){return function(p,r,v){var D;p=Y(ea(p));var w=yb(p.length);v=Va(v);v=0>v?xc(v+w,0):Vb(v,w);if(l&&r!=r)for(;w>v;){if((D=p[v++])!=D)return!0}else for(;w>v;v++)if((l||v in p)&&
p[v]===r)return l||v||0;return!l&&-1}},De={includes:md(!0),indexOf:md(!1)}.indexOf,qe=function(l,p){var r;l=Y(ea(l));var v=0,D=[];for(r in l)!ma(sb,r)&&ma(l,r)&&D.push(r);for(;p.length>v;)ma(l,r=p[v++])&&(~De(D,r)||D.push(r));return D},Cd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ae=Cd.concat("length","prototype"),ie={f:Object.getOwnPropertyNames||function(l){return qe(l,Ae)}},Ud=Object.getOwnPropertySymbols,Wd=Pb("Reflect","ownKeys")||
function(l){var p=ie.f(R(l));return Ud?p.concat(Ud(l)):p},Ce=/#|\.prototype\./,dc=function(l,p){l=Td[he(l)];return l==oe||l!=nd&&("function"==typeof p?H(p):!!p)},he=dc.normalize=function(l){return String(l).replace(Ce,".").toLowerCase()},Td=dc.data={},nd=dc.NATIVE="N",oe=dc.POLYFILL="P",vc=function(l,p){var r,v,D,w,L,I=l.target,U=l.global,da=l.stat;if(r=U?J:da?J[I]||Ia(I,{}):(J[I]||{}).prototype)for(v in p){if(w=p[v],D=l.noTargetGet?(L=ia(r,v))&&L.value:r[v],!dc(U?v:I+(da?".":"#")+v,l.forced)&&void 0!==
D){if(typeof w==typeof D)continue;for(var ha=w,sa=D,ka=Wd(sa),Ea=za.f,Ca=ia,Ma=0;Ma<ka.length;Ma++){var va=ka[Ma];ma(ha,va)||Ea(ha,va,Ca(sa,va))}}(l.sham||D&&D.sham)&&la(w,"sham",!0);xb(r,v,w,l)}},Yd=function(l){if("function"!=typeof l)throw TypeError(String(l)+" is not a function");return l},ac=function(l,p,r){if(Yd(l),void 0===p)return l;switch(r){case 0:return function(){return l.call(p)};case 1:return function(v){return l.call(p,v)};case 2:return function(v,D){return l.call(p,v,D)};case 3:return function(v,
D,w){return l.call(p,v,D,w)}}return function(){return l.apply(p,arguments)}},cd=Array.isArray||function(l){return"Array"==G(l)},wc=!!Object.getOwnPropertySymbols&&!H(function(){return!String(Symbol())}),Gd=J.Symbol,Hd=Ja("wks"),Db=function(l){return Hd[l]||(Hd[l]=wc&&Gd[l]||(wc?Gd:rb)("Symbol."+l))},Sd=Db("species"),Bd=function(l,p){var r;return cd(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!cd(r.prototype)?S(r)&&null===(r=r[Sd])&&(r=void 0):r=void 0),new (void 0===r?Array:r)(0===p?0:p)},
Be=[].push,Fb=function(l){var p=1==l,r=2==l,v=3==l,D=4==l,w=6==l,L=5==l||w;return function(I,U,da,ha){var sa,ka,Ea=Object(ea(I)),Ca=Y(Ea);U=ac(U,da,3);da=yb(Ca.length);var Ma=0;ha=ha||Bd;for(I=p?ha(I,da):r?ha(I,0):void 0;da>Ma;Ma++)if((L||Ma in Ca)&&(ka=U(sa=Ca[Ma],Ma,Ea),l))if(p)I[Ma]=ka;else if(ka)switch(l){case 3:return!0;case 5:return sa;case 6:return Ma;case 2:Be.call(I,sa)}else if(D)return!1;return w?-1:v||D?D:I}},dd=Fb(0);Fb(1);var Rc=Fb(2);Fb(3);Fb(4);var Ee=Fb(5),Fe=Fb(6),ue=function(l,p){var r=
[][l];return!r||!H(function(){r.call(null,p||function(){throw 1;},1)})},fd=ue("forEach")?function(l){return dd(this,l,1<arguments.length?arguments[1]:void 0)}:[].forEach;vc({target:"Array",proto:!0,forced:[].forEach!=fd},{forEach:fd});var gd={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,
NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Qd;for(Qd in gd){var pe=J[Qd],rd=pe&&pe.prototype;if(rd&&rd.forEach!==fd)try{la(rd,"forEach",fd)}catch(l){rd.forEach=fd}}var ub=!("undefined"==typeof window||!window.document||!window.document.createElement),mb=Db("species");vc({target:"Array",proto:!0,forced:!function(l){return!H(function(){var p=
[];return(p.constructor={})[mb]=function(){return{foo:1}},1!==p[l](Boolean).foo})}("filter")},{filter:function(l){return Rc(this,l,1<arguments.length?arguments[1]:void 0)}});var Ub=Object.keys||function(l){return qe(l,Cd)},Fa=ba?Object.defineProperties:function(l,p){R(l);for(var r,v=Ub(p),D=v.length,w=0;D>w;)za.f(l,r=v[w++],p[r]);return l},Cb=Pb("document","documentElement"),ve=Ab("IE_PROTO"),Uc=function(){},hc=function(){var l=T?z.createElement("iframe"):{};var p=Cd.length;l.style.display="none";
Cb.appendChild(l);l.src="javascript:";(l=l.contentWindow.document).open();l.write("\x3cscript\x3edocument.F\x3dObject\x3c/script\x3e");l.close();for(hc=l.F;p--;)delete hc.prototype[Cd[p]];return hc()},we=Object.create||function(l,p){var r;return null!==l?(Uc.prototype=R(l),r=new Uc,Uc.prototype=null,r[ve]=l):r=hc(),void 0===p?r:Fa(r,p)};sb[ve]=!0;var jc=Db("unscopables"),tc=Array.prototype;null==tc[jc]&&la(tc,jc,we(null));var hd,bb,Ed,qc={},se=!H(function(){function l(){}return l.prototype.constructor=
null,Object.getPrototypeOf(new l)!==l.prototype}),Bc=Ab("IE_PROTO"),Ge=Object.prototype,Ld=se?Object.getPrototypeOf:function(l){return l=Object(ea(l)),ma(l,Bc)?l[Bc]:"function"==typeof l.constructor&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?Ge:null},ae=Db("iterator"),xe=!1;[].keys&&("next"in(Ed=[].keys())?(bb=Ld(Ld(Ed)))!==Object.prototype&&(hd=bb):xe=!0);null==hd&&(hd={});ma(hd,ae)||la(hd,ae,function(){return this});var Sa=hd,pc=xe,Aa=za.f,be=Db("toStringTag"),Md=function(l,
p,r){l&&!ma(l=r?l:l.prototype,be)&&Aa(l,be,{configurable:!0,value:p})},Nd=function(){return this},bc=Object.setPrototypeOf||("__proto__"in{}?function(){var l,p=!1,r={};try{(l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),p=r instanceof Array}catch(v){}return function(v,D){R(v);if(!S(D)&&null!==D)throw TypeError("Can't set "+String(D)+" as a prototype");return p?l.call(v,D):v.__proto__=D,v}}():void 0),Fc=Db("iterator"),re=function(){return this},cc=function(l,p,r,v,
D,w,L){!function(va,Oa,ta){Oa+=" Iterator";va.prototype=we(Sa,{next:aa(1,ta)});Md(va,Oa,!1);qc[Oa]=Nd}(r,p,v);var I,U,da;v=function(va){if(va===D&&Ca)return Ca;if(!pc&&va in ka)return ka[va];switch(va){case "keys":case "values":case "entries":return function(){return new r(this,va)}}return function(){return new r(this)}};var ha=p+" Iterator",sa=!1,ka=l.prototype,Ea=ka[Fc]||ka["@@iterator"]||D&&ka[D],Ca=!pc&&Ea||v(D),Ma="Array"==p&&ka.entries||Ea;if(Ma&&(I=Ld(Ma.call(new l)),Sa!==Object.prototype&&
I.next&&(Ld(I)!==Sa&&(bc?bc(I,Sa):"function"!=typeof I[Fc]&&la(I,Fc,re)),Md(I,ha,!0))),"values"==D&&Ea&&"values"!==Ea.name&&(sa=!0,Ca=function(){return Ea.call(this)}),ka[Fc]!==Ca&&la(ka,Fc,Ca),qc[p]=Ca,D)if(U={values:v("values"),keys:w?Ca:v("keys"),entries:v("entries")},L)for(da in U)!pc&&!sa&&da in ka||xb(ka,da,U[da]);else vc({target:p,proto:!0,forced:pc||sa},U);return U},Pa=Za.set,Eb=Za.getterFor("Array Iterator"),ib=cc(Array,"Array",function(l,p){Pa(this,{type:"Array Iterator",target:Y(ea(l)),
index:0,kind:p})},function(){var l=Eb(this),p=l.target,r=l.kind,v=l.index++;return!p||v>=p.length?(l.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:v,done:!1}:"values"==r?{value:p[v],done:!1}:{value:[v,p[v]],done:!1}},"values");qc.Arguments=qc.Array;tc[jc].keys=!0;tc[jc].values=!0;tc[jc].entries=!0;var pb=Object.assign,qa=!pb||H(function(){var l={},p={},r=Symbol();return l[r]=7,"abcdefghijklmnopqrst".split("").forEach(function(v){p[v]=v}),7!=pb({},l)[r]||"abcdefghijklmnopqrst"!=Ub(pb({},p)).join("")})?
function(l,p){for(var r=Object(ea(l)),v=arguments.length,D=1;v>D;)for(var w,L=Y(arguments[D++]),I=Ud?Ub(L).concat(Ud(L)):Ub(L),U=I.length,da=0;U>da;)w=I[da++],ba&&!ca.call(L,w)||(r[w]=L[w]);return r}:pb;vc({target:"Object",stat:!0,forced:Object.assign!==qa},{assign:qa});var fe=Db("toStringTag"),He="Arguments"==G(function(){return arguments}()),La=function(l){var p;if(void 0===l)var r="Undefined";else{if(null===l)var v="Null";else{a:{var D=l=Object(l);try{v=D[fe];break a}catch(w){}v=void 0}v="string"==
typeof(r=v)?r:He?G(l):"Object"==(p=G(l))&&"function"==typeof l.callee?"Arguments":p}r=v}return r},wa={};wa[Db("toStringTag")]="z";var Zc="[object z]"!==String(wa)?function(){return"[object "+La(this)+"]"}:wa.toString,Wc=Object.prototype;Zc!==Wc.toString&&xb(Wc,"toString",Zc,{unsafe:!0});var yd=/^[\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff][\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff]*/,
Ba=/[\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff][\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff]*$/,xa=function(l){return function(p){p=String(ea(p));return 1&l&&(p=p.replace(yd,"")),2&l&&(p=p.replace(Ba,"")),p}},ab={start:xa(1),end:xa(2),trim:xa(3)}.trim,Ka=J.parseInt,nb=/^[+-]?0[Xx]/,vb=8!==Ka("\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff08")||
22!==Ka("\t\n\x0B\f\r  \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff0x16")?function(l,p){l=ab(String(l));return Ka(l,p>>>0||(nb.test(l)?16:10))}:Ka;vc({global:!0,forced:parseInt!=vb},{parseInt:vb});var Ha=function(l){return function(p,r){var v,D;p=String(ea(p));r=Va(r);var w=p.length;return 0>r||r>=w?l?"":void 0:55296>(v=p.charCodeAt(r))||56319<v||r+1===w||56320>(D=p.charCodeAt(r+1))||57343<D?l?p.charAt(r):v:l?p.slice(r,r+2):D-56320+(v-
55296<<10)+65536}};Ha(!1);var Cc=Ha(!0),ee=Za.set,yc=Za.getterFor("String Iterator");cc(String,"String",function(l){ee(this,{type:"String Iterator",string:String(l),index:0})},function(){var l,p=yc(this),r=p.string,v=p.index;return v>=r.length?{value:void 0,done:!0}:(l=Cc(r,v),p.index+=l.length,{value:l,done:!1})});var Jb=function(l,p,r){for(var v in p)xb(l,v,p[v],r);return l},Dd=!H(function(){return Object.isExtensible(Object.preventExtensions({}))}),$a=d(function(l){var p=za.f,r=rb("meta"),v=0,
D=Object.isExtensible||function(){return!0},w=function(I){p(I,r,{value:{objectID:"O"+ ++v,weakData:{}}})},L=l.exports={REQUIRED:!1,fastKey:function(I,U){if(!S(I))return"symbol"==typeof I?I:("string"==typeof I?"S":"P")+I;if(!ma(I,r)){if(!D(I))return"F";if(!U)return"E";w(I)}return I[r].objectID},getWeakData:function(I,U){if(!ma(I,r)){if(!D(I))return!0;if(!U)return!1;w(I)}return I[r].weakData},onFreeze:function(I){return Dd&&L.REQUIRED&&D(I)&&!ma(I,r)&&w(I),I}};sb[r]=!0}),Kb=($a.REQUIRED,$a.fastKey,
$a.getWeakData,$a.onFreeze,Db("iterator")),Yb=Array.prototype,Ac=Db("iterator"),Zb=d(function(l){var p=function(r,v){this.stopped=r;this.result=v};(l.exports=function(r,v,D,w,L){var I,U;v=ac(v,D,w?2:1);if(L)L=r;else{L=null!=r?r[Ac]||r["@@iterator"]||qc[La(r)]:void 0;if("function"!=typeof L)throw TypeError("Target is not iterable");if(void 0!==L&&(qc.Array===L||Yb[Kb]===L)){var da=0;for(L=yb(r.length);L>da;da++)if((I=w?v(R(U=r[da])[0],U[1]):v(r[da]))&&I instanceof p)return I;return new p(!1)}L=L.call(r)}for(;!(U=
L.next()).done;){r=L;D=v;U=U.value;try{da=w?D(R(U)[0],U[1]):D(U)}catch(ha){throw w=r.return,void 0!==w&&R(w.call(r)),ha;}if((I=da)&&I instanceof p)return I}return new p(!1)}).stop=function(r){return new p(!0,r)}}),nc=function(l,p,r){if(!(l instanceof p))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return l},oc=Db("iterator"),Bb=!1;try{var ne=0,rc={next:function(){return{done:!!ne++}},return:function(){Bb=!0}};rc[oc]=function(){return this};Array.from(rc,function(){throw 2;})}catch(l){}var zc=
function(l,p,r,v,D){var w=J[l],L=w&&w.prototype,I=w,U=v?"set":"add",da={},ha=function(va){var Oa=L[va];xb(L,va,"add"==va?function(ta){return Oa.call(this,0===ta?0:ta),this}:"delete"==va?function(ta){return!(D&&!S(ta))&&Oa.call(this,0===ta?0:ta)}:"get"==va?function(ta){return D&&!S(ta)?void 0:Oa.call(this,0===ta?0:ta)}:"has"==va?function(ta){return!(D&&!S(ta))&&Oa.call(this,0===ta?0:ta)}:function(ta,fb){return Oa.call(this,0===ta?0:ta,fb),this})};if(dc(l,"function"!=typeof w||!(D||L.forEach&&!H(function(){(new w).entries().next()}))))I=
r.getConstructor(p,l,v,U),$a.REQUIRED=!0;else if(dc(l,!0)){var sa=new I,ka=sa[U](D?{}:-0,1)!=sa,Ea=H(function(){sa.has(1)}),Ca=function(va,Oa){if(!Oa&&!Bb)return!1;var ta=!1;try{Oa={},Oa[oc]=function(){return{next:function(){return{done:ta=!0}}}},va(Oa)}catch(fb){}return ta}(function(va){new w(va)}),Ma=!D&&H(function(){for(var va=new w,Oa=5;Oa--;)va[U](Oa,Oa);return!va.has(-0)});Ca||((I=p(function(va,Oa){nc(va,I,l);var ta=new w,fb=I,ec,Ne;va=(bc&&"function"==typeof(ec=va.constructor)&&ec!==fb&&S(Ne=
ec.prototype)&&Ne!==fb.prototype&&bc(ta,Ne),ta);return null!=Oa&&Zb(Oa,va[U],va,v),va})).prototype=L,L.constructor=I);(Ea||Ma)&&(ha("delete"),ha("has"),v&&ha("get"));(Ma||ka)&&ha(U);D&&L.clear&&delete L.clear}return da[l]=I,vc({global:!0,forced:I!=w},da),Md(I,l),D||r.setStrong(I,l,v),I},$b=$a.getWeakData,Ta=Za.set,ld=Za.getterFor,Je=0,db=function(l){return l.frozen||(l.frozen=new Qc)},Qc=function(){this.entries=[]},lb=function(l,p){return Ee(l.entries,function(r){return r[0]===p})};Qc.prototype={get:function(l){if(l=
lb(this,l))return l[1]},has:function(l){return!!lb(this,l)},set:function(l,p){var r=lb(this,l);r?r[1]=p:this.entries.push([l,p])},delete:function(l){var p=Fe(this.entries,function(r){return r[0]===l});return~p&&this.entries.splice(p,1),!!~p}};var Na={getConstructor:function(l,p,r,v){var D=l(function(I,U){nc(I,D,p);Ta(I,{type:p,id:Je++,frozen:void 0});null!=U&&Zb(U,I[v],I,r)}),w=ld(p),L=function(I,U,da){var ha=w(I),sa=$b(R(U),!0);return!0===sa?db(ha).set(U,da):sa[ha.id]=da,I};return Jb(D.prototype,
{delete:function(I){var U=w(this);if(!S(I))return!1;var da=$b(I);return!0===da?db(U).delete(I):da&&ma(da,U.id)&&delete da[U.id]},has:function(I){var U=w(this);if(!S(I))return!1;var da=$b(I);return!0===da?db(U).has(I):da&&ma(da,U.id)}}),Jb(D.prototype,r?{get:function(I){var U=w(this);if(S(I)){var da=$b(I);return!0===da?db(U).get(I):da?da[U.id]:void 0}},set:function(I,U){return L(this,I,U)}}:{add:function(I){return L(this,I,!0)}}),D}},Xd=(d(function(l){var p=Za.enforce,r=!J.ActiveXObject&&"ActiveXObject"in
J,v=Object.isExtensible,D=function(ha){return function(){return ha(this,arguments.length?arguments[0]:void 0)}};l=l.exports=zc("WeakMap",D,Na,!0,!0);if(Ga&&r){var w=Na.getConstructor(D,"WeakMap",!0);$a.REQUIRED=!0;r=l.prototype;var L=r.delete,I=r.has,U=r.get,da=r.set;Jb(r,{delete:function(ha){if(S(ha)&&!v(ha)){var sa=p(this);return sa.frozen||(sa.frozen=new w),L.call(this,ha)||sa.frozen.delete(ha)}return L.call(this,ha)},has:function(ha){if(S(ha)&&!v(ha)){var sa=p(this);return sa.frozen||(sa.frozen=
new w),I.call(this,ha)||sa.frozen.has(ha)}return I.call(this,ha)},get:function(ha){if(S(ha)&&!v(ha)){var sa=p(this);return sa.frozen||(sa.frozen=new w),I.call(this,ha)?U.call(this,ha):sa.frozen.get(ha)}return U.call(this,ha)},set:function(ha,sa){if(S(ha)&&!v(ha)){var ka=p(this);ka.frozen||(ka.frozen=new w);I.call(this,ha)?da.call(this,ha,sa):ka.frozen.set(ha,sa)}else da.call(this,ha,sa);return this}})}}),Db("iterator")),Jc=Db("toStringTag"),Fd=ib.values,lc;for(lc in gd){var uc=J[lc],Mb=uc&&uc.prototype;
if(Mb){if(Mb[Xd]!==Fd)try{la(Mb,Xd,Fd)}catch(l){Mb[Xd]=Fd}if(Mb[Jc]||la(Mb,Jc,lc),gd[lc])for(var ic in ib)if(Mb[ic]!==ib[ic])try{la(Mb,ic,ib[ic])}catch(l){Mb[ic]=ib[ic]}}}var oa=/^\s+|\s+$/g,Ec=/^[-+]0x[0-9a-f]+$/i,kc=/^0b[01]+$/i,Rb=/^0o[0-7]+$/i,Zd=parseInt,Id="object"==typeof self&&self&&self.Object===Object&&self,Xb="object"==typeof N&&N&&N.Object===Object&&N||Id||Function("return this")(),Gc=Object.prototype.toString,me=Math.max,ob=Math.min,sc=function(l,p,r){var v=!0,D=!0;if("function"!=typeof l)throw new TypeError("Expected a function");
return b(r)&&(v="leading"in r?!!r.leading:v,D="trailing"in r?!!r.trailing:D),a(l,p,{leading:v,maxWait:p,trailing:D})},cb=/^\s+|\s+$/g,Hb=/^[-+]0x[0-9a-f]+$/i,zd=/^0b[01]+$/i,Pd=/^0o[0-7]+$/i,Sb=parseInt,Ad="object"==typeof self&&self&&self.Object===Object&&self,Lc="object"==typeof N&&N&&N.Object===Object&&N||Ad||Function("return this")(),le=Object.prototype.toString,pd=Math.max,qd=Math.min,Yc=function(l,p,r){function v(ta){var fb=U,ec=da;return U=da=void 0,Ca=ta,sa=l.apply(ec,fb)}function D(ta){var fb=
ta-Ea;return void 0===Ea||fb>=p||0>fb||va&&ta-Ca>=ha}function w(){var ta=Lc.Date.now();if(D(ta))return L(ta);var fb=setTimeout,ec=p-(ta-Ea);ta=va?qd(ec,ha-(ta-Ca)):ec;ka=fb(w,ta)}function L(ta){return ka=void 0,Oa&&U?v(ta):(U=da=void 0,sa)}function I(){var ta=Lc.Date.now(),fb=D(ta);if(U=arguments,da=this,Ea=ta,fb){if(void 0===ka)return ta=Ea,Ca=ta,ka=setTimeout(w,p),Ma?v(ta):sa;if(va)return ka=setTimeout(w,p),v(Ea)}return void 0===ka&&(ka=setTimeout(w,p)),sa}var U,da,ha,sa,ka,Ea,Ca=0,Ma=!1,va=!1,
Oa=!0;if("function"!=typeof l)throw new TypeError("Expected a function");return p=f(p)||0,e(r)&&(Ma=!!r.leading,ha=(va="maxWait"in r)?pd(f(r.maxWait)||0,p):ha,Oa="trailing"in r?!!r.trailing:Oa),I.cancel=function(){void 0!==ka&&clearTimeout(ka);Ca=0;U=Ea=da=ka=void 0},I.flush=function(){return void 0===ka?sa:L(Lc.Date.now())},I},wd=/^\[object .+?Constructor\]$/,xd="object"==typeof self&&self&&self.Object===Object&&self,td="object"==typeof N&&N&&N.Object===Object&&N||xd||Function("return this")(),ke=
Array.prototype,kd=Function.prototype,Rd=Object.prototype,de=td["__core-js_shared__"],ye=function(){var l=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Vd=kd.toString,bd=Rd.hasOwnProperty,Od=Rd.toString,ge=RegExp("^"+Vd.call(bd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$\x26").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=ke.splice,Jd=u(td,"Map"),Xa=u(Object,"create");g.prototype.clear=function(){this.__data__=Xa?Xa(null):{}};g.prototype.delete=
function(l){return this.has(l)&&delete this.__data__[l]};g.prototype.get=function(l){var p=this.__data__;return Xa?(l=p[l],"__lodash_hash_undefined__"===l?void 0:l):bd.call(p,l)?p[l]:void 0};g.prototype.has=function(l){var p=this.__data__;return Xa?void 0!==p[l]:bd.call(p,l)};g.prototype.set=function(l,p){return this.__data__[l]=Xa&&void 0===p?"__lodash_hash_undefined__":p,this};h.prototype.clear=function(){this.__data__=[]};h.prototype.delete=function(l){var p=this.__data__;l=m(p,l);return!(0>l)&&
(l==p.length-1?p.pop():je.call(p,l,1),!0)};h.prototype.get=function(l){var p=this.__data__;l=m(p,l);return 0>l?void 0:p[l][1]};h.prototype.has=function(l){return-1<m(this.__data__,l)};h.prototype.set=function(l,p){var r=this.__data__,v=m(r,l);return 0>v?r.push([l,p]):r[v][1]=p,this};k.prototype.clear=function(){this.__data__={hash:new g,map:new (Jd||h),string:new g}};k.prototype.delete=function(l){return t(this,l).delete(l)};k.prototype.get=function(l){return t(this,l).get(l)};k.prototype.has=function(l){return t(this,
l).has(l)};k.prototype.set=function(l,p){return t(this,l).set(l,p),this};x.Cache=k;var ze=function(){function l(p,r){var v=-1;return p.some(function(D,w){return D[0]===r&&(v=w,!0)}),v}return"undefined"!=typeof Map?Map:function(){function p(){this.__entries__=[]}return Object.defineProperty(p.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),p.prototype.get=function(r){r=l(this.__entries__,r);return(r=this.__entries__[r])&&r[1]},p.prototype.set=function(r,
v){var D=l(this.__entries__,r);~D?this.__entries__[D][1]=v:this.__entries__.push([r,v])},p.prototype.delete=function(r){var v=this.__entries__;r=l(v,r);~r&&v.splice(r,1)},p.prototype.has=function(r){return!!~l(this.__entries__,r)},p.prototype.clear=function(){this.__entries__.splice(0)},p.prototype.forEach=function(r,v){void 0===v&&(v=null);for(var D=0,w=this.__entries__;D<w.length;D++){var L=w[D];r.call(v,L[1],L[0])}},p}()}(),Ua="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===
document,Ra="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&Math===Math?window:Function("return this")(),Le="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ra):function(l){return setTimeout(function(){return l(Date.now())},1E3/60)},Me="top right bottom left width height size weight".split(" "),ud="undefined"!=typeof MutationObserver,vd=function(){function l(){this.mutationEventsAdded_=this.connected_=
!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=function(p,r){function v(){L&&(L=!1,p());I&&w()}function D(){Le(v)}function w(){var da=Date.now();if(L){if(2>da-U)return;I=!0}else L=!0,I=!1,setTimeout(D,r);U=da}var L=!1,I=!1,U=0;return w}(this.refresh.bind(this),20)}return l.prototype.addObserver=function(p){~this.observers_.indexOf(p)||this.observers_.push(p);this.connected_||this.connect_()},l.prototype.removeObserver=function(p){var r=
this.observers_;p=r.indexOf(p);~p&&r.splice(p,1);!r.length&&this.connected_&&this.disconnect_()},l.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},l.prototype.updateObservers_=function(){var p=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return p.forEach(function(r){return r.broadcastActive()}),0<p.length},l.prototype.connect_=function(){Ua&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",
this.refresh),ud?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},l.prototype.disconnect_=function(){Ua&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),
this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},l.prototype.onTransitionEnd_=function(p){p=p.propertyName;var r=void 0===p?"":p;Me.some(function(v){return!!~r.indexOf(v)})&&this.refresh()},l.getInstance=function(){return this.instance_||(this.instance_=new l),this.instance_},l.instance_=null,l}(),tb=function(l,p){for(var r=0,v=Object.keys(p);r<v.length;r++){var D=v[r];Object.defineProperty(l,
D,{value:p[D],enumerable:!1,writable:!1,configurable:!0})}return l},Vc=function(l){return l&&l.ownerDocument&&l.ownerDocument.defaultView||Ra},Ib={x:0,y:0,width:0,height:0},Wb="undefined"!=typeof SVGGraphicsElement?function(l){return l instanceof Vc(l).SVGGraphicsElement}:function(l){return l instanceof Vc(l).SVGElement&&"function"==typeof l.getBBox},Tc=function(){function l(p){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=p}return l.prototype.isActive=
function(){var p=this.target;if(Ua)if(Wb(p)){var r=p.getBBox();r={x:0,y:0,width:r.width,height:r.height}}else{var v=p.clientWidth,D=p.clientHeight;if(v||D){var w=Vc(p).getComputedStyle(p);r={};for(var L=0,I=["top","right","bottom","left"];L<I.length;L++){var U=I[L];r[U]=parseFloat(w["padding-"+U])||0}var da=r.left+r.right;U=r.top+r.bottom;L=parseFloat(w.width)||0;I=parseFloat(w.height)||0;if("border-box"===w.boxSizing&&(Math.round(L+da)!==v&&(L-=B(w,"left","right")+da),Math.round(I+U)!==D&&(I-=B(w,
"top","bottom")+U)),p!==Vc(p).document.documentElement)p=Math.round(L+da)-v,D=Math.round(I+U)-D,1!==Math.abs(p)&&(L-=p),1!==Math.abs(D)&&(I-=D);r={x:r.left,y:r.top,width:L,height:I}}else r=Ib}else r=Ib;return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},l.prototype.broadcastRect=function(){var p=this.contentRect_;return this.broadcastWidth=p.width,this.broadcastHeight=p.height,p},l}(),Oc=function(l,p){var r,v,D,w,L,I;p=(r=p.x,v=p.y,D=p.width,w=p.height,L="undefined"!=
typeof DOMRectReadOnly?DOMRectReadOnly:Object,I=Object.create(L.prototype),tb(I,{x:r,y:v,width:D,height:w,top:v,right:r+D,bottom:w+v,left:r}),I);tb(this,{target:l,contentRect:p})},Tb=function(){function l(p,r,v){if(this.activeObservations_=[],this.observations_=new ze,"function"!=typeof p)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=p;this.controller_=r;this.callbackCtx_=v}return l.prototype.observe=function(p){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");
if("undefined"!=typeof Element&&Element instanceof Object){if(!(p instanceof Vc(p).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(p)||(r.set(p,new Tc(p)),this.controller_.addObserver(this),this.controller_.refresh())}},l.prototype.unobserve=function(p){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(p instanceof Vc(p).Element))throw new TypeError('parameter 1 is not of type "Element".');
var r=this.observations_;r.has(p)&&(r.delete(p),r.size||this.controller_.removeObserver(this))}},l.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)},l.prototype.gatherActive=function(){var p=this;this.clearActive();this.observations_.forEach(function(r){r.isActive()&&p.activeObservations_.push(r)})},l.prototype.broadcastActive=function(){if(this.hasActive()){var p=this.callbackCtx_,r=this.activeObservations_.map(function(v){return new Oc(v.target,
v.broadcastRect())});this.callback_.call(p,r,p);this.clearActive()}},l.prototype.clearActive=function(){this.activeObservations_.splice(0)},l.prototype.hasActive=function(){return 0<this.activeObservations_.length},l}(),Pc="undefined"!=typeof WeakMap?new WeakMap:new ze,sd=function r(p){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var v=vd.getInstance();v=new Tb(p,v,this);Pc.set(this,
v)};["observe","unobserve","disconnect"].forEach(function(p){sd.prototype[p]=function(){var r;return(r=Pc.get(this))[p].apply(r,arguments)}});var Xc=void 0!==Ra.ResizeObserver?Ra.ResizeObserver:sd,Kc=null,te=null;ub&&window.addEventListener("resize",function(){te!==window.devicePixelRatio&&(te=window.devicePixelRatio,Kc=null)});var Wa=function(p){return function(r,v,D,w){Yd(v);r=Object(ea(r));var L=Y(r),I=yb(r.length),U=p?I-1:0,da=p?-1:1;if(2>D)for(;;){if(U in L){w=L[U];U+=da;break}if(U+=da,p?0>U:
I<=U)throw TypeError("Reduce of empty array with no initial value");}for(;p?0<=U:I>U;U+=da)U in L&&(w=v(w,L[U],U,r));return w}},Ie={left:Wa(!1),right:Wa(!0)}.left;vc({target:"Array",proto:!0,forced:ue("reduce")},{reduce:function(p){return Ie(this,p,arguments.length,1<arguments.length?arguments[1]:void 0)}});var od=za.f,ed=Function.prototype,Lb=ed.toString,ce=/^\s*function ([^ (]*)/;!ba||"name"in ed||od(ed,"name",{configurable:!0,get:function(){try{return Lb.call(this).match(ce)[1]}catch(p){return""}}});
var Dc,id,Sc=function(){var p=R(this),r="";return p.global&&(r+="g"),p.ignoreCase&&(r+="i"),p.multiline&&(r+="m"),p.dotAll&&(r+="s"),p.unicode&&(r+="u"),p.sticky&&(r+="y"),r},Nb=RegExp.prototype.exec,$d=String.prototype.replace,Hc=Nb,Ob=(Dc=/a/,id=/b*/g,Nb.call(Dc,"a"),Nb.call(id,"a"),0!==Dc.lastIndex||0!==id.lastIndex),Kd=void 0!==/()??/.exec("")[1];(Ob||Kd)&&(Hc=function(p){var r,v,D,w;return Kd&&(v=new RegExp("^"+this.source+"$(?!\\s)",Sc.call(this))),Ob&&(r=this.lastIndex),D=Nb.call(this,p),Ob&&
D&&(this.lastIndex=this.global?D.index+D[0].length:r),Kd&&D&&1<D.length&&$d.call(D[0],v,function(){for(w=1;w<arguments.length-2;w++)void 0===arguments[w]&&(D[w]=void 0)}),D});var ad=Hc;vc({target:"RegExp",proto:!0,forced:/./.exec!==ad},{exec:ad});var Ke=Db("species"),q=!H(function(){var p=/./;return p.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(p,"$\x3ca\x3e")}),C=!H(function(){var p=/(?:)/,r=p.exec;p.exec=function(){return r.apply(this,arguments)};p="ab".split(p);return 2!==
p.length||"a"!==p[0]||"b"!==p[1]}),O=function(p,r,v,D){var w=Db(p),L=!H(function(){var ha={};return ha[w]=function(){return 7},7!=""[p](ha)}),I=L&&!H(function(){var ha=!1,sa=/a/;return sa.exec=function(){return ha=!0,null},"split"===p&&(sa.constructor={},sa.constructor[Ke]=function(){return sa}),sa[w](""),!ha});if(!L||!I||"replace"===p&&!q||"split"===p&&!C){var U=/./[w];v=v(w,""[p],function(ha,sa,ka,Ea,Ca){return sa.exec===ad?L&&!Ca?{done:!0,value:U.call(sa,ka,Ea)}:{done:!0,value:ha.call(ka,sa,Ea)}:
{done:!1}});var da=v[1];xb(String.prototype,p,v[0]);xb(RegExp.prototype,w,2==r?function(ha,sa){return da.call(ha,this,sa)}:function(ha){return da.call(ha,this)});D&&la(RegExp.prototype[w],"sham",!0)}},X=function(p,r){var v=p.exec;if("function"==typeof v){p=v.call(p,r);if("object"!=typeof p)throw TypeError("RegExp exec method returned something other than an Object or null");return p}if("RegExp"!==G(p))throw TypeError("RegExp#exec called on incompatible receiver");return ad.call(p,r)};O("match",1,
function(p,r,v){return[function(D){var w=ea(this),L=null==D?void 0:D[p];return void 0!==L?L.call(D,w):(new RegExp(D))[p](String(w))},function(D){var w=v(r,D,this);if(w.done)return w.value;D=R(D);w=String(this);if(!D.global)return X(D,w);var L=D.unicode;D.lastIndex=0;for(var I,U=[],da=0;null!==(I=X(D,w));)I=String(I[0]),U[da]=I,""===I&&(I=yb(D.lastIndex),I+=L?Cc(w,I).length:1,D.lastIndex=I),da++;return 0===da?null:U}]});var pa=Math.max,ya=Math.min,Ya=Math.floor,Mc=/\$([$&'`]|\d\d?|<[^>]*>)/g,Nc=/\$([$&'`]|\d\d?)/g;
O("replace",2,function(p,r,v){function D(w,L,I,U,da,ha){var sa=I+w.length,ka=U.length,Ea=Nc;return void 0!==da&&(da=Object(ea(da)),Ea=Mc),r.call(ha,Ea,function(Ca,Ma){switch(Ma.charAt(0)){case "$":return"$";case "\x26":return w;case "`":return L.slice(0,I);case "'":return L.slice(sa);case "\x3c":Ca=da[Ma.slice(1,-1)];break;default:var va=+Ma;if(0===va)return Ca;if(va>ka)return va=Ya(va/10),0===va?Ca:va<=ka?void 0===U[va-1]?Ma.charAt(1):U[va-1]+Ma.charAt(1):Ca;Ca=U[va-1]}return void 0===Ca?"":Ca})}
return[function(w,L){var I=ea(this),U=null==w?void 0:w[p];return void 0!==U?U.call(w,I,L):r.call(String(I),w,L)},function(w,L){var I=v(r,w,this,L);if(I.done)return I.value;var U=R(w);w=String(this);(I="function"==typeof L)||(L=String(L));var da=U.global;if(da){var ha=U.unicode;U.lastIndex=0}for(var sa=[];;){var ka=X(U,w);if(null===ka)break;if(sa.push(ka),!da)break;""===String(ka[0])&&(ka=yb(U.lastIndex),ka+=ha?Cc(w,ka).length:1,U.lastIndex=ka)}var Ea;ha="";for(da=U=0;da<sa.length;da++){ka=sa[da];
for(var Ca=String(ka[0]),Ma=pa(ya(Va(ka.index),w.length),0),va=[],Oa=1;Oa<ka.length;Oa++)va.push(void 0===(Ea=ka[Oa])?Ea:String(Ea));ka=ka.groups;I?(va=[Ca].concat(va,Ma,w),void 0!==ka&&va.push(ka),ka=String(L.apply(void 0,va))):ka=D(Ca,w,Ma,va,ka,L);Ma>=U&&(ha+=w.slice(U,Ma)+ka,U=Ma+Ca.length)}return ha+w.slice(U)}]});var $c=function(p){return Array.prototype.reduce.call(p,function(r,v){var D=v.name.match(/data-simplebar-(.+)/);if(D)switch(D=D[1].replace(/\W+(.)/g,function(w,L){return L.toUpperCase()}),
v.value){case "true":r[D]=!0;break;case "false":r[D]=!1;break;case void 0:r[D]=!0;break;default:r[D]=v.value}return r},{})},eb=function(){function p(v,D){var w=this;this.onScroll=function(){var L=E(w.el);w.scrollXTicking||(L.requestAnimationFrame(w.scrollX),w.scrollXTicking=!0);w.scrollYTicking||(L.requestAnimationFrame(w.scrollY),w.scrollYTicking=!0)};this.scrollX=function(){w.axis.x.isOverflowing&&(w.showScrollbar("x"),w.positionScrollbar("x"));w.scrollXTicking=!1};this.scrollY=function(){w.axis.y.isOverflowing&&
(w.showScrollbar("y"),w.positionScrollbar("y"));w.scrollYTicking=!1};this.onMouseEnter=function(){w.showScrollbar("x");w.showScrollbar("y")};this.onMouseMove=function(L){w.mouseX=L.clientX;w.mouseY=L.clientY;(w.axis.x.isOverflowing||w.axis.x.forceVisible)&&w.onMouseMoveForAxis("x");(w.axis.y.isOverflowing||w.axis.y.forceVisible)&&w.onMouseMoveForAxis("y")};this.onMouseLeave=function(){w.onMouseMove.cancel();(w.axis.x.isOverflowing||w.axis.x.forceVisible)&&w.onMouseLeaveForAxis("x");(w.axis.y.isOverflowing||
w.axis.y.forceVisible)&&w.onMouseLeaveForAxis("y");w.mouseX=-1;w.mouseY=-1};this.onWindowResize=function(){w.scrollbarWidth=w.getScrollbarWidth();w.hideNativeScrollbar()};this.hideScrollbars=function(){w.axis.x.track.rect=w.axis.x.track.el.getBoundingClientRect();w.axis.y.track.rect=w.axis.y.track.el.getBoundingClientRect();w.isWithinBounds(w.axis.y.track.rect)||(w.axis.y.scrollbar.el.classList.remove(w.classNames.visible),w.axis.y.isVisible=!1);w.isWithinBounds(w.axis.x.track.rect)||(w.axis.x.scrollbar.el.classList.remove(w.classNames.visible),
w.axis.x.isVisible=!1)};this.onPointerEvent=function(L){var I,U;w.axis.x.track.rect=w.axis.x.track.el.getBoundingClientRect();w.axis.y.track.rect=w.axis.y.track.el.getBoundingClientRect();(w.axis.x.isOverflowing||w.axis.x.forceVisible)&&(I=w.isWithinBounds(w.axis.x.track.rect));(w.axis.y.isOverflowing||w.axis.y.forceVisible)&&(U=w.isWithinBounds(w.axis.y.track.rect));(I||U)&&(L.preventDefault(),L.stopPropagation(),"mousedown"===L.type&&(I&&(w.axis.x.scrollbar.rect=w.axis.x.scrollbar.el.getBoundingClientRect(),
w.isWithinBounds(w.axis.x.scrollbar.rect)?w.onDragStart(L,"x"):w.onTrackClick(L,"x")),U&&(w.axis.y.scrollbar.rect=w.axis.y.scrollbar.el.getBoundingClientRect(),w.isWithinBounds(w.axis.y.scrollbar.rect)?w.onDragStart(L,"y"):w.onTrackClick(L,"y"))))};this.drag=function(L){var I=w.axis[w.draggedAxis].track,U=I.rect[w.axis[w.draggedAxis].sizeAttr],da=w.axis[w.draggedAxis].scrollbar,ha=w.contentWrapperEl[w.axis[w.draggedAxis].scrollSizeAttr],sa=parseInt(w.elStyles[w.axis[w.draggedAxis].sizeAttr],10);L.preventDefault();
L.stopPropagation();L=(("y"===w.draggedAxis?L.pageY:L.pageX)-I.rect[w.axis[w.draggedAxis].offsetAttr]-w.axis[w.draggedAxis].dragOffset)/(U-da.size)*(ha-sa);"x"===w.draggedAxis&&(L=w.isRtl&&p.getRtlHelpers().isRtlScrollbarInverted?L-(U+da.size):L,L=w.isRtl&&p.getRtlHelpers().isRtlScrollingInverted?-L:L);w.contentWrapperEl[w.axis[w.draggedAxis].scrollOffsetAttr]=L};this.onEndDrag=function(L){var I=A(w.el),U=E(w.el);L.preventDefault();L.stopPropagation();w.el.classList.remove(w.classNames.dragging);
I.removeEventListener("mousemove",w.drag,!0);I.removeEventListener("mouseup",w.onEndDrag,!0);w.removePreventClickId=U.setTimeout(function(){I.removeEventListener("click",w.preventClick,!0);I.removeEventListener("dblclick",w.preventClick,!0);w.removePreventClickId=null})};this.preventClick=function(L){L.preventDefault();L.stopPropagation()};this.el=v;this.minScrollbarWidth=20;this.options=Object.assign({},p.defaultOptions,{},D);this.classNames=Object.assign({},p.defaultOptions.classNames,{},this.options.classNames);
this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}};this.removePreventClickId=
null;p.instances.has(this.el)||(this.recalculate=sc(this.recalculate.bind(this),64),this.onMouseMove=sc(this.onMouseMove.bind(this),64),this.hideScrollbars=Yc(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Yc(this.onWindowResize.bind(this),64,{leading:!0}),p.getRtlHelpers=x(p.getRtlHelpers),this.init())}p.getRtlHelpers=function(){var v=document.createElement("div");v.innerHTML='\x3cdiv class\x3d"hs-dummy-scrollbar-size"\x3e\x3cdiv style\x3d"height: 200%; width: 200%; margin: 10px 0;"\x3e\x3c/div\x3e\x3c/div\x3e';
var D=v.firstElementChild;document.body.appendChild(D);var w=D.firstElementChild;D.scrollLeft=0;v=p.getOffset(D);var L=p.getOffset(w);D.scrollLeft=999;D=p.getOffset(w);return{isRtlScrollingInverted:v.left!==L.left&&0!=L.left-D.left,isRtlScrollbarInverted:v.left!==L.left}};p.getOffset=function(v){var D=v.getBoundingClientRect(),w=A(v);v=E(v);return{top:D.top+(v.pageYOffset||w.documentElement.scrollTop),left:D.left+(v.pageXOffset||w.documentElement.scrollLeft)}};var r=p.prototype;return r.init=function(){p.instances.set(this.el,
this);ub&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},r.initDOM=function(){var v=this;if(Array.prototype.filter.call(this.el.children,function(L){return L.classList.contains(v.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+
this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+
this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{this.wrapperEl=document.createElement("div");this.contentWrapperEl=document.createElement("div");this.offsetEl=document.createElement("div");this.maskEl=document.createElement("div");this.contentEl=document.createElement("div");this.placeholderEl=document.createElement("div");this.heightAutoObserverWrapperEl=document.createElement("div");this.heightAutoObserverEl=document.createElement("div");
this.wrapperEl.classList.add(this.classNames.wrapper);this.contentWrapperEl.classList.add(this.classNames.contentWrapper);this.offsetEl.classList.add(this.classNames.offset);this.maskEl.classList.add(this.classNames.mask);this.contentEl.classList.add(this.classNames.contentEl);this.placeholderEl.classList.add(this.classNames.placeholder);this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl);for(this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);
this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var D=document.createElement("div"),w=document.createElement("div");
D.classList.add(this.classNames.track);w.classList.add(this.classNames.scrollbar);D.appendChild(w);this.axis.x.track.el=D.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=D.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+
this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-simplebar","init")},r.initListeners=function(){var v=this,D=E(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(L){v.el.addEventListener(L,v.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(L){v.el.addEventListener(L,
v.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);D.addEventListener("resize",this.onWindowResize);var w=!1;this.resizeObserver=new (D.ResizeObserver||Xc)(function(){w&&v.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);D.requestAnimationFrame(function(){w=!0});this.mutationObserver=
new D.MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},r.recalculate=function(){this.elStyles=E(this.el).getComputedStyle(this.el);this.isRtl="rtl"===this.elStyles.direction;var v=1>=this.heightAutoObserverEl.offsetHeight,D=1>=this.heightAutoObserverEl.offsetWidth,w=this.contentEl.offsetWidth,L=this.contentWrapperEl.offsetWidth,I=this.elStyles.overflowX,U=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+
" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var da=this.contentEl.scrollHeight,ha=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=v?"auto":"100%";this.placeholderEl.style.width=D?w+"px":"auto";this.placeholderEl.style.height=da+"px";v=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=
ha>w;this.axis.y.isOverflowing=da>v;this.axis.x.isOverflowing="hidden"!==I&&this.axis.x.isOverflowing;this.axis.y.isOverflowing="hidden"!==U&&this.axis.y.isOverflowing;this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible;this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible;this.hideNativeScrollbar();w=this.axis.x.isOverflowing?this.scrollbarWidth:0;I=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&
ha>L-I;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&da>v-w;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")},r.getScrollbarSize=function(v){if(void 0===v&&(v="y"),!this.axis[v].isOverflowing)return 0;
var D,w=this.axis[v].track.el[this.axis[v].offsetSizeAttr];return D=Math.max(~~(w/this.contentEl[this.axis[v].scrollSizeAttr]*w),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(D=Math.min(D,this.options.scrollbarMaxSize)),D},r.positionScrollbar=function(v){if(void 0===v&&(v="y"),this.axis[v].isOverflowing){var D=this.contentWrapperEl[this.axis[v].scrollSizeAttr],w=this.axis[v].track.el[this.axis[v].offsetSizeAttr],L=parseInt(this.elStyles[this.axis[v].sizeAttr],10),I=this.axis[v].scrollbar,
U=this.contentWrapperEl[this.axis[v].scrollOffsetAttr];D=("x"===v&&this.isRtl&&p.getRtlHelpers().isRtlScrollingInverted?-U:U)/(D-L);D=~~((w-I.size)*D);D="x"===v&&this.isRtl&&p.getRtlHelpers().isRtlScrollbarInverted?D+(w-I.size):D;I.el.style.transform="x"===v?"translate3d("+D+"px, 0, 0)":"translate3d(0, "+D+"px, 0)"}},r.toggleTrackVisibility=function(v){void 0===v&&(v="y");var D=this.axis[v].track.el,w=this.axis[v].scrollbar.el;this.axis[v].isOverflowing||this.axis[v].forceVisible?(D.style.visibility=
"visible",this.contentWrapperEl.style[this.axis[v].overflowAttr]="scroll"):(D.style.visibility="hidden",this.contentWrapperEl.style[this.axis[v].overflowAttr]="hidden");this.axis[v].isOverflowing?w.style.display="block":w.style.display="none"},r.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+
"px":0},r.onMouseMoveForAxis=function(v){void 0===v&&(v="y");this.axis[v].track.rect=this.axis[v].track.el.getBoundingClientRect();this.axis[v].scrollbar.rect=this.axis[v].scrollbar.el.getBoundingClientRect();this.isWithinBounds(this.axis[v].scrollbar.rect)?this.axis[v].scrollbar.el.classList.add(this.classNames.hover):this.axis[v].scrollbar.el.classList.remove(this.classNames.hover);this.isWithinBounds(this.axis[v].track.rect)?(this.showScrollbar(v),this.axis[v].track.el.classList.add(this.classNames.hover)):
this.axis[v].track.el.classList.remove(this.classNames.hover)},r.onMouseLeaveForAxis=function(v){void 0===v&&(v="y");this.axis[v].track.el.classList.remove(this.classNames.hover);this.axis[v].scrollbar.el.classList.remove(this.classNames.hover)},r.showScrollbar=function(v){void 0===v&&(v="y");var D=this.axis[v].scrollbar.el;this.axis[v].isVisible||(D.classList.add(this.classNames.visible),this.axis[v].isVisible=!0);this.options.autoHide&&this.hideScrollbars()},r.onDragStart=function(v,D){void 0===
D&&(D="y");var w=A(this.el),L=E(this.el);this.axis[D].dragOffset=("y"===D?v.pageY:v.pageX)-this.axis[D].scrollbar.rect[this.axis[D].offsetAttr];this.draggedAxis=D;this.el.classList.add(this.classNames.dragging);w.addEventListener("mousemove",this.drag,!0);w.addEventListener("mouseup",this.onEndDrag,!0);null===this.removePreventClickId?(w.addEventListener("click",this.preventClick,!0),w.addEventListener("dblclick",this.preventClick,!0)):(L.clearTimeout(this.removePreventClickId),this.removePreventClickId=
null)},r.onTrackClick=function(v,D){var w=this;if(void 0===D&&(D="y"),this.options.clickOnTrack){var L=E(this.el);this.axis[D].scrollbar.rect=this.axis[D].scrollbar.el.getBoundingClientRect();v=this.axis[D].scrollbar.rect[this.axis[D].offsetAttr];var I=parseInt(this.elStyles[this.axis[D].sizeAttr],10),U=this.contentWrapperEl[this.axis[D].scrollOffsetAttr],da=0>("y"===D?this.mouseY-v:this.mouseX-v)?-1:1,ha=-1===da?U-I:U+I;!function ka(){var Ea,Ca;-1===da?U>ha&&(U-=w.options.clickOnTrackSpeed,w.contentWrapperEl.scrollTo(((Ea=
{})[w.axis[D].offsetAttr]=U,Ea)),L.requestAnimationFrame(ka)):U<ha&&(U+=w.options.clickOnTrackSpeed,w.contentWrapperEl.scrollTo(((Ca={})[w.axis[D].offsetAttr]=U,Ca)),L.requestAnimationFrame(ka))}()}},r.getContentElement=function(){return this.contentEl},r.getScrollElement=function(){return this.contentWrapperEl},r.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in
document.documentElement.style?0:K()}catch(v){return K()}},r.removeListeners=function(){var v=this,D=E(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(w){v.el.removeEventListener(w,v.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(w){v.el.removeEventListener(w,v.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",
this.onMouseLeave);this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll);D.removeEventListener("resize",this.onWindowResize);this.mutationObserver&&this.mutationObserver.disconnect();this.resizeObserver&&this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()},r.unMount=function(){this.removeListeners();p.instances.delete(this.el)},r.isWithinBounds=function(v){return this.mouseX>=
v.left&&this.mouseX<=v.left+v.width&&this.mouseY>=v.top&&this.mouseY<=v.top+v.height},r.findChild=function(v,D){var w=v.matches||v.webkitMatchesSelector||v.mozMatchesSelector||v.msMatchesSelector;return Array.prototype.filter.call(v.children,function(L){return w.call(L,D)})[0]},p}();return eb.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",
wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1E3},eb.instances=new WeakMap,eb.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",
this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(p){"init"===p.getAttribute("data-simplebar")||eb.instances.has(p)||new eb(p,$c(p.attributes))})},eb.removeObserver=function(){this.globalObserver.disconnect()},eb.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(eb.handleMutations),
this.globalObserver.observe(document,{childList:!0,subtree:!0}));"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},eb.handleMutations=function(p){p.forEach(function(r){Array.prototype.forEach.call(r.addedNodes,function(v){1===v.nodeType&&(v.hasAttribute("data-simplebar")?
!eb.instances.has(v)&&new eb(v,$c(v.attributes)):Array.prototype.forEach.call(v.querySelectorAll("[data-simplebar]"),function(D){"init"===D.getAttribute("data-simplebar")||eb.instances.has(D)||new eb(D,$c(D.attributes))}))});Array.prototype.forEach.call(r.removedNodes,function(v){1===v.nodeType&&(v.hasAttribute('[data-simplebar\x3d"init"]')?eb.instances.has(v)&&eb.instances.get(v).unMount():Array.prototype.forEach.call(v.querySelectorAll('[data-simplebar\x3d"init"]'),function(D){eb.instances.has(D)&&
eb.instances.get(D).unMount()}))})})},eb.getOptions=$c,ub&&eb.initHtmlApi(),eb});
var linkedStoryCarousel={init:function(){this.linkedStoryCarousels=document.querySelectorAll(".linked-story-carousel");this.$leftPanelTitles=document.querySelectorAll(".linked-story-carousel .cmp-carousel__left-panel__list__item");this.$navIndicators=document.querySelectorAll(".linked-story-carousel .cmp-carousel__indicator");this.initUI();this.addEventListeners()},initUI:function(){this.setupConnection();this.buildCustomScrollbar();this.setInitialActiveSlide()},addEventListeners:function(){for(var d=
0;d<this.$leftPanelTitles.length;d+=1)this.$leftPanelTitles[d].addEventListener("click",this.leftPanelTitleClicked.bind(this));for(d=0;d<this.$navIndicators.length;d+=1)this.$navIndicators[d].addEventListener("click",this.navIndicatorClicked.bind(this))},setupConnection:function(){this.linkedStoryCarousels.forEach(function(d,a){d.setAttribute("id","carousel_"+a);d.querySelectorAll(".cmp-carousel__left-panel__list__item").length&&d.querySelectorAll(".cmp-carousel__left-panel__list__item").forEach(function(b,
c){b.dataset.id="carousel_"+a+"_slide_"+c});d.querySelectorAll(".cmp-carousel__indicator").length&&d.querySelectorAll(".cmp-carousel__indicator").forEach(function(b,c){b.dataset.id="carousel_"+a+"_slide_"+c});d.querySelectorAll(".cmp-carousel__item").length&&d.querySelectorAll(".cmp-carousel__item").forEach(function(b,c){b.setAttribute("id","carousel_"+a+"_slide_"+c)})})},buildCustomScrollbar:function(){this.linkedStoryCarousels.forEach(function(d){d.querySelector(".cmp-carousel__left-panel__list")&&
new SimpleBar(d.querySelector(".cmp-carousel__left-panel__list"),{autoHide:!1})})},setInitialActiveSlide:function(){this.linkedStoryCarousels.forEach(function(d){d.querySelector(".cmp-carousel__left-panel__list__item")&&d.querySelector(".cmp-carousel__left-panel__list__item").classList.add("active")})},leftPanelTitleClicked:function(d){var a=d.currentTarget.closest(".linked-story-carousel"),b=d.currentTarget.dataset.id,c=a.querySelectorAll(".cmp-carousel__item");a=a.querySelectorAll(".cmp-carousel__left-panel__list__item");
for(var e=0;e<a.length;e+=1)a[e].classList.remove("active");d.currentTarget.classList.add("active");for(d=0;d<c.length;d+=1)c[d].classList.remove("cmp-carousel__item--active"),c[d].setAttribute("aria-hidden",!0);document.querySelector("#"+b).classList.add("cmp-carousel__item--active");document.querySelector("#"+b).setAttribute("aria-hidden",!1);document.querySelector(".cmp-carousel__indicator[data-id\x3d"+b+"]").click()},navIndicatorClicked:function(d){if(d.isTrusted){var a=d.currentTarget.closest(".linked-story-carousel");
d=d.currentTarget.dataset.id;a=a.querySelectorAll(".cmp-carousel__left-panel__list__item");for(var b=0;b<a.length;b+=1)a[b].classList.remove("active");document.querySelector(".cmp-carousel__left-panel__list__item[data-id\x3d"+d+"]").classList.add("active")}}},linkedStorySlider={sliders:[],init:function(){this.initUI()},initUI:function(){this.initializeTinySlider();this.addEventListeners()},addEventListeners:function(){var d=this;window.addEventListener("resize",amznbase.debounce(function(){d.resized()},
250))},initializeTinySlider:function(){var d=this;document.querySelectorAll(".linked-story__custom-carousel__slider").forEach(function(a,b){var c=""===a.dataset.autoplay?!0:!1;a.dataset.carouselIndex=b;a={container:a.querySelector(".customize"),items:1,controls:!1,navContainer:a.querySelector(".customize-nav"),navAsThumbnails:!0,autoplay:c,autoplayHoverPause:!0,autoplayTimeout:6E3,autoHeight:!0,autoplayButton:!1,navPosition:"bottom",autoplayButtonOutput:!1,navItems:a.querySelectorAll(".customize-nav button"),
arrowKeys:!1};a.mouseDrag=window.isXS||window.isS||window.isM?!0:!1;a=tns(a);d.sliders.push(a)})},resized:function(){this.sliders.forEach(function(d){d.destroy()});this.sliders=[];this.initializeTinySlider()}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".linked-story-carousel .cmp-carousel")&&linkedStoryCarousel.init();document.querySelector(".linked-story-carousel .linked-story__custom-carousel__slider")&&linkedStorySlider.init()});
window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);var a=this,b;do for(b=d.length;0<=--b&&d.item(b)!==a;);while(0>b&&(a=a.parentElement));return a});
window.Element&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);for(var a=d.length;0<=--a&&d.item(a)!==this;);return-1<a});
Object.assign||(Object.assign=function(d,a){if(null===d)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(d),c=1;c<arguments.length;c++){var e=arguments[c];if(null!==e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(b[f]=e[f])}return b});
(function(d){d.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
(function(){function d(h){h=h.dataset;var k=[],m="image";m=m.charAt(0).toUpperCase()+m.slice(1);m=["is","hook"+m];for(var n in h)if(h.hasOwnProperty(n)){var t=h[n];0===n.indexOf("cmp")&&(n=n.slice(3),n=n.charAt(0).toLowerCase()+n.substring(1),-1===m.indexOf(n)&&(k[n]=t))}return k}function a(h){function k(B){B.element.removeAttribute("data-cmp-is");var K=B.options;y._properties={};for(var E in f)if(f.hasOwnProperty(E)){var A=f[E];y._properties[E]=K&&null!=K[E]?A&&"function"===typeof A.transform?A.transform(K[E]):
K[E]:f[E]["default"]}B=B.element;y._elements={};y._elements.self=B;B=y._elements.self.querySelectorAll("[data-cmp-hook-image]");for(K=0;K<B.length;K++)E=B[K],A="image",A=A.charAt(0).toUpperCase()+A.slice(1),y._elements[E.dataset["cmpHook"+A]]=E;if(y._elements.noscript){y._elements.container=y._elements.link?y._elements.link:y._elements.self;B=y._elements.noscript.textContent.trim();B=B.replace(/&(amp;)*lt;/g,"\x3c");B=B.replace(/&(amp;)*gt;/g,"\x3e");B=(new DOMParser).parseFromString(B,"text/html");
K=B.querySelector(c.image);K.removeAttribute("src");y._elements.container.insertBefore(K,y._elements.noscript);(B=B.querySelector(c.map))&&y._elements.container.insertBefore(B,y._elements.noscript);y._elements.noscript.parentNode.removeChild(y._elements.noscript);y._elements.container.matches(c.image)?y._elements.image=y._elements.container:y._elements.image=y._elements.container.querySelector(c.image);y._elements.map=y._elements.container.querySelector(c.map);y._elements.areas=y._elements.container.querySelectorAll(c.area);
if(y._properties.lazy){B=y._elements.image.getAttribute("width");K=y._elements.image.getAttribute("height");if(B&&K){E=e.style;E["padding-bottom"]=K/B*100+"%";for(var N in E)E.hasOwnProperty(N)&&(y._elements.image.style[N]=E[N])}y._elements.image.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");y._elements.image.classList.add(e.cssClass);y._lazyLoaderShowing=!0}y._elements.map&&y._elements.image.addEventListener("load",x);window.addEventListener("scroll",
y.update);window.addEventListener("resize",u);window.addEventListener("update",y.update);y._elements.image.addEventListener("cmp-image-redraw",y.update);y.update()}}function m(){var B=y._properties.widths&&0<y._properties.widths.length;if(B){var K=y._elements.self;for(var E=K.clientWidth;0===E&&K.parentNode;)K=K.parentNode,E=K.clientWidth;K=E*g;E=y._properties.widths.length;for(var A=0;A<E-1&&y._properties.widths[A]<K;)A++;K="."+y._properties.widths[A].toString()}else K="";K=y._properties.src.replace("{.width}",
K);y._elements.image.getAttribute("src")!==K&&(y._elements.image.setAttribute("src",K),B||window.removeEventListener("scroll",y.update));y._lazyLoaderShowing&&y._elements.image.addEventListener("load",n)}function n(){y._elements.image.classList.remove(e.cssClass);for(var B in e.style)e.style.hasOwnProperty(B)&&(y._elements.image.style[B]="");y._elements.image.removeEventListener("load",n);y._lazyLoaderShowing=!1}function t(){if(y._elements.areas&&0<y._elements.areas.length)for(var B=0;B<y._elements.areas.length;B++){var K=
y._elements.image.width,E=y._elements.image.height;if(K&&E){var A=y._elements.areas[B].dataset.cmpRelcoords;if(A){A=A.split(",");for(var N=Array(A.length),M=0;M<N.length;M++)N[M]=0===M%2?parseInt(A[M]*K):parseInt(A[M]*E);y._elements.areas[B].coords=N}}}}function u(){y.update();t()}function x(){t()}var y=this;y.update=function(){if(y._properties.lazy){if(null===y._elements.container.offsetParent)var B=!1;else{B=window.pageYOffset;var K=B+document.documentElement.clientHeight,E=y._elements.container.getBoundingClientRect().top+
B;B=E+y._elements.container.clientHeight>=B-0&&E<=K+0}B&&m()}else m()};h&&h.element&&k(h)}function b(){for(var h=document.querySelectorAll(c.self),k=0;k<h.length;k++)new a({element:h[k],options:d(h[k])});h=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;k=document.querySelector("body");(new h(function(m){m.forEach(function(n){n=[].slice.call(n.addedNodes);0<n.length&&n.forEach(function(t){t.querySelectorAll&&[].slice.call(t.querySelectorAll(c.self)).forEach(function(u){new a({element:u,
options:d(u)})})})})})).observe(k,{subtree:!0,childList:!0,characterData:!0})}var c={self:'[data-cmp-is\x3d"image"]',image:'[data-cmp-hook-image\x3d"image"]',map:'[data-cmp-hook-image\x3d"map"]',area:'[data-cmp-hook-image\x3d"area"]'},e={cssClass:"cmp-image__image--is-loading",style:{height:0,"padding-bottom":""}},f={widths:{default:[],transform:function(h){var k=[];h.split(",").forEach(function(m){m=parseFloat(m);isNaN(m)||k.push(m)});return k}},lazy:{default:!1,transform:function(h){return!(null===
h||"undefined"===typeof h)}},src:{}},g=window.devicePixelRatio||1;"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b)})();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);
Element.prototype.closest||(Element.prototype.closest=function(d){var a=this;if(!document.documentElement.contains(a))return null;do{if(a.matches(d))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType);return null});
(function(){function d(f){function g(x){x.element.removeAttribute("data-cmp-is");k(x.element);u._active=h(u._elements.tab);u._elements.tabpanel&&(n(),m());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(new window.Granite.author.MessageChannel("cqauthor",window)).subscribeRequestMessage("cmp.panelcontainer",function(y){y.data&&"cmp-tabs"===y.data.type&&y.data.id===u._elements.self.dataset.cmpPanelcontainerId&&"navigate"===y.data.operation&&(u._active=y.data.index,n())})}
function h(x){if(x)for(var y=0;y<x.length;y++)if(x[y].classList.contains(e.active.tab))return y;return 0}function k(x){u._elements={};u._elements.self=x;x=u._elements.self.querySelectorAll("[data-cmp-hook-tabs]");for(var y=0;y<x.length;y++){var B=x[y];if(B.closest(".cmp-tabs")===u._elements.self){var K="tabs";K=K.charAt(0).toUpperCase()+K.slice(1);K=B.dataset["cmpHook"+K];u._elements[K]?(Array.isArray(u._elements[K])||(u._elements[K]=[u._elements[K]]),u._elements[K].push(B)):u._elements[K]=B}}}function m(){var x=
u._elements.tab;if(x)for(var y=0;y<x.length;y++)(function(B){x[y].addEventListener("click",function(K){t(B)});x[y].addEventListener("keydown",function(K){var E=u._active,A=u._elements.tab.length-1;switch(K.keyCode){case c.ARROW_LEFT:case c.ARROW_UP:K.preventDefault();0<E&&t(E-1);break;case c.ARROW_RIGHT:case c.ARROW_DOWN:K.preventDefault();E<A&&t(E+1);break;case c.HOME:K.preventDefault();t(0);break;case c.END:K.preventDefault();t(A);break;case c.ENTER:K.preventDefault(),t(B)}})})(y)}function n(){var x=
u._elements.tabpanel,y=u._elements.tab;if(x)if(Array.isArray(x))for(var B=0;B<x.length;B++)B===parseInt(u._active)?(x[B].classList.add(e.active.tabpanel),x[B].removeAttribute("aria-hidden"),y[B].classList.add(e.active.tab),y[B].setAttribute("aria-selected",!0)):(x[B].classList.remove(e.active.tabpanel),x[B].setAttribute("aria-hidden",!0),y[B].classList.remove(e.active.tab),y[B].setAttribute("aria-selected",!1));else x.classList.add(e.active.tabpanel),y&&y.classList.add(e.active.tab)}function t(x){u._active=
x;n();var y=window.scrollX||window.pageXOffset,B=window.scrollY||window.pageYOffset;u._elements.tab[x].focus();window.scrollTo(y,B)}var u=this;f&&f.element&&g(f)}function a(f){f=f.dataset;var g=[],h="tabs";h=h.charAt(0).toUpperCase()+h.slice(1);h=["is","hook"+h];for(var k in f)if(f.hasOwnProperty(k)){var m=f[k];0===k.indexOf("cmp")&&(k=k.slice(3),k=k.charAt(0).toLowerCase()+k.substring(1),-1===h.indexOf(k)&&(g[k]=m))}return g}function b(){for(var f=document.querySelectorAll(e.self),g=0;g<f.length;g++)new d({element:f[g],
options:a(f[g])});f=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;g=document.querySelector("body");(new f(function(h){h.forEach(function(k){k=[].slice.call(k.addedNodes);0<k.length&&k.forEach(function(m){m.querySelectorAll&&[].slice.call(m.querySelectorAll(e.self)).forEach(function(n){new d({element:n,options:a(n)})})})})})).observe(g,{subtree:!0,childList:!0,characterData:!0})}var c={END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,ENTER:13},
e={self:'[data-cmp-is\x3d"tabs"]',active:{tab:"cmp-tabs__tab--active",tabpanel:"cmp-tabs__tabpanel--active"}};"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b)})();
(function(){var d={init:function(){var a=document.querySelectorAll(".abm-feature-columns");a&&(this.fetchColumns(a),window.addEventListener("resize",amznbase.debounce(function(){d.fetchColumns(a)},250)))},fetchColumns:function(a){var b=this;a.forEach(function(c){var e=c.querySelectorAll(".abm-feature-columns__wrapper__item__linkItems"),f=c.querySelectorAll(".linkscolumn0"),g=c.querySelectorAll(".linkscolumn1"),h=c.querySelectorAll(".linkscolumn2"),k=c.querySelectorAll(".abm-feature-columns__wrapper__item__title"),
m=c.querySelectorAll(".abm-feature-columns__wrapper__item__description"),n=b.getMaxHeight(f),t=b.getMaxHeight(g),u=b.getMaxHeight(h),x=b.getMaxHeight(k),y=b.getMaxHeight(m),B=!1,K=!1;b.setMaxHeight(f,n);b.setMaxHeight(g,t);b.setMaxHeight(h,u);b.setMaxHeight(k,x);b.setMaxHeight(m,y);e&&1>=e.length&&(e=c.querySelectorAll(".abm-feature-columns__wrapper__item__imageWrapper"),c=c.querySelectorAll(".abm-feature-columns__wrapper__item__videoWrapper"),e&&0<e.length?(e.forEach(function(E){E.classList.add("emptyCallouts");
E.nextElementSibling&&E.nextElementSibling.classList&&E.nextElementSibling.classList.contains("abm-feature-columns__wrapper__item__linkItems")&&(B=!0)}),B&&e.forEach(function(E){E.classList&&E.classList.remove("emptyCallouts")})):c&&0<c.length&&(c.forEach(function(E){E.classList.add("emptyCallouts");E.nextElementSibling&&E.nextElementSibling.classList&&E.nextElementSibling.classList.contains("abm-feature-columns__wrapper__item__linkItems")&&(K=!0)}),K&&c.forEach(function(E){E.classList&&E.classList.remove("emptyCallouts")})))})},
setMaxHeight:function(a,b){a.forEach(function(c){1023<window.innerWidth?c.style.height=b+"px":c.removeAttribute("style")})},getMaxHeight:function(a){var b=0;a.forEach(function(c){c.removeAttribute("style");(c=c.getBoundingClientRect().height)&&c>b&&(b=c)});return b}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-feature-columns")&&d.init()})})();
var geoBanner={init:function(){this.bannerCloseBtn=document.querySelector(".geobanner__wrapper__closeIcon");this.openPopupBtn=document.querySelector(".country-language-popup");this.closeBtn=document.querySelector(".geobannermodal__dialog__header__closeIcon");this.geobannermodal=document.querySelector(".geobannermodal");this.countryLangElements=document.querySelectorAll(".marketplace");this.addEventListeners();this.canadaUserCheck()},addEventListeners:function(){this.bannerCloseBtn&&(this.bannerCloseBtn.removeEventListener("click",
this.closeBanner.bind(this)),this.bannerCloseBtn.addEventListener("click",this.closeBanner.bind(this)));this.closeBtn&&(this.closeBtn.removeEventListener("click",this.closeBanner.bind(this)),this.closeBtn.addEventListener("click",this.closeBanner.bind(this)));this.openPopupBtn&&(this.openPopupBtn.removeEventListener("click",this.openBannerPopup.bind(this)),this.openPopupBtn.removeEventListener("keyup",this.openBannerPopup.bind(this)),this.openPopupBtn.addEventListener("click",this.openBannerPopup.bind(this)),
this.openPopupBtn.addEventListener("keyup",this.openBannerPopup.bind(this)));this.countryLangElements&&this.countryLangElements.forEach(function(d){d.removeEventListener("click",function(a){geoBanner.navigatePage(a,d)});d.addEventListener("click",function(a){geoBanner.navigatePage(a,d)})})},canadaUserCheck:function(){var d=amznbase.getValueFromMetaTag("geobannerenabled"),a=document.getElementById("sticky-navigation");if(amznbase.getUrlParameter("geo-nav")&&"true"===d){if(d=document.querySelector(".geobanner"))d.classList.remove("hide"),
a&&a.classList.add("geobanner-visible");amznbase.setCookie("geo-nav","true")}amznbase.getCookie("geo-nav")&&amznbase.appendGeoParamToCountryLinks()},navigatePage:function(d,a){d=(d=a.dataset.value)&&0<d.indexOf("?")?d+"\x26geo-pref\x3d1":d+"?geo-pref\x3d1";amznbase.appendUrlParams(d,!1,!1,!0)},closeBanner:function(d){(d.target===this.bannerCloseBtn||d.target&&d.target.closest("button")===this.bannerCloseBtn)&&this.bannerCloseBtn.closest(".geobanner").classList.add("hide");if(d.target===this.closeBtn||
d.target&&d.target.closest("button")===this.closeBtn)this.closeBtn.closest(".geobannermodal").classList.add("hide"),amznbase.addBodyScroll()},openBannerPopup:function(d){if("click"===d.type&&d.target===this.openPopupBtn||13===d.keyCode&&d.target===this.openPopupBtn)amznbase.removeBodyScroll(),this.geobannermodal.classList.remove("hide"),this.closeBtn.focus()}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".geobanner"))&&geoBanner.init()});
(function(){var d={init:function(){this.testimonies=[];this.addEventListeners();this.findAllTestimony();this.addReadMoreListener();this.adjustTestimonyCarouselHeight();this.checkReadMoreCriteria()},addEventListeners:function(){var a=this;window.addEventListener("resize",amznbase.debounce(function(){a.testimonyResized()},250))},findAllTestimony:function(){var a=this;document.querySelectorAll(".testimony-container").forEach(function(b){a.testimonies.push(b)})},addReadMoreListener:function(){this.testimonies.forEach(function(a){var b=
a.querySelector(".abm-testimonial-component__wrapper__content-wrapper__body-wrapper__read-more"),c=a.querySelector(".abm-testimonial-component__wrapper__content-wrapper__body-wrapper");b&&b.addEventListener("click",function(){c&&c.classList&&c.classList.remove("abm-testimonial-component__wrapper__content-wrapper__line-restriction");b.classList&&b.classList.add("hide")})})},checkReadMoreCriteria:function(){this.testimonies.forEach(function(a){var b=a.querySelector(".abm-testimonial-component__wrapper__content-wrapper__body-wrapper");
b&&b.classList&&b.classList.contains("abm-testimonial-component__wrapper__content-wrapper__line-restriction")&&b.classList.remove("abm-testimonial-component__wrapper__content-wrapper__line-restriction");a=a.querySelector(".abm-testimonial-component__wrapper__content-wrapper__body-wrapper__read-more");if(!b)return a&&a.classList&&a.classList.add("hide"),!1;if(b){var c=b.offsetHeight,e=parseInt(window.getComputedStyle(b,null).getPropertyValue("line-height"),10);c=parseInt(c/e,10);e=window.matchMedia("(max-width: 767px)");
var f=window.matchMedia("(max-width: 1023px)");e.matches&&6>=c||f.matches&&3>=c?a&&a.classList&&a.classList.add("hide"):b&&b.classList&&(b.classList.add("abm-testimonial-component__wrapper__content-wrapper__line-restriction"),a&&a.classList&&a.classList.remove("hide"))}})},adjustTestimonyCarouselHeight:function(){var a=document.querySelectorAll(".abm-testimonial-component");a&&a.forEach(function(b){amznbase.setMaxHeight(b,".testimony-container-desktop")})},testimonyResized:function(){this.adjustTestimonyCarouselHeight();
this.checkReadMoreCriteria()}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-testimonial-component"))&&d.init()})})();
(function(){var d={sliders:[],init:function(){this.featuredAsinElement=document.querySelectorAll(".abm-featuredasins");this.fetchAsinsData();this.addEventListeners()},initializeTinySlider:function(a){var b=this,c=document.querySelectorAll(".abm-featuredasins__carousel");a&&(c=a.querySelectorAll(".abm-featuredasins__carousel"));c.forEach(function(e){if("true"===e.parentElement.dataset.isdataloaded){e={container:e.querySelector(".customize"),items:1,controls:!0,mouseDrag:!0,controlsContainer:e.querySelector(".controls"),
navContainer:e.querySelector(".tns-nav"),navAsThumbnails:!0,autoplay:!1,responsive:{320:{controls:!0,fixedWidth:334,items:1},1024:{controls:!0,fixedWidth:334,items:3,nav:!1}}};e.mouseDrag=window.isXS||window.isS||window.isM?!0:!1;var f=tns(e);b.sliders.push(f);e=f.getInfo();e.nextButton.addEventListener("keyup",function(g){13!==g.keyCode&&13!==g.which||f.goTo("next")});e.prevButton.addEventListener("keyup",function(g){13!==g.keyCode&&13!==g.which||f.goTo("prev")});Array.from(e.navItems).forEach(function(g){g.addEventListener("keyup",
function(h){13!==h.keyCode&&13!==h.which||g.click()})})}})},fetchRefValue:function(){return(new function(){this.refCatKeyword=(this.categoryKeyword=(this.categoryKeyword=(this.categoryRef=(this.refValue=amznbase.getUrlParameter("ref",window.location.href))?this.refValue:amznbase.getUrlParameter("ref_",window.location.href))&&this.categoryRef.split("_zzz_").filter(function(a){return a.startsWith("kw_")})[0])?this.categoryKeyword.split("kw_")[1]:null)?this.categoryKeyword:window.location.pathname.split("/").reverse()[0];
("localhost"===document.location.hostname||amznbase.isAuthor)&&this.refCatKeyword&&0!==this.refCatKeyword.indexOf(".html")&&(this.refCatKeyword=this.refCatKeyword.replace(".html",""))}).refCatKeyword.replace(/-|_/g," ")},fetchAsinsData:function(){var a=this,b,c=a.fetchRefValue();a.featuredAsinElement&&a.featuredAsinElement.forEach(function(e){var f="category-search"===e.dataset.asintype,g=e.dataset.category,h=e.dataset.subcategory,k=e.dataset.catkeyword?e.dataset.catkeyword:c,m=e.dataset.productcount,
n=e.dataset.asinids?e.dataset.asinids:"";b=e.dataset.currentpagepath?e.dataset.currentpagepath+".":"localhost"===document.location.hostname||amznbase.isAuthor?document.location.pathname.replace("html",""):document.location.pathname+".";g=b+"category-search.json?"+(m?"count\x3d"+m:"")+(g?"\x26category\x3d"+g:"")+(h?"\x26subcategory\x3d"+h:"")+(k?"\x26keyword\x3d"+k:"");n=b+"asin-search.json?asins\x3d"+n;f?a.callAsinApi(g,e):a.callAsinApi(n,e)})},callAsinApi:function(a,b){var c=this,e;try{amznbase.makeHttpRequest(a,
"GET",function(f,g){!amznbase.invalidResponses.includes(f)&&g&&""!==g.trim()?(e=JSON.parse(g))&&"success"===e.status?(f=e.data)&&3>f.length?c.showErrorMessage(b):(b.dataset.isdataloaded="true",c.createCarouselItems(f,b),c.createCarouselBtns(f.length,b)):c.showErrorMessage(b):c.showErrorMessage(b)})}catch(f){c.showErrorMessage(b)}},showErrorMessage:function(a){a.querySelector(".abm-featuredasins__carousel").classList.add("hide");if(a.dataset.altdescription){var b=a.querySelector(".abm-featuredasins__description");
b&&b.classList.add("hide");a.querySelector(".abm-featuredasins__alt-description").classList.remove("hide")}},createCarouselBtns:function(a,b){for(var c=b.querySelector(".abm-featuredasins__carousel__wrapper__carousel-control-wrapper__slick-dots"),e=b.querySelector(".abm-featuredasins__carousel"),f=0;f<a;f+=1){var g=document.createElement("button");c.appendChild(g)}this.initializeTinySlider(b);this.featuredAsinsResized(b);e.classList.remove("hide")},addEventListeners:function(){var a=this;window.addEventListener("resize",
amznbase.debounce(function(){a.featuredAsinsResized()},250))},featuredAsinsResized:function(a){var b=document.querySelectorAll(".abm-featuredasins__carousel");a&&(b=a.querySelectorAll(".abm-featuredasins__carousel"));b&&b.forEach(function(c){"true"===c.parentElement.dataset.isdataloaded&&(setTimeout(function(){amznbase.setMaxHeight(c,".abm-featuredasins__carousel__wrapper__layer__item")}),amznbase.isBPChanged()&&(this.sliders.forEach(function(e){e.destroy()}),this.sliders=[],this.initializeTinySlider()))}.bind(this))},
createCarouselItems:function(a,b){var c=b.querySelector(".abm-featuredasins__carousel__wrapper__layer");a.forEach(function(e){var f=document.createElement("li");f.classList.add("abm-featuredasins__carousel__wrapper__layer__item","item");var g=document.createElement("p");g.classList.add("abm-featuredasins__carousel__wrapper__layer__item__product-title");g.innerText=e.productName;var h=document.createElement("div");h.classList.add("abm-featuredasins__carousel__wrapper__layer__item__logo-wrapper");var k=
document.createElement("img");k.setAttribute("data-src",e.productImage);k.setAttribute("src",e.productImage);k.alt=e.productImageAltText;h.appendChild(k);f.appendChild(g);f.appendChild(h);g=document.createElement("div");g.classList.add("abm-featuredasins__carousel__wrapper__layer__item__saving-info-wrapper");if(e.productPrice&&"na"!==e.productPrice){h=document.createElement("p");k=document.createElement("span");var m=document.createElement("span");h.classList.add("abm-featuredasins__carousel__wrapper__layer__item__saving-info-wrapper__ab-price");
k.innerText=b.dataset.pricelabel;m.innerText=e.currencyCode+e.productPrice;h.appendChild(k);h.appendChild(m);g.appendChild(h)}h=document.createElement("p");k=document.createElement("span");m=document.createElement("span");h.classList.add("abm-featuredasins__carousel__wrapper__layer__item__saving-info-wrapper__quantity-discount");k.classList.add("abm-featuredasins__carousel__wrapper__layer__item__saving-info-wrapper__quantity-discount__discount");k.innerText=e.currencyCode+e.productBusinessPrice;m.innerText=
" "+b.dataset.businesspricelabel;h.appendChild(k);h.appendChild(m);g.appendChild(h);e.minimumQuantity&&b.dataset.minquantitylabel&&"na"!==e.minimumQuantity&&(h=document.createElement("p"),k=document.createElement("span"),m=document.createElement("span"),h.classList.add("abm-featuredasins__carousel__wrapper__layer__item__saving-info-wrapper__min-qty"),k.innerText=b.dataset.minquantitylabel+" ",m.innerText=e.minimumQuantity,h.appendChild(k),h.appendChild(m),g.appendChild(h));f.appendChild(g);c.appendChild(f)})}};
window.addEventListener("DOMContentLoaded",function(){var a=document.querySelector(".abm-featuredasins");document.body.contains(a)&&"false"===a.dataset.iseditmode&&d.init()})})();
(function(){var d={partnerCarousel:document.querySelectorAll(".abm-bp-po__carousel"),init:function(){this.initializeTinySlider();this.hideControlBtns();this.adjustCarouselControl()},initializeTinySlider:function(){var a=[];this.partnerCarousel.forEach(function(b){b={container:b.querySelector(".customize"),items:1,controls:!0,mouseDrag:!0,controlsContainer:b.querySelector(".controls"),navContainer:b.querySelector(".tns-nav"),navPosition:"top",autoplay:!1};b.mouseDrag=window.isXS||window.isS||window.isM?
!0:!1;var c=tns(b);a.push(c);b=c.getInfo();b.nextButton.addEventListener("keyup",function(e){13!==e.keyCode&&13!==e.which||c.goTo("next")});b.prevButton.addEventListener("keyup",function(e){13!==e.keyCode&&13!==e.which||c.goTo("prev")});Array.from(b.navItems).forEach(function(e){e.addEventListener("keyup",function(f){13!==f.keyCode&&13!==f.which||e.click()})})})},hideControlBtns:function(){this.partnerCarousel.forEach(function(a){var b=a.querySelector(".prev"),c=a.querySelector(".next"),e=a.querySelector(".tns-nav"),
f=e.offsetWidth,g=e.scrollWidth;5>e.childElementCount&&g<=f&&(b.classList.add("hide-controls"),c.classList.add("hide-controls"),a.querySelector(".abm-bp-po__carousel__wrapper__cc__gradient").setAttribute("style","display : none"))})},adjustCarouselControl:function(){var a=this;this.partnerCarousel.forEach(function(b){var c,e=b.querySelector(".abm-bp-po__carousel__wrapper__cc__next"),f=b.querySelector(".tns-nav").querySelectorAll("button");window.matchMedia("(min-width: 768px)").matches&&(e.addEventListener("click",
function(){a.focusActiveName(b)}),f.forEach(function(g,h){g.addEventListener("click",function(){a.focusActiveName(b,!0,h)})}),b.querySelector(".abm-bp-po__carousel__wrapper__cc__prev").addEventListener("click",function(){var g=b.querySelector(".tns-nav-active"),h=g?g.parentNode:null,k=h?Array.prototype.indexOf.call(h.children,g):null;g=h.children;switch(k){case 0:b.querySelectorAll(".remove-nav").forEach(function(m){m.classList.remove("remove-nav")});h=h.childElementCount-1;4===h?(c=g.item(0),c.classList.add("remove-nav"),
10<g.item(4).innerHTML.length&&(c=g.item(1),c.classList.add("remove-nav"),10<g.item(2).innerHTML.length&&g.item(2).classList.add("remove-nav"))):5===h?(c=g.item(0),c.classList.add("remove-nav"),c=g.item(1),c.classList.add("remove-nav"),10<g.item(5).innerHTML.length&&(c=g.item(2),c.classList.add("remove-nav"),10<g.item(3).innerHTML.length&&g.item(3).classList.add("remove-nav"))):6===h?(c=g.item(0),c.classList.add("remove-nav"),c=g.item(1),c.classList.add("remove-nav"),c=g.item(2),c.classList.add("remove-nav"),
10<g.item(6).innerHTML.length&&(c=g.item(3),c.classList.add("remove-nav"),10<g.item(4).innerHTML.length&&g.item(4).classList.add("remove-nav"))):7===h?(c=g.item(0),c.classList.add("remove-nav"),c=g.item(1),c.classList.add("remove-nav"),c=g.item(2),c.classList.add("remove-nav"),c=g.item(3),c.classList.add("remove-nav"),10<g.item(7).innerHTML.length&&(c=g.item(4),c.classList.add("remove-nav"),10<g.item(5).innerHTML.length&&g.item(5).classList.add("remove-nav"))):8===h&&(c=g.item(0),c.classList.add("remove-nav"),
c=g.item(1),c.classList.add("remove-nav"),c=g.item(2),c.classList.add("remove-nav"),c=g.item(3),c.classList.add("remove-nav"),c=g.item(4),c.classList.add("remove-nav"),10<g.item(8).innerHTML.length?(c=g.item(5),c.classList.add("remove-nav"),10<g.item(6).innerHTML.length&&(g.item(5).classList.contains("remove-nav")?g.item(6).classList.add("remove-nav"):g.item(5).classList.add("remove-nav"))):10<g.item(7).innerHTML.length&&g.item(5).classList.add("remove-nav"));break;case 1:c=g.item(0);c.classList.contains("remove-nav")&&
c.classList.remove("remove-nav");break;case 2:c=g.item(1);c.classList.contains("remove-nav")&&c.classList.remove("remove-nav");break;case 3:c=g.item(2);c.classList.contains("remove-nav")&&c.classList.remove("remove-nav");break;case 4:c=g.item(3);c.classList.contains("remove-nav")&&c.classList.remove("remove-nav");break;case 5:c=g.item(4);c.classList.contains("remove-nav")&&c.classList.remove("remove-nav");break;case 6:c=g.item(5);c.classList.contains("remove-nav")&&c.classList.remove("remove-nav");
break;case 7:c=g.item(6),c.classList.contains("remove-nav")&&c.classList.remove("remove-nav")}}))})},focusActiveName:function(a,b,c){var e=a.querySelector(".tns-nav-active"),f=e?e.parentNode:null;e=f?Array.prototype.indexOf.call(f.children,e):null;b&&(e=c);c=f.children;f=window.matchMedia("(min-width: 1680px)");switch(e){case 0:!b&&f.matches&&10<c.item(0).innerHTML.length&&10<c.item(1).innerHTML.length&&c.item(0).classList.add("remove-nav");break;case 1:b?10<c.item(0).innerHTML.length&&10<c.item(1).innerHTML.length&&
c.item(0).classList.add("remove-nav"):c.item(2)&&10<c.item(2).innerHTML.length?(a=c.item(0),a.classList.add("remove-nav")):2===c.length?c.item(0).classList.remove("remove-nav"):10<c.item(1).innerHTML.length&&!c.item(0).classList.contains("remove-nav")&&c.item(0).classList.add("remove-nav");break;case 2:b&&10<c.item(2).innerHTML.length&&!c.item(0).classList.contains("remove-nav")?c.item(0).classList.add("remove-nav"):!b&&c.item(3)&&10<=c.item(3).innerHTML.length?(c.item(0).classList.add("remove-nav"),
c.item(1).classList.add("remove-nav")):b||3!==c.length||a.querySelectorAll(".remove-nav").forEach(function(g){g.classList.remove("remove-nav")});break;case 3:b&&10<c.item(3).innerHTML.length?c.item(0).classList.contains("remove-nav")?c.item(1).classList.contains("remove-nav")||c.item(1).classList.add("remove-nav"):c.item(0).classList.add("remove-nav"):!b&&c.item(4)&&10<c.item(4).innerHTML.length?c.item(1).classList.contains("remove-nav")?c.item(2).classList.add("remove-nav"):(c.item(0).classList.add("remove-nav"),
c.item(1).classList.add("remove-nav")):4===c.length?a.querySelectorAll(".remove-nav").forEach(function(g){g.classList.remove("remove-nav")}):!b&&c.item(0).classList.contains("remove-nav")?(a=c.item(1),a.classList.contains("remove-nav")||a.classList.add("remove-nav")):c.item(0).classList.add("remove-nav");break;case 4:b&&10<c.item(4).innerHTML.length?c.item(1).classList.contains("remove-nav")?(10<c.item(2).innerHTML.length||10<c.item(3).innerHTML.length)&&c.item(2).classList.add("remove-nav"):c.item(1).classList.add("remove-nav"):
5===c.length?a.querySelectorAll(".remove-nav").forEach(function(g){g.classList.remove("remove-nav")}):!b&&10<c.item(3).innerHTML.length&&c.item(2).classList.contains("remove-nav")?c.item(3).classList.add("remove-nav"):c.item(1).classList.contains("remove-nav")?c.item(2).classList.add("remove-nav"):c.item(1).classList.add("remove-nav");break;case 5:b&&10<c.item(5).innerHTML.length?c.item(2).classList.contains("remove-nav")?c.item(3).classList.contains("remove-nav")||c.item(3).classList.add("remove-nav"):
c.item(2).classList.add("remove-nav"):b||6!==c.length?!b&&10<c.item(4).innerHTML.length?c.item(4).classList.add("remove-nav"):c.item(2).classList.contains("remove-nav")?c.item(3).classList.add("remove-nav"):c.item(2).classList.add("remove-nav"):a.querySelectorAll(".remove-nav").forEach(function(g){g.classList.remove("remove-nav")});break;case 6:b&&10<c.item(6).innerHTML.length?c.item(3).classList.contains("remove-nav")?c.item(4).classList.contains("remove-nav")||c.item(4).classList.add("remove-nav"):
c.item(3).classList.add("remove-nav"):b||7!==c.length?!b&&10<c.item(5).innerHTML.length?c.item(5).classList.add("remove-nav"):!b&&10<c.item(7).innerHTML.length?c.item(4).classList.contains("remove-nav")||(c.item(3).classList.add("remove-nav"),c.item(4).classList.add("remove-nav")):c.item(3).classList.contains("remove-nav")?c.item(4).classList.add("remove-nav"):c.item(3).classList.add("remove-nav"):a.querySelectorAll(".remove-nav").forEach(function(g){g.classList.remove("remove-nav")});break;case 7:b&&
10<c.item(7).innerHTML.length?c.item(4).classList.contains("remove-nav")?c.item(5).classList.contains("remove-nav")||c.item(5).classList.add("remove-nav"):c.item(4).classList.add("remove-nav"):8===c.length?a.querySelectorAll(".remove-nav").forEach(function(g){g.classList.remove("remove-nav")}):!b&&10<c.item(6).innerHTML.length||10<c.item(7).innerHTML.length?c.item(5).classList.contains("remove-nav")?c.item(6).classList.add("remove-nav"):c.item(5).classList.add("remove-nav"):(a=10<c.item(8).innerHTML.length?
c.item(5):c.item(4),a.classList.add("remove-nav"));break;case 8:b?b&&10<c.item(8).innerHTML.length&&(c.item(5).classList.contains("remove-nav")?c.item(6).classList.contains("remove-nav")||c.item(6).classList.add("remove-nav"):c.item(5).classList.add("remove-nav")):a.querySelectorAll(".remove-nav").forEach(function(g){g.classList.remove("remove-nav")})}}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-bp-po"))&&d.init()})})();
(function(){var d={prevControlBtn:document.querySelectorAll(".abm-bp-membership__table-heading__right__btn--prev")[0],nextControlBtn:document.querySelectorAll(".abm-bp-membership__table-heading__right__btn--next")[0],planSlider:document.querySelectorAll(".abm-bp-membership__table-heading__right__list")[0],planList:document.querySelectorAll(".abm-bp-membership__table-heading__right__list__item"),planCount:document.querySelectorAll(".abm-bp-membership__table-heading__right__list__item").length,membershipSliderItems:document.querySelectorAll(".abm-bp-membership__plan__right__item"),
position:0,init:function(){this.initializeSlider()},initializeSlider:function(){function a(g){g=g.changedTouches[0];e=g.pageX;f=g.pageY}function b(g){var h=e-g.changedTouches[0].pageX;Math.abs(h)>Math.abs(f-g.changedTouches[0].pageY)&&(0<h?c.slideForward(c):c.slideBack(c))}var c=this,e=null,f=null;this.prevControlBtn.addEventListener("click",function(){c.slideBack(c)});this.nextControlBtn.addEventListener("click",function(){c.slideForward(c)});window.addEventListener("resize",amznbase.debounce(function(){768<=
window.screen.width&&c.resetPosition(c)},250));this.hideBtn(c);this.planSlider.addEventListener("touchstart",a,!1);this.planSlider.addEventListener("touchend",b,!1);this.membershipSliderItems.forEach(function(g){g.addEventListener("touchstart",a,!1);g.addEventListener("touchend",b,!1)})},hideBtn:function(a){var b=window.screen.width;1280<=b&&4>=a.planCount&&this.nextControlBtn.classList.add("hide-btn");1280>b&&2>=a.planCount&&a.nextControlBtn.classList.add("hide-btn")},resetPosition:function(a){a.position=
0;a.adjustSliderPosition(a);0===a.position&&a.prevControlBtn.classList.add("hide-btn");a.nextControlBtn.classList.contains("hide-btn")&&a.nextControlBtn.classList.remove("hide-btn");a.hideBtn(a)},slideBack:function(a){0<a.position&&(--a.position,a.adjustSliderPosition(a),0===a.position&&a.prevControlBtn.classList.add("hide-btn"),a.nextControlBtn.classList.contains("hide-btn")&&a.nextControlBtn.classList.remove("hide-btn"))},slideForward:function(a){var b=window.screen.width;1280<=b&&a.planCount-4>
a.position&&(a.position+=1,a.adjustSliderPosition(a),a.prevControlBtn.classList.contains("hide-btn")&&a.prevControlBtn.classList.remove("hide-btn"),a.position===a.planCount-4&&a.nextControlBtn.classList.add("hide-btn"));1280>b&&a.planCount-2>a.position&&(a.position+=1,a.adjustSliderPosition(a),a.prevControlBtn.classList.contains("hide-btn")&&a.prevControlBtn.classList.remove("hide-btn"),a.position===a.planCount-2&&a.nextControlBtn.classList.add("hide-btn"))},adjustSliderPosition:function(a){var b=
window.screen.width;a.planList.forEach(function(c){768<=b&&1024>b&&c.setAttribute("style","transform: translate("+-144*a.position+"px);");1024<=b&&1280>b&&c.setAttribute("style","transform: translate("+-166*a.position+"px);");1280<=b&&c.setAttribute("style","transform: translate("+-169*a.position+"px);")});a.membershipSliderItems.forEach(function(c){768<=b&&1024>b&&c.setAttribute("style","transform: translate("+-144*a.position+"px);");1024<=b&&1280>b&&c.setAttribute("style","transform: translate("+
-166*a.position+"px);");1280<=b&&c.setAttribute("style","transform: translate("+-169*a.position+"px);")})}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-bp-membership"))&&d.init()})})();
(function(){var d={init:function(){this.updateEventBanner()},updateEventBanner:function(){if(document.querySelector(".abm-events-banner").dataset.fullpage)var a=document.querySelector(".abm-events-banner").dataset.fullpage;"true"===a&&(a=document.body)&&a.classList&&a.classList.add("full-page-image")}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-events-banner")&&d.init()})})();
(function(){var d={init:function(){this.addTimer()},addTimer:function(){var a=document.querySelector(".abm-timer__text__timer").dataset.duedate,b=document.querySelector(".abm-timer").dataset.isauthor,c=document.querySelector(".abm-timer").dataset.componenthide,e=(new Date(a)).getTime(),f=setInterval(function(){var g=(new Date).getTime();g=e-g;var h=Math.floor(g/864E5);1===h.toString().length&&(h="0"+h);var k=Math.floor(g%864E5/36E5);1===k.toString().length&&(k="0"+k);var m=Math.floor(g%36E5/6E4);
1===m.toString().length&&(m="0"+m);var n=Math.floor(g%6E4/1E3);1===n.toString().length&&(n="0"+n);0>h&&(h="00");0>k&&(k="00");0>m&&(m="00");0>n&&(n="00");document.getElementsByClassName("abm-timer__text__timer__time-wrapper__day")[0].innerHTML=h;document.getElementsByClassName("abm-timer__text__timer__time-wrapper__hour")[0].innerHTML=k;document.getElementsByClassName("abm-timer__text__timer__time-wrapper__minute")[0].innerHTML=m;document.getElementsByClassName("abm-timer__text__timer__time-wrapper__second")[0].innerHTML=
n;0>g&&"false"===b&&(clearInterval(f),g=document.getElementsByClassName("abm-timer")[0],"true"===c&&(g.classList.add("hide"),g.classList.remove("abm-timer")))},1E3)}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-timer")&&d.init()})})();
var popupNotification={init:function(){this.popupCloseBtn=document.querySelector(".abm-popup__wrapper__close-btn");this.popupCtaBtn=document.querySelector(".abm-popup__wrapper__text__cta__btn");popupNotification.initModal();popupNotification.addEventListener()},addEventListener:function(){this.popupCloseBtn&&(this.popupCloseBtn.removeEventListener("click",this.closePopup.bind(this)),this.popupCloseBtn.addEventListener("click",this.closePopup.bind(this)));this.popupCtaBtn&&(this.popupCtaBtn.removeEventListener("click",
this.disablePopup.bind(this)),this.popupCtaBtn.addEventListener("click",this.disablePopup.bind(this)))},initModal:function(){var d=document.querySelector(".abm-popup").dataset.delaytimer,a=amznbase.getCookie("showNotificationModal");if("true"===a){var b=new Date(amznbase.getCookie("notificationModalTimer")),c=new Date;b=b.getTime()-c;0<b?setTimeout(popupNotification.init,b):popupNotification.showModal()}a||(d*=1E3)&&setTimeout(this.showModal,d)},showModal:function(){var d=document.querySelector(".abm-popup");
d.classList.contains("hidden")&&d.classList.remove("hidden");amznbase.removeBodyScroll()},disablePopup:function(){var d=document.querySelector(".abm-popup");amznbase.setCookie("showNotificationModal",!1);d.classList.contains("hidden")||d.classList.add("hidden");amznbase.addBodyScroll()},closePopup:function(){var d=document.querySelector(".abm-popup");d.classList.contains("hidden")||d.classList.add("hidden");amznbase.addBodyScroll();d=new Date;var a=document.querySelector(".abm-popup").dataset.resettimer;
a=new Date(d.getTime()+36E5*a);d=a.getTime()-d;0<d&&(setTimeout(popupNotification.init,d),amznbase.setCookie("showNotificationModal",!0),amznbase.setCookie("notificationModalTimer",a));0===d&&amznbase.setCookie("showNotificationModal",!1)}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-popup")&&!amznbase.isAuthor&&popupNotification.init()});
(function(){var d={init:function(){this.resourceFilters=[];this.mobileFilters=[];this.compObject={};this.cachedData=[];this.cachedHomeData=[];this.sbrcFilterComponent=document.querySelector(".abm-sbrc-filters");this.mobileHamburgerMenu=document.getElementById("overflow-sbrc-filter-trigger");this.mobileContainer=document.getElementById("mobile-sbrc-filter-overflow");this.mobileCloseBtn=document.getElementById("mobile-sbrc-close");this.dekstopHomeBtn=document.getElementById("sbrc-filter-home");this.mobHomeBtn=
document.getElementById("sbrc-filter-mobHome");this.homeArticleContainer=document.querySelector(".abm-sbrc-filters__articles--home");this.homeArticlesList=[];this.clonedPromoTile="";this.articlesContainer=document.querySelector(".abm-sbrc-filters__articles");this.searchBoxWrapper=document.querySelector(".abm-sbrc-filters__header__sub-header__search-wrapper");this.subHeader=document.querySelector(".abm-sbrc-filters__header__sub-header");this.searchBox=document.getElementById("sbrc-filter-searchBox");
this.searchIcon=document.getElementById("sbrc-filter-searchIcon");this.searchClearIcon=document.getElementById("sbrc-filter-searchCloseIcon");this.loadMoreBtn=document.getElementById("sbrc-load-more");this.promoTile=document.getElementById("sbrc-promo-tile");this.sbrcLoader=document.querySelector(".abm-loader-overlay");this.errorBlock=document.getElementById("sbrcFilterApiErrorMessage");this.getAllResourceFilters();this.createCompObjects();this.cloneHomeElements();this.alignPromoTile(!0);this.setupEvents()},
getAllResourceFilters:function(){var a=this;document.querySelectorAll(".abm-sbrc-filters__wrapper__dropdown-list__items").forEach(function(b){b&&a.resourceFilters.push(b)});document.querySelectorAll(".filter-content__item").forEach(function(b){b&&a.mobileFilters.push(b)})},createCompObjects:function(){this.sbrcFilterComponent&&(this.compObject={loadMoreCount:+this.sbrcFilterComponent.dataset.loadmorecount,initialLoadCount:+this.sbrcFilterComponent.dataset.initialloadcount,noResultText:this.sbrcFilterComponent.dataset.noresult,
errorText:this.sbrcFilterComponent.dataset.errortext,isAuthor:this.sbrcFilterComponent.dataset.isauthor,locale:this.sbrcFilterComponent.dataset.locale,baseurl:this.sbrcFilterComponent.dataset.url,contentTypes:this.sbrcFilterComponent.dataset.contenttypes,isHomeClicked:!1,currentArticleCount:0,currentHomeArticleCount:0,totalResultCount:0,initialHomeArticalCount:0,isLoadMoreClicked:!1,hamburgerPosition:0})},cloneHomeElements:function(){if(this.homeArticleContainer){var a=this;this.homeArticleContainer.querySelectorAll(".abm-sbrc-filters__articles--home__wrapper").forEach(function(b){a.homeArticlesList.push(b.cloneNode(!0));
b&&b.classList&&!b.classList.contains("pagination-content")&&(a.compObject.initialHomeArticalCount+=1)});a.compObject.currentHomeArticleCount=a.compObject.initialHomeArticalCount;a.initiateAnalyticsCall("home",a.homeArticlesList.length,!1,!0)}this.promoTile&&(this.clonedPromoTile=this.promoTile.cloneNode(!0))},alignPromoTile:function(a){var b=this;if(this.promoTile&&this.promoTile.classList&&a&&this.homeArticleContainer){var c=this.homeArticleContainer.querySelectorAll(".abm-sbrc-filters__articles--home__wrapper");
amznbase.isIE11()&&0>=this.promoTile.childElementCount&&(this.promoTile=this.clonedPromoTile);c.forEach(function(f,g){4<c.length&&4===g?(b.homeArticleContainer.insertBefore(b.promoTile,f),b.promoTile.classList.remove("hide")):4>=c.length&&(b.homeArticleContainer.appendChild(b.promoTile,f),b.promoTile.classList.remove("hide"))})}else if(this.promoTile&&this.promoTile.classList&&!a){var e=b.articlesContainer.querySelectorAll(".abm-sbrc-filters__articles__wrapper");amznbase.isIE11&&0>=this.promoTile.childElementCount&&
(this.promoTile=this.clonedPromoTile);e.forEach(function(f,g){4<e.length&&4===g?(b.articlesContainer.insertBefore(b.promoTile,f),b.promoTile.classList.remove("hide")):4>=e.length&&(b.articlesContainer.appendChild(b.promoTile,f),b.promoTile.classList.remove("hide"))})}},setupEvents:function(){var a=this;this.resourceFilters.forEach(function(b){b.childNodes.forEach(function(c){if(c&&c.classList&&c.classList.contains("sbrc-filters-options")){var e=c.querySelectorAll(".sbrc-filters-options__list__item");
b.blur();["mouseenter","mouseleave","click"].forEach(function(f){b.removeEventListener(f,a.toggleCatMenu.bind(a,b,c));b.addEventListener(f,a.toggleCatMenu.bind(a,b,c))});e.forEach(function(f){["click","keydown"].forEach(function(g){f.removeEventListener(g,a.fetchData.bind(a,f,!1,!1,!1));f.addEventListener(g,a.fetchData.bind(a,f,!1,!1,!1))})})}});b.classList&&b.classList.contains("empty-filter")&&["click","keydown"].forEach(function(c){b.classList.contains("home")?(b.removeEventListener(c,a.displayHomeData.bind(a,
!1)),b.addEventListener(c,a.displayHomeData.bind(a,!1))):(b.removeEventListener(c,a.fetchData.bind(a,b,!1,!1,!1)),b.addEventListener(c,a.fetchData.bind(a,b,!1,!1,!1)))})});this.mobileFilters.forEach(function(b){b.childNodes.forEach(function(c){if(c&&c.classList&&c.classList.contains("filter-content__item__sub-category")){var e=b.querySelector(".filter-content__item__label-wrapper"),f=c.querySelectorAll(".filter-content__item__sub-category__list__item");e&&(e.blur(),e.removeEventListener("click",a.toggleMobMenu.bind(a,
e,c)),e.addEventListener("click",a.toggleMobMenu.bind(a,e,c)),f.forEach(function(g){["click","keydown"].forEach(function(h){g.addEventListener(h,a.fetchData.bind(a,g,!1,!0,!1))})}))}});b.classList&&b.classList.contains("empty-filter")&&["click","keydown"].forEach(function(c){b.classList.contains("home")?(b.removeEventListener(c,a.displayHomeData.bind(a,!0)),b.addEventListener(c,a.displayHomeData.bind(a,!0))):(b.removeEventListener(c,a.fetchData.bind(a,b,!1,!0,!1)),b.addEventListener(c,a.fetchData.bind(a,
b,!1,!0,!1)))})});this.mobileHamburgerMenu&&(this.mobileHamburgerMenu.removeEventListener("click",a.openMobileFilterMenu.bind(this)),this.mobileHamburgerMenu.addEventListener("click",a.openMobileFilterMenu.bind(this)));this.searchBox&&this.searchIcon&&this.searchClearIcon&&(this.searchBox.addEventListener("keydown",a.fetchData.bind(a,!1,!0,!1,!1)),["click","keydown"].forEach(function(b){a.searchIcon.addEventListener(b,a.fetchData.bind(a,!1,!0,!1,!1));a.searchClearIcon.addEventListener(b,a.fetchData.bind(a,
!1,!0,!1,!0))}));this.loadMoreBtn&&this.loadMoreBtn.addEventListener("click",a.loadMoreData.bind(a))},clearSearch:function(){},openMobileFilterMenu:function(){this.mobileContainer&&this.mobileContainer.classList&&!this.mobileContainer.classList.contains("open")&&(this.compObject.hamburgerPosition=window.scrollY,this.mobileCloseBtn.addEventListener("click",this.hideMobileMenu.bind(this)),this.mobileHamburgerMenu.setAttribute("aria-expanded",!0),this.mobileContainer.setAttribute("aria-hidden",!1),this.mobileContainer.classList.add("open"),
amznbase.isiOSDevice()?document.body.style.overflow="hidden":(document.body.style.position="fixed",document.body.style.width="100%"))},hideMobileMenu:function(){if(this.mobileContainer&&this.mobileContainer.classList){var a=this;amznbase.isiOSDevice()?document.body.style.overflow="":(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,parseInt(a.compObject.hamburgerPosition||"0",10)));var b=this.mobileContainer.querySelectorAll(".filter-content__item__label-wrapper.open");
this.mobileContainer.classList.remove("open");this.mobileContainer.setAttribute("aria-hidden",!0);this.mobileHamburgerMenu.setAttribute("aria-expanded",!1);b&&b.forEach(function(c){a.hideMenu(c,!0)})}},toggleCatMenu:function(a,b,c){c.stopImmediatePropagation();b="mouseenter"===c.type;var e="mouseleave"===c.type;c="click"===c.type;a&&(b||e||c)&&(a.classList&&a.classList.contains("open")&&(e||c)?(a.children[0].setAttribute("aria-expanded",!1),this.hideMenu(a)):a.classList.contains("open")||!b&&!c||
(a.children[0].setAttribute("aria-expanded",!0),this.showMenu(a)))},toggleMobMenu:function(a,b,c){c.stopImmediatePropagation();a&&a.classList&&(a.classList.contains("open")?(a.setAttribute("aria-expanded",!1),this.hideMenu(a,!0)):a.classList.contains("open")||(a.setAttribute("aria-expanded",!0),this.showMenu(a,!0)))},showMenu:function(a,b){b?(document.querySelectorAll(".filter-content__item__label-wrapper.open").forEach(function(c){if(c.classList){c.classList.remove("open");var e=c.querySelector(".collapse");
e&&e.classList&&(e.classList.remove("collapse"),e.classList.add("expand"));c.parentElement&&c.parentElement.classList&&c.parentElement.classList.remove("open")}}),a.classList.add("open"),a.parentElement&&a.parentElement.classList&&a.parentElement.classList.add("open"),(a=a.querySelector(".expand"))&&a.classList&&(a.classList.remove("expand"),a.classList.add("collapse"))):(document.querySelectorAll(".abm-sbrc-filters__wrapper__dropdown-list__items.open").forEach(function(c){c.classList&&c.classList.remove("open")}),
a.classList.add("open"),(a=a.querySelector(".down-arrow"))&&a.classList&&(a.classList.remove("down-arrow"),a.classList.add("up-arrow")))},hideMenu:function(a,b){b&&a.classList?((b=a.querySelector(".collapse"))&&b.classList&&(b.classList.remove("collapse"),b.classList.add("expand")),a.classList.remove("open"),a.parentElement&&a.parentElement.classList&&a.parentElement.classList.remove("open")):((b=a.querySelector(".up-arrow"))&&b.classList&&(b.classList.remove("up-arrow"),b.classList.add("down-arrow")),
a.classList.remove("open"))},fetchData:function(a,b,c,e,f){var g="click"===f.type,h=!1;if(b||"keydown"!==f.type||"13"!==f.keyCode&&"32"!==f.keyCode)if(b&&"keydown"===f.type&&13===f.keyCode){h=!0;var k=this.searchBox.value}else b&&g&&"sbrc-filter-searchIcon"===f.target.id&&(k=this.searchBox.value);else h=!0;(g||h)&&this.searchIcon&&this.searchIcon.classList&&this.searchClearIcon&&this.searchClearIcon.classList&&(!b&&this.searchBox&&this.subHeader&&this.subHeader.classList&&this.searchBoxWrapper&&this.searchBoxWrapper.classList&&
(this.subHeader.classList.remove("search-hide"),this.searchBoxWrapper.classList.remove("hide"),this.searchBox.value="",this.searchClearIcon.classList.add("hide"),this.searchIcon.classList.remove("hide")),b&&!e&&this.searchBox&&""!==this.searchBox.value?(this.searchClearIcon.classList.remove("hide"),this.searchIcon.classList.add("hide")):e&&b&&(this.searchBox.value="",this.searchClearIcon.classList.add("hide"),this.searchIcon.classList.remove("hide")));a||(a=document.querySelector(".sbrc-active-filter"));
(b=a.getAttribute("data-value"))&&(g||h)&&(g=this.compObject.baseurl+"?size\x3d"+this.compObject.initialLoadCount+"\x26locale\x3d"+this.compObject.locale+"\x26content-type\x3d"+this.compObject.contentTypes+"\x26tags\x3d"+b+(k?"\x26q\x3d"+k:""),amznbase.isIE11()&&this.promoTile&&0<this.promoTile.childElementCount&&this.clonedPromoTile&&(this.clonedPromoTile=this.promoTile.cloneNode(!0)),this.articlesContainer.innerHTML="",this.initiateApiCall(g,a,c))},initiateApiCall:function(a,b,c,e){var f=this;try{f.sbrcLoader&&
f.sbrcLoader.classList&&f.sbrcLoader.classList.remove("hide");var g;amznbase.makeHttpRequest(a,"GET",function(h,k){amznbase.invalidResponses.includes(h)||(g=JSON.parse(k));g&&g.hits&&g.hits.hit&&0<g.hits.hit.length?(f.compObject.currentArticleCount=e?f.compObject.currentArticleCount+g.hits.hit.length:g.hits.hit.length,""===amznbase.getUrlParameter("q",a)?(f.compObject.totalResultCount=g.hits.found,f.initiateAnalyticsCall(a,g.hits.found,!1)):f.initiateAnalyticsCall(a,g.hits.found,!0),f.loadMoreBtn&&
f.loadMoreBtn.classList&&(g.hits&&g.hits.found>f.compObject.currentArticleCount?(f.loadMoreBtn.classList.remove("hide"),f.loadMoreBtn.parentElement&&f.loadMoreBtn.parentElement.classList&&f.loadMoreBtn.parentElement.classList.remove("hide")):f.loadMoreBtn.classList.add("hide")),e&&f.articlesContainer&&(amznbase.oldListLength=f.articlesContainer.childElementCount),f.createArticlesTiles(g.hits.hit,b,c,e),f.updateCountsLabel(f.compObject.currentArticleCount,g.hits.found,amznbase.getUrlParameter("q",
a))):(""===amznbase.getUrlParameter("q",a)?(f.compObject.totalResultCount=0,f.initiateAnalyticsCall(a,0,!1)):f.initiateAnalyticsCall(a,0,!0),f.showErrorBlock(!1,b,c))})}catch(h){f.showErrorBlock(!0,b,c),""===amznbase.getUrlParameter("q",a)?(f.compObject.totalResultCount=0,f.initiateAnalyticsCall(a,0,!1,!0)):f.initiateAnalyticsCall(a,0,!0,!0)}},initiateAnalyticsCall:function(a,b,c,e){if(a&&0<=b&&digitalData){var f=this.compObject.totalResultCount,g;c?g=b:f=b;a={selectedFilter:"home"===a?"home":amznbase.getUrlParameter("tags",
a),totalResults:f,searchTerm:"home"===a?"":amznbase.getUrlParameter("q",a),searchResultCount:g};digitalData.sbrcFilters=a}e||"undefined"===typeof _satellite||null===_satellite||_satellite.track("sbrc_resource_filter_tags")},showErrorBlock:function(a,b,c){this.errorBlock&&this.errorBlock.classList&&this.compObject&&(this.errorBlock.innerHTML=a?this.compObject.errorText:this.compObject.noResultText,this.errorBlock.classList.remove("hide"));this.articlesContainer&&this.articlesContainer.classList&&(amznbase.isIE11()&&
this.promoTile&&0<this.promoTile.childElementCount&&this.clonedPromoTile&&(this.clonedPromoTile=this.promoTile.cloneNode(!0)),this.articlesContainer.innerHTML="",this.articlesContainer.classList.add("hide"));this.homeArticleContainer&&this.homeArticleContainer.classList&&this.homeArticleContainer.classList.add("hide");this.loadMoreBtn&&this.loadMoreBtn.classList&&this.loadMoreBtn.classList.add("hide");this.updateCountsLabel();c&&this.hideMobileMenu();this.removeActiveLabel();b&&b.classList&&(b.classList.add("sbrc-active-filter"),
this.addActiveToParent(b));this.sbrcLoader&&this.sbrcLoader.classList&&this.sbrcLoader.classList.add("hide")},displayHomeData:function(a,b){b.stopImmediatePropagation();var c=this,e="click"===b.type,f=!1;"keydown"!==b.type||"13"!==b.keyCode&&"32"!==b.keyCode||(f=!0);if((e||f)&&(this.dekstopHomeBtn.classList||this.mobHomeBtn.classList)&&this.homeArticleContainer&&this.homeArticleContainer.classList){c.compObject.currentHomeArticleCount=c.compObject.initialHomeArticalCount;a&&c.hideMobileMenu();c.sbrcLoader&&
c.sbrcLoader.classList&&c.sbrcLoader.classList.remove("hide");c.errorBlock&&c.errorBlock.classList&&c.errorBlock.classList.add("hide");if(amznbase.isIE11()&&c.homeArticlesList){var g=[];c.homeArticlesList.forEach(function(h){g.push(h.cloneNode(!0))});c.homeArticlesList=g;c.promoTile&&c.clonedPromoTile&&0<c.promoTile.childElementCount&&(c.clonedPromoTile=c.promoTile.cloneNode(!0))}c.homeArticleContainer.innerHTML="";c.removeActiveLabel();c.removeParentActiveLabel();c.compObject.isHomeClicked=!0;c.cachedHomeData=
[];c.errorBlock&&c.errorBlock.classList&&c.errorBlock.classList.add("hide");c.homeArticlesList&&c.homeArticlesList.forEach(function(h){h.classList.contains("pagination-content")?c.cachedHomeData.push(h.cloneNode(!0)):c.homeArticleContainer.append(h)});this.dekstopHomeBtn.classList.add("sbrc-active-filter");this.mobHomeBtn.classList.add("sbrc-active-filter");this.homeArticleContainer.classList.remove("hide");this.articlesContainer.classList.add("hide");this.articlesContainer.innerHTML="";0<c.cachedHomeData.length&&
c.loadMoreBtn&&c.loadMoreBtn.classList?c.loadMoreBtn.classList.remove("hide"):c.loadMoreBtn&&c.loadMoreBtn.classList&&c.loadMoreBtn.classList.add("hide");c.promoTile&&c.alignPromoTile(!0);c.searchBoxWrapper&&c.searchBoxWrapper.classList&&c.subHeader&&c.subHeader.classList&&(c.searchBoxWrapper.classList.add("hide"),c.subHeader.classList.add("search-hide"));c.updateCountsLabel(c.compObject.currentHomeArticleCount,c.homeArticlesList.length);c.sbrcLoader&&c.sbrcLoader.classList&&c.sbrcLoader.classList.add("hide");
c.initiateAnalyticsCall("home",c.homeArticlesList.length,!1,!1)}},createArticlesTiles:function(a,b,c,e){var f=this;a.forEach(function(g){var h=document.createElement("li");h.classList.add("abm-sbrc-filters__articles__wrapper");var k=document.createElement("a"),m=document.createElement("div");m.classList.add("image-wrapper");var n=document.createElement("img");n.classList.add("lazyload");var t=document.createElement("div");t.classList.add("text-wrapper");var u=document.createElement("h3");u.classList.add("text-wrapper__title");
var x=document.createElement("p");x.classList.add("text-wrapper__desc");if(g.fields){k.href=g.fields.uri;k.setAttribute("data-sbrc-filter-tiles",g.fields.title);var y=g.fields.image;y="true"===f.compObject.isAuthor&&y?y.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+y;n.setAttribute("data-src",y+".transform/696x320/image.jpg");n.alt=g.fields.title;u.innerText=g.fields.title;x.innerText=g.fields.description;n.setAttribute("data-srcset",y+".transform/696x320/image.jpg 2x,"+
y+".transform/348x160/image.jpg 1x")}m.appendChild(n);t.appendChild(u);t.appendChild(x);k.appendChild(m);k.appendChild(t);h.appendChild(k);f.articlesContainer.appendChild(h)});f.homeArticleContainer&&f.homeArticleContainer.classList&&f.articlesContainer&&f.articlesContainer.classList&&b.classList&&(f.removeActiveLabel(),f.homeArticleContainer.classList.add("hide"),f.articlesContainer.classList.remove("hide"),b.classList.add("sbrc-active-filter"),f.addActiveToParent(b));e&&f.articlesContainer&&f.focusElementOnListRefresh(f.articlesContainer);
f.errorBlock&&f.errorBlock.classList&&f.errorBlock.classList.add("hide");c&&f.hideMobileMenu();f.promoTile&&f.alignPromoTile(!1);f.searchBoxWrapper&&f.searchBoxWrapper.classList&&f.subHeader&&f.subHeader.classList&&(f.searchBoxWrapper.classList.remove("hide"),f.subHeader.classList.remove("search-hide"));f.sbrcLoader&&f.sbrcLoader.classList&&f.sbrcLoader.classList.add("hide")},addActiveToParent:function(a){if(a&&a.classList&&a.parentElement&&a.parentElement.parentElement&&a.parentElement.parentElement.parentElement&&
(a=a.classList.contains("empty-filter")?a:a.parentElement.parentElement.parentElement)&&a.classList){var b;a.classList.contains("sbrc-category-one")?b=".sbrc-category-one":a.classList.contains("sbrc-category-two")?b=".sbrc-category-two":a.classList.contains("sbrc-category-three")?b=".sbrc-category-three":a.classList.contains("sbrc-category-four")&&(b=".sbrc-category-four");b&&(b=document.querySelectorAll(b),this.removeParentActiveLabel(),b.forEach(function(c){c&&c.classList&&c.classList.add("active-category")}))}},
removeActiveLabel:function(){document.querySelectorAll(".sbrc-active-filter").forEach(function(a){a.classList&&a.classList.remove("sbrc-active-filter")})},removeParentActiveLabel:function(){document.querySelectorAll(".active-category").forEach(function(a){a.classList&&a.classList.remove("active-category")})},loadMoreHomeData:function(){var a=this,b=[];if(this.cachedHomeData&&this.compObject&&this.homeArticleContainer){a.sbrcLoader&&a.sbrcLoader.classList&&a.sbrcLoader.classList.remove("hide");amznbase.oldListLength=
this.promoTile?this.compObject.currentHomeArticleCount+1:this.compObject.currentHomeArticleCount;if(this.compObject.isHomeClicked)this.cachedHomeData.forEach(function(e,f){a.cachedHomeData.length>a.compObject.loadMoreCount?e&&e.classList&&f<a.compObject.loadMoreCount?(e.classList.remove("pagination-content"),a.homeArticleContainer.appendChild(e),a.compObject.currentHomeArticleCount+=1):b.push(e):e&&e.classList&&(e.classList.remove("pagination-content"),a.homeArticleContainer.appendChild(e),a.compObject.currentHomeArticleCount+=
1,f===a.cachedHomeData.length-1&&(a.cachedHomeData=[]))}),0<b.length&&(a.cachedHomeData=b,b=[]),0===a.cachedHomeData.length&&a.loadMoreBtn&&a.loadMoreBtn.classList&&a.loadMoreBtn.classList.add("hide");else{var c=a.homeArticleContainer.querySelectorAll(".pagination-content");c.forEach(function(e,f){c.length>a.compObject.loadMoreCount?e&&e.classList&&f<a.compObject.loadMoreCount&&(e.classList.remove("pagination-content"),a.compObject.currentHomeArticleCount+=1):e&&e.classList&&(e.classList.remove("pagination-content"),
a.compObject.currentHomeArticleCount+=1,f===c.length-1&&(c=[]))});0===c.length&&a.loadMoreBtn&&a.loadMoreBtn.classList&&a.loadMoreBtn.classList.add("hide")}a.focusElementOnListRefresh(a.homeArticleContainer);a.updateCountsLabel(a.compObject.currentHomeArticleCount,a.homeArticlesList.length);a.sbrcLoader&&a.sbrcLoader.classList&&a.sbrcLoader.classList.add("hide")}},updateCountsLabel:function(a,b,c){var e=document.querySelector(".abm-sbrc-filters__header__count-label"),f=document.querySelector(".abm-sbrc-filters__header__count-label__current-count"),
g=document.querySelector(".abm-sbrc-filters__header__count-label__total-count"),h=document.querySelector(".abm-sbrc-filters__header__count-label__search");f&&g&&a&&b&&e&&e.classList?(f.innerHTML="1 - "+a+" of ",g.innerHTML=b,h&&h.classList&&(""!==h.textContent||c)?h.classList.remove("hide"):h.classList.add("hide"),e.classList.remove("hide")):f&&g&&h&&(f.innerHTML="",g.innerHTML="",h.textContent="");c&&h?h.textContent=' results for "'+c+'"':""!==c&&void 0!==c||!h||(h.textContent="")},loadMoreData:function(a){0===
a.clientX&&0===a.clientY?this.compObject.isLoadMoreClicked=!0:amznbase.isIE11()&&""===a.pointerType&&(this.compObject.isLoadMoreClicked=!0);(a=document.querySelector(".sbrc-active-filter"))&&a.classList&&(a.classList.contains("home")?this.loadMoreHomeData():this.fetchLoadMoreData(a))},fetchLoadMoreData:function(a){if(this.searchBox)var b=this.searchBox.value;if(this.compObject&&a){var c=a.getAttribute("data-value");this.initiateApiCall(this.compObject.baseurl+"?locale\x3d"+this.compObject.locale+
"\x26content-type\x3d"+this.compObject.contentTypes+"\x26tags\x3d"+c+(b?"\x26q\x3d"+b:"")+"\x26size\x3d"+this.compObject.loadMoreCount+"\x26start\x3d"+this.compObject.currentArticleCount,a,!1,!0)}},focusElementOnListRefresh:function(a){var b=this;a&&b.compObject.isLoadMoreClicked&&amznbase.oldListLength&&a.children.forEach(function(c,e){e===amznbase.oldListLength&&(c.querySelector("a").focus(),b.compObject.isLoadMoreClicked=!1)})}};window.addEventListener("DOMContentLoaded",function(){document.getElementById("sbrc-filter-component")&&
(d.init(),window.onpopstate=function(){window.location.reload()})})})();
(function(){var d={init:function(){this.eventsFilter=[];this.compObject={};this.eventFilterApiObj={};this.paginationData={};this.eventsTagColorData=[];this.sortElements=[];this.monthElements=[];this.yearElements=[];this.eventsFilterComponent=document.querySelector(".abm-events-filter");this.mobileFilterMenu=document.getElementById("overflow-events-filter-trigger");this.eventFiltersContainer=document.getElementById("events-filter-overflow");this.mobileCloseBtn=document.getElementById("mobile-events-close");
this.articlesContainer=document.querySelector(".abm-events-filter__content-container__articles");this.searchBoxWrapper=document.querySelector(".abm-events-filter__content-container__header__search-wrapper");this.searchBox=document.getElementById("events-filter-searchBox");this.searchIcon=document.getElementById("events-filter-searchIcon");this.searchClearIcon=document.getElementById("events-filter-searchCloseIcon");this.eventsLoader=document.querySelector(".abm-loader-overlay");this.errorBlock=document.getElementById("eventsFilterErrorMessage");
this.clearAllBtns=document.querySelectorAll(".abm-events-filter__filter-container__clearAll");this.eventSortDropdown=document.getElementById("events-sort-dropdown-trigger");this.eventMonthDropdown=document.getElementById("eventDate--month");this.eventYearDropdown=document.getElementById("eventDate--year");this.paginationWrapper=document.querySelector(".abm-events-filter__content-container__pagination");this.eventTagsColorElement=document.querySelectorAll(".event-tag-colors");this.convertId();this.getAllEventsFilters();
this.createCompObjects();this.setupEvents();this.initializeDropdown();this.makeSelectionFromUrl();this.fetchDataOnPageLoad()},getAllEventsFilters:function(){var a=this;document.querySelectorAll(".events-filter-content__item").forEach(function(b){b&&a.eventsFilter.push(b)});document.querySelectorAll(".events-sort-options").forEach(function(b){b&&a.sortElements.push(b)});document.querySelectorAll(".events-month-options").forEach(function(b){b&&a.monthElements.push(b)});document.querySelectorAll(".events-year-options").forEach(function(b){b&&
a.yearElements.push(b)})},createCompObjects:function(){var a=this;this.eventsFilterComponent&&(this.compObject={totalTilesOnPage:6,noResultText:this.eventsFilterComponent.dataset.noresult,errorText:this.eventsFilterComponent.dataset.errortext,isAuthor:this.eventsFilterComponent.dataset.isauthor,locale:this.eventsFilterComponent.dataset.locale,baseurl:this.eventsFilterComponent.dataset.url,ctaLabel:this.eventsFilterComponent.dataset.ctalabel,mobileFilterMenuBtnPos:0,totalResultCount:0,finalApiUrl:"",
isYoutubePerformanceEnabled:this.eventsFilterComponent.dataset.enableyoutubeperformance},this.eventFilterApiObj={eventType:[],filterOne:[],filterTwo:[],filterThree:[],filterFour:[],filterFive:[],filterSix:[],filterSeven:[],filterEight:[],eventSort:this.eventSortDropdown?this.eventSortDropdown.value:"",eventMonth:"",eventYear:"",start:0,size:6,searchQuery:""},this.paginationData={size:6,start:0,found:0},0<this.eventTagsColorElement.length&&this.eventTagsColorElement.forEach(function(b){var c=b.querySelector(".event-type-name"),
e=b.querySelector(".event-tag-bg");b=b.querySelector(".event-title-color");c={eventType:c?c.getAttribute("data-value"):"",eventColor:e?e.getAttribute("data-value"):"",labelColor:b?b.getAttribute("data-value"):""};a.eventsTagColorData.push(c)}))},initializeDropdown:function(a){!a&&this.eventSortDropdown&&0<this.sortElements.length&&(this.eventSortDropdown.innerHTML=this.sortElements[0].innerHTML,this.eventFilterApiObj.eventSort=this.sortElements[0].getAttribute("data-value"));this.eventMonthDropdown&&
0<this.monthElements.length&&(this.eventMonthDropdown.innerHTML=this.monthElements[0].innerHTML);this.eventYearDropdown&&0<this.yearElements.length&&(this.eventYearDropdown.innerHTML=this.yearElements[0].innerHTML)},setupEvents:function(){var a=this;this.eventsFilter.forEach(function(b){if(b){var c=b.querySelector(".events-filter-content__item__label-wrapper"),e=b.querySelectorAll(".events-filter-content__item__sub-event__list__item__btn");b=b.querySelectorAll(".events-filter-checkbox");c&&(c.blur(),
c.addEventListener("click",a.toggleEventsFilter.bind(a,c)),e.forEach(function(f){f.addEventListener("keydown",a.fetchData.bind(a,f,!1))}),b.forEach(function(f){f.addEventListener("change",a.fetchData.bind(a,f,!1))}))}});this.mobileFilterMenu&&(this.mobileFilterMenu.removeEventListener("click",a.openMobileFilterMenu.bind(this)),this.mobileFilterMenu.addEventListener("click",a.openMobileFilterMenu.bind(this)));this.searchBox&&this.searchIcon&&this.searchClearIcon&&(this.searchBox.addEventListener("keydown",
a.initiateSearch.bind(a,!1)),["click","keydown"].forEach(function(b){a.searchIcon.addEventListener(b,a.initiateSearch.bind(a,!1));a.searchClearIcon.addEventListener(b,a.initiateSearch.bind(a,!0))}));this.clearAllBtns.forEach(function(b){b.addEventListener("click",a.clearAllFilters.bind(a))});["click","keydown"].forEach(function(b){a.eventSortDropdown&&a.eventSortDropdown.addEventListener(b,a.toggleDropdown.bind(a,a.eventSortDropdown));a.eventMonthDropdown&&a.eventMonthDropdown.addEventListener(b,
a.toggleDropdown.bind(a,a.eventMonthDropdown));a.eventYearDropdown&&a.eventYearDropdown.addEventListener(b,a.toggleDropdown.bind(a,a.eventYearDropdown));a.sortElements.forEach(function(c){c&&c.addEventListener(b,a.fetchData.bind(a,c,!0))});a.monthElements.forEach(function(c){c&&c.addEventListener(b,a.fetchData.bind(a,c,!0))});a.yearElements.forEach(function(c){c&&c.addEventListener(b,a.fetchData.bind(a,c,!0))})});document.addEventListener("click",a.addEventsToPagination.bind(a));document.addEventListener("keydown",
a.addEventsToPagination.bind(a));window.addEventListener("resize",function(){1024<=this.window.innerWidth&&a.hideMobileMenu()})},toggleDropdown:function(a,b){var c=this.checkEvents(b,!1,!0,!1);b=this.checkEvents(b,!0,!1,!1);a&&a.parentNode&&(c||b)&&(c=a.parentNode.querySelector(".events-dropdown"))&&c.classList&&(c.classList.contains("open")?(c.classList.add("hide"),c.classList.remove("open"),a.classList.remove("open")):(c.classList.remove("hide"),c.classList.add("open"),a.classList.add("open")))},
checkEvents:function(a,b,c,e){return b&&a&&"click"===a.type||c&&a&&"keydown"===a.type&&(e&&13===a.keyCode||!e&&(13===a.keyCode||32===a.keyCode))?!0:!1},closeAllDropDowns:function(a){var b;a&&"events-sort-dropdown-trigger"!==a.target.id&&this.eventSortDropdown&&this.eventSortDropdown.parentNode&&(b=this.eventSortDropdown.parentNode.querySelector(".events-dropdown"))&&b.classList&&b.classList.contains("open")&&(b.classList.add("hide"),b.classList.remove("open"),this.eventSortDropdown.classList.remove("open"));
a&&"eventDate--month"!==a.target.id&&this.eventMonthDropdown&&this.eventMonthDropdown.parentNode&&(b=this.eventMonthDropdown.parentNode.querySelector(".events-dropdown"))&&b.classList&&b.classList.contains("open")&&(b.classList.add("hide"),b.classList.remove("open"),this.eventMonthDropdown.classList.remove("open"));a&&"eventDate--year"!==a.target.id&&this.eventYearDropdown&&this.eventYearDropdown.parentNode&&(b=this.eventYearDropdown.parentNode.querySelector(".events-dropdown"))&&b.classList&&b.classList.contains("open")&&
(b.classList.add("hide"),b.classList.remove("open"),this.eventYearDropdown.classList.remove("open"))},addEventsToPagination:function(a){var b=this.checkEvents(a,!1,!0,!1),c=this.checkEvents(a,!0,!1,!1);if(b||c)this.closeAllDropDowns(a),a.target.matches(".events-page-link")&&!a.target.matches(".events-current-page")?(a=+a.target.getAttribute("data-page"),this.paginationData.start=1<a?this.paginationData.size*(a-1):0,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!0)):a.target.matches(".events-next-page")?
(this.paginationData.start+=this.paginationData.size,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!0)):a.target.matches(".events-previous-page")&&(this.paginationData.start-=this.paginationData.size,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!0))},fetchDataOnPageLoad:function(a){var b=this.getEventFilterParams();b&&b.length?(this.preSelectFilter(b,a),a=this.createApiParams(!1),this.onLoadUpdateFilterCounts()):(a=this.createApiParams(!0),this.updateFilterCounts(!1));this.initiateApiCall(a,
!1)},openMobileFilterMenu:function(){this.eventFiltersContainer&&this.eventFiltersContainer.classList&&!this.eventFiltersContainer.classList.contains("open")&&(this.compObject.mobileFilterMenuBtnPos=window.scrollY,this.mobileCloseBtn.addEventListener("click",this.hideMobileMenu.bind(this)),this.mobileFilterMenu.setAttribute("aria-expanded",!0),this.eventFiltersContainer.setAttribute("aria-hidden",!1),this.eventFiltersContainer.classList.add("open"),amznbase.isiOSDevice()?document.body.style.overflow=
"hidden":(document.body.style.position="fixed",document.body.style.width="100%"));this.initiateAnalyticsCall("","Mobile Filter Button","",!1,!1)},hideMobileMenu:function(){this.eventFiltersContainer&&this.eventFiltersContainer.classList&&this.eventFiltersContainer.classList.contains("open")&&(amznbase.isiOSDevice()?document.body.style.overflow="":(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,parseInt(this.compObject.mobileFilterMenuBtnPos||
"0",10))),this.eventFiltersContainer.classList.remove("open"),this.eventFiltersContainer.setAttribute("aria-hidden",!0),this.mobileFilterMenu.setAttribute("aria-expanded",!1))},toggleEventsFilter:function(a,b){b.stopImmediatePropagation();this.closeAllDropDowns(b);a&&a.classList&&(a.classList.contains("open")?(a.setAttribute("aria-expanded",!1),this.hideMenu(a)):a.classList.contains("open")||(a.setAttribute("aria-expanded",!0),this.showMenu(a)))},showMenu:function(a){a.classList.add("open");var b=
a.querySelector(".expand");a=a.querySelector(".events-filter-content__item__label-wrapper__filter-count");b&&b.classList&&(b.classList.remove("expand"),b.classList.add("collapse"));a&&a.classList&&a.classList.add("hide")},hideMenu:function(a){var b=a.querySelector(".collapse"),c=a.querySelector(".events-filter-content__item__label-wrapper__filter-count");b&&b.classList&&(b.classList.remove("collapse"),b.classList.add("expand"));a.classList.remove("open");c&&c.classList&&c.classList.remove("hide")},
initiateSearch:function(a,b){var c=this.checkEvents(b,!1,!0,!0);b=this.checkEvents(b,!0,!1,!0);if(c||b)this.eventFilterApiObj.searchQuery=this.searchBox.value,this.searchIcon&&this.searchIcon.classList&&this.searchClearIcon&&this.searchClearIcon.classList&&(this.searchIcon.classList.add("hide"),this.searchClearIcon.classList.remove("hide"),a&&(this.searchIcon.classList.remove("hide"),this.searchClearIcon.classList.add("hide"))),a&&(this.eventFilterApiObj.searchQuery="",this.searchBox.value=""),this.paginationData.start=
0,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!1)},fetchData:function(a,b,c){c.stopImmediatePropagation();var e="change"===c.type,f=this.checkEvents(c,!1,!0,!1),g=this.checkEvents(c,!0,!1,!1),h=a;if(f||e||g){if(b){h=a;var k=h.getAttribute("data-value")}else{if(e=a.querySelector(".events-filter-checkbox"))e.checked=!e.checked,"false"===a.getAttribute("aria-checked")?a.setAttribute("aria-checked","true"):a.setAttribute("aria-checked","false"),h=e,k=h.getAttribute("data-value");a&&a.classList&&
a.classList.contains("events-filter-checkbox")&&(k=a.getAttribute("data-value"),a.parentNode&&("false"===a.parentNode.getAttribute("aria-checked")?a.parentNode.setAttribute("aria-checked","true"):a.parentNode.setAttribute("aria-checked","false")))}h&&(b?(this.updateDropdownSelectedElement(h),this.closeAllDropDowns(c),this.modifyFilterObject(h,!1,!0)):h.checked?this.modifyFilterObject(h,!0):this.modifyFilterObject(h,!1),this.paginationData.start=0,a=this.createApiParams(!1),this.updateFilterCounts(h),
this.initiateApiCall(a,k,!1))}},updateDropdownSelectedElement:function(a){a&&a.classList&&(a.classList.contains("eventSort")?this.eventSortDropdown.innerHTML=a.innerHTML:a.classList.contains("eventMonth")?this.eventMonthDropdown.innerHTML=a.innerHTML:a.classList.contains("eventYear")&&(this.eventYearDropdown.innerHTML=a.innerHTML))},modifyFilterObject:function(a,b,c){var e=this;this.eventFilterApiObj&&0<Object.keys(this.eventFilterApiObj).length&&Object.keys(this.eventFilterApiObj).forEach(function(f){if(a&&
a.classList&&a.classList.contains(f)){var g=a.getAttribute("data-value");c&&g?e.eventFilterApiObj[f]=g:b?e.eventFilterApiObj[f].push(g):e.eventFilterApiObj[f].forEach(function(h,k){h===g&&e.eventFilterApiObj[f].splice(k,1)})}})},createApiParams:function(a,b,c){var e=[];document.querySelectorAll(".eventType").forEach(function(g){g&&g.getAttribute("data-value")&&e.push(g.getAttribute("data-value"))});if(this.compObject&&this.eventFilterApiObj){var f=this.eventFilterApiObj.eventSort.split(" ");a?c=this.compObject.baseurl+
"?locale\x3d"+this.compObject.locale+"\x26start\x3d"+this.paginationData.start+"\x26size\x3d"+this.eventFilterApiObj.size+(e.toString()?"\x26event-type\x3d"+e.toString():"")+(1<f.length?"\x26sort\x3d"+f[0]+"\x26sortorder\x3d"+f[1]:"")+(this.eventFilterApiObj.searchQuery?"\x26q\x3d"+this.eventFilterApiObj.searchQuery:""):(a=b?amznbase.getUrlParameter("event-type",this.compObject.finalApiUrl):this.eventFilterApiObj.eventType.toString()?this.eventFilterApiObj.eventType.toString():"",b=(a?"\x26event-type\x3d"+
a:"")+(this.eventFilterApiObj.filterOne.toString()?"\x26"+document.querySelector(".filterOne").closest("li[queryid]").getAttribute("queryid")+"\x3d"+this.eventFilterApiObj.filterOne.toString():"")+(this.eventFilterApiObj.filterTwo.toString()?"\x26"+document.querySelector(".filterTwo").closest("li[queryid]").getAttribute("queryid")+"\x3d"+this.eventFilterApiObj.filterTwo.toString():"")+(this.eventFilterApiObj.filterThree.toString()?"\x26"+document.querySelector(".filterThree").closest("li[queryid]").getAttribute("queryid")+
"\x3d"+this.eventFilterApiObj.filterThree.toString():"")+(this.eventFilterApiObj.filterFour.toString()?"\x26"+document.querySelector(".filterFour").closest("li[queryid]").getAttribute("queryid")+"\x3d"+this.eventFilterApiObj.filterFour.toString():"")+(this.eventFilterApiObj.filterFive.toString()?"\x26"+document.querySelector(".filterFive").closest("li[queryid]").getAttribute("queryid")+"\x3d"+this.eventFilterApiObj.filterFive.toString():"")+(this.eventFilterApiObj.filterSix.toString()?"\x26"+document.querySelector(".filterSix").closest("li[queryid]").getAttribute("queryid")+
"\x3d"+this.eventFilterApiObj.filterSix.toString():"")+(this.eventFilterApiObj.filterSeven.toString()?"\x26"+document.querySelector(".filterSeven").closest("li[queryid]").getAttribute("queryid")+"\x3d"+this.eventFilterApiObj.filterSeven.toString():"")+(this.eventFilterApiObj.filterEight.toString()?"\x26"+document.querySelector(".filterEight").closest("li[queryid]").getAttribute("queryid")+"\x3d"+this.eventFilterApiObj.filterEight.toString():"")+(this.eventFilterApiObj.eventMonth?"\x26months\x3d"+
this.eventFilterApiObj.eventMonth:"")+(this.eventFilterApiObj.eventYear?"\x26years\x3d"+this.eventFilterApiObj.eventYear:""),c||window.history.replaceState(null,"",b?b.replace("\x26","?"):this.createRefinedUrl()),""===a&&(a=e.toString()),c=this.compObject.baseurl+"?locale\x3d"+this.compObject.locale+"\x26start\x3d"+this.paginationData.start+"\x26size\x3d"+this.eventFilterApiObj.size+(a?"\x26event-type\x3d"+a:"")+(this.eventFilterApiObj.filterOne.toString()?"\x26event-filter-1\x3d"+this.eventFilterApiObj.filterOne.toString():
"")+(this.eventFilterApiObj.filterTwo.toString()?"\x26event-filter-2\x3d"+this.eventFilterApiObj.filterTwo.toString():"")+(this.eventFilterApiObj.filterThree.toString()?"\x26event-filter-3\x3d"+this.eventFilterApiObj.filterThree.toString():"")+(this.eventFilterApiObj.filterFour.toString()?"\x26event-filter-4\x3d"+this.eventFilterApiObj.filterFour.toString():"")+(this.eventFilterApiObj.filterFive.toString()?"\x26event-filter-5\x3d"+this.eventFilterApiObj.filterFive.toString():"")+(this.eventFilterApiObj.filterSix.toString()?
"\x26event-filter-6\x3d"+this.eventFilterApiObj.filterSix.toString():"")+(this.eventFilterApiObj.filterSeven.toString()?"\x26event-filter-7\x3d"+this.eventFilterApiObj.filterSeven.toString():"")+(this.eventFilterApiObj.filterEight.toString()?"\x26event-filter-8\x3d"+this.eventFilterApiObj.filterEight.toString():"")+(this.eventFilterApiObj.eventMonth?"\x26months\x3d"+this.eventFilterApiObj.eventMonth:"")+(this.eventFilterApiObj.eventYear?"\x26years\x3d"+this.eventFilterApiObj.eventYear:"")+(1<f.length?
"\x26sort\x3d"+f[0]+"\x26sortorder\x3d"+f[1]:"")+(this.eventFilterApiObj.searchQuery?"\x26q\x3d"+this.eventFilterApiObj.searchQuery:""));if(c)return this.compObject.finalApiUrl=c}},initiateApiCall:function(a,b,c){var e=this;try{e.eventsLoader&&e.eventsLoader.classList&&e.eventsLoader.classList.remove("hide");var f;amznbase.makeHttpRequest(a,"GET",function(g,h){!amznbase.invalidResponses.includes(g)&&h&&(f=JSON.parse(h));f&&f.hits&&f.hits.hit&&0<f.hits.hit.length?(""!==amznbase.getUrlParameter("q",
a)||c?c||e.initiateAnalyticsCall(a,b,f.hits.found,!0):(e.compObject.totalResultCount=f.hits.found,e.initiateAnalyticsCall(a,b,f.hits.found,!1)),e.createArticlesTiles(f.hits.hit,c,f.hits.found),e.updateCountsLabel(f.hits.hit.length,f.hits.found,amznbase.getUrlParameter("q",a))):(""===amznbase.getUrlParameter("q",a)?(e.compObject.totalResultCount=0,e.initiateAnalyticsCall(a,0,!1)):e.initiateAnalyticsCall(a,0,!0),null!==g||f?e.showErrorBlock(!1):e.showErrorBlock(!0))})}catch(g){e.showErrorBlock(!0),
""===amznbase.getUrlParameter("q",a)?(e.compObject.totalResultCount=0,e.initiateAnalyticsCall(a,0,!1,!0)):e.initiateAnalyticsCall(a,0,!0,!0)}},initiateAnalyticsCall:function(a,b,c,e,f){if(digitalData){var g="",h="";a&&0<=c&&(g=this.compObject.totalResultCount,e?h=c:g=c);a={selectedFilter:b,totalResults:g,searchTerm:amznbase.getUrlParameter("q",a),searchResultCount:h};digitalData.eventFilters=a}f||"undefined"===typeof _satellite||null===_satellite||_satellite.track("events_filter_tags")},showErrorBlock:function(a){this.errorBlock&&
this.errorBlock.classList&&this.compObject&&(this.errorBlock.innerHTML=a?this.compObject.errorText:this.compObject.noResultText,this.errorBlock.classList.remove("hide"));this.articlesContainer&&this.articlesContainer.classList&&(this.articlesContainer.innerHTML="",this.articlesContainer.classList.add("hide"));this.updateCountsLabel();this.hideMobileMenu();this.resetPagination();this.paginationWrapper.classList.add("hide");this.eventsLoader&&this.eventsLoader.classList&&this.eventsLoader.classList.add("hide")},
createArticlesTiles:function(a,b,c){var e=this;this.articlesContainer.innerHTML="";a.forEach(function(f){var g=document.createElement("li");g.classList.add("abm-events-filter__content-container__articles__wrapper");var h=document.createElement("a"),k=document.createElement("div"),m=document.createElement("div"),n=f.fields.event_cover_image_alt;f.fields.event_cover_image_alt||(n=f.fields.title);if(f.fields){var t=f.fields.event_cover_image;t="true"===e.compObject.isAuthor&&t?t.replace("/assets/","/content/dam/amzn-biz/"):
amznbase.getValueFromMetaTag("cf-domain")+t;if("video"===f.fields.event_cover_type&&f.fields.event_cover_video||"youtube"===f.fields.event_cover_type&&f.fields.event_cover_youtube_id){m.classList.add("abm-events-filter__content-container__articles__wrapper__videoWrapper");if("youtube"===f.fields.event_cover_type)if(t=f.fields.event_cover_youtube_id,"true"===e.compObject.isYoutubePerformanceEnabled)k=document.createElement("div"),k.classList.add("performance-youtube-player"),k.setAttribute("data-id",
t),k.setAttribute("data-alt",n);else{k=document.createElement("iframe");var u=t;k.src="https://www.youtube.com/embed/"+t+"?playsinline\x3d0\x26enablejsapi\x3d1\x26rel\x3d0";k.setAttribute("frameborder","0");k.setAttribute("tabindex","-1");k.setAttribute("controls","true");k.setAttribute("allowfullscreen","");k.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture");k.setAttribute("sandbox","allow-scripts allow-same-origin allow-presentation");if(f.fields.event_cover_image){t=
document.createElement("img");u=document.querySelector(".youtube-icon-cover").children[0].cloneNode(!0);u.style.position="absolute";u.style.top="calc(50% - 30px)";u.style.left="0";u.style.right="0";u.style.margin="auto";t.classList.add("youtube-cover","lazyload");var x=f.fields.event_cover_image;x="true"===e.compObject.isAuthor&&x?x.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+x;t.setAttribute("data-src",x);t.alt=n;m.appendChild(t);m.appendChild(u)}}else k=
document.createElement("video"),u=f.fields.event_cover_video,k.classList.add("lazyload"),u="true"===e.compObject.isAuthor&&u?u.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+u,k.src=u,k.setAttribute("data-poster",u),t&&k.setAttribute("data-poster",t),k.title=n,k.setAttribute("tabindex","-1"),k.setAttribute("controls","true"),k.setAttribute("playsinline","true");t=document.createElement("div");t.classList.add("abm-events-filter__content-container__articles__wrapper__videoWrapper__overlay");
t.setAttribute("tabindex","0");t.setAttribute("aria-label",n);m.appendChild(k);"true"!==e.compObject.isYoutubePerformanceEnabled&&m.appendChild(t);g.appendChild(m)}else k.classList.add("image-wrapper"),m=document.createElement("img"),m.classList.add("lazyload"),m.setAttribute("data-src",t+".transform/696x390/image.jpg"),m.alt=n,m.setAttribute("aria-label",n),m.setAttribute("data-srcset",t+".transform/696x390/image.jpg 2x,"+t+".transform/348x195/image.jpg 1x"),k.appendChild(m),g.appendChild(k);n=document.createElement("div");
n.classList.add("events-date-time-wrapper");m=document.createElement("span");m.classList.add("events-date-time-wrapper__date");k=document.createElement("span");k.classList.add("events-date-time-wrapper__time");if(f.fields.event_date||f.fields.event_time)t=document.createElement("span"),t.classList.add("events-date-time-wrapper__calendar"),n.appendChild(t);f.fields.event_date&&(t=(new Date(f.fields.event_date)).toDateString().split(" ").slice(1),t=t[0]+" "+t[1]+", "+t[2])&&(m.innerHTML=t,n.appendChild(m));
f.fields.event_time&&(k.innerHTML=f.fields.event_time,n.appendChild(k));m=document.createElement("div");m.classList.add("text-wrapper");k=document.createElement("h3");k.classList.add("text-wrapper__title");var y=document.createElement("div");y.classList.add("text-wrapper__event");f.fields.event_type_titles&&f.fields.event_type_titles.forEach(function(B){var K=document.createElement("span");K.classList.add("text-wrapper__event__type");0<e.eventsTagColorData.length&&e.eventsTagColorData.forEach(function(E){E.eventType.toLowerCase()===
B.toLowerCase()&&(K.style.background=E.eventColor,K.style.color=E.labelColor)});K.innerHTML=B;y.appendChild(K)});t=document.createElement("p");t.classList.add("text-wrapper__desc");h.href=f.fields.uri;h.setAttribute("data-events-filter-tiles",f.fields.title);h.innerHTML=e.compObject.ctaLabel;k.innerText=f.fields.title;t.innerText=f.fields.description;m.appendChild(k);m.appendChild(y);m.appendChild(t);m.appendChild(h);0<n.childElementCount&&g.appendChild(n);g.appendChild(m);e.articlesContainer.appendChild(g)}});
e.articlesContainer&&e.articlesContainer.classList&&1<=e.articlesContainer.childElementCount&&e.articlesContainer.classList.remove("hide");b&&e.articlesContainer&&e.focusElementOnListRefresh();e.errorBlock&&e.errorBlock.classList&&e.errorBlock.classList.add("hide");e.hideMobileMenu();e.searchBoxWrapper&&e.searchBoxWrapper.classList&&e.searchBoxWrapper.classList.remove("hide");e.eventsLoader&&e.eventsLoader.classList&&e.eventsLoader.classList.add("hide");e.paginationData.found=c;e.resetPagination();
e.initializePagination(e.paginationData);amznbase.isTouchStarted=!1;amznbase.increaseYoutubePerformance()},initializePagination:function(a){var b=Math.trunc(a.found/a.size);0!==a.found%a.size&&(b+=1);a=Math.trunc(a.start/a.size)+1;1===a?6<b&&(document.querySelector(".events-next-page").classList.add("events-active"),document.querySelector(".events-ellipses-after").classList.add("events-active"),document.querySelector(".events-ellipses-before").classList.remove("events-active")):1<a&&7>a?(5<=a&&document.querySelector(".events-ellipses-before").classList.add("events-active"),
document.querySelector(".events-ellipses-after").classList.add("events-active"),document.querySelector(".events-next-page").classList.add("events-active"),document.querySelector(".events-previous-page").classList.add("events-active")):7<=a&&a<=b-7?(document.querySelector(".events-previous-page").classList.add("events-active"),document.querySelector(".events-next-page").classList.add("events-active"),document.querySelector(".events-ellipses-before").classList.add("events-active"),document.querySelector(".events-ellipses-after").classList.add("events-active")):
a>b-7&&a!==b?(document.querySelector(".events-previous-page").classList.add("events-active"),document.querySelector(".events-ellipses-before").classList.add("events-active"),document.querySelector(".events-ellipses-after").classList.add("events-active"),document.querySelector(".events-next-page").classList.add("events-active")):a===b&&(document.querySelector(".events-previous-page").classList.add("events-active"),document.querySelector(".events-ellipses-before").classList.add("events-active"));this.createMidRangePagination(a,
b)},createMidRangePagination:function(a,b){document.querySelector(".events-page-group-numbers").innerHTML="";7>b?this.createBeforeMidPagination(a,b):a>=b-3?this.createMiddlePartPagination(a,b):this.createAfterPartPagination(a,b);1!==a&&document.querySelector(".events-first-page").classList.remove("events-current-page");this.paginationWrapper.classList.remove("hide")},resetPagination:function(){document.querySelector(".events-previous-page").classList.remove("events-active");document.querySelector(".events-next-page").classList.remove("events-active");
document.querySelector(".events-ellipses-before").classList.remove("events-active");document.querySelector(".events-ellipses-after").classList.remove("events-active");document.querySelector(".events-first-page").classList.remove("events-first-page-inactive")},createAfterPartPagination:function(a,b){for(var c=0;5>c;c+=1){var e=document.createElement("a");var f=5>a?2+c:a>=b-3?b-3+c:a-2+c;e.classList.add("events-page-link");e.innerHTML=f;e.setAttribute("tabindex","0");f===a&&1!==a?(document.querySelector(".events-first-page").classList.remove("events-current-page"),
e.classList.add("events-current-page")):(document.querySelector(".events-first-page").classList.add("events-current-page"),e.setAttribute("data-page",f));document.querySelector(".events-page-group-numbers").append(e)}},createMiddlePartPagination:function(a,b){for(var c=1;6>c;c+=1){var e=document.createElement("a");e.classList.add("events-page-link");e.innerHTML=b-5+c;e.setAttribute("tabindex","0");a===b-5+c&&e.classList.add("events-current-page");e.setAttribute("data-page",b-5+c);document.querySelector(".events-page-group-numbers").append(e)}document.querySelector(".events-ellipses-before").classList.add("events-active");
document.querySelector(".events-ellipses-after").classList.remove("events-active");document.querySelector(".events-previous-page").classList.add("events-active")},createBeforeMidPagination:function(a,b){document.querySelector(".events-ellipses-before").classList.remove("events-active");document.querySelector(".events-ellipses-after").classList.remove("events-active");for(var c=0;c<b-1;c+=1){var e=document.createElement("a");e.classList.add("events-page-link");e.innerHTML=c+2;e.setAttribute("tabindex",
"0");a===c+2?e.classList.add("events-current-page"):document.querySelector(".events-first-page").classList.add("events-current-page");document.querySelector(".events-next-page").classList.add("events-active");a===b&&document.querySelector(".events-next-page").classList.remove("events-active");e.setAttribute("data-page",c+2);document.querySelector(".events-page-group-numbers").append(e)}1===b&&(document.querySelector(".events-first-page").classList.remove("events-current-page"),document.querySelector(".events-first-page").classList.add("events-first-page-inactive"))},
updateCountsLabel:function(a,b,c){var e=document.querySelector(".abm-events-filter__content-container__count-label");if(e){var f=e.querySelector(".current-count");var g=e.querySelector(".total-count");var h=e.querySelector(".search")}f&&g&&a&&b&&e&&e.classList?(f.innerHTML=this.paginationData.start+1+" - "+(this.paginationData.start+a)+" of ",g.innerHTML=b,h.textContent=c?" results for "+c:"",h&&h.classList&&(""!==h.textContent||c)?h.classList.remove("hide"):h.classList.add("hide"),e.classList.remove("hide")):
f&&g&&h&&(f.innerHTML="",g.innerHTML="",h.textContent="")},updateFilterCounts:function(a){if(a){var b=a.closest(".events-filter-content__item__sub-event"),c=(b=b?b.parentNode:"")?b.querySelector(".events-filter-content__item__label-wrapper__filter-count"):"",e=this;c&&this.eventFilterApiObj&&0<Object.keys(this.eventFilterApiObj).length&&Object.keys(this.eventFilterApiObj).forEach(function(f){a.classList&&a.classList.contains(f)&&(c.innerHTML=0>=e.eventFilterApiObj[f].length?"":"("+e.eventFilterApiObj[f].length+
")")})}else document.querySelectorAll(".events-filter-content__item__label-wrapper__filter-count").forEach(function(f){f.innerHTML=""})},onLoadUpdateFilterCounts:function(){document.querySelectorAll(".events-filter-content__item").forEach(function(a){var b=0;a.querySelectorAll("input[data-value]").forEach(function(c){b+=c.checked?1:0});a.querySelector(".events-filter-content__item__label-wrapper__filter-count")&&(a.querySelector(".events-filter-content__item__label-wrapper__filter-count").innerHTML=
b?"("+b+")":"")})},focusElementOnListRefresh:function(){if(0<this.articlesContainer.childElementCount){var a=this.articlesContainer.firstChild;a.querySelector(".abm-events-filter__content-container__articles__wrapper__videoWrapper__overlay")?a.querySelector(".abm-events-filter__content-container__articles__wrapper__videoWrapper__overlay").focus():this.articlesContainer.querySelector("a").focus()}},clearAllFilters:function(){var a=this;document.querySelectorAll(".events-filter-checkbox").forEach(function(b){b.checked=
!1});this.eventFilterApiObj&&0<Object.keys(this.eventFilterApiObj).length&&Object.keys(this.eventFilterApiObj).forEach(function(b){"eventSort"!==b&&"size"!==b&&"searchQuery"!==b&&("eventMonth"===b?(a.eventFilterApiObj[b]="",a.eventMonthDropdown&&(a.eventMonthDropdown.selectedIndex=0)):"eventYear"===b?(a.eventFilterApiObj[b]="",a.eventYearDropdown&&(a.eventYearDropdown.selectedIndex=0)):a.eventFilterApiObj[b]=[])});this.initializeDropdown(!0);this.articlesContainer.innerHTML="";a.fetchDataOnPageLoad(!0)},
clearSearch:function(){this.searchBox&&this.searchIcon&&this.searchClearIcon&&this.searchIcon.classList&&this.searchClearIcon.classList&&(this.searchBox.value="",this.eventFilterApiObj.searchQuery="",this.searchIcon.classList.remove("hide"),this.searchClearIcon.classList.add("hide"))},convertId:function(){document.querySelectorAll(".events-filter-content__item").forEach(function(a){var b=a.id.replace("events-","").split(" ").join("-").toLowerCase();a.setAttribute("queryid",b)})},makeSelectionFromUrl:function(){this.getEventFilterParams().forEach(function(a){var b=
document.querySelector('li[queryid\x3d"'+a.name+'"]');if(b){var c=b.querySelector(".events-filter-content__item__sub-event__list");a.value.split(",").forEach(function(f){if(f=c.querySelector('input[data-value\x3d"'+f+'"]'))f.checked=!0})}else{var e;"months"===a.name?(b=document.querySelector(".events-month-dropdown-wrapper"))&&(e=b.querySelector(".events-month-dropdown-wrapper__selected")):"years"===a.name&&(b=document.querySelector(".events-year-dropdown-wrapper"))&&(e=b.querySelector(".events-year-dropdown-wrapper__selected"));
e&&(e.innerHTML=a.value)}})},getEventFilterParams:function(){var a=new URLSearchParams(window.location.search);return Array.from(a.entries(),function(b){var c=$jscomp.makeIterator(b);b=c.next().value;c=c.next().value;return{name:b,value:c}})},createRefinedUrl:function(){var a=window.location.href;return a.substring(a.lastIndexOf("/")+1).split("?")[0]},preSelectFilter:function(a,b){var c=document.querySelector(".events-filter-content").querySelectorAll("input[data-value]"),e=this.eventFilterApiObj,
f=Object.keys(this.eventFilterApiObj);c.forEach(function(g){var h=f.filter(function(k){return g.classList.contains(k)});h&&g.checked&&e[h[0]].push(g.dataset.value)});!b&&a&&0<a.length&&a.forEach(function(g){"months"===g.name?e.eventMonth=g.value:"years"===g.name&&(e.eventYear=g.value);if(g&&""!==g.value){var h=g.value.split(",");c.forEach(function(k){k&&h.includes(k.getAttribute("data-value"))&&(k.checked=!0,k.parentNode.setAttribute("aria-checked","true"))})}});this.eventFilterApiObj=e}};window.addEventListener("DOMContentLoaded",
function(){document.querySelector(".abm-events-filter")&&(d.init(),window.onpopstate=function(){window.location.reload()})});document.addEventListener("webkitfullscreenchange",function(a){var b=a.target.nextElementSibling,c=a.target&&a.target.previousElementSibling?a.target.previousElementSibling:null,e=c&&c.previousElementSibling?c.previousElementSibling:null;c&&c.classList&&767<window.innerWidth&&c.classList.remove("hide");e&&e.classList&&767<window.innerWidth&&e.classList.remove("hide");a.target&&
a.target.parentElement.classList.contains("abm-events-filter__content-container__articles__wrapper__videoWrapper")&&"IFRAME"===a.target.tagName&&767>window.innerWidth&&(b.classList.remove("hide"),b.classList.add("playing"))});document.addEventListener("click",function(a){var b;767>window.innerWidth&&a.target.classList.contains("abm-events-filter__content-container__articles__wrapper__videoWrapper__overlay")&&((b=a.target.previousElementSibling)&&b.previousElementSibling&&(b.previousElementSibling.classList.add("hide"),
b.previousElementSibling.previousElementSibling.classList.add("hide")),a.target.classList.contains("playing")&&("undefined"!==typeof b.webkitEnterFullscreen?b.webkitEnterFullscreen():"undefined"!==typeof b.webkitRequestFullscreen?b.webkitRequestFullscreen():"undefined"!==typeof b.mozRequestFullScreen&&b.mozRequestFullScreen()))})})();
(function(){var d={init:function(){this.featureTextSections=[];this.addElements();this.initiateAnimation();this.addEventListeners();this.checkRedirectionUrl()},addElements:function(){var a=this;document.querySelectorAll(".abm-on-demand-video__container__sub-feature__item__content.publish.bar").forEach(function(b){a.featureTextSections.push(b)})},addEventListeners:function(){var a=this;window.addEventListener("scroll",amznbase.throttle(function(){a.initiateAnimation()},100))},checkRedirectionUrl:function(){var a=
this,b,c,e,f,g,h;document.querySelectorAll(".abm-on-demand-video").forEach(function(k){if(k.dataset){e=k.dataset.headlinevideopagepath;g=k.dataset.featurevideopagepath;f=k.dataset.headlineformpagepath;h=k.dataset.featureformpagepath;b=a.checkLocalStorageObject(f);c=a.checkLocalStorageObject(h);if(b){var m=k.querySelector(".headlineCtaRedirect");m&&e&&m.setAttribute("href",e)}c&&k.querySelectorAll(".redirectFeatureOnLocalStorage").forEach(function(n){n&&g&&n.setAttribute("href",g)})}})},checkLocalStorageObject:function(a){var b=
!1;if(localStorage&&a&&localStorage.getItem("abUserFormsData")){var c=JSON.parse(localStorage.getItem("abUserFormsData"));c&&c.abmcs.gatedforms&&c.abmcs.gatedforms.forEach(function(e){e.pagePath===a&&(b=!0)})}return b},initiateAnimation:function(){this.featureTextSections.length&&this.featureTextSections.forEach(function(a){!a.classList.contains("animate")&&amznbase.inViewport(a,!1)&&a.classList.add("animate")})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-on-demand-video")&&
d.init()})})();
(function(){var d={init:function(){this.removeHeroImageTransformation();document.querySelector(".reshape-landing")&&(this.rearrangeGradients(),this.addIconBeforeHeadings(),this.addNavAnimation())},removeHeroImageTransformation:function(){document.querySelectorAll(".skinny-hero-component__top__media__image").forEach(function(a){var b="srcset",c="src";a.classList.contains("lazyload")&&(b="data-srcset",c="data-src");a.removeAttribute(b);var e;a.setAttribute(c,null==(e=a.getAttribute(c))?void 0:e.replace(".transform/2880x480/image.jpg",
"").replace(".transform/1536x512/image.jpg",""))})},addIconBeforeHeadings:function(){[".abm-featurelist__container__main-feature__title",".abm-calltoaction__container__wrapper__title p",".cmp-accordion__section-title",".abm-speakers__header__title"].forEach(function(a){a=document.querySelectorAll(a);0<a.length&&a.forEach(function(b){var c=document.createElement("span");c.className="headings-arrow";b.insertBefore(c,b.firstChild)})})},rearrangeGradients:function(){var a=document.querySelector(".top-gradient"),
b=document.querySelector(".ellipse"),c=document.querySelector(".reshape-landing");a&&b&&c&&c.nextSibling&&(document.body.insertBefore(b,c.nextSibling),document.body.insertBefore(a,c.nextSibling))},addNavAnimation:function(){var a=document.querySelector(".primary-navigation__bottom__primary-btn"),b=document.querySelector(".abm-reshape-hero__container__cta__button__title").innerText,c=document.createElement("span");c.classList.add("abm-reshape-hero__container__cta__button__title");c.innerText=b;a.classList.add("abm-reshape-hero__container__cta__button");
a.innerHTML=c.outerHTML}};window.addEventListener("DOMContentLoaded",function(){(document.querySelector(".reshape")||document.querySelector(".reshape-landing"))&&d.init()})})();
(function(){var d={init:function(){this.multiFilter=[];this.compObject={};this.multiFilterApiObj={};this.paginationData={};this.sortElements=[];this.multiFilterComponent=document.querySelector(".abm-multi-filter");this.mobileFilterMenu=document.getElementById("overflow-multi-filter-trigger");this.multiFiltersContainer=document.getElementById("multi-filter-overflow");this.mobileCloseBtn=document.getElementById("mobile-multifilter-close");this.articlesContainer=document.querySelector(".abm-multi-filter__content-container__articles");
this.searchBoxWrapper=document.querySelector(".abm-multi-filter__content-container__header__search-wrapper");this.searchBox=document.getElementById("multi-filter-searchBox");this.searchIcon=document.getElementById("multi-filter-searchIcon");this.searchClearIcon=document.getElementById("multi-filter-searchCloseIcon");this.multifilterLoader=document.querySelector(".abm-loader-overlay");this.errorBlock=document.getElementById("multiFilterErrorMessage");this.clearAllBtns=document.querySelectorAll(".abm-multi-filter__filter-container__clearAll");
this.multifilterSortDropdown=document.getElementById("multi-sort-dropdown-trigger");this.paginationWrapper=document.querySelector(".abm-multi-filter__content-container__pagination");this.convertId();this.getAllMultiFilters();this.createCompObjects();this.setupMultiFilter();this.initializeDropdown();this.fetchDataOnPageLoad()},getAllMultiFilters:function(){var a=this;document.querySelectorAll(".multi-filter-content__item").forEach(function(b){b&&a.multiFilter.push(b)});document.querySelectorAll(".multifilter-sort-options").forEach(function(b){b&&
a.sortElements.push(b)})},createCompObjects:function(){this.multiFilterComponent&&(this.compObject={noResultText:this.multiFilterComponent.dataset.noresult,errorText:this.multiFilterComponent.dataset.errortext,isAuthor:this.multiFilterComponent.dataset.isauthor,locale:this.multiFilterComponent.dataset.locale,baseurl:this.multiFilterComponent.dataset.url,ctaLabel:this.multiFilterComponent.dataset.ctalabel,contentType:this.multiFilterComponent.dataset.contenttype,mobileFilterMenuBtnPos:0,totalResultCount:0,
finalApiUrl:"",isYoutubePerformanceEnabled:this.multiFilterComponent.dataset.enableyoutubeperformance},this.multiFilterApiObj={multifilterSort:this.multifilterSortDropdown?this.multifilterSortDropdown.value:"",start:0,size:8,searchQuery:""},this.paginationData={size:8,start:0,found:0})},initializeDropdown:function(a){!a&&this.multifilterSortDropdown&&0<this.sortElements.length&&(this.multifilterSortDropdown.innerHTML=this.sortElements[0].innerHTML,this.multiFilterApiObj.multifilterSort=this.sortElements[0].getAttribute("data-value"))},
setupMultiFilter:function(){var a=this;this.multiFilter.forEach(function(b){if(b){var c=b.querySelector(".multi-filter-content__item__label-wrapper"),e=b.querySelectorAll(".multi-filter-content__item__sub-event__list__item__btn");b=b.querySelectorAll(".multi-filter-checkbox");c&&(c.blur(),c.addEventListener("click",a.toggleMultiFilter.bind(a,c)),e.forEach(function(f){f.addEventListener("keydown",a.fetchData.bind(a,f,!1))}),b.forEach(function(f){f.addEventListener("change",a.fetchData.bind(a,f,!1))}))}});
this.mobileFilterMenu&&(this.mobileFilterMenu.removeEventListener("click",a.openMobileFilterMenu.bind(this)),this.mobileFilterMenu.addEventListener("click",a.openMobileFilterMenu.bind(this)));this.searchBox&&this.searchIcon&&this.searchClearIcon&&(this.searchBox.addEventListener("keydown",a.initiateSearch.bind(a,!1)),["click","keydown"].forEach(function(b){a.searchIcon.addEventListener(b,a.initiateSearch.bind(a,!1));a.searchClearIcon.addEventListener(b,a.initiateSearch.bind(a,!0))}));this.clearAllBtns.forEach(function(b){b.addEventListener("click",
a.clearAllFilters.bind(a))});["click","keydown"].forEach(function(b){a.multifilterSortDropdown&&a.multifilterSortDropdown.addEventListener(b,a.toggleDropdown.bind(a,a.multifilterSortDropdown));a.sortElements.forEach(function(c){c&&c.addEventListener(b,a.fetchData.bind(a,c,!0))})});document.addEventListener("click",a.addMultifilterToPagination.bind(a));document.addEventListener("keydown",a.addMultifilterToPagination.bind(a));window.addEventListener("resize",function(){1024<=this.window.innerWidth&&
a.hideMobileMenu()})},toggleDropdown:function(a,b){var c=this.checkEvents(b,!1,!0,!1);b=this.checkEvents(b,!0,!1,!1);a&&a.parentNode&&(c||b)&&(c=a.parentNode.querySelector(".multifilter-dropdown"))&&c.classList&&(c.classList.contains("open")?(c.classList.add("hide"),c.classList.remove("open"),a.classList.remove("open")):(c.classList.remove("hide"),c.classList.add("open"),a.classList.add("open")))},checkEvents:function(a,b,c,e){return b&&a&&"click"===a.type||c&&a&&"keydown"===a.type&&(e&&13===a.keyCode||
!e&&(13===a.keyCode||32===a.keyCode))?!0:!1},closeAllDropDowns:function(a){a&&"multi-sort-dropdown-trigger"!==a.target.id&&this.multifilterSortDropdown&&this.multifilterSortDropdown.parentNode&&(a=this.multifilterSortDropdown.parentNode.querySelector(".multifilter-dropdown"))&&a.classList&&a.classList.contains("open")&&(a.classList.add("hide"),a.classList.remove("open"),this.multifilterSortDropdown.classList.remove("open"))},addMultifilterToPagination:function(a){var b=this.checkEvents(a,!1,!0,!1),
c=this.checkEvents(a,!0,!1,!1);if(b||c)this.closeAllDropDowns(a),a.target.matches(".multifilter-page-link")&&!a.target.matches(".multifilter-current-page")?(a=+a.target.getAttribute("data-page"),this.paginationData.start=1<a?this.paginationData.size*(a-1):0,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!0)):a.target.matches(".multifilter-next-page")?(this.paginationData.start+=this.paginationData.size,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!0)):a.target.matches(".multifilter-previous-page")&&
(this.paginationData.start-=this.paginationData.size,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!0))},fetchDataOnPageLoad:function(a){var b=this.getEventFilterParams();b&&b.length?(this.preSelectFilter(b,a),a=this.createApiParams(!1)):a=this.createApiParams(!0);this.updateFilterCounts();this.initiateApiCall(a,!1)},openMobileFilterMenu:function(){this.multiFiltersContainer&&this.multiFiltersContainer.classList&&!this.multiFiltersContainer.classList.contains("open")&&(this.compObject.mobileFilterMenuBtnPos=
window.scrollY,this.mobileCloseBtn.addEventListener("click",this.hideMobileMenu.bind(this)),this.mobileFilterMenu.setAttribute("aria-expanded",!0),this.multiFiltersContainer.setAttribute("aria-hidden",!1),this.multiFiltersContainer.classList.add("open"),amznbase.isiOSDevice()?document.body.style.overflow="hidden":(document.body.style.position="fixed",document.body.style.width="100%"));this.initiateAnalyticsCall("","Mobile Filter Button","",!1,!1)},hideMobileMenu:function(){this.multiFiltersContainer&&
this.multiFiltersContainer.classList&&this.multiFiltersContainer.classList.contains("open")&&(amznbase.isiOSDevice()?document.body.style.overflow="":(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,parseInt(this.compObject.mobileFilterMenuBtnPos||"0",10))),this.multiFiltersContainer.classList.remove("open"),this.multiFiltersContainer.setAttribute("aria-hidden",!0),this.mobileFilterMenu.setAttribute("aria-expanded",!1))},toggleMultiFilter:function(a,
b){b.stopImmediatePropagation();this.closeAllDropDowns(b);a&&a.classList&&(a.classList.contains("open")?(a.setAttribute("aria-expanded",!1),this.hideMenu(a)):a.classList.contains("open")||(a.setAttribute("aria-expanded",!0),this.showMenu(a)))},showMenu:function(a){a.classList.add("open");var b=a.querySelector(".expand");a=a.querySelector(".multi-filter-content__item__label-wrapper__filter-count");b&&b.classList&&(b.classList.remove("expand"),b.classList.add("collapse"));a&&a.classList&&a.classList.add("hide")},
hideMenu:function(a){var b=a.querySelector(".collapse"),c=a.querySelector(".multi-filter-content__item__label-wrapper__filter-count");b&&b.classList&&(b.classList.remove("collapse"),b.classList.add("expand"));a.classList.remove("open");c&&c.classList&&c.classList.remove("hide")},initiateSearch:function(a,b){var c=this.checkEvents(b,!1,!0,!0);b=this.checkEvents(b,!0,!1,!0);if(c||b)this.multiFilterApiObj.searchQuery=this.searchBox.value,this.searchIcon&&this.searchIcon.classList&&this.searchClearIcon&&
this.searchClearIcon.classList&&(this.searchIcon.classList.add("hide"),this.searchClearIcon.classList.remove("hide"),a&&(this.searchIcon.classList.remove("hide"),this.searchClearIcon.classList.add("hide"))),a&&(this.multiFilterApiObj.searchQuery="",this.searchBox.value=""),this.paginationData.start=0,a=this.createApiParams(!1,!0,!0),this.initiateApiCall(a,!1,!1)},fetchData:function(a,b,c){c.stopImmediatePropagation();var e="change"===c.type,f=this.checkEvents(c,!1,!0,!1),g=this.checkEvents(c,!0,!1,
!1),h=a,k=!1;if(f||e||g){if(b){h=a;var m=h.getAttribute("data-value")}else{if(e=a.querySelector(".multi-filter-checkbox"))e.checked=!e.checked,"false"===a.getAttribute("aria-checked")?a.setAttribute("aria-checked","true"):a.setAttribute("aria-checked","false"),h=e,m=h.getAttribute("data-value");a&&a.classList&&a.classList.contains("multi-filter-checkbox")&&(m=a.getAttribute("data-value"),a.parentNode&&("false"===a.parentNode.getAttribute("aria-checked")?a.parentNode.setAttribute("aria-checked","true"):
a.parentNode.setAttribute("aria-checked","false")))}h&&(b?(this.updateDropdownSelectedElement(h),this.closeAllDropDowns(c),this.modifyFilterObject(h,!1,!0)):h.checked?this.modifyFilterObject(h,!0):(this.modifyFilterObject(h,!1),k=!0),this.paginationData.start=0,a=this.createApiParams(!1),this.updateFilterCounts(),this.initiateApiCall(a,m,!1,k))}},updateDropdownSelectedElement:function(a){a&&a.classList&&a.classList.contains("multifilterSort")&&(this.multifilterSortDropdown.innerHTML=a.innerHTML)},
modifyFilterObject:function(a,b,c){var e=this;this.multiFilterApiObj&&0<Object.keys(this.multiFilterApiObj).length&&Object.keys(this.multiFilterApiObj).forEach(function(f){if(a&&a.classList&&a.classList.contains(f)){var g=a.getAttribute("data-value");c&&g?e.multiFilterApiObj[f]=g:b?e.multiFilterApiObj[f].push(g):e.multiFilterApiObj[f].forEach(function(h,k){h===g&&e.multiFilterApiObj[f].splice(k,1)})}})},createApiParams:function(a,b,c){if(this.compObject&&this.multiFilterApiObj){b=this.multiFilterApiObj.multifilterSort.split(" ");
var e=this.makeFilterQueryParams();a||c||window.history.replaceState(null,"",e?e.replace("\x26","?"):this.createRefinedUrl());if(a=this.compObject.baseurl+"?locale\x3d"+this.compObject.locale+"\x26content-type\x3d"+this.compObject.contentType+"\x26start\x3d"+this.paginationData.start+"\x26size\x3d"+this.multiFilterApiObj.size+(e?e:"")+(1<b.length?"\x26sort\x3d"+b[0]+"\x26sortorder\x3d"+b[1]:"")+(this.multiFilterApiObj.searchQuery?"\x26q\x3d"+this.multiFilterApiObj.searchQuery:""))return this.compObject.finalApiUrl=
a}},initiateApiCall:function(a,b,c,e){var f=this;try{f.multifilterLoader&&f.multifilterLoader.classList&&f.multifilterLoader.classList.remove("hide");var g;amznbase.makeHttpRequest(a,"GET",function(h,k){!amznbase.invalidResponses.includes(h)&&k&&(g=JSON.parse(k));g&&g.hits&&g.hits.hit&&0<g.hits.hit.length?(""!==amznbase.getUrlParameter("q",a)||c?c||f.initiateAnalyticsCall(a,b,g.hits.found,!0,e):(f.compObject.totalResultCount=g.hits.found,f.initiateAnalyticsCall(a,b,g.hits.found,!1,e)),f.createArticlesTiles(g.hits.hit,
c,g.hits.found),f.updateCountsLabel(g.hits.hit.length,g.hits.found,amznbase.getUrlParameter("q",a))):(""===amznbase.getUrlParameter("q",a)&&(f.compObject.totalResultCount=0),f.initiateAnalyticsCall(a,b,-1,!1,e),null!==h||g?f.showErrorBlock(!1):f.showErrorBlock(!0))})}catch(h){f.showErrorBlock(!0),""===amznbase.getUrlParameter("q",a)?(f.compObject.totalResultCount=0,f.initiateAnalyticsCall(a,0,!1,!0,e)):f.initiateAnalyticsCall(a,0,!0,!0,e)}},initiateAnalyticsCall:function(a,b,c,e,f){if(digitalData){var g=
"",h="";a&&0<=c&&(g=this.compObject.totalResultCount,e?h=c:g=c);a={selectedFilter:b,totalResults:g,searchTerm:amznbase.getUrlParameter("q",a),searchResultCount:h};digitalData.resourceMultiFilter=a}f||"undefined"===typeof _satellite||null===_satellite||_satellite.track("resource_multi_filter_tags")},showErrorBlock:function(a){this.errorBlock&&this.errorBlock.classList&&this.compObject&&(this.errorBlock.innerHTML=a?this.compObject.errorText:this.compObject.noResultText,this.errorBlock.classList.remove("hide"));
this.articlesContainer&&this.articlesContainer.classList&&(this.articlesContainer.innerHTML="",this.articlesContainer.classList.add("hide"));this.updateCountsLabel();this.hideMobileMenu();this.resetPagination();this.paginationWrapper.classList.add("hide");this.multifilterLoader&&this.multifilterLoader.classList&&this.multifilterLoader.classList.add("hide")},createArticlesTiles:function(a,b,c){var e=this;this.articlesContainer.innerHTML="";a.forEach(function(f){var g=document.createElement("li");g.classList.add("abm-multi-filter__content-container__articles__wrapper");
var h=document.createElement("a"),k=document.createElement("div"),m=document.createElement("div"),n=f.fields.cover_image_alt;f.fields.cover_image_alt||(n=f.fields.title);if(f.fields){var t=f.fields.image;t="true"===e.compObject.isAuthor&&t?t.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+t;if("video"===f.fields.cover_type&&f.fields.cover_video||"youtube"===f.fields.cover_type&&f.fields.cover_youtube_id){m.classList.add("abm-multi-filter__content-container__articles__wrapper__videoWrapper");
if("youtube"===f.fields.cover_type)if(t=f.fields.cover_youtube_id,"true"===e.compObject.isYoutubePerformanceEnabled)k=document.createElement("div"),k.classList.add("performance-youtube-player","performance-lightbox"),k.setAttribute("data-id",t),k.setAttribute("data-alt",n);else{if(k=document.createElement("iframe"),k.src="https://www.youtube.com/embed/"+t+"?playsinline\x3d0\x26enablejsapi\x3d1\x26rel\x3d0",k.setAttribute("frameborder","0"),k.setAttribute("tabindex","-1"),k.setAttribute("controls",
"true"),k.setAttribute("allowfullscreen","true"),k.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),f.fields.cover_video_thumbnail){t=document.createElement("img");var u=document.querySelector(".youtube-icon-cover").children[0].cloneNode(!0);u.style.position="absolute";u.style.top="calc(50% - 30px)";u.style.left="0";u.style.right="0";u.style.margin="auto";t.classList.add("youtube-cover","lazyload");var x=f.fields.cover_video_thumbnail;x="true"===e.compObject.isAuthor&&
x?x.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+x;t.setAttribute("data-src",x);t.alt=n;m.appendChild(t);m.appendChild(u)}}else k=document.createElement("video"),u=f.fields.cover_video,k.classList.add("lazyload"),u="true"===e.compObject.isAuthor&&u?u.replace("/assets/","/content/dam/amzn-biz/"):amznbase.getValueFromMetaTag("cf-domain")+u,k.src=u,f.fields.cover_video_thumbnail?k.setAttribute("data-poster",amznbase.getValueFromMetaTag("cf-domain")+f.fields.cover_video_thumbnail):
t?k.setAttribute("data-poster",t):k.setAttribute("data-poster",u),k.title=n,k.setAttribute("tabindex","-1"),k.setAttribute("controls","true"),k.setAttribute("playsinline","true");t=document.createElement("div");"true"===e.compObject.isYoutubePerformanceEnabled&&"youtube"===f.fields.cover_type?t.classList.add("abm-multi-filter__content-container__articles__wrapper__videoWrapper__overlay--performance","performance-lightbox__wrapper"):t.classList.add("abm-multi-filter__content-container__articles__wrapper__videoWrapper__overlay");
t.setAttribute("tabindex","0");t.setAttribute("aria-label",n);m.appendChild(k);"true"===e.compObject.isYoutubePerformanceEnabled&&"youtube"===f.fields.cover_type?k.appendChild(t):m.appendChild(t);g.appendChild(m)}else k.classList.add("image-wrapper"),m=document.createElement("img"),m.classList.add("lazyload"),m.setAttribute("data-src",t+".transform/696x318/image.jpg"),m.alt=n,m.setAttribute("aria-label",n),m.setAttribute("data-srcset",t+".transform/696x318/image.jpg 2x,"+t+".transform/348x159/image.jpg 1x"),
k.appendChild(m),g.appendChild(k);n=document.createElement("div");n.classList.add("text-wrapper");m=document.createElement("h3");m.classList.add("text-wrapper__title");k=document.createElement("p");k.classList.add("text-wrapper__desc");h.href=f.fields.uri;h.setAttribute("data-multi-filter-tiles",f.fields.title);h.innerHTML=e.compObject.ctaLabel;m.innerText=f.fields.title;k.innerText=f.fields.description;n.appendChild(m);n.appendChild(k);n.appendChild(h);g.appendChild(n);e.articlesContainer.appendChild(g)}});
e.articlesContainer&&e.articlesContainer.classList&&1<=e.articlesContainer.childElementCount&&e.articlesContainer.classList.remove("hide");b&&e.articlesContainer&&e.focusElementOnListRefresh();e.errorBlock&&e.errorBlock.classList&&e.errorBlock.classList.add("hide");e.hideMobileMenu();e.searchBoxWrapper&&e.searchBoxWrapper.classList&&e.searchBoxWrapper.classList.remove("hide");e.multifilterLoader&&e.multifilterLoader.classList&&e.multifilterLoader.classList.add("hide");e.paginationData.found=c;e.resetPagination();
e.initializePagination(e.paginationData);amznbase.isTouchStarted=!1;amznbase.increaseYoutubePerformance()},initializePagination:function(a){var b=Math.trunc(a.found/a.size);0!==a.found%a.size&&(b+=1);a=Math.trunc(a.start/a.size)+1;1===a?6<b&&(document.querySelector(".multifilter-next-page").classList.add("multifilter-active"),document.querySelector(".multifilter-ellipses-after").classList.add("multifilter-active"),document.querySelector(".multifilter-ellipses-before").classList.remove("multifilter-active")):
1<a&&7>a?(5<=a&&document.querySelector(".multifilter-ellipses-before").classList.add("multifilter-active"),document.querySelector(".multifilter-ellipses-after").classList.add("multifilter-active"),document.querySelector(".multifilter-next-page").classList.add("multifilter-active"),document.querySelector(".multifilter-previous-page").classList.add("multifilter-active")):7<=a&&a<=b-7?(document.querySelector(".multifilter-previous-page").classList.add("multifilter-active"),document.querySelector(".multifilter-next-page").classList.add("multifilter-active"),
document.querySelector(".multifilter-ellipses-before").classList.add("multifilter-active"),document.querySelector(".multifilter-ellipses-after").classList.add("multifilter-active")):a>b-7&&a!==b?(document.querySelector(".multifilter-previous-page").classList.add("multifilter-active"),document.querySelector(".multifilter-ellipses-before").classList.add("multifilter-active"),document.querySelector(".multifilter-ellipses-after").classList.add("multifilter-active"),document.querySelector(".multifilter-next-page").classList.add("multifilter-active")):
a===b&&(document.querySelector(".multifilter-previous-page").classList.add("multifilter-active"),document.querySelector(".multifilter-ellipses-before").classList.add("multifilter-active"));this.createMidRangePagination(a,b)},createMidRangePagination:function(a,b){document.querySelector(".multifilter-page-group-numbers").innerHTML="";7>b?this.createBeforeMidPagination(a,b):a>=b-3?this.createMiddlePartPagination(a,b):this.createAfterPartPagination(a,b);1!==a&&document.querySelector(".multifilter-first-page").classList.remove("multifilter-current-page");
this.paginationWrapper.classList.remove("hide")},resetPagination:function(){document.querySelector(".multifilter-previous-page").classList.remove("multifilter-active");document.querySelector(".multifilter-next-page").classList.remove("multifilter-active");document.querySelector(".multifilter-ellipses-before").classList.remove("multifilter-active");document.querySelector(".multifilter-ellipses-after").classList.remove("multifilter-active");document.querySelector(".multifilter-first-page").classList.remove("multifilter-first-page-inactive")},
createAfterPartPagination:function(a,b){for(var c=0;5>c;c+=1){var e=document.createElement("a");var f=5>a?2+c:a>=b-3?b-3+c:a-2+c;e.classList.add("multifilter-page-link");e.innerHTML=f;e.setAttribute("tabindex","0");f===a&&1!==a?(document.querySelector(".multifilter-first-page").classList.remove("multifilter-current-page"),e.classList.add("multifilter-current-page")):(document.querySelector(".multifilter-first-page").classList.add("multifilter-current-page"),e.setAttribute("data-page",f));document.querySelector(".multifilter-page-group-numbers").append(e)}},
createMiddlePartPagination:function(a,b){for(var c=1;6>c;c+=1){var e=document.createElement("a");e.classList.add("multifilter-page-link");e.innerHTML=b-5+c;e.setAttribute("tabindex","0");a===b-5+c&&e.classList.add("multifilter-current-page");e.setAttribute("data-page",b-5+c);document.querySelector(".multifilter-page-group-numbers").append(e)}document.querySelector(".multifilter-ellipses-before").classList.add("multifilter-active");document.querySelector(".multifilter-ellipses-after").classList.remove("multifilter-active");
document.querySelector(".multifilter-previous-page").classList.add("multifilter-active")},createBeforeMidPagination:function(a,b){document.querySelector(".multifilter-ellipses-before").classList.remove("multifilter-active");document.querySelector(".multifilter-ellipses-after").classList.remove("multifilter-active");for(var c=0;c<b-1;c+=1){var e=document.createElement("a");e.classList.add("multifilter-page-link");e.innerHTML=c+2;e.setAttribute("tabindex","0");a===c+2?e.classList.add("multifilter-current-page"):
document.querySelector(".multifilter-first-page").classList.add("multifilter-current-page");document.querySelector(".multifilter-next-page").classList.add("multifilter-active");a===b&&document.querySelector(".multifilter-next-page").classList.remove("multifilter-active");e.setAttribute("data-page",c+2);document.querySelector(".multifilter-page-group-numbers").append(e)}1===b&&(document.querySelector(".multifilter-first-page").classList.remove("multifilter-current-page"),document.querySelector(".multifilter-first-page").classList.add("multifilter-first-page-inactive"))},
updateCountsLabel:function(a,b,c){var e=document.querySelector(".abm-multi-filter__content-container__count-label");if(e){var f=e.querySelector(".current-count");var g=e.querySelector(".total-count");var h=e.querySelector(".search")}f&&g&&a&&b&&e&&e.classList?(f.innerHTML=this.paginationData.start+1+" - "+(this.paginationData.start+a)+" of ",g.innerHTML=b,h.textContent=c?" results for "+c:"",h&&h.classList&&(""!==h.textContent||c)?h.classList.remove("hide"):h.classList.add("hide"),e.classList.remove("hide")):
f&&g&&h&&(f.innerHTML="",g.innerHTML="",h.textContent="")},updateFilterCounts:function(){document.querySelectorAll(".multi-filter-content__item").forEach(function(a){var b=0;a.querySelectorAll("input[data-value]").forEach(function(c){b+=c.checked?1:0});a.querySelector(".multi-filter-content__item__label-wrapper__filter-count")&&(a.querySelector(".multi-filter-content__item__label-wrapper__filter-count").innerHTML=b?"("+b+")":"")})},focusElementOnListRefresh:function(){if(0<this.articlesContainer.childElementCount){var a=
this.articlesContainer.firstChild;a.querySelector(".abm-multi-filter__content-container__articles__wrapper__videoWrapper__overlay")?a.querySelector(".abm-multi-filter__content-container__articles__wrapper__videoWrapper__overlay").focus():this.articlesContainer.querySelector("a").focus()}},clearAllFilters:function(){var a=this;document.querySelectorAll(".multi-filter-checkbox").forEach(function(b){b.checked=!1});this.multiFilterApiObj&&0<Object.keys(this.multiFilterApiObj).length&&Object.keys(this.multiFilterApiObj).forEach(function(b){"multifilterSort"!==
b&&"size"!==b&&"searchQuery"!==b&&(a.multiFilterApiObj[b]=[])});this.initializeDropdown(!0);this.articlesContainer.innerHTML="";a.fetchDataOnPageLoad(!0)},clearSearch:function(){this.searchBox&&this.searchIcon&&this.searchClearIcon&&this.searchIcon.classList&&this.searchClearIcon.classList&&(this.searchBox.value="",this.multiFilterApiObj.searchQuery="",this.searchIcon.classList.remove("hide"),this.searchClearIcon.classList.add("hide"))},convertId:function(){document.querySelectorAll(".multi-filter-content__item").forEach(function(a){var b=
a.id.replace("multifilter-","").split(" ").join("-").toLowerCase();a.setAttribute("queryid",b)})},convertQueryParamsToArray:function(){var a=[];document.querySelectorAll(".multi-filter-content__item").forEach(function(b){b.querySelectorAll('input[type\x3d"checkbox"]').forEach(function(c){c.checked&&a.push(c.dataset.value)})});return a},makeFilterQueryParams:function(){var a="",b=this.convertQueryParamsToArray();b.forEach(function(c,e){c&&(a=e!==b.length-1?a+(c+","):a+c)});if(""!==a)return a="\x26tags\x3d"+
a},getEventFilterParams:function(){var a=new URLSearchParams(window.location.search);return Array.from(a.entries(),function(b){var c=$jscomp.makeIterator(b);b=c.next().value;c=c.next().value;return{name:b,value:c}})},createRefinedUrl:function(){var a=window.location.href;return a.substring(a.lastIndexOf("/")+1).split("?")[0]},preSelectFilter:function(a,b){var c=document.querySelector(".multi-filter-content").querySelectorAll("input[data-value]"),e=this.eventFilterApiObj;!b&&a&&0<a.length&&a.forEach(function(f){if(f&&
"tags"===f.name&&""!==f.value){var g=f.value.split(",");c.forEach(function(h){h&&g.includes(h.getAttribute("data-value"))&&(h.checked=!0,h.parentNode.setAttribute("aria-checked","true"))})}});this.eventFilterApiObj=e}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-multi-filter")&&(d.init(),window.onpopstate=function(){window.location.reload()})});document.addEventListener("webkitfullscreenchange",function(a){var b=a.target.nextElementSibling,c=a.target&&a.target.previousElementSibling?
a.target.previousElementSibling:null,e=c&&c.previousElementSibling?c.previousElementSibling:null;c&&c.classList&&767<window.innerWidth&&c.classList.remove("hide");e&&e.classList&&767<window.innerWidth&&e.classList.remove("hide");a.target&&a.target.parentElement.classList.contains("abm-multi-filter__content-container__articles__wrapper__videoWrapper")&&"IFRAME"===a.target.tagName&&767>window.innerWidth&&(b.classList.remove("hide"),b.classList.add("playing"))});document.addEventListener("click",function(a){var b;
767>window.innerWidth&&a.target.classList.contains("abm-multi-filter__content-container__articles__wrapper__videoWrapper__overlay")&&((b=a.target.previousElementSibling)&&b.previousElementSibling&&(b.previousElementSibling.classList.add("hide"),b.previousElementSibling.previousElementSibling.classList.add("hide")),a.target.classList.contains("playing")&&("undefined"!==typeof b.webkitEnterFullscreen?b.webkitEnterFullscreen():"undefined"!==typeof b.webkitRequestFullscreen?b.webkitRequestFullscreen():
"undefined"!==typeof b.mozRequestFullScreen&&b.mozRequestFullScreen()))})})();(function(){var d={calculateHeight:function(a){1440<window.outerWidth&&!a||document.querySelectorAll(".abm-reshape-feature__feature-list__feature__media").forEach(function(b){b.setAttribute("style","height:"+Math.round(b.offsetWidth/1.77)+"px;")})}};window.addEventListener("DOMContentLoaded",function(){d.calculateHeight(!0)});window.addEventListener("resize",function(){d.calculateHeight(!1)})})();
var BPFeature={init:function(){this.setCommonHeight()},setCommonHeight:function(){document.querySelectorAll("ul.abm-featurelist__bp-container__sub-feature").forEach(function(d){d=d.querySelectorAll("div.abm-featurelist__bp-container__sub-feature__item__bp-cta");var a=0;d.forEach(function(b){a=a<b.offsetHeight?b.offsetHeight:a});d.forEach(function(b){b.setAttribute("style","height:"+a+"px;")})})}};window.addEventListener("resize",function(){BPFeature.setCommonHeight()});
window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-featurelist")&&BPFeature.init()});
(function(){var d={init:function(){this.audioContainer=document.querySelector(".abm-audio-player__audio__container");this.acOffsetTop=document.querySelector(".abm-audio-player__audio__container").offsetTop;this.acOffsetHeight=document.querySelector(".abm-audio-player__audio__container").offsetHeight;this.playPauseButton=document.querySelector(".abm-audio-player__audio__container__player-container__player-controls__play-pause-button");this.mobilePlayPauseButton=document.querySelector(".abm-audio-player__audio__mobile-controls__players__play-pause-button");
this.audioPlayer=document.querySelector(".abm-audio-player__audio__audio-player");this.progressBar=document.querySelector(".abm-audio-player__audio__container__player-container__progress-bar__progress");this.progressBarCircle=document.querySelector(".abm-audio-player__audio__container__player-container__progress-bar__progress-circle");this.timer=document.querySelector(".abm-audio-player__audio__mobile-controls__players__timer");this.mobileTimer=document.querySelector(".abm-audio-player__audio__container__player-container__player-controls__timer");
this.closeIcon=document.querySelector(".abm-audio-player__audio__container__close-icon");this.mobileProgressBar=document.querySelector(".abm-audio-player__audio__mobile-controls__progress-bar__progress");this.playButtonIcon=document.querySelector(".play-icon");this.pauseButtonIconLeft=document.querySelector(".pause-icon-left");this.pauseButtonIconRight=document.querySelector(".pause-icon-right");this.loadingAnimation=document.querySelector(".abm-audio-player__loading-animation");this.flagClose=!1;
this.flagFirstClick=0;this.setUpEvents();this.focusInStickyAudioPlayer();setTimeout(this.loadDuration())},playPauseAudio:function(){this.flagClose=!0;this.flagFirstClick||(this.loadingAnimation.classList.add("show"),this.flagFirstClick=1);this.audioPlayer&&this.audioPlayer.paused?(this.audioPlayer.play(),this.pauseButtonIconLeft.classList.add("hide"),this.pauseButtonIconRight.classList.add("hide"),this.playButtonIcon.classList.remove("hide"),this.playPauseButton.setAttribute("aria-label","play")):
(this.audioPlayer.pause(),this.pauseButtonIconLeft.classList.remove("hide"),this.pauseButtonIconRight.classList.remove("hide"),this.playButtonIcon.classList.add("hide"),this.playPauseButton.setAttribute("aria-label","pause"))},timerUpdate:function(){var a=this.audioPlayer.currentTime,b=this.audioPlayer.duration;this.timer.textContent="";this.mobileTimer.textContent="";this.timer.textContent=this.convertTimeToHHMMSS(a)+" / "+this.convertTimeToHHMMSS(b);this.mobileTimer.textContent=this.convertTimeToHHMMSS(a)+
" / "+this.convertTimeToHHMMSS(b);a=this.audioPlayer.currentTime/this.audioPlayer.duration*100;this.progressBar.style.display="block";this.progressBar.style.width=a+"%";this.mobileProgressBar.style.display="block";this.mobileProgressBar.style.width=a+"%";this.audioContainer.classList.contains("sticky")?this.progressBarCircle.style.display="none":this.progressBarCircle.style.display="block";this.progressBarCircle.style.left=a-1+"%";98.5<=a&&(this.progressBarCircle.style.left="98.5%")},handleScroll:function(){var a=
window.pageYOffset||document.documentElement.scrollTop,b=document.querySelector(".abm-audio-player"),c=b.offsetTop+b.offsetHeight,e=this.acOffsetTop+this.acOffsetHeight-60;c=1023<window.outerWidth?b.offsetTop+e:c;this.audioContainer&&this.flagClose&&(a>c?(this.audioContainer.classList.add("sticky"),this.progressBarCircle.style.display="none",this.audioContainer.nextElementSibling.classList.contains("abm-audio-player__audio__mobile-controls")||this.audioContainer.nextElementSibling.classList.add("hide")):
(this.audioContainer.classList.remove("sticky"),this.progressBarCircle.style.display="block",this.audioContainer.nextElementSibling.classList.remove("hide")))},computeMargin:function(){if(!document.querySelector(".abm-audio-player").classList.contains("abm-audio-player--no-img"))if(1024>window.outerWidth){var a=document.querySelector(".audioplayer-mobileImage").height,b=document.querySelector(".abm-audio-player__audio__header-part").offsetHeight;document.querySelector(".abm-audio-player__audio__container").setAttribute("style",
"margin-top:"+(a-b)+"px;")}else document.querySelector(".abm-audio-player__audio__container").setAttribute("style","margin-top:0px;")},closeSticky:function(){this.flagClose=!1;this.audioContainer.classList.remove("sticky")},setUpEvents:function(){var a=this;this.audioPlayer.onloadedmetadata=function(){a.loadDuration()};this.audioPlayer.onstalled=function(){a.loadingAnimation.classList.add("show")};this.audioPlayer.onerror=function(){a.loadingAnimation.classList.add("show")};this.playPauseButton.addEventListener("click",
a.playPauseAudio.bind(a));this.mobilePlayPauseButton.addEventListener("click",a.playPauseAudio.bind(a));this.playPauseButton.addEventListener("keydown",function(b){if(32===b.keyCode||13===b.keyCode)b.preventDefault(),a.playPauseAudio(a)});this.mobilePlayPauseButton.addEventListener("keydown",function(b){if(32===b.keyCode||13===b.keyCode)b.preventDefault(),a.playPauseAudio(a)});this.audioPlayer.addEventListener("timeupdate",a.timerUpdate.bind(a));window.addEventListener("scroll",a.handleScroll.bind(a));
window.addEventListener("DOMContentLoaded",a.computeMargin.bind(a));window.addEventListener("resize",a.computeMargin.bind(a));this.closeIcon.addEventListener("click",a.closeSticky.bind(a));this.closeIcon.addEventListener("keydown",function(b){32===b.keyCode||13===b.keyCode?(b.preventDefault(),a.closeSticky(a),a.focusOutStickyAudioPlayer(a)):9===b.keyCode&&a.focusOutStickyAudioPlayer(a)});["ended","playing","pause"].forEach(function(b){a.audioPlayer.addEventListener(b,a.updateAudioPlayerIcon.bind(a))})},
updateAudioPlayerIcon:function(a){a&&"playing"===a.type&&document.querySelector(".abm-audio-player__loading-animation")&&document.querySelector(".abm-audio-player__loading-animation").classList.remove("show");this.audioPlayer&&this.playPauseButton&&this.mobilePlayPauseButton&&(this.audioPlayer.paused?(this.pauseButtonIconLeft.classList.add("hide"),this.pauseButtonIconRight.classList.add("hide"),this.playButtonIcon.classList.remove("hide"),this.playPauseButton.setAttribute("aria-label","play")):(this.pauseButtonIconLeft.classList.remove("hide"),
this.pauseButtonIconRight.classList.remove("hide"),this.playButtonIcon.classList.add("hide"),this.playPauseButton.setAttribute("aria-label","pause")))},focusInStickyAudioPlayer:function(){for(var a=this,b=document.querySelector(".abm-audio-player__audio__container--panel"),c=document.querySelector(".abm-audio-player__audio__container__player-container__player-controls__play-pause-button"),e=null,f=document.querySelectorAll('.abm-global-footer button,.abm-global-footer a[href], .abm-global-footer [tabindex]:not([tabindex\x3d"-1"])'),
g=0;g<f.length;g+=1)if(null!==f[f.length-(1+g)].offsetParent){e=f[f.length-(1+g)];break}e&&(e.addEventListener("keyup",function(h){9===h.keyCode&&(a.audioContainer.classList.contains("sticky")?(b.setAttribute("tabindex","0"),c.setAttribute("tabindex","0")):(b.removeAttribute("tabindex"),c.removeAttribute("tabindex")))}),e.addEventListener("keydown",function(h){9!==h.keyCode||h.shiftKey||(b.focus(),a.audioContainer.classList.contains("sticky")||(a.focusOutStickyAudioPlayer(a),c.setAttribute("tabindex",
"0")))}));b.addEventListener("focusout",function(h){h.target.classList&&b.parentElement.classList.contains("sticky")&&h.target.classList.contains("abm-audio-player__audio__container__player-container__player-controls__play-pause-button")&&(a.closeIcon.setAttribute("tabindex","0"),a.closeIcon.focus(),b.removeAttribute("tabindex"))},!0);c.addEventListener("focusout",function(h){h.target.classList&&b.parentElement.classList.contains("sticky")&&h.target.classList.contains("abm-audio-player__audio__container__player-container__player-controls__play-pause-button__cta")&&
(a.closeIcon.setAttribute("tabindex","0"),a.closeIcon.focus())},!0)},focusOutStickyAudioPlayer:function(){var a=document.querySelector(".primary-navigation__bottom__left a"),b=document.querySelector(".abm-audio-player__audio__container__player-container__player-controls__play-pause-button");(amznbase.isM||amznbase.isS)&&a?a.focus():(document.body.setAttribute("tabindex","0"),document.body.focus(),document.body.removeAttribute("tabindex"));b.setAttribute("tabindex","0")},convertTimeToHHMMSS:function(a){var b=
parseInt(a,10);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;return(10>a?"0"+a:a)+":"+(10>c?"0"+c:c)+":"+(10>b?"0"+b:b)},loadDuration:function(){var a=this.audioPlayer.duration;a&&(this.audioContainer.querySelector(".time").textContent=this.convertTimeToHHMMSS(a))}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-audio-player"))&&d.init()})})();
(function(){var d={init:function(){this.setupEvents();this.updateRadioButtonStatus()},setupEvents:function(){var a=document.getElementById("submit-ad-pref"),b=this;a&&["click","keydown"].forEach(function(c){a.addEventListener(c,b.submitUserResponse.bind(b))})},updateRadioButtonStatus:function(){var a=amznbase.getCookie("userconsent");if(a=a?JSON.parse(a):"")if(a=a.advertising?document.getElementById("gpc-radio-allow"):document.getElementById("gpc-radio-optout"))a.checked=!0},submitUserResponse:function(a){if(this.checkKeyDownEvent(a)){a=
document.querySelectorAll(".abm-save-ads-preference__inner__forms__fieldset__radio input");var b;0<a.length&&(a.forEach(function(c){c&&c.checked&&(b=c)}),b&&"allow"===b.value.toLowerCase()?(amznbase.setGpc(!0),this.triggerAnalyticsCall(!0)):(amznbase.setGpc(!1),this.triggerAnalyticsCall(!1)));this.showSuccessMessage()}},checkKeyDownEvent:function(a){var b=!1;if("click"===a.type||"keydown"===a.type&&(13===a.keyCode||32===a.keyCode))b=!0;return b},triggerAnalyticsCall:function(a){digitalData&&(digitalData.userAdPrivacyChoice=
a);"undefined"!==typeof _satellite&&null!==_satellite&&_satellite.track("user_ad_privacy_consent")},showSuccessMessage:function(){var a=document.querySelector(".abm-save-ads-preference__inner__alert-container");a.classList.add("hide");setTimeout(function(){a.classList.remove("hide");a.focus()},200)}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-save-ads-preference")&&d.init()})})();
(function(){var d={init:function(){this.mobileFilterDropDown=document.getElementById("cssQuotesTagsDropDown");this.filterComponent=document.getElementById("cssQuotesFiltersComponent");this.apiErrorElement=document.getElementById("cssQuotesFiltersErrorMessage");this.caseStudyWrapper=document.querySelector(".abm-casestudies-quotes__content__casestudy-list");this.loader=document.querySelector(".abm-loader-overlay");this.loadMoreWrapper=document.getElementById("caseStudy-show-more");this.loadMoreBtn=
document.querySelector(".abm-casestudies-quotes__content__show-more__button");this.mobileDropdownBtn=document.getElementById("cssQuotesTagsDropDown");this.mobileDropdownList=document.querySelector(".abm-casestudies-quotes__drop-down__field");this.servletPath="/content/amzn-biz/_jcr_content/servlets/css-quotes-filter.json";this.api=document.location.origin+this.servletPath;this.pagename=document.querySelector("meta[property\x3d'pagename']").getAttribute("content");this.path=this.pagename.replaceAll(":",
"/");this.baseApi=this.api+"?path\x3d"+this.path+"\x26tags\x3d";this.readMoreQuote=this.filterComponent.dataset.quotereadmore;this.readMoreCss=this.filterComponent.dataset.cssreadmore;this.loadMoreCount=this.filterComponent.dataset.loadmore;this.pageLoadCount=this.filterComponent.dataset.onpageload;this.apiErrorText=this.filterComponent.dataset.apierrortext;this.noResultText=this.filterComponent.dataset.noresulttext;this.scrollRightArrow=document.querySelector(".abm-casestudies-quotes__filter-list__category__right-arrow");
this.scrollLeftArrow=document.querySelector(".abm-casestudies-quotes__filter-list__category__left-arrow");this.tagsContainer=document.querySelector(".abm-casestudies-quotes__filter-list__category__tags");this.closeButton=this.filterComponent.dataset.closebutton;this.setupEvents();this.fetchData(!0);this.addingScrollListeners()},focusElementOnListRefresh:function(){var a=this.filterComponent.querySelectorAll(".abm-casestudies-quotes__content__casestudy-list__case-study:not(.hide)")[amznbase.oldListLength];
a&&a.querySelector("a").focus()},scrollToSide:function(a,b,c,e,f){var g=0,h=this,k=setInterval(function(){"left"===b?(a.scrollLeft-=f,0===document.querySelector(".abm-casestudies-quotes__filter-list__category__tags").scrollLeft&&h.scrollLeftArrow.classList.add("hide")):(a.scrollLeft+=f,!h.tagsContainer||Math.round(h.tagsContainer.scrollWidth-h.tagsContainer.scrollLeft)!==h.tagsContainer.offsetWidth&&Math.round(h.tagsContainer.scrollWidth-h.tagsContainer.scrollLeft)-1!==h.tagsContainer.offsetWidth||
h.scrollRightArrow.classList.add("hide"));g+=f;g>=e&&window.clearInterval(k)},c)},scrollLeftFunction:function(){this.scrollToSide(this.tagsContainer,"left",25,100,10);this.scrollRightArrow.classList.remove("hide")},scrollRightFunction:function(){this.scrollLeftArrow.classList.remove("hide");this.scrollToSide(this.tagsContainer,"right",25,100,10)},addingScrollListeners:function(){var a=this;a.tagsContainer&&a.tagsContainer.scrollWidth>a.tagsContainer.clientWidth&&(a.tagsContainer.setAttribute("style",
"justify-content:initial"),a.scrollRightArrow.classList.remove("hide"),a.scrollRightArrow.querySelector(".abm-casestudies-quotes__filter-list__category__right-arrow__btn")&&(a.scrollRightArrow.querySelector(".abm-casestudies-quotes__filter-list__category__right-arrow__btn").removeEventListener("click",a.scrollRightFunction.bind(a)),a.scrollRightArrow.querySelector(".abm-casestudies-quotes__filter-list__category__right-arrow__btn").addEventListener("click",a.scrollRightFunction.bind(a))),a.scrollLeftArrow.querySelector(".abm-casestudies-quotes__filter-list__category__left-arrow__btn")&&
(a.scrollLeftArrow.querySelector(".abm-casestudies-quotes__filter-list__category__left-arrow__btn").removeEventListener("click",a.scrollLeftFunction.bind(a)),a.scrollLeftArrow.querySelector(".abm-casestudies-quotes__filter-list__category__left-arrow__btn").addEventListener("click",a.scrollLeftFunction.bind(a))),a.tagsContainer&&a.tagsContainer.addEventListener("scroll",function(){a.scrollLeftArrow.classList.remove("hide");a.scrollRightArrow.classList.remove("hide");0===document.querySelector(".abm-casestudies-quotes__filter-list__category__tags").scrollLeft?
a.scrollLeftArrow.classList.add("hide"):(Math.round(a.tagsContainer.scrollWidth-a.tagsContainer.scrollLeft)===a.tagsContainer.offsetWidth||Math.round(a.tagsContainer.scrollWidth-a.tagsContainer.scrollLeft)-1===a.tagsContainer.offsetWidth||Math.round(a.tagsContainer.scrollWidth-a.tagsContainer.scrollLeft)+1===a.tagsContainer.offsetWidth)&&a.scrollRightArrow.classList.add("hide")}))},triggerPagination:function(a){var b=this.filterComponent.querySelectorAll(".abm-casestudies-quotes__content__casestudy-list__case-study.hide"),
c=this.filterComponent.querySelectorAll(".abm-casestudies-quotes__content__casestudy-list__case-study:not(.hide)");amznbase.oldListLength=c.length;if(0<b.length)for(a?(a=+this.pageLoadCount,this.loadMoreBtn.classList.remove("hide"),this.pageLoadCount>=b.length&&(a=b.length,this.loadMoreBtn.classList.add("hide"))):(a=+this.loadMoreCount,this.loadMoreBtn.classList.remove("hide"),this.loadMoreCount>=b.length&&(a=b.length,this.loadMoreBtn.classList.add("hide"))),c=0;c<a;c+=1)b[c].classList.remove("hide");
this.loader.classList.add("hide");this.caseStudyWrapper.classList.remove("hide");0<amznbase.oldListLength&&this.focusElementOnListRefresh()},createTiles:function(a,b){var c=this;if(a.length&&0<a[0].tiles.length)c.caseStudyWrapper.innerHTML="",a[0].tiles.forEach(function(e){var f=document.createElement("div");f.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study");f.classList.add("hide");var g=document.createElement("div");g.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study__img-logo");
var h=document.createElement("img");h.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study__img-logo__img","lazyload");h.setAttribute("data-src",amznbase.getValueFromMetaTag("cf-domain")+e.image);h.alt=""!==e.imageAlt?e.imageAlt:"";var k=document.createElement("div");k.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study__text");var m=document.createElement("div");m.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study__text__title");
m.innerText=e.title;var n=document.createElement("div");n.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study__text__quote");n.innerText=e.description;var t=document.createElement("a");t.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study__text__quote-link");t.setAttribute("tabindex","0");t.setAttribute("data-casestudy-quote-filter",e.title);var u=document.createElement("span");u.classList.add("abm-casestudies-quotes__content__casestudy-list__case-study__text__quote-link__icon");
"css"===e.tileType?(t.innerText=c.readMoreCss,t.href=e.cssPath):t.innerText=c.readMoreQuote;k.appendChild(m);k.appendChild(n);k.appendChild(t);t.appendChild(u);g.appendChild(h);f.appendChild(g);f.appendChild(k);c.caseStudyWrapper.appendChild(f)});else throw Error("No Result Found");this.triggerPagination(b)},createApiUrl:function(){var a=this.baseApi,b=amznbase.getUrlParameter("tags",window.location);void 0!==b&&(a+=b,this.highLightSelectedFilter(b));return a},fetchData:function(a){var b=this,c=this.createApiUrl();
b.loader.classList.remove("hide");amznbase.makeHttpRequest(c,"GET",function(e,f){b.apiErrorElement.classList.add("hide");if(amznbase.invalidResponses.includes(e)&&!f)b.caseStudyWrapper.classList.add("hide"),b.loadMoreWrapper.classList.add("hide"),b.apiErrorElement.classList.remove("hide"),b.loader.classList.add("hide"),b.apiErrorElement.innerText=b.apiErrorText;else try{var g=JSON.parse(f);b.createTiles(g,a);b.initiateAnalyticsCall()}catch(h){b.caseStudyWrapper.classList.add("hide"),b.loadMoreWrapper.classList.add("hide"),
b.apiErrorElement.classList.remove("hide"),b.loader.classList.add("hide"),b.apiErrorElement.innerText=b.noResultText}})},initiateAnalyticsCall:function(){var a=document.querySelectorAll(".abm-casestudies-quotes__filter-list__category__tags__tag__group.selected"),b=document.querySelectorAll(".checkbox-wrapper__checkbox:checked");digitalData&&(0<a.length||0<b.length)&&(a={selectedFilter:amznbase.getUrlParameter("tags",window.location).split(",")},digitalData.caseStudyFilter=a,"undefined"!==typeof _satellite&&
null!==_satellite&&_satellite.track("caseStudy_quote_filter"))},setupEvents:function(){var a=this,b=document.querySelector("span.lightbox-quote__wrapper__close-text");a.closeButton&&b&&(b.innerHTML=a.closeButton,b.setAttribute("aria-label",a.closeButton));var c=document.querySelector(".abm-casestudies-quotes__filter-list__category__tags");["click","keydown"].forEach(function(e){c.addEventListener(e,function(f){if("click"===e||"keydown"===e&&13===f.keyCode)f.target.matches(".abm-casestudies-quotes__filter-list__category__tags__tag__checkbox")&&
a.handleFilterClick(f.target),f.target.matches(".abm-casestudies-quotes__resource-list__show-more__button")&&(f.preventDefault(),a.triggerPagination()),f.target.matches(".abm-casestudies-quotes__drop-down__field li")&&f.target.querySelector('input[type\x3d"checkbox"]').click(),f.target.matches('.abm-casestudies-quotes__drop-down__field input[type\x3d"checkbox"]')&&a.toggleCheckBox(f.target),f.target.classList.contains("dropdown_button")||f.target.classList.contains("checkbox__wrapper")||f.target.classList.contains("abm-casestudies-quotes__drop-down__field__checkbox")||
f.target.classList.contains("abm-casestudies-quotes__filter-list__category__tags__tag__checkbox")||((f=document.querySelector(".abm-casestudies-quotes__drop-down__field"))&&f.classList.add("hide"),a.mobileFilterDropDown&&a.mobileFilterDropDown.querySelector(".arrow-icon").classList.remove("up-arrow"))});a.mobileDropdownBtn&&a.mobileDropdownList&&a.mobileDropdownBtn.addEventListener(e,function(f){if("click"===e||"keydown"===e&&13===f.keyCode)f.preventDefault(),a.mobileDropdownList.classList.contains("hide")?
(a.mobileDropdownList.classList.remove("hide"),a.mobileDropdownBtn.querySelector(".arrow-icon").classList.add("up-arrow")):(a.mobileDropdownList.classList.add("hide"),a.mobileDropdownBtn.querySelector(".arrow-icon").classList.remove("up-arrow"))});a.mobileDropdownList&&a.mobileDropdownList.addEventListener(e,function(f){if("click"===e||"keydown"===e&&13===f.keyCode){var g;f.target.matches(".checkbox-wrapper__checkbox")?g=f.target:f.target.matches(".checkbox-wrapper")&&(g=f.target.querySelector(".checkbox-wrapper__checkbox"));
g&&a.handleFilterClick(g,!0)}});a.loadMoreBtn&&a.loadMoreBtn.addEventListener(e,function(f){if("click"===e||"keydown"===e&&13===f.keyCode)f.preventDefault(),a.triggerPagination()})})},highLightSelectedFilter:function(a){a.split(",").forEach(function(b){var c=document.getElementById(b);b=document.getElementById("mobile-"+b);c&&(c.closest("label").classList.add("selected"),c.checked=!0);b&&(b.checked=!0)})},handleFilterClick:function(a,b){var c=amznbase.getUrlParameter("tags",window.location),e=a.id;
a=a.closest("label");b&&(e=e.replace("mobile-",""),(b=document.getElementById(e))&&(a=b.closest("label")),this.mobileDropdownList.classList.remove("hide"),this.mobileDropdownBtn.querySelector(".arrow-icon").classList.add("up-arrow"));b=window.location.href;var f=document.getElementById("mobile-"+e);c.includes(e)?(b=1===c.split(",").length?b.replace("?tags\x3d"+e,""):1>c.indexOf(e)?b.replace(e+",",""):b.replace(","+e,""),a&&a.classList.remove("selected"),f&&(f.checked=!1)):(b=""!==c?b+(","+e):b.includes("?")?
b+("\x26tags\x3d"+e):b+("?tags\x3d"+e),a&&a.classList.add("selected"),f&&(f.checked=!0));b=amznbase.removeQueryParam("ref",b);b=amznbase.removeQueryParam("ref_",b);window.history.pushState(null,"",b);this.fetchData(!0)}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".abm-casestudies-quotes"))&&d.init()})})();
(function(){var d={init:function(){},removeStyleReshapeFeature:function(){document.querySelectorAll(".abm-reshape-feature__feature-list__feature__media").forEach(function(a){a.removeAttribute("style")})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".reshape-on-demand")&&d.init()})})();
(function(){var d={isIframeClassRemoved:!1,init:function(){this.addCustomYoutubeThumbnail();this.addEventsForControls();this.cookieCheck()},addCustomYoutubeThumbnail:function(){var a=document.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay");0<a.length&&a.forEach(function(b){b&&b.dataset.thumbnail&&(b.style.backgroundImage="url("+b.dataset.thumbnail+")")})},cookieCheck:function(){var a=document.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__link"),
b=document.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay");a&&localStorage.getItem("abUserFormsData")?(a.forEach(function(c){c.remove()}),b.forEach(function(c){c.setAttribute("tabindex","0")})):a.forEach(function(c){"IFRAME"!==c.nextElementSibling.tagName&&c.nextElementSibling.querySelector(".clickable-div").setAttribute("tabindex","-1")})},addEventsForControls:function(){document.querySelectorAll(".abm-reshape-ondemand-feature").forEach(function(a){if(3<
a.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile").length){a.querySelector(".abm-reshape-ondemand-feature__controls").classList.remove("hide");var b;null==(b=a.querySelector(".abm-reshape-ondemand-feature__controls__show"))||b.addEventListener("click",function(e){d.showHideControls(e)});var c;null==(c=a.querySelector(".abm-reshape-ondemand-feature__controls__less"))||c.addEventListener("click",function(e){d.showHideControls(e)})}});document.querySelectorAll(".abm-reshape-ondemand-feature__controls__less").forEach(function(a){a.addEventListener("click",
function(){var b=a.closest(".abm-component").nextElementSibling;b||(b=document.querySelector(".abm-global-footer"));b.querySelector('button, a[href], [tabindex]:not([tabindex\x3d"-1"])').focus()})})},showHideControls:function(a){var b=a.target.parentElement.parentElement,c=b.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile"),e=b.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile.hide");if(0<e.length){c=b.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile:not(.hide)").length;
for(var f=0;3>f;f+=1)if(e[f])e[f].classList.remove("hide");else break;d.updateFocus(b,c,a)}else{e=c.length-3;for(f=0;f<e;f+=1)c[c.length-1-f].classList.add("hide");d.updateFocus(b,0,a)}if(0===b.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile.hide").length){var g;null==(g=b.querySelector(".abm-reshape-ondemand-feature__controls__show"))||g.classList.add("hide");var h;null==(h=b.querySelector(".abm-reshape-ondemand-feature__controls__less"))||h.classList.remove("hide")}else{var k;
null==(k=b.querySelector(".abm-reshape-ondemand-feature__controls__show"))||k.classList.remove("hide");var m;null==(m=b.querySelector(".abm-reshape-ondemand-feature__controls__less"))||m.classList.add("hide")}},updateFocus:function(a,b,c){if(a&&b||a&&0===b){a=a.querySelectorAll(".abm-reshape-ondemand-feature__tile-container__group__tile ")[b];var e;a.querySelector(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__link")?e=a.querySelector(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__link"):
a.querySelector(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay")?e=a.querySelector(".abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay"):a.querySelector(".clickable-div")&&(e=a.querySelector(".clickable-div"));e&&(d.isIframeClassRemoved=!1,e.classList.contains("abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay")&&(e.classList.remove("abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay"),d.isIframeClassRemoved=
!0),e.focus(),c.preventDefault(),d.isIframeClassRemoved&&setTimeout(function(){e.classList.add("abm-reshape-ondemand-feature__tile-container__group__tile__vid__overlay")},100))}}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".abm-reshape-ondemand-feature")&&d.init()})})();
(function(){var d={init:function(){var a=document.getElementById("video-tags");a&&a.lastElementChild&&(a.lastElementChild.innerHTML=a.lastElementChild.innerHTML.replace(/,/g,""))}};window.addEventListener("DOMContentLoaded",function(){document.getElementById("video-overview-component")&&d.init()})})();
(function(){var d={init:function(){this.sbssVideoComponent=document.querySelectorAll(".sbss-video");this.videoDataObj=[];this.fetchAllVideoData();this.checkLocalStorage();this.showSuccessMessage()},fetchAllVideoData:function(){if(0<this.sbssVideoComponent.length){var a=this;this.sbssVideoComponent.forEach(function(b,c){a.videoDataObj.push({compIndex:c,video:b.dataset.video})})}},checkLocalStorage:function(){if(localStorage&&localStorage.getItem("userVideoData")){var a=this,b=localStorage.getItem("userVideoData").split(",");
this.videoDataObj.forEach(function(c){b.includes(c.video)&&a.sbssVideoComponent[c.compIndex].querySelector(".sbss-video__feedback").classList.add("hide")})}},showSuccessMessage:function(){document.querySelectorAll(".sbss-video__feedback__cta").forEach(function(a){a.addEventListener("click",function(){a.parentElement.nextElementSibling.classList.remove("hide");a.parentElement.classList.add("hide");a.parentElement.previousElementSibling.classList.add("hide");a.parentElement.nextElementSibling.focus();
var b=a.closest(".sbss-video");if(localStorage&&localStorage.getItem("userVideoData")){var c=[localStorage.getItem("userVideoData")];c.push(b.dataset.video)}else c=[b.dataset.video];localStorage.setItem("userVideoData",c)})})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".sbss-video")&&d.init()})})();
(function(){var d={init:function(){this.submitCta=document.querySelectorAll(".voting-widget__participant-list__content__container__submit__link");this.showThankYouMsg();this.enableButton()},enableButton:function(){var a=document.querySelectorAll(".voting-widget__participant-list__content__container__items__list input"),b=document.getElementById("submit-button");a.forEach(function(c){c.addEventListener("click",function(){c.checked&&b.removeAttribute("disabled")})})},showThankYouMsg:function(){this.submitCta.forEach(function(a){a.addEventListener("click",
function(){a.parentElement.parentElement.classList.add("hide");a.parentElement.parentElement.nextElementSibling.classList.remove("hide");console.log(a.parentElement.parentElement.parentElement.previousElementSibling);a.parentElement.parentElement.previousElementSibling.classList.add("hide")})})}};window.addEventListener("DOMContentLoaded",function(){document.body.contains(document.querySelector(".sbss-voting-widget"))&&d.init()})})();
var videStats={init:function(){this.bindEvents()},bindEvents:function(){var d=document.querySelectorAll(".video-stats__container__stats__info__cta"),a=function(c){var e=c.querySelector(".abm-success-story__media--video");e&&e.load();c.classList.add("hide");c.classList.remove("show");setTimeout(function(){c.classList.add("not-shown")},300);amznbase.addBodyScroll()},b=function(c){var e=c.closest(".video-stats").querySelector(".video-stats__modal");c=c.closest(".video-stats").querySelector(".video-stats__modal__wrapper");
var f=e.querySelector(".video-stats__modal__wrapper__close"),g=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),h=document.createElement("span");h.setAttribute("tabindex","0");e.classList.contains("hide")&&(e.classList.remove("hide"),e.classList.add("show"),e.classList.remove("not-shown"),amznbase.removeBodyScroll(),e.scrollTop=0,c.appendChild(h),e.focus());g&&e.querySelectorAll("a").forEach(function(k){k.addEventListener("click",function(){a(e)})});h.addEventListener("focus",function(){f.focus()});
f.addEventListener("click",function(){a(e)});f.addEventListener("keyup",function(k){13===k.keyCode&&a(e)})};document.querySelectorAll(".video-stats__modal").forEach(function(c){c.addEventListener("click",function(e){e.target.matches(".video-stats__modal")&&a(c)})});d.forEach(function(c){c.addEventListener("click",function(){b(this)});c.addEventListener("keyup",function(e){13===e.keyCode&&b(this)})})}};
window.addEventListener("DOMContentLoaded",function(){document.querySelector(".video-stats")&&(videStats.init(),window.onpageshow=function(d){var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);d.persisted&&a&&window.location.reload()})});
var imageTiles={init:function(){this.bindEvents()},bindEvents:function(){var d=document.querySelectorAll(".image-tiles__content__tile__gradient__bottom__cta"),a=function(c){var e=c.querySelector(".abm-success-story__media--video");e&&e.load();c.classList.add("hide");c.classList.remove("show");setTimeout(function(){c.classList.add("not-shown")},300);amznbase.addBodyScroll()},b=function(c){var e=c.closest(".image-tiles__content__tile").querySelector(".image-tiles__content__tile__modal");c=c.closest(".image-tiles__content__tile").querySelector(".image-tiles__content__tile__modal__wrapper");
var f=e.querySelector(".image-tiles__content__tile__modal__wrapper__close"),g=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),h=document.createElement("span");h.setAttribute("tabindex","0");e.classList.contains("hide")&&(e.classList.remove("hide"),e.classList.add("show"),e.classList.remove("not-shown"),amznbase.removeBodyScroll(),e.scrollTop=0,c.appendChild(h),e.focus());g&&e.querySelectorAll("a").forEach(function(k){k.addEventListener("click",function(){a(e)})});h.addEventListener("focus",
function(){f.focus()});f.addEventListener("click",function(){a(e)});f.addEventListener("keyup",function(k){13===k.keyCode&&a(e)})};document.querySelectorAll(".image-tiles__content__tile__modal").forEach(function(c){c.addEventListener("click",function(e){e.target.matches(".image-tiles__content__tile__modal")&&a(c)})});d.forEach(function(c){c.addEventListener("click",function(){b(this)});c.addEventListener("keyup",function(e){13===e.keyCode&&b(this)})})}};
window.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".image-tiles")&&(imageTiles.init(),window.onpageshow=function(d){var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);d.persisted&&a&&window.location.reload()})});
(function(){var d={tilesCreatedObserver:"",index:0,relatedComponents:document.querySelectorAll(".sbss-related-content"),tagsList:[],tileDetails:[],init:function(){this.relatedComponents.forEach(function(b){d.tagsList.push(b.querySelector(".sbss-related__grid").getAttribute("data-category"))});var a=this.tagsList.filter(function(b,c){return d.tagsList.indexOf(b)===c});this.triggerFetchTileDetails(a.toString(),this.tagsList.length)},create:function(a){a<this.relatedComponents.length&&(this.relatedComponents.length!==
a+1&&this.initializeTileObserver(this.relatedComponents[a],a),this.createTiles(this.relatedComponents[a]))},initializeTileObserver:function(a){this.tilesCreatedObserver=new MutationObserver(this.updateContentOnTile);this.tilesCreatedObserver.observe(a.querySelector("#tiles_created"),{attributes:!0,attributeOldValue:!0})},updateContentOnTile:function(a){a&&"tiles_created"===a[0].target.id&&"1"===a[0].target.value&&(d.tilesCreatedObserver.disconnect(),d.tilesCreatedObserver="",d.index+=1,d.create(d.index))},
createTiles:function(a){var b=a.querySelector(".sbss-related__grid"),c=b.getAttribute("data-tile-cta-info"),e=d.tileDetails.filter(function(f){var g,h;return null==f?void 0:null==(g=f.fields)?void 0:null==(h=g.tagtitles)?void 0:h.find(function(k){return k===b.getAttribute("data-category-title")})}).filter(function(f){return f.fields&&f.fields.uri!==window.location.pathname});a={url:b.dataset.url,locale:b.dataset.locale,count:parseInt(b.dataset.count,10),labelData:c,isAuthor:b.dataset.isAuthor,contentType:b.dataset.contentType,
start:0,renderSquareTile:b.dataset.renderSquareTile,category:b.dataset.category,isRelatedContent:!0,categoryTitle:[],target:"_self",observeElement:a.querySelector("#tiles_created"),wrapper:a,categoryTilesList:e};sbssVideoBlogTiles.init(b,a)},triggerFetchTileDetails:function(a,b){var c=document.querySelector(".sbss-related-content .sbss-related__grid");amznbase.makeHttpRequest(c.dataset.url+"?size\x3d"+(1===b?4*b:100)+"\x26locale\x3d"+c.dataset.locale+"\x26start\x3d0\x26content-type\x3d"+c.dataset.contentType+
"\x26tags\x3d"+a,"GET",function(e,f){var g;try{amznbase.invalidResponses.includes(e)||(g=JSON.parse(f))}catch(t){g="",console.log(t)}var h,k;if((null==(h=g)?0:null==(k=h.hits)?0:k.hit)&&0<g.hits.found){var m,n;d.tileDetails=null==(m=g)?void 0:null==(n=m.hits)?void 0:n.hit;d.create(0)}})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".sbss-related-content")&&d.init(0)})})();
(function(){var d={classes:{filterTagLabel:".abm-resource-filters__filter-list__category__tags__tag__group",showMoreButton:".abm-resource-filters__resource-list__show-more__button",showMoreButtonWrapper:".abm-resource-filters__resource-list__show-more",mobileDropDown:".abm-resource-filters__drop-down__field li input"},init:function(a){var b=a.querySelector(".sbss-related__grid"),c=a.querySelector(this.classes.showMoreButtonWrapper),e=a.querySelector(this.classes.showMoreButton),f=a.querySelectorAll("#resourceFilterSolutionTags "+
this.classes.filterTagLabel),g=a.querySelectorAll(this.classes.mobileDropDown),h=a.querySelector("#resourceCategoryDropDown"),k=a.querySelector(".abm-resource-filters__filter-list__category__right-arrow"),m=a.querySelector(".abm-resource-filters__filter-list__category__left-arrow"),n=a.querySelector("#resourceFilterSolutionTags .abm-resource-filters__filter-list__category__tags"),t=Array.from(f),u=Array.from(a.querySelectorAll("#resourceFilterIndustryTags "+this.classes.filterTagLabel)).map(function(aa){return aa.getAttribute("value")}).join(),
x=a.getAttribute("data-tile-cta-info"),y=parseInt(a.dataset.limit,10),B=parseInt(a.dataset.limitLoadmore,10),K=(new URL(document.location.href)).searchParams,E="",A=[],N={showMoreButton:c,loader:a.querySelector(".abm-loader-overlay"),apiError:a.querySelector("#resourceFilterApiErrorMessage"),noResultError:a.querySelector("#noResultErrorMessage")};K.has("tags")&&(c=K.get("tags").split(",").filter(function(aa){var ja=t.find(function(G){return G.getAttribute("value")===aa});g.forEach(function(G){G.value===
aa&&(G.checked=!0)});if(ja)return ja.classList.add("selected"),ja.querySelector("input").checked=!0}),0<c.length&&(A=c.map(function(aa){return a.querySelector("#"+aa).name}),E=c.join(),a.classList.remove("no-filters")));var M={url:a.dataset.url,locale:a.dataset.locale,count:B,labelData:x,isAuthor:a.dataset.isAuthor,contentType:u,start:0,renderSquareTile:"false",category:E,categoryTitle:A,target:"_self",tabEvent:!1};sbssVideoBlogTiles.init(b,M,N);var J=function(aa,ja,G,P,Y){var ea=0,S=setInterval(function(){"left"===
ja?(aa.scrollLeft-=Y,0===n.scrollLeft&&m.classList.add("hide")):(aa.scrollLeft+=Y,!n||Math.round(n.scrollWidth-n.scrollLeft)!==n.offsetWidth&&Math.round(n.scrollWidth-n.scrollLeft)-1!==n.offsetWidth&&Math.round(n.scrollWidth-n.scrollLeft)+1!==n.offsetWidth||k.classList.add("hide"));ea+=Y;ea>=P&&window.clearInterval(S)},G)},H=function(){J(n,"left",25,100,10);k.classList.remove("hide")},ba=function(){J(n,"right",25,100,10);m.classList.remove("hide")},W=function(){n&&n.scrollWidth>n.clientWidth&&(n.setAttribute("style",
"justify-content:initial"),k.classList.remove("hide"),k.querySelector(".abm-resource-filters__filter-list__category__right-arrow__btn")&&(k.querySelector(".abm-resource-filters__filter-list__category__right-arrow__btn").removeEventListener("click",ba),k.querySelector(".abm-resource-filters__filter-list__category__right-arrow__btn").addEventListener("click",ba)),m.querySelector(".abm-resource-filters__filter-list__category__left-arrow__btn")&&(m.querySelector(".abm-resource-filters__filter-list__category__left-arrow__btn").removeEventListener("click",
H),m.querySelector(".abm-resource-filters__filter-list__category__left-arrow__btn").addEventListener("click",H)),n&&n.addEventListener("scroll",function(){m.classList.remove("hide");k.classList.remove("hide");0===document.querySelectorAll(".abm-resource-filters__filter-list__category__tags")[1].scrollLeft?m.classList.add("hide"):(Math.round(n.scrollWidth-n.scrollLeft)===n.offsetWidth||Math.round(n.scrollWidth-n.scrollLeft)-1===n.offsetWidth||Math.round(n.scrollWidth-n.scrollLeft)+1===n.offsetWidth)&&
k.classList.add("hide")}))};W();window.onresize=function(){n&&n.scrollWidth>n.clientWidth?W():(m&&m.classList.add("hide"),k&&k.classList.add("hide"))};var V=function(){M.start+=M.count;M.count=y;M.category=t.filter(function(aa){return aa.classList.contains("selected")}).map(function(aa){return aa.getAttribute("value")}).join();sbssVideoBlogTiles.init(b,M,N)};e.addEventListener("click",function(){M.tabEvent=!1;V()});e.addEventListener("keyup",function(aa){13===aa.keyCode&&(M.tabEvent=!0,V(),aa.preventDefault())});
var ca=function(aa){M.tabEvent=!1;var ja=aa.getAttribute("value"),G=a.querySelector(d.classes.filterTagLabel+'[value\x3d"'+ja+'"]');ja=a.querySelector(d.classes.mobileDropDown+'[value\x3d"'+ja+'"]');G.classList.contains("selected")?(G.classList.remove("selected"),G.querySelector("input").checked=!1,ja.checked=!1):(G.classList.add("selected"),G.querySelector("input").checked=!0,ja.checked=!0);if(aa=aa.closest(".abm-resource-filters__drop-down__field"))aa.classList.add("hide"),h.querySelector(".arrow-icon").classList.remove("up-arrow");
aa=t.filter(function(P){return P.classList.contains("selected")}).map(function(P){return P.getAttribute("value")});0<aa.length?(M.categoryTitle=aa.map(function(P){return a.querySelector("#"+P).name}),M.category=aa.join(),a.classList.remove("no-filters")):(M.category="",M.categoryTitle=[],a.classList.add("no-filters"));M.start=0;M.count=B;b.innerHTML="";sbssVideoBlogTiles.init(b,M,N);window.digitalData&&_satellite&&(window.digitalData.resourcefiltertags=M.categoryTitle,_satellite.track("resource_filter_tags"));
window.history.pushState({},"",M.category?"?tags\x3d"+M.category:window.location.origin+window.location.pathname)};e=function(aa){aa.addEventListener("click",function(){ca(aa)});aa.addEventListener("keydown",function(ja){13===ja.keyCode&&ca(aa)})};f.forEach(e);g.forEach(e);h.addEventListener("click",function(aa){aa=aa.target.closest(".abm-resource-filters__drop-down");var ja=aa.querySelector(".abm-resource-filters__drop-down__field").classList;ja&&ja.contains("hide")?(h.querySelector(".arrow-icon").classList.add("up-arrow"),
aa.querySelector(".hide").classList.remove("hide")):(aa.querySelector(".abm-resource-filters__drop-down__field").classList.add("hide"),h.querySelector(".arrow-icon").classList.remove("up-arrow"))})}};window.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".sbss-resource-filters").forEach(function(a){d.init(a);window.onpopstate=function(){window.location.reload()}})})})();
(function(){var d={init:function(){this.hideAndShowPanel();this.bindEvents()},hideAndShowPanel:function(){document.querySelectorAll(".assets-accordion__content").forEach(function(a){var b=a.querySelectorAll(".assets-accordion__content__list-assets div");a.addEventListener("click",function(c){var e=c.target.classList[1];if(c.target.matches(".assets-accordion__content__list__item__header__button")){var f=this.querySelector(".expanded"),g=c.target.nextElementSibling.children[0].querySelector(".assets-accordion__content__list__item__panel__cta a"),
h=c.target.nextElementSibling.children[0].clientHeight;if(f===c.target)c.target.classList.toggle("expanded"),c.target.setAttribute("aria-expanded","false"),c.target.nextElementSibling.classList.add("hide-panel"),c.target.nextElementSibling.classList.remove("show-panel"),c.target.nextElementSibling.style.height="0px",g&&g.setAttribute("tabindex","-1");else{if(f){var k=f.nextElementSibling.children[0].querySelector(".assets-accordion__content__list__item__panel__cta a");f.classList.remove("expanded");
f.nextElementSibling.setAttribute("aria-expanded","false");f.nextElementSibling.classList.add("hide-panel");f.nextElementSibling.classList.remove("show-panel");f.nextElementSibling.style.height="0px";k&&k.setAttribute("tabindex","-1")}c.target.classList.add("expanded");c.target.setAttribute("aria-expanded","true");c.target.nextElementSibling.classList.add("show-panel");c.target.nextElementSibling.classList.remove("hide-panel");c.target.nextElementSibling.style.height=h+"px";g&&g.setAttribute("tabindex",
"0")}b.forEach(function(m){var n=m.children[0],t=n.getAttribute("src");m.classList.contains(e)?m.classList.contains("hide")&&(m.classList.remove("hide"),n.classList.contains("assets-accordion__content__list-assets__asset__video")?(n.pause(),n.currentTime=0,n.play()):n.classList.contains("assets-accordion__content__list-assets__asset__youtube")&&(t.includes("\x26autoplay\x3d1")||(t+="\x26autoplay\x3d1"),n.setAttribute("src",t))):m.classList.add("hide")})}})})},bindEvents:function(){var a=document.querySelectorAll(".assets-accordion__content__list__item__panel__cta a"),
b=function(e){var f=e.querySelector(".abm-success-story__media--video");f&&f.load();e.classList.add("hide");e.classList.remove("show");setTimeout(function(){e.classList.add("not-shown")},300);amznbase.addBodyScroll()},c=function(e){var f=e.closest(".assets-accordion__content__list__item").querySelector(".assets-accordion__content__list__item__modal");e=e.closest(".assets-accordion__content__list__item").querySelector(".assets-accordion__content__list__item__modal__wrapper");var g=f.querySelector(".assets-accordion__content__list__item__modal__wrapper__close"),
h=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=document.createElement("span");k.setAttribute("tabindex","0");f.classList.contains("hide")&&(f.classList.remove("hide"),f.classList.add("show"),f.classList.remove("not-shown"),amznbase.removeBodyScroll(),f.scrollTop=0,e.appendChild(k),f.focus());h&&f.querySelectorAll("a").forEach(function(m){m.addEventListener("click",function(){b(f)})});k.addEventListener("focus",function(){g.focus()});g.addEventListener("click",function(){b(f)});g.addEventListener("keyup",
function(m){13===m.keyCode&&b(f)})};document.querySelectorAll(".assets-accordion__content__list__item__modal").forEach(function(e){e.addEventListener("click",function(f){f.target.matches(".assets-accordion__content__list__item__modal")&&b(e)})});a.forEach(function(e){e.addEventListener("click",function(){c(this)});e.addEventListener("keyup",function(f){13===f.keyCode&&c(this)})})}};window.addEventListener("DOMContentLoaded",function(){document.querySelector(".assets-accordion")&&(d.init(),window.onpageshow=
function(a){var b=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);a.persisted&&b&&window.location.reload()})})})();
(function(){var d={init:function(){document.querySelectorAll(".sbss-category-link").forEach(function(a){var b=a.querySelector(".dropdown_button"),c=a.querySelector(".sbss-category-link__filter-list__category__right-arrow"),e=a.querySelector(".sbss-category-link__filter-list__category__left-arrow"),f=a.querySelector(".sbss-category-link__filter-list__category__tags"),g=a.dataset.pagepath,h=function(u,x,y,B,K){var E=0,A=setInterval(function(){"left"===x?(u.scrollLeft-=K,0===u.scrollLeft&&e.classList.add("hide")):
(u.scrollLeft+=K,Math.round(u.scrollWidth-u.scrollLeft)!==u.offsetWidth&&Math.round(u.scrollWidth-u.scrollLeft)-1!==u.offsetWidth&&Math.round(u.scrollWidth-u.scrollLeft)+1!==u.offsetWidth||c.classList.add("hide"));E+=K;E>=B&&window.clearInterval(A)},y)},k=function(){h(f,"left",25,100,10);c.classList.remove("hide")},m=function(){h(f,"right",25,100,10);e.classList.remove("hide")},n=function(){f&&f.scrollWidth>f.clientWidth&&(f.setAttribute("style","justify-content:initial"),c.classList.remove("hide"),
c.querySelector(".sbss-category-link__filter-list__category__right-arrow__btn")&&(c.querySelector(".sbss-category-link__filter-list__category__right-arrow__btn").removeEventListener("click",m),c.querySelector(".sbss-category-link__filter-list__category__right-arrow__btn").addEventListener("click",m)),e.querySelector(".sbss-category-link__filter-list__category__left-arrow__btn")&&(e.querySelector(".sbss-category-link__filter-list__category__left-arrow__btn").removeEventListener("click",k),e.querySelector(".sbss-category-link__filter-list__category__left-arrow__btn").addEventListener("click",
k)),f&&f.addEventListener("scroll",function(){e.classList.remove("hide");c.classList.remove("hide");0===f.scrollLeft?e.classList.add("hide"):(Math.round(f.scrollWidth-f.scrollLeft)===f.offsetWidth||Math.round(f.scrollWidth-f.scrollLeft)-1===f.offsetWidth||Math.round(f.scrollWidth-f.scrollLeft)+1===f.offsetWidth)&&c.classList.add("hide")}))};n();window.addEventListener("resize",function(){f&&f.scrollWidth>f.clientWidth?(f.setAttribute("style","justify-content:initial"),n()):(f.setAttribute("style",
"justify-content:center"),e&&e.classList.add("hide"),c&&c.classList.add("hide"))});b&&b.addEventListener("click",function(u){u=u.target.closest(".sbss-category-link__drop-down");var x=u.querySelector(".sbss-category-link__drop-down__field").classList;x&&x.contains("hide")?(b.querySelector(".arrow-icon").classList.add("up-arrow"),u.querySelector(".hide").classList.remove("hide")):(u.querySelector(".sbss-category-link__drop-down__field").classList.add("hide"),b.querySelector(".arrow-icon").classList.remove("up-arrow"))});
var t=function(u){document.getElementById(u.value);g.includes(".com")?g+="?tags\x3d"+u.value:g.includes(".html")||(g+=".html?tags\x3d"+u.value);window.history.pushState({},"",g);window.open(g,"_self")};document.addEventListener("click",function(u){var x=a.querySelector(".sbss-category-link__drop-down__field");u.target.matches(".sbss-category-link__drop-down__field li")&&u.target.querySelector('input[type\x3d"radio"]').click();u.target.matches('.sbss-category-link__drop-down__field input[type\x3d"radio"]')&&
(t(u.target),x.classList.add("hide"));u.target.classList.contains("dropdown_button")||u.target.classList.contains("radio__wrapper")||u.target.classList.contains("sbss-category-link__drop-down__field__radio")||u.target.classList.contains("sbss-category-link__filter-list__category__tags__tag__radio")||(x&&x.classList.add("hide"),b&&b.querySelector(".arrow-icon").classList.remove("up-arrow"))},!1);document.addEventListener("keydown",function(u){var x=document.querySelector(".sbss-category-link__drop-down__field");
13===u.keyCode&&(u.target.matches(".sbss-category-link__drop-down__field li")&&u.target.querySelector('input[type\x3d"radio"]').click(),u.target.matches('.sbss-category-link__drop-down__field input[type\x3d"radio"]')&&(t(u.target),x.classList.add("hide")),u.target.classList.contains("dropdown_button")||u.target.classList.contains("checkbox__wrapper")||u.target.classList.contains("sbss-category-link__drop-down__field__radio")||u.target.classList.contains("sbss-category-link__filter-list__category__tags__tag__radio")||
(x&&x.classList.add("hide"),b&&b.querySelector(".arrow-icon").classList.remove("up-arrow")))},!1)})}};window.addEventListener("DOMContentLoaded",function(){d.init();window.onpopstate=function(){window.location.reload()}})})();