PageSourceSearch

https://www.sphf.se/wp-content/uploads/burst/js/burst.min.js?ver=1790263786

js sphf.se collected 2026-09-25 00:52:21 UTC 12,813 bytes, 1 lines download raw bytes

1let burst = {"tracking":{"isInitialHit":true,"initialized":false,"lastUpdateTimestamp":0,"beacon_url":"https:\/\/www.sphf.se\/wp-content\/plugins\/burst-statistics\/endpoint.php","ajaxUrl":"https:\/\/www.sphf.se\/wp-admin\/admin-ajax.php"},"options":{"privacy_level":"private_mode","cookieless":1,"pageUrl":false,"beacon_enabled":1,"do_not_track":0,"enable_turbo_mode":1,"track_url_change":0,"track_external_links":0,"cookie_retention_days":30,"page_id":0,"consent_api_active":0,"debug":0},"goals":{"completed":[],"scriptUrl":"https:\/\/www.sphf.se\/wp-content\/plugins\/burst-statistics\/assets\/js\/build\/burst-goals.js?v=1789226837","active":[]},"cache":{"uid":null,"fingerprint":null,"isUserAgent":null,"isDoNotTrack":null,"useCookies":null}};burst.tracking=burst.tracking||{isInitialHit:!0,initialized:!1,lastUpdateTimestamp:0,ajaxUrl:""},burst.should_load_ecommerce=burst.should_load_ecommerce||!1,burst.cache=burst.cache||{uid:null,fingerprint:null,isUserAgent:null,isDoNotTrack:null,useCookies:null},burst.goals?.active&&(burst.goals.active=burst.goals.active.map(t=>({...t,ID:parseInt(t.ID,10)}))),burst.goals?.completed&&(burst.goals.completed=burst.goals.completed.map(t=>parseInt(t,10)));let pageIsRendered=new Promise(t=>{document.prerendering?document.addEventListener("prerenderingchange",t,{once:!0}):t()});if(burst.goals?.active?.some(t=>!t.page_url||""===t.page_url||t.page_url===burst.options.pageUrl)){let t=document.createElement("script");t.async=!0,t.src=burst.goals.scriptUrl,document.head.appendChild(t)}let burst_get_cookie=t=>{var e,r=t+"=";for(e of document.cookie.split(";"))if(0===(e=e.trim()).indexOf(r)){var s=e.substring(r.length);if(s)return Promise.resolve(s)}return Promise.reject(!1)},burst_consent_state=()=>"function"!=typeof wp_has_consent?burst.options.consent_api_active?"undecided":"yes":window.waitfor_consent_hook&&void 0===window.wp_consent_type?"undecided":wp_has_consent("statistics")?"yes":"no",burst_has_tracking_consent=()=>"yes"===burst_consent_state(),burst_set_cookie=(e,r)=>{if(burst_has_tracking_consent()&&r){let t="";var s="https:"===location.protocol?";secure":"",i=new Date,i=(i.setTime(i.getTime()+864e5*burst.options.cookie_retention_days),";expires="+i.toGMTString());t=t&&";domain="+t,document.cookie=""+e+`=${r};SameSite=Strict${s}${i}${t};path=/`}},burst_use_cookies=()=>{var t;return!!burst_has_tracking_consent()&&(null!==burst.cache.useCookies?burst.cache.useCookies:(t=navigator.cookieEnabled&&!burst.options.cookieless&&"private_mode"!==burst.options.privacy_level,burst.cache.useCookies=t))};function burst_enable_cookies(){burst.options.cookieless=!1,burst.cache.useCookies=null,burst_use_cookies()&&burst_uid().then(t=>burst_set_cookie("burst_uid",t))}let burst_uid=()=>burst.cache.uid?Promise.resolve(burst.cache.uid):burst_get_cookie("burst_uid").then(t=>burst.cache.uid=t).catch(()=>{var t=burst_generate_uid();return burst_set_cookie("burst_uid",t),burst.cache.uid=t}),burst_generate_uid=()=>{let e="";for(let t=0;t<32;t++)e+=Math.floor(16*Math.random()).toString(16);return e},burst_fingerprint=()=>null!==burst.cache.fingerprint?Promise.resolve(burst.cache.fingerprint):new ThumbmarkJS.Thumbmark({exclude:[],permissions_to_check:["geolocation","notifications","camera","microphone","gyroscope","accelerometer","magnetometer","ambient-light-sensor","background-sync","persistent-storage"]}).get().then(t=>{var t=t.thumbmark,e=t+"|"+[screen.availWidth+"x"+screen.availHeight,screen.width+"x"+screen.height,screen.colorDepth,window.devicePixelRatio||1,navigator.hardwareConcurrency||0,navigator.deviceMemory||0,navigator.maxTouchPoints||0,(new Date).getTimezoneOffset(),navigator.cookieEnabled?"1":"0","undefined"!=typeof Storage?"1":"0","undefined"!=typeof indexedDB?"1":"0",navigator.onLine?"1":"0",navigator.languages?navigator.languages.slice(0,3).join(","):navigator.language,navigator.platform,navigator.oscpu||"",navigator.connection&&navigator.connection.effectiveType||"","ontouchstart"in window?"1":"0",void 0!==window.orientation?"1":"0",window.screen.orientation&&window.screen.orientation.type||""].filter(t=>""!==t).join("|");let r=0;for(let t=0;t<e.length;t++){var s=e.charCodeAt(t);r=(r<<5)-r+s,r&=r}t=Math.abs(r).toString(16).padStart(8,"0")+t.substring(8);return burst.cache.fingerprint=t}).catch(t=>(console.error(t),null)),burst_get_time_on_page=()=>{var t;return"undefined"==typeof TimeMe?Promise.resolve(0):(t=TimeMe.getTimeOnCurrentPageInMilliseconds(),TimeMe.resetAllRecordedPageTimes(),TimeMe.initialize({idleTimeoutInSeconds:30}),Promise.resolve(t))},burst_is_user_agent=()=>{var t;return null!==burst.cache.isUserAgent?burst.cache.isUserAgent:(t=/bot|spider|crawl|slurp|mediapartners|applebot|bing|duckduckgo|yandex|baidu|facebook|twitter/i.test(navigator.userAgent),burst.cache.isUserAgent=t)},burst_is_do_not_track=()=>{var t;return null!==burst.cache.isDoNotTrack?burst.cache.isDoNotTrack:burst.options.do_not_track?(t="
11"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack||1===navigator.globalPrivacyControl,burst.cache.isDoNotTrack=t):burst.cache.isDoNotTrack=!1},burst_debug_enabled=()=>!(!burst.options.debug&&!window.burst_debug),burst_log_tracking_error=({status:t=0,error:e="",data:r={}})=>{if(burst_debug_enabled()&&burst.tracking.ajaxUrl){try{if(sessionStorage.getItem("burst_error_reported"))return;sessionStorage.setItem("burst_error_reported","1")}catch(t){}fetch(burst.tracking.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"burst_tracking_error",status:t,error:e,data:r})})}},burst_beacon_request=e=>{var t=new Blob([e],{type:"application/json"});burst_debug_enabled()?fetch(burst.tracking.beacon_url,{method:"POST",body:t,keepalive:!0,headers:{"Content-Type":"application/json"}}).then(t=>{t.ok||burst_log_tracking_error({status:0,error:"sendBeacon failed",data:e})}).catch(t=>{burst_log_tracking_error({status:0,error:t?.message||"sendBeacon failed",data:e})}):navigator.sendBeacon(burst.tracking.beacon_url,t)},burst_api_request=t=>{let s=JSON.stringify(t.data||{});return new Promise(r=>{var t;burst.options.beacon_enabled?(burst_beacon_request(s),r({status:200,data:"ok"})):(t=Math.random().toString(36).substring(2,9),wp.apiFetch({path:"/burst/v1/track/?token="+t,keepalive:!0,method:"POST",data:s}).then(t=>{var e=t.status||200;r({status:e,data:t.data||t}),200!==e&&burst_log_tracking_error({status:e,error:"Non-200 status",data:s})}).catch(t=>{r({status:200,data:"ok"}),burst_log_tracking_error({status:0,error:t?.message||"Burst tracking request failed",data:s})}))})},burstMaxScroll=0,burstLastScrollTimestamp=Date.now(),burstCurrentZone="0_25",burstDwellTimePerZone={"0_25":0,"25_50":0,"50_75":0,"75_100":0};function burst_update_scroll_metrics(){var t=Date.now(),e=Math.max(0,t-burstLastScrollTimestamp),t=(burstLastScrollTimestamp=t,"visible"===document.visibilityState&&0<e&&e<3e5&&void 0!==burstDwellTimePerZone[burstCurrentZone]&&(burstDwellTimePerZone[burstCurrentZone]+=e),Math.max(document.body?.scrollHeight||0,document.documentElement?.scrollHeight||0,document.body?.offsetHeight||0,document.documentElement?.offsetHeight||0)),e=window.innerHeight||document.documentElement?.clientHeight||0,r=window.scrollY||window.pageYOffset||document.documentElement?.scrollTop||0;let s=0;(s=e<t?Math.min(100,Math.max(0,Math.round(r/(t-e)*100))):100)>burstMaxScroll&&(burstMaxScroll=s),burstCurrentZone=s<25?"0_25":s<50?"25_50":s<75?"50_75":"75_100"}let burstScrollTicking=!1;function burst_handle_scroll(){burstScrollTicking||(window.requestAnimationFrame(()=>{burst_update_scroll_metrics(),burstScrollTicking=!1}),burstScrollTicking=!0)}function burst_init_scroll_tracker(){burstLastScrollTimestamp=Date.now(),burst_update_scroll_metrics(),window.addEventListener("scroll",burst_handle_scroll,{passive:!0})}async function burst_update_hit(t=!1,e=!1,r={}){var s;await pageIsRendered,burst_is_user_agent()||burst_is_do_not_track()||!burst_has_tracking_consent()||(burst.tracking.isInitialHit?burst_track_hit(r):!e&&Date.now()-burst.tracking.lastUpdateTimestamp<300||(document.dispatchEvent(new CustomEvent("burst_before_update_hit",{detail:burst})),[e,s]=await Promise.all([burst_get_time_on_page(),"private_mode"===burst.options.privacy_level?Promise.resolve(!!t&&[!1,!1]):t?Promise.all([burst_uid(),burst_fingerprint()]):(burst_use_cookies()?burst_uid:burst_fingerprint)()]),burst_update_scroll_metrics(),t={fingerprint:t?s[1]:!burst_use_cookies()&&s,uid:t?s[0]:!!burst_use_cookies()&&s,url:location.href,time_on_page:e,max_scroll:burstMaxScroll,dwell_zones:JSON.stringify(burstDwellTimePerZone),completed_goals:burst.goals.completed,should_load_ecommerce:burst.should_load_ecommerce,...r},(0<e||!1!==t.uid)&&(await burst_api_request({data:t}),burst.tracking.lastUpdateTimestamp=Date.now())))}async function burst_track_hit(e={}){var r=burst.tracking.isInitialHit;if(burst.tracking.isInitialHit=!1,await pageIsRendered,r){if(burst_is_user_agent()||burst_is_do_not_track()||!burst_has_tracking_consent())burst.tracking.isInitialHit=!0;else if(!(Date.now()-burst.tracking.lastUpdateTimestamp<300)){document.dispatchEvent(new CustomEvent("burst_before_track_hit",{detail:burst}));var[r,s]=await Promise.all([burst_get_time_on_page(),"private_mode"===burst.options.privacy_level?Promise.resolve(!1):(burst_use_cookies()?burst_uid:burst_fingerprint)()]);let t=0;for(;!document.body&&t++<200;)await new Promise(t=>setTimeout(t,2));document.body||console.warn("Burst: missing page_id attribute, not able to resolve body element."),burst_update_scroll_metrics();var i=new URLSearchParams(location.search),s={uid:!!burst_use_cookies()&&s,fingerprint:!burst_use_cookies()&&s,url:location.href,referrer_url:document.referrer,user_agent:navigator.userAgent||"unknown",device_resolution:window.screen.width*window.devicePixelRatio+"x"+window.screen.height*window.devicePixelRatio,time_on_page:r,max_scroll:burstMaxScroll,dwell_zones:JSON.stringify(burstDwellTimePerZone),completed_goals:burst.goals.completed,page_id:document.body?.dataset?.burst_id??document.body?.dataset?.b_id??0,page_type:document.body?.dataset?.burst_type??document.body?.dataset?.b_type??"",should_load_ecommerce:burst.should_load_ecommerce,search_term:i.get("s")||"",...e};document.dispatchEvent(new CustomEvent("burst_track_hit",{detail:s})),await burst_api_request({method:"POST",data:s}),burst.tracking.lastUpdateTimestamp=Date.now()}}else burst_update_hit(!1,!1,e)}function burst_init_events(){let t=()=>{burst.options.track_url_change&&(burst.tracking.isInitialHit=!0,burst_track_hit())};!burst.options.enable_turbo_mode||"loading"!==document.readyState?burst_track_hit():document.addEventListener("DOMContentLoaded",burst_track_hit,{once:!0}),document.addEventListener("visibilitychange",()=>
1{"hidden"!==document.visibilityState&&"unloaded"!==document.visibilityState||burst_update_hit()}),document.addEventListener("pagehide",()=>burst_update_hit()),document.addEventListener("click",e=>{let r=e.target.closest("a[href]");if(r&&burst.options.track_external_links){var s=(t=>{var e=t?.getAttribute?.("href");if(!e||e.startsWith("#"))return!1;let r;try{r=new URL(t.href,window.location.href)}catch(t){return!1}return!!["http:","https:"].includes(r.protocol)&&r.origin!==window.location.origin&&r.href})(r);if(s){s={external_link_url:s};if(burst.options.beacon_enabled||(o=r,(i=e).defaultPrevented)||0!==i.button||(i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||o.hasAttribute("download")||(i=(o.getAttribute("target")||"").toLowerCase())&&"_self"!==i))burst_update_hit(!1,!0,s);else{var i;e.preventDefault();let t=!1;var o=()=>{t||(t=!0,window.location.assign(r.href))};setTimeout(o,250),burst_update_hit(!1,!0,s).finally(o)}}}},!0),document.addEventListener("burst_fire_hit",()=>burst_track_hit()),document.addEventListener("burst_enable_cookies",()=>{burst_enable_cookies(),burst_update_hit(!0)});let e=history.pushState,r=(history.pushState=function(){e.apply(this,arguments),t()},history.replaceState);history.replaceState=function(){r.apply(this,arguments),t()},window.addEventListener("popstate",t)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",burst_init_scroll_tracker,{once:!0}):burst_init_scroll_tracker();let burst_maybe_init=()=>{"yes"===burst_consent_state()&&(burst.tracking.initialized?burst_track_hit:(burst.tracking.initialized=!0,burst_init_events))()};document.addEventListener("wp_consent_type_defined",burst_maybe_init),document.addEventListener("wp_listen_for_consent_change",t=>{"allow"===t.detail?.statistics&&(burst.cache.useCookies=null,burst_maybe_init())}),burst_maybe_init(),window.burst_uid=burst_uid,window.burst_use_cookies=burst_use_cookies,window.burst_fingerprint=burst_fingerprint,window.burst_update_hit=burst_update_hit;

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.