(function(){function cfg(n){var e=document.getElementById("wpc-cfg-"+n);if(!e)return null;try{return JSON.parse(e.textContent)}catch(x){return null}}function wl(t,f,o){if(t==="load"&&document.readyState==="complete"){setTimeout(f,0);return}if(o&&o.once&&window.wpcAfterHeroGesture===1&&/^(?:pointerdown|keydown|touchstart|wheel|scroll|mousemove)$/.test(t)){f();return}window.addEventListener.apply(window,arguments)}try{var cl=cfg("lf");if(cl){(function(ag,hh){var nd=false;var tx=null;var ts=function(){if(tx)return tx;tx={};try{var t=((document.body&&document.body.textContent)||"").slice(0,20000);for(var i=0;i=48&&!(c>=8192&&c<=8303)&&!(c>=55296&&c<=57343)&&c!==9676&&!(c>=65024&&c<=65039)){tx[c]=1}}}catch(e){}return tx};var pk=function(rg){if(!rg||rg==="U+0-10FFFF")return 77;var sg=rg.split(",");var st=null;for(var i=0;i=0){lo=parseInt(m[1].replace(/\?/g,"0"),16);hi=parseInt(m[1].replace(/\?/g,"F"),16)}else{lo=parseInt(m[1],16);hi=m[2]?parseInt(m[2],16):lo}if(lo>=57344&&(hi<=63743||lo>=983040))return lo;st=st||ts();for(var k in st){k=+k;if(k>=lo&&k<=hi)return k}}return -1};var ux=null;var us=function(){if(ux)return ux;ux={};try{var e2=document.querySelectorAll("body *");for(var i=0;i=lo-100&&w<=hi+100&&u[k]===2)return true}}return false};var lfm=null;var lfn=function(v){return String(v||"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase()};var lfk=function(fa3,wt,st,ur,sr){var w=lfn(wt),s4=lfn(sr);return lfn(fa3)+"|"+(w===""||w==="normal"?"400":w)+"|"+(lfn(st)||"normal")+"|"+(lfn(ur)||"u+0-10ffff").split(" ").join("")+"|"+(s4===""||s4==="normal"?"100%":s4)};var lfy=function(f){return lfk(f.family,f.weight,f.style,f.unicodeRange,f.stretch)};var lfs=function(f){if(!lfm){lfm={};try{var ss=document.styleSheets;for(var i=0;ss&&i=wn3[ky[i]][1])wn3[ky[i]]=[i,at]}}catch(e){}}for(var m=0;m=sl[s2][0]&&uw<=sl[s2][1])return}if(!used[fm])nu++;used[fm]=1;(uws[fm]=uws[fm]||{})[uw]=1};if(ag){for(var g=0;gvh||r.bottom<0)continue;k++;var cs=getComputedStyle(el),fm=pf(cs.fontFamily);if(!fm)continue;ad(fm,wn2(cs.fontWeight))}}var lk=document.querySelectorAll("link[data-wpc-lf]");for(var q=0;q0);if(lf!==null){var fs=lf.split(",");for(var x=0;x0)o[bd[i].slice(0,p).trim().toLowerCase()]=bd[i].slice(p+1).trim()}return o};for(var hk in held){(function(fk,rs){var fl=[],uw=uws[fk]||{};for(var i=0;i=lo&&+w<=hi){hit=true;break}}if(!hit||!d.src||pk(d["unicode-range"]||"")===-1)continue;try{fl.push(new FontFace((d["font-family"]||"").replace(/["']/g,"").trim(),d.src,{weight:d["font-weight"]||"400",style:d["font-style"]||"normal",unicodeRange:d["unicode-range"]||"U+0-10FFFF",display:d["font-display"]||"auto"}))}catch(e){}}var asCss=function(){ins(rs.join(""),"wpc-late-faces-atf-"+fk.replace(/[^a-z0-9]/g,""))};if(!fl.length){asCss();return}Promise.all(fl.map(function(f){return f.load()})).then(function(){for(var i=0;i-1)}catch(x){}if(ok){try{po=new PerformanceObserver(function(l){var a=l.getEntries();for(var i=0;i-1){go("entry");return}}});po.observe({type:"largest-contentful-paint",buffered:!0})}catch(x){po=0}}var ld=function(){setTimeout(function(){go("load")},100)};if(document.readyState==="complete"){ld()}else{window.addEventListener("load",ld,{once:!0})}tm=setTimeout(function(){go("timeout")},+hh.t>0?+hh.t:3000)};(hh&&hh.u&&hh.u.length?l1g(fa):fa());var f=function(){var e=document.getElementById("wpc-late-faces");if(!window.wpcSwapLateBarrier){var lk=document.querySelectorAll("link[data-wpc-lf]");for(var q=0;q=1)return; var atf=[],lcp=null,sent=0,hu=0,cen=null,ready=null,pq=0; ['pointerdown','keydown','touchstart','wheel','scroll','mousemove'].forEach(function(ev){addEventListener(ev,function(){hu=1},{once:true,passive:true,capture:true})}); requestAnimationFrame(function(){var vh=innerHeight,vw=innerWidth,xs=document.images,i,im,r; for(i=0;i=vh||r.left>=vw)continue; atf.push({classes:String(im.className||'').split(/\s+/).slice(0,2),slot_w:Math.round(r.width),slot_h:Math.round(r.height),intrinsic_w:im.naturalWidth||0,current_src:String(im.currentSrc||im.src||'').slice(0,300),loading:im.getAttribute('loading')||''})}}); try{new PerformanceObserver(function(l){var e=l.getEntries();if(!e.length)return;var x=e[e.length-1],el=x.element; var sel=el?el.tagName.toLowerCase()+(el.className?'.'+String(el.className).split(/\s+/).slice(0,2).join('.'):''):''; var rr=el&&el.getBoundingClientRect?el.getBoundingClientRect():{width:0,height:0,x:0,y:0}; lcp={selector:sel.slice(0,120),url:x.url?String(x.url).slice(0,300):null,rect:{w:Math.round(rr.width),h:Math.round(rr.height),x:Math.round(rr.x),y:Math.round(rr.y)},t_ms:Math.round(x.startTime)};if(cen&&!sent)prepare()}).observe({type:'largest-contentful-paint',buffered:true})}catch(e){} function fontsUsed(){var fu=[];try{document.fonts.forEach(function(f){if(f.status==='loaded'){var k=(f.family+'|'+f.weight+'|'+f.style).slice(0,120);if(fu.indexOf(k)<0&&fu.length<64)fu.push(k)}})}catch(e){}return fu} function census(done){try{var vh=innerHeight,vw=innerWidth,all=document.body.getElementsByTagName('*'),els=[],ids=[],i,e,r; for(i=0;i=vh||r.left>=vw||r.right<=0)continue;els.push(e);if(e.id&&ids.length<200)ids.push(String(e.id).slice(0,80))} var sels=[],seen={},trunc=false,sheets=[].slice.call(document.styleSheets),si=0,ori=location.origin,shr=0,shc=0; function rules(list){var k,rl,st,j,m,p,parts,hit;for(k=0;k=2000){trunc=true;return} if(rl.type===1&&rl.selectorText){st=String(rl.selectorText);if(st.length>300||seen[st])continue;parts=st.split(',');hit=false; for(j=0;j=2000){trunc=true;break}} if(si0))continue; x=((u.pathname.match(/\.([a-z0-9]+)$/i)||[])[1]||'').toLowerCase(); t=/^(woff2?|ttf|otf|eot)$/.test(x)?'font':x==='css'?'css':/^m?js$/.test(x)?'js':/^(jpe?g|png|gif|webp|avif|svg|bmp|ico)$/.test(x)?'img':e.initiatorType==='script'?'js':e.initiatorType==='img'?'img':''; if(!t)continue; f={type:t,path:u.pathname.slice(0,200),ttfb_ms:Math.max(0,Math.round(e.responseStart-(e.requestStart||e.startTime))),dl_ms:Math.max(0,Math.round(e.responseEnd-e.responseStart)),transfer:e.transferSize||0,body:e.encodedBodySize||0,lcp:!!lu&&String(e.name).slice(0,300)===lu}; if(f.lcp)fs.unshift(f);else fs.push(f)} fs=fs.slice(0,10);o={lcp_ms:lcp?lcp.t_ms:0,lcp_cdn:z(lh),files:fs}; if(navigator.connection&&navigator.connection.effectiveType)o.ect=String(navigator.connection.effectiveType); while(fs.length&&JSON.stringify(o).length>2048)fs.pop(); return fs.length||o.lcp_cdn?o:null}catch(q){return null}} function body(){var dev=(matchMedia('(max-width:767px)').matches||/Mobi|Android/i.test(navigator.userAgent))?'mobile':'desktop'; var ph='0'+(lcp?'1':'')+(cen?'2':''),shs=cen&&cen.sheets?cen.sheets:{total:0,readable:0,cors_blocked:0}; var o={v:2,url:(location.origin+location.pathname).slice(0,500),sr:cr.r,device:dev,device_ua:cr.du,gen_uuid:cr.gu,plugin_version:cr.pv,phases:ph,sheets:shs,selector_source:cen&&shs.readable>0?'cssRules':'none',viewport:{w:innerWidth,h:innerHeight,dpr:devicePixelRatio||1},lcp:lcp,atf_images:atf,fonts_used:fontsUsed(),atf_selectors:cen?cen.atf_selectors:[],atf_ids:cen?cen.atf_ids:[],truncated:cen?!!cen.truncated:true},c=cdnB();if(c)o.cdn=c;return o} function form(s){return new Blob(['d='+encodeURIComponent(btoa(s))],{type:'application/x-www-form-urlencoded'})} function bin(ab){var u=new Uint8Array(ab),s='',i;for(i=0;i30000){o.atf_selectors=o.atf_selectors.slice(0,300);o.truncated=true;o.bytes=JSON.stringify(o).length;b=JSON.stringify(o)}ready={blob:form(utf8(b)),gz:0}}}catch(e){}} var send=function(){if(!hu||sent||(!atf.length&&!lcp&&!cen)||!cok())return;sent=1;var r=ready; if(!r){try{var o=body();o.atf_selectors=o.atf_selectors.slice(0,300);o.truncated=true;var b=JSON.stringify(o);if(b.length>30000){o.atf_selectors=[];b=JSON.stringify(o)}o.bytes=b.length;b=JSON.stringify(o);r={blob:form(utf8(b)),gz:0}}catch(e){return}} navigator.sendBeacon&&navigator.sendBeacon(cr.ax+'?action=wpc_rum_census'+(r.gz?'&enc=gz':''),r.blob)}; addEventListener('load',function(){('requestIdleCallback'in window?requestIdleCallback:function(f){setTimeout(f,2e3)})(function(){census(function(c){cen=c;prepare();setTimeout(send,1200)})})}); addEventListener('pagehide',send); }catch(e){}})();})(wl)}}catch(x){}})();if(window.wpcVitals){function wpcVSend(e,b,c){try{var u=e.u,f=e.a||"";try{if(f&&localStorage.getItem("wpcVCh")==="a"){u=f;f=""}}catch(x){}if("hidden"===document.visibilityState&&navigator.sendBeacon&&navigator.sendBeacon(u,new Blob([b],{type:c})))return;var p=function(t,d){return fetch(t,{method:"POST",body:d,keepalive:!0,headers:{"Content-Type":c}})};var q=function(){if(f){p(f,b+"&fb=1");try{localStorage.setItem("wpcVCh","a")}catch(x){}}};if(!window.fetch||!f){navigator.sendBeacon?navigator.sendBeacon(u,new Blob([b],{type:c})):window.fetch&&p(u,b);return}p(u,b).then(function(r){r.ok||q()}).catch(q)}catch(x){}} var webVitals=function(e){"use strict";let t=-1;const n=e=>{addEventListener("pageshow",(n=>{n.persisted&&(t=n.timeStamp,e(n))}),!0)},i=(e,t,n,i)=>{let r,s;return a=>{t.value>=0&&(a||i)&&(s=t.value-(r??0),(s||void 0===r)&&(r=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},r=e=>{requestAnimationFrame((()=>requestAnimationFrame(e)))},s=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStarts()?.activationStart??0,o=(e,n=-1)=>{const i=s();let r="navigate";return t>=0?r="back-forward-cache":i&&(document.prerendering||a()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},c=new WeakMap;function l(e,t){let n=c.get(t);return n||(n=new WeakMap,c.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}class d{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}const u=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{queueMicrotask((()=>{t(e.getEntries())}))}));return i.observe({type:e,buffered:!0,...n}),i}}catch{}},h=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let p=-1;const m=new Set,f=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,v=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of m)e();isFinite(p)||(p="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",v,!0))}},g=()=>{if(p<0){const e=a(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find((t=>"hidden"===t.name&&t.startTime>=e))?.startTime;p=t??f(),addEventListener("visibilitychange",v,!0),addEventListener("prerenderingchange",v,!0),n((()=>{setTimeout((()=>{p=f()}))}))}return{get firstHiddenTime(){return p},onHidden(e){m.add(e)}}},T=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},b=[1800,3e3],y=(e,t={})=>{T((()=>{const s=g();let c,l=o("FCP");const d=u("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime{l=o("FCP"),c=i(e,l,b,t.reportAllChanges),r((()=>{l.value=performance.now()-n.timeStamp,c(!0)}))})))}))},w=[.1,.25];let C=0,L=1/0,E=0;const M=e=>{for(const t of e)t.interactionId&&(L=Math.min(L,t.interactionId),E=Math.max(E,t.interactionId),C=E?(E-L)/7+1:0)};let S;const P=()=>S?C:performance.interactionCount??0;let I=0;class A{l=[];u=new Map;m;p;v(){I=P(),this.l.length=0,this.u.clear()}T(){const e=Math.min(this.l.length-1,Math.floor((P()-I)/50));return this.l[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.l.at(-1);let n=this.u.get(e.interactionId);if(n||this.l.length<10||e.duration>t.L){if(n?e.duration>n.L?(n.entries=[e],n.L=e.duration):e.duration===n.L&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],L:e.duration},this.u.set(n.id,n),this.l.push(n)),this.l.sort(((e,t)=>t.L-e.L)),this.l.length>10){const e=this.l.splice(10);for(const t of e)this.u.delete(t.id)}this.p?.(n)}}}const F=e=>{const t=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const i=h(e);let r=-1;const s=()=>{n(r),i()};addEventListener("visibilitychange",s,{once:!0,capture:!0}),r=t((()=>{removeEventListener("visibilitychange",s,{capture:!0}),i()}))}},k=[200,500];class B{m;h(e){this.m?.(e)}}const V=[2500,4e3],N=[800,1800],x=e=>{document.prerendering?T((()=>x(e))):"complete"!==document.readyState?addEventListener("load",(()=>x(e)),!0):setTimeout(e)};return e.CLSThresholds=w,e.FCPThresholds=b,e.INPThresholds=k,e.LCPThresholds=V,e.TTFBThresholds=N,e.onCLS=(e,t={})=>{const s=g();y(h((()=>{let a,c=o("CLS",0);const h=l(t,d),p=e=>{for(const t of e)h.h(t);h.i>c.value&&(c.value=h.i,c.entries=h.o,a())},m=u("layout-shift",p);m&&(a=i(e,c,w,t.reportAllChanges),s.onHidden((()=>{p(m.takeRecords()),a(!0)})),n((()=>{h.i=0,c=o("CLS",0),a=i(e,c,w,t.reportAllChanges),r(a)})),setTimeout(a))})))},e.onFCP=y,e.onINP=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=g();T((()=>{"interactionCount"in performance||S||(S=u("event",M,{durationThreshold:0}));let s,a=o("INP");const c=l(t,A),d=e=>{F((()=>{for(const t of e)c.h(t);const t=c.T();t&&t.L!==a.value&&(a.value=t.L,a.entries=t.entries,s())}))},h=u("event",d,{durationThreshold:t.durationThreshold??40});s=i(e,a,k,t.reportAllChanges),h&&(h.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{d(h.takeRecords()),s(!0)})),n((()=>{c.v(),a=o("INP"),s=i(e,a,k,t.reportAllChanges)})))}))},e.onLCP=(e,t={})=>{T((()=>{const s=g();let c,d=o("LCP");const p=l(t,B),m=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)p.h(t),t.startTime{m(f.takeRecords()),f.disconnect(),c(!0)})),a=e=>{e.isTrusted&&(F(s),removeEventListener(e.type,a,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])addEventListener(e,a,{capture:!0});n((n=>{d=o("LCP"),c=i(e,d,V,t.reportAllChanges),r((()=>{d.value=performance.now()-n.timeStamp,c(!0)}))}))}}))},e.onTTFB=(e,t={})=>{let r=o("TTFB"),c=i(e,r,N,t.reportAllChanges);x((()=>{const l=s();l&&(r.value=Math.max(l.responseStart-a(),0),r.entries=[l],c(!0),n((()=>{r=o("TTFB",0),c=i(e,r,N,t.reportAllChanges),c(!0)})))}))},e}({});!function(){"use strict";var e=window.wpcVitals;if(e&&e.u&&e.t&&window.webVitals&&navigator.sendBeacon&&!0!==navigator.webdriver){var t=Number(e.s)||1;if(!(t>1&&Math.random()>=1/t)){var HU=window.wpcAfterHeroGesture===1;["pointerdown","keydown","touchstart","wheel","scroll","mousemove"].forEach(function(ev){addEventListener(ev,function(){HU=!0},{once:!0,passive:!0,capture:!0})});var n={},i=!1,r=function(e){return function(t){n[e]=t.value}};try{webVitals.onLCP(r("lcp")),webVitals.onCLS(r("cls")),webVitals.onINP(r("inp")),webVitals.onTTFB(r("ttfb")),webVitals.onFCP(r("fcp"))}catch(e){}addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&a()}),!0),addEventListener("pagehide",a,!0),addEventListener("pageshow",(function(e){e.persisted&&(i=!1,n={})}),!0)}}function s(){try{var t=function(){try{return performance.getEntriesByType("navigation")[0]||null}catch(e){return null}}();if(t&&t.serverTiming&&t.serverTiming.length){for(var n=0,i=0;i0)return Date.now()/1e3-n>300?1:0}var s=Number(e.m)||0;if(s>0&&Date.now()/1e3-s>300)return 1}catch(e){}return 0}function a(){if(HU&&!i){i=!0;try{var t="v=1&t="+encodeURIComponent(e.t)+(e.b?"&b=1":"")+"&d="+(Math.min(window.innerWidth||1024,window.screen&&screen.width||1024)<768?"m":"d")+"&e="+(r=navigator.userAgent,(/Firefox\//.test(r)?"f":/Chrome\/|Chromium\/|Edg\//.test(r)?"c":/Safari\//.test(r)&&/Version\//.test(r)?"s":"o")+"&h=")+s();null!=n.lcp&&(t+="&lcp="+Math.round(n.lcp)),null!=n.cls&&(t+="&cls="+Math.round(1e3*n.cls)),null!=n.inp&&(t+="&inp="+Math.round(n.inp)),null!=n.ttfb&&(t+="&ttfb="+Math.round(n.ttfb)),null!=n.fcp&&(t+="&fcp="+Math.round(n.fcp)),wpcVSend(e,t,"application/x-www-form-urlencoded")}catch(e){}var r}}}();(function(){try{var e=window.wpcVitals;if(!e||!e.u||!e.t)return;if(navigator.webdriver)return;var t=Number(e.s)||1;if(Math.random()>=1/t)return;var n=window.matchMedia&&matchMedia("(max-width: 767.98px)").matches?"m":"d",i=Number(e.m)||0,r=function(){try{var t=performance.getEntriesByType("navigation")[0];if(t&&t.serverTiming&&t.serverTiming.length){for(var n=0,j=0;j0)return Date.now()/1e3-n>300?"1":"0"}}catch(c){}return i&&Math.floor(Date.now()/1e3)-i>300?"1":"0"}(),o="t="+encodeURIComponent(e.t)+(e.b?"&b=1":"")+"&k=p&d="+n+"&h="+r,a=function(){try{wpcVSend(e,o,"application/x-www-form-urlencoded")}catch(c){}};var HU2=window.wpcAfterHeroGesture===1;["pointerdown","keydown","touchstart","wheel","scroll","mousemove"].forEach(function(ev){addEventListener(ev,function(){HU2=!0},{once:!0,passive:!0,capture:!0})});var s=!1,g=function(){HU2&&(s||(s=!0,a()))},L=function(){setTimeout(g,8e3)};addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&g()},!0),addEventListener("pagehide",g,!0),"complete"===document.readyState?L():addEventListener("load",L,{once:!0})}catch(c){}})(); (function(){try{if(!window.PerformanceObserver||!localStorage)return;if(window.wpcVitals&&window.wpcVitals.b)return;var e=0,t=function(){try{e>0&&localStorage.setItem("wpcVitalsYou",JSON.stringify({lcp:Math.round(e),t:Math.floor(Date.now()/1e3)}))}catch(n){}};new PerformanceObserver((function(t){var n=t.getEntries();n.length&&(e=n[n.length-1].startTime)})).observe({type:"largest-contentful-paint",buffered:!0}),addEventListener("load",(function(){setTimeout(t,2e3)}),{once:!0}),addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}),!0)}catch(n){}})(); }