2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
|
"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[6183],{51731:(e,n,r)=>{r.r(n),r.d(n,{default:()=>m});var t=r(96540),o=r(27721),u=r(61538),i=r(51260),c=r(13051),s=r(46473),a=r(39160),f=r(10131),l=r(61333),d=r(80296),p=r(64467),v=r(47517),h=r(17163);function b(){for(var e=new h.c,n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];if(0===r.length)return e;var o=r.map((function(){return[]}));return r.forEach((function(n,r){n.observe((function(n){o[r].push(n),o.every((function(e){return e.length>0}))&&e.set(o.map((function(e){return e.shift()})))}))})),e}var g=function(e){return function(n){return(0,p.A)({},e,n)}};const m=function(){var e,n,r,p,h,m,_,w,P,y;return(0,t.useEffect)((function(){var e=b(f.XX,f.sP,f.ge).map((function(e){var n=(0,d.A)(e,3),r=n[0],t=n[1],o=n[2];return{responseEndToLCP:new f.JW(r.response.end,t.end),responseEndToFCP:new f.JW(r.response.end,o.end)}})),n=b(f.XX,f.UX.map(g("fid")),f.ge.map(g("fcp")),f.sP.map(g("lcp")),f.Wn.map(g("inp")),f.xF.map(g("cls")),e);f.Nm.observe((function(e){e||n.observe((function(e){var n=e.reduce((function(e,n){return Object.assign(e,n)}),{}),r=Object.keys(n).reduce((function(e,r){var t="number"==typeof n[r]?n[r]:n[r].duration;return e[r]=t%1==0?t:Number(t.toFixed(1)),e}),{}),t=document.children[0],o={html:null==t?void 0:t.innerHTML.length,redux:JSON.stringify(window.__PRELOADED_STATE__).length,apollo:JSON.stringify(window.__APOLLO_STATE__).length};v.v.debug({perf:r,sizes:o},"client hydrated")}))})),f.BI.observe((function(e){return v.v.debug({resources:e},"client resource sizes")}))}),[]),e=(0,a.d4)((function(e){return e.client.viewerIsBot})),n=(0,o.R)(),r=n.loading,p=n.error,h=!!n.value,m=(0,s.HG)(),_=(0,s.$o)(),w=(0,a.Dy)((function(e){return e.cache.cacheStatus})),P=(0,i.IF)(),y=(0,u.$L)(),t.useEffect((function(){var n;if(y&&!e&&!r&&!p){var t=P(window.location.pathname),o=null!==(n=null==t?void 0:t.route.metricName)&&void 0!==n?n:"unidentified",u=(0,l.Gz)(navigator.userAgent),i=[];m?i.push("edge_cache_enabled"):_&&i.push("edge_cache_control"),w===c.lJ.Hit&&i.push("edge_cache_hit");var s=i.join(","),a={loggedIn:h,mobileOrTablet:u,experiment:s,route:o};f.XX.observe((function(e){y.reportRender(a,e)})),f.ge.observe((function(e){y.reportFirstContentfulPaint(a,e)})),f.sP.observe((function(e){y.reportLargestContentfulPaint(a,e)})),f.xF.observe((function(e){y.reportCumulativeLayoutShift(a,e)})),f.Nm.observe((function(e){e&&y.reportUnsupportedPerfObserver(a)})),f.UX.observe((function(e){y.reportFirstInputDelay(a,e)})),f.Wn.observe((function(e){y.reportInteractionNextPaint(a,e)}))}}),[r,p,h,e]),null}}}]);
|
||
|
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/instrumentation.d9108df7.chunk.js.map
|