PageSourceSearch

https://reporting.happy-or-not.com/assets/index-4Jku0oVP.js

js happy-or-not.com collected 2026-10-02 03:15:26 UTC 6,906 bytes, 1 lines download raw bytes

vendor: 4,128 bytes, line 1
1import{i as p,K as d,G as l,S as f,N as w,O,P as S,Q as b,l as E,T as g}from"./browser-agent-m10cITbU.js";import{A as R,i as T}from"./aggregate-base-3Twa-eY_.js";import{i as A}from"./iframe-PalxAwQ_.js";import"./main-CX5PqK3X.js";import"./event-buffer-D7sh4Nzo.js";const r={REACT:"React",NEXTJS:"NextJS",VUE:"Vue",NUXTJS:"NuxtJS",ANGULAR:"Angular",ANGULARUNIVERSAL:"AngularUniversal",SVELTE:"Svelte",SVELTEKIT:"SvelteKit",PREACT:"Preact",PREACTSSR:"PreactSSR",ANGULARJS:"AngularJS",BACKBONE:"Backbone",EMBER:"Ember",METEOR:"Meteor",ZEPTO:"Zepto",JQUERY:"Jquery",MOOTOOLS:"MooTools",QWIK:"Qwik",FLUTTER:"Flutter",ELECTRON:"Electron"};function m(){if(!p)return[];const e=[];try{v()&&(e.push(r.REACT),M()&&e.push(r.NEXTJS)),P()&&(e.push(r.VUE),C()&&e.push(r.NUXTJS)),N()&&(e.push(r.ANGULAR),_()&&e.push(r.ANGULARUNIVERSAL)),j()&&(e.push(r.SVELTE),L()&&e.push(r.SVELTEKIT)),U()&&(e.push(r.PREACT),k()&&e.push(r.PREACTSSR)),G()&&e.push(r.ANGULARJS),Object.prototype.hasOwnProperty.call(window,"Backbone")&&e.push(r.BACKBONE),Object.prototype.hasOwnProperty.call(window,"Ember")&&e.push(r.EMBER),Object.prototype.hasOwnProperty.call(window,"Meteor")&&e.push(r.METEOR),Object.prototype.hasOwnProperty.call(window,"Zepto")&&e.push(r.ZEPTO),Object.prototype.hasOwnProperty.call(window,"jQuery")&&e.push(r.JQUERY),Object.prototype.hasOwnProperty.call(window,"MooTools")&&e.push(r.MOOTOOLS),Object.prototype.hasOwnProperty.call(window,"qwikevents")&&e.push(r.QWIK),Object.hasOwn(window,"_flutter")&&e.push(r.FLUTTER),I()&&e.push(r.ELECTRON)}catch{}return e}function v(){try{return Object.prototype.hasOwnProperty.call(window,"React")||Object.prototype.hasOwnProperty.call(window,"ReactDOM")||Object.prototype.hasOwnProperty.call(window,"ReactRedux")||document.querySelector("[data-reactroot], [data-reactid]")||(()=>{const e=document.querySelectorAll("body > div");for(let t=0;t<e.length;t++)if(Object.prototype.hasOwnProperty.call(e[t],"_reactRootContainer"))return!0})()}catch{return!1}}function M(){try{return Object.prototype.hasOwnProperty.call(window,"next")&&Object.prototype.hasOwnProperty.call(window.next,"version")}catch{return!1}}function P(){try{return Object.prototype.hasOwnProperty.call(window,"Vue")}catch{return!1}}function C(){try{return Object.prototype.hasOwnProperty.call(window,"$nuxt")&&Object.prototype.hasOwnProperty.call(window.$nuxt,"nuxt")}catch{return!1}}function N(){try{return Object.prototype.hasOwnProperty.call(window,"ng")||document.querySelector("[ng-version]")}catch{return!1}}function _(){try{return document.querySelector("[ng-server-context]")}catch{return!1}}function j(){try{return Object.prototype.hasOwnProperty.call(window,"__svelte")}catch{return!1}}function L(){try{return!!Object.keys(window).find(e=>e.startsWith("__sveltekit"))}catch{return!1}}function U(){try{return Object.prototype.hasOwnProperty.call(window,"preact")}catch{return!1}}function k(){try{return document.querySelector('script[type="__PREACT_CLI_DATA__"]')}catch{return!1}}function G(){try{return Object.prototype.hasOwnProperty.call(window,"angular")||document.querySelector(".ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]")||document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')}catch{return!1}}function I(){try{return typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0}catch{return!1}}function D(e){try{let n=function(s,o,c,u){const a="audit";c?u?t.push(i(a,s,o,"true","positive")):t.push(i(a,s,o,"false","positive")):u?t.push(i(a,s,o,"false","negative")):t.push(i(a,s,o,"true","negative"))};const t=[],i=(...s)=>s.join("/");return e.page_view_event&&(n("page_view","hasReplay",e.page_view_event.hasReplay,!!e.session_replay),n("page_view","hasTrace",e.page_view_event.hasTrace,!!e.session_trace)),e.session_replay&&n("session_replay","hasError",e.session_replay.hasError,!!e.jserrors),t}catch{return[]}}class q extends R{static featureName=d;constructor(t){super(t,d),this.harvestOpts.aggregatorTypes=["cm","sm"],this.harvestMetadata={},this.harvestOpts.beforeUnload=()=>
1{D(this.harvestMetadata).forEach(i=>{this.storeSupportabilityMetrics(i)})},this.agentNonce=p&&document.currentScript?.nonce,this.waitForFlags(["err"]).then(([i])=>{i?(this.singleChecks(),this.eachSessionChecks(),this.drain()):(this.blocked=!0,this.deregisterDrain())}),l(f,this.storeSupportabilityMetrics.bind(this),this.featureName,this.ee),l(w,this.storeEventMetrics.bind(this),this.featureName,this.ee)}preHarvestChecks(t){return this.drained&&t.isFinalHarvest}storeSupportabilityMetrics(t,i){if(this.blocked)return;const n=O,s={name:t};this.events.addMetric(n,t,s,i)}storeEventMetrics(t,i){if(this.blocked)return;const n=S,s={name:t};this.events.add([n,t,s,i])}singleChecks(){const{distMethod:t,loaderType:i}=this.agentRef.runtime,{proxy:n,privacy:s}=this.agentRef.init;if(i&&this.storeSupportabilityMetrics("Generic/LoaderType/".concat(i,"/Detected")),t&&this.storeSupportabilityMetrics("Generic/DistMethod/".concat(t,"/Detected")),p?(this.storeSupportabilityMetrics("Generic/Runtime/Browser/Detected"),this.agentNonce&&this.agentNonce!==""&&this.storeSupportabilityMetrics("Generic/Runtime/Nonce/Detected"),b(()=>{m().forEach(o=>{this.storeSupportabilityMetrics("Framework/"+o+"/Detected")})}),s.cookies_enabled||this.storeSupportabilityMetrics("Config/SessionTracking/Disabled")):E?this.storeSupportabilityMetrics("Generic/Runtime/Worker/Detected"):this.storeSupportabilityMetrics("Generic/Runtime/Unknown/Detected"),T()&&this.storeSupportabilityMetrics("Generic/FileProtocol/Detected"),this.obfuscator.obfuscateConfigRules.length>0&&this.storeSupportabilityMetrics("Generic/Obfuscate/Detected"),n.assets&&this.storeSupportabilityMetrics("Config/AssetsUrl/Changed"),n.beacon&&this.storeSupportabilityMetrics("Config/BeaconUrl/Changed"),p&&window.MutationObserver){A(window)&&this.storeSupportabilityMetrics("Generic/Runtime/IFrame/Detected");const o=window.document.querySelectorAll("video").length;o&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",o);const c=window.document.querySelectorAll("iframe").length;c&&this.storeSupportabilityMetrics("Generic/IFrame/Added",c),new MutationObserver(a=>{a.forEach(y=>{y.addedNodes.forEach(h=>{h instanceof HTMLVideoElement&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",1),h instanceof HTMLIFrameElement&&this.storeSupportabilityMetrics("Generic/IFrame/Added",1)})})}).observe(window.document.body,{childList:!0,subtree:!0})}navigator.webdriver&&this.storeSupportabilityMetrics("Generic/WebDriver/Detected"),l("harvest-metadata",(o={})=>{try{Object.keys(o).forEach(c=>{Object.assign(this.harvestMetadata[c]??={},o[c])})}catch{}},this.featureName,this.ee)}eachSessionChecks(){p&&g("pageshow",t=>{t?.persisted&&this.storeSupportabilityMetrics("Generic/BFCache/PageRestored")})}}export{q as Aggregate};

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.