const t=[];for(let r=0;r<256;++r)t.push((r+256).toString(16).slice(1));let r;const o=new Uint8Array(16);var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function e(e,u,d){if(n.randomUUID&&!u&&!e)return n.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,u){if((d=d||0)<0||d+16>u.length)throw new RangeError(`UUID byte range ${d}:${d+15} is out of buffer bounds`);for(let t=0;t<16;++t)u[d+t]=a[t];return u}return function(r,o=0){return(t[r[o+0]]+t[r[o+1]]+t[r[o+2]]+t[r[o+3]]+"-"+t[r[o+4]]+t[r[o+5]]+"-"+t[r[o+6]]+t[r[o+7]]+"-"+t[r[o+8]]+t[r[o+9]]+"-"+t[r[o+10]]+t[r[o+11]]+t[r[o+12]]+t[r[o+13]]+t[r[o+14]]+t[r[o+15]]).toLowerCase()}(a)}export{e as t}; //# sourceMappingURL=chunk.v4_D2VNBPfk.esm.js.map