@azure/synapse-monitoring 1.0.0-alpha.20230228.1 → 1.0.0-alpha.20230331.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var os = require('os');
13
13
  var require$$1 = require('util');
14
- require('crypto');
14
+ var crypto = require('crypto');
15
15
  var require$$0$1 = require('stream');
16
16
  var require$$1$1 = require('path');
17
17
  var http$1 = require('http');
@@ -1612,11 +1612,11 @@ const logger$1 = createClientLogger("core-rest-pipeline");
1612
1612
 
1613
1613
  // Copyright (c) Microsoft Corporation.
1614
1614
  // Licensed under the MIT license.
1615
- var _a;
1615
+ var _a$1;
1616
1616
  /**
1617
1617
  * A constant that indicates whether the environment the code is running is Node.JS.
1618
1618
  */
1619
- const isNode = typeof process !== "undefined" && Boolean(process.version) && Boolean((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);
1619
+ const isNode = typeof process !== "undefined" && Boolean(process.version) && Boolean((_a$1 = process.versions) === null || _a$1 === void 0 ? void 0 : _a$1.node);
1620
1620
 
1621
1621
  // Copyright (c) Microsoft Corporation.
1622
1622
  // Licensed under the MIT license.
@@ -1924,6 +1924,22 @@ function getErrorMessage(e) {
1924
1924
  }
1925
1925
  }
1926
1926
 
1927
+ // Copyright (c) Microsoft Corporation.
1928
+ // Licensed under the MIT license.
1929
+ var _a;
1930
+ // NOTE: This is a workaround until we can use `globalThis.crypto.randomUUID` in Node.js 19+.
1931
+ const uuidFunction = typeof ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) === "function"
1932
+ ? globalThis.crypto.randomUUID.bind(globalThis.crypto)
1933
+ : crypto.randomUUID;
1934
+ /**
1935
+ * Generated Universally Unique Identifier
1936
+ *
1937
+ * @returns RFC4122 v4 UUID.
1938
+ */
1939
+ function randomUUID() {
1940
+ return uuidFunction();
1941
+ }
1942
+
1927
1943
  // Copyright (c) Microsoft Corporation.
1928
1944
  const RedactedString = "REDACTED";
1929
1945
  // Make sure this list is up-to-date with the one under core/logger/Readme#Keyconcepts
