posthog-js 1.321.1 → 1.321.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/logs.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){"use strict";function t(t,r,e,i,n,o,s){try{var u=t[o](s),a=u.value}catch(t){return void e(t)}u.done?r(a):Promise.resolve(a).then(i,n)}function r(r){return function(){var e=this,i=arguments;return new Promise((function(n,o){var s=r.apply(e,i);function u(r){t(s,n,o,u,a,"next",r)}function a(r){t(s,n,o,u,a,"throw",r)}u(void 0)}))}}function e(){return e=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},e.apply(null,arguments)}class i{emit(t){}}var n=new i;var o=new class{getLogger(t,r,e){return new i}};class s{constructor(t,r,e,i){this.t=t,this.name=r,this.version=e,this.options=i}emit(t){this.i().emit(t)}i(){if(this.o)return this.o;var t=this.t.u(this.name,this.version,this.options);return t?(this.o=t,this.o):n}}class u{getLogger(t,r,e){var i;return null!==(i=this.u(t,r,e))&&void 0!==i?i:new s(this,t,r,e)}l(){var t;return null!==(t=this.o)&&void 0!==t?t:o}h(t){this.o=t}u(t,r,e){var i;return null===(i=this.o)||void 0===i?void 0:i.getLogger(t,r,e)}}var a="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},c=Symbol.for("io.opentelemetry.js.api.logs"),l=a;class h{constructor(){this.v=new u}static getInstance(){return this._instance||(this._instance=new h),this._instance}setGlobalLoggerProvider(t){return l[c]?this.getLoggerProvider():(l[c]=(r=1,e=t,i=o,t=>t===r?e:i),this.v.h(t),t);var r,e,i}getLoggerProvider(){var t,r;return null!==(r=null===(t=l[c])||void 0===t?void 0:t.call(l,1))&&void 0!==r?r:this.v}getLogger(t,r,e){return this.getLoggerProvider().getLogger(t,r,e)}disable(){delete l[c],this.v=new u}}var f=h.getInstance();class v{constructor(t){this.o=void 0,this.o=t}export(t,r){this.o.export(t,r)}forceFlush(){return this.o.forceFlush()}shutdown(){return this.o.shutdown()}}class d extends Error{constructor(t,r,e){super(t),this.code=void 0,this.name="OTLPExporterError",this.data=void 0,this.data=e,this.code=r}}function y(t){if(Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}class m{constructor(t){this.m=void 0,this.p=[],this.m=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this.p.push(t);var r=()=>{var r=this.p.indexOf(t);this.p.splice(r,1)};t.then(r,r)}hasReachedLimit(){return this.p.length>=this.m}awaitAll(){var t=this;return r((function*(){yield Promise.all(t.p)}))()}}function b(t){return new m(t.concurrencyLimit)}var g="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},p="1.9.0",w=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var j=function(t){var r=new Set([t]),e=new Set,i=t.match(w);if(!i)return function(){return!1};var n=+i[1],o=+i[2],s=+i[3];if(null!=i[4])return function(r){return r===t};function u(t){return e.add(t),!1}function a(t){return r.add(t),!0}return function(t){if(r.has(t))return!0;if(e.has(t))return!1;var i=t.match(w);if(!i)return u(t);var c=+i[1],l=+i[2],h=+i[3];return null!=i[4]||n!==c?u(t):0===n?o===l&&s<=h?a(t):u(t):o<=l?a(t):u(t)}}(p),S=p.split(".")[0],O=Symbol.for("opentelemetry.js.api."+S),A=g;function L(t,r,e,i){var n;void 0===i&&(i=!1);var o=A[O]=null!==(n=A[O])&&void 0!==n?n:{version:p};if(!i&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return e.error(s.stack||s.message),!1}if(o.version!==p){s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+p);return e.error(s.stack||s.message),!1}return o[t]=r,e.debug("@opentelemetry/api: Registered a global for "+t+" v"+p+"."),!0}function T(t){var r,e,i=null===(r=A[O])||void 0===r?void 0:r.version;if(i&&j(i))return null===(e=A[O])||void 0===e?void 0:e[t]}function E(t,r){r.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+p+".");var e=A[O];e&&delete e[t]}var x,R=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},P=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},N=function(){function t(t){this.j=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("debug",this.j,t)},t.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("error",this.j,t)},t.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("info",this.j,t)},t.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("warn",this.j,t)},t.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("verbose",this.j,t)},t}();function C(t,r,e){var i=T("diag");if(i)return e.unshift(r),i[t].apply(i,P([],R(e),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(x||(x={}));var I=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},_=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},M=function(){function t(){function t(t){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=T("diag");if(i)return i[t].apply(i,_([],I(r),!1))}}var r=this;r.setLogger=function(t,e){var i,n,o;if(void 0===e&&(e={logLevel:x.INFO}),t===r){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error(null!==(i=s.stack)&&void 0!==i?i:s.message),!1}"number"==typeof e&&(e={logLevel:e});var u=T("diag"),a=function(t,r){function e(e,i){var n=r[e];return"function"==typeof n&&t>=i?n.bind(r):function(){}}return t<x.NONE?t=x.NONE:t>x.ALL&&(t=x.ALL),r=r||{},{error:e("error",x.ERROR),warn:e("warn",x.WARN),info:e("info",x.INFO),debug:e("debug",x.DEBUG),verbose:e("verbose",x.VERBOSE)}}(null!==(n=e.logLevel)&&void 0!==n?n:x.INFO,t);if(u&&!e.suppressOverrideMessage){var c=null!==(o=(new Error).stack)&&void 0!==o?o:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+c),a.warn("Current logger will overwrite one already registered from "+c)}return L("diag",a,r,!0)},r.disable=function(){E("diag",r)},r.createComponentLogger=function(t){return new N(t)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}();function U(t){return Symbol.for(t)}var B,D=function t(r){var e=this;e.S=r?new Map(r):new Map,e.getValue=function(t){return e.S.get(t)},e.setValue=function(r,i){var n=new t(e.S);return n.S.set(r,i),n},e.deleteValue=function(r){var i=new t(e.S);return i.S.delete(r),i}},k=new D,F=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},q=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},H=function(){function t(){}return t.prototype.active=function(){return k},t.prototype.with=function(t,r,e){for(var i=[],n=3;n<arguments.length;n++)i[n-3]=arguments[n];return r.call.apply(r,q([e],F(i),!1))},t.prototype.bind=function(t,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),z=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},V=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},X="context",G=new H,J=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return L(X,t,M.instance())},t.prototype.active=function(){return this.O().active()},t.prototype.with=function(t,r,e){for(var i,n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];return(i=this.O()).with.apply(i,V([t,r,e],z(n),!1))},t.prototype.bind=function(t,r){return this.O().bind(t,r)},t.prototype.O=function(){return T(X)||G},t.prototype.disable=function(){this.O().disable(),E(X,M.instance())},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(B||(B={}));var K="0000000000000000",W="00000000000000000000000000000000",Q={traceId:W,spanId:K,traceFlags:B.NONE},Y=function(){function t(t){void 0===t&&(t=Q),this.A=t}return t.prototype.spanContext=function(){return this.A},t.prototype.setAttribute=function(t,r){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,r){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,r){},t}(),Z=U("OpenTelemetry Context Key SPAN");function tt(t){return t.getValue(Z)||void 0}function rt(){return tt(J.getInstance().active())}function et(t,r){return t.setValue(Z,r)}function it(t){return t.deleteValue(Z)}function nt(t,r){return et(t,new Y(r))}function ot(t){var r;return null===(r=tt(t))||void 0===r?void 0:r.spanContext()}var st=/^([0-9a-f]{32})$/i,ut=/^[0-9a-f]{16}$/i;function at(t){return e=t.traceId,st.test(e)&&e!==W&&(r=t.spanId,ut.test(r)&&r!==K);var r,e}function ct(t){return new Y(t)}var lt=J.getInstance(),ht=function(){function t(){}return t.prototype.startSpan=function(t,r,e){if(void 0===e&&(e=lt.active()),Boolean(null==r?void 0:r.root))return new Y;var i,n=e&&ot(e);return"object"==typeof(i=n)&&"string"==typeof i.spanId&&"string"==typeof i.traceId&&"number"==typeof i.traceFlags&&at(n)?new Y(n):new Y},t.prototype.startActiveSpan=function(t,r,e,i){var n,o,s;if(!(arguments.length<2)){2===arguments.length?s=r:3===arguments.length?(n=r,s=e):(n=r,o=e,s=i);var u=null!=o?o:lt.active(),a=this.startSpan(t,n,u),c=et(u,a);return lt.with(c,s,void 0,a)}},t}();var ft=new ht,vt=function(){function t(t,r,e,i){this.t=t,this.name=r,this.version=e,this.options=i}return t.prototype.startSpan=function(t,r,e){return this.L().startSpan(t,r,e)},t.prototype.startActiveSpan=function(t,r,e,i){var n=this.L();return Reflect.apply(n.startActiveSpan,n,arguments)},t.prototype.L=function(){if(this.o)return this.o;var t=this.t.getDelegateTracer(this.name,this.version,this.options);return t?(this.o=t,this.o):ft},t}(),dt=new(function(){function t(){}return t.prototype.getTracer=function(t,r,e){return new ht},t}()),yt=function(){function t(){}return t.prototype.getTracer=function(t,r,e){var i;return null!==(i=this.getDelegateTracer(t,r,e))&&void 0!==i?i:new vt(this,t,r,e)},t.prototype.getDelegate=function(){var t;return null!==(t=this.o)&&void 0!==t?t:dt},t.prototype.setDelegate=function(t){this.o=t},t.prototype.getDelegateTracer=function(t,r,e){var i;return null===(i=this.o)||void 0===i?void 0:i.getTracer(t,r,e)},t}(),mt=J.getInstance(),bt=M.instance(),gt="trace",pt=function(){function t(){this.T=new yt,this.wrapSpanContext=ct,this.isSpanContextValid=at,this.deleteSpan=it,this.getSpan=tt,this.getActiveSpan=rt,this.getSpanContext=ot,this.setSpan=et,this.setSpanContext=nt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var r=L(gt,this.T,M.instance());return r&&this.T.setDelegate(t),r},t.prototype.getTracerProvider=function(){return T(gt)||this.T},t.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},t.prototype.disable=function(){E(gt,M.instance()),this.T=new yt},t}().getInstance(),wt=U("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function jt(t){return null==t||(Array.isArray(t)?function(t){var r;for(var e of t)if(null!=e){var i=typeof e;if(i!==r){if(!r){if(St(i)){r=i;continue}return!1}return!1}}return!0}(t):St(typeof t))}function St(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}var Ot=t=>{bt.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var r={},e=t;null!==e;)Object.getOwnPropertyNames(e).forEach((t=>{if(!r[t]){var i=e[t];i&&(r[t]=String(i))}})),e=Object.getPrototypeOf(e);return r}(t))}(t))};function At(t){try{Ot(t)}catch(t){}}var Lt,Tt=performance,Et="telemetry.sdk.language",xt="telemetry.sdk.name",Rt="telemetry.sdk.version",Pt={[xt]:"opentelemetry","process.runtime.name":"browser",[Et]:"webjs",[Rt]:"2.2.0"},Nt=Math.pow(10,6),Ct=Math.pow(10,9);function It(t){var r=t/1e3;return[Math.trunc(r),Math.round(t%1e3*Nt)]}function _t(){var t=Tt.timeOrigin;if("number"!=typeof t){var r=Tt;t=r.timing&&r.timing.fetchStart}return t}function Mt(t){return function(t,r){var e=[t[0]+r[0],t[1]+r[1]];e[1]>=Ct&&(e[1]-=Ct,e[0]+=1);return e}(It(_t()),It("number"==typeof t?t:Tt.now()))}function Ut(t){if(r=t,Array.isArray(r)&&2===r.length&&"number"==typeof r[0]&&"number"==typeof r[1])return t;if("number"==typeof t)return t<_t()?Mt(t):It(t);if(t instanceof Date)return It(t.getTime());throw TypeError("Invalid input type");var r}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(Lt||(Lt={}));var Bt="[object Object]",Dt="[object Null]",kt="[object Undefined]",Ft=Function.prototype.toString,qt=Ft.call(Object),Ht=Object.getPrototypeOf,zt=Object.prototype,Vt=zt.hasOwnProperty,Xt=Symbol?Symbol.toStringTag:void 0,Gt=zt.toString;function Jt(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){if(null==t)return void 0===t?kt:Dt;return Xt&&Xt in Object(t)?function(t){var r=Vt.call(t,Xt),e=t[Xt],i=!1;try{t[Xt]=void 0,i=!0}catch(t){}var n=Gt.call(t);i&&(r?t[Xt]=e:delete t[Xt]);return n}(t):function(t){return Gt.call(t)}(t)}(t)!==Bt)return!1;var r=Ht(t);if(null===r)return!0;var e=Vt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ft.call(e)===qt}var Kt=20;function Wt(t){return Yt(t)?t.slice():t}function $t(t,r,e,i){var n;if(void 0===e&&(e=0),!(e>Kt)){if(e++,rr(t)||rr(r)||Zt(r))n=Wt(r);else if(Yt(t)){if(n=t.slice(),Yt(r))for(var o=0,s=r.length;o<s;o++)n.push(Wt(r[o]));else if(tr(r))for(var u=Object.keys(r),a=0,c=u.length;a<c;a++){var l=u[a];n[l]=Wt(r[l])}}else if(tr(t))if(tr(r)){if(!function(t,r){if(!Jt(t)||!Jt(r))return!1;return!0}(t,r))return r;n=Object.assign({},t);for(var h=Object.keys(r),f=0,v=h.length;f<v;f++){var d=h[f],y=r[d];if(rr(y))void 0===y?delete n[d]:n[d]=y;else{var m=n[d],b=y;if(Qt(t,d,i)||Qt(r,d,i))delete n[d];else{if(tr(m)&&tr(b)){var g=i.get(m)||[],p=i.get(b)||[];g.push({obj:t,key:d}),p.push({obj:r,key:d}),i.set(m,g),i.set(b,p)}n[d]=$t(n[d],y,e,i)}}}}else n=r;return n}}function Qt(t,r,e){for(var i=e.get(t[r])||[],n=0,o=i.length;n<o;n++){var s=i[n];if(s.key===r&&s.obj===t)return!0}return!1}function Yt(t){return Array.isArray(t)}function Zt(t){return"function"==typeof t}function tr(t){return!rr(t)&&!Yt(t)&&!Zt(t)&&"object"==typeof t}function rr(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}class er extends Error{constructor(t){super(t),Object.setPrototypeOf(this,er.prototype)}}function ir(t,r){var e,i=new Promise((function(t,i){e=setTimeout((function(){i(new er("Operation timed out."))}),r)}));return Promise.race([t,i]).then((t=>(clearTimeout(e),t)),(t=>{throw clearTimeout(e),t}))}class nr{constructor(){this.R=void 0,this.P=void 0,this.N=void 0,this.R=new Promise(((t,r)=>{this.P=t,this.N=r}))}get promise(){return this.R}resolve(t){this.P(t)}reject(t){this.N(t)}}class or{constructor(t,r){this.C=void 0,this.I=void 0,this.M=!1,this.U=new nr,this.C=t,this.I=r}get isCalled(){return this.M}get promise(){return this.U.promise}call(){if(!this.M){this.M=!0;try{for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];Promise.resolve(this.C.call(this.I,...r)).then((t=>this.U.resolve(t)),(t=>this.U.reject(t)))}catch(t){this.U.reject(t)}}return this.U.promise}}var sr={B:function(t,r){return new Promise((e=>{mt.with(function(t){return t.setValue(wt,!0)}(mt.active()),(()=>{t.export(r,(t=>{e(t)}))}))}))}};function ur(){return{handleResponse(t){null!=t&&function(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}(t)&&null!=t.partialSuccess&&0!==Object.keys(t.partialSuccess).length&&bt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class ar{constructor(t,r,e,i,n){this.D=void 0,this.k=void 0,this.F=void 0,this.q=void 0,this.H=void 0,this.V=void 0,this.D=t,this.k=r,this.F=e,this.q=i,this.H=n,this.V=bt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this.V.debug("items to be sent",t),this.q.hasReachedLimit())r({code:Lt.FAILED,error:new Error("Concurrent export limit reached")});else{var e=this.k.serializeRequest(t);null!=e?this.q.pushPromise(this.D.send(e,this.H).then((t=>{if("success"!==t.status)"failure"===t.status&&t.error?r({code:Lt.FAILED,error:t.error}):"retryable"===t.status?r({code:Lt.FAILED,error:new d("Export failed with retryable status")}):r({code:Lt.FAILED,error:new d("Export failed with unknown error")});else{if(null!=t.data)try{this.F.handleResponse(this.k.deserializeResponse(t.data))}catch(r){this.V.warn("Export succeeded but could not deserialize response - is the response specification compliant?",r,t.data)}r({code:Lt.SUCCESS})}}),(t=>r({code:Lt.FAILED,error:t})))):r({code:Lt.FAILED,error:new Error("Nothing to send")})}}forceFlush(){return this.q.awaitAll()}shutdown(){var t=this;return r((function*(){t.V.debug("shutdown started"),yield t.forceFlush(),t.D.shutdown()}))()}}function cr(t,r,e){return i={transport:e,serializer:r,promiseHandler:b(t)},n={timeout:t.timeoutMillis},new ar(i.transport,i.serializer,ur(),i.promiseHandler,n.timeout);var i,n}function lr(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function hr(t){for(var r=new Uint8Array(t.length/2),e=0,i=0;i<t.length;i+=2){var n=lr(t.charCodeAt(i)),o=lr(t.charCodeAt(i+1));r[e++]=n<<4|o}return r}function fr(t){var r=BigInt(1e9);return BigInt(Math.trunc(t[0]))*r+BigInt(Math.trunc(t[1]))}function vr(t){var r,e=fr(t);return r=e,{low:Number(BigInt.asUintN(32,r)),high:Number(BigInt.asUintN(32,r>>BigInt(32)))}}var dr="undefined"!=typeof BigInt?function(t){return fr(t).toString()}:function(t){return t[0]*Ct+t[1]};function yr(t){return t}function mr(t){if(void 0!==t)return hr(t)}var br={encodeHrTime:vr,encodeSpanContext:hr,encodeOptionalSpanContext:mr};function gr(t,r){return{key:t,value:pr(r)}}function pr(t){var r=typeof t;return"string"===r?{stringValue:t}:"number"===r?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:"boolean"===r?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(pr)}}:"object"===r&&null!=t?{kvlistValue:{values:Object.entries(t).map((t=>{var[r,e]=t;return gr(r,e)}))}}:{}}function wr(t,r){var e=function(t){var r,e;if(void 0===t)return br;var i=null===(r=t.useLongBits)||void 0===r||r,n=null!==(e=t.useHex)&&void 0!==e&&e;return{encodeHrTime:i?vr:dr,encodeSpanContext:n?yr:hr,encodeOptionalSpanContext:n?yr:mr}}(r);return{resourceLogs:jr(t,e)}}function jr(t,r){var e=function(t){var r=new Map;for(var e of t){var{resource:i,instrumentationScope:{name:n,version:o="",schemaUrl:s=""}}=e,u=r.get(i);u||(u=new Map,r.set(i,u));var a=n+"@"+o+":"+s,c=u.get(a);c||(c=[],u.set(a,c)),c.push(e)}return r}(t);return Array.from(e,(t=>{var[e,i]=t,n=function(t){var r,e={attributes:(r=t.attributes,Object.keys(r).map((t=>gr(t,r[t])))),droppedAttributesCount:0},i=t.schemaUrl;return i&&""!==i&&(e.schemaUrl=i),e}(e);return{resource:n,scopeLogs:Array.from(i,(t=>{var e,[,i]=t;return{scope:(e=i[0].instrumentationScope,{name:e.name,version:e.version}),logRecords:i.map((t=>function(t,r){var e,i,n;return{timeUnixNano:r.encodeHrTime(t.hrTime),observedTimeUnixNano:r.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:pr(t.body),eventName:t.eventName,attributes:Sr(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:null==(e=t.spanContext)?void 0:e.traceFlags,traceId:r.encodeOptionalSpanContext(null==(i=t.spanContext)?void 0:i.traceId),spanId:r.encodeOptionalSpanContext(null==(n=t.spanContext)?void 0:n.spanId)}}(t,r))),schemaUrl:i[0].instrumentationScope.schemaUrl}})),schemaUrl:n.schemaUrl}}))}function Sr(t){return Object.keys(t).map((r=>gr(r,t[r])))}var Or=t=>null!==t&&"object"==typeof t&&"function"==typeof t.then;class Ar{static FromAttributeList(t,r){var e=new Ar({},r);return e.X=Tr(t),e.G=t.filter((t=>{var[r,e]=t;return Or(e)})).length>0,e}constructor(t,r){var e;this.X=void 0,this.G=!1,this.J=void 0,this.K=void 0;var i=null!==(e=t.attributes)&&void 0!==e?e:{};this.X=Object.entries(i).map((t=>{var[r,e]=t;return Or(e)&&(this.G=!0),[r,e]})),this.X=Tr(this.X),this.J=function(t){if("string"==typeof t||void 0===t)return t;return void bt.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}(null==r?void 0:r.schemaUrl)}get asyncAttributesPending(){return this.G}waitForAsyncAttributes(){var t=this;return r((function*(){if(t.asyncAttributesPending){for(var r=0;r<t.X.length;r++){var[e,i]=t.X[r];t.X[r]=[e,Or(i)?yield i:i]}t.G=!1}}))()}get attributes(){if(this.asyncAttributesPending&&bt.error("Accessing resource attributes before async attributes settled"),this.K)return this.K;var t={};for(var[r,e]of this.X){var i;if(Or(e))bt.debug("Unsettled resource attribute "+r+" skipped");else if(null!=e)null!==(i=t[r])&&void 0!==i||(t[r]=e)}return this.G||(this.K=t),t}getRawAttributes(){return this.X}get schemaUrl(){return this.J}merge(t){if(null==t)return this;var r=function(t,r){var e=null==t?void 0:t.schemaUrl,i=null==r?void 0:r.schemaUrl,n=void 0===e||""===e,o=void 0===i||""===i;if(n)return i;if(o)return e;if(e===i)return e;return void bt.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',e,i)}(this,t),e=r?{schemaUrl:r}:void 0;return Ar.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],e)}}function Lr(t,r){return Ar.FromAttributeList(Object.entries(t),r)}function Tr(t){return t.map((t=>{var[r,e]=t;return Or(e)?[r,e.catch((t=>{bt.debug("promise rejection for resource attribute: %s - %s",r,t)}))]:[r,e]}))}var Er={serializeRequest:t=>{var r=wr(t,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(r))},deserializeResponse:t=>{if(0===t.length)return{};var r=new TextDecoder;return JSON.parse(r.decode(t))}};class xr{constructor(t){this.D=void 0,this.D=t}retry(t,r,e){return new Promise(((i,n)=>{setTimeout((()=>{this.D.send(t,r).then(i,n)}),e)}))}send(t,e){var i=this;return r((function*(){for(var r=Date.now()+e,n=yield i.D.send(t,e),o=5,s=1e3;"retryable"===n.status&&o>0;){var u;o--;var a=Math.max(Math.min(s,5e3)+(.4*Math.random()-.2),0);s*=1.5;var c=null!==(u=n.retryInMillis)&&void 0!==u?u:a,l=r-Date.now();if(c>l)return n;n=yield i.retry(t,l,c)}return n}))()}shutdown(){return this.D.shutdown()}}function Rr(t){return new xr(t.transport)}function Pr(t){return[429,502,503,504].includes(t)}function Nr(t){if(null!=t){var r=Number.parseInt(t,10);if(Number.isInteger(r))return r>0?1e3*r:-1;var e=new Date(t).getTime()-Date.now();return e>=0?e:0}}class Cr{constructor(t){this.W=void 0,this.W=t}send(t,e){var i=this;return r((function*(){var r=yield i.W.headers();return yield new Promise((n=>{var o=new XMLHttpRequest;o.timeout=e,o.open("POST",i.W.url),Object.entries(r).forEach((t=>{var[r,e]=t;o.setRequestHeader(r,e)})),o.ontimeout=t=>{n({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=()=>{o.status>=200&&o.status<=299?(bt.debug("XHR success"),n({status:"success"})):o.status&&Pr(o.status)?n({status:"retryable",retryInMillis:Nr(o.getResponseHeader("Retry-After"))}):0!==o.status&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},o.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},o.send(t)}))}))()}shutdown(){}}class Ir{constructor(t){this.$=void 0,this.$=t}send(t){var e=this;return r((function*(){var r=(yield e.$.headers())["Content-Type"];return new Promise((i=>{navigator.sendBeacon(e.$.url,new Blob([t],{type:r}))?(bt.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})}))}))()}shutdown(){}}class _r{constructor(t){this.W=void 0,this.W=t}send(t,e){var i=this;return r((function*(){var r=new AbortController,n=setTimeout((()=>r.abort()),e);try{var o,s=!!globalThis.location,u=new URL(i.W.url),a=yield fetch(u.href,{method:"POST",headers:yield i.W.headers(),body:t,signal:r.signal,keepalive:s,mode:s?(null==(o=globalThis.location)?void 0:o.origin)===u.origin?"same-origin":"cors":"no-cors"});return a.status>=200&&a.status<=299?(bt.debug("response success"),{status:"success"}):Pr(a.status)?{status:"retryable",retryInMillis:Nr(a.headers.get("Retry-After"))}:{status:"failure",error:new Error("Fetch request failed with non-retryable status")}}catch(t){return"AbortError"===(null==t?void 0:t.name)?{status:"failure",error:new Error("Fetch request timed out",{cause:t})}:{status:"failure",error:new Error("Fetch request errored",{cause:t})}}finally{clearTimeout(n)}}))()}shutdown(){}}function Mr(t,r){return cr(t,r,Rr({transport:(e=t,new Cr(e))}));var e}function Ur(t,r){return cr(t,r,Rr({transport:(e=t,new _r(e))}));var e}function Br(t,r){return cr(t,r,Rr({transport:(e={url:t.url,headers:t.headers},new Ir(e))}));var e}function Dr(t,i,n){return r((function*(){var r=e({},yield n()),o={};return null!=i&&Object.assign(o,yield i()),null!=t&&Object.assign(o,function(t){var r={};return Object.entries(null!=t?t:{}).forEach((t=>{var[e,i]=t;void 0!==i?r[e]=String(i):bt.warn('Header "'+e+'" has invalid value ('+i+") and will be ignored")})),r}(yield t())),Object.assign(o,r)}))}function kr(t){if(null!=t)try{var r,e=null==(r=globalThis.location)?void 0:r.href;return new URL(t,e).href}catch(r){throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function Fr(t,r,i){var n,o;return e({},function(t,r,e){var i,n,o,s,u,a;return{timeoutMillis:y(null!==(i=null!==(n=t.timeoutMillis)&&void 0!==n?n:r.timeoutMillis)&&void 0!==i?i:e.timeoutMillis),concurrencyLimit:null!==(o=null!==(s=t.concurrencyLimit)&&void 0!==s?s:r.concurrencyLimit)&&void 0!==o?o:e.concurrencyLimit,compression:null!==(u=null!==(a=t.compression)&&void 0!==a?a:r.compression)&&void 0!==u?u:e.compression}}(t,r,i),{headers:Dr(t.headers,r.headers,i.headers),url:null!==(n=null!==(o=kr(t.url))&&void 0!==o?o:r.url)&&void 0!==n?n:i.url})}function qr(t){return"function"==typeof t.headers?t.headers:function(t){if(null!=t)return r((function*(){return t}))}(t.headers)}function Hr(t,i,n){return Fr({url:t.url,timeoutMillis:t.timeoutMillis,headers:qr(t),concurrencyLimit:t.concurrencyLimit},{},function(t,i){return e({},{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"},{headers:(n=r((function*(){return t})),function(){return n.apply(this,arguments)}),url:"http://localhost:4318/"+i});var n}(n,i))}function zr(t,r,e,i){return(t.headers||"function"!=typeof navigator.sendBeacon?void 0!==globalThis.fetch?Ur:Mr:Br)(Hr(t,e,i),r)}class Vr extends v{constructor(t){void 0===t&&(t={}),super(zr(t,Er,"v1/logs",{"Content-Type":"application/json"}))}}class Xr{set severityText(t){this.Y()||(this.Z=t)}get severityText(){return this.Z}set severityNumber(t){this.Y()||(this.tt=t)}get severityNumber(){return this.tt}set body(t){this.Y()||(this.rt=t)}get body(){return this.rt}get eventName(){return this.et}set eventName(t){this.Y()||(this.et=t)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(t,r,e){this.hrTime=void 0,this.hrTimeObserved=void 0,this.spanContext=void 0,this.resource=void 0,this.instrumentationScope=void 0,this.attributes={},this.Z=void 0,this.tt=void 0,this.rt=void 0,this.et=void 0,this.totalAttributesCount=0,this.it=!1,this.nt=void 0;var{timestamp:i,observedTimestamp:n,eventName:o,severityNumber:s,severityText:u,body:a,attributes:c={},context:l}=e,h=Date.now();if(this.hrTime=Ut(null!=i?i:h),this.hrTimeObserved=Ut(null!=n?n:h),l){var f=pt.getSpanContext(l);f&&at(f)&&(this.spanContext=f)}this.severityNumber=s,this.severityText=u,this.body=a,this.resource=t.resource,this.instrumentationScope=r,this.nt=t.logRecordLimits,this.et=o,this.setAttributes(c)}setAttribute(t,r){return this.Y()||null===r?this:0===t.length?(bt.warn("Invalid attribute key: "+t),this):jt(r)||"object"==typeof r&&!Array.isArray(r)&&Object.keys(r).length>0?(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this.nt.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(1===this.droppedAttributesCount&&bt.warn("Dropping extra attributes."),this):(jt(r)?this.attributes[t]=this.ot(r):this.attributes[t]=r,this)):(bt.warn("Invalid attribute value set for key: "+t),this)}setAttributes(t){for(var[r,e]of Object.entries(t))this.setAttribute(r,e);return this}setBody(t){return this.body=t,this}setEventName(t){return this.eventName=t,this}setSeverityNumber(t){return this.severityNumber=t,this}setSeverityText(t){return this.severityText=t,this}st(){this.it=!0}ot(t){var r=this.nt.attributeValueLengthLimit;return r<=0?(bt.warn("Attribute value limit must be positive, got "+r),t):"string"==typeof t?this.ut(t,r):Array.isArray(t)?t.map((t=>"string"==typeof t?this.ut(t,r):t)):t}ut(t,r){return t.length<=r?t:t.substring(0,r)}Y(){return this.it&&bt.warn("Can not execute the operation on emitted log record"),this.it}}class Gr{constructor(t,r){this.instrumentationScope=void 0,this.ct=void 0,this.instrumentationScope=t,this.ct=r}emit(t){var r=t.context||mt.active(),i=new Xr(this.ct,this.instrumentationScope,e({context:r},t));this.ct.activeProcessor.onEmit(i,r),i.st()}}class Jr{forceFlush(){return Promise.resolve()}onEmit(t,r){}shutdown(){return Promise.resolve()}}class Kr{constructor(t,r){this.processors=void 0,this.forceFlushTimeoutMillis=void 0,this.processors=t,this.forceFlushTimeoutMillis=r}forceFlush(){var t=this;return r((function*(){var r=t.forceFlushTimeoutMillis;yield Promise.all(t.processors.map((t=>ir(t.forceFlush(),r))))}))()}onEmit(t,r){this.processors.forEach((e=>e.onEmit(t,r)))}shutdown(){var t=this;return r((function*(){yield Promise.all(t.processors.map((t=>t.shutdown())))}))()}}class Wr{constructor(t,r,e,i){this.resource=void 0,this.forceFlushTimeoutMillis=void 0,this.logRecordLimits=void 0,this.processors=void 0,this.loggers=new Map,this.activeProcessor=void 0,this.registeredLogRecordProcessors=[],this.resource=t,this.forceFlushTimeoutMillis=r,this.logRecordLimits=e,this.processors=i,i.length>0?(this.registeredLogRecordProcessors=i,this.activeProcessor=new Kr(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new Jr}}class $r{constructor(t){var r,e,i;void 0===t&&(t={}),this.lt=void 0,this.ct=void 0;var n,o,s,u,a,c,l,h=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];for(var i=r.shift(),n=new WeakMap;r.length>0;)i=$t(i,r.shift(),0,n);return i}({},{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},includeTraceContext:!0},t),f=null!==(r=t.resource)&&void 0!==r?r:Lr({"service.name":"unknown_service",[Et]:Pt[Et],[xt]:Pt[xt],[Rt]:Pt[Rt]});this.ct=new Wr(f,h.forceFlushTimeoutMillis,(n=h.logRecordLimits,{attributeCountLimit:null!==(o=null!==(s=null!==(u=n.attributeCountLimit)&&void 0!==u?u:void 0)&&void 0!==s?s:void 0)&&void 0!==o?o:128,attributeValueLengthLimit:null!==(a=null!==(c=null!==(l=n.attributeValueLengthLimit)&&void 0!==l?l:void 0)&&void 0!==c?c:void 0)&&void 0!==a?a:1/0}),null!==(e=null==(i=t)?void 0:i.processors)&&void 0!==e?e:[]),this.lt=new or(this.ht,this)}getLogger(t,r,e){if(this.lt.isCalled)return bt.warn("A shutdown LoggerProvider cannot provide a Logger"),n;t||bt.warn("Logger requested without instrumentation scope name.");var i=t||"unknown",o=i+"@"+(r||"")+":"+((null==e?void 0:e.schemaUrl)||"");return this.ct.loggers.has(o)||this.ct.loggers.set(o,new Gr({name:i,version:r,schemaUrl:null==e?void 0:e.schemaUrl},this.ct)),this.ct.loggers.get(o)}forceFlush(){return this.lt.isCalled?(bt.warn("invalid attempt to force flush after LoggerProvider shutdown"),this.lt.promise):this.ct.activeProcessor.forceFlush()}shutdown(){return this.lt.isCalled?(bt.warn("shutdown may only be called once per LoggerProvider"),this.lt.promise):this.lt.call()}ht(){return this.ct.activeProcessor.shutdown()}}class Qr{constructor(t,r){var e,i,n,o,s,u,a,c;this.ft=void 0,this.vt=void 0,this.dt=void 0,this.yt=void 0,this.bt=void 0,this.gt=!1,this.wt=[],this.jt=void 0,this.lt=void 0,this.ft=t,this.vt=null!==(e=null!==(i=null==r?void 0:r.maxExportBatchSize)&&void 0!==i?i:void 0)&&void 0!==e?e:512,this.dt=null!==(n=null!==(o=null==r?void 0:r.maxQueueSize)&&void 0!==o?o:void 0)&&void 0!==n?n:2048,this.yt=null!==(s=null!==(u=null==r?void 0:r.scheduledDelayMillis)&&void 0!==u?u:void 0)&&void 0!==s?s:5e3,this.bt=null!==(a=null!==(c=null==r?void 0:r.exportTimeoutMillis)&&void 0!==c?c:void 0)&&void 0!==a?a:3e4,this.lt=new or(this.ht,this),this.vt>this.dt&&(bt.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this.vt=this.dt)}onEmit(t){this.lt.isCalled||this.St(t)}forceFlush(){return this.lt.isCalled?this.lt.promise:this.Ot()}shutdown(){return this.lt.call()}ht(){var t=this;return r((function*(){t.onShutdown(),yield t.Ot(),yield t.ft.shutdown()}))()}St(t){this.wt.length>=this.dt||(this.wt.push(t),this.At())}Ot(){return new Promise(((t,r)=>{for(var e=[],i=Math.ceil(this.wt.length/this.vt),n=0;n<i;n++)e.push(this.Lt());Promise.all(e).then((()=>{t()})).catch(r)}))}Lt(){return this.Tt(),0===this.wt.length?Promise.resolve():new Promise(((t,r)=>{ir(this.B(this.wt.splice(0,this.vt)),this.bt).then((()=>t())).catch(r)}))}At(){if(!this.gt){var t=()=>{this.gt=!0,this.Lt().then((()=>{this.gt=!1,this.wt.length>0&&(this.Tt(),this.At())})).catch((t=>{this.gt=!1,At(t)}))};if(this.wt.length>=this.vt)return t();void 0===this.jt&&(this.jt=setTimeout((()=>t()),this.yt),"number"!=typeof this.jt&&this.jt.unref())}}Tt(){void 0!==this.jt&&(clearTimeout(this.jt),this.jt=void 0)}B(t){var r=()=>sr.B(this.ft,t).then((t=>{var r;t.code!==Lt.SUCCESS&&At(null!==(r=t.error)&&void 0!==r?r:new Error("BatchLogRecordProcessor: log record export failed (status "+t+")"))})).catch(At),e=t.map((t=>t.resource)).filter((t=>t.asyncAttributesPending));return 0===e.length?r():Promise.all(e.map((t=>null==t.waitForAsyncAttributes?void 0:t.waitForAsyncAttributes()))).then(r,At)}}class Yr extends Qr{constructor(t,r){super(t,r),this.Et=void 0,this.xt=void 0,this.Rt(r)}onShutdown(){"undefined"!=typeof document&&(this.Et&&document.removeEventListener("visibilitychange",this.Et),this.xt&&document.removeEventListener("pagehide",this.xt))}Rt(t){!0!==(null==t?void 0:t.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this.Et=()=>{"hidden"===document.visibilityState&&this.forceFlush()},this.xt=()=>{this.forceFlush()},document.addEventListener("visibilitychange",this.Et),document.addEventListener("pagehide",this.xt))}}var Zr="undefined"!=typeof window?window:void 0,te="undefined"!=typeof globalThis?globalThis:Zr;"undefined"==typeof self&&(te.self=te),"undefined"==typeof File&&(te.File=function(){});var re=null==te?void 0:te.navigator;null==te||te.document,null==te||te.location,null==te||te.fetch,null!=te&&te.XMLHttpRequest&&"withCredentials"in new te.XMLHttpRequest&&te.XMLHttpRequest,null==te||te.AbortController,null==re||re.userAgent;var ee=null!=Zr?Zr:{},ie=Array.isArray,ne=Object.prototype.toString,oe=ie||function(t){return"[object Array]"===ne.call(t)},se=t=>t===Object(t)&&!oe(t),ue=1e4,ae=function(t,r,e,i,n){for(var o in void 0===r&&(r=""),void 0===e&&(e={}),void 0===i&&(i=50),void 0===n&&(n=ue),t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=t[o],u=r?r+"."+o:o;if(se(s))ae(s,u,e,i,n);else{if(i-=1,n-=s.toString().length,n-=u.length,i<=0||n<=0)return void(e.attributes_truncated=!0);e[u]=s}}return e},ce={log:"INFO",warn:"WARNING",error:"ERROR",debug:"DEBUG",info:"INFO"};ee.__PosthogExtensions__=ee.__PosthogExtensions__||{},ee.__PosthogExtensions__.logs={initializeLogs:t=>{(t=>{var r={"service.name":"posthog-browser-logs",host:ee.location.host};if(t.sessionManager){var{sessionId:i,windowId:n}=t.sessionManager.checkAndGetSessionAndWindowId(!0);r=e({},r,{"session.id":i,"window.id":n})}f.setGlobalLoggerProvider(new $r({resource:Lr(r),processors:[new Yr(new Vr({url:t.config.api_host+"/i/v1/logs?token="+t.config.token}))]}))})(t);var r=f.getLogger("console"),i={};if(t.sessionManager){var{sessionStartTimestamp:n,lastActivityTimestamp:o}=t.sessionManager.checkAndGetSessionAndWindowId(!0);i={sessionStartTimestamp:n.toString(),lastActivityTimestamp:o.toString()}}var s=function(n){var o=(t,r)=>r instanceof Error?e({},r,{name:r.name,message:r.message,stack:r.stack}):r,s=s=>function(){for(var u=arguments.length,a=new Array(u),c=0;c<u;c++)a[c]=arguments[c];if(a.length>0){var l=a.map((t=>JSON.stringify(t,o))).join(" ");l.length>ue&&(l=l.slice(0,ue)+"...",i.body_truncated="true"),r.emit({severityText:ce[n],body:l,attributes:e({"log.source":"console."+n,distinct_id:t.get_distinct_id(),"location.href":ee.location.href},i,se(a[0])?ae(a[0]):{})}),s.apply(ee.console,a)}},u=ee.console[n];"__rrweb_original__"in ee.console[n]&&(u=ee.console[n].__rrweb_original__,ee.console[n].__rrweb_original__=s(u)),ee.console[n]=s(u)};for(var u of["debug","log","warn","error","info"])s(u)}}}();
1
+ !function(){"use strict";function t(t,r,e,i,n,o,s){try{var u=t[o](s),a=u.value}catch(t){return void e(t)}u.done?r(a):Promise.resolve(a).then(i,n)}function r(r){return function(){var e=this,i=arguments;return new Promise((function(n,o){var s=r.apply(e,i);function u(r){t(s,n,o,u,a,"next",r)}function a(r){t(s,n,o,u,a,"throw",r)}u(void 0)}))}}function e(){return e=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},e.apply(null,arguments)}class i{emit(t){}}var n=new i;var o=new class{getLogger(t,r,e){return new i}};class s{constructor(t,r,e,i){this.t=t,this.name=r,this.version=e,this.options=i}emit(t){this.i().emit(t)}i(){if(this.o)return this.o;var t=this.t.u(this.name,this.version,this.options);return t?(this.o=t,this.o):n}}class u{getLogger(t,r,e){var i;return null!==(i=this.u(t,r,e))&&void 0!==i?i:new s(this,t,r,e)}l(){var t;return null!==(t=this.o)&&void 0!==t?t:o}h(t){this.o=t}u(t,r,e){var i;return null===(i=this.o)||void 0===i?void 0:i.getLogger(t,r,e)}}var a="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},c=Symbol.for("io.opentelemetry.js.api.logs"),l=a;class h{constructor(){this.v=new u}static getInstance(){return this._instance||(this._instance=new h),this._instance}setGlobalLoggerProvider(t){return l[c]?this.getLoggerProvider():(l[c]=(r=1,e=t,i=o,t=>t===r?e:i),this.v.h(t),t);var r,e,i}getLoggerProvider(){var t,r;return null!==(r=null===(t=l[c])||void 0===t?void 0:t.call(l,1))&&void 0!==r?r:this.v}getLogger(t,r,e){return this.getLoggerProvider().getLogger(t,r,e)}disable(){delete l[c],this.v=new u}}var f=h.getInstance();class v{constructor(t){this.o=void 0,this.o=t}export(t,r){this.o.export(t,r)}forceFlush(){return this.o.forceFlush()}shutdown(){return this.o.shutdown()}}class d extends Error{constructor(t,r,e){super(t),this.code=void 0,this.name="OTLPExporterError",this.data=void 0,this.data=e,this.code=r}}function y(t){if(Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}class m{constructor(t){this.m=void 0,this.p=[],this.m=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this.p.push(t);var r=()=>{var r=this.p.indexOf(t);this.p.splice(r,1)};t.then(r,r)}hasReachedLimit(){return this.p.length>=this.m}awaitAll(){var t=this;return r((function*(){yield Promise.all(t.p)}))()}}function b(t){return new m(t.concurrencyLimit)}var g="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},p="1.9.0",w=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var j=function(t){var r=new Set([t]),e=new Set,i=t.match(w);if(!i)return function(){return!1};var n=+i[1],o=+i[2],s=+i[3];if(null!=i[4])return function(r){return r===t};function u(t){return e.add(t),!1}function a(t){return r.add(t),!0}return function(t){if(r.has(t))return!0;if(e.has(t))return!1;var i=t.match(w);if(!i)return u(t);var c=+i[1],l=+i[2],h=+i[3];return null!=i[4]||n!==c?u(t):0===n?o===l&&s<=h?a(t):u(t):o<=l?a(t):u(t)}}(p),S=p.split(".")[0],O=Symbol.for("opentelemetry.js.api."+S),A=g;function L(t,r,e,i){var n;void 0===i&&(i=!1);var o=A[O]=null!==(n=A[O])&&void 0!==n?n:{version:p};if(!i&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return e.error(s.stack||s.message),!1}if(o.version!==p){s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+p);return e.error(s.stack||s.message),!1}return o[t]=r,e.debug("@opentelemetry/api: Registered a global for "+t+" v"+p+"."),!0}function T(t){var r,e,i=null===(r=A[O])||void 0===r?void 0:r.version;if(i&&j(i))return null===(e=A[O])||void 0===e?void 0:e[t]}function E(t,r){r.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+p+".");var e=A[O];e&&delete e[t]}var x,R=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},P=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},N=function(){function t(t){this.j=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("debug",this.j,t)},t.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("error",this.j,t)},t.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("info",this.j,t)},t.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("warn",this.j,t)},t.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C("verbose",this.j,t)},t}();function C(t,r,e){var i=T("diag");if(i)return e.unshift(r),i[t].apply(i,P([],R(e),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(x||(x={}));var I=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},M=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},U=function(){function t(){function t(t){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=T("diag");if(i)return i[t].apply(i,M([],I(r),!1))}}var r=this;r.setLogger=function(t,e){var i,n,o;if(void 0===e&&(e={logLevel:x.INFO}),t===r){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error(null!==(i=s.stack)&&void 0!==i?i:s.message),!1}"number"==typeof e&&(e={logLevel:e});var u=T("diag"),a=function(t,r){function e(e,i){var n=r[e];return"function"==typeof n&&t>=i?n.bind(r):function(){}}return t<x.NONE?t=x.NONE:t>x.ALL&&(t=x.ALL),r=r||{},{error:e("error",x.ERROR),warn:e("warn",x.WARN),info:e("info",x.INFO),debug:e("debug",x.DEBUG),verbose:e("verbose",x.VERBOSE)}}(null!==(n=e.logLevel)&&void 0!==n?n:x.INFO,t);if(u&&!e.suppressOverrideMessage){var c=null!==(o=(new Error).stack)&&void 0!==o?o:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+c),a.warn("Current logger will overwrite one already registered from "+c)}return L("diag",a,r,!0)},r.disable=function(){E("diag",r)},r.createComponentLogger=function(t){return new N(t)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}();function B(t){return Symbol.for(t)}var D,_=function t(r){var e=this;e.S=r?new Map(r):new Map,e.getValue=function(t){return e.S.get(t)},e.setValue=function(r,i){var n=new t(e.S);return n.S.set(r,i),n},e.deleteValue=function(r){var i=new t(e.S);return i.S.delete(r),i}},k=new _,F=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},q=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},H=function(){function t(){}return t.prototype.active=function(){return k},t.prototype.with=function(t,r,e){for(var i=[],n=3;n<arguments.length;n++)i[n-3]=arguments[n];return r.call.apply(r,q([e],F(i),!1))},t.prototype.bind=function(t,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),z=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,o=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s},V=function(t,r,e){if(e||2===arguments.length)for(var i,n=0,o=r.length;n<o;n++)!i&&n in r||(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},X="context",G=new H,J=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return L(X,t,U.instance())},t.prototype.active=function(){return this.O().active()},t.prototype.with=function(t,r,e){for(var i,n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];return(i=this.O()).with.apply(i,V([t,r,e],z(n),!1))},t.prototype.bind=function(t,r){return this.O().bind(t,r)},t.prototype.O=function(){return T(X)||G},t.prototype.disable=function(){this.O().disable(),E(X,U.instance())},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(D||(D={}));var K="0000000000000000",W="00000000000000000000000000000000",Q={traceId:W,spanId:K,traceFlags:D.NONE},Y=function(){function t(t){void 0===t&&(t=Q),this.A=t}return t.prototype.spanContext=function(){return this.A},t.prototype.setAttribute=function(t,r){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,r){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,r){},t}(),Z=B("OpenTelemetry Context Key SPAN");function tt(t){return t.getValue(Z)||void 0}function rt(){return tt(J.getInstance().active())}function et(t,r){return t.setValue(Z,r)}function it(t){return t.deleteValue(Z)}function nt(t,r){return et(t,new Y(r))}function ot(t){var r;return null===(r=tt(t))||void 0===r?void 0:r.spanContext()}var st=/^([0-9a-f]{32})$/i,ut=/^[0-9a-f]{16}$/i;function at(t){return e=t.traceId,st.test(e)&&e!==W&&(r=t.spanId,ut.test(r)&&r!==K);var r,e}function ct(t){return new Y(t)}var lt=J.getInstance(),ht=function(){function t(){}return t.prototype.startSpan=function(t,r,e){if(void 0===e&&(e=lt.active()),Boolean(null==r?void 0:r.root))return new Y;var i,n=e&&ot(e);return"object"==typeof(i=n)&&"string"==typeof i.spanId&&"string"==typeof i.traceId&&"number"==typeof i.traceFlags&&at(n)?new Y(n):new Y},t.prototype.startActiveSpan=function(t,r,e,i){var n,o,s;if(!(arguments.length<2)){2===arguments.length?s=r:3===arguments.length?(n=r,s=e):(n=r,o=e,s=i);var u=null!=o?o:lt.active(),a=this.startSpan(t,n,u),c=et(u,a);return lt.with(c,s,void 0,a)}},t}();var ft=new ht,vt=function(){function t(t,r,e,i){this.t=t,this.name=r,this.version=e,this.options=i}return t.prototype.startSpan=function(t,r,e){return this.L().startSpan(t,r,e)},t.prototype.startActiveSpan=function(t,r,e,i){var n=this.L();return Reflect.apply(n.startActiveSpan,n,arguments)},t.prototype.L=function(){if(this.o)return this.o;var t=this.t.getDelegateTracer(this.name,this.version,this.options);return t?(this.o=t,this.o):ft},t}(),dt=new(function(){function t(){}return t.prototype.getTracer=function(t,r,e){return new ht},t}()),yt=function(){function t(){}return t.prototype.getTracer=function(t,r,e){var i;return null!==(i=this.getDelegateTracer(t,r,e))&&void 0!==i?i:new vt(this,t,r,e)},t.prototype.getDelegate=function(){var t;return null!==(t=this.o)&&void 0!==t?t:dt},t.prototype.setDelegate=function(t){this.o=t},t.prototype.getDelegateTracer=function(t,r,e){var i;return null===(i=this.o)||void 0===i?void 0:i.getTracer(t,r,e)},t}(),mt=J.getInstance(),bt=U.instance(),gt="trace",pt=function(){function t(){this.T=new yt,this.wrapSpanContext=ct,this.isSpanContextValid=at,this.deleteSpan=it,this.getSpan=tt,this.getActiveSpan=rt,this.getSpanContext=ot,this.setSpan=et,this.setSpanContext=nt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var r=L(gt,this.T,U.instance());return r&&this.T.setDelegate(t),r},t.prototype.getTracerProvider=function(){return T(gt)||this.T},t.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},t.prototype.disable=function(){E(gt,U.instance()),this.T=new yt},t}().getInstance(),wt=B("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function jt(t){return null==t||(Array.isArray(t)?function(t){var r;for(var e of t)if(null!=e){var i=typeof e;if(i!==r){if(!r){if(St(i)){r=i;continue}return!1}return!1}}return!0}(t):St(typeof t))}function St(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}var Ot=t=>{bt.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var r={},e=t;null!==e;)Object.getOwnPropertyNames(e).forEach((t=>{if(!r[t]){var i=e[t];i&&(r[t]=String(i))}})),e=Object.getPrototypeOf(e);return r}(t))}(t))};function At(t){try{Ot(t)}catch(t){}}var Lt,Tt=performance,Et="telemetry.sdk.language",xt="telemetry.sdk.name",Rt="telemetry.sdk.version",Pt={[xt]:"opentelemetry","process.runtime.name":"browser",[Et]:"webjs",[Rt]:"2.2.0"},Nt=Math.pow(10,6),Ct=Math.pow(10,9);function It(t){var r=t/1e3;return[Math.trunc(r),Math.round(t%1e3*Nt)]}function Mt(){var t=Tt.timeOrigin;if("number"!=typeof t){var r=Tt;t=r.timing&&r.timing.fetchStart}return t}function Ut(t){return function(t,r){var e=[t[0]+r[0],t[1]+r[1]];e[1]>=Ct&&(e[1]-=Ct,e[0]+=1);return e}(It(Mt()),It("number"==typeof t?t:Tt.now()))}function Bt(t){if(r=t,Array.isArray(r)&&2===r.length&&"number"==typeof r[0]&&"number"==typeof r[1])return t;if("number"==typeof t)return t<Mt()?Ut(t):It(t);if(t instanceof Date)return It(t.getTime());throw TypeError("Invalid input type");var r}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(Lt||(Lt={}));var Dt="[object Object]",_t="[object Null]",kt="[object Undefined]",Ft=Function.prototype.toString,qt=Ft.call(Object),Ht=Object.getPrototypeOf,zt=Object.prototype,Vt=zt.hasOwnProperty,Xt=Symbol?Symbol.toStringTag:void 0,Gt=zt.toString;function Jt(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){if(null==t)return void 0===t?kt:_t;return Xt&&Xt in Object(t)?function(t){var r=Vt.call(t,Xt),e=t[Xt],i=!1;try{t[Xt]=void 0,i=!0}catch(t){}var n=Gt.call(t);i&&(r?t[Xt]=e:delete t[Xt]);return n}(t):function(t){return Gt.call(t)}(t)}(t)!==Dt)return!1;var r=Ht(t);if(null===r)return!0;var e=Vt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ft.call(e)===qt}var Kt=20;function Wt(t){return Yt(t)?t.slice():t}function $t(t,r,e,i){var n;if(void 0===e&&(e=0),!(e>Kt)){if(e++,rr(t)||rr(r)||Zt(r))n=Wt(r);else if(Yt(t)){if(n=t.slice(),Yt(r))for(var o=0,s=r.length;o<s;o++)n.push(Wt(r[o]));else if(tr(r))for(var u=Object.keys(r),a=0,c=u.length;a<c;a++){var l=u[a];n[l]=Wt(r[l])}}else if(tr(t))if(tr(r)){if(!function(t,r){if(!Jt(t)||!Jt(r))return!1;return!0}(t,r))return r;n=Object.assign({},t);for(var h=Object.keys(r),f=0,v=h.length;f<v;f++){var d=h[f],y=r[d];if(rr(y))void 0===y?delete n[d]:n[d]=y;else{var m=n[d],b=y;if(Qt(t,d,i)||Qt(r,d,i))delete n[d];else{if(tr(m)&&tr(b)){var g=i.get(m)||[],p=i.get(b)||[];g.push({obj:t,key:d}),p.push({obj:r,key:d}),i.set(m,g),i.set(b,p)}n[d]=$t(n[d],y,e,i)}}}}else n=r;return n}}function Qt(t,r,e){for(var i=e.get(t[r])||[],n=0,o=i.length;n<o;n++){var s=i[n];if(s.key===r&&s.obj===t)return!0}return!1}function Yt(t){return Array.isArray(t)}function Zt(t){return"function"==typeof t}function tr(t){return!rr(t)&&!Yt(t)&&!Zt(t)&&"object"==typeof t}function rr(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}class er extends Error{constructor(t){super(t),Object.setPrototypeOf(this,er.prototype)}}function ir(t,r){var e,i=new Promise((function(t,i){e=setTimeout((function(){i(new er("Operation timed out."))}),r)}));return Promise.race([t,i]).then((t=>(clearTimeout(e),t)),(t=>{throw clearTimeout(e),t}))}class nr{constructor(){this.R=void 0,this.P=void 0,this.N=void 0,this.R=new Promise(((t,r)=>{this.P=t,this.N=r}))}get promise(){return this.R}resolve(t){this.P(t)}reject(t){this.N(t)}}class or{constructor(t,r){this.C=void 0,this.I=void 0,this.M=!1,this.U=new nr,this.C=t,this.I=r}get isCalled(){return this.M}get promise(){return this.U.promise}call(){if(!this.M){this.M=!0;try{for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];Promise.resolve(this.C.call(this.I,...r)).then((t=>this.U.resolve(t)),(t=>this.U.reject(t)))}catch(t){this.U.reject(t)}}return this.U.promise}}var sr={B:function(t,r){return new Promise((e=>{mt.with(function(t){return t.setValue(wt,!0)}(mt.active()),(()=>{t.export(r,(t=>{e(t)}))}))}))}};function ur(){return{handleResponse(t){null!=t&&function(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}(t)&&null!=t.partialSuccess&&0!==Object.keys(t.partialSuccess).length&&bt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class ar{constructor(t,r,e,i,n){this.D=void 0,this.k=void 0,this.F=void 0,this.q=void 0,this.H=void 0,this.V=void 0,this.D=t,this.k=r,this.F=e,this.q=i,this.H=n,this.V=bt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this.V.debug("items to be sent",t),this.q.hasReachedLimit())r({code:Lt.FAILED,error:new Error("Concurrent export limit reached")});else{var e=this.k.serializeRequest(t);null!=e?this.q.pushPromise(this.D.send(e,this.H).then((t=>{if("success"!==t.status)"failure"===t.status&&t.error?r({code:Lt.FAILED,error:t.error}):"retryable"===t.status?r({code:Lt.FAILED,error:new d("Export failed with retryable status")}):r({code:Lt.FAILED,error:new d("Export failed with unknown error")});else{if(null!=t.data)try{this.F.handleResponse(this.k.deserializeResponse(t.data))}catch(r){this.V.warn("Export succeeded but could not deserialize response - is the response specification compliant?",r,t.data)}r({code:Lt.SUCCESS})}}),(t=>r({code:Lt.FAILED,error:t})))):r({code:Lt.FAILED,error:new Error("Nothing to send")})}}forceFlush(){return this.q.awaitAll()}shutdown(){var t=this;return r((function*(){t.V.debug("shutdown started"),yield t.forceFlush(),t.D.shutdown()}))()}}function cr(t,r,e){return i={transport:e,serializer:r,promiseHandler:b(t)},n={timeout:t.timeoutMillis},new ar(i.transport,i.serializer,ur(),i.promiseHandler,n.timeout);var i,n}function lr(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function hr(t){for(var r=new Uint8Array(t.length/2),e=0,i=0;i<t.length;i+=2){var n=lr(t.charCodeAt(i)),o=lr(t.charCodeAt(i+1));r[e++]=n<<4|o}return r}function fr(t){var r=BigInt(1e9);return BigInt(Math.trunc(t[0]))*r+BigInt(Math.trunc(t[1]))}function vr(t){var r,e=fr(t);return r=e,{low:Number(BigInt.asUintN(32,r)),high:Number(BigInt.asUintN(32,r>>BigInt(32)))}}var dr="undefined"!=typeof BigInt?function(t){return fr(t).toString()}:function(t){return t[0]*Ct+t[1]};function yr(t){return t}function mr(t){if(void 0!==t)return hr(t)}var br={encodeHrTime:vr,encodeSpanContext:hr,encodeOptionalSpanContext:mr};function gr(t,r){return{key:t,value:pr(r)}}function pr(t){var r=typeof t;return"string"===r?{stringValue:t}:"number"===r?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:"boolean"===r?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(pr)}}:"object"===r&&null!=t?{kvlistValue:{values:Object.entries(t).map((t=>{var[r,e]=t;return gr(r,e)}))}}:{}}function wr(t,r){var e=function(t){var r,e;if(void 0===t)return br;var i=null===(r=t.useLongBits)||void 0===r||r,n=null!==(e=t.useHex)&&void 0!==e&&e;return{encodeHrTime:i?vr:dr,encodeSpanContext:n?yr:hr,encodeOptionalSpanContext:n?yr:mr}}(r);return{resourceLogs:jr(t,e)}}function jr(t,r){var e=function(t){var r=new Map;for(var e of t){var{resource:i,instrumentationScope:{name:n,version:o="",schemaUrl:s=""}}=e,u=r.get(i);u||(u=new Map,r.set(i,u));var a=n+"@"+o+":"+s,c=u.get(a);c||(c=[],u.set(a,c)),c.push(e)}return r}(t);return Array.from(e,(t=>{var[e,i]=t,n=function(t){var r,e={attributes:(r=t.attributes,Object.keys(r).map((t=>gr(t,r[t])))),droppedAttributesCount:0},i=t.schemaUrl;return i&&""!==i&&(e.schemaUrl=i),e}(e);return{resource:n,scopeLogs:Array.from(i,(t=>{var e,[,i]=t;return{scope:(e=i[0].instrumentationScope,{name:e.name,version:e.version}),logRecords:i.map((t=>function(t,r){var e,i,n;return{timeUnixNano:r.encodeHrTime(t.hrTime),observedTimeUnixNano:r.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:pr(t.body),eventName:t.eventName,attributes:Sr(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:null==(e=t.spanContext)?void 0:e.traceFlags,traceId:r.encodeOptionalSpanContext(null==(i=t.spanContext)?void 0:i.traceId),spanId:r.encodeOptionalSpanContext(null==(n=t.spanContext)?void 0:n.spanId)}}(t,r))),schemaUrl:i[0].instrumentationScope.schemaUrl}})),schemaUrl:n.schemaUrl}}))}function Sr(t){return Object.keys(t).map((r=>gr(r,t[r])))}var Or=t=>null!==t&&"object"==typeof t&&"function"==typeof t.then;class Ar{static FromAttributeList(t,r){var e=new Ar({},r);return e.X=Tr(t),e.G=t.filter((t=>{var[r,e]=t;return Or(e)})).length>0,e}constructor(t,r){var e;this.X=void 0,this.G=!1,this.J=void 0,this.K=void 0;var i=null!==(e=t.attributes)&&void 0!==e?e:{};this.X=Object.entries(i).map((t=>{var[r,e]=t;return Or(e)&&(this.G=!0),[r,e]})),this.X=Tr(this.X),this.J=function(t){if("string"==typeof t||void 0===t)return t;return void bt.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}(null==r?void 0:r.schemaUrl)}get asyncAttributesPending(){return this.G}waitForAsyncAttributes(){var t=this;return r((function*(){if(t.asyncAttributesPending){for(var r=0;r<t.X.length;r++){var[e,i]=t.X[r];t.X[r]=[e,Or(i)?yield i:i]}t.G=!1}}))()}get attributes(){if(this.asyncAttributesPending&&bt.error("Accessing resource attributes before async attributes settled"),this.K)return this.K;var t={};for(var[r,e]of this.X){var i;if(Or(e))bt.debug("Unsettled resource attribute "+r+" skipped");else if(null!=e)null!==(i=t[r])&&void 0!==i||(t[r]=e)}return this.G||(this.K=t),t}getRawAttributes(){return this.X}get schemaUrl(){return this.J}merge(t){if(null==t)return this;var r=function(t,r){var e=null==t?void 0:t.schemaUrl,i=null==r?void 0:r.schemaUrl,n=void 0===e||""===e,o=void 0===i||""===i;if(n)return i;if(o)return e;if(e===i)return e;return void bt.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',e,i)}(this,t),e=r?{schemaUrl:r}:void 0;return Ar.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],e)}}function Lr(t,r){return Ar.FromAttributeList(Object.entries(t),r)}function Tr(t){return t.map((t=>{var[r,e]=t;return Or(e)?[r,e.catch((t=>{bt.debug("promise rejection for resource attribute: %s - %s",r,t)}))]:[r,e]}))}var Er={serializeRequest:t=>{var r=wr(t,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(r))},deserializeResponse:t=>{if(0===t.length)return{};var r=new TextDecoder;return JSON.parse(r.decode(t))}};class xr{constructor(t){this.D=void 0,this.D=t}retry(t,r,e){return new Promise(((i,n)=>{setTimeout((()=>{this.D.send(t,r).then(i,n)}),e)}))}send(t,e){var i=this;return r((function*(){for(var r=Date.now()+e,n=yield i.D.send(t,e),o=5,s=1e3;"retryable"===n.status&&o>0;){var u;o--;var a=Math.max(Math.min(s,5e3)+(.4*Math.random()-.2),0);s*=1.5;var c=null!==(u=n.retryInMillis)&&void 0!==u?u:a,l=r-Date.now();if(c>l)return n;n=yield i.retry(t,l,c)}return n}))()}shutdown(){return this.D.shutdown()}}function Rr(t){return new xr(t.transport)}function Pr(t){return[429,502,503,504].includes(t)}function Nr(t){if(null!=t){var r=Number.parseInt(t,10);if(Number.isInteger(r))return r>0?1e3*r:-1;var e=new Date(t).getTime()-Date.now();return e>=0?e:0}}class Cr{constructor(t){this.W=void 0,this.W=t}send(t,e){var i=this;return r((function*(){var r=yield i.W.headers();return yield new Promise((n=>{var o=new XMLHttpRequest;o.timeout=e,o.open("POST",i.W.url),Object.entries(r).forEach((t=>{var[r,e]=t;o.setRequestHeader(r,e)})),o.ontimeout=t=>{n({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=()=>{o.status>=200&&o.status<=299?(bt.debug("XHR success"),n({status:"success"})):o.status&&Pr(o.status)?n({status:"retryable",retryInMillis:Nr(o.getResponseHeader("Retry-After"))}):0!==o.status&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},o.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},o.send(t)}))}))()}shutdown(){}}class Ir{constructor(t){this.$=void 0,this.$=t}send(t){var e=this;return r((function*(){var r=(yield e.$.headers())["Content-Type"];return new Promise((i=>{navigator.sendBeacon(e.$.url,new Blob([t],{type:r}))?(bt.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})}))}))()}shutdown(){}}class Mr{constructor(t){this.W=void 0,this.W=t}send(t,e){var i=this;return r((function*(){var r=new AbortController,n=setTimeout((()=>r.abort()),e);try{var o,s=!!globalThis.location,u=new URL(i.W.url),a=yield fetch(u.href,{method:"POST",headers:yield i.W.headers(),body:t,signal:r.signal,keepalive:s,mode:s?(null==(o=globalThis.location)?void 0:o.origin)===u.origin?"same-origin":"cors":"no-cors"});return a.status>=200&&a.status<=299?(bt.debug("response success"),{status:"success"}):Pr(a.status)?{status:"retryable",retryInMillis:Nr(a.headers.get("Retry-After"))}:{status:"failure",error:new Error("Fetch request failed with non-retryable status")}}catch(t){return"AbortError"===(null==t?void 0:t.name)?{status:"failure",error:new Error("Fetch request timed out",{cause:t})}:{status:"failure",error:new Error("Fetch request errored",{cause:t})}}finally{clearTimeout(n)}}))()}shutdown(){}}function Ur(t,r){return cr(t,r,Rr({transport:(e=t,new Cr(e))}));var e}function Br(t,r){return cr(t,r,Rr({transport:(e=t,new Mr(e))}));var e}function Dr(t,r){return cr(t,r,Rr({transport:(e={url:t.url,headers:t.headers},new Ir(e))}));var e}function _r(t,i,n){return r((function*(){var r=e({},yield n()),o={};return null!=i&&Object.assign(o,yield i()),null!=t&&Object.assign(o,function(t){var r={};return Object.entries(null!=t?t:{}).forEach((t=>{var[e,i]=t;void 0!==i?r[e]=String(i):bt.warn('Header "'+e+'" has invalid value ('+i+") and will be ignored")})),r}(yield t())),Object.assign(o,r)}))}function kr(t){if(null!=t)try{var r,e=null==(r=globalThis.location)?void 0:r.href;return new URL(t,e).href}catch(r){throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function Fr(t,r,i){var n,o;return e({},function(t,r,e){var i,n,o,s,u,a;return{timeoutMillis:y(null!==(i=null!==(n=t.timeoutMillis)&&void 0!==n?n:r.timeoutMillis)&&void 0!==i?i:e.timeoutMillis),concurrencyLimit:null!==(o=null!==(s=t.concurrencyLimit)&&void 0!==s?s:r.concurrencyLimit)&&void 0!==o?o:e.concurrencyLimit,compression:null!==(u=null!==(a=t.compression)&&void 0!==a?a:r.compression)&&void 0!==u?u:e.compression}}(t,r,i),{headers:_r(t.headers,r.headers,i.headers),url:null!==(n=null!==(o=kr(t.url))&&void 0!==o?o:r.url)&&void 0!==n?n:i.url})}function qr(t){return"function"==typeof t.headers?t.headers:function(t){if(null!=t)return r((function*(){return t}))}(t.headers)}function Hr(t,i,n){return Fr({url:t.url,timeoutMillis:t.timeoutMillis,headers:qr(t),concurrencyLimit:t.concurrencyLimit},{},function(t,i){return e({},{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"},{headers:(n=r((function*(){return t})),function(){return n.apply(this,arguments)}),url:"http://localhost:4318/"+i});var n}(n,i))}function zr(t,r,e,i){return(t.headers||"function"!=typeof navigator.sendBeacon?void 0!==globalThis.fetch?Br:Ur:Dr)(Hr(t,e,i),r)}class Vr extends v{constructor(t){void 0===t&&(t={}),super(zr(t,Er,"v1/logs",{"Content-Type":"application/json"}))}}class Xr{set severityText(t){this.Y()||(this.Z=t)}get severityText(){return this.Z}set severityNumber(t){this.Y()||(this.tt=t)}get severityNumber(){return this.tt}set body(t){this.Y()||(this.rt=t)}get body(){return this.rt}get eventName(){return this.et}set eventName(t){this.Y()||(this.et=t)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(t,r,e){this.hrTime=void 0,this.hrTimeObserved=void 0,this.spanContext=void 0,this.resource=void 0,this.instrumentationScope=void 0,this.attributes={},this.Z=void 0,this.tt=void 0,this.rt=void 0,this.et=void 0,this.totalAttributesCount=0,this.it=!1,this.nt=void 0;var{timestamp:i,observedTimestamp:n,eventName:o,severityNumber:s,severityText:u,body:a,attributes:c={},context:l}=e,h=Date.now();if(this.hrTime=Bt(null!=i?i:h),this.hrTimeObserved=Bt(null!=n?n:h),l){var f=pt.getSpanContext(l);f&&at(f)&&(this.spanContext=f)}this.severityNumber=s,this.severityText=u,this.body=a,this.resource=t.resource,this.instrumentationScope=r,this.nt=t.logRecordLimits,this.et=o,this.setAttributes(c)}setAttribute(t,r){return this.Y()||null===r?this:0===t.length?(bt.warn("Invalid attribute key: "+t),this):jt(r)||"object"==typeof r&&!Array.isArray(r)&&Object.keys(r).length>0?(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this.nt.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(1===this.droppedAttributesCount&&bt.warn("Dropping extra attributes."),this):(jt(r)?this.attributes[t]=this.ot(r):this.attributes[t]=r,this)):(bt.warn("Invalid attribute value set for key: "+t),this)}setAttributes(t){for(var[r,e]of Object.entries(t))this.setAttribute(r,e);return this}setBody(t){return this.body=t,this}setEventName(t){return this.eventName=t,this}setSeverityNumber(t){return this.severityNumber=t,this}setSeverityText(t){return this.severityText=t,this}st(){this.it=!0}ot(t){var r=this.nt.attributeValueLengthLimit;return r<=0?(bt.warn("Attribute value limit must be positive, got "+r),t):"string"==typeof t?this.ut(t,r):Array.isArray(t)?t.map((t=>"string"==typeof t?this.ut(t,r):t)):t}ut(t,r){return t.length<=r?t:t.substring(0,r)}Y(){return this.it&&bt.warn("Can not execute the operation on emitted log record"),this.it}}class Gr{constructor(t,r){this.instrumentationScope=void 0,this.ct=void 0,this.instrumentationScope=t,this.ct=r}emit(t){var r=t.context||mt.active(),i=new Xr(this.ct,this.instrumentationScope,e({context:r},t));this.ct.activeProcessor.onEmit(i,r),i.st()}}class Jr{forceFlush(){return Promise.resolve()}onEmit(t,r){}shutdown(){return Promise.resolve()}}class Kr{constructor(t,r){this.processors=void 0,this.forceFlushTimeoutMillis=void 0,this.processors=t,this.forceFlushTimeoutMillis=r}forceFlush(){var t=this;return r((function*(){var r=t.forceFlushTimeoutMillis;yield Promise.all(t.processors.map((t=>ir(t.forceFlush(),r))))}))()}onEmit(t,r){this.processors.forEach((e=>e.onEmit(t,r)))}shutdown(){var t=this;return r((function*(){yield Promise.all(t.processors.map((t=>t.shutdown())))}))()}}class Wr{constructor(t,r,e,i){this.resource=void 0,this.forceFlushTimeoutMillis=void 0,this.logRecordLimits=void 0,this.processors=void 0,this.loggers=new Map,this.activeProcessor=void 0,this.registeredLogRecordProcessors=[],this.resource=t,this.forceFlushTimeoutMillis=r,this.logRecordLimits=e,this.processors=i,i.length>0?(this.registeredLogRecordProcessors=i,this.activeProcessor=new Kr(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new Jr}}class $r{constructor(t){var r,e,i;void 0===t&&(t={}),this.lt=void 0,this.ct=void 0;var n,o,s,u,a,c,l,h=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];for(var i=r.shift(),n=new WeakMap;r.length>0;)i=$t(i,r.shift(),0,n);return i}({},{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},includeTraceContext:!0},t),f=null!==(r=t.resource)&&void 0!==r?r:Lr({"service.name":"unknown_service",[Et]:Pt[Et],[xt]:Pt[xt],[Rt]:Pt[Rt]});this.ct=new Wr(f,h.forceFlushTimeoutMillis,(n=h.logRecordLimits,{attributeCountLimit:null!==(o=null!==(s=null!==(u=n.attributeCountLimit)&&void 0!==u?u:void 0)&&void 0!==s?s:void 0)&&void 0!==o?o:128,attributeValueLengthLimit:null!==(a=null!==(c=null!==(l=n.attributeValueLengthLimit)&&void 0!==l?l:void 0)&&void 0!==c?c:void 0)&&void 0!==a?a:1/0}),null!==(e=null==(i=t)?void 0:i.processors)&&void 0!==e?e:[]),this.lt=new or(this.ht,this)}getLogger(t,r,e){if(this.lt.isCalled)return bt.warn("A shutdown LoggerProvider cannot provide a Logger"),n;t||bt.warn("Logger requested without instrumentation scope name.");var i=t||"unknown",o=i+"@"+(r||"")+":"+((null==e?void 0:e.schemaUrl)||"");return this.ct.loggers.has(o)||this.ct.loggers.set(o,new Gr({name:i,version:r,schemaUrl:null==e?void 0:e.schemaUrl},this.ct)),this.ct.loggers.get(o)}forceFlush(){return this.lt.isCalled?(bt.warn("invalid attempt to force flush after LoggerProvider shutdown"),this.lt.promise):this.ct.activeProcessor.forceFlush()}shutdown(){return this.lt.isCalled?(bt.warn("shutdown may only be called once per LoggerProvider"),this.lt.promise):this.lt.call()}ht(){return this.ct.activeProcessor.shutdown()}}class Qr{constructor(t,r){var e,i,n,o,s,u,a,c;this.ft=void 0,this.vt=void 0,this.dt=void 0,this.yt=void 0,this.bt=void 0,this.gt=!1,this.wt=[],this.jt=void 0,this.lt=void 0,this.ft=t,this.vt=null!==(e=null!==(i=null==r?void 0:r.maxExportBatchSize)&&void 0!==i?i:void 0)&&void 0!==e?e:512,this.dt=null!==(n=null!==(o=null==r?void 0:r.maxQueueSize)&&void 0!==o?o:void 0)&&void 0!==n?n:2048,this.yt=null!==(s=null!==(u=null==r?void 0:r.scheduledDelayMillis)&&void 0!==u?u:void 0)&&void 0!==s?s:5e3,this.bt=null!==(a=null!==(c=null==r?void 0:r.exportTimeoutMillis)&&void 0!==c?c:void 0)&&void 0!==a?a:3e4,this.lt=new or(this.ht,this),this.vt>this.dt&&(bt.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this.vt=this.dt)}onEmit(t){this.lt.isCalled||this.St(t)}forceFlush(){return this.lt.isCalled?this.lt.promise:this.Ot()}shutdown(){return this.lt.call()}ht(){var t=this;return r((function*(){t.onShutdown(),yield t.Ot(),yield t.ft.shutdown()}))()}St(t){this.wt.length>=this.dt||(this.wt.push(t),this.At())}Ot(){return new Promise(((t,r)=>{for(var e=[],i=Math.ceil(this.wt.length/this.vt),n=0;n<i;n++)e.push(this.Lt());Promise.all(e).then((()=>{t()})).catch(r)}))}Lt(){return this.Tt(),0===this.wt.length?Promise.resolve():new Promise(((t,r)=>{ir(this.B(this.wt.splice(0,this.vt)),this.bt).then((()=>t())).catch(r)}))}At(){if(!this.gt){var t=()=>{this.gt=!0,this.Lt().then((()=>{this.gt=!1,this.wt.length>0&&(this.Tt(),this.At())})).catch((t=>{this.gt=!1,At(t)}))};if(this.wt.length>=this.vt)return t();void 0===this.jt&&(this.jt=setTimeout((()=>t()),this.yt),"number"!=typeof this.jt&&this.jt.unref())}}Tt(){void 0!==this.jt&&(clearTimeout(this.jt),this.jt=void 0)}B(t){var r=()=>sr.B(this.ft,t).then((t=>{var r;t.code!==Lt.SUCCESS&&At(null!==(r=t.error)&&void 0!==r?r:new Error("BatchLogRecordProcessor: log record export failed (status "+t+")"))})).catch(At),e=t.map((t=>t.resource)).filter((t=>t.asyncAttributesPending));return 0===e.length?r():Promise.all(e.map((t=>null==t.waitForAsyncAttributes?void 0:t.waitForAsyncAttributes()))).then(r,At)}}class Yr extends Qr{constructor(t,r){super(t,r),this.Et=void 0,this.xt=void 0,this.Rt(r)}onShutdown(){"undefined"!=typeof document&&(this.Et&&document.removeEventListener("visibilitychange",this.Et),this.xt&&document.removeEventListener("pagehide",this.xt))}Rt(t){!0!==(null==t?void 0:t.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this.Et=()=>{"hidden"===document.visibilityState&&this.forceFlush()},this.xt=()=>{this.forceFlush()},document.addEventListener("visibilitychange",this.Et),document.addEventListener("pagehide",this.xt))}}var Zr="undefined"!=typeof window?window:void 0,te="undefined"!=typeof globalThis?globalThis:Zr;"undefined"==typeof self&&(te.self=te),"undefined"==typeof File&&(te.File=function(){});var re=null==te?void 0:te.navigator;null==te||te.document,null==te||te.location,null==te||te.fetch,null!=te&&te.XMLHttpRequest&&"withCredentials"in new te.XMLHttpRequest&&te.XMLHttpRequest,null==te||te.AbortController,null==re||re.userAgent;var ee=null!=Zr?Zr:{},ie=Array.isArray,ne=Object.prototype.toString,oe=ie||function(t){return"[object Array]"===ne.call(t)},se=t=>t===Object(t)&&!oe(t),ue=1e4,ae=function(t,r,e,i,n){for(var o in void 0===r&&(r=""),void 0===e&&(e={}),void 0===i&&(i=50),void 0===n&&(n=ue),t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=t[o],u=r?r+"."+o:o;if(se(s))ae(s,u,e,i,n);else{if(i-=1,n-=s.toString().length,n-=u.length,i<=0||n<=0)return void(e.attributes_truncated=!0);e[u]=s}}return e},ce={log:"INFO",warn:"WARNING",error:"ERROR",debug:"DEBUG",info:"INFO"};ee.__PosthogExtensions__=ee.__PosthogExtensions__||{},ee.__PosthogExtensions__.logs={initializeLogs:t=>{(t=>{var r={"service.name":"posthog-browser-logs",host:ee.location.host};if(t.sessionManager){var{sessionId:i,windowId:n}=t.sessionManager.checkAndGetSessionAndWindowId(!0);r=e({},r,{"session.id":i,"window.id":n})}f.setGlobalLoggerProvider(new $r({resource:Lr(r),processors:[new Yr(new Vr({url:t.config.api_host+"/i/v1/logs?token="+t.config.token}))]}))})(t);var r=f.getLogger("console"),i={};if(t.sessionManager){var{sessionStartTimestamp:n,lastActivityTimestamp:o}=t.sessionManager.checkAndGetSessionAndWindowId(!0);i={sessionStartTimestamp:n.toString(),lastActivityTimestamp:o.toString()}}var s=function(n){var o=(t,r)=>r instanceof Error?e({},r,{name:r.name,message:r.message,stack:r.stack}):r,s=ee.console[n];ee.console[n]=(s=>function(){for(var u=arguments.length,a=new Array(u),c=0;c<u;c++)a[c]=arguments[c];if(a.length>0){var l=a.map((t=>JSON.stringify(t,o))).join(" ");l.length>ue&&(l=l.slice(0,ue)+"...",i.body_truncated="true"),r.emit({severityText:ce[n],body:l,attributes:e({"log.source":"console."+n,distinct_id:t.get_distinct_id(),"location.href":ee.location.href},i,se(a[0])?ae(a[0]):{})}),s.apply(ee.console,a)}})(s)};for(var u of["debug","log","warn","error","info"])s(u)}}}();
2
2
  //# sourceMappingURL=logs.js.map