PageSourceSearch

https://app.weneed.ch/static/js/685.bbe16430.chunk.js

js weneed.ch collected 2026-10-02 00:05:57 UTC 6,906 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkeinkaufszettel_web=self.webpackChunkeinkaufszettel_web||[]).push([[685],{31685(e,t,n){n.d(t,{onCLS:()=>P,onFCP:()=>S,onINP:()=>_,onLCP:()=>O,onTTFB:()=>G});var i=n(89379),r=n(64467);let o=-1;const s=e=>{addEventListener("pageshow",t=>{t.persisted&&(o=t.timeStamp,e(t))},!0)},a=(e,t,n,i)=>{let r,o;return s=>{t.value>=0&&(s||i)&&(o=t.value-(null!==r&&void 0!==r?r:0),(o||void 0===r)&&(r=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},l=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},c=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},d=()=>{var e;const t=c();return null!==(e=null===t||void 0===t?void 0:t.activationStart)&&void 0!==e?e:0},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const n=c();let i="navigate";return o>=0?i="back-forward-cache":n&&(document.prerendering||d()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},h=new WeakMap;function v(e,t){return h.get(e)||h.set(e,new t),h.get(e)}class m{constructor(){(0,r.A)(this,"t",void 0),(0,r.A)(this,"i",0),(0,r.A)(this,"o",[])}h(e){var t;if(e.hadRecentInput)return;const n=this.o[0],i=this.o.at(-1);this.i&&n&&i&&e.startTime-i.startTime<1e3&&e.startTime-n.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),null===(t=this.t)||void 0===t||t.call(this,e)}}const p=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe((0,i.A)({type:e,buffered:!0},n)),r}}catch(r){}},f=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let g=-1;const T=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,y=e=>{"hidden"===document.visibilityState&&g>-1&&(g="visibilitychange"===e.type?e.timeStamp:0,C())},b=()=>{addEventListener("visibilitychange",y,!0),addEventListener("prerenderingchange",y,!0)},C=()=>{removeEventListener("visibilitychange",y,!0),removeEventListener("prerenderingchange",y,!0)},A=()=>{if(g<0){var e;const t=d(),n=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>t)[0])||void 0===e?void 0:e.startTime;g=null!==n&&void 0!==n?n:T(),b(),s(()=>{setTimeout(()=>{g=T(),b()})})}return{get firstHiddenTime(){return g}}},E=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},L=[1800,3e3],S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(()=>{const n=A();let i,r=u("FCP");const o=p("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-d(),0),r.entries.push(t),i(!0)))});o&&(i=a(e,r,L,t.reportAllChanges),s(n=>{r=u("FCP"),i=a(e,r,L,t.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})}))})},w=[.1,.25],P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S(f(()=>{let n,i=u("CLS",0);const r=v(t,m),o=e=>{for(const t of e)r.h(t);r.i>i.value&&(i.value=r.i,i.entries=r.o,n())},c=p("layout-shift",o);c&&(n=a(e,i,w,t.reportAllChanges),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(o(c.takeRecords()),n(!0))}),s(()=>{r.i=0,i=u("CLS",0),n=a(e,i,w,t.reportAllChanges),l(()=>n())}),setTimeout(n))}))};let k=0,I=1/0,M=0;const F=e=>{for(const t of e)t.interactionId&&(I=Math.min(I,t.interactionId),M=Math.max(M,t.interactionId),k=M?(M-I)/7+1:0)};let B;const x=()=>{var e;return B?k:null!==(e=performance.interactionCount)&&void 0!==e?e:0};let R=0;class q{constructor(){(0,r.A)(this,"u",[]),(0,r.A)(this,"l",new Map),(0,r.A)(this,"m",void 0),(0,r.A)(this,"v",void 0)}p(){R=x(),this.u.length=0,this.l.clear()}P(){const e=Math.min(this.u.length-1,Math.floor((x()-R)/50));return this.u[e]}h(e){var t;if(null!==(t=this.m)&&void 0!==t&&t.call(this,e),!e.interactionId&&"first-input"!==e.entryType)return;const n=this.u.at(-1);let i=this.l.get(e.interactionId);if(i||this.u.length<10||e.duration>n.T){var r;if(i?e.duration>i.T?(i.entries=[e],i.T=e.duration):e.duration===i.T&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],T:e.duration},this.l.set(i.id,i),this.u.push(i)),this.u.sort((e,t)=>
1t.T-e.T),this.u.length>10){const e=this.u.splice(10);for(const t of e)this.l.delete(t.id)}null===(r=this.v)||void 0===r||r.call(this,i)}}}const H=e=>{const t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=f(e),document.addEventListener("visibilitychange",e,{once:!0}),t(()=>{e(),document.removeEventListener("visibilitychange",e)}))},N=[200,500],_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&E(()=>{var n;"interactionCount"in performance||B||(B=p("event",F,{type:"event",buffered:!0,durationThreshold:0}));let i,r=u("INP");const o=v(t,q),l=e=>{H(()=>{for(const n of e)o.h(n);const t=o.P();t&&t.T!==r.value&&(r.value=t.T,r.entries=t.entries,i())})},c=p("event",l,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=a(e,r,N,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(l(c.takeRecords()),i(!0))}),s(()=>{o.p(),r=u("INP"),i=a(e,r,N,t.reportAllChanges)}))})};class z{constructor(){(0,r.A)(this,"m",void 0)}h(e){var t;null===(t=this.m)||void 0===t||t.call(this,e)}}const D=[2500,4e3],O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(()=>{const n=A();let i,r=u("LCP");const o=v(t,z),c=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)o.h(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-d(),0),r.entries=[t],i())},h=p("largest-contentful-paint",c);if(h){i=a(e,r,D,t.reportAllChanges);const n=f(()=>{c(h.takeRecords()),h.disconnect(),i(!0)});for(const e of["keydown","click","visibilitychange"])addEventListener(e,()=>H(n),{capture:!0,once:!0});s(n=>{r=u("LCP"),i=a(e,r,D,t.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})})}})},W=[800,1800],j=e=>{document.prerendering?E(()=>j(e)):"complete"!==document.readyState?addEventListener("load",()=>j(e),!0):setTimeout(e)},G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=u("TTFB"),i=a(e,n,W,t.reportAllChanges);j(()=>{const r=c();r&&(n.value=Math.max(r.responseStart-d(),0),n.entries=[r],i(!0),s(()=>{n=u("TTFB",0),i=a(e,n,W,t.reportAllChanges),i(!0)}))})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.