@gsc-basic/utils 1.0.0 → 1.0.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.cjs +1 -1
- package/dist/index.js +1 -1
- package/node_modules/crypto-js/CONTRIBUTING.md +28 -0
- package/node_modules/crypto-js/LICENSE +24 -0
- package/node_modules/crypto-js/README.md +275 -0
- package/node_modules/crypto-js/aes.js +234 -0
- package/node_modules/crypto-js/blowfish.js +471 -0
- package/node_modules/crypto-js/bower.json +39 -0
- package/node_modules/crypto-js/cipher-core.js +895 -0
- package/node_modules/crypto-js/core.js +807 -0
- package/node_modules/crypto-js/crypto-js.js +6657 -0
- package/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
- package/node_modules/crypto-js/enc-base64.js +136 -0
- package/node_modules/crypto-js/enc-base64url.js +148 -0
- package/node_modules/crypto-js/enc-hex.js +18 -0
- package/node_modules/crypto-js/enc-latin1.js +18 -0
- package/node_modules/crypto-js/enc-utf16.js +149 -0
- package/node_modules/crypto-js/enc-utf8.js +18 -0
- package/node_modules/crypto-js/evpkdf.js +134 -0
- package/node_modules/crypto-js/format-hex.js +66 -0
- package/node_modules/crypto-js/format-openssl.js +18 -0
- package/node_modules/crypto-js/hmac-md5.js +18 -0
- package/node_modules/crypto-js/hmac-ripemd160.js +18 -0
- package/node_modules/crypto-js/hmac-sha1.js +18 -0
- package/node_modules/crypto-js/hmac-sha224.js +18 -0
- package/node_modules/crypto-js/hmac-sha256.js +18 -0
- package/node_modules/crypto-js/hmac-sha3.js +18 -0
- package/node_modules/crypto-js/hmac-sha384.js +18 -0
- package/node_modules/crypto-js/hmac-sha512.js +18 -0
- package/node_modules/crypto-js/hmac.js +143 -0
- package/node_modules/crypto-js/index.js +18 -0
- package/node_modules/crypto-js/lib-typedarrays.js +76 -0
- package/node_modules/crypto-js/md5.js +268 -0
- package/node_modules/crypto-js/mode-cfb.js +80 -0
- package/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
- package/node_modules/crypto-js/mode-ctr.js +58 -0
- package/node_modules/crypto-js/mode-ecb.js +40 -0
- package/node_modules/crypto-js/mode-ofb.js +54 -0
- package/node_modules/crypto-js/package.json +42 -0
- package/node_modules/crypto-js/pad-ansix923.js +49 -0
- package/node_modules/crypto-js/pad-iso10126.js +44 -0
- package/node_modules/crypto-js/pad-iso97971.js +40 -0
- package/node_modules/crypto-js/pad-nopadding.js +30 -0
- package/node_modules/crypto-js/pad-pkcs7.js +18 -0
- package/node_modules/crypto-js/pad-zeropadding.js +47 -0
- package/node_modules/crypto-js/pbkdf2.js +145 -0
- package/node_modules/crypto-js/rabbit-legacy.js +190 -0
- package/node_modules/crypto-js/rabbit.js +192 -0
- package/node_modules/crypto-js/rc4.js +139 -0
- package/node_modules/crypto-js/ripemd160.js +267 -0
- package/node_modules/crypto-js/sha1.js +150 -0
- package/node_modules/crypto-js/sha224.js +80 -0
- package/node_modules/crypto-js/sha256.js +199 -0
- package/node_modules/crypto-js/sha3.js +326 -0
- package/node_modules/crypto-js/sha384.js +83 -0
- package/node_modules/crypto-js/sha512.js +326 -0
- package/node_modules/crypto-js/tripledes.js +779 -0
- package/node_modules/crypto-js/x64-core.js +304 -0
- package/node_modules/lodash-es/LICENSE +47 -0
- package/node_modules/lodash-es/README.md +10 -0
- package/node_modules/lodash-es/_DataView.js +7 -0
- package/node_modules/lodash-es/_Hash.js +32 -0
- package/node_modules/lodash-es/_LazyWrapper.js +28 -0
- package/node_modules/lodash-es/_ListCache.js +32 -0
- package/node_modules/lodash-es/_LodashWrapper.js +22 -0
- package/node_modules/lodash-es/_Map.js +7 -0
- package/node_modules/lodash-es/_MapCache.js +32 -0
- package/node_modules/lodash-es/_Promise.js +7 -0
- package/node_modules/lodash-es/_Set.js +7 -0
- package/node_modules/lodash-es/_SetCache.js +27 -0
- package/node_modules/lodash-es/_Stack.js +27 -0
- package/node_modules/lodash-es/_Symbol.js +6 -0
- package/node_modules/lodash-es/_Uint8Array.js +6 -0
- package/node_modules/lodash-es/_WeakMap.js +7 -0
- package/node_modules/lodash-es/_addMapEntry.js +15 -0
- package/node_modules/lodash-es/_addSetEntry.js +15 -0
- package/node_modules/lodash-es/_apply.js +21 -0
- package/node_modules/lodash-es/_arrayAggregator.js +22 -0
- package/node_modules/lodash-es/_arrayEach.js +22 -0
- package/node_modules/lodash-es/_arrayEachRight.js +21 -0
- package/node_modules/lodash-es/_arrayEvery.js +23 -0
- package/node_modules/lodash-es/_arrayFilter.js +25 -0
- package/node_modules/lodash-es/_arrayIncludes.js +17 -0
- package/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash-es/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash-es/_arrayMap.js +21 -0
- package/node_modules/lodash-es/_arrayPush.js +20 -0
- package/node_modules/lodash-es/_arrayReduce.js +26 -0
- package/node_modules/lodash-es/_arrayReduceRight.js +24 -0
- package/node_modules/lodash-es/_arraySample.js +15 -0
- package/node_modules/lodash-es/_arraySampleSize.js +17 -0
- package/node_modules/lodash-es/_arrayShuffle.js +15 -0
- package/node_modules/lodash-es/_arraySome.js +23 -0
- package/node_modules/lodash-es/_asciiSize.js +12 -0
- package/node_modules/lodash-es/_asciiToArray.js +12 -0
- package/node_modules/lodash-es/_asciiWords.js +15 -0
- package/node_modules/lodash-es/_assignMergeValue.js +20 -0
- package/node_modules/lodash-es/_assignValue.js +28 -0
- package/node_modules/lodash-es/_assocIndexOf.js +21 -0
- package/node_modules/lodash-es/_baseAggregator.js +21 -0
- package/node_modules/lodash-es/_baseAssign.js +17 -0
- package/node_modules/lodash-es/_baseAssignIn.js +17 -0
- package/node_modules/lodash-es/_baseAssignValue.js +25 -0
- package/node_modules/lodash-es/_baseAt.js +23 -0
- package/node_modules/lodash-es/_baseClamp.js +22 -0
- package/node_modules/lodash-es/_baseClone.js +166 -0
- package/node_modules/lodash-es/_baseConforms.js +18 -0
- package/node_modules/lodash-es/_baseConformsTo.js +27 -0
- package/node_modules/lodash-es/_baseCreate.js +30 -0
- package/node_modules/lodash-es/_baseDelay.js +21 -0
- package/node_modules/lodash-es/_baseDifference.js +67 -0
- package/node_modules/lodash-es/_baseEach.js +14 -0
- package/node_modules/lodash-es/_baseEachRight.js +14 -0
- package/node_modules/lodash-es/_baseEvery.js +21 -0
- package/node_modules/lodash-es/_baseExtremum.js +32 -0
- package/node_modules/lodash-es/_baseFill.js +32 -0
- package/node_modules/lodash-es/_baseFilter.js +21 -0
- package/node_modules/lodash-es/_baseFindIndex.js +24 -0
- package/node_modules/lodash-es/_baseFindKey.js +23 -0
- package/node_modules/lodash-es/_baseFlatten.js +38 -0
- package/node_modules/lodash-es/_baseFor.js +16 -0
- package/node_modules/lodash-es/_baseForOwn.js +16 -0
- package/node_modules/lodash-es/_baseForOwnRight.js +16 -0
- package/node_modules/lodash-es/_baseForRight.js +15 -0
- package/node_modules/lodash-es/_baseFunctions.js +19 -0
- package/node_modules/lodash-es/_baseGet.js +24 -0
- package/node_modules/lodash-es/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash-es/_baseGetTag.js +28 -0
- package/node_modules/lodash-es/_baseGt.js +14 -0
- package/node_modules/lodash-es/_baseHas.js +19 -0
- package/node_modules/lodash-es/_baseHasIn.js +13 -0
- package/node_modules/lodash-es/_baseInRange.js +18 -0
- package/node_modules/lodash-es/_baseIndexOf.js +20 -0
- package/node_modules/lodash-es/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash-es/_baseIntersection.js +74 -0
- package/node_modules/lodash-es/_baseInverter.js +21 -0
- package/node_modules/lodash-es/_baseInvoke.js +24 -0
- package/node_modules/lodash-es/_baseIsArguments.js +18 -0
- package/node_modules/lodash-es/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash-es/_baseIsDate.js +18 -0
- package/node_modules/lodash-es/_baseIsEqual.js +28 -0
- package/node_modules/lodash-es/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash-es/_baseIsMap.js +18 -0
- package/node_modules/lodash-es/_baseIsMatch.js +62 -0
- package/node_modules/lodash-es/_baseIsNaN.js +12 -0
- package/node_modules/lodash-es/_baseIsNative.js +47 -0
- package/node_modules/lodash-es/_baseIsRegExp.js +18 -0
- package/node_modules/lodash-es/_baseIsSet.js +18 -0
- package/node_modules/lodash-es/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash-es/_baseIteratee.js +31 -0
- package/node_modules/lodash-es/_baseKeys.js +30 -0
- package/node_modules/lodash-es/_baseKeysIn.js +33 -0
- package/node_modules/lodash-es/_baseLodash.js +10 -0
- package/node_modules/lodash-es/_baseLt.js +14 -0
- package/node_modules/lodash-es/_baseMap.js +22 -0
- package/node_modules/lodash-es/_baseMatches.js +22 -0
- package/node_modules/lodash-es/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash-es/_baseMean.js +20 -0
- package/node_modules/lodash-es/_baseMerge.js +42 -0
- package/node_modules/lodash-es/_baseMergeDeep.js +94 -0
- package/node_modules/lodash-es/_baseNth.js +20 -0
- package/node_modules/lodash-es/_baseOrderBy.js +49 -0
- package/node_modules/lodash-es/_basePick.js +19 -0
- package/node_modules/lodash-es/_basePickBy.js +30 -0
- package/node_modules/lodash-es/_baseProperty.js +14 -0
- package/node_modules/lodash-es/_basePropertyDeep.js +16 -0
- package/node_modules/lodash-es/_basePropertyOf.js +14 -0
- package/node_modules/lodash-es/_basePullAll.js +51 -0
- package/node_modules/lodash-es/_basePullAt.js +37 -0
- package/node_modules/lodash-es/_baseRandom.js +18 -0
- package/node_modules/lodash-es/_baseRange.js +28 -0
- package/node_modules/lodash-es/_baseReduce.js +23 -0
- package/node_modules/lodash-es/_baseRepeat.js +35 -0
- package/node_modules/lodash-es/_baseRest.js +17 -0
- package/node_modules/lodash-es/_baseSample.js +15 -0
- package/node_modules/lodash-es/_baseSampleSize.js +18 -0
- package/node_modules/lodash-es/_baseSet.js +51 -0
- package/node_modules/lodash-es/_baseSetData.js +17 -0
- package/node_modules/lodash-es/_baseSetToString.js +22 -0
- package/node_modules/lodash-es/_baseShuffle.js +15 -0
- package/node_modules/lodash-es/_baseSlice.js +31 -0
- package/node_modules/lodash-es/_baseSome.js +22 -0
- package/node_modules/lodash-es/_baseSortBy.js +21 -0
- package/node_modules/lodash-es/_baseSortedIndex.js +42 -0
- package/node_modules/lodash-es/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash-es/_baseSortedUniq.js +30 -0
- package/node_modules/lodash-es/_baseSum.js +24 -0
- package/node_modules/lodash-es/_baseTimes.js +20 -0
- package/node_modules/lodash-es/_baseToNumber.js +24 -0
- package/node_modules/lodash-es/_baseToPairs.js +18 -0
- package/node_modules/lodash-es/_baseToString.js +37 -0
- package/node_modules/lodash-es/_baseTrim.js +19 -0
- package/node_modules/lodash-es/_baseUnary.js +14 -0
- package/node_modules/lodash-es/_baseUniq.js +72 -0
- package/node_modules/lodash-es/_baseUnset.js +20 -0
- package/node_modules/lodash-es/_baseUpdate.js +18 -0
- package/node_modules/lodash-es/_baseValues.js +19 -0
- package/node_modules/lodash-es/_baseWhile.js +26 -0
- package/node_modules/lodash-es/_baseWrapperValue.js +25 -0
- package/node_modules/lodash-es/_baseXor.js +36 -0
- package/node_modules/lodash-es/_baseZipObject.js +23 -0
- package/node_modules/lodash-es/_cacheHas.js +13 -0
- package/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash-es/_castFunction.js +14 -0
- package/node_modules/lodash-es/_castPath.js +21 -0
- package/node_modules/lodash-es/_castRest.js +14 -0
- package/node_modules/lodash-es/_castSlice.js +18 -0
- package/node_modules/lodash-es/_charsEndIndex.js +19 -0
- package/node_modules/lodash-es/_charsStartIndex.js +20 -0
- package/node_modules/lodash-es/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash-es/_cloneBuffer.js +35 -0
- package/node_modules/lodash-es/_cloneDataView.js +16 -0
- package/node_modules/lodash-es/_cloneMap.js +22 -0
- package/node_modules/lodash-es/_cloneRegExp.js +17 -0
- package/node_modules/lodash-es/_cloneSet.js +22 -0
- package/node_modules/lodash-es/_cloneSymbol.js +18 -0
- package/node_modules/lodash-es/_cloneTypedArray.js +16 -0
- package/node_modules/lodash-es/_compareAscending.js +41 -0
- package/node_modules/lodash-es/_compareMultiple.js +44 -0
- package/node_modules/lodash-es/_composeArgs.js +39 -0
- package/node_modules/lodash-es/_composeArgsRight.js +41 -0
- package/node_modules/lodash-es/_copyArray.js +20 -0
- package/node_modules/lodash-es/_copyObject.js +40 -0
- package/node_modules/lodash-es/_copySymbols.js +16 -0
- package/node_modules/lodash-es/_copySymbolsIn.js +16 -0
- package/node_modules/lodash-es/_coreJsData.js +6 -0
- package/node_modules/lodash-es/_countHolders.js +21 -0
- package/node_modules/lodash-es/_createAggregator.js +23 -0
- package/node_modules/lodash-es/_createAssigner.js +37 -0
- package/node_modules/lodash-es/_createBaseEach.js +32 -0
- package/node_modules/lodash-es/_createBaseFor.js +25 -0
- package/node_modules/lodash-es/_createBind.js +28 -0
- package/node_modules/lodash-es/_createCaseFirst.js +33 -0
- package/node_modules/lodash-es/_createCompounder.js +24 -0
- package/node_modules/lodash-es/_createCtor.js +37 -0
- package/node_modules/lodash-es/_createCurry.js +46 -0
- package/node_modules/lodash-es/_createFind.js +25 -0
- package/node_modules/lodash-es/_createFlow.js +78 -0
- package/node_modules/lodash-es/_createHybrid.js +92 -0
- package/node_modules/lodash-es/_createInverter.js +17 -0
- package/node_modules/lodash-es/_createMathOperation.js +38 -0
- package/node_modules/lodash-es/_createOver.js +27 -0
- package/node_modules/lodash-es/_createPadding.js +33 -0
- package/node_modules/lodash-es/_createPartial.js +43 -0
- package/node_modules/lodash-es/_createRange.js +30 -0
- package/node_modules/lodash-es/_createRecurry.js +56 -0
- package/node_modules/lodash-es/_createRelationalOperation.js +20 -0
- package/node_modules/lodash-es/_createRound.js +35 -0
- package/node_modules/lodash-es/_createSet.js +19 -0
- package/node_modules/lodash-es/_createToPairs.js +30 -0
- package/node_modules/lodash-es/_createWrap.js +106 -0
- package/node_modules/lodash-es/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash-es/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash-es/_customOmitClone.js +16 -0
- package/node_modules/lodash-es/_deburrLetter.js +71 -0
- package/node_modules/lodash-es/_defineProperty.js +11 -0
- package/node_modules/lodash-es/_equalArrays.js +84 -0
- package/node_modules/lodash-es/_equalByTag.js +112 -0
- package/node_modules/lodash-es/_equalObjects.js +90 -0
- package/node_modules/lodash-es/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash-es/_escapeStringChar.js +22 -0
- package/node_modules/lodash-es/_flatRest.js +16 -0
- package/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/node_modules/lodash-es/_getAllKeys.js +16 -0
- package/node_modules/lodash-es/_getAllKeysIn.js +17 -0
- package/node_modules/lodash-es/_getData.js +15 -0
- package/node_modules/lodash-es/_getFuncName.js +31 -0
- package/node_modules/lodash-es/_getHolder.js +13 -0
- package/node_modules/lodash-es/_getMapData.js +18 -0
- package/node_modules/lodash-es/_getMatchData.js +24 -0
- package/node_modules/lodash-es/_getNative.js +17 -0
- package/node_modules/lodash-es/_getPrototype.js +6 -0
- package/node_modules/lodash-es/_getRawTag.js +46 -0
- package/node_modules/lodash-es/_getSymbols.js +30 -0
- package/node_modules/lodash-es/_getSymbolsIn.js +25 -0
- package/node_modules/lodash-es/_getTag.js +58 -0
- package/node_modules/lodash-es/_getValue.js +13 -0
- package/node_modules/lodash-es/_getView.js +33 -0
- package/node_modules/lodash-es/_getWrapDetails.js +17 -0
- package/node_modules/lodash-es/_hasPath.js +39 -0
- package/node_modules/lodash-es/_hasUnicode.js +26 -0
- package/node_modules/lodash-es/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash-es/_hashClear.js +15 -0
- package/node_modules/lodash-es/_hashDelete.js +17 -0
- package/node_modules/lodash-es/_hashGet.js +30 -0
- package/node_modules/lodash-es/_hashHas.js +23 -0
- package/node_modules/lodash-es/_hashSet.js +23 -0
- package/node_modules/lodash-es/_initCloneArray.js +26 -0
- package/node_modules/lodash-es/_initCloneByTag.js +77 -0
- package/node_modules/lodash-es/_initCloneObject.js +18 -0
- package/node_modules/lodash-es/_insertWrapDetails.js +23 -0
- package/node_modules/lodash-es/_isFlattenable.js +20 -0
- package/node_modules/lodash-es/_isIndex.js +25 -0
- package/node_modules/lodash-es/_isIterateeCall.js +30 -0
- package/node_modules/lodash-es/_isKey.js +29 -0
- package/node_modules/lodash-es/_isKeyable.js +15 -0
- package/node_modules/lodash-es/_isLaziable.js +28 -0
- package/node_modules/lodash-es/_isMaskable.js +14 -0
- package/node_modules/lodash-es/_isMasked.js +20 -0
- package/node_modules/lodash-es/_isPrototype.js +18 -0
- package/node_modules/lodash-es/_isStrictComparable.js +15 -0
- package/node_modules/lodash-es/_iteratorToArray.js +18 -0
- package/node_modules/lodash-es/_lazyClone.js +23 -0
- package/node_modules/lodash-es/_lazyReverse.js +23 -0
- package/node_modules/lodash-es/_lazyValue.js +69 -0
- package/node_modules/lodash-es/_listCacheClear.js +13 -0
- package/node_modules/lodash-es/_listCacheDelete.js +35 -0
- package/node_modules/lodash-es/_listCacheGet.js +19 -0
- package/node_modules/lodash-es/_listCacheHas.js +16 -0
- package/node_modules/lodash-es/_listCacheSet.js +26 -0
- package/node_modules/lodash-es/_mapCacheClear.js +21 -0
- package/node_modules/lodash-es/_mapCacheDelete.js +18 -0
- package/node_modules/lodash-es/_mapCacheGet.js +16 -0
- package/node_modules/lodash-es/_mapCacheHas.js +16 -0
- package/node_modules/lodash-es/_mapCacheSet.js +22 -0
- package/node_modules/lodash-es/_mapToArray.js +18 -0
- package/node_modules/lodash-es/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash-es/_memoizeCapped.js +26 -0
- package/node_modules/lodash-es/_mergeData.js +90 -0
- package/node_modules/lodash-es/_metaMap.js +6 -0
- package/node_modules/lodash-es/_nativeCreate.js +6 -0
- package/node_modules/lodash-es/_nativeKeys.js +6 -0
- package/node_modules/lodash-es/_nativeKeysIn.js +20 -0
- package/node_modules/lodash-es/_nodeUtil.js +30 -0
- package/node_modules/lodash-es/_objectToString.js +22 -0
- package/node_modules/lodash-es/_overArg.js +15 -0
- package/node_modules/lodash-es/_overRest.js +36 -0
- package/node_modules/lodash-es/_parent.js +16 -0
- package/node_modules/lodash-es/_reEscape.js +4 -0
- package/node_modules/lodash-es/_reEvaluate.js +4 -0
- package/node_modules/lodash-es/_reInterpolate.js +4 -0
- package/node_modules/lodash-es/_realNames.js +4 -0
- package/node_modules/lodash-es/_reorder.js +29 -0
- package/node_modules/lodash-es/_replaceHolders.js +29 -0
- package/node_modules/lodash-es/_root.js +9 -0
- package/node_modules/lodash-es/_safeGet.js +21 -0
- package/node_modules/lodash-es/_setCacheAdd.js +19 -0
- package/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/node_modules/lodash-es/_setData.js +20 -0
- package/node_modules/lodash-es/_setToArray.js +18 -0
- package/node_modules/lodash-es/_setToPairs.js +18 -0
- package/node_modules/lodash-es/_setToString.js +14 -0
- package/node_modules/lodash-es/_setWrapToString.js +21 -0
- package/node_modules/lodash-es/_shortOut.js +37 -0
- package/node_modules/lodash-es/_shuffleSelf.js +28 -0
- package/node_modules/lodash-es/_stackClear.js +15 -0
- package/node_modules/lodash-es/_stackDelete.js +18 -0
- package/node_modules/lodash-es/_stackGet.js +14 -0
- package/node_modules/lodash-es/_stackHas.js +14 -0
- package/node_modules/lodash-es/_stackSet.js +34 -0
- package/node_modules/lodash-es/_strictIndexOf.js +23 -0
- package/node_modules/lodash-es/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash-es/_stringSize.js +18 -0
- package/node_modules/lodash-es/_stringToArray.js +18 -0
- package/node_modules/lodash-es/_stringToPath.js +27 -0
- package/node_modules/lodash-es/_toKey.js +21 -0
- package/node_modules/lodash-es/_toSource.js +26 -0
- package/node_modules/lodash-es/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash-es/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash-es/_unicodeSize.js +44 -0
- package/node_modules/lodash-es/_unicodeToArray.js +40 -0
- package/node_modules/lodash-es/_unicodeWords.js +69 -0
- package/node_modules/lodash-es/_updateWrapDetails.js +46 -0
- package/node_modules/lodash-es/_wrapperClone.js +23 -0
- package/node_modules/lodash-es/add.js +22 -0
- package/node_modules/lodash-es/after.js +42 -0
- package/node_modules/lodash-es/array.default.js +81 -0
- package/node_modules/lodash-es/array.js +66 -0
- package/node_modules/lodash-es/ary.js +29 -0
- package/node_modules/lodash-es/assign.js +58 -0
- package/node_modules/lodash-es/assignIn.js +40 -0
- package/node_modules/lodash-es/assignInWith.js +38 -0
- package/node_modules/lodash-es/assignWith.js +37 -0
- package/node_modules/lodash-es/at.js +23 -0
- package/node_modules/lodash-es/attempt.js +35 -0
- package/node_modules/lodash-es/before.js +40 -0
- package/node_modules/lodash-es/bind.js +57 -0
- package/node_modules/lodash-es/bindAll.js +41 -0
- package/node_modules/lodash-es/bindKey.js +68 -0
- package/node_modules/lodash-es/camelCase.js +29 -0
- package/node_modules/lodash-es/capitalize.js +23 -0
- package/node_modules/lodash-es/castArray.js +44 -0
- package/node_modules/lodash-es/ceil.js +26 -0
- package/node_modules/lodash-es/chain.js +38 -0
- package/node_modules/lodash-es/chunk.js +50 -0
- package/node_modules/lodash-es/clamp.js +39 -0
- package/node_modules/lodash-es/clone.js +36 -0
- package/node_modules/lodash-es/cloneDeep.js +29 -0
- package/node_modules/lodash-es/cloneDeepWith.js +40 -0
- package/node_modules/lodash-es/cloneWith.js +42 -0
- package/node_modules/lodash-es/collection.default.js +37 -0
- package/node_modules/lodash-es/collection.js +29 -0
- package/node_modules/lodash-es/commit.js +33 -0
- package/node_modules/lodash-es/compact.js +31 -0
- package/node_modules/lodash-es/concat.js +43 -0
- package/node_modules/lodash-es/cond.js +60 -0
- package/node_modules/lodash-es/conforms.js +35 -0
- package/node_modules/lodash-es/conformsTo.js +32 -0
- package/node_modules/lodash-es/constant.js +26 -0
- package/node_modules/lodash-es/countBy.js +40 -0
- package/node_modules/lodash-es/create.js +43 -0
- package/node_modules/lodash-es/curry.js +57 -0
- package/node_modules/lodash-es/curryRight.js +54 -0
- package/node_modules/lodash-es/date.default.js +5 -0
- package/node_modules/lodash-es/date.js +2 -0
- package/node_modules/lodash-es/debounce.js +191 -0
- package/node_modules/lodash-es/deburr.js +45 -0
- package/node_modules/lodash-es/defaultTo.js +25 -0
- package/node_modules/lodash-es/defaults.js +64 -0
- package/node_modules/lodash-es/defaultsDeep.js +30 -0
- package/node_modules/lodash-es/defer.js +26 -0
- package/node_modules/lodash-es/delay.js +28 -0
- package/node_modules/lodash-es/difference.js +33 -0
- package/node_modules/lodash-es/differenceBy.js +44 -0
- package/node_modules/lodash-es/differenceWith.js +40 -0
- package/node_modules/lodash-es/divide.js +22 -0
- package/node_modules/lodash-es/drop.js +38 -0
- package/node_modules/lodash-es/dropRight.js +39 -0
- package/node_modules/lodash-es/dropRightWhile.js +45 -0
- package/node_modules/lodash-es/dropWhile.js +45 -0
- package/node_modules/lodash-es/each.js +1 -0
- package/node_modules/lodash-es/eachRight.js +1 -0
- package/node_modules/lodash-es/endsWith.js +43 -0
- package/node_modules/lodash-es/entries.js +1 -0
- package/node_modules/lodash-es/entriesIn.js +1 -0
- package/node_modules/lodash-es/eq.js +37 -0
- package/node_modules/lodash-es/escape.js +43 -0
- package/node_modules/lodash-es/escapeRegExp.js +32 -0
- package/node_modules/lodash-es/every.js +56 -0
- package/node_modules/lodash-es/extend.js +1 -0
- package/node_modules/lodash-es/extendWith.js +1 -0
- package/node_modules/lodash-es/fill.js +45 -0
- package/node_modules/lodash-es/filter.js +52 -0
- package/node_modules/lodash-es/find.js +42 -0
- package/node_modules/lodash-es/findIndex.js +55 -0
- package/node_modules/lodash-es/findKey.js +44 -0
- package/node_modules/lodash-es/findLast.js +25 -0
- package/node_modules/lodash-es/findLastIndex.js +59 -0
- package/node_modules/lodash-es/findLastKey.js +44 -0
- package/node_modules/lodash-es/first.js +1 -0
- package/node_modules/lodash-es/flake.lock +40 -0
- package/node_modules/lodash-es/flake.nix +20 -0
- package/node_modules/lodash-es/flatMap.js +29 -0
- package/node_modules/lodash-es/flatMapDeep.js +31 -0
- package/node_modules/lodash-es/flatMapDepth.js +31 -0
- package/node_modules/lodash-es/flatten.js +22 -0
- package/node_modules/lodash-es/flattenDeep.js +25 -0
- package/node_modules/lodash-es/flattenDepth.js +33 -0
- package/node_modules/lodash-es/flip.js +28 -0
- package/node_modules/lodash-es/floor.js +26 -0
- package/node_modules/lodash-es/flow.js +27 -0
- package/node_modules/lodash-es/flowRight.js +26 -0
- package/node_modules/lodash-es/forEach.js +41 -0
- package/node_modules/lodash-es/forEachRight.js +31 -0
- package/node_modules/lodash-es/forIn.js +39 -0
- package/node_modules/lodash-es/forInRight.js +37 -0
- package/node_modules/lodash-es/forOwn.js +36 -0
- package/node_modules/lodash-es/forOwnRight.js +34 -0
- package/node_modules/lodash-es/fromPairs.js +28 -0
- package/node_modules/lodash-es/function.default.js +31 -0
- package/node_modules/lodash-es/function.js +24 -0
- package/node_modules/lodash-es/functions.js +31 -0
- package/node_modules/lodash-es/functionsIn.js +31 -0
- package/node_modules/lodash-es/get.js +33 -0
- package/node_modules/lodash-es/groupBy.js +41 -0
- package/node_modules/lodash-es/gt.js +29 -0
- package/node_modules/lodash-es/gte.js +30 -0
- package/node_modules/lodash-es/has.js +35 -0
- package/node_modules/lodash-es/hasIn.js +34 -0
- package/node_modules/lodash-es/head.js +23 -0
- package/node_modules/lodash-es/identity.js +21 -0
- package/node_modules/lodash-es/inRange.js +55 -0
- package/node_modules/lodash-es/includes.js +53 -0
- package/node_modules/lodash-es/indexOf.js +42 -0
- package/node_modules/lodash-es/initial.js +22 -0
- package/node_modules/lodash-es/intersection.js +30 -0
- package/node_modules/lodash-es/intersectionBy.js +45 -0
- package/node_modules/lodash-es/intersectionWith.js +41 -0
- package/node_modules/lodash-es/invert.js +42 -0
- package/node_modules/lodash-es/invertBy.js +56 -0
- package/node_modules/lodash-es/invoke.js +24 -0
- package/node_modules/lodash-es/invokeMap.js +41 -0
- package/node_modules/lodash-es/isArguments.js +36 -0
- package/node_modules/lodash-es/isArray.js +26 -0
- package/node_modules/lodash-es/isArrayBuffer.js +27 -0
- package/node_modules/lodash-es/isArrayLike.js +33 -0
- package/node_modules/lodash-es/isArrayLikeObject.js +33 -0
- package/node_modules/lodash-es/isBoolean.js +29 -0
- package/node_modules/lodash-es/isBuffer.js +38 -0
- package/node_modules/lodash-es/isDate.js +27 -0
- package/node_modules/lodash-es/isElement.js +25 -0
- package/node_modules/lodash-es/isEmpty.js +77 -0
- package/node_modules/lodash-es/isEqual.js +35 -0
- package/node_modules/lodash-es/isEqualWith.js +41 -0
- package/node_modules/lodash-es/isError.js +36 -0
- package/node_modules/lodash-es/isFinite.js +36 -0
- package/node_modules/lodash-es/isFunction.js +37 -0
- package/node_modules/lodash-es/isInteger.js +33 -0
- package/node_modules/lodash-es/isLength.js +35 -0
- package/node_modules/lodash-es/isMap.js +27 -0
- package/node_modules/lodash-es/isMatch.js +36 -0
- package/node_modules/lodash-es/isMatchWith.js +41 -0
- package/node_modules/lodash-es/isNaN.js +38 -0
- package/node_modules/lodash-es/isNative.js +40 -0
- package/node_modules/lodash-es/isNil.js +25 -0
- package/node_modules/lodash-es/isNull.js +22 -0
- package/node_modules/lodash-es/isNumber.js +38 -0
- package/node_modules/lodash-es/isObject.js +31 -0
- package/node_modules/lodash-es/isObjectLike.js +29 -0
- package/node_modules/lodash-es/isPlainObject.js +62 -0
- package/node_modules/lodash-es/isRegExp.js +27 -0
- package/node_modules/lodash-es/isSafeInteger.js +37 -0
- package/node_modules/lodash-es/isSet.js +27 -0
- package/node_modules/lodash-es/isString.js +30 -0
- package/node_modules/lodash-es/isSymbol.js +29 -0
- package/node_modules/lodash-es/isTypedArray.js +27 -0
- package/node_modules/lodash-es/isUndefined.js +22 -0
- package/node_modules/lodash-es/isWeakMap.js +28 -0
- package/node_modules/lodash-es/isWeakSet.js +28 -0
- package/node_modules/lodash-es/iteratee.js +53 -0
- package/node_modules/lodash-es/join.js +26 -0
- package/node_modules/lodash-es/kebabCase.js +28 -0
- package/node_modules/lodash-es/keyBy.js +36 -0
- package/node_modules/lodash-es/keys.js +37 -0
- package/node_modules/lodash-es/keysIn.js +32 -0
- package/node_modules/lodash-es/lang.default.js +71 -0
- package/node_modules/lodash-es/lang.js +57 -0
- package/node_modules/lodash-es/last.js +20 -0
- package/node_modules/lodash-es/lastIndexOf.js +46 -0
- package/node_modules/lodash-es/lodash.default.js +643 -0
- package/node_modules/lodash-es/lodash.js +331 -0
- package/node_modules/lodash-es/lowerCase.js +27 -0
- package/node_modules/lodash-es/lowerFirst.js +22 -0
- package/node_modules/lodash-es/lt.js +29 -0
- package/node_modules/lodash-es/lte.js +30 -0
- package/node_modules/lodash-es/map.js +53 -0
- package/node_modules/lodash-es/mapKeys.js +36 -0
- package/node_modules/lodash-es/mapValues.js +43 -0
- package/node_modules/lodash-es/matches.js +46 -0
- package/node_modules/lodash-es/matchesProperty.js +44 -0
- package/node_modules/lodash-es/math.default.js +21 -0
- package/node_modules/lodash-es/math.js +16 -0
- package/node_modules/lodash-es/max.js +29 -0
- package/node_modules/lodash-es/maxBy.js +34 -0
- package/node_modules/lodash-es/mean.js +22 -0
- package/node_modules/lodash-es/meanBy.js +31 -0
- package/node_modules/lodash-es/memoize.js +73 -0
- package/node_modules/lodash-es/merge.js +39 -0
- package/node_modules/lodash-es/mergeWith.js +39 -0
- package/node_modules/lodash-es/method.js +34 -0
- package/node_modules/lodash-es/methodOf.js +33 -0
- package/node_modules/lodash-es/min.js +29 -0
- package/node_modules/lodash-es/minBy.js +34 -0
- package/node_modules/lodash-es/mixin.js +74 -0
- package/node_modules/lodash-es/multiply.js +22 -0
- package/node_modules/lodash-es/negate.js +40 -0
- package/node_modules/lodash-es/next.js +35 -0
- package/node_modules/lodash-es/noop.js +17 -0
- package/node_modules/lodash-es/now.js +23 -0
- package/node_modules/lodash-es/nth.js +29 -0
- package/node_modules/lodash-es/nthArg.js +32 -0
- package/node_modules/lodash-es/number.default.js +7 -0
- package/node_modules/lodash-es/number.js +4 -0
- package/node_modules/lodash-es/object.default.js +60 -0
- package/node_modules/lodash-es/object.js +48 -0
- package/node_modules/lodash-es/omit.js +57 -0
- package/node_modules/lodash-es/omitBy.js +29 -0
- package/node_modules/lodash-es/once.js +25 -0
- package/node_modules/lodash-es/orderBy.js +47 -0
- package/node_modules/lodash-es/over.js +24 -0
- package/node_modules/lodash-es/overArgs.js +61 -0
- package/node_modules/lodash-es/overEvery.js +34 -0
- package/node_modules/lodash-es/overSome.js +37 -0
- package/node_modules/lodash-es/package.json +21 -0
- package/node_modules/lodash-es/pad.js +49 -0
- package/node_modules/lodash-es/padEnd.js +39 -0
- package/node_modules/lodash-es/padStart.js +39 -0
- package/node_modules/lodash-es/parseInt.js +43 -0
- package/node_modules/lodash-es/partial.js +50 -0
- package/node_modules/lodash-es/partialRight.js +49 -0
- package/node_modules/lodash-es/partition.js +43 -0
- package/node_modules/lodash-es/pick.js +25 -0
- package/node_modules/lodash-es/pickBy.js +37 -0
- package/node_modules/lodash-es/plant.js +48 -0
- package/node_modules/lodash-es/property.js +32 -0
- package/node_modules/lodash-es/propertyOf.js +30 -0
- package/node_modules/lodash-es/pull.js +29 -0
- package/node_modules/lodash-es/pullAll.js +29 -0
- package/node_modules/lodash-es/pullAllBy.js +33 -0
- package/node_modules/lodash-es/pullAllWith.js +32 -0
- package/node_modules/lodash-es/pullAt.js +43 -0
- package/node_modules/lodash-es/random.js +82 -0
- package/node_modules/lodash-es/range.js +46 -0
- package/node_modules/lodash-es/rangeRight.js +41 -0
- package/node_modules/lodash-es/rearg.js +33 -0
- package/node_modules/lodash-es/reduce.js +51 -0
- package/node_modules/lodash-es/reduceRight.js +36 -0
- package/node_modules/lodash-es/reject.js +46 -0
- package/node_modules/lodash-es/release.md +48 -0
- package/node_modules/lodash-es/remove.js +53 -0
- package/node_modules/lodash-es/repeat.js +37 -0
- package/node_modules/lodash-es/replace.js +29 -0
- package/node_modules/lodash-es/rest.js +40 -0
- package/node_modules/lodash-es/result.js +56 -0
- package/node_modules/lodash-es/reverse.js +34 -0
- package/node_modules/lodash-es/round.js +26 -0
- package/node_modules/lodash-es/sample.js +24 -0
- package/node_modules/lodash-es/sampleSize.js +37 -0
- package/node_modules/lodash-es/seq.default.js +20 -0
- package/node_modules/lodash-es/seq.js +15 -0
- package/node_modules/lodash-es/set.js +35 -0
- package/node_modules/lodash-es/setWith.js +32 -0
- package/node_modules/lodash-es/shuffle.js +25 -0
- package/node_modules/lodash-es/size.js +46 -0
- package/node_modules/lodash-es/slice.js +37 -0
- package/node_modules/lodash-es/snakeCase.js +28 -0
- package/node_modules/lodash-es/some.js +51 -0
- package/node_modules/lodash-es/sortBy.js +48 -0
- package/node_modules/lodash-es/sortedIndex.js +24 -0
- package/node_modules/lodash-es/sortedIndexBy.js +33 -0
- package/node_modules/lodash-es/sortedIndexOf.js +31 -0
- package/node_modules/lodash-es/sortedLastIndex.js +25 -0
- package/node_modules/lodash-es/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash-es/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash-es/sortedUniq.js +24 -0
- package/node_modules/lodash-es/sortedUniqBy.js +26 -0
- package/node_modules/lodash-es/split.js +52 -0
- package/node_modules/lodash-es/spread.js +63 -0
- package/node_modules/lodash-es/startCase.js +29 -0
- package/node_modules/lodash-es/startsWith.js +39 -0
- package/node_modules/lodash-es/string.default.js +41 -0
- package/node_modules/lodash-es/string.js +32 -0
- package/node_modules/lodash-es/stubArray.js +23 -0
- package/node_modules/lodash-es/stubFalse.js +18 -0
- package/node_modules/lodash-es/stubObject.js +23 -0
- package/node_modules/lodash-es/stubString.js +18 -0
- package/node_modules/lodash-es/stubTrue.js +18 -0
- package/node_modules/lodash-es/subtract.js +22 -0
- package/node_modules/lodash-es/sum.js +24 -0
- package/node_modules/lodash-es/sumBy.js +33 -0
- package/node_modules/lodash-es/tail.js +22 -0
- package/node_modules/lodash-es/take.js +37 -0
- package/node_modules/lodash-es/takeRight.js +39 -0
- package/node_modules/lodash-es/takeRightWhile.js +45 -0
- package/node_modules/lodash-es/takeWhile.js +45 -0
- package/node_modules/lodash-es/tap.js +29 -0
- package/node_modules/lodash-es/template.js +272 -0
- package/node_modules/lodash-es/templateSettings.js +67 -0
- package/node_modules/lodash-es/throttle.js +69 -0
- package/node_modules/lodash-es/thru.js +28 -0
- package/node_modules/lodash-es/times.js +51 -0
- package/node_modules/lodash-es/toArray.js +58 -0
- package/node_modules/lodash-es/toFinite.js +42 -0
- package/node_modules/lodash-es/toInteger.js +36 -0
- package/node_modules/lodash-es/toIterator.js +23 -0
- package/node_modules/lodash-es/toJSON.js +1 -0
- package/node_modules/lodash-es/toLength.js +38 -0
- package/node_modules/lodash-es/toLower.js +28 -0
- package/node_modules/lodash-es/toNumber.js +64 -0
- package/node_modules/lodash-es/toPairs.js +30 -0
- package/node_modules/lodash-es/toPairsIn.js +30 -0
- package/node_modules/lodash-es/toPath.js +33 -0
- package/node_modules/lodash-es/toPlainObject.js +32 -0
- package/node_modules/lodash-es/toSafeInteger.js +37 -0
- package/node_modules/lodash-es/toString.js +28 -0
- package/node_modules/lodash-es/toUpper.js +28 -0
- package/node_modules/lodash-es/transform.js +65 -0
- package/node_modules/lodash-es/trim.js +47 -0
- package/node_modules/lodash-es/trimEnd.js +41 -0
- package/node_modules/lodash-es/trimStart.js +43 -0
- package/node_modules/lodash-es/truncate.js +111 -0
- package/node_modules/lodash-es/unary.js +22 -0
- package/node_modules/lodash-es/unescape.js +34 -0
- package/node_modules/lodash-es/union.js +26 -0
- package/node_modules/lodash-es/unionBy.js +39 -0
- package/node_modules/lodash-es/unionWith.js +34 -0
- package/node_modules/lodash-es/uniq.js +25 -0
- package/node_modules/lodash-es/uniqBy.js +31 -0
- package/node_modules/lodash-es/uniqWith.js +28 -0
- package/node_modules/lodash-es/uniqueId.js +28 -0
- package/node_modules/lodash-es/unset.js +34 -0
- package/node_modules/lodash-es/unzip.js +45 -0
- package/node_modules/lodash-es/unzipWith.js +39 -0
- package/node_modules/lodash-es/update.js +35 -0
- package/node_modules/lodash-es/updateWith.js +33 -0
- package/node_modules/lodash-es/upperCase.js +27 -0
- package/node_modules/lodash-es/upperFirst.js +22 -0
- package/node_modules/lodash-es/util.default.js +42 -0
- package/node_modules/lodash-es/util.js +33 -0
- package/node_modules/lodash-es/value.js +1 -0
- package/node_modules/lodash-es/valueOf.js +1 -0
- package/node_modules/lodash-es/values.js +34 -0
- package/node_modules/lodash-es/valuesIn.js +32 -0
- package/node_modules/lodash-es/without.js +31 -0
- package/node_modules/lodash-es/words.js +35 -0
- package/node_modules/lodash-es/wrap.js +30 -0
- package/node_modules/lodash-es/wrapperAt.js +48 -0
- package/node_modules/lodash-es/wrapperChain.js +34 -0
- package/node_modules/lodash-es/wrapperLodash.js +147 -0
- package/node_modules/lodash-es/wrapperReverse.js +44 -0
- package/node_modules/lodash-es/wrapperValue.js +21 -0
- package/node_modules/lodash-es/xor.js +28 -0
- package/node_modules/lodash-es/xorBy.js +39 -0
- package/node_modules/lodash-es/xorWith.js +34 -0
- package/node_modules/lodash-es/zip.js +22 -0
- package/node_modules/lodash-es/zipObject.js +24 -0
- package/node_modules/lodash-es/zipObjectDeep.js +23 -0
- package/node_modules/lodash-es/zipWith.js +32 -0
- package/node_modules/resize-observer-polyfill/LICENSE +21 -0
- package/node_modules/resize-observer-polyfill/README.md +112 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +928 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.global.js +1034 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.js +936 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.js.flow +32 -0
- package/node_modules/resize-observer-polyfill/package.json +64 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObservation.js +76 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserver.js +47 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserverController.js +238 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserverEntry.js +40 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserverSPI.js +203 -0
- package/node_modules/resize-observer-polyfill/src/index.d.ts +40 -0
- package/node_modules/resize-observer-polyfill/src/index.js +11 -0
- package/node_modules/resize-observer-polyfill/src/index.js.flow +32 -0
- package/node_modules/resize-observer-polyfill/src/shims/es6-collections.js +115 -0
- package/node_modules/resize-observer-polyfill/src/shims/global.js +17 -0
- package/node_modules/resize-observer-polyfill/src/shims/requestAnimationFrame.js +18 -0
- package/node_modules/resize-observer-polyfill/src/utils/defineConfigurable.js +19 -0
- package/node_modules/resize-observer-polyfill/src/utils/geometry.js +233 -0
- package/node_modules/resize-observer-polyfill/src/utils/getWindowOf.js +18 -0
- package/node_modules/resize-observer-polyfill/src/utils/isBrowser.js +4 -0
- package/node_modules/resize-observer-polyfill/src/utils/throttle.js +78 -0
- package/node_modules/uuid/CHANGELOG.md +335 -0
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +497 -0
- package/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs/index.js +31 -0
- package/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/max.js +3 -0
- package/node_modules/uuid/dist/cjs/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/node_modules/uuid/dist/cjs/native.d.ts +5 -0
- package/node_modules/uuid/dist/cjs/native.js +4 -0
- package/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/node_modules/uuid/dist/cjs/package.json +1 -0
- package/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/node_modules/uuid/dist/cjs/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs/types.js +2 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs/v1.js +78 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v4.js +23 -0
- package/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v7.js +60 -0
- package/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/version.js +10 -0
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs-browser/v1.js +78 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v4.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v7.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm/index.js +14 -0
- package/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm/max.js +1 -0
- package/node_modules/uuid/dist/esm/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm/md5.js +11 -0
- package/node_modules/uuid/dist/esm/native.d.ts +5 -0
- package/node_modules/uuid/dist/esm/native.js +2 -0
- package/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm/nil.js +1 -0
- package/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm/parse.js +9 -0
- package/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm/regex.js +1 -0
- package/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm/rng.js +10 -0
- package/node_modules/uuid/dist/esm/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/node_modules/uuid/dist/esm/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm/types.js +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm/v1.js +75 -0
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v3.js +9 -0
- package/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm/v35.js +36 -0
- package/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v4.js +21 -0
- package/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v5.js +9 -0
- package/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v6.js +17 -0
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v7.js +57 -0
- package/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm/validate.js +5 -0
- package/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm/version.js +8 -0
- package/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm-browser/index.js +14 -0
- package/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +135 -0
- package/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/native.js +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +9 -0
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +11 -0
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
- package/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +75 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +9 -0
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +21 -0
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +9 -0
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v6.js +17 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +57 -0
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +5 -0
- package/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/version.js +8 -0
- package/node_modules/uuid/package.json +134 -0
- package/node_modules/worker-timers/LICENSE +21 -0
- package/node_modules/worker-timers/README.md +71 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts +2 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js +15 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js.map +1 -0
- package/node_modules/worker-timers/build/es2019/module.d.ts +6 -0
- package/node_modules/worker-timers/build/es2019/module.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/module.js +9 -0
- package/node_modules/worker-timers/build/es2019/module.js.map +1 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts +2 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.js +3 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.js.map +1 -0
- package/node_modules/worker-timers/build/es5/bundle.js +50 -0
- package/node_modules/worker-timers/package.json +106 -0
- package/node_modules/worker-timers/src/factories/load-or-return-broker.ts +19 -0
- package/node_modules/worker-timers/src/module.ts +13 -0
- package/node_modules/worker-timers/src/tsconfig.json +6 -0
- package/node_modules/worker-timers/src/worker/worker.ts +2 -0
- package/package.json +9 -2
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
;(function (root, factory) {
|
|
2
|
+
if (typeof exports === "object") {
|
|
3
|
+
// CommonJS
|
|
4
|
+
module.exports = exports = factory();
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
// AMD
|
|
8
|
+
define([], factory);
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
// Global (browser)
|
|
12
|
+
root.CryptoJS = factory();
|
|
13
|
+
}
|
|
14
|
+
}(this, function () {
|
|
15
|
+
|
|
16
|
+
/*globals window, global, require*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* CryptoJS core components.
|
|
20
|
+
*/
|
|
21
|
+
var CryptoJS = CryptoJS || (function (Math, undefined) {
|
|
22
|
+
|
|
23
|
+
var crypto;
|
|
24
|
+
|
|
25
|
+
// Native crypto from window (Browser)
|
|
26
|
+
if (typeof window !== 'undefined' && window.crypto) {
|
|
27
|
+
crypto = window.crypto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Native crypto in web worker (Browser)
|
|
31
|
+
if (typeof self !== 'undefined' && self.crypto) {
|
|
32
|
+
crypto = self.crypto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Native crypto from worker
|
|
36
|
+
if (typeof globalThis !== 'undefined' && globalThis.crypto) {
|
|
37
|
+
crypto = globalThis.crypto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Native (experimental IE 11) crypto from window (Browser)
|
|
41
|
+
if (!crypto && typeof window !== 'undefined' && window.msCrypto) {
|
|
42
|
+
crypto = window.msCrypto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Native crypto from global (NodeJS)
|
|
46
|
+
if (!crypto && typeof global !== 'undefined' && global.crypto) {
|
|
47
|
+
crypto = global.crypto;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Native crypto import via require (NodeJS)
|
|
51
|
+
if (!crypto && typeof require === 'function') {
|
|
52
|
+
try {
|
|
53
|
+
crypto = require('crypto');
|
|
54
|
+
} catch (err) {}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
* Cryptographically secure pseudorandom number generator
|
|
59
|
+
*
|
|
60
|
+
* As Math.random() is cryptographically not safe to use
|
|
61
|
+
*/
|
|
62
|
+
var cryptoSecureRandomInt = function () {
|
|
63
|
+
if (crypto) {
|
|
64
|
+
// Use getRandomValues method (Browser)
|
|
65
|
+
if (typeof crypto.getRandomValues === 'function') {
|
|
66
|
+
try {
|
|
67
|
+
return crypto.getRandomValues(new Uint32Array(1))[0];
|
|
68
|
+
} catch (err) {}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Use randomBytes method (NodeJS)
|
|
72
|
+
if (typeof crypto.randomBytes === 'function') {
|
|
73
|
+
try {
|
|
74
|
+
return crypto.randomBytes(4).readInt32LE();
|
|
75
|
+
} catch (err) {}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
throw new Error('Native crypto module could not be used to get secure random number.');
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/*
|
|
83
|
+
* Local polyfill of Object.create
|
|
84
|
+
|
|
85
|
+
*/
|
|
86
|
+
var create = Object.create || (function () {
|
|
87
|
+
function F() {}
|
|
88
|
+
|
|
89
|
+
return function (obj) {
|
|
90
|
+
var subtype;
|
|
91
|
+
|
|
92
|
+
F.prototype = obj;
|
|
93
|
+
|
|
94
|
+
subtype = new F();
|
|
95
|
+
|
|
96
|
+
F.prototype = null;
|
|
97
|
+
|
|
98
|
+
return subtype;
|
|
99
|
+
};
|
|
100
|
+
}());
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* CryptoJS namespace.
|
|
104
|
+
*/
|
|
105
|
+
var C = {};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Library namespace.
|
|
109
|
+
*/
|
|
110
|
+
var C_lib = C.lib = {};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Base object for prototypal inheritance.
|
|
114
|
+
*/
|
|
115
|
+
var Base = C_lib.Base = (function () {
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
/**
|
|
120
|
+
* Creates a new object that inherits from this object.
|
|
121
|
+
*
|
|
122
|
+
* @param {Object} overrides Properties to copy into the new object.
|
|
123
|
+
*
|
|
124
|
+
* @return {Object} The new object.
|
|
125
|
+
*
|
|
126
|
+
* @static
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
*
|
|
130
|
+
* var MyType = CryptoJS.lib.Base.extend({
|
|
131
|
+
* field: 'value',
|
|
132
|
+
*
|
|
133
|
+
* method: function () {
|
|
134
|
+
* }
|
|
135
|
+
* });
|
|
136
|
+
*/
|
|
137
|
+
extend: function (overrides) {
|
|
138
|
+
// Spawn
|
|
139
|
+
var subtype = create(this);
|
|
140
|
+
|
|
141
|
+
// Augment
|
|
142
|
+
if (overrides) {
|
|
143
|
+
subtype.mixIn(overrides);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Create default initializer
|
|
147
|
+
if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {
|
|
148
|
+
subtype.init = function () {
|
|
149
|
+
subtype.$super.init.apply(this, arguments);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Initializer's prototype is the subtype object
|
|
154
|
+
subtype.init.prototype = subtype;
|
|
155
|
+
|
|
156
|
+
// Reference supertype
|
|
157
|
+
subtype.$super = this;
|
|
158
|
+
|
|
159
|
+
return subtype;
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Extends this object and runs the init method.
|
|
164
|
+
* Arguments to create() will be passed to init().
|
|
165
|
+
*
|
|
166
|
+
* @return {Object} The new object.
|
|
167
|
+
*
|
|
168
|
+
* @static
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
*
|
|
172
|
+
* var instance = MyType.create();
|
|
173
|
+
*/
|
|
174
|
+
create: function () {
|
|
175
|
+
var instance = this.extend();
|
|
176
|
+
instance.init.apply(instance, arguments);
|
|
177
|
+
|
|
178
|
+
return instance;
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Initializes a newly created object.
|
|
183
|
+
* Override this method to add some logic when your objects are created.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
*
|
|
187
|
+
* var MyType = CryptoJS.lib.Base.extend({
|
|
188
|
+
* init: function () {
|
|
189
|
+
* // ...
|
|
190
|
+
* }
|
|
191
|
+
* });
|
|
192
|
+
*/
|
|
193
|
+
init: function () {
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Copies properties into this object.
|
|
198
|
+
*
|
|
199
|
+
* @param {Object} properties The properties to mix in.
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
*
|
|
203
|
+
* MyType.mixIn({
|
|
204
|
+
* field: 'value'
|
|
205
|
+
* });
|
|
206
|
+
*/
|
|
207
|
+
mixIn: function (properties) {
|
|
208
|
+
for (var propertyName in properties) {
|
|
209
|
+
if (properties.hasOwnProperty(propertyName)) {
|
|
210
|
+
this[propertyName] = properties[propertyName];
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// IE won't copy toString using the loop above
|
|
215
|
+
if (properties.hasOwnProperty('toString')) {
|
|
216
|
+
this.toString = properties.toString;
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Creates a copy of this object.
|
|
222
|
+
*
|
|
223
|
+
* @return {Object} The clone.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
*
|
|
227
|
+
* var clone = instance.clone();
|
|
228
|
+
*/
|
|
229
|
+
clone: function () {
|
|
230
|
+
return this.init.prototype.extend(this);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}());
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* An array of 32-bit words.
|
|
237
|
+
*
|
|
238
|
+
* @property {Array} words The array of 32-bit words.
|
|
239
|
+
* @property {number} sigBytes The number of significant bytes in this word array.
|
|
240
|
+
*/
|
|
241
|
+
var WordArray = C_lib.WordArray = Base.extend({
|
|
242
|
+
/**
|
|
243
|
+
* Initializes a newly created word array.
|
|
244
|
+
*
|
|
245
|
+
* @param {Array} words (Optional) An array of 32-bit words.
|
|
246
|
+
* @param {number} sigBytes (Optional) The number of significant bytes in the words.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
*
|
|
250
|
+
* var wordArray = CryptoJS.lib.WordArray.create();
|
|
251
|
+
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
252
|
+
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
253
|
+
*/
|
|
254
|
+
init: function (words, sigBytes) {
|
|
255
|
+
words = this.words = words || [];
|
|
256
|
+
|
|
257
|
+
if (sigBytes != undefined) {
|
|
258
|
+
this.sigBytes = sigBytes;
|
|
259
|
+
} else {
|
|
260
|
+
this.sigBytes = words.length * 4;
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Converts this word array to a string.
|
|
266
|
+
*
|
|
267
|
+
* @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
|
|
268
|
+
*
|
|
269
|
+
* @return {string} The stringified word array.
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
*
|
|
273
|
+
* var string = wordArray + '';
|
|
274
|
+
* var string = wordArray.toString();
|
|
275
|
+
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
276
|
+
*/
|
|
277
|
+
toString: function (encoder) {
|
|
278
|
+
return (encoder || Hex).stringify(this);
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Concatenates a word array to this word array.
|
|
283
|
+
*
|
|
284
|
+
* @param {WordArray} wordArray The word array to append.
|
|
285
|
+
*
|
|
286
|
+
* @return {WordArray} This word array.
|
|
287
|
+
*
|
|
288
|
+
* @example
|
|
289
|
+
*
|
|
290
|
+
* wordArray1.concat(wordArray2);
|
|
291
|
+
*/
|
|
292
|
+
concat: function (wordArray) {
|
|
293
|
+
// Shortcuts
|
|
294
|
+
var thisWords = this.words;
|
|
295
|
+
var thatWords = wordArray.words;
|
|
296
|
+
var thisSigBytes = this.sigBytes;
|
|
297
|
+
var thatSigBytes = wordArray.sigBytes;
|
|
298
|
+
|
|
299
|
+
// Clamp excess bits
|
|
300
|
+
this.clamp();
|
|
301
|
+
|
|
302
|
+
// Concat
|
|
303
|
+
if (thisSigBytes % 4) {
|
|
304
|
+
// Copy one byte at a time
|
|
305
|
+
for (var i = 0; i < thatSigBytes; i++) {
|
|
306
|
+
var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
|
|
307
|
+
thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
|
|
308
|
+
}
|
|
309
|
+
} else {
|
|
310
|
+
// Copy one word at a time
|
|
311
|
+
for (var j = 0; j < thatSigBytes; j += 4) {
|
|
312
|
+
thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
this.sigBytes += thatSigBytes;
|
|
316
|
+
|
|
317
|
+
// Chainable
|
|
318
|
+
return this;
|
|
319
|
+
},
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Removes insignificant bits.
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
*
|
|
326
|
+
* wordArray.clamp();
|
|
327
|
+
*/
|
|
328
|
+
clamp: function () {
|
|
329
|
+
// Shortcuts
|
|
330
|
+
var words = this.words;
|
|
331
|
+
var sigBytes = this.sigBytes;
|
|
332
|
+
|
|
333
|
+
// Clamp
|
|
334
|
+
words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);
|
|
335
|
+
words.length = Math.ceil(sigBytes / 4);
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Creates a copy of this word array.
|
|
340
|
+
*
|
|
341
|
+
* @return {WordArray} The clone.
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
*
|
|
345
|
+
* var clone = wordArray.clone();
|
|
346
|
+
*/
|
|
347
|
+
clone: function () {
|
|
348
|
+
var clone = Base.clone.call(this);
|
|
349
|
+
clone.words = this.words.slice(0);
|
|
350
|
+
|
|
351
|
+
return clone;
|
|
352
|
+
},
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Creates a word array filled with random bytes.
|
|
356
|
+
*
|
|
357
|
+
* @param {number} nBytes The number of random bytes to generate.
|
|
358
|
+
*
|
|
359
|
+
* @return {WordArray} The random word array.
|
|
360
|
+
*
|
|
361
|
+
* @static
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
*
|
|
365
|
+
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
366
|
+
*/
|
|
367
|
+
random: function (nBytes) {
|
|
368
|
+
var words = [];
|
|
369
|
+
|
|
370
|
+
for (var i = 0; i < nBytes; i += 4) {
|
|
371
|
+
words.push(cryptoSecureRandomInt());
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return new WordArray.init(words, nBytes);
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Encoder namespace.
|
|
380
|
+
*/
|
|
381
|
+
var C_enc = C.enc = {};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Hex encoding strategy.
|
|
385
|
+
*/
|
|
386
|
+
var Hex = C_enc.Hex = {
|
|
387
|
+
/**
|
|
388
|
+
* Converts a word array to a hex string.
|
|
389
|
+
*
|
|
390
|
+
* @param {WordArray} wordArray The word array.
|
|
391
|
+
*
|
|
392
|
+
* @return {string} The hex string.
|
|
393
|
+
*
|
|
394
|
+
* @static
|
|
395
|
+
*
|
|
396
|
+
* @example
|
|
397
|
+
*
|
|
398
|
+
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
399
|
+
*/
|
|
400
|
+
stringify: function (wordArray) {
|
|
401
|
+
// Shortcuts
|
|
402
|
+
var words = wordArray.words;
|
|
403
|
+
var sigBytes = wordArray.sigBytes;
|
|
404
|
+
|
|
405
|
+
// Convert
|
|
406
|
+
var hexChars = [];
|
|
407
|
+
for (var i = 0; i < sigBytes; i++) {
|
|
408
|
+
var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
|
|
409
|
+
hexChars.push((bite >>> 4).toString(16));
|
|
410
|
+
hexChars.push((bite & 0x0f).toString(16));
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return hexChars.join('');
|
|
414
|
+
},
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Converts a hex string to a word array.
|
|
418
|
+
*
|
|
419
|
+
* @param {string} hexStr The hex string.
|
|
420
|
+
*
|
|
421
|
+
* @return {WordArray} The word array.
|
|
422
|
+
*
|
|
423
|
+
* @static
|
|
424
|
+
*
|
|
425
|
+
* @example
|
|
426
|
+
*
|
|
427
|
+
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
428
|
+
*/
|
|
429
|
+
parse: function (hexStr) {
|
|
430
|
+
// Shortcut
|
|
431
|
+
var hexStrLength = hexStr.length;
|
|
432
|
+
|
|
433
|
+
// Convert
|
|
434
|
+
var words = [];
|
|
435
|
+
for (var i = 0; i < hexStrLength; i += 2) {
|
|
436
|
+
words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
return new WordArray.init(words, hexStrLength / 2);
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Latin1 encoding strategy.
|
|
445
|
+
*/
|
|
446
|
+
var Latin1 = C_enc.Latin1 = {
|
|
447
|
+
/**
|
|
448
|
+
* Converts a word array to a Latin1 string.
|
|
449
|
+
*
|
|
450
|
+
* @param {WordArray} wordArray The word array.
|
|
451
|
+
*
|
|
452
|
+
* @return {string} The Latin1 string.
|
|
453
|
+
*
|
|
454
|
+
* @static
|
|
455
|
+
*
|
|
456
|
+
* @example
|
|
457
|
+
*
|
|
458
|
+
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
459
|
+
*/
|
|
460
|
+
stringify: function (wordArray) {
|
|
461
|
+
// Shortcuts
|
|
462
|
+
var words = wordArray.words;
|
|
463
|
+
var sigBytes = wordArray.sigBytes;
|
|
464
|
+
|
|
465
|
+
// Convert
|
|
466
|
+
var latin1Chars = [];
|
|
467
|
+
for (var i = 0; i < sigBytes; i++) {
|
|
468
|
+
var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
|
|
469
|
+
latin1Chars.push(String.fromCharCode(bite));
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
return latin1Chars.join('');
|
|
473
|
+
},
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Converts a Latin1 string to a word array.
|
|
477
|
+
*
|
|
478
|
+
* @param {string} latin1Str The Latin1 string.
|
|
479
|
+
*
|
|
480
|
+
* @return {WordArray} The word array.
|
|
481
|
+
*
|
|
482
|
+
* @static
|
|
483
|
+
*
|
|
484
|
+
* @example
|
|
485
|
+
*
|
|
486
|
+
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
487
|
+
*/
|
|
488
|
+
parse: function (latin1Str) {
|
|
489
|
+
// Shortcut
|
|
490
|
+
var latin1StrLength = latin1Str.length;
|
|
491
|
+
|
|
492
|
+
// Convert
|
|
493
|
+
var words = [];
|
|
494
|
+
for (var i = 0; i < latin1StrLength; i++) {
|
|
495
|
+
words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
return new WordArray.init(words, latin1StrLength);
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* UTF-8 encoding strategy.
|
|
504
|
+
*/
|
|
505
|
+
var Utf8 = C_enc.Utf8 = {
|
|
506
|
+
/**
|
|
507
|
+
* Converts a word array to a UTF-8 string.
|
|
508
|
+
*
|
|
509
|
+
* @param {WordArray} wordArray The word array.
|
|
510
|
+
*
|
|
511
|
+
* @return {string} The UTF-8 string.
|
|
512
|
+
*
|
|
513
|
+
* @static
|
|
514
|
+
*
|
|
515
|
+
* @example
|
|
516
|
+
*
|
|
517
|
+
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
518
|
+
*/
|
|
519
|
+
stringify: function (wordArray) {
|
|
520
|
+
try {
|
|
521
|
+
return decodeURIComponent(escape(Latin1.stringify(wordArray)));
|
|
522
|
+
} catch (e) {
|
|
523
|
+
throw new Error('Malformed UTF-8 data');
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Converts a UTF-8 string to a word array.
|
|
529
|
+
*
|
|
530
|
+
* @param {string} utf8Str The UTF-8 string.
|
|
531
|
+
*
|
|
532
|
+
* @return {WordArray} The word array.
|
|
533
|
+
*
|
|
534
|
+
* @static
|
|
535
|
+
*
|
|
536
|
+
* @example
|
|
537
|
+
*
|
|
538
|
+
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
539
|
+
*/
|
|
540
|
+
parse: function (utf8Str) {
|
|
541
|
+
return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Abstract buffered block algorithm template.
|
|
547
|
+
*
|
|
548
|
+
* The property blockSize must be implemented in a concrete subtype.
|
|
549
|
+
*
|
|
550
|
+
* @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
|
|
551
|
+
*/
|
|
552
|
+
var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
|
|
553
|
+
/**
|
|
554
|
+
* Resets this block algorithm's data buffer to its initial state.
|
|
555
|
+
*
|
|
556
|
+
* @example
|
|
557
|
+
*
|
|
558
|
+
* bufferedBlockAlgorithm.reset();
|
|
559
|
+
*/
|
|
560
|
+
reset: function () {
|
|
561
|
+
// Initial values
|
|
562
|
+
this._data = new WordArray.init();
|
|
563
|
+
this._nDataBytes = 0;
|
|
564
|
+
},
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Adds new data to this block algorithm's buffer.
|
|
568
|
+
*
|
|
569
|
+
* @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
|
|
570
|
+
*
|
|
571
|
+
* @example
|
|
572
|
+
*
|
|
573
|
+
* bufferedBlockAlgorithm._append('data');
|
|
574
|
+
* bufferedBlockAlgorithm._append(wordArray);
|
|
575
|
+
*/
|
|
576
|
+
_append: function (data) {
|
|
577
|
+
// Convert string to WordArray, else assume WordArray already
|
|
578
|
+
if (typeof data == 'string') {
|
|
579
|
+
data = Utf8.parse(data);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// Append
|
|
583
|
+
this._data.concat(data);
|
|
584
|
+
this._nDataBytes += data.sigBytes;
|
|
585
|
+
},
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Processes available data blocks.
|
|
589
|
+
*
|
|
590
|
+
* This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
|
|
591
|
+
*
|
|
592
|
+
* @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
|
|
593
|
+
*
|
|
594
|
+
* @return {WordArray} The processed data.
|
|
595
|
+
*
|
|
596
|
+
* @example
|
|
597
|
+
*
|
|
598
|
+
* var processedData = bufferedBlockAlgorithm._process();
|
|
599
|
+
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
600
|
+
*/
|
|
601
|
+
_process: function (doFlush) {
|
|
602
|
+
var processedWords;
|
|
603
|
+
|
|
604
|
+
// Shortcuts
|
|
605
|
+
var data = this._data;
|
|
606
|
+
var dataWords = data.words;
|
|
607
|
+
var dataSigBytes = data.sigBytes;
|
|
608
|
+
var blockSize = this.blockSize;
|
|
609
|
+
var blockSizeBytes = blockSize * 4;
|
|
610
|
+
|
|
611
|
+
// Count blocks ready
|
|
612
|
+
var nBlocksReady = dataSigBytes / blockSizeBytes;
|
|
613
|
+
if (doFlush) {
|
|
614
|
+
// Round up to include partial blocks
|
|
615
|
+
nBlocksReady = Math.ceil(nBlocksReady);
|
|
616
|
+
} else {
|
|
617
|
+
// Round down to include only full blocks,
|
|
618
|
+
// less the number of blocks that must remain in the buffer
|
|
619
|
+
nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
// Count words ready
|
|
623
|
+
var nWordsReady = nBlocksReady * blockSize;
|
|
624
|
+
|
|
625
|
+
// Count bytes ready
|
|
626
|
+
var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);
|
|
627
|
+
|
|
628
|
+
// Process blocks
|
|
629
|
+
if (nWordsReady) {
|
|
630
|
+
for (var offset = 0; offset < nWordsReady; offset += blockSize) {
|
|
631
|
+
// Perform concrete-algorithm logic
|
|
632
|
+
this._doProcessBlock(dataWords, offset);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// Remove processed words
|
|
636
|
+
processedWords = dataWords.splice(0, nWordsReady);
|
|
637
|
+
data.sigBytes -= nBytesReady;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// Return processed words
|
|
641
|
+
return new WordArray.init(processedWords, nBytesReady);
|
|
642
|
+
},
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Creates a copy of this object.
|
|
646
|
+
*
|
|
647
|
+
* @return {Object} The clone.
|
|
648
|
+
*
|
|
649
|
+
* @example
|
|
650
|
+
*
|
|
651
|
+
* var clone = bufferedBlockAlgorithm.clone();
|
|
652
|
+
*/
|
|
653
|
+
clone: function () {
|
|
654
|
+
var clone = Base.clone.call(this);
|
|
655
|
+
clone._data = this._data.clone();
|
|
656
|
+
|
|
657
|
+
return clone;
|
|
658
|
+
},
|
|
659
|
+
|
|
660
|
+
_minBufferSize: 0
|
|
661
|
+
});
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Abstract hasher template.
|
|
665
|
+
*
|
|
666
|
+
* @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
|
|
667
|
+
*/
|
|
668
|
+
var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
|
|
669
|
+
/**
|
|
670
|
+
* Configuration options.
|
|
671
|
+
*/
|
|
672
|
+
cfg: Base.extend(),
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Initializes a newly created hasher.
|
|
676
|
+
*
|
|
677
|
+
* @param {Object} cfg (Optional) The configuration options to use for this hash computation.
|
|
678
|
+
*
|
|
679
|
+
* @example
|
|
680
|
+
*
|
|
681
|
+
* var hasher = CryptoJS.algo.SHA256.create();
|
|
682
|
+
*/
|
|
683
|
+
init: function (cfg) {
|
|
684
|
+
// Apply config defaults
|
|
685
|
+
this.cfg = this.cfg.extend(cfg);
|
|
686
|
+
|
|
687
|
+
// Set initial values
|
|
688
|
+
this.reset();
|
|
689
|
+
},
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Resets this hasher to its initial state.
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
*
|
|
696
|
+
* hasher.reset();
|
|
697
|
+
*/
|
|
698
|
+
reset: function () {
|
|
699
|
+
// Reset data buffer
|
|
700
|
+
BufferedBlockAlgorithm.reset.call(this);
|
|
701
|
+
|
|
702
|
+
// Perform concrete-hasher logic
|
|
703
|
+
this._doReset();
|
|
704
|
+
},
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Updates this hasher with a message.
|
|
708
|
+
*
|
|
709
|
+
* @param {WordArray|string} messageUpdate The message to append.
|
|
710
|
+
*
|
|
711
|
+
* @return {Hasher} This hasher.
|
|
712
|
+
*
|
|
713
|
+
* @example
|
|
714
|
+
*
|
|
715
|
+
* hasher.update('message');
|
|
716
|
+
* hasher.update(wordArray);
|
|
717
|
+
*/
|
|
718
|
+
update: function (messageUpdate) {
|
|
719
|
+
// Append
|
|
720
|
+
this._append(messageUpdate);
|
|
721
|
+
|
|
722
|
+
// Update the hash
|
|
723
|
+
this._process();
|
|
724
|
+
|
|
725
|
+
// Chainable
|
|
726
|
+
return this;
|
|
727
|
+
},
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Finalizes the hash computation.
|
|
731
|
+
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
732
|
+
*
|
|
733
|
+
* @param {WordArray|string} messageUpdate (Optional) A final message update.
|
|
734
|
+
*
|
|
735
|
+
* @return {WordArray} The hash.
|
|
736
|
+
*
|
|
737
|
+
* @example
|
|
738
|
+
*
|
|
739
|
+
* var hash = hasher.finalize();
|
|
740
|
+
* var hash = hasher.finalize('message');
|
|
741
|
+
* var hash = hasher.finalize(wordArray);
|
|
742
|
+
*/
|
|
743
|
+
finalize: function (messageUpdate) {
|
|
744
|
+
// Final message update
|
|
745
|
+
if (messageUpdate) {
|
|
746
|
+
this._append(messageUpdate);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
// Perform concrete-hasher logic
|
|
750
|
+
var hash = this._doFinalize();
|
|
751
|
+
|
|
752
|
+
return hash;
|
|
753
|
+
},
|
|
754
|
+
|
|
755
|
+
blockSize: 512/32,
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Creates a shortcut function to a hasher's object interface.
|
|
759
|
+
*
|
|
760
|
+
* @param {Hasher} hasher The hasher to create a helper for.
|
|
761
|
+
*
|
|
762
|
+
* @return {Function} The shortcut function.
|
|
763
|
+
*
|
|
764
|
+
* @static
|
|
765
|
+
*
|
|
766
|
+
* @example
|
|
767
|
+
*
|
|
768
|
+
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
769
|
+
*/
|
|
770
|
+
_createHelper: function (hasher) {
|
|
771
|
+
return function (message, cfg) {
|
|
772
|
+
return new hasher.init(cfg).finalize(message);
|
|
773
|
+
};
|
|
774
|
+
},
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Creates a shortcut function to the HMAC's object interface.
|
|
778
|
+
*
|
|
779
|
+
* @param {Hasher} hasher The hasher to use in this HMAC helper.
|
|
780
|
+
*
|
|
781
|
+
* @return {Function} The shortcut function.
|
|
782
|
+
*
|
|
783
|
+
* @static
|
|
784
|
+
*
|
|
785
|
+
* @example
|
|
786
|
+
*
|
|
787
|
+
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
788
|
+
*/
|
|
789
|
+
_createHmacHelper: function (hasher) {
|
|
790
|
+
return function (message, key) {
|
|
791
|
+
return new C_algo.HMAC.init(hasher, key).finalize(message);
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Algorithm namespace.
|
|
798
|
+
*/
|
|
799
|
+
var C_algo = C.algo = {};
|
|
800
|
+
|
|
801
|
+
return C;
|
|
802
|
+
}(Math));
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
return CryptoJS;
|
|
806
|
+
|
|
807
|
+
}));
|