cbff0c90b894090ca3c8412e84d090e8626e0efcb70d6d4d1adf191e026024e1.json 2.8 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = rng;\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}","map":{"version":3,"names":["Object","defineProperty","exports","value","default","rng","getRandomValues","rnds8","Uint8Array","crypto","bind","Error"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/commonjs-browser/rng.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = rng;\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\n\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}"],"mappings":"AAAA,YAAY;;AAEZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAC3CC,KAAK,EAAE;AACT,CAAC,CAAC;AACFD,OAAO,CAACE,OAAO,GAAGC,GAAG;AACrB;AACA;AACA;AACA,IAAIC,eAAe;AACnB,MAAMC,KAAK,GAAG,IAAIC,UAAU,CAAC,EAAE,CAAC;AAEhC,SAASH,GAAGA,CAAA,EAAG;EACb;EACA,IAAI,CAACC,eAAe,EAAE;IACpB;IACAA,eAAe,GAAG,OAAOG,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACH,eAAe,IAAIG,MAAM,CAACH,eAAe,CAACI,IAAI,CAACD,MAAM,CAAC;IAEhH,IAAI,CAACH,eAAe,EAAE;MACpB,MAAM,IAAIK,KAAK,CAAC,0GAA0G,CAAC;IAC7H;EACF;EAEA,OAAOL,eAAe,CAACC,KAAK,CAAC;AAC/B","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}