import{n as e}from"./chunk-DR8-3Aex.js";import{B as t,F as n,M as r,R as i,S as a,V as o,d as s}from"./paths-Ci1iwL5Y.js";import{a as c,n as l,t as u}from"./analytics-DqMQntaB.js";import{i as d,t as f}from"./datadog-YsyhnDmr.js";function p(){if(o(`datadog`))return!1;if(y!==void 0)return y;try{return s(v)}catch{return!1}}function m(e,t){let r=i(e);if(r===0)return;let a=r===null?t:{...t,sample_rate:r};p()&&d(e,c(a)),n(e,a)}function h(e,t){return m(e,t),Promise.resolve()}function g(){y=s(v)}function _(){u({logEvent:m,logEventAsync:h})}var v,y,b=e((()=>{f(),r(),a(),l(),t(),v=`tengu_log_datadog_events`}));export{g as n,_ as r,b as t};