!function(){"use strict";function t(t,e,n,o,r,i,s){try{var u=t[i](s),a=u.value}catch(t){return void n(t)}u.done?e(a):Promise.resolve(a).then(o,r)}var e="undefined"!=typeof window?window:void 0,n="undefined"!=typeof globalThis?globalThis:e,o=null==n?void 0:n.navigator;null==n||n.document,null==n||n.location,null==n||n.fetch,null!=n&&n.XMLHttpRequest&&"withCredentials"in new n.XMLHttpRequest&&n.XMLHttpRequest,null==n||n.AbortController,null==o||o.userAgent;var r,i=null!=e?e:{};!function(t){t.GZipJS="gzip-js",t.Base64="base64"}(r||(r={}));function s(t,e,n){try{if(!(e in t))return()=>{};var o=t[e],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=r,()=>{t[e]=o}}catch(t){return()=>{}}}var u=(t,e)=>{if(t){var{sessionId:n,windowId:o}=t.checkAndGetSessionAndWindowId(!0);e.headers.set("X-POSTHOG-SESSION-ID",n),e.headers.set("X-POSTHOG-WINDOW-ID",o)}};i.__PosthogExtensions__=i.__PosthogExtensions__||{};var a={_patchFetch:n=>s(e,"fetch",(e=>function(){var o,r=(o=function*(t,o){var r=new Request(t,o);return u(n,r),e(r)},function(){var e=this,n=arguments;return new Promise((function(r,i){var s=o.apply(e,n);function u(e){t(s,r,i,u,a,"next",e)}function a(e){t(s,r,i,u,a,"throw",e)}u(void 0)}))});return function(t,e){return r.apply(this,arguments)}}())),_patchXHR:t=>s(e.XMLHttpRequest.prototype,"open",(e=>function(n,o){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,a=new Request(o);return u(t,a),e.call(this,n,a.url,r,i,s)}))};i.__PosthogExtensions__.tracingHeadersPatchFns=a,i.postHogTracingHeadersPatchFns=a}();
//# sourceMappingURL=tracing-headers.js.map