@@ -2161,7 +2177,7 @@ function setPlatformSpecificData(map) {
2161
2177
 
2162
2178
  // Copyright (c) Microsoft Corporation.
2163
2179
  // Licensed under the MIT license.
2164
- const SDK_VERSION = "1.10.2";
2180
+ const SDK_VERSION = "1.10.3";
2165
2181
  const DEFAULT_RETRY_POLICY_COUNT = 3;
2166
2182
 
2167
2183
  // Copyright (c) Microsoft Corporation.
@@ -17633,498 +17649,6 @@ function createDefaultHttpClient() {
17633
17649
  return createNodeHttpClient();
17634
17650
  }
17635
17651
 
17636
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
17637
- // require the crypto API and do not support built-in fallback to lower quality random number
17638
- // generators (like Math.random()).
17639
- var getRandomValues;
17640
- var rnds8 = new Uint8Array(16);
17641
- function rng() {
17642
- // lazy load so that environments that need to polyfill have a chance to do so
17643
- if (!getRandomValues) {
17644
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
17645
- // find the complete implementation of crypto (msCrypto) on IE11.
17646
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
17647
-
17648
- if (!getRandomValues) {
17649
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
17650
- }
17651
- }
17652
-
17653
- return getRandomValues(rnds8);
17654
- }
17655
-
17656
- var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
17657
-
17658
- function validate(uuid) {
17659
- return typeof uuid === 'string' && REGEX.test(uuid);
17660
- }
17661
-
17662
- /**
17663
- * Convert array of 16 byte values to UUID string format of the form:
17664
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
17665
- */
17666
-
17667
- var byteToHex = [];
17668
-
17669
- for (var i = 0; i < 256; ++i) {
17670
- byteToHex.push((i + 0x100).toString(16).substr(1));
17671
- }
17672
-
17673
- function stringify(arr) {
17674
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
17675
- // Note: Be careful editing this code! It's been tuned for performance
17676
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
17677
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
17678
- // of the following:
17679
- // - One or more input array values don't map to a hex octet (leading to
17680
- // "undefined" in the uuid)
17681
- // - Invalid input values for the RFC `version` or `variant` fields
17682
-
17683
- if (!validate(uuid)) {
17684
- throw TypeError('Stringified UUID is invalid');
17685
- }
17686
-
17687
- return uuid;
17688
- }
17689
-
17690
- function parse$1(uuid) {
17691
- if (!validate(uuid)) {
17692
- throw TypeError('Invalid UUID');
17693
- }
17694
-
17695
- var v;
17696
- var arr = new Uint8Array(16); // Parse ########-....-....-....-............
17697
-
17698
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
17699
- arr[1] = v >>> 16 & 0xff;
17700
- arr[2] = v >>> 8 & 0xff;
17701
- arr[3] = v & 0xff; // Parse ........-####-....-....-............
17702
-
17703
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
17704
- arr[5] = v & 0xff; // Parse ........-....-####-....-............
17705
-
17706
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
17707
- arr[7] = v & 0xff; // Parse ........-....-....-####-............
17708
-
17709
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
17710
- arr[9] = v & 0xff; // Parse ........-....-....-....-############
17711
- // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
17712
-
17713
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
17714
- arr[11] = v / 0x100000000 & 0xff;
17715
- arr[12] = v >>> 24 & 0xff;
17716
- arr[13] = v >>> 16 & 0xff;
17717
- arr[14] = v >>> 8 & 0xff;
17718
- arr[15] = v & 0xff;
17719
- return arr;
17720
- }
17721
-
17722
- function stringToBytes(str) {
17723
- str = unescape(encodeURIComponent(str)); // UTF8 escape
17724
-
17725
- var bytes = [];
17726
-
17727
- for (var i = 0; i < str.length; ++i) {
17728
- bytes.push(str.charCodeAt(i));
17729
- }
17730
-
17731
- return bytes;
17732
- }
17733
-
17734
- var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
17735
- var URL$1 = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
17736
- function v35 (name, version, hashfunc) {
17737
- function generateUUID(value, namespace, buf, offset) {
17738
- if (typeof value === 'string') {
17739
- value = stringToBytes(value);
17740
- }
17741
-
17742
- if (typeof namespace === 'string') {
17743
- namespace = parse$1(namespace);
17744
- }
17745
-
17746
- if (namespace.length !== 16) {
17747
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
17748
- } // Compute hash of namespace and value, Per 4.3
17749
- // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
17750
- // hashfunc([...namespace, ... value])`
17751
-
17752
-
17753
- var bytes = new Uint8Array(16 + value.length);
17754
- bytes.set(namespace);
17755
- bytes.set(value, namespace.length);
17756
- bytes = hashfunc(bytes);
17757
- bytes[6] = bytes[6] & 0x0f | version;
17758
- bytes[8] = bytes[8] & 0x3f | 0x80;
17759
-
17760
- if (buf) {
17761
- offset = offset || 0;
17762
-
17763
- for (var i = 0; i < 16; ++i) {
17764
- buf[offset + i] = bytes[i];
17765
- }
17766
-
17767
- return buf;
17768
- }
17769
-
17770
- return stringify(bytes);
17771
- } // Function#name is not settable on some platforms (#270)
17772
-
17773
-
17774
- try {
17775
- generateUUID.name = name; // eslint-disable-next-line no-empty
17776
- } catch (err) {} // For CommonJS default export support
17777
-
17778
-
17779
- generateUUID.DNS = DNS;
17780
- generateUUID.URL = URL$1;
17781
- return generateUUID;
17782
- }
17783
-
17784
- /*
17785
- * Browser-compatible JavaScript MD5
17786
- *
17787
- * Modification of JavaScript MD5
17788
- * https://github.com/blueimp/JavaScript-MD5
17789
- *
17790
- * Copyright 2011, Sebastian Tschan
17791
- * https://blueimp.net
17792
- *
17793
- * Licensed under the MIT license:
17794
- * https://opensource.org/licenses/MIT
17795
- *
17796
- * Based on
17797
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
17798
- * Digest Algorithm, as defined in RFC 1321.
17799
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
17800
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
17801
- * Distributed under the BSD License
17802
- * See http://pajhome.org.uk/crypt/md5 for more info.
17803
- */
17804
- function md5(bytes) {
17805
- if (typeof bytes === 'string') {
17806
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
17807
-
17808
- bytes = new Uint8Array(msg.length);
17809
-
17810
- for (var i = 0; i < msg.length; ++i) {
17811
- bytes[i] = msg.charCodeAt(i);
17812
- }
17813
- }
17814
-
17815
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
17816
- }
17817
- /*
17818
- * Convert an array of little-endian words to an array of bytes
17819
- */
17820
-
17821
-
17822
- function md5ToHexEncodedArray(input) {
17823
- var output = [];
17824
- var length32 = input.length * 32;
17825
- var hexTab = '0123456789abcdef';
17826
-
17827
- for (var i = 0; i < length32; i += 8) {
17828
- var x = input[i >> 5] >>> i % 32 & 0xff;
17829
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
17830
- output.push(hex);
17831
- }
17832
-
17833
- return output;
17834
- }
17835
- /**
17836
- * Calculate output length with padding and bit length
17837
- */
17838
-
17839
-
17840
- function getOutputLength(inputLength8) {
17841
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
17842
- }
17843
- /*
17844
- * Calculate the MD5 of an array of little-endian words, and a bit length.
17845
- */
17846
-
17847
-
17848
- function wordsToMd5(x, len) {
17849
- /* append padding */
17850
- x[len >> 5] |= 0x80 << len % 32;
17851
- x[getOutputLength(len) - 1] = len;
17852
- var a = 1732584193;
17853
- var b = -271733879;
17854
- var c = -1732584194;
17855
- var d = 271733878;
17856
-
17857
- for (var i = 0; i < x.length; i += 16) {
17858
- var olda = a;
17859
- var oldb = b;
17860
- var oldc = c;
17861
- var oldd = d;
17862
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
17863
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
17864
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
17865
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
17866
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
17867
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
17868
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
17869
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
17870
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
17871
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
17872
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
17873
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
17874
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
17875
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
17876
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
17877
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
17878
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
17879
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
17880
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
17881
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
17882
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
17883
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
17884
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
17885
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
17886
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
17887
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
17888
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
17889
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
17890
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
17891
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
17892
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
17893
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
17894
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
17895
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
17896
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
17897
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
17898
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
17899
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
17900
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
17901
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
17902
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
17903
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
17904
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
17905
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
17906
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
17907
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
17908
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
17909
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
17910
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
17911
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
17912
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
17913
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
17914
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
17915
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
17916
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
17917
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
17918
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
17919
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
17920
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
17921
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
17922
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
17923
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
17924
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
17925
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
17926
- a = safeAdd(a, olda);
17927
- b = safeAdd(b, oldb);
17928
- c = safeAdd(c, oldc);
17929
- d = safeAdd(d, oldd);
17930
- }
17931
-
17932
- return [a, b, c, d];
17933
- }
17934
- /*
17935
- * Convert an array bytes to an array of little-endian words
17936
- * Characters >255 have their high-byte silently ignored.
17937
- */
17938
-
17939
-
17940
- function bytesToWords(input) {
17941
- if (input.length === 0) {
17942
- return [];
17943
- }
17944
-
17945
- var length8 = input.length * 8;
17946
- var output = new Uint32Array(getOutputLength(length8));
17947
-
17948
- for (var i = 0; i < length8; i += 8) {
17949
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
17950
- }
17951
-
17952
- return output;
17953
- }
17954
- /*
17955
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
17956
- * to work around bugs in some JS interpreters.
17957
- */
17958
-
17959
-
17960
- function safeAdd(x, y) {
17961
- var lsw = (x & 0xffff) + (y & 0xffff);
17962
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
17963
- return msw << 16 | lsw & 0xffff;
17964
- }
17965
- /*
17966
- * Bitwise rotate a 32-bit number to the left.
17967
- */
17968
-
17969
-
17970
- function bitRotateLeft(num, cnt) {
17971
- return num << cnt | num >>> 32 - cnt;
17972
- }
17973
- /*
17974
- * These functions implement the four basic operations the algorithm uses.
17975
- */
17976
-
17977
-
17978
- function md5cmn(q, a, b, x, s, t) {
17979
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
17980
- }
17981
-
17982
- function md5ff(a, b, c, d, x, s, t) {
17983
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
17984
- }
17985
-
17986
- function md5gg(a, b, c, d, x, s, t) {
17987
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
17988
- }
17989
-
17990
- function md5hh(a, b, c, d, x, s, t) {
17991
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
17992
- }
17993
-
17994
- function md5ii(a, b, c, d, x, s, t) {
17995
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
17996
- }
17997
-
17998
- v35('v3', 0x30, md5);
17999
-
18000
- function v4(options, buf, offset) {
18001
- options = options || {};
18002
- var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
18003
-
18004
- rnds[6] = rnds[6] & 0x0f | 0x40;
18005
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
18006
-
18007
- if (buf) {
18008
- offset = offset || 0;
18009
-
18010
- for (var i = 0; i < 16; ++i) {
18011
- buf[offset + i] = rnds[i];
18012
- }
18013
-
18014
- return buf;
18015
- }
18016
-
18017
- return stringify(rnds);
18018
- }
18019
-
18020
- // Adapted from Chris Veness' SHA1 code at
18021
- // http://www.movable-type.co.uk/scripts/sha1.html
18022
- function f(s, x, y, z) {
18023
- switch (s) {
18024
- case 0:
18025
- return x & y ^ ~x & z;
18026
-
18027
- case 1:
18028
- return x ^ y ^ z;
18029
-
18030
- case 2:
18031
- return x & y ^ x & z ^ y & z;
18032
-
18033
- case 3:
18034
- return x ^ y ^ z;
18035
- }
18036
- }
18037
-
18038
- function ROTL(x, n) {
18039
- return x << n | x >>> 32 - n;
18040
- }
18041
-
18042
- function sha1(bytes) {
18043
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
18044
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
18045
-
18046
- if (typeof bytes === 'string') {
18047
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
18048
-
18049
- bytes = [];
18050
-
18051
- for (var i = 0; i < msg.length; ++i) {
18052
- bytes.push(msg.charCodeAt(i));
18053
- }
18054
- } else if (!Array.isArray(bytes)) {
18055
- // Convert Array-like to Array
18056
- bytes = Array.prototype.slice.call(bytes);
18057
- }
18058
-
18059
- bytes.push(0x80);
18060
- var l = bytes.length / 4 + 2;
18061
- var N = Math.ceil(l / 16);
18062
- var M = new Array(N);
18063
-
18064
- for (var _i = 0; _i < N; ++_i) {
18065
- var arr = new Uint32Array(16);
18066
-
18067
- for (var j = 0; j < 16; ++j) {
18068
- arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
18069
- }
18070
-
18071
- M[_i] = arr;
18072
- }
18073
-
18074
- M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
18075
- M[N - 1][14] = Math.floor(M[N - 1][14]);
18076
- M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
18077
-
18078
- for (var _i2 = 0; _i2 < N; ++_i2) {
18079
- var W = new Uint32Array(80);
18080
-
18081
- for (var t = 0; t < 16; ++t) {
18082
- W[t] = M[_i2][t];
18083
- }
18084
-
18085
- for (var _t = 16; _t < 80; ++_t) {
18086
- W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
18087
- }
18088
-
18089
- var a = H[0];
18090
- var b = H[1];
18091
- var c = H[2];
18092
- var d = H[3];
18093
- var e = H[4];
18094
-
18095
- for (var _t2 = 0; _t2 < 80; ++_t2) {
18096
- var s = Math.floor(_t2 / 20);
18097
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
18098
- e = d;
18099
- d = c;
18100
- c = ROTL(b, 30) >>> 0;
18101
- b = a;
18102
- a = T;
18103
- }
18104
-
18105
- H[0] = H[0] + a >>> 0;
18106
- H[1] = H[1] + b >>> 0;
18107
- H[2] = H[2] + c >>> 0;
18108
- H[3] = H[3] + d >>> 0;
18109
- H[4] = H[4] + e >>> 0;
18110
- }
18111
-
18112
- return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
18113
- }
18114
-
18115
- v35('v5', 0x50, sha1);
18116
-
18117
- // Copyright (c) Microsoft Corporation.
18118
- /**
18119
- * Generated Universally Unique Identifier
18120
- *
18121
- * @returns RFC4122 v4 UUID.
18122
- * @internal
18123
- */
18124
- function generateUuid() {
18125
- return v4();
18126
- }
18127
-
18128
17652
  // Copyright (c) Microsoft Corporation.
18129
17653
  class PipelineRequestImpl {
18130
17654
  constructor(options) {
@@ -18143,7 +17667,7 @@ class PipelineRequestImpl {
18143
17667
  this.tracingOptions = options.tracingOptions;
18144
17668
  this.onUploadProgress = options.onUploadProgress;
18145
17669
  this.onDownloadProgress = options.onDownloadProgress;
18146
- this.requestId = options.requestId || generateUuid();
17670
+ this.requestId = options.requestId || randomUUID();
18147
17671
  this.allowInsecureConnection = (_f = options.allowInsecureConnection) !== null && _f !== void 0 ? _f : false;
18148
17672
  this.enableBrowserStreams = (_g = options.enableBrowserStreams) !== null && _g !== void 0 ? _g : false;
18149
17673
  }