PageSourceSearch

https://worldbaseball.com/_next/static/chunks/6147-a03e06f0acb018a0.js

js worldbaseball.com collected 2026-09-24 18:57:47 UTC 7,418 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6147],{896:(e,t,n)=>{n.d(t,{Y6:()=>d,m7:()=>m,oj:()=>p});var r=n(4119),o=n(9671),i=n(1890);let a="wbn_popup_pending:",l=new Set,c=0;function u(){return window.localStorage.getItem("wbn_cookie_consent")}function s(){let e=window.localStorage;return Array.from({length:e.length},(t,n)=>e.key(n)).filter(e=>!!(null==e?void 0:e.startsWith(a)))}function d(){c++;try{for(let e of s())window.localStorage.removeItem(e)}catch(e){}}function f(){let e=[];for(let n of s())try{var t;let r=JSON.parse(null!=(t=window.localStorage.getItem(n))?t:"null"),o=null==r?void 0:r.observation;if(!Number.isFinite(null==r?void 0:r.created)||r.created>Date.now()||Date.now()-r.created>864e5||!o||!/^[a-zA-Z0-9_-]{16,64}$/.test(o.event_id)||n!==a+o.event_id||!(0,i.Q)(o.event)||"string"!=typeof o.article_path||o.article_path.length>500||!o.article_path.startsWith("/")||/[?#\u0000-\u001f\u007f]/.test(o.article_path)||"article_premium"!==o.campaign||"site_popup"!==o.content||"accepted"!==o.consent)throw Error("Invalid pending observation");e.push({created:r.created,observation:{event_id:o.event_id,event:o.event,article_path:o.article_path,campaign:o.campaign,content:o.content,consent:"accepted"}})}catch(e){window.localStorage.removeItem(n)}return e.sort((e,t)=>e.created-t.created)}function w(e,t,n){let i=e.observation.event_id;if(l.has(i))return;l.add(i);let s=c;(0,o.x)(async()=>{if(s!==c||!(0,r.kw)(u,t))return new Response(null,{status:204});if(n)try{if("accepted"!==u()||!window.localStorage.getItem(a+i))return new Response(null,{status:204})}catch(e){return new Response(null,{status:204})}if(Date.now()-e.created>864e5)return n&&window.localStorage.removeItem(a+i),new Response(null,{status:204});let o=await fetch("/track/premium-popup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e.observation,observed_at:e.created}),credentials:"same-origin",keepalive:!0});if(n&&(o.ok||[400,403,413].includes(o.status)))try{window.localStorage.removeItem(a+i)}catch(e){}return o}).catch(()=>{}).finally(()=>l.delete(i))}function m(e,t){if(!(0,r.kw)(u,t))return;let n={created:Date.now(),observation:e},o=!1;try{if("accepted"===u()){let t=f();for(let e of t.slice(0,Math.max(0,t.length-50+1)))window.localStorage.removeItem(a+e.observation.event_id);window.localStorage.setItem(a+e.event_id,JSON.stringify(n)),o=!0}}catch(e){}w(n,t,o)}function p(e){let t=()=>(function(e){try{if("accepted"!==u())return void d();if(navigator.webdriver)return;let t=f();for(let e of t.slice(0,Math.max(0,t.length-50)))window.localStorage.removeItem(a+e.observation.event_id);for(let n of t.slice(-50))w(n,e,!0)}catch(e){d()}})(e),n=e=>{(null===e.key||"wbn_cookie_consent"===e.key)&&t()};return t(),window.addEventListener("wbn-consent",t),window.addEventListener("storage",n),window.addEventListener("online",t),window.addEventListener("pageshow",t),()=>{window.removeEventListener("wbn-consent",t),window.removeEventListener("storage",n),window.removeEventListener("online",t),window.removeEventListener("pageshow",t)}}},1353:(e,t,n)=>{n.d(t,{G:()=>r});let r="https://store.worldbaseball.com"},1890:(e,t,n)=>{n.d(t,{Q:()=>o});let r=["impression","visible_5s","dismiss_x","continue","click","dismiss_other"];function o(e){return"string"==typeof e&&r.includes(e)}},4119:(e,t,n)=>{n.d(t,{JN:()=>d,MN:()=>i,Vm:()=>l,YK:()=>w,ai:()=>v,d2:()=>a,d_:()=>c,j$:()=>s,kw:()=>f,nW:()=>p,ol:()=>m,pC:()=>o,v3:()=>u});let r=["utm_source","utm_medium","utm_campaign"],o="wbn_utm";function i(e){let t={utm_source:null,utm_medium:null,utm_campaign:null};try{let o=new URLSearchParams(e.startsWith("?")?e.slice(1):e);for(let e of r){var n;let r=o.get(e),i=null!=(n=null==r?void 0:r.trim())?n:"";i&&!/[@?#]/.test(i)&&(t[e]=i.slice(0,100))}}catch(e){}return t}function a(e){let t=i(e),n=null;try{let t=new URLSearchParams(e.startsWith("?")?e.slice(1):e).get("utm_content");t&&t.trim()&&!/[@?#]/.test(t.trim())&&(n=t.trim().slice(0,100))}catch(e){}return{...t,utm_content:n}}function l(e){return!!(e.utm_source||e.utm_medium||e.utm_campaign)}function c(e,t){if(!e)return null;try{let n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol)return null;let r=n.hostname.toLowerCase().replace(/^www\./,""),o=t.toLowerCase().replace(/^www\./,"");if(!r||r===o)return null;return r.slice(0,200)}catch(e){return null}}function u(e){return e<768?"mobile":e<1024?"tablet":"desktop"}function s(e){if(!e||"string"!=typeof e)return null;let t=e.trim().toLowerCase().split("-")[0];return/^[a-z]{2,8}$/.test(t)?t:null}function d(e){try{return"declined"===e()}catch(e){return!0}}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"opt-in";try{let n=e();if("declined"===n)return!1;return"accepted"===n||"permitted"===t}catch(e){return!1}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"opt-in";try{let n=e();if("accepted"===n||"declined"===n)return n;return"permitted"===t?"accepted":"undecided"}catch(e){return"undecided"}}function m(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return"string"==typeof e&&e.trim()?e.trim().slice(0,64):null}catch(e){return null}}function p(e){return/^\/news\/[^/]+\/?$/.test(e)}function v(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}}
1,4348:(e,t,n)=>{n.d(t,{US:()=>a,kq:()=>o,sx:()=>i});var r=n(4119);function o(e,t){try{var n;let r=null==(n=window.umami)?void 0:n.track(e,t);r&&"function"==typeof r.then&&Promise.resolve(r).catch(()=>{})}catch(e){}}function i(e,t,n){var i,a;if(!n||"undefined"!=typeof navigator&&navigator.webdriver)return;let l=null!=(a=null==(i=window.location)?void 0:i.pathname)?a:"";if(/^\/(?:admin|portal|stats|social|merchant|login)(?:\/|$)/.test(l))return;let c=!1;try{c=(0,r.kw)(()=>window.localStorage.getItem("wbn_cookie_consent"),n)}catch(e){return}c&&o(e,t)}function a(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,40)||"unknown"}},6147:(e,t,n)=>{n.d(t,{TrackedStoreLink:()=>l});var r=n(4853),o=n(9350),i=n(4348),a=n(1353);function l(e){let{children:t,location:n,onClick:l,...c}=e,{policy:u}=(0,o.p)();return(0,r.jsx)("a",{...c,href:a.G,onClick:e=>{null==l||l(e),e.defaultPrevented||(0,i.sx)("store_click",{location:n},u)},children:t})}},9350:(e,t,n)=>{n.d(t,{RegionalConsentProvider:()=>l,p:()=>c});var r=n(4853),o=n(3105),i=n(896);let a=(0,o.createContext)(null);function l(e){let{children:t}=e,[n,l]=(0,o.useState)(null),[c,u]=(0,o.useState)(0);(0,o.useEffect)(()=>{if(n)return(0,i.oj)(n)},[n]),(0,o.useEffect)(()=>{let e=!0;return fetch("/consent/policy",{cache:"no-store"}).then(async e=>{if(!e.ok)throw Error("Unable to load consent policy");return"permitted"===(await e.json()).policy?"permitted":"opt-in"}).catch(()=>"opt-in").then(t=>{e&&l(t)}),()=>{e=!1}},[]);let s=(0,o.useMemo)(()=>({policy:n,settingsRequested:c,openSettings:()=>u(e=>e+1)}),[n,c]);return(0,r.jsx)(a.Provider,{value:s,children:t})}function c(){let e=(0,o.useContext)(a);if(!e)throw Error("useRegionalConsent must be used inside RegionalConsentProvider");return e}},9671:(e,t,n)=>{n.d(t,{x:()=>o});let r=Promise.resolve();function o(e){let t=async()=>{var t;return"undefined"!=typeof navigator&&(null==(t=navigator.locks)?void 0:t.request)?navigator.locks.request("wbn-analytics-session-delivery",e):e()},n=r.then(t,t);return r=n.catch(()=>void 0),n}}}]);

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.