vendor: 20,944 bytes, lines 1-523
1;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0304642e-417d-4655-bdb0-e576a87ff6fd",e._sentryDebugIdIdentifier="sentry-dbid-0304642e-417d-4655-bdb0-e576a87ff6fd")}catch(e){}}(); 2 3 var _global = 4 typeof window !== 'undefined' ? 5 window : 6 typeof global !== 'undefined' ? 7 global : 8 typeof globalThis !== 'undefined' ? 9 globalThis : 10 typeof self !== 'undefined' ? 11 self : 12 {}; 13 14 _global.SENTRY_RELEASE={id:"bf8ecb3987fc28ef4f4fa70826513d8bf936c9ad"}; 15(self["webpackChunk_xapp_oc_studio"] = self["webpackChunk_xapp_oc_studio"] || []).push([["vendors-node_modules_aws-crypto_sha256-js_build_module_index_js-node_modules_aws-sign2_index_js"],{ 16 17/***/ "../../node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js" 18/*!**************************************************************************!*\ 19 !*** ../../node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js ***! 20 \**************************************************************************/ 21(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 22 23"use strict"; 24/* harmony export */ __webpack_require__.d(__webpack_exports__, { 25/* harmony export */ RawSha256: () => (/* binding */ RawSha256) 26/* harmony export */ }); 27/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-js/build/module/constants.js"); 28 29/** 30 * @internal 31 */ 32var RawSha256 = /** @class */ (function () { 33 function RawSha256() { 34 this.state = Int32Array.from(_constants__WEBPACK_IMPORTED_MODULE_0__.INIT); 35 this.temp = new Int32Array(64); 36 this.buffer = new Uint8Array(64); 37 this.bufferLength = 0; 38 this.bytesHashed = 0; 39 /** 40 * @internal 41 */ 42 this.finished = false; 43 } 44 RawSha256.prototype.update = function (data) { 45 if (this.finished) { 46 throw new Error("Attempted to update an already finished hash."); 47 } 48 var position = 0; 49 var byteLength = data.byteLength; 50 this.bytesHashed += byteLength; 51 if (this.bytesHashed * 8 > _constants__WEBPACK_IMPORTED_MODULE_0__.MAX_HASHABLE_LENGTH) { 52 throw new Error("Cannot hash more than 2^53 - 1 bits"); 53 } 54 while (byteLength > 0) { 55 this.buffer[this.bufferLength++] = data[position++]; 56 byteLength--; 57 if (this.bufferLength === _constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE) { 58 this.hashBuffer(); 59 this.bufferLength = 0; 60 } 61 } 62 }; 63 RawSha256.prototype.digest = function () { 64 if (!this.finished) { 65 var bitsHashed = this.bytesHashed * 8; 66 var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength); 67 var undecoratedLength = this.bufferLength; 68 bufferView.setUint8(this.bufferLength++, 0x80); 69 // Ensure the final block has enough room for the hashed length 70 if (undecoratedLength % _constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE >= _constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE - 8) { 71 for (var i = this.bufferLength; i < _constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE; i++) { 72 bufferView.setUint8(i, 0); 73 } 74 this.hashBuffer(); 75 this.bufferLength = 0; 76 } 77 for (var i = this.bufferLength; i < _constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE - 8; i++) { 78 bufferView.setUint8(i, 0); 79 } 80 bufferView.setUint32(_constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true); 81 bufferView.setUint32(_constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE - 4, bitsHashed); 82 this.hashBuffer(); 83 this.finished = true; 84 } 85 // The value in state is little-endian rather than big-endian, so flip 86 // each word into a new Uint8Array 87 var out = new Uint8Array(_constants__WEBPACK_IMPORTED_MODULE_0__.DIGEST_LENGTH); 88 for (var i = 0; i < 8; i++) { 89 out[i * 4] = (this.state[i] >>> 24) & 0xff; 90 out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff; 91 out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff; 92 out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff; 93 } 94 return out; 95 }; 96 RawSha256.prototype.hashBuffer = function () { 97 var _a = this, buffer = _a.buffer, state = _a.state; 98 var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7]; 99 for (var i = 0; i < _constants__WEBPACK_IMPORTED_MODULE_0__.BLOCK_SIZE; i++) { 100 if (i < 16) { 101 this.temp[i] = 102 ((buffer[i * 4] & 0xff) << 24) | 103 ((buffer[i * 4 + 1] & 0xff) << 16) | 104 ((buffer[i * 4 + 2] & 0xff) << 8) | 105 (buffer[i * 4 + 3] & 0xff); 106 } 107 else { 108 var u = this.temp[i - 2]; 109 var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10); 110 u = this.temp[i - 15]; 111 var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3); 112 this.temp[i] = 113 ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0); 114 } 115 var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^ 116 ((state4 >>> 11) | (state4 << 21)) ^ 117 ((state4 >>> 25) | (state4 << 7))) + 118 ((state4 & state5) ^ (~state4 & state6))) | 119 0) + 120 ((state7 + ((_constants__WEBPACK_IMPORTED_MODULE_0__.KEY[i] + this.temp[i]) | 0)) | 0)) | 121 0; 122 var t2 = ((((state0 >>> 2) | (state0 << 30)) ^ 123 ((state0 >>> 13) | (state0 << 19)) ^ 124 ((state0 >>> 22) | (state0 << 10))) + 125 ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) | 126 0; 127 state7 = state6; 128 state6 = state5; 129 state5 = state4; 130 state4 = (state3 + t1) | 0; 131 state3 = state2; 132 state2 = state1; 133 state1 = state0; 134 state0 = (t1 + t2) | 0; 135 } 136 state[0] += state0; 137 state[1] += state1; 138 state[2] += state2; 139 state[3] += state3; 140 state[4] += state4; 141 state[5] += state5; 142 state[6] += state6; 143 state[7] += state7; 144 }; 145 return RawSha256; 146}()); 147 148//# sourceMappingURL=RawSha256.js.map 149 150/***/ }, 151 152/***/ "../../node_modules/@aws-crypto/sha256-js/build/module/constants.js" 153/*!**************************************************************************!*\ 154 !*** ../../node_modules/@aws-crypto/sha256-js/build/module/constants.js ***! 155 \**************************************************************************/ 156(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 157 158"use strict"; 159/* harmony export */ __webpack_require__.d(__webpack_exports__, { 160/* harmony export */ BLOCK_SIZE: () => (/* binding */ BLOCK_SIZE), 161/* harmony export */ DIGEST_LENGTH: () => (/* binding */ DIGEST_LENGTH), 162/* harmony export */ INIT: () => (/* binding */ INIT), 163/* harmony export */ KEY: () => (/* binding */ KEY), 164/* harmony export */ MAX_HASHABLE_LENGTH: () => (/* binding */ MAX_HASHABLE_LENGTH) 165/* harmony export */ }); 166/** 167 * @internal 168 */ 169var BLOCK_SIZE = 64; 170/** 171 * @internal 172 */ 173var DIGEST_LENGTH = 32; 174/** 175 * @internal 176 */ 177var KEY = new Uint32Array([ 178 0x428a2f98, 179 0x71374491, 180 0xb5c0fbcf, 181 0xe9b5dba5, 182 0x3956c25b, 183 0x59f111f1, 184 0x923f82a4, 185 0xab1c5ed5, 186 0xd807aa98, 187 0x12835b01, 188 0x243185be, 189 0x550c7dc3, 190 0x72be5d74, 191 0x80deb1fe, 192 0x9bdc06a7, 193 0xc19bf174, 194 0xe49b69c1, 195 0xefbe4786, 196 0x0fc19dc6, 197 0x240ca1cc, 198 0x2de92c6f, 199 0x4a7484aa, 200 0x5cb0a9dc, 201 0x76f988da, 202 0x983e5152, 203 0xa831c66d, 204 0xb00327c8, 205 0xbf597fc7, 206 0xc6e00bf3, 207 0xd5a79147, 208 0x06ca6351, 209 0x14292967, 210 0x27b70a85, 211 0x2e1b2138, 212 0x4d2c6dfc, 213 0x53380d13, 214 0x650a7354, 215 0x766a0abb, 216 0x81c2c92e, 217 0x92722c85, 218 0xa2bfe8a1, 219 0xa81a664b, 220 0xc24b8b70, 221 0xc76c51a3, 222 0xd192e819, 223 0xd6990624, 224 0xf40e3585, 225 0x106aa070, 226 0x19a4c116, 227 0x1e376c08, 228 0x2748774c, 229 0x34b0bcb5, 230 0x391c0cb3, 231 0x4ed8aa4a, 232 0x5b9cca4f, 233 0x682e6ff3, 234 0x748f82ee, 235 0x78a5636f, 236 0x84c87814, 237 0x8cc70208, 238 0x90befffa, 239 0xa4506ceb, 240 0xbef9a3f7, 241 0xc67178f2 242]); 243/** 244 * @internal 245 */ 246var INIT = [ 247 0x6a09e667, 248 0xbb67ae85, 249 0x3c6ef372, 250 0xa54ff53a, 251 0x510e527f, 252 0x9b05688c, 253 0x1f83d9ab, 254 0x5be0cd19 255]; 256/** 257 * @internal 258 */ 259var MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1; 260//# sourceMappingURL=constants.js.map 261 262/***/ }, 263 264/***/ "../../node_modules/@aws-crypto/sha256-js/build/module/index.js" 265/*!**********************************************************************!*\ 266 !*** ../../node_modules/@aws-crypto/sha256-js/build/module/index.js ***! 267 \**********************************************************************/ 268(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 269 270"use strict"; 271__webpack_require__.r(__webpack_exports__); 272/* harmony export */ __webpack_require__.d(__webpack_exports__, { 273/* harmony export */ Sha256: () => (/* reexport safe */ _jsSha256__WEBPACK_IMPORTED_MODULE_0__.Sha256) 274/* harmony export */ }); 275/* harmony import */ var _jsSha256__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jsSha256 */ "../../node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js"); 276 277//# sourceMappingURL=index.js.map 278 279/***/ }, 280 281/***/ "../../node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js" 282/*!*************************************************************************!*\ 283 !*** ../../node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js ***! 284 \*************************************************************************/ 285(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 286 287"use strict"; 288/* harmony export */ __webpack_require__.d(__webpack_exports__, { 289/* harmony export */ Sha256: () => (/* binding */ Sha256) 290/* harmony export */ }); 291/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.mjs"); 292/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-js/build/module/constants.js"); 293/* harmony import */ var _RawSha256__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RawSha256 */ "../../node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js"); 294/* harmony import */ var _aws_crypto_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-crypto/util */ "../../node_modules/@aws-crypto/util/build/module/index.js"); 295 296 297 298 299var Sha256 = /** @class */ (function () { 300 function Sha256(secret) { 301 this.secret = secret; 302 this.hash = new _RawSha256__WEBPACK_IMPORTED_MODULE_2__.RawSha256(); 303 this.reset(); 304 } 305 Sha256.prototype.update = function (toHash) { 306 if ((0,_aws_crypto_util__WEBPACK_IMPORTED_MODULE_3__.isEmptyData)(toHash) || this.error) { 307 return; 308 } 309 try { 310 this.hash.update((0,_aws_crypto_util__WEBPACK_IMPORTED_MODULE_3__.convertToBuffer)(toHash)); 311 } 312 catch (e) { 313 this.error = e; 314 } 315 }; 316 /* This synchronous method keeps compatibility 317 * with the v2 aws-sdk. 318 */ 319 Sha256.prototype.digestSync = function () { 320 if (this.error) { 321 throw this.error; 322 } 323 if (this.outer) { 324 if (!this.outer.finished) { 325 this.outer.update(this.hash.digest()); 326 } 327 return this.outer.digest(); 328 } 329 return this.hash.digest(); 330 }; 331 /* The underlying digest method here is synchronous. 332 * To keep the same interface with the other hash functions 333 * the default is to expose this as an async method. 334 * However, it can sometimes be useful to have a sync method. 335 */ 336 Sha256.prototype.digest = function () { 337 return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () { 338 return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_a) { 339 return [2 /*return*/, this.digestSync()]; 340 }); 341 }); 342 }; 343 Sha256.prototype.reset = function () { 344 this.hash = new _RawSha256__WEBPACK_IMPORTED_MODULE_2__.RawSha256(); 345 if (this.secret) { 346 this.outer = new _RawSha256__WEBPACK_IMPORTED_MODULE_2__.RawSha256(); 347 var inner = bufferFromSecret(this.secret); 348 var outer = new Uint8Array(_constants__WEBPACK_IMPORTED_MODULE_1__.BLOCK_SIZE); 349 outer.set(inner); 350 for (var i = 0; i < _constants__WEBPACK_IMPORTED_MODULE_1__.BLOCK_SIZE; i++) { 351 inner[i] ^= 0x36; 352 outer[i] ^= 0x5c; 353 } 354 this.hash.update(inner); 355 this.outer.update(outer); 356 // overwrite the copied key in memory 357 for (var i = 0; i < inner.byteLength; i++) { 358 inner[i] = 0; 359 } 360 } 361 }; 362 return Sha256; 363}()); 364 365function bufferFromSecret(secret) { 366 var input = (0,_aws_crypto_util__WEBPACK_IMPORTED_MODULE_3__.convertToBuffer)(secret); 367 if (input.byteLength > _constants__WEBPACK_IMPORTED_MODULE_1__.BLOCK_SIZE) { 368 var bufferHash = new _RawSha256__WEBPACK_IMPORTED_MODULE_2__.RawSha256(); 369 bufferHash.update(input); 370 input = bufferHash.digest(); 371 } 372 var buffer = new Uint8Array(_constants__WEBPACK_IMPORTED_MODULE_1__.BLOCK_SIZE); 373 buffer.set(input); 374 return buffer; 375} 376//# sourceMappingURL=jsSha256.js.map 377 378/***/ }, 379 380/***/ "../../node_modules/@aws-crypto/util/build/module/convertToBuffer.js" 381/*!***************************************************************************!*\ 382 !*** ../../node_modules/@aws-crypto/util/build/module/convertToBuffer.js ***! 383 \***************************************************************************/ 384(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 385 386"use strict"; 387/* harmony export */ __webpack_require__.d(__webpack_exports__, { 388/* harmony export */ convertToBuffer: () => (/* binding */ convertToBuffer) 389/* harmony export */ }); 390/* harmony import */ var _smithy_util_utf8__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @smithy/util-utf8 */ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/index.js"); 391/* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js")["Buffer"]; 392// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. 393// SPDX-License-Identifier: Apache-2.0 394 395// Quick polyfill 396var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from 397 ? function (input) { return Buffer.from(input, "utf8"); } 398 : _smithy_util_utf8__WEBPACK_IMPORTED_MODULE_0__.fromUtf8; 399function convertToBuffer(data) { 400 // Already a Uint8, do nothing 401 if (data instanceof Uint8Array) 402 return data; 403 if (typeof data === "string") { 404 return fromUtf8(data); 405 } 406 if (ArrayBuffer.isView(data)) { 407 return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); 408 } 409 return new Uint8Array(data); 410} 411//# sourceMappingURL=convertToBuffer.js.map 412 413/***/ }, 414 415/***/ "../../node_modules/@aws-crypto/util/build/module/index.js" 416/*!*****************************************************************!*\ 417 !*** ../../node_modules/@aws-crypto/util/build/module/index.js ***! 418 \*****************************************************************/ 419(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 420 421"use strict"; 422/* harmony export */ __webpack_require__.d(__webpack_exports__, { 423/* harmony export */ convertToBuffer: () => (/* reexport safe */ _convertToBuffer__WEBPACK_IMPORTED_MODULE_0__.convertToBuffer), 424/* harmony export */ isEmptyData: () => (/* reexport safe */ _isEmptyData__WEBPACK_IMPORTED_MODULE_1__.isEmptyData) 425/* harmony export */ }); 426/* harmony import */ var _convertToBuffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./convertToBuffer */ "../../node_modules/@aws-crypto/util/build/module/convertToBuffer.js"); 427/* harmony import */ var _isEmptyData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isEmptyData */ "../../node_modules/@aws-crypto/util/build/module/isEmptyData.js"); 428/* harmony import */ var _numToUint8__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numToUint8 */ "../../node_modules/@aws-crypto/util/build/module/numToUint8.js"); 429/* harmony import */ var _uint32ArrayFrom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./uint32ArrayFrom */ "../../node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js"); 430// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. 431// SPDX-License-Identifier: Apache-2.0 432 433 434 435 436//# sourceMappingURL=index.js.map 437 438/***/ }, 439 440/***/ "../../node_modules/@aws-crypto/util/build/module/isEmptyData.js" 441/*!***********************************************************************!*\ 442 !*** ../../node_modules/@aws-crypto/util/build/module/isEmptyData.js ***! 443 \***********************************************************************/ 444(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 445 446"use strict"; 447/* harmony export */ __webpack_require__.d(__webpack_exports__, { 448/* harmony export */ isEmptyData: () => (/* binding */ isEmptyData) 449/* harmony export */ }); 450// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. 451// SPDX-License-Identifier: Apache-2.0 452function isEmptyData(data) { 453 if (typeof data === "string") { 454 return data.length === 0; 455 } 456 return data.byteLength === 0; 457} 458//# sourceMappingURL=isEmptyData.js.map 459 460/***/ }, 461 462/***/ "../../node_modules/@aws-crypto/util/build/module/numToUint8.js" 463/*!**********************************************************************!*\ 464 !*** ../../node_modules/@aws-crypto/util/build/module/numToUint8.js ***! 465 \**********************************************************************/ 466(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 467 468"use strict"; 469/* unused harmony export numToUint8 */ 470// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. 471// SPDX-License-Identifier: Apache-2.0 472function numToUint8(num) { 473 return new Uint8Array([ 474 (num & 0xff000000) >> 24, 475 (num & 0x00ff0000) >> 16, 476 (num & 0x0000ff00) >> 8, 477 num & 0x000000ff, 478 ]); 479} 480//# sourceMappingURL=numToUint8.js.map 481 482/***/ }, 483 484/***/ "../../node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js" 485/*!***************************************************************************!*\ 486 !*** ../../node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js ***! 487 \***************************************************************************/ 488(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 489 490"use strict"; 491/* unused harmony export uint32ArrayFrom */ 492// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. 493// SPDX-License-Identifier: Apache-2.0 494// IE 11 does not support Array.from, so we do it manually 495function uint32ArrayFrom(a_lookUpTable) { 496 if (!Uint32Array.from) { 497 var return_array = new Uint32Array(a_lookUpTable.length); 498 var a_index = 0; 499 while (a_index < a_lookUpTable.length) { 500 return_array[a_index] = a_lookUpTable[a_index]; 501 a_index += 1; 502 } 503 return return_array; 504 } 505 return Uint32Array.from(a_lookUpTable); 506} 507//# sourceMappingURL=uint32ArrayFrom.js.map 508 509/***/ }, 510 511/***/ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js" 512/*!******************************************************************************************************!*\ 513 !*** ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js ***! 514 \******************************************************************************************************/ 515(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 516 517"use strict"; 518/* harmony export */ __webpack_require__.d(__webpack_exports__, { 519/* harmony export */ fromUtf8: () => (/* binding */ fromUtf8) 520/* harmony export */ }); 521const fromUtf8 = (input) => new TextEncoder().encode(input); 522 523
524/***/ }, 525 526/***/ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/index.js" 527/*!*******************************************************************************************!*\ 528 !*** ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/index.js ***! 529 \*******************************************************************************************/ 530(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 531 532"use strict"; 533/* harmony export */ __webpack_require__.d(__webpack_exports__, { 534/* harmony export */ fromUtf8: () => (/* reexport safe */ _fromUtf8__WEBPACK_IMPORTED_MODULE_0__.fromUtf8) 535/* harmony export */ }); 536/* harmony import */ var _fromUtf8__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fromUtf8 */ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js"); 537/* harmony import */ var _toUint8Array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toUint8Array */ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js"); 538/* harmony import */ var _toUtf8__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./toUtf8 */ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js"); 539 540 541 542 543 544/***/ }, 545 546/***/ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js" 547/*!**************************************************************************************************!*\ 548 !*** ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js ***! 549 \**************************************************************************************************/ 550(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 551 552"use strict"; 553/* unused harmony export toUint8Array */ 554/* harmony import */ var _fromUtf8__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fromUtf8 */ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js"); 555 556const toUint8Array = (data) => { 557 if (typeof data === "string") { 558 return (0,_fromUtf8__WEBPACK_IMPORTED_MODULE_0__.fromUtf8)(data); 559 } 560 if (ArrayBuffer.isView(data)) { 561 return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); 562 } 563 return new Uint8Array(data); 564}; 565 566 567/***/ }, 568 569/***/ "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js" 570/*!****************************************************************************************************!*\ 571 !*** ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js ***! 572 \****************************************************************************************************/ 573(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 574 575"use strict"; 576/* unused harmony export toUtf8 */ 577const toUtf8 = (input) => { 578 if (typeof input === "string") { 579 return input; 580 } 581 if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") { 582 throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array."); 583 } 584 return new TextDecoder("utf-8").decode(input); 585}; 586 587 588/***/ }, 589 590/***/ "../../node_modules/aws-sign2/index.js" 591/*!*********************************************!*\ 592 !*** ../../node_modules/aws-sign2/index.js ***! 593 \*********************************************/ 594(module, __unused_webpack_exports, __webpack_require__) { 595 596 597/*! 598 * Copyright 2010 LearnBoost <[email protected]> 599 * 600 * Licensed under the Apache License, Version 2.0 (the "License"); 601 * you may not use this file except in compliance with the License. 602 * You may obtain a copy of the License at 603 * 604 * http://www.apache.org/licenses/LICENSE-2.0 605 * 606 * Unless required by applicable law or agreed to in writing, software 607 * distributed under the License is distributed on an "AS IS" BASIS, 608 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 609 * See the License for the specific language governing permissions and 610 * limitations under the License. 611 */ 612 613/** 614 * Module dependencies. 615 */ 616 617var crypto = __webpack_require__(/*! crypto */ "?c27f") 618 , parse = (__webpack_require__(/*! url */ "../../node_modules/url/url.js").parse) 619 ; 620 621/** 622 * Valid keys. 623 */ 624 625var keys = 626 [ 'acl' 627 , 'location' 628 , 'logging' 629 , 'notification' 630 , 'partNumber' 631 , 'policy' 632 , 'requestPayment' 633 , 'torrent' 634 , 'uploadId' 635 , 'uploads' 636 , 'versionId' 637 , 'versioning' 638 , 'versions' 639 , 'website' 640 ] 641 642/** 643 * Return an "Authorization" header value with the given `options` 644 * in the form of "AWS <key>:<signature>" 645 * 646 * @param {Object} options 647 * @return {String} 648 * @api private 649 */ 650 651function authorization (options) { 652 return 'AWS ' + options.key + ':' + sign(options) 653} 654 655module.exports = authorization 656module.exports.authorization = authorization 657 658/** 659 * Simple HMAC-SHA1 Wrapper 660 * 661 * @param {Object} options 662 * @return {String} 663 * @api private 664 */ 665 666function hmacSha1 (options) { 667 return crypto.createHmac('sha1', options.secret).update(options.message).digest('base64') 668} 669
670module.exports.hmacSha1 = hmacSha1 671 672/** 673 * Create a base64 sha1 HMAC for `options`. 674 * 675 * @param {Object} options 676 * @return {String} 677 * @api private 678 */ 679 680function sign (options) { 681 options.message = stringToSign(options) 682 return hmacSha1(options) 683} 684module.exports.sign = sign 685 686/** 687 * Create a base64 sha1 HMAC for `options`. 688 * 689 * Specifically to be used with S3 presigned URLs 690 * 691 * @param {Object} options 692 * @return {String} 693 * @api private 694 */ 695 696function signQuery (options) { 697 options.message = queryStringToSign(options) 698 return hmacSha1(options) 699} 700module.exports.signQuery= signQuery 701 702/** 703 * Return a string for sign() with the given `options`. 704 * 705 * Spec: 706 * 707 * <verb>\n 708 * <md5>\n 709 * <content-type>\n 710 * <date>\n 711 * [headers\n] 712 * <resource> 713 * 714 * @param {Object} options 715 * @return {String} 716 * @api private 717 */ 718 719function stringToSign (options) { 720 var headers = options.amazonHeaders || '' 721 if (headers) headers += '\n' 722 var r = 723 [ options.verb 724 , options.md5 725 , options.contentType 726 , options.date ? options.date.toUTCString() : '' 727 , headers + options.resource 728 ] 729 return r.join('\n') 730} 731module.exports.stringToSign = stringToSign 732 733/** 734 * Return a string for sign() with the given `options`, but is meant exclusively 735 * for S3 presigned URLs 736 * 737 * Spec: 738 * 739 * <date>\n 740 * <resource> 741 * 742 * @param {Object} options 743 * @return {String} 744 * @api private 745 */ 746 747function queryStringToSign (options){ 748 return 'GET\n\n\n' + options.date + '\n' + options.resource 749} 750module.exports.queryStringToSign = queryStringToSign 751 752/** 753 * Perform the following: 754 * 755 * - ignore non-amazon headers 756 * - lowercase fields 757 * - sort lexicographically 758 * - trim whitespace between ":" 759 * - join with newline 760 * 761 * @param {Object} headers 762 * @return {String} 763 * @api private 764 */ 765 766function canonicalizeHeaders (headers) { 767 var buf = [] 768 , fields = Object.keys(headers) 769 ; 770 for (var i = 0, len = fields.length; i < len; ++i) { 771 var field = fields[i] 772 , val = headers[field] 773 , field = field.toLowerCase() 774 ; 775 if (0 !== field.indexOf('x-amz')) continue 776 buf.push(field + ':' + val) 777 } 778 return buf.sort().join('\n') 779} 780module.exports.canonicalizeHeaders = canonicalizeHeaders 781 782/** 783 * Perform the following: 784 * 785 * - ignore non sub-resources 786 * - sort lexicographically 787 * 788 * @param {String} resource 789 * @return {String} 790 * @api private 791 */ 792 793function canonicalizeResource (resource) { 794 var url = parse(resource, true) 795 , path = url.pathname 796 , buf = [] 797 ; 798 799 Object.keys(url.query).forEach(function(key){ 800 if (!~keys.indexOf(key)) return 801 var val = '' == url.query[key] ? '' : '=' + encodeURIComponent(url.query[key]) 802 buf.push(key + val) 803 }) 804 805 return path + (buf.length ? '?' + buf.sort().join('&') : '') 806} 807module.exports.canonicalizeResource = canonicalizeResource 808 809 810/***/ } 811 812}]); 813//# sourceMappingURL=vendors-node_modules_aws-crypto_sha256-js_build_module_index_js-node_modules_aws-sign2_index_js.d2ca207f.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.