Module 132500

834 characters · in 61190.6e3c9ad6b74a9e5b.js
Dependencies
Source Raw
function(t,e,r){"use strict";let o;r.d(e,{A:()=>i});let n="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),p=new Uint8Array(16),a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));let i=function(t,e,r){if(n&&!e&&!t)return n();let i=(t=t||{}).random||(t.rng||function(){if(!o&&!(o="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(p)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=i[t];return e}return function(t,e=0){return a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]}(i)}}