Module 697043

620 characters · in 24159.16f64d32f019fb82.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{MI:()=>o,TC:()=>s,kM:()=>a});var r=n(435819),i=n(834932);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){let n=function(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),a=(0,r.yD)(t);if(!n||!n.traceId)return{traceId:(0,i.el)(),spanId:(0,i.ZF)()};let{traceId:s,parentSpanId:l,parentSampled:c}=n;return{traceId:s,parentSpanId:l,spanId:(0,i.ZF)(),sampled:c,dsc:a||{}}}function s(e=(0,i.el)(),t=(0,i.ZF)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}}