1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78566,e=>{"use strict";var t,n,a,i=e.i(71645),o=e.i(43476),r=(e,t,n)=>new Promise((a,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},r=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?a(e.value):Promise.resolve(e.value).then(o,r);s((n=n.apply(e,t)).next())}),s="undefined"!=typeof window&&void 0!==window.fetch,l="undefined"!=typeof chrome&&!!(null!=(a=chrome.runtime)&&a.id),p=c(),u=new Date,d={US:"https://us.aptabase.com",EU:"https://eu.aptabase.com",DEV:"https://localhost:3000",SH:""};function c(){return Math.floor(Date.now()/1e3).toString()+Math.floor(1e8*Math.random()).toString().padStart(8,"0")}var v,f,h="",b={};function m(e,a){return r(this,null,function*(){let i;if(!v)return;let o=(Math.floor(((i=new Date).getTime()-u.getTime())/1e3)>3600&&(p=c()),u=i,p);yield function(e){return r(this,null,function*(){var a,i,o;if(!s&&!l)return void console.warn(`Aptabase: trackEvent requires a browser environment. Event "${e.eventName}" will be discarded.`);if(!e.appKey)return void console.warn(`Aptabase: init must be called before trackEvent. Event "${e.eventName}" will be discarded.`);try{let r=yield fetch(e.apiUrl,{method:"POST",headers:{"Content-Type":"application/json","App-Key":e.appKey},credentials:"omit",body:JSON.stringify({timestamp:new Date().toISOString(),sessionId:e.sessionId,eventName:e.eventName,systemProps:{locale:null!=(a=e.locale)?a:t||("undefined"!=typeof navigator?t=navigator.languages.length>0?navigator.languages[0]:navigator.language:void 0),isDebug:null!=(i=e.isDebug)?i:void 0!==n?n:n="undefined"!=typeof location&&"localhost"===location.hostname,appVersion:null!=(o=e.appVersion)?o:"",sdkVersion:e.sdkVersion},props:e.props})});if(r.status>=300){let t=yield r.text();console.warn(`Failed to send event "${e.eventName}": ${r.status} ${t}`)}}catch(t){console.warn(`Failed to send event "${e.eventName}"`),console.warn(t)}})}({apiUrl:v,sessionId:o,appKey:h,isDebug:null==f?void 0:f.isDebug,appVersion:null==f?void 0:f.appVersion,sdkVersion:"[email protected]",eventName:e,props:a})})}function g(e,t){return b[e]=t,Promise.resolve()}var y=(0,i.createContext)({isInitialized:!1});function w({appKey:e,options:t,children:n}){let[a,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{var n,a,i,o;let s,l;(3===(s=e.split("-")).length&&void 0!==d[s[1]]||(console.warn(`The Aptabase App Key "${e}" is invalid. Tracking will be disabled.`),0))&&(v=null!=(n=null==t?void 0:t.apiUrl)?n:(a=e,i=t,"SH"===(l=a.split("-")[1])?null!=i&&i.host?`${i.host}/api/v0/event`:void console.warn("Host parameter must be defined when using Self-Hosted App Key. Tracking will be disabled."):`${null!=(o=null==i?void 0:i.host)?o:d[l]}/api/v0/event`),h=e,f=t,Object.keys(b).forEach(e=>{m(e,b[e])}),b={}),r(!0)},[e,t]),(0,o.jsx)(y.Provider,{value:{appKey:e,options:t,isInitialized:a},children:n})}function A(){let e=(0,i.useContext)(y);return e.appKey?e.isInitialized?{trackEvent:m}:{trackEvent:g}:{trackEvent:()=>(console.warn("Aptabase: useAptabase must be used within AptabaseProvider. Did you forget to wrap your app in <AptabaseProvider>?"),Promise.resolve())}}e.s(["AptabaseProvider",()=>w,"useAptabase",()=>A])},19846,e=>{"use strict";var t=e.i(43476),n=e.i(78566);function a({children:e}){return(0,t.jsx)(n.AptabaseProvider,{appKey:"A-US-8319174075",children:e})}e.s(["AptabaseProvider",()=>a])},18566,(e,t,n)=>{t.exports=e.r(76562)},95424,e=>{"use strict";var t=e.i(71645),n=e.i(18566),a=e.i(78566);function i(){let e=(0,n.usePathname)(),{trackEvent:i}=(0,a.useAptabase)();return(0,t.useEffect)(()=>{i("page_view",{path:e,page:e})},[e,i]),null}e.s(["PageTracker",()=>i])}]);
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.