@ape.swap/bonds-sdk 5.1.0 → 5.1.1-test.0
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/_virtual/_commonjsHelpers.js +33 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_nodeUtil.js +4 -0
- package/dist/_virtual/_nodeUtil.js.map +1 -0
- package/dist/_virtual/bn.js +4 -0
- package/dist/_virtual/bn.js.map +1 -0
- package/dist/_virtual/common.js +4 -0
- package/dist/_virtual/common.js.map +1 -0
- package/dist/_virtual/common2.js +4 -0
- package/dist/_virtual/common2.js.map +1 -0
- package/dist/_virtual/dom-to-image.js +4 -0
- package/dist/_virtual/dom-to-image.js.map +1 -0
- package/dist/_virtual/hash.js +4 -0
- package/dist/_virtual/hash.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/inherits.js +4 -0
- package/dist/_virtual/inherits.js.map +1 -0
- package/dist/_virtual/inherits_browser.js +4 -0
- package/dist/_virtual/inherits_browser.js.map +1 -0
- package/dist/_virtual/isBuffer.js +4 -0
- package/dist/_virtual/isBuffer.js.map +1 -0
- package/dist/_virtual/jsx-runtime.js +4 -0
- package/dist/_virtual/jsx-runtime.js.map +1 -0
- package/dist/_virtual/main.js +4 -0
- package/dist/_virtual/main.js.map +1 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.development.js.map +1 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-is.production.min.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/_virtual/ripemd.js +4 -0
- package/dist/_virtual/ripemd.js.map +1 -0
- package/dist/_virtual/sha.js +4 -0
- package/dist/_virtual/sha.js.map +1 -0
- package/dist/_virtual/sha3.js +4 -0
- package/dist/_virtual/sha3.js.map +1 -0
- package/dist/_virtual/tslib.es6.js +7 -0
- package/dist/_virtual/tslib.es6.js.map +1 -0
- package/dist/_virtual/types.js +4 -0
- package/dist/_virtual/types.js.map +1 -0
- package/dist/_virtual/util.js +4 -0
- package/dist/_virtual/util.js.map +1 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/zapTokens.js +4 -0
- package/dist/_virtual/zapTokens.js.map +1 -0
- package/dist/components/BondFilters/BondFilters.js +41 -0
- package/dist/components/BondFilters/BondFilters.js.map +1 -0
- package/dist/components/ChainOptionList/ChainOptionsButtons.js +32 -0
- package/dist/components/ChainOptionList/ChainOptionsButtons.js.map +1 -0
- package/dist/components/ChainOptionList/ChainOptionsList.js +41 -0
- package/dist/components/ChainOptionList/ChainOptionsList.js.map +1 -0
- package/dist/components/ChainOptionList/constants.js +11 -0
- package/dist/components/ChainOptionList/constants.js.map +1 -0
- package/dist/components/ChainOptionList/styles.js +54 -0
- package/dist/components/ChainOptionList/styles.js.map +1 -0
- package/dist/components/ConnectButton/AppKitButton.js +23 -0
- package/dist/components/ConnectButton/AppKitButton.js.map +1 -0
- package/dist/components/ConnectButton/RainbowKitButton.js +36 -0
- package/dist/components/ConnectButton/RainbowKitButton.js.map +1 -0
- package/dist/components/ConnectButton/index.js +27 -0
- package/dist/components/ConnectButton/index.js.map +1 -0
- package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js +42 -0
- package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js.map +1 -0
- package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js +67 -0
- package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js.map +1 -0
- package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js +64 -0
- package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js.map +1 -0
- package/dist/components/CustomClaimModals/AbondModal.js +28 -0
- package/dist/components/CustomClaimModals/AbondModal.js.map +1 -0
- package/dist/components/CustomClaimModals/OabondModal.js +28 -0
- package/dist/components/CustomClaimModals/OabondModal.js.map +1 -0
- package/dist/components/CustomClaimModals/PmusdModal.js +31 -0
- package/dist/components/CustomClaimModals/PmusdModal.js.map +1 -0
- package/dist/components/FavIcons/AddFavToken.js +37 -0
- package/dist/components/FavIcons/AddFavToken.js.map +1 -0
- package/dist/components/FavIcons/FavFilter.js +32 -0
- package/dist/components/FavIcons/FavFilter.js.map +1 -0
- package/dist/components/LoadingSpinner/index.js +51 -0
- package/dist/components/LoadingSpinner/index.js.map +1 -0
- package/dist/components/MenuSelect/MenuSelect.js +32 -0
- package/dist/components/MenuSelect/MenuSelect.js.map +1 -0
- package/dist/components/MenuSelect/RecommendationSelector.js +58 -0
- package/dist/components/MenuSelect/RecommendationSelector.js.map +1 -0
- package/dist/components/NetworkFilter/index.js +113 -0
- package/dist/components/NetworkFilter/index.js.map +1 -0
- package/dist/components/PlaceholderMonkey/index.js +29 -0
- package/dist/components/PlaceholderMonkey/index.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.js +11 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js +24 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js.map +1 -0
- package/dist/components/ProgressBar/styles.js +15 -0
- package/dist/components/ProgressBar/styles.js.map +1 -0
- package/dist/components/ProgressiveImage/index.js +44 -0
- package/dist/components/ProgressiveImage/index.js.map +1 -0
- package/dist/components/SafeHTMLComponent/index.js +31 -0
- package/dist/components/SafeHTMLComponent/index.js.map +1 -0
- package/dist/components/SlippageModal/index.js +73 -0
- package/dist/components/SlippageModal/index.js.map +1 -0
- package/dist/components/StepBubble/index.js +65 -0
- package/dist/components/StepBubble/index.js.map +1 -0
- package/dist/components/Toast/index.js +65 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Toast/styles.js +30 -0
- package/dist/components/Toast/styles.js.map +1 -0
- package/dist/components/TokenInfoAndName/index.js +72 -0
- package/dist/components/TokenInfoAndName/index.js.map +1 -0
- package/dist/components/TokenSelectorModal/TokenRow.js +39 -0
- package/dist/components/TokenSelectorModal/TokenRow.js.map +1 -0
- package/dist/components/TokenSelectorModal/index.js +66 -0
- package/dist/components/TokenSelectorModal/index.js.map +1 -0
- package/dist/components/TokenSelectorPanel/index.js +67 -0
- package/dist/components/TokenSelectorPanel/index.js.map +1 -0
- package/dist/components/Tooltip/ButtonsRow.js +28 -0
- package/dist/components/Tooltip/ButtonsRow.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +51 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/styles.js +32 -0
- package/dist/components/Tooltip/styles.js.map +1 -0
- package/dist/components/YouTooltip/YouTooltip.js +45 -0
- package/dist/components/YouTooltip/YouTooltip.js.map +1 -0
- package/dist/components/uikit-sdk/Button/Button.js +73 -0
- package/dist/components/uikit-sdk/Button/Button.js.map +1 -0
- package/dist/components/uikit-sdk/Button/IconButton.js +15 -0
- package/dist/components/uikit-sdk/Button/IconButton.js.map +1 -0
- package/dist/components/uikit-sdk/Button/styles.js +21 -0
- package/dist/components/uikit-sdk/Button/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Button/types.js +39 -0
- package/dist/components/uikit-sdk/Button/types.js.map +1 -0
- package/dist/components/uikit-sdk/Checkbox/index.js +27 -0
- package/dist/components/uikit-sdk/Checkbox/index.js.map +1 -0
- package/dist/components/uikit-sdk/Checkbox/types.js +8 -0
- package/dist/components/uikit-sdk/Checkbox/types.js.map +1 -0
- package/dist/components/uikit-sdk/Flex/index.js +11 -0
- package/dist/components/uikit-sdk/Flex/index.js.map +1 -0
- package/dist/components/uikit-sdk/Input/Input.js +55 -0
- package/dist/components/uikit-sdk/Input/Input.js.map +1 -0
- package/dist/components/uikit-sdk/LoadingDots/index.js +42 -0
- package/dist/components/uikit-sdk/LoadingDots/index.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +15 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/index.js +29 -0
- package/dist/components/uikit-sdk/Modal/index.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/styles.js +47 -0
- package/dist/components/uikit-sdk/Modal/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Select/Select.js +44 -0
- package/dist/components/uikit-sdk/Select/Select.js.map +1 -0
- package/dist/components/uikit-sdk/Select/SelectItem.js +22 -0
- package/dist/components/uikit-sdk/Select/SelectItem.js.map +1 -0
- package/dist/components/uikit-sdk/Select/styles.js +50 -0
- package/dist/components/uikit-sdk/Select/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Select/types.js +39 -0
- package/dist/components/uikit-sdk/Select/types.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/index.js +13 -0
- package/dist/components/uikit-sdk/Skeleton/index.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/styles.js +43 -0
- package/dist/components/uikit-sdk/Skeleton/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/types.js +13 -0
- package/dist/components/uikit-sdk/Skeleton/types.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +11 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/index.js +229 -0
- package/dist/components/uikit-sdk/Svg/index.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/styles.js +14 -0
- package/dist/components/uikit-sdk/Svg/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BERA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BERA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BLAST.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BLAST.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/KATANA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/KATANA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +10 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/SOL.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/SOL.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/types.js +86 -0
- package/dist/components/uikit-sdk/Svg/types.js.map +1 -0
- package/dist/components/uikit-sdk/SwiperDots/index.js +16 -0
- package/dist/components/uikit-sdk/SwiperDots/index.js.map +1 -0
- package/dist/components/uikit-sdk/TabNav/index.js +42 -0
- package/dist/components/uikit-sdk/TabNav/index.js.map +1 -0
- package/dist/components/uikit-sdk/Tag/ListTag.js +10 -0
- package/dist/components/uikit-sdk/Tag/ListTag.js.map +1 -0
- package/dist/components/uikit-sdk/Text/index.js +17 -0
- package/dist/components/uikit-sdk/Text/index.js.map +1 -0
- package/dist/components/uikit-sdk/Text/types.js +16 -0
- package/dist/components/uikit-sdk/Text/types.js.map +1 -0
- package/dist/components/uikit-sdk/Toggle/index.js +15 -0
- package/dist/components/uikit-sdk/Toggle/index.js.map +1 -0
- package/dist/components/uikit-sdk/Toggle/styles.js +22 -0
- package/dist/components/uikit-sdk/Toggle/styles.js.map +1 -0
- package/dist/components/uikit-sdk/TokenImage/index.js +73 -0
- package/dist/components/uikit-sdk/TokenImage/index.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.js +57 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.js +55 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/types.js +12 -0
- package/dist/components/uikit-sdk/TooltipBubble/types.js.map +1 -0
- package/dist/config/abi/BOND_2_0_0.json.js +1079 -0
- package/dist/config/abi/BOND_2_0_0.json.js.map +1 -0
- package/dist/config/abi/BOND_2_4_0.json.js +2409 -0
- package/dist/config/abi/BOND_2_4_0.json.js.map +1 -0
- package/dist/config/abi/bondNft.json.js +959 -0
- package/dist/config/abi/bondNft.json.js.map +1 -0
- package/dist/config/abi/deposit.json.js +29 -0
- package/dist/config/abi/deposit.json.js.map +1 -0
- package/dist/config/abi/depositSig.json.js +39 -0
- package/dist/config/abi/depositSig.json.js.map +1 -0
- package/dist/config/abi/erc20.json.js +229 -0
- package/dist/config/abi/erc20.json.js.map +1 -0
- package/dist/config/abi/launchBond_v2_4_1.json.js +2358 -0
- package/dist/config/abi/launchBond_v2_4_1.json.js.map +1 -0
- package/dist/config/abi/lensContract.json.js +338 -0
- package/dist/config/abi/lensContract.json.js.map +1 -0
- package/dist/config/abi/multicallv2.json.js +151 -0
- package/dist/config/abi/multicallv2.json.js.map +1 -0
- package/dist/config/abi/usdtETH.json.js +704 -0
- package/dist/config/abi/usdtETH.json.js.map +1 -0
- package/dist/config/constants/addresses.js +50 -0
- package/dist/config/constants/addresses.js.map +1 -0
- package/dist/config/constants/chains.js +139 -0
- package/dist/config/constants/chains.js.map +1 -0
- package/dist/config/constants/networks.js +89 -0
- package/dist/config/constants/networks.js.map +1 -0
- package/dist/config/constants/queryKeys.js +29 -0
- package/dist/config/constants/queryKeys.js.map +1 -0
- package/dist/config/constants/tooltips.js +20 -0
- package/dist/config/constants/tooltips.js.map +1 -0
- package/dist/config/constants/variables.js +42 -0
- package/dist/config/constants/variables.js.map +1 -0
- package/dist/config/idl/solanaProgramIdl.json.js +6 -0
- package/dist/config/idl/solanaProgramIdl.json.js.map +1 -0
- package/dist/constants/solanaConstants.js +41 -0
- package/dist/constants/solanaConstants.js.map +1 -0
- package/dist/contexts/ModalContext.js +72 -0
- package/dist/contexts/ModalContext.js.map +1 -0
- package/dist/contexts/Popups.js +29 -0
- package/dist/contexts/Popups.js.map +1 -0
- package/dist/contexts/SwiperProvider.js +21 -0
- package/dist/contexts/SwiperProvider.js.map +1 -0
- package/dist/hooks/accounts/useEVMAccount.js +13 -0
- package/dist/hooks/accounts/useEVMAccount.js.map +1 -0
- package/dist/hooks/accounts/useSOLAccount.js +17 -0
- package/dist/hooks/accounts/useSOLAccount.js.map +1 -0
- package/dist/hooks/useDebounce.js +21 -0
- package/dist/hooks/useDebounce.js.map +1 -0
- package/dist/hooks/useIsMobile.js +22 -0
- package/dist/hooks/useIsMobile.js.map +1 -0
- package/dist/hooks/useModal.js +34 -0
- package/dist/hooks/useModal.js.map +1 -0
- package/dist/hooks/useMonitorTx.js +26 -0
- package/dist/hooks/useMonitorTx.js.map +1 -0
- package/dist/hooks/useSendReferenceId.js +22 -0
- package/dist/hooks/useSendReferenceId.js.map +1 -0
- package/dist/hooks/useSortedZapList.js +56 -0
- package/dist/hooks/useSortedZapList.js.map +1 -0
- package/dist/hooks/useSwiper.js +13 -0
- package/dist/hooks/useSwiper.js.map +1 -0
- package/dist/hooks/useTokenFromZapList.js +15 -0
- package/dist/hooks/useTokenFromZapList.js.map +1 -0
- package/dist/hooks/useTopTags.js +47 -0
- package/dist/hooks/useTopTags.js.map +1 -0
- package/dist/main.d.ts +23 -0
- package/dist/main.js +18 -89923
- package/dist/main.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js +698 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js +27 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js +1078 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js.map +1 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js +500 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +56 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +152 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js +153 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +22 -0
- package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/package.json.js +6 -0
- package/dist/node_modules/@emotion/react/package.json.js.map +1 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +225 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +139 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +14 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js +55 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -0
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +17 -0
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js +97 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js +149 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js +27 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js +21 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js +211 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js +19 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js +31 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js +27 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js +23 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js +44 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js +20 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js +59 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js +855 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js +610 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js +67 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js +303 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/index.js +111 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js +21 -0
- package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js.map +1 -0
- package/dist/node_modules/@ethersproject/basex/lib.esm/index.js +121 -0
- package/dist/node_modules/@ethersproject/basex/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js +296 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js +361 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js.map +1 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js +403 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js +4 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js +9 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js +4 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js.map +1 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js +894 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js +257 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js +37 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js +136 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/id.js +9 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/id.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js +65 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js +444 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js.map +1 -0
- package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js +9 -0
- package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/index.js +353 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/index.js +267 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/index.js +128 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js +2008 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js +423 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js +675 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js +188 -0
- package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js +121 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js +9 -0
- package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js +2479 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js +77 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js +220 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js.map +1 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js +280 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/index.js +29 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js +70 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/index.js +405 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@jup-ag/api/dist/index.js +792 -0
- package/dist/node_modules/@jup-ag/api/dist/index.js.map +1 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +583 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js +382 -0
- package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js +322 -0
- package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js +20 -0
- package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js +76 -0
- package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js +9 -0
- package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js +331 -0
- package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js +46 -0
- package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js.map +1 -0
- package/dist/node_modules/available-typed-arrays/index.js +30 -0
- package/dist/node_modules/available-typed-arrays/index.js.map +1 -0
- package/dist/node_modules/base64-js/index.js +153 -0
- package/dist/node_modules/base64-js/index.js.map +1 -0
- package/dist/node_modules/bignumber.js/bignumber.js +2908 -0
- package/dist/node_modules/bignumber.js/bignumber.js.map +1 -0
- package/dist/node_modules/bn.js/lib/bn.js +3364 -0
- package/dist/node_modules/bn.js/lib/bn.js.map +1 -0
- package/dist/node_modules/buffer/index.js +2111 -0
- package/dist/node_modules/buffer/index.js.map +1 -0
- package/dist/node_modules/call-bind/index.js +41 -0
- package/dist/node_modules/call-bind/index.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js +25 -0
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/applyBind.js +24 -0
- package/dist/node_modules/call-bind-apply-helpers/applyBind.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/index.js +30 -0
- package/dist/node_modules/call-bind-apply-helpers/index.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js.map +1 -0
- package/dist/node_modules/call-bound/index.js +32 -0
- package/dist/node_modules/call-bound/index.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.js +8079 -0
- package/dist/node_modules/chart.js/dist/chart.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js +2685 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +1 -0
- package/dist/node_modules/deepmerge/dist/cjs.js +138 -0
- package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -0
- package/dist/node_modules/define-data-property/index.js +71 -0
- package/dist/node_modules/define-data-property/index.js.map +1 -0
- package/dist/node_modules/dom-to-image/src/dom-to-image.js +776 -0
- package/dist/node_modules/dom-to-image/src/dom-to-image.js.map +1 -0
- package/dist/node_modules/dunder-proto/get.js +43 -0
- package/dist/node_modules/dunder-proto/get.js.map +1 -0
- package/dist/node_modules/es-define-property/index.js +24 -0
- package/dist/node_modules/es-define-property/index.js.map +1 -0
- package/dist/node_modules/es-errors/eval.js +14 -0
- package/dist/node_modules/es-errors/eval.js.map +1 -0
- package/dist/node_modules/es-errors/index.js +14 -0
- package/dist/node_modules/es-errors/index.js.map +1 -0
- package/dist/node_modules/es-errors/range.js +14 -0
- package/dist/node_modules/es-errors/range.js.map +1 -0
- package/dist/node_modules/es-errors/ref.js +14 -0
- package/dist/node_modules/es-errors/ref.js.map +1 -0
- package/dist/node_modules/es-errors/syntax.js +14 -0
- package/dist/node_modules/es-errors/syntax.js.map +1 -0
- package/dist/node_modules/es-errors/type.js +14 -0
- package/dist/node_modules/es-errors/type.js.map +1 -0
- package/dist/node_modules/es-errors/uri.js +14 -0
- package/dist/node_modules/es-errors/uri.js.map +1 -0
- package/dist/node_modules/es-object-atoms/index.js +14 -0
- package/dist/node_modules/es-object-atoms/index.js.map +1 -0
- package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js +239 -0
- package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js.map +1 -0
- package/dist/node_modules/fancy-canvas/canvas-rendering-target.js +85 -0
- package/dist/node_modules/fancy-canvas/canvas-rendering-target.js.map +1 -0
- package/dist/node_modules/fancy-canvas/device-pixel-ratio.js +63 -0
- package/dist/node_modules/fancy-canvas/device-pixel-ratio.js.map +1 -0
- package/dist/node_modules/fancy-canvas/size.js +20 -0
- package/dist/node_modules/fancy-canvas/size.js.map +1 -0
- package/dist/node_modules/for-each/index.js +81 -0
- package/dist/node_modules/for-each/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +323 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +118 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +388 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +88 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +87 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +169 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js +81 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +107 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +77 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +67 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +77 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +61 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +166 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/easing/back.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +82 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +485 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +131 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +158 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +134 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +73 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +50 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +102 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +135 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +89 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +58 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +95 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +120 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +55 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +1585 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +113 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +36 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +50 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +480 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +132 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +54 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +58 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +66 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +46 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +74 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +165 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +333 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +37 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/array.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +79 -0
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +95 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/index.js +314 -0
- package/dist/node_modules/framer-motion/dist/es/value/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +93 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js.map +1 -0
- package/dist/node_modules/function-bind/implementation.js +94 -0
- package/dist/node_modules/function-bind/implementation.js.map +1 -0
- package/dist/node_modules/function-bind/index.js +17 -0
- package/dist/node_modules/function-bind/index.js.map +1 -0
- package/dist/node_modules/generator-function/index.js +17 -0
- package/dist/node_modules/generator-function/index.js.map +1 -0
- package/dist/node_modules/get-intrinsic/index.js +414 -0
- package/dist/node_modules/get-intrinsic/index.js.map +1 -0
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js +18 -0
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js.map +1 -0
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +14 -0
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js.map +1 -0
- package/dist/node_modules/get-proto/index.js +41 -0
- package/dist/node_modules/get-proto/index.js.map +1 -0
- package/dist/node_modules/gopd/gOPD.js +14 -0
- package/dist/node_modules/gopd/gOPD.js.map +1 -0
- package/dist/node_modules/gopd/index.js +27 -0
- package/dist/node_modules/gopd/index.js.map +1 -0
- package/dist/node_modules/has-property-descriptors/index.js +34 -0
- package/dist/node_modules/has-property-descriptors/index.js.map +1 -0
- package/dist/node_modules/has-symbols/index.js +26 -0
- package/dist/node_modules/has-symbols/index.js.map +1 -0
- package/dist/node_modules/has-symbols/shams.js +55 -0
- package/dist/node_modules/has-symbols/shams.js.map +1 -0
- package/dist/node_modules/has-tostringtag/shams.js +20 -0
- package/dist/node_modules/has-tostringtag/shams.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/common.js +98 -0
- package/dist/node_modules/hash.js/lib/hash/common.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/hmac.js +52 -0
- package/dist/node_modules/hash.js/lib/hash/hmac.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/ripemd.js +153 -0
- package/dist/node_modules/hash.js/lib/hash/ripemd.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/1.js +82 -0
- package/dist/node_modules/hash.js/lib/hash/sha/1.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/224.js +34 -0
- package/dist/node_modules/hash.js/lib/hash/sha/224.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/256.js +114 -0
- package/dist/node_modules/hash.js/lib/hash/sha/256.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/384.js +40 -0
- package/dist/node_modules/hash.js/lib/hash/sha/384.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/512.js +337 -0
- package/dist/node_modules/hash.js/lib/hash/sha/512.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/common.js +54 -0
- package/dist/node_modules/hash.js/lib/hash/sha/common.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha.js +15 -0
- package/dist/node_modules/hash.js/lib/hash/sha.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/utils.js +283 -0
- package/dist/node_modules/hash.js/lib/hash/utils.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash.js +34 -0
- package/dist/node_modules/hash.js/lib/hash.js.map +1 -0
- package/dist/node_modules/hasown/index.js +20 -0
- package/dist/node_modules/hasown/index.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/node_modules/ieee754/index.js +91 -0
- package/dist/node_modules/ieee754/index.js.map +1 -0
- package/dist/node_modules/inherits/inherits.js +23 -0
- package/dist/node_modules/inherits/inherits.js.map +1 -0
- package/dist/node_modules/inherits/inherits_browser.js +39 -0
- package/dist/node_modules/inherits/inherits_browser.js.map +1 -0
- package/dist/node_modules/is-arguments/index.js +57 -0
- package/dist/node_modules/is-arguments/index.js.map +1 -0
- package/dist/node_modules/is-callable/index.js +111 -0
- package/dist/node_modules/is-callable/index.js.map +1 -0
- package/dist/node_modules/is-generator-function/index.js +47 -0
- package/dist/node_modules/is-generator-function/index.js.map +1 -0
- package/dist/node_modules/is-regex/index.js +84 -0
- package/dist/node_modules/is-regex/index.js.map +1 -0
- package/dist/node_modules/is-typed-array/index.js +20 -0
- package/dist/node_modules/is-typed-array/index.js.map +1 -0
- package/dist/node_modules/js-sha3/src/sha3.js +661 -0
- package/dist/node_modules/js-sha3/src/sha3.js.map +1 -0
- package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js +14 -0
- package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js.map +1 -0
- package/dist/node_modules/lodash/_DataView.js +13 -0
- package/dist/node_modules/lodash/_DataView.js.map +1 -0
- package/dist/node_modules/lodash/_Hash.js +41 -0
- package/dist/node_modules/lodash/_Hash.js.map +1 -0
- package/dist/node_modules/lodash/_ListCache.js +41 -0
- package/dist/node_modules/lodash/_ListCache.js.map +1 -0
- package/dist/node_modules/lodash/_Map.js +13 -0
- package/dist/node_modules/lodash/_Map.js.map +1 -0
- package/dist/node_modules/lodash/_MapCache.js +41 -0
- package/dist/node_modules/lodash/_MapCache.js.map +1 -0
- package/dist/node_modules/lodash/_Promise.js +13 -0
- package/dist/node_modules/lodash/_Promise.js.map +1 -0
- package/dist/node_modules/lodash/_Set.js +13 -0
- package/dist/node_modules/lodash/_Set.js.map +1 -0
- package/dist/node_modules/lodash/_SetCache.js +34 -0
- package/dist/node_modules/lodash/_SetCache.js.map +1 -0
- package/dist/node_modules/lodash/_Stack.js +37 -0
- package/dist/node_modules/lodash/_Stack.js.map +1 -0
- package/dist/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/dist/node_modules/lodash/_WeakMap.js +13 -0
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayFilter.js +29 -0
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludes.js +22 -0
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js +26 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +59 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_arrayMap.js +25 -0
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayPush.js +24 -0
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
- package/dist/node_modules/lodash/_arraySome.js +27 -0
- package/dist/node_modules/lodash/_arraySome.js.map +1 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +26 -0
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseFindIndex.js +28 -0
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -0
- package/dist/node_modules/lodash/_baseFlatten.js +44 -0
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/dist/node_modules/lodash/_baseGet.js +30 -0
- package/dist/node_modules/lodash/_baseGet.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +26 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetTag.js +35 -0
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/node_modules/lodash/_baseHasIn.js +17 -0
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseIndexOf.js +27 -0
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +24 -0
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +34 -0
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +95 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +68 -0
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNaN.js +16 -0
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNative.js +55 -0
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +67 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_baseIteratee.js +40 -0
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeys.js +36 -0
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatches.js +29 -0
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +44 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/dist/node_modules/lodash/_baseProperty.js +18 -0
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +21 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseSlice.js +35 -0
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
- package/dist/node_modules/lodash/_baseTimes.js +24 -0
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
- package/dist/node_modules/lodash/_baseToString.js +42 -0
- package/dist/node_modules/lodash/_baseToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseTrim.js +24 -0
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnary.js +18 -0
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
- package/dist/node_modules/lodash/_baseUniq.js +82 -0
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -0
- package/dist/node_modules/lodash/_cacheHas.js +17 -0
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_castPath.js +29 -0
- package/dist/node_modules/lodash/_castPath.js.map +1 -0
- package/dist/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
- package/dist/node_modules/lodash/_createSet.js +26 -0
- package/dist/node_modules/lodash/_createSet.js.map +1 -0
- package/dist/node_modules/lodash/_equalArrays.js +91 -0
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
- package/dist/node_modules/lodash/_equalByTag.js +122 -0
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
- package/dist/node_modules/lodash/_equalObjects.js +95 -0
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
- package/dist/node_modules/lodash/_freeGlobal.js +10 -0
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeys.js +23 -0
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_getMapData.js +23 -0
- package/dist/node_modules/lodash/_getMapData.js.map +1 -0
- package/dist/node_modules/lodash/_getMatchData.js +30 -0
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
- package/dist/node_modules/lodash/_getNative.js +23 -0
- package/dist/node_modules/lodash/_getNative.js.map +1 -0
- package/dist/node_modules/lodash/_getRawTag.js +51 -0
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbols.js +36 -0
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
- package/dist/node_modules/lodash/_getTag.js +69 -0
- package/dist/node_modules/lodash/_getTag.js.map +1 -0
- package/dist/node_modules/lodash/_getValue.js +17 -0
- package/dist/node_modules/lodash/_getValue.js.map +1 -0
- package/dist/node_modules/lodash/_hasPath.js +49 -0
- package/dist/node_modules/lodash/_hasPath.js.map +1 -0
- package/dist/node_modules/lodash/_hashClear.js +20 -0
- package/dist/node_modules/lodash/_hashClear.js.map +1 -0
- package/dist/node_modules/lodash/_hashDelete.js +21 -0
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
- package/dist/node_modules/lodash/_hashGet.js +35 -0
- package/dist/node_modules/lodash/_hashGet.js.map +1 -0
- package/dist/node_modules/lodash/_hashHas.js +28 -0
- package/dist/node_modules/lodash/_hashHas.js.map +1 -0
- package/dist/node_modules/lodash/_hashSet.js +28 -0
- package/dist/node_modules/lodash/_hashSet.js.map +1 -0
- package/dist/node_modules/lodash/_isFlattenable.js +27 -0
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/dist/node_modules/lodash/_isIndex.js +29 -0
- package/dist/node_modules/lodash/_isIndex.js.map +1 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +38 -0
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/dist/node_modules/lodash/_isKey.js +35 -0
- package/dist/node_modules/lodash/_isKey.js.map +1 -0
- package/dist/node_modules/lodash/_isKeyable.js +19 -0
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
- package/dist/node_modules/lodash/_isMasked.js +25 -0
- package/dist/node_modules/lodash/_isMasked.js.map +1 -0
- package/dist/node_modules/lodash/_isPrototype.js +22 -0
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +20 -0
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheClear.js +17 -0
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +40 -0
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheGet.js +24 -0
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheHas.js +21 -0
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheSet.js +31 -0
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +28 -0
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +23 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +21 -0
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +21 -0
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +27 -0
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapToArray.js +22 -0
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +24 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +31 -0
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/dist/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_nodeUtil.js +42 -0
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/dist/node_modules/lodash/_objectToString.js +26 -0
- package/dist/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/node_modules/lodash/_overArg.js +19 -0
- package/dist/node_modules/lodash/_overArg.js.map +1 -0
- package/dist/node_modules/lodash/_root.js +14 -0
- package/dist/node_modules/lodash/_root.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +23 -0
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheHas.js +18 -0
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_setToArray.js +22 -0
- package/dist/node_modules/lodash/_setToArray.js.map +1 -0
- package/dist/node_modules/lodash/_stackClear.js +20 -0
- package/dist/node_modules/lodash/_stackClear.js.map +1 -0
- package/dist/node_modules/lodash/_stackDelete.js +22 -0
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
- package/dist/node_modules/lodash/_stackGet.js +18 -0
- package/dist/node_modules/lodash/_stackGet.js.map +1 -0
- package/dist/node_modules/lodash/_stackHas.js +18 -0
- package/dist/node_modules/lodash/_stackHas.js.map +1 -0
- package/dist/node_modules/lodash/_stackSet.js +41 -0
- package/dist/node_modules/lodash/_stackSet.js.map +1 -0
- package/dist/node_modules/lodash/_strictIndexOf.js +27 -0
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_stringToPath.js +32 -0
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
- package/dist/node_modules/lodash/_toKey.js +23 -0
- package/dist/node_modules/lodash/_toKey.js.map +1 -0
- package/dist/node_modules/lodash/_toSource.js +30 -0
- package/dist/node_modules/lodash/_toSource.js.map +1 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +23 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
- package/dist/node_modules/lodash/chunk.js +60 -0
- package/dist/node_modules/lodash/chunk.js.map +1 -0
- package/dist/node_modules/lodash/eq.js +41 -0
- package/dist/node_modules/lodash/eq.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +30 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/get.js +41 -0
- package/dist/node_modules/lodash/get.js.map +1 -0
- package/dist/node_modules/lodash/hasIn.js +40 -0
- package/dist/node_modules/lodash/hasIn.js.map +1 -0
- package/dist/node_modules/lodash/identity.js +25 -0
- package/dist/node_modules/lodash/identity.js.map +1 -0
- package/dist/node_modules/lodash/isArguments.js +42 -0
- package/dist/node_modules/lodash/isArguments.js.map +1 -0
- package/dist/node_modules/lodash/isArray.js +34 -0
- package/dist/node_modules/lodash/isArray.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLike.js +39 -0
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
- package/dist/node_modules/lodash/isBuffer.js +51 -0
- package/dist/node_modules/lodash/isBuffer.js.map +1 -0
- package/dist/node_modules/lodash/isFunction.js +43 -0
- package/dist/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/node_modules/lodash/isLength.js +39 -0
- package/dist/node_modules/lodash/isLength.js.map +1 -0
- package/dist/node_modules/lodash/isObject.js +35 -0
- package/dist/node_modules/lodash/isObject.js.map +1 -0
- package/dist/node_modules/lodash/isObjectLike.js +33 -0
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
- package/dist/node_modules/lodash/isSymbol.js +35 -0
- package/dist/node_modules/lodash/isSymbol.js.map +1 -0
- package/dist/node_modules/lodash/isTypedArray.js +34 -0
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/keys.js +44 -0
- package/dist/node_modules/lodash/keys.js.map +1 -0
- package/dist/node_modules/lodash/memoize.js +78 -0
- package/dist/node_modules/lodash/memoize.js.map +1 -0
- package/dist/node_modules/lodash/noop.js +21 -0
- package/dist/node_modules/lodash/noop.js.map +1 -0
- package/dist/node_modules/lodash/property.js +40 -0
- package/dist/node_modules/lodash/property.js.map +1 -0
- package/dist/node_modules/lodash/stubArray.js +27 -0
- package/dist/node_modules/lodash/stubArray.js.map +1 -0
- package/dist/node_modules/lodash/stubFalse.js +22 -0
- package/dist/node_modules/lodash/stubFalse.js.map +1 -0
- package/dist/node_modules/lodash/toFinite.js +47 -0
- package/dist/node_modules/lodash/toFinite.js.map +1 -0
- package/dist/node_modules/lodash/toInteger.js +41 -0
- package/dist/node_modules/lodash/toInteger.js.map +1 -0
- package/dist/node_modules/lodash/toNumber.js +71 -0
- package/dist/node_modules/lodash/toNumber.js.map +1 -0
- package/dist/node_modules/lodash/toString.js +33 -0
- package/dist/node_modules/lodash/toString.js.map +1 -0
- package/dist/node_modules/lodash/uniqBy.js +40 -0
- package/dist/node_modules/lodash/uniqBy.js.map +1 -0
- package/dist/node_modules/math-intrinsics/abs.js +14 -0
- package/dist/node_modules/math-intrinsics/abs.js.map +1 -0
- package/dist/node_modules/math-intrinsics/floor.js +14 -0
- package/dist/node_modules/math-intrinsics/floor.js.map +1 -0
- package/dist/node_modules/math-intrinsics/isNaN.js +16 -0
- package/dist/node_modules/math-intrinsics/isNaN.js.map +1 -0
- package/dist/node_modules/math-intrinsics/max.js +14 -0
- package/dist/node_modules/math-intrinsics/max.js.map +1 -0
- package/dist/node_modules/math-intrinsics/min.js +14 -0
- package/dist/node_modules/math-intrinsics/min.js.map +1 -0
- package/dist/node_modules/math-intrinsics/pow.js +14 -0
- package/dist/node_modules/math-intrinsics/pow.js.map +1 -0
- package/dist/node_modules/math-intrinsics/round.js +14 -0
- package/dist/node_modules/math-intrinsics/round.js.map +1 -0
- package/dist/node_modules/math-intrinsics/sign.js +23 -0
- package/dist/node_modules/math-intrinsics/sign.js.map +1 -0
- package/dist/node_modules/minimalistic-assert/index.js +14 -0
- package/dist/node_modules/minimalistic-assert/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +83 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +45 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +77 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +19 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +13 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
- package/dist/node_modules/possible-typed-array-names/index.js +27 -0
- package/dist/node_modules/possible-typed-array-names/index.js.map +1 -0
- package/dist/node_modules/primereact/api/api.esm.js +120 -0
- package/dist/node_modules/primereact/api/api.esm.js.map +1 -0
- package/dist/node_modules/primereact/componentbase/componentbase.esm.js +357 -0
- package/dist/node_modules/primereact/componentbase/componentbase.esm.js.map +1 -0
- package/dist/node_modules/primereact/hooks/hooks.esm.js +276 -0
- package/dist/node_modules/primereact/hooks/hooks.esm.js.map +1 -0
- package/dist/node_modules/primereact/knob/knob.esm.js +388 -0
- package/dist/node_modules/primereact/knob/knob.esm.js.map +1 -0
- package/dist/node_modules/primereact/utils/utils.esm.js +2155 -0
- package/dist/node_modules/primereact/utils/utils.esm.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1326 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +25 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.js +14 -0
- package/dist/node_modules/react/jsx-runtime.js.map +1 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js +143 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +191 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +27 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/react-is/index.js +14 -0
- package/dist/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/safe-regex-test/index.js +31 -0
- package/dist/node_modules/safe-regex-test/index.js.map +1 -0
- package/dist/node_modules/set-function-length/index.js +58 -0
- package/dist/node_modules/set-function-length/index.js.map +1 -0
- package/dist/node_modules/stylis/src/Enum.js +13 -0
- package/dist/node_modules/stylis/src/Enum.js.map +1 -0
- package/dist/node_modules/stylis/src/Middleware.js +33 -0
- package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
- package/dist/node_modules/stylis/src/Parser.js +194 -0
- package/dist/node_modules/stylis/src/Parser.js.map +1 -0
- package/dist/node_modules/stylis/src/Serializer.js +39 -0
- package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +224 -0
- package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/dist/node_modules/stylis/src/Utility.js +118 -0
- package/dist/node_modules/stylis/src/Utility.js.map +1 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js +147 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js.map +1 -0
- package/dist/node_modules/swiper/shared/swiper-core.js +3952 -0
- package/dist/node_modules/swiper/shared/swiper-core.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js +132 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-swiper.js +233 -0
- package/dist/node_modules/swiper/shared/update-swiper.js.map +1 -0
- package/dist/node_modules/swiper/shared/utils.js +303 -0
- package/dist/node_modules/swiper/shared/utils.js.map +1 -0
- package/dist/node_modules/swiper/swiper-react.js +390 -0
- package/dist/node_modules/swiper/swiper-react.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +400 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/util/support/isBuffer.js +14 -0
- package/dist/node_modules/util/support/isBuffer.js.map +1 -0
- package/dist/node_modules/util/support/types.js +348 -0
- package/dist/node_modules/util/support/types.js.map +1 -0
- package/dist/node_modules/util/util.js +730 -0
- package/dist/node_modules/util/util.js.map +1 -0
- package/dist/node_modules/viem/_esm/constants/unit.js +7 -0
- package/dist/node_modules/viem/_esm/constants/unit.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/base.js +92 -0
- package/dist/node_modules/viem/_esm/errors/base.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/unit.js +12 -0
- package/dist/node_modules/viem/_esm/errors/unit.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/version.js +4 -0
- package/dist/node_modules/viem/_esm/errors/version.js.map +1 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseEther.js +20 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseEther.js.map +1 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js +53 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js.map +1 -0
- package/dist/node_modules/which-typed-array/index.js +136 -0
- package/dist/node_modules/which-typed-array/index.js.map +1 -0
- package/dist/providers/index.js +63 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/state/abtesting/useCookie.js +40 -0
- package/dist/state/abtesting/useCookie.js.map +1 -0
- package/dist/state/activeView/index.js +40 -0
- package/dist/state/activeView/index.js.map +1 -0
- package/dist/state/allowance/useAllowance.js +139 -0
- package/dist/state/allowance/useAllowance.js.map +1 -0
- package/dist/state/balance/useCurrencyBalance.js +40 -0
- package/dist/state/balance/useCurrencyBalance.js.map +1 -0
- package/dist/state/balance/useCurrencyBalanceSolana.js +43 -0
- package/dist/state/balance/useCurrencyBalanceSolana.js.map +1 -0
- package/dist/state/balance/useUserTokensBalance.js +100 -0
- package/dist/state/balance/useUserTokensBalance.js.map +1 -0
- package/dist/state/bondApiStats/useGetBondApiStats.js +21 -0
- package/dist/state/bondApiStats/useGetBondApiStats.js.map +1 -0
- package/dist/state/bonds/fetchBillsUser.js +157 -0
- package/dist/state/bonds/fetchBillsUser.js.map +1 -0
- package/dist/state/bonds/fetchBillsUserSolana.js +167 -0
- package/dist/state/bonds/fetchBillsUserSolana.js.map +1 -0
- package/dist/state/bonds/useBondsData.js +84 -0
- package/dist/state/bonds/useBondsData.js.map +1 -0
- package/dist/state/bonds/useBondsList.js +35 -0
- package/dist/state/bonds/useBondsList.js.map +1 -0
- package/dist/state/bonds/useBondsListPreTGE.js +36 -0
- package/dist/state/bonds/useBondsListPreTGE.js.map +1 -0
- package/dist/state/bonds/useTierProofSignature.js +46 -0
- package/dist/state/bonds/useTierProofSignature.js.map +1 -0
- package/dist/state/bonds/useUserBonds.js +131 -0
- package/dist/state/bonds/useUserBonds.js.map +1 -0
- package/dist/state/bonds/useUserBondsPreTGE.js +151 -0
- package/dist/state/bonds/useUserBondsPreTGE.js.map +1 -0
- package/dist/state/bonds/utils.js +330 -0
- package/dist/state/bonds/utils.js.map +1 -0
- package/dist/state/chainFilterOption/useChainFilterOption.js +35 -0
- package/dist/state/chainFilterOption/useChainFilterOption.js.map +1 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.js +47 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.js.map +1 -0
- package/dist/state/historicalPrice/useHistoricalPrice.js +26 -0
- package/dist/state/historicalPrice/useHistoricalPrice.js.map +1 -0
- package/dist/state/hotBonds/useHotBonds.js +51 -0
- package/dist/state/hotBonds/useHotBonds.js.map +1 -0
- package/dist/state/popups/usePopups.js +57 -0
- package/dist/state/popups/usePopups.js.map +1 -0
- package/dist/state/price/useCurrencyPrice.js +22 -0
- package/dist/state/price/useCurrencyPrice.js.map +1 -0
- package/dist/state/recommendations/useGetBondRecommendations.js +23 -0
- package/dist/state/recommendations/useGetBondRecommendations.js.map +1 -0
- package/dist/state/slippage/useSlippage.js +40 -0
- package/dist/state/slippage/useSlippage.js.map +1 -0
- package/dist/state/tiers/useTierPoints.js +102 -0
- package/dist/state/tiers/useTierPoints.js.map +1 -0
- package/dist/state/tokenPrices/useTokenPrices.js +36 -0
- package/dist/state/tokenPrices/useTokenPrices.js.map +1 -0
- package/dist/state/useSDKConfig.js +39 -0
- package/dist/state/useSDKConfig.js.map +1 -0
- package/dist/state/zap/getChainParam.js +58 -0
- package/dist/state/zap/getChainParam.js.map +1 -0
- package/dist/state/zap/useJupiterSolanaQuote.js +128 -0
- package/dist/state/zap/useJupiterSolanaQuote.js.map +1 -0
- package/dist/state/zap/useSoulZapBondQuote.js +168 -0
- package/dist/state/zap/useSoulZapBondQuote.js.map +1 -0
- package/dist/theme/base.js +125 -0
- package/dist/theme/base.js.map +1 -0
- package/dist/theme/colors.js +25 -0
- package/dist/theme/colors.js.map +1 -0
- package/dist/theme/components.js +321 -0
- package/dist/theme/components.js.map +1 -0
- package/dist/theme/index.js +8 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types/bondCodec.js +24 -0
- package/dist/types/bondCodec.js.map +1 -0
- package/dist/types/bondIssuanceCodec.js +32 -0
- package/dist/types/bondIssuanceCodec.js.map +1 -0
- package/dist/types/bondPricingCodec.js +22 -0
- package/dist/types/bondPricingCodec.js.map +1 -0
- package/dist/types/bondTermCodec.js +24 -0
- package/dist/types/bondTermCodec.js.map +1 -0
- package/dist/utils/calculateSolanaTrueBillPrice.js +71 -0
- package/dist/utils/calculateSolanaTrueBillPrice.js.map +1 -0
- package/dist/utils/campaignStyles.js +54 -0
- package/dist/utils/campaignStyles.js.map +1 -0
- package/dist/utils/convertToTokenValue.js +27 -0
- package/dist/utils/convertToTokenValue.js.map +1 -0
- package/dist/utils/dates/formatDate.js +16 -0
- package/dist/utils/dates/formatDate.js.map +1 -0
- package/dist/utils/derivePda.js +9 -0
- package/dist/utils/derivePda.js.map +1 -0
- package/dist/utils/displayHelpers.js +238 -0
- package/dist/utils/displayHelpers.js.map +1 -0
- package/dist/utils/formatNumber.js +52 -0
- package/dist/utils/formatNumber.js.map +1 -0
- package/dist/utils/getBalanceNumber.js +11 -0
- package/dist/utils/getBalanceNumber.js.map +1 -0
- package/dist/utils/getDotPos.js +12 -0
- package/dist/utils/getDotPos.js.map +1 -0
- package/dist/utils/getNativeTicker.js +21 -0
- package/dist/utils/getNativeTicker.js.map +1 -0
- package/dist/utils/getSolanaAccount.js +116 -0
- package/dist/utils/getSolanaAccount.js.map +1 -0
- package/dist/utils/getTimePeriods.js +67 -0
- package/dist/utils/getTimePeriods.js.map +1 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/multicall.js +49 -0
- package/dist/utils/multicall.js.map +1 -0
- package/dist/utils/numbers.js +7 -0
- package/dist/utils/numbers.js.map +1 -0
- package/dist/utils/remove0xPrefix.js +9 -0
- package/dist/utils/remove0xPrefix.js.map +1 -0
- package/dist/utils/reportError.js +31 -0
- package/dist/utils/reportError.js.map +1 -0
- package/dist/utils/roundNumber.js +16 -0
- package/dist/utils/roundNumber.js.map +1 -0
- package/dist/utils/solanaAtaHelper.js +40 -0
- package/dist/utils/solanaAtaHelper.js.map +1 -0
- package/dist/utils/solanaMulticall.js +44 -0
- package/dist/utils/solanaMulticall.js.map +1 -0
- package/dist/utils/solanaRpc.js +13 -0
- package/dist/utils/solanaRpc.js.map +1 -0
- package/dist/utils/track.js +7 -0
- package/dist/utils/track.js.map +1 -0
- package/dist/views/Bonds/Bonds.js +196 -0
- package/dist/views/Bonds/Bonds.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ActiveBondRows.js +66 -0
- package/dist/views/Bonds/components/BondRows/ActiveBondRows.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/BondRow.js +70 -0
- package/dist/views/Bonds/components/BondRows/BondRow.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.js +39 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.js +104 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js +39 -0
- package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/SoldOutRows.js +43 -0
- package/dist/views/Bonds/components/BondRows/SoldOutRows.js.map +1 -0
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js +36 -0
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js +59 -0
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.js +11 -0
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.js +57 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.js.map +1 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.js +83 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.js.map +1 -0
- package/dist/views/Bonds/components/ChainBanner/ChainBanner.js +84 -0
- package/dist/views/Bonds/components/ChainBanner/ChainBanner.js.map +1 -0
- package/dist/views/Bonds/components/CheckURL/index.js +44 -0
- package/dist/views/Bonds/components/CheckURL/index.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js +54 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/index.js +78 -0
- package/dist/views/Bonds/components/HotBondCards/index.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/styles.js +47 -0
- package/dist/views/Bonds/components/HotBondCards/styles.js.map +1 -0
- package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js +37 -0
- package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js +27 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/index.js +84 -0
- package/dist/views/Bonds/components/RecommendationCards/index.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.js +24 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.js.map +1 -0
- package/dist/views/Bonds/index.js +12 -0
- package/dist/views/Bonds/index.js.map +1 -0
- package/dist/views/Bonds/utils.js +149 -0
- package/dist/views/Bonds/utils.js.map +1 -0
- package/dist/views/BuyBond/BuyBondModal.js +26 -0
- package/dist/views/BuyBond/BuyBondModal.js.map +1 -0
- package/dist/views/BuyBond/BuyComponent.js +425 -0
- package/dist/views/BuyBond/BuyComponent.js.map +1 -0
- package/dist/views/BuyBond/BuyComponentPreTGE.js +154 -0
- package/dist/views/BuyBond/BuyComponentPreTGE.js.map +1 -0
- package/dist/views/BuyBond/BuyComponentSolana.js +641 -0
- package/dist/views/BuyBond/BuyComponentSolana.js.map +1 -0
- package/dist/views/BuyBond/ParticipationSuccessful.js +78 -0
- package/dist/views/BuyBond/ParticipationSuccessful.js.map +1 -0
- package/dist/views/BuyBond/components/BondCards/BondCards.js +92 -0
- package/dist/views/BuyBond/components/BondCards/BondCards.js.map +1 -0
- package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js +74 -0
- package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js.map +1 -0
- package/dist/views/BuyBond/components/BondModalHeader.js +95 -0
- package/dist/views/BuyBond/components/BondModalHeader.js.map +1 -0
- package/dist/views/BuyBond/components/BondModalMinTierHeader.js +35 -0
- package/dist/views/BuyBond/components/BondModalMinTierHeader.js.map +1 -0
- package/dist/views/BuyBond/components/Estimations.js +68 -0
- package/dist/views/BuyBond/components/Estimations.js.map +1 -0
- package/dist/views/BuyBond/components/ExpandedViewButton.js +37 -0
- package/dist/views/BuyBond/components/ExpandedViewButton.js.map +1 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js +71 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js.map +1 -0
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js +55 -0
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js.map +1 -0
- package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js +36 -0
- package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js.map +1 -0
- package/dist/views/BuyBond/components/ProjectDescription.js +38 -0
- package/dist/views/BuyBond/components/ProjectDescription.js.map +1 -0
- package/dist/views/BuyBond/index.js +12 -0
- package/dist/views/BuyBond/index.js.map +1 -0
- package/dist/views/BuyBond/styles.js +33 -0
- package/dist/views/BuyBond/styles.js.map +1 -0
- package/dist/views/FullBondsView/FullBondsView.js +34 -0
- package/dist/views/FullBondsView/FullBondsView.js.map +1 -0
- package/dist/views/FullBondsView/index.js +12 -0
- package/dist/views/FullBondsView/index.js.map +1 -0
- package/dist/views/LifiModal/LifiModal.js +79 -0
- package/dist/views/LifiModal/LifiModal.js.map +1 -0
- package/dist/views/ProjectView/ProjectView.js +72 -0
- package/dist/views/ProjectView/ProjectView.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js +56 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js +46 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js +24 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js +51 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.js +45 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/index.js +97 -0
- package/dist/views/ProjectView/components/BondStats/index.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/styles.js +49 -0
- package/dist/views/ProjectView/components/BondStats/styles.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/types.js +40 -0
- package/dist/views/ProjectView/components/BondStats/types.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/utils.js +10 -0
- package/dist/views/ProjectView/components/BondStats/utils.js.map +1 -0
- package/dist/views/ProjectView/components/NavPanel/index.js +32 -0
- package/dist/views/ProjectView/components/NavPanel/index.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js +112 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.js +100 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.js +20 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/index.js +53 -0
- package/dist/views/ProjectView/components/PriceChart/index.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/styles.js +44 -0
- package/dist/views/ProjectView/components/PriceChart/styles.js.map +1 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.js +34 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.js.map +1 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.js +44 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.js.map +1 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.js +112 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.js.map +1 -0
- package/dist/views/ProjectView/index.js +12 -0
- package/dist/views/ProjectView/index.js.map +1 -0
- package/dist/views/ProjectView/styles.js +9 -0
- package/dist/views/ProjectView/styles.js.map +1 -0
- package/dist/views/SingleBond/SingleBond.js +50 -0
- package/dist/views/SingleBond/SingleBond.js.map +1 -0
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js +85 -0
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js.map +1 -0
- package/dist/views/SingleBond/index.js +12 -0
- package/dist/views/SingleBond/index.js.map +1 -0
- package/dist/views/TransactionModal/TransactionModal.js +194 -0
- package/dist/views/TransactionModal/TransactionModal.js.map +1 -0
- package/dist/views/YourBonds/YourBonds.js +158 -0
- package/dist/views/YourBonds/YourBonds.js.map +1 -0
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js +133 -0
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js.map +1 -0
- package/dist/views/YourBonds/components/ClaimAll/index.js +36 -0
- package/dist/views/YourBonds/components/ClaimAll/index.js.map +1 -0
- package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js +29 -0
- package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js +118 -0
- package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js +151 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js +58 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js +183 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js.map +1 -0
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js +29 -0
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js.map +1 -0
- package/dist/views/YourBonds/index.js +12 -0
- package/dist/views/YourBonds/index.js.map +1 -0
- package/dist/views/YourBondsModal/YourBondsModal.js +154 -0
- package/dist/views/YourBondsModal/YourBondsModal.js.map +1 -0
- package/dist/views/YourBondsModal/components/Actions/Actions.js +146 -0
- package/dist/views/YourBondsModal/components/Actions/Actions.js.map +1 -0
- package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js +166 -0
- package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js +73 -0
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js +94 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/utils.js +57 -0
- package/dist/views/YourBondsModal/components/LinkShare/utils.js.map +1 -0
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js +153 -0
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js +39 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js +32 -0
- package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js +47 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js +88 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js +103 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js +45 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js.map +1 -0
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js +58 -0
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js.map +1 -0
- package/package.json +70 -1
|
@@ -0,0 +1,2479 @@
|
|
|
1
|
+
import BN from '../../../bn.js/lib/bn.js';
|
|
2
|
+
import hash from '../../../hash.js/lib/hash.js';
|
|
3
|
+
|
|
4
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
5
|
+
return module = {
|
|
6
|
+
path: basedir,
|
|
7
|
+
exports: {},
|
|
8
|
+
require: function (path, base) {
|
|
9
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
10
|
+
}
|
|
11
|
+
}, fn(module, module.exports), module.exports;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function commonjsRequire () {
|
|
15
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
var minimalisticAssert = assert;
|
|
19
|
+
|
|
20
|
+
function assert(val, msg) {
|
|
21
|
+
if (!val)
|
|
22
|
+
throw new Error(msg || 'Assertion failed');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
assert.equal = function assertEqual(l, r, msg) {
|
|
26
|
+
if (l != r)
|
|
27
|
+
throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var utils_1 = createCommonjsModule(function (module, exports$1) {
|
|
31
|
+
|
|
32
|
+
var utils = exports$1;
|
|
33
|
+
|
|
34
|
+
function toArray(msg, enc) {
|
|
35
|
+
if (Array.isArray(msg))
|
|
36
|
+
return msg.slice();
|
|
37
|
+
if (!msg)
|
|
38
|
+
return [];
|
|
39
|
+
var res = [];
|
|
40
|
+
if (typeof msg !== 'string') {
|
|
41
|
+
for (var i = 0; i < msg.length; i++)
|
|
42
|
+
res[i] = msg[i] | 0;
|
|
43
|
+
return res;
|
|
44
|
+
}
|
|
45
|
+
if (enc === 'hex') {
|
|
46
|
+
msg = msg.replace(/[^a-z0-9]+/ig, '');
|
|
47
|
+
if (msg.length % 2 !== 0)
|
|
48
|
+
msg = '0' + msg;
|
|
49
|
+
for (var i = 0; i < msg.length; i += 2)
|
|
50
|
+
res.push(parseInt(msg[i] + msg[i + 1], 16));
|
|
51
|
+
} else {
|
|
52
|
+
for (var i = 0; i < msg.length; i++) {
|
|
53
|
+
var c = msg.charCodeAt(i);
|
|
54
|
+
var hi = c >> 8;
|
|
55
|
+
var lo = c & 0xff;
|
|
56
|
+
if (hi)
|
|
57
|
+
res.push(hi, lo);
|
|
58
|
+
else
|
|
59
|
+
res.push(lo);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return res;
|
|
63
|
+
}
|
|
64
|
+
utils.toArray = toArray;
|
|
65
|
+
|
|
66
|
+
function zero2(word) {
|
|
67
|
+
if (word.length === 1)
|
|
68
|
+
return '0' + word;
|
|
69
|
+
else
|
|
70
|
+
return word;
|
|
71
|
+
}
|
|
72
|
+
utils.zero2 = zero2;
|
|
73
|
+
|
|
74
|
+
function toHex(msg) {
|
|
75
|
+
var res = '';
|
|
76
|
+
for (var i = 0; i < msg.length; i++)
|
|
77
|
+
res += zero2(msg[i].toString(16));
|
|
78
|
+
return res;
|
|
79
|
+
}
|
|
80
|
+
utils.toHex = toHex;
|
|
81
|
+
|
|
82
|
+
utils.encode = function encode(arr, enc) {
|
|
83
|
+
if (enc === 'hex')
|
|
84
|
+
return toHex(arr);
|
|
85
|
+
else
|
|
86
|
+
return arr;
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
var utils_1$1 = createCommonjsModule(function (module, exports$1) {
|
|
91
|
+
|
|
92
|
+
var utils = exports$1;
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
utils.assert = minimalisticAssert;
|
|
98
|
+
utils.toArray = utils_1.toArray;
|
|
99
|
+
utils.zero2 = utils_1.zero2;
|
|
100
|
+
utils.toHex = utils_1.toHex;
|
|
101
|
+
utils.encode = utils_1.encode;
|
|
102
|
+
|
|
103
|
+
// Represent num in a w-NAF form
|
|
104
|
+
function getNAF(num, w, bits) {
|
|
105
|
+
var naf = new Array(Math.max(num.bitLength(), bits) + 1);
|
|
106
|
+
var i;
|
|
107
|
+
for (i = 0; i < naf.length; i += 1) {
|
|
108
|
+
naf[i] = 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
var ws = 1 << (w + 1);
|
|
112
|
+
var k = num.clone();
|
|
113
|
+
|
|
114
|
+
for (i = 0; i < naf.length; i++) {
|
|
115
|
+
var z;
|
|
116
|
+
var mod = k.andln(ws - 1);
|
|
117
|
+
if (k.isOdd()) {
|
|
118
|
+
if (mod > (ws >> 1) - 1)
|
|
119
|
+
z = (ws >> 1) - mod;
|
|
120
|
+
else
|
|
121
|
+
z = mod;
|
|
122
|
+
k.isubn(z);
|
|
123
|
+
} else {
|
|
124
|
+
z = 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
naf[i] = z;
|
|
128
|
+
k.iushrn(1);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return naf;
|
|
132
|
+
}
|
|
133
|
+
utils.getNAF = getNAF;
|
|
134
|
+
|
|
135
|
+
// Represent k1, k2 in a Joint Sparse Form
|
|
136
|
+
function getJSF(k1, k2) {
|
|
137
|
+
var jsf = [
|
|
138
|
+
[],
|
|
139
|
+
[],
|
|
140
|
+
];
|
|
141
|
+
|
|
142
|
+
k1 = k1.clone();
|
|
143
|
+
k2 = k2.clone();
|
|
144
|
+
var d1 = 0;
|
|
145
|
+
var d2 = 0;
|
|
146
|
+
var m8;
|
|
147
|
+
while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {
|
|
148
|
+
// First phase
|
|
149
|
+
var m14 = (k1.andln(3) + d1) & 3;
|
|
150
|
+
var m24 = (k2.andln(3) + d2) & 3;
|
|
151
|
+
if (m14 === 3)
|
|
152
|
+
m14 = -1;
|
|
153
|
+
if (m24 === 3)
|
|
154
|
+
m24 = -1;
|
|
155
|
+
var u1;
|
|
156
|
+
if ((m14 & 1) === 0) {
|
|
157
|
+
u1 = 0;
|
|
158
|
+
} else {
|
|
159
|
+
m8 = (k1.andln(7) + d1) & 7;
|
|
160
|
+
if ((m8 === 3 || m8 === 5) && m24 === 2)
|
|
161
|
+
u1 = -m14;
|
|
162
|
+
else
|
|
163
|
+
u1 = m14;
|
|
164
|
+
}
|
|
165
|
+
jsf[0].push(u1);
|
|
166
|
+
|
|
167
|
+
var u2;
|
|
168
|
+
if ((m24 & 1) === 0) {
|
|
169
|
+
u2 = 0;
|
|
170
|
+
} else {
|
|
171
|
+
m8 = (k2.andln(7) + d2) & 7;
|
|
172
|
+
if ((m8 === 3 || m8 === 5) && m14 === 2)
|
|
173
|
+
u2 = -m24;
|
|
174
|
+
else
|
|
175
|
+
u2 = m24;
|
|
176
|
+
}
|
|
177
|
+
jsf[1].push(u2);
|
|
178
|
+
|
|
179
|
+
// Second phase
|
|
180
|
+
if (2 * d1 === u1 + 1)
|
|
181
|
+
d1 = 1 - d1;
|
|
182
|
+
if (2 * d2 === u2 + 1)
|
|
183
|
+
d2 = 1 - d2;
|
|
184
|
+
k1.iushrn(1);
|
|
185
|
+
k2.iushrn(1);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return jsf;
|
|
189
|
+
}
|
|
190
|
+
utils.getJSF = getJSF;
|
|
191
|
+
|
|
192
|
+
function cachedProperty(obj, name, computer) {
|
|
193
|
+
var key = '_' + name;
|
|
194
|
+
obj.prototype[name] = function cachedProperty() {
|
|
195
|
+
return this[key] !== undefined ? this[key] :
|
|
196
|
+
this[key] = computer.call(this);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
utils.cachedProperty = cachedProperty;
|
|
200
|
+
|
|
201
|
+
function parseBytes(bytes) {
|
|
202
|
+
return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :
|
|
203
|
+
bytes;
|
|
204
|
+
}
|
|
205
|
+
utils.parseBytes = parseBytes;
|
|
206
|
+
|
|
207
|
+
function intFromLE(bytes) {
|
|
208
|
+
return new BN(bytes, 'hex', 'le');
|
|
209
|
+
}
|
|
210
|
+
utils.intFromLE = intFromLE;
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
var getNAF = utils_1$1.getNAF;
|
|
216
|
+
var getJSF = utils_1$1.getJSF;
|
|
217
|
+
var assert$1 = utils_1$1.assert;
|
|
218
|
+
|
|
219
|
+
function BaseCurve(type, conf) {
|
|
220
|
+
this.type = type;
|
|
221
|
+
this.p = new BN(conf.p, 16);
|
|
222
|
+
|
|
223
|
+
// Use Montgomery, when there is no fast reduction for the prime
|
|
224
|
+
this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);
|
|
225
|
+
|
|
226
|
+
// Useful for many curves
|
|
227
|
+
this.zero = new BN(0).toRed(this.red);
|
|
228
|
+
this.one = new BN(1).toRed(this.red);
|
|
229
|
+
this.two = new BN(2).toRed(this.red);
|
|
230
|
+
|
|
231
|
+
// Curve configuration, optional
|
|
232
|
+
this.n = conf.n && new BN(conf.n, 16);
|
|
233
|
+
this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);
|
|
234
|
+
|
|
235
|
+
// Temporary arrays
|
|
236
|
+
this._wnafT1 = new Array(4);
|
|
237
|
+
this._wnafT2 = new Array(4);
|
|
238
|
+
this._wnafT3 = new Array(4);
|
|
239
|
+
this._wnafT4 = new Array(4);
|
|
240
|
+
|
|
241
|
+
this._bitLength = this.n ? this.n.bitLength() : 0;
|
|
242
|
+
|
|
243
|
+
// Generalized Greg Maxwell's trick
|
|
244
|
+
var adjustCount = this.n && this.p.div(this.n);
|
|
245
|
+
if (!adjustCount || adjustCount.cmpn(100) > 0) {
|
|
246
|
+
this.redN = null;
|
|
247
|
+
} else {
|
|
248
|
+
this._maxwellTrick = true;
|
|
249
|
+
this.redN = this.n.toRed(this.red);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
var base = BaseCurve;
|
|
253
|
+
|
|
254
|
+
BaseCurve.prototype.point = function point() {
|
|
255
|
+
throw new Error('Not implemented');
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
BaseCurve.prototype.validate = function validate() {
|
|
259
|
+
throw new Error('Not implemented');
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {
|
|
263
|
+
assert$1(p.precomputed);
|
|
264
|
+
var doubles = p._getDoubles();
|
|
265
|
+
|
|
266
|
+
var naf = getNAF(k, 1, this._bitLength);
|
|
267
|
+
var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);
|
|
268
|
+
I /= 3;
|
|
269
|
+
|
|
270
|
+
// Translate into more windowed form
|
|
271
|
+
var repr = [];
|
|
272
|
+
var j;
|
|
273
|
+
var nafW;
|
|
274
|
+
for (j = 0; j < naf.length; j += doubles.step) {
|
|
275
|
+
nafW = 0;
|
|
276
|
+
for (var l = j + doubles.step - 1; l >= j; l--)
|
|
277
|
+
nafW = (nafW << 1) + naf[l];
|
|
278
|
+
repr.push(nafW);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
var a = this.jpoint(null, null, null);
|
|
282
|
+
var b = this.jpoint(null, null, null);
|
|
283
|
+
for (var i = I; i > 0; i--) {
|
|
284
|
+
for (j = 0; j < repr.length; j++) {
|
|
285
|
+
nafW = repr[j];
|
|
286
|
+
if (nafW === i)
|
|
287
|
+
b = b.mixedAdd(doubles.points[j]);
|
|
288
|
+
else if (nafW === -i)
|
|
289
|
+
b = b.mixedAdd(doubles.points[j].neg());
|
|
290
|
+
}
|
|
291
|
+
a = a.add(b);
|
|
292
|
+
}
|
|
293
|
+
return a.toP();
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
|
|
297
|
+
var w = 4;
|
|
298
|
+
|
|
299
|
+
// Precompute window
|
|
300
|
+
var nafPoints = p._getNAFPoints(w);
|
|
301
|
+
w = nafPoints.wnd;
|
|
302
|
+
var wnd = nafPoints.points;
|
|
303
|
+
|
|
304
|
+
// Get NAF form
|
|
305
|
+
var naf = getNAF(k, w, this._bitLength);
|
|
306
|
+
|
|
307
|
+
// Add `this`*(N+1) for every w-NAF index
|
|
308
|
+
var acc = this.jpoint(null, null, null);
|
|
309
|
+
for (var i = naf.length - 1; i >= 0; i--) {
|
|
310
|
+
// Count zeroes
|
|
311
|
+
for (var l = 0; i >= 0 && naf[i] === 0; i--)
|
|
312
|
+
l++;
|
|
313
|
+
if (i >= 0)
|
|
314
|
+
l++;
|
|
315
|
+
acc = acc.dblp(l);
|
|
316
|
+
|
|
317
|
+
if (i < 0)
|
|
318
|
+
break;
|
|
319
|
+
var z = naf[i];
|
|
320
|
+
assert$1(z !== 0);
|
|
321
|
+
if (p.type === 'affine') {
|
|
322
|
+
// J +- P
|
|
323
|
+
if (z > 0)
|
|
324
|
+
acc = acc.mixedAdd(wnd[(z - 1) >> 1]);
|
|
325
|
+
else
|
|
326
|
+
acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());
|
|
327
|
+
} else {
|
|
328
|
+
// J +- J
|
|
329
|
+
if (z > 0)
|
|
330
|
+
acc = acc.add(wnd[(z - 1) >> 1]);
|
|
331
|
+
else
|
|
332
|
+
acc = acc.add(wnd[(-z - 1) >> 1].neg());
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return p.type === 'affine' ? acc.toP() : acc;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
|
339
|
+
points,
|
|
340
|
+
coeffs,
|
|
341
|
+
len,
|
|
342
|
+
jacobianResult) {
|
|
343
|
+
var wndWidth = this._wnafT1;
|
|
344
|
+
var wnd = this._wnafT2;
|
|
345
|
+
var naf = this._wnafT3;
|
|
346
|
+
|
|
347
|
+
// Fill all arrays
|
|
348
|
+
var max = 0;
|
|
349
|
+
var i;
|
|
350
|
+
var j;
|
|
351
|
+
var p;
|
|
352
|
+
for (i = 0; i < len; i++) {
|
|
353
|
+
p = points[i];
|
|
354
|
+
var nafPoints = p._getNAFPoints(defW);
|
|
355
|
+
wndWidth[i] = nafPoints.wnd;
|
|
356
|
+
wnd[i] = nafPoints.points;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// Comb small window NAFs
|
|
360
|
+
for (i = len - 1; i >= 1; i -= 2) {
|
|
361
|
+
var a = i - 1;
|
|
362
|
+
var b = i;
|
|
363
|
+
if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {
|
|
364
|
+
naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);
|
|
365
|
+
naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);
|
|
366
|
+
max = Math.max(naf[a].length, max);
|
|
367
|
+
max = Math.max(naf[b].length, max);
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
var comb = [
|
|
372
|
+
points[a], /* 1 */
|
|
373
|
+
null, /* 3 */
|
|
374
|
+
null, /* 5 */
|
|
375
|
+
points[b], /* 7 */
|
|
376
|
+
];
|
|
377
|
+
|
|
378
|
+
// Try to avoid Projective points, if possible
|
|
379
|
+
if (points[a].y.cmp(points[b].y) === 0) {
|
|
380
|
+
comb[1] = points[a].add(points[b]);
|
|
381
|
+
comb[2] = points[a].toJ().mixedAdd(points[b].neg());
|
|
382
|
+
} else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {
|
|
383
|
+
comb[1] = points[a].toJ().mixedAdd(points[b]);
|
|
384
|
+
comb[2] = points[a].add(points[b].neg());
|
|
385
|
+
} else {
|
|
386
|
+
comb[1] = points[a].toJ().mixedAdd(points[b]);
|
|
387
|
+
comb[2] = points[a].toJ().mixedAdd(points[b].neg());
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
var index = [
|
|
391
|
+
-3, /* -1 -1 */
|
|
392
|
+
-1, /* -1 0 */
|
|
393
|
+
-5, /* -1 1 */
|
|
394
|
+
-7, /* 0 -1 */
|
|
395
|
+
0, /* 0 0 */
|
|
396
|
+
7, /* 0 1 */
|
|
397
|
+
5, /* 1 -1 */
|
|
398
|
+
1, /* 1 0 */
|
|
399
|
+
3, /* 1 1 */
|
|
400
|
+
];
|
|
401
|
+
|
|
402
|
+
var jsf = getJSF(coeffs[a], coeffs[b]);
|
|
403
|
+
max = Math.max(jsf[0].length, max);
|
|
404
|
+
naf[a] = new Array(max);
|
|
405
|
+
naf[b] = new Array(max);
|
|
406
|
+
for (j = 0; j < max; j++) {
|
|
407
|
+
var ja = jsf[0][j] | 0;
|
|
408
|
+
var jb = jsf[1][j] | 0;
|
|
409
|
+
|
|
410
|
+
naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];
|
|
411
|
+
naf[b][j] = 0;
|
|
412
|
+
wnd[a] = comb;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
var acc = this.jpoint(null, null, null);
|
|
417
|
+
var tmp = this._wnafT4;
|
|
418
|
+
for (i = max; i >= 0; i--) {
|
|
419
|
+
var k = 0;
|
|
420
|
+
|
|
421
|
+
while (i >= 0) {
|
|
422
|
+
var zero = true;
|
|
423
|
+
for (j = 0; j < len; j++) {
|
|
424
|
+
tmp[j] = naf[j][i] | 0;
|
|
425
|
+
if (tmp[j] !== 0)
|
|
426
|
+
zero = false;
|
|
427
|
+
}
|
|
428
|
+
if (!zero)
|
|
429
|
+
break;
|
|
430
|
+
k++;
|
|
431
|
+
i--;
|
|
432
|
+
}
|
|
433
|
+
if (i >= 0)
|
|
434
|
+
k++;
|
|
435
|
+
acc = acc.dblp(k);
|
|
436
|
+
if (i < 0)
|
|
437
|
+
break;
|
|
438
|
+
|
|
439
|
+
for (j = 0; j < len; j++) {
|
|
440
|
+
var z = tmp[j];
|
|
441
|
+
if (z === 0)
|
|
442
|
+
continue;
|
|
443
|
+
else if (z > 0)
|
|
444
|
+
p = wnd[j][(z - 1) >> 1];
|
|
445
|
+
else if (z < 0)
|
|
446
|
+
p = wnd[j][(-z - 1) >> 1].neg();
|
|
447
|
+
|
|
448
|
+
if (p.type === 'affine')
|
|
449
|
+
acc = acc.mixedAdd(p);
|
|
450
|
+
else
|
|
451
|
+
acc = acc.add(p);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
// Zeroify references
|
|
455
|
+
for (i = 0; i < len; i++)
|
|
456
|
+
wnd[i] = null;
|
|
457
|
+
|
|
458
|
+
if (jacobianResult)
|
|
459
|
+
return acc;
|
|
460
|
+
else
|
|
461
|
+
return acc.toP();
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
function BasePoint(curve, type) {
|
|
465
|
+
this.curve = curve;
|
|
466
|
+
this.type = type;
|
|
467
|
+
this.precomputed = null;
|
|
468
|
+
}
|
|
469
|
+
BaseCurve.BasePoint = BasePoint;
|
|
470
|
+
|
|
471
|
+
BasePoint.prototype.eq = function eq(/*other*/) {
|
|
472
|
+
throw new Error('Not implemented');
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
BasePoint.prototype.validate = function validate() {
|
|
476
|
+
return this.curve.validate(this);
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
|
|
480
|
+
bytes = utils_1$1.toArray(bytes, enc);
|
|
481
|
+
|
|
482
|
+
var len = this.p.byteLength();
|
|
483
|
+
|
|
484
|
+
// uncompressed, hybrid-odd, hybrid-even
|
|
485
|
+
if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&
|
|
486
|
+
bytes.length - 1 === 2 * len) {
|
|
487
|
+
if (bytes[0] === 0x06)
|
|
488
|
+
assert$1(bytes[bytes.length - 1] % 2 === 0);
|
|
489
|
+
else if (bytes[0] === 0x07)
|
|
490
|
+
assert$1(bytes[bytes.length - 1] % 2 === 1);
|
|
491
|
+
|
|
492
|
+
var res = this.point(bytes.slice(1, 1 + len),
|
|
493
|
+
bytes.slice(1 + len, 1 + 2 * len));
|
|
494
|
+
|
|
495
|
+
return res;
|
|
496
|
+
} else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&
|
|
497
|
+
bytes.length - 1 === len) {
|
|
498
|
+
return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);
|
|
499
|
+
}
|
|
500
|
+
throw new Error('Unknown point format');
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
BasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {
|
|
504
|
+
return this.encode(enc, true);
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
BasePoint.prototype._encode = function _encode(compact) {
|
|
508
|
+
var len = this.curve.p.byteLength();
|
|
509
|
+
var x = this.getX().toArray('be', len);
|
|
510
|
+
|
|
511
|
+
if (compact)
|
|
512
|
+
return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);
|
|
513
|
+
|
|
514
|
+
return [ 0x04 ].concat(x, this.getY().toArray('be', len));
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
BasePoint.prototype.encode = function encode(enc, compact) {
|
|
518
|
+
return utils_1$1.encode(this._encode(compact), enc);
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
BasePoint.prototype.precompute = function precompute(power) {
|
|
522
|
+
if (this.precomputed)
|
|
523
|
+
return this;
|
|
524
|
+
|
|
525
|
+
var precomputed = {
|
|
526
|
+
doubles: null,
|
|
527
|
+
naf: null,
|
|
528
|
+
beta: null,
|
|
529
|
+
};
|
|
530
|
+
precomputed.naf = this._getNAFPoints(8);
|
|
531
|
+
precomputed.doubles = this._getDoubles(4, power);
|
|
532
|
+
precomputed.beta = this._getBeta();
|
|
533
|
+
this.precomputed = precomputed;
|
|
534
|
+
|
|
535
|
+
return this;
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
BasePoint.prototype._hasDoubles = function _hasDoubles(k) {
|
|
539
|
+
if (!this.precomputed)
|
|
540
|
+
return false;
|
|
541
|
+
|
|
542
|
+
var doubles = this.precomputed.doubles;
|
|
543
|
+
if (!doubles)
|
|
544
|
+
return false;
|
|
545
|
+
|
|
546
|
+
return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
BasePoint.prototype._getDoubles = function _getDoubles(step, power) {
|
|
550
|
+
if (this.precomputed && this.precomputed.doubles)
|
|
551
|
+
return this.precomputed.doubles;
|
|
552
|
+
|
|
553
|
+
var doubles = [ this ];
|
|
554
|
+
var acc = this;
|
|
555
|
+
for (var i = 0; i < power; i += step) {
|
|
556
|
+
for (var j = 0; j < step; j++)
|
|
557
|
+
acc = acc.dbl();
|
|
558
|
+
doubles.push(acc);
|
|
559
|
+
}
|
|
560
|
+
return {
|
|
561
|
+
step: step,
|
|
562
|
+
points: doubles,
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {
|
|
567
|
+
if (this.precomputed && this.precomputed.naf)
|
|
568
|
+
return this.precomputed.naf;
|
|
569
|
+
|
|
570
|
+
var res = [ this ];
|
|
571
|
+
var max = (1 << wnd) - 1;
|
|
572
|
+
var dbl = max === 1 ? null : this.dbl();
|
|
573
|
+
for (var i = 1; i < max; i++)
|
|
574
|
+
res[i] = res[i - 1].add(dbl);
|
|
575
|
+
return {
|
|
576
|
+
wnd: wnd,
|
|
577
|
+
points: res,
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
BasePoint.prototype._getBeta = function _getBeta() {
|
|
582
|
+
return null;
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
BasePoint.prototype.dblp = function dblp(k) {
|
|
586
|
+
var r = this;
|
|
587
|
+
for (var i = 0; i < k; i++)
|
|
588
|
+
r = r.dbl();
|
|
589
|
+
return r;
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
var inherits_browser = createCommonjsModule(function (module) {
|
|
593
|
+
if (typeof Object.create === 'function') {
|
|
594
|
+
// implementation from standard node.js 'util' module
|
|
595
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
596
|
+
if (superCtor) {
|
|
597
|
+
ctor.super_ = superCtor;
|
|
598
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
599
|
+
constructor: {
|
|
600
|
+
value: ctor,
|
|
601
|
+
enumerable: false,
|
|
602
|
+
writable: true,
|
|
603
|
+
configurable: true
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
} else {
|
|
609
|
+
// old school shim for old browsers
|
|
610
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
611
|
+
if (superCtor) {
|
|
612
|
+
ctor.super_ = superCtor;
|
|
613
|
+
var TempCtor = function () {};
|
|
614
|
+
TempCtor.prototype = superCtor.prototype;
|
|
615
|
+
ctor.prototype = new TempCtor();
|
|
616
|
+
ctor.prototype.constructor = ctor;
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
var assert$2 = utils_1$1.assert;
|
|
628
|
+
|
|
629
|
+
function ShortCurve(conf) {
|
|
630
|
+
base.call(this, 'short', conf);
|
|
631
|
+
|
|
632
|
+
this.a = new BN(conf.a, 16).toRed(this.red);
|
|
633
|
+
this.b = new BN(conf.b, 16).toRed(this.red);
|
|
634
|
+
this.tinv = this.two.redInvm();
|
|
635
|
+
|
|
636
|
+
this.zeroA = this.a.fromRed().cmpn(0) === 0;
|
|
637
|
+
this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;
|
|
638
|
+
|
|
639
|
+
// If the curve is endomorphic, precalculate beta and lambda
|
|
640
|
+
this.endo = this._getEndomorphism(conf);
|
|
641
|
+
this._endoWnafT1 = new Array(4);
|
|
642
|
+
this._endoWnafT2 = new Array(4);
|
|
643
|
+
}
|
|
644
|
+
inherits_browser(ShortCurve, base);
|
|
645
|
+
var short_1 = ShortCurve;
|
|
646
|
+
|
|
647
|
+
ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
|
|
648
|
+
// No efficient endomorphism
|
|
649
|
+
if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)
|
|
650
|
+
return;
|
|
651
|
+
|
|
652
|
+
// Compute beta and lambda, that lambda * P = (beta * Px; Py)
|
|
653
|
+
var beta;
|
|
654
|
+
var lambda;
|
|
655
|
+
if (conf.beta) {
|
|
656
|
+
beta = new BN(conf.beta, 16).toRed(this.red);
|
|
657
|
+
} else {
|
|
658
|
+
var betas = this._getEndoRoots(this.p);
|
|
659
|
+
// Choose the smallest beta
|
|
660
|
+
beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];
|
|
661
|
+
beta = beta.toRed(this.red);
|
|
662
|
+
}
|
|
663
|
+
if (conf.lambda) {
|
|
664
|
+
lambda = new BN(conf.lambda, 16);
|
|
665
|
+
} else {
|
|
666
|
+
// Choose the lambda that is matching selected beta
|
|
667
|
+
var lambdas = this._getEndoRoots(this.n);
|
|
668
|
+
if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {
|
|
669
|
+
lambda = lambdas[0];
|
|
670
|
+
} else {
|
|
671
|
+
lambda = lambdas[1];
|
|
672
|
+
assert$2(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
// Get basis vectors, used for balanced length-two representation
|
|
677
|
+
var basis;
|
|
678
|
+
if (conf.basis) {
|
|
679
|
+
basis = conf.basis.map(function(vec) {
|
|
680
|
+
return {
|
|
681
|
+
a: new BN(vec.a, 16),
|
|
682
|
+
b: new BN(vec.b, 16),
|
|
683
|
+
};
|
|
684
|
+
});
|
|
685
|
+
} else {
|
|
686
|
+
basis = this._getEndoBasis(lambda);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
return {
|
|
690
|
+
beta: beta,
|
|
691
|
+
lambda: lambda,
|
|
692
|
+
basis: basis,
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {
|
|
697
|
+
// Find roots of for x^2 + x + 1 in F
|
|
698
|
+
// Root = (-1 +- Sqrt(-3)) / 2
|
|
699
|
+
//
|
|
700
|
+
var red = num === this.p ? this.red : BN.mont(num);
|
|
701
|
+
var tinv = new BN(2).toRed(red).redInvm();
|
|
702
|
+
var ntinv = tinv.redNeg();
|
|
703
|
+
|
|
704
|
+
var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);
|
|
705
|
+
|
|
706
|
+
var l1 = ntinv.redAdd(s).fromRed();
|
|
707
|
+
var l2 = ntinv.redSub(s).fromRed();
|
|
708
|
+
return [ l1, l2 ];
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {
|
|
712
|
+
// aprxSqrt >= sqrt(this.n)
|
|
713
|
+
var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));
|
|
714
|
+
|
|
715
|
+
// 3.74
|
|
716
|
+
// Run EGCD, until r(L + 1) < aprxSqrt
|
|
717
|
+
var u = lambda;
|
|
718
|
+
var v = this.n.clone();
|
|
719
|
+
var x1 = new BN(1);
|
|
720
|
+
var y1 = new BN(0);
|
|
721
|
+
var x2 = new BN(0);
|
|
722
|
+
var y2 = new BN(1);
|
|
723
|
+
|
|
724
|
+
// NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)
|
|
725
|
+
var a0;
|
|
726
|
+
var b0;
|
|
727
|
+
// First vector
|
|
728
|
+
var a1;
|
|
729
|
+
var b1;
|
|
730
|
+
// Second vector
|
|
731
|
+
var a2;
|
|
732
|
+
var b2;
|
|
733
|
+
|
|
734
|
+
var prevR;
|
|
735
|
+
var i = 0;
|
|
736
|
+
var r;
|
|
737
|
+
var x;
|
|
738
|
+
while (u.cmpn(0) !== 0) {
|
|
739
|
+
var q = v.div(u);
|
|
740
|
+
r = v.sub(q.mul(u));
|
|
741
|
+
x = x2.sub(q.mul(x1));
|
|
742
|
+
var y = y2.sub(q.mul(y1));
|
|
743
|
+
|
|
744
|
+
if (!a1 && r.cmp(aprxSqrt) < 0) {
|
|
745
|
+
a0 = prevR.neg();
|
|
746
|
+
b0 = x1;
|
|
747
|
+
a1 = r.neg();
|
|
748
|
+
b1 = x;
|
|
749
|
+
} else if (a1 && ++i === 2) {
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
752
|
+
prevR = r;
|
|
753
|
+
|
|
754
|
+
v = u;
|
|
755
|
+
u = r;
|
|
756
|
+
x2 = x1;
|
|
757
|
+
x1 = x;
|
|
758
|
+
y2 = y1;
|
|
759
|
+
y1 = y;
|
|
760
|
+
}
|
|
761
|
+
a2 = r.neg();
|
|
762
|
+
b2 = x;
|
|
763
|
+
|
|
764
|
+
var len1 = a1.sqr().add(b1.sqr());
|
|
765
|
+
var len2 = a2.sqr().add(b2.sqr());
|
|
766
|
+
if (len2.cmp(len1) >= 0) {
|
|
767
|
+
a2 = a0;
|
|
768
|
+
b2 = b0;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
// Normalize signs
|
|
772
|
+
if (a1.negative) {
|
|
773
|
+
a1 = a1.neg();
|
|
774
|
+
b1 = b1.neg();
|
|
775
|
+
}
|
|
776
|
+
if (a2.negative) {
|
|
777
|
+
a2 = a2.neg();
|
|
778
|
+
b2 = b2.neg();
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
return [
|
|
782
|
+
{ a: a1, b: b1 },
|
|
783
|
+
{ a: a2, b: b2 },
|
|
784
|
+
];
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
ShortCurve.prototype._endoSplit = function _endoSplit(k) {
|
|
788
|
+
var basis = this.endo.basis;
|
|
789
|
+
var v1 = basis[0];
|
|
790
|
+
var v2 = basis[1];
|
|
791
|
+
|
|
792
|
+
var c1 = v2.b.mul(k).divRound(this.n);
|
|
793
|
+
var c2 = v1.b.neg().mul(k).divRound(this.n);
|
|
794
|
+
|
|
795
|
+
var p1 = c1.mul(v1.a);
|
|
796
|
+
var p2 = c2.mul(v2.a);
|
|
797
|
+
var q1 = c1.mul(v1.b);
|
|
798
|
+
var q2 = c2.mul(v2.b);
|
|
799
|
+
|
|
800
|
+
// Calculate answer
|
|
801
|
+
var k1 = k.sub(p1).sub(p2);
|
|
802
|
+
var k2 = q1.add(q2).neg();
|
|
803
|
+
return { k1: k1, k2: k2 };
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
ShortCurve.prototype.pointFromX = function pointFromX(x, odd) {
|
|
807
|
+
x = new BN(x, 16);
|
|
808
|
+
if (!x.red)
|
|
809
|
+
x = x.toRed(this.red);
|
|
810
|
+
|
|
811
|
+
var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);
|
|
812
|
+
var y = y2.redSqrt();
|
|
813
|
+
if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)
|
|
814
|
+
throw new Error('invalid point');
|
|
815
|
+
|
|
816
|
+
// XXX Is there any way to tell if the number is odd without converting it
|
|
817
|
+
// to non-red form?
|
|
818
|
+
var isOdd = y.fromRed().isOdd();
|
|
819
|
+
if (odd && !isOdd || !odd && isOdd)
|
|
820
|
+
y = y.redNeg();
|
|
821
|
+
|
|
822
|
+
return this.point(x, y);
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
ShortCurve.prototype.validate = function validate(point) {
|
|
826
|
+
if (point.inf)
|
|
827
|
+
return true;
|
|
828
|
+
|
|
829
|
+
var x = point.x;
|
|
830
|
+
var y = point.y;
|
|
831
|
+
|
|
832
|
+
var ax = this.a.redMul(x);
|
|
833
|
+
var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);
|
|
834
|
+
return y.redSqr().redISub(rhs).cmpn(0) === 0;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
ShortCurve.prototype._endoWnafMulAdd =
|
|
838
|
+
function _endoWnafMulAdd(points, coeffs, jacobianResult) {
|
|
839
|
+
var npoints = this._endoWnafT1;
|
|
840
|
+
var ncoeffs = this._endoWnafT2;
|
|
841
|
+
for (var i = 0; i < points.length; i++) {
|
|
842
|
+
var split = this._endoSplit(coeffs[i]);
|
|
843
|
+
var p = points[i];
|
|
844
|
+
var beta = p._getBeta();
|
|
845
|
+
|
|
846
|
+
if (split.k1.negative) {
|
|
847
|
+
split.k1.ineg();
|
|
848
|
+
p = p.neg(true);
|
|
849
|
+
}
|
|
850
|
+
if (split.k2.negative) {
|
|
851
|
+
split.k2.ineg();
|
|
852
|
+
beta = beta.neg(true);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
npoints[i * 2] = p;
|
|
856
|
+
npoints[i * 2 + 1] = beta;
|
|
857
|
+
ncoeffs[i * 2] = split.k1;
|
|
858
|
+
ncoeffs[i * 2 + 1] = split.k2;
|
|
859
|
+
}
|
|
860
|
+
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
|
|
861
|
+
|
|
862
|
+
// Clean-up references to points and coefficients
|
|
863
|
+
for (var j = 0; j < i * 2; j++) {
|
|
864
|
+
npoints[j] = null;
|
|
865
|
+
ncoeffs[j] = null;
|
|
866
|
+
}
|
|
867
|
+
return res;
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
function Point(curve, x, y, isRed) {
|
|
871
|
+
base.BasePoint.call(this, curve, 'affine');
|
|
872
|
+
if (x === null && y === null) {
|
|
873
|
+
this.x = null;
|
|
874
|
+
this.y = null;
|
|
875
|
+
this.inf = true;
|
|
876
|
+
} else {
|
|
877
|
+
this.x = new BN(x, 16);
|
|
878
|
+
this.y = new BN(y, 16);
|
|
879
|
+
// Force redgomery representation when loading from JSON
|
|
880
|
+
if (isRed) {
|
|
881
|
+
this.x.forceRed(this.curve.red);
|
|
882
|
+
this.y.forceRed(this.curve.red);
|
|
883
|
+
}
|
|
884
|
+
if (!this.x.red)
|
|
885
|
+
this.x = this.x.toRed(this.curve.red);
|
|
886
|
+
if (!this.y.red)
|
|
887
|
+
this.y = this.y.toRed(this.curve.red);
|
|
888
|
+
this.inf = false;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
inherits_browser(Point, base.BasePoint);
|
|
892
|
+
|
|
893
|
+
ShortCurve.prototype.point = function point(x, y, isRed) {
|
|
894
|
+
return new Point(this, x, y, isRed);
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
ShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {
|
|
898
|
+
return Point.fromJSON(this, obj, red);
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
Point.prototype._getBeta = function _getBeta() {
|
|
902
|
+
if (!this.curve.endo)
|
|
903
|
+
return;
|
|
904
|
+
|
|
905
|
+
var pre = this.precomputed;
|
|
906
|
+
if (pre && pre.beta)
|
|
907
|
+
return pre.beta;
|
|
908
|
+
|
|
909
|
+
var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
|
|
910
|
+
if (pre) {
|
|
911
|
+
var curve = this.curve;
|
|
912
|
+
var endoMul = function(p) {
|
|
913
|
+
return curve.point(p.x.redMul(curve.endo.beta), p.y);
|
|
914
|
+
};
|
|
915
|
+
pre.beta = beta;
|
|
916
|
+
beta.precomputed = {
|
|
917
|
+
beta: null,
|
|
918
|
+
naf: pre.naf && {
|
|
919
|
+
wnd: pre.naf.wnd,
|
|
920
|
+
points: pre.naf.points.map(endoMul),
|
|
921
|
+
},
|
|
922
|
+
doubles: pre.doubles && {
|
|
923
|
+
step: pre.doubles.step,
|
|
924
|
+
points: pre.doubles.points.map(endoMul),
|
|
925
|
+
},
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
return beta;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
Point.prototype.toJSON = function toJSON() {
|
|
932
|
+
if (!this.precomputed)
|
|
933
|
+
return [ this.x, this.y ];
|
|
934
|
+
|
|
935
|
+
return [ this.x, this.y, this.precomputed && {
|
|
936
|
+
doubles: this.precomputed.doubles && {
|
|
937
|
+
step: this.precomputed.doubles.step,
|
|
938
|
+
points: this.precomputed.doubles.points.slice(1),
|
|
939
|
+
},
|
|
940
|
+
naf: this.precomputed.naf && {
|
|
941
|
+
wnd: this.precomputed.naf.wnd,
|
|
942
|
+
points: this.precomputed.naf.points.slice(1),
|
|
943
|
+
},
|
|
944
|
+
} ];
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
Point.fromJSON = function fromJSON(curve, obj, red) {
|
|
948
|
+
if (typeof obj === 'string')
|
|
949
|
+
obj = JSON.parse(obj);
|
|
950
|
+
var res = curve.point(obj[0], obj[1], red);
|
|
951
|
+
if (!obj[2])
|
|
952
|
+
return res;
|
|
953
|
+
|
|
954
|
+
function obj2point(obj) {
|
|
955
|
+
return curve.point(obj[0], obj[1], red);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
var pre = obj[2];
|
|
959
|
+
res.precomputed = {
|
|
960
|
+
beta: null,
|
|
961
|
+
doubles: pre.doubles && {
|
|
962
|
+
step: pre.doubles.step,
|
|
963
|
+
points: [ res ].concat(pre.doubles.points.map(obj2point)),
|
|
964
|
+
},
|
|
965
|
+
naf: pre.naf && {
|
|
966
|
+
wnd: pre.naf.wnd,
|
|
967
|
+
points: [ res ].concat(pre.naf.points.map(obj2point)),
|
|
968
|
+
},
|
|
969
|
+
};
|
|
970
|
+
return res;
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
Point.prototype.inspect = function inspect() {
|
|
974
|
+
if (this.isInfinity())
|
|
975
|
+
return '<EC Point Infinity>';
|
|
976
|
+
return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +
|
|
977
|
+
' y: ' + this.y.fromRed().toString(16, 2) + '>';
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
Point.prototype.isInfinity = function isInfinity() {
|
|
981
|
+
return this.inf;
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
Point.prototype.add = function add(p) {
|
|
985
|
+
// O + P = P
|
|
986
|
+
if (this.inf)
|
|
987
|
+
return p;
|
|
988
|
+
|
|
989
|
+
// P + O = P
|
|
990
|
+
if (p.inf)
|
|
991
|
+
return this;
|
|
992
|
+
|
|
993
|
+
// P + P = 2P
|
|
994
|
+
if (this.eq(p))
|
|
995
|
+
return this.dbl();
|
|
996
|
+
|
|
997
|
+
// P + (-P) = O
|
|
998
|
+
if (this.neg().eq(p))
|
|
999
|
+
return this.curve.point(null, null);
|
|
1000
|
+
|
|
1001
|
+
// P + Q = O
|
|
1002
|
+
if (this.x.cmp(p.x) === 0)
|
|
1003
|
+
return this.curve.point(null, null);
|
|
1004
|
+
|
|
1005
|
+
var c = this.y.redSub(p.y);
|
|
1006
|
+
if (c.cmpn(0) !== 0)
|
|
1007
|
+
c = c.redMul(this.x.redSub(p.x).redInvm());
|
|
1008
|
+
var nx = c.redSqr().redISub(this.x).redISub(p.x);
|
|
1009
|
+
var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
|
|
1010
|
+
return this.curve.point(nx, ny);
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
Point.prototype.dbl = function dbl() {
|
|
1014
|
+
if (this.inf)
|
|
1015
|
+
return this;
|
|
1016
|
+
|
|
1017
|
+
// 2P = O
|
|
1018
|
+
var ys1 = this.y.redAdd(this.y);
|
|
1019
|
+
if (ys1.cmpn(0) === 0)
|
|
1020
|
+
return this.curve.point(null, null);
|
|
1021
|
+
|
|
1022
|
+
var a = this.curve.a;
|
|
1023
|
+
|
|
1024
|
+
var x2 = this.x.redSqr();
|
|
1025
|
+
var dyinv = ys1.redInvm();
|
|
1026
|
+
var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);
|
|
1027
|
+
|
|
1028
|
+
var nx = c.redSqr().redISub(this.x.redAdd(this.x));
|
|
1029
|
+
var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
|
|
1030
|
+
return this.curve.point(nx, ny);
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
Point.prototype.getX = function getX() {
|
|
1034
|
+
return this.x.fromRed();
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
Point.prototype.getY = function getY() {
|
|
1038
|
+
return this.y.fromRed();
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
Point.prototype.mul = function mul(k) {
|
|
1042
|
+
k = new BN(k, 16);
|
|
1043
|
+
if (this.isInfinity())
|
|
1044
|
+
return this;
|
|
1045
|
+
else if (this._hasDoubles(k))
|
|
1046
|
+
return this.curve._fixedNafMul(this, k);
|
|
1047
|
+
else if (this.curve.endo)
|
|
1048
|
+
return this.curve._endoWnafMulAdd([ this ], [ k ]);
|
|
1049
|
+
else
|
|
1050
|
+
return this.curve._wnafMul(this, k);
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
Point.prototype.mulAdd = function mulAdd(k1, p2, k2) {
|
|
1054
|
+
var points = [ this, p2 ];
|
|
1055
|
+
var coeffs = [ k1, k2 ];
|
|
1056
|
+
if (this.curve.endo)
|
|
1057
|
+
return this.curve._endoWnafMulAdd(points, coeffs);
|
|
1058
|
+
else
|
|
1059
|
+
return this.curve._wnafMulAdd(1, points, coeffs, 2);
|
|
1060
|
+
};
|
|
1061
|
+
|
|
1062
|
+
Point.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {
|
|
1063
|
+
var points = [ this, p2 ];
|
|
1064
|
+
var coeffs = [ k1, k2 ];
|
|
1065
|
+
if (this.curve.endo)
|
|
1066
|
+
return this.curve._endoWnafMulAdd(points, coeffs, true);
|
|
1067
|
+
else
|
|
1068
|
+
return this.curve._wnafMulAdd(1, points, coeffs, 2, true);
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
Point.prototype.eq = function eq(p) {
|
|
1072
|
+
return this === p ||
|
|
1073
|
+
this.inf === p.inf &&
|
|
1074
|
+
(this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
Point.prototype.neg = function neg(_precompute) {
|
|
1078
|
+
if (this.inf)
|
|
1079
|
+
return this;
|
|
1080
|
+
|
|
1081
|
+
var res = this.curve.point(this.x, this.y.redNeg());
|
|
1082
|
+
if (_precompute && this.precomputed) {
|
|
1083
|
+
var pre = this.precomputed;
|
|
1084
|
+
var negate = function(p) {
|
|
1085
|
+
return p.neg();
|
|
1086
|
+
};
|
|
1087
|
+
res.precomputed = {
|
|
1088
|
+
naf: pre.naf && {
|
|
1089
|
+
wnd: pre.naf.wnd,
|
|
1090
|
+
points: pre.naf.points.map(negate),
|
|
1091
|
+
},
|
|
1092
|
+
doubles: pre.doubles && {
|
|
1093
|
+
step: pre.doubles.step,
|
|
1094
|
+
points: pre.doubles.points.map(negate),
|
|
1095
|
+
},
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
return res;
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
Point.prototype.toJ = function toJ() {
|
|
1102
|
+
if (this.inf)
|
|
1103
|
+
return this.curve.jpoint(null, null, null);
|
|
1104
|
+
|
|
1105
|
+
var res = this.curve.jpoint(this.x, this.y, this.curve.one);
|
|
1106
|
+
return res;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
function JPoint(curve, x, y, z) {
|
|
1110
|
+
base.BasePoint.call(this, curve, 'jacobian');
|
|
1111
|
+
if (x === null && y === null && z === null) {
|
|
1112
|
+
this.x = this.curve.one;
|
|
1113
|
+
this.y = this.curve.one;
|
|
1114
|
+
this.z = new BN(0);
|
|
1115
|
+
} else {
|
|
1116
|
+
this.x = new BN(x, 16);
|
|
1117
|
+
this.y = new BN(y, 16);
|
|
1118
|
+
this.z = new BN(z, 16);
|
|
1119
|
+
}
|
|
1120
|
+
if (!this.x.red)
|
|
1121
|
+
this.x = this.x.toRed(this.curve.red);
|
|
1122
|
+
if (!this.y.red)
|
|
1123
|
+
this.y = this.y.toRed(this.curve.red);
|
|
1124
|
+
if (!this.z.red)
|
|
1125
|
+
this.z = this.z.toRed(this.curve.red);
|
|
1126
|
+
|
|
1127
|
+
this.zOne = this.z === this.curve.one;
|
|
1128
|
+
}
|
|
1129
|
+
inherits_browser(JPoint, base.BasePoint);
|
|
1130
|
+
|
|
1131
|
+
ShortCurve.prototype.jpoint = function jpoint(x, y, z) {
|
|
1132
|
+
return new JPoint(this, x, y, z);
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
JPoint.prototype.toP = function toP() {
|
|
1136
|
+
if (this.isInfinity())
|
|
1137
|
+
return this.curve.point(null, null);
|
|
1138
|
+
|
|
1139
|
+
var zinv = this.z.redInvm();
|
|
1140
|
+
var zinv2 = zinv.redSqr();
|
|
1141
|
+
var ax = this.x.redMul(zinv2);
|
|
1142
|
+
var ay = this.y.redMul(zinv2).redMul(zinv);
|
|
1143
|
+
|
|
1144
|
+
return this.curve.point(ax, ay);
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
JPoint.prototype.neg = function neg() {
|
|
1148
|
+
return this.curve.jpoint(this.x, this.y.redNeg(), this.z);
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
JPoint.prototype.add = function add(p) {
|
|
1152
|
+
// O + P = P
|
|
1153
|
+
if (this.isInfinity())
|
|
1154
|
+
return p;
|
|
1155
|
+
|
|
1156
|
+
// P + O = P
|
|
1157
|
+
if (p.isInfinity())
|
|
1158
|
+
return this;
|
|
1159
|
+
|
|
1160
|
+
// 12M + 4S + 7A
|
|
1161
|
+
var pz2 = p.z.redSqr();
|
|
1162
|
+
var z2 = this.z.redSqr();
|
|
1163
|
+
var u1 = this.x.redMul(pz2);
|
|
1164
|
+
var u2 = p.x.redMul(z2);
|
|
1165
|
+
var s1 = this.y.redMul(pz2.redMul(p.z));
|
|
1166
|
+
var s2 = p.y.redMul(z2.redMul(this.z));
|
|
1167
|
+
|
|
1168
|
+
var h = u1.redSub(u2);
|
|
1169
|
+
var r = s1.redSub(s2);
|
|
1170
|
+
if (h.cmpn(0) === 0) {
|
|
1171
|
+
if (r.cmpn(0) !== 0)
|
|
1172
|
+
return this.curve.jpoint(null, null, null);
|
|
1173
|
+
else
|
|
1174
|
+
return this.dbl();
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
var h2 = h.redSqr();
|
|
1178
|
+
var h3 = h2.redMul(h);
|
|
1179
|
+
var v = u1.redMul(h2);
|
|
1180
|
+
|
|
1181
|
+
var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
|
|
1182
|
+
var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
|
|
1183
|
+
var nz = this.z.redMul(p.z).redMul(h);
|
|
1184
|
+
|
|
1185
|
+
return this.curve.jpoint(nx, ny, nz);
|
|
1186
|
+
};
|
|
1187
|
+
|
|
1188
|
+
JPoint.prototype.mixedAdd = function mixedAdd(p) {
|
|
1189
|
+
// O + P = P
|
|
1190
|
+
if (this.isInfinity())
|
|
1191
|
+
return p.toJ();
|
|
1192
|
+
|
|
1193
|
+
// P + O = P
|
|
1194
|
+
if (p.isInfinity())
|
|
1195
|
+
return this;
|
|
1196
|
+
|
|
1197
|
+
// 8M + 3S + 7A
|
|
1198
|
+
var z2 = this.z.redSqr();
|
|
1199
|
+
var u1 = this.x;
|
|
1200
|
+
var u2 = p.x.redMul(z2);
|
|
1201
|
+
var s1 = this.y;
|
|
1202
|
+
var s2 = p.y.redMul(z2).redMul(this.z);
|
|
1203
|
+
|
|
1204
|
+
var h = u1.redSub(u2);
|
|
1205
|
+
var r = s1.redSub(s2);
|
|
1206
|
+
if (h.cmpn(0) === 0) {
|
|
1207
|
+
if (r.cmpn(0) !== 0)
|
|
1208
|
+
return this.curve.jpoint(null, null, null);
|
|
1209
|
+
else
|
|
1210
|
+
return this.dbl();
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
var h2 = h.redSqr();
|
|
1214
|
+
var h3 = h2.redMul(h);
|
|
1215
|
+
var v = u1.redMul(h2);
|
|
1216
|
+
|
|
1217
|
+
var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
|
|
1218
|
+
var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
|
|
1219
|
+
var nz = this.z.redMul(h);
|
|
1220
|
+
|
|
1221
|
+
return this.curve.jpoint(nx, ny, nz);
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
JPoint.prototype.dblp = function dblp(pow) {
|
|
1225
|
+
if (pow === 0)
|
|
1226
|
+
return this;
|
|
1227
|
+
if (this.isInfinity())
|
|
1228
|
+
return this;
|
|
1229
|
+
if (!pow)
|
|
1230
|
+
return this.dbl();
|
|
1231
|
+
|
|
1232
|
+
var i;
|
|
1233
|
+
if (this.curve.zeroA || this.curve.threeA) {
|
|
1234
|
+
var r = this;
|
|
1235
|
+
for (i = 0; i < pow; i++)
|
|
1236
|
+
r = r.dbl();
|
|
1237
|
+
return r;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
// 1M + 2S + 1A + N * (4S + 5M + 8A)
|
|
1241
|
+
// N = 1 => 6M + 6S + 9A
|
|
1242
|
+
var a = this.curve.a;
|
|
1243
|
+
var tinv = this.curve.tinv;
|
|
1244
|
+
|
|
1245
|
+
var jx = this.x;
|
|
1246
|
+
var jy = this.y;
|
|
1247
|
+
var jz = this.z;
|
|
1248
|
+
var jz4 = jz.redSqr().redSqr();
|
|
1249
|
+
|
|
1250
|
+
// Reuse results
|
|
1251
|
+
var jyd = jy.redAdd(jy);
|
|
1252
|
+
for (i = 0; i < pow; i++) {
|
|
1253
|
+
var jx2 = jx.redSqr();
|
|
1254
|
+
var jyd2 = jyd.redSqr();
|
|
1255
|
+
var jyd4 = jyd2.redSqr();
|
|
1256
|
+
var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));
|
|
1257
|
+
|
|
1258
|
+
var t1 = jx.redMul(jyd2);
|
|
1259
|
+
var nx = c.redSqr().redISub(t1.redAdd(t1));
|
|
1260
|
+
var t2 = t1.redISub(nx);
|
|
1261
|
+
var dny = c.redMul(t2);
|
|
1262
|
+
dny = dny.redIAdd(dny).redISub(jyd4);
|
|
1263
|
+
var nz = jyd.redMul(jz);
|
|
1264
|
+
if (i + 1 < pow)
|
|
1265
|
+
jz4 = jz4.redMul(jyd4);
|
|
1266
|
+
|
|
1267
|
+
jx = nx;
|
|
1268
|
+
jz = nz;
|
|
1269
|
+
jyd = dny;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
return this.curve.jpoint(jx, jyd.redMul(tinv), jz);
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
JPoint.prototype.dbl = function dbl() {
|
|
1276
|
+
if (this.isInfinity())
|
|
1277
|
+
return this;
|
|
1278
|
+
|
|
1279
|
+
if (this.curve.zeroA)
|
|
1280
|
+
return this._zeroDbl();
|
|
1281
|
+
else if (this.curve.threeA)
|
|
1282
|
+
return this._threeDbl();
|
|
1283
|
+
else
|
|
1284
|
+
return this._dbl();
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
JPoint.prototype._zeroDbl = function _zeroDbl() {
|
|
1288
|
+
var nx;
|
|
1289
|
+
var ny;
|
|
1290
|
+
var nz;
|
|
1291
|
+
// Z = 1
|
|
1292
|
+
if (this.zOne) {
|
|
1293
|
+
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
|
|
1294
|
+
// #doubling-mdbl-2007-bl
|
|
1295
|
+
// 1M + 5S + 14A
|
|
1296
|
+
|
|
1297
|
+
// XX = X1^2
|
|
1298
|
+
var xx = this.x.redSqr();
|
|
1299
|
+
// YY = Y1^2
|
|
1300
|
+
var yy = this.y.redSqr();
|
|
1301
|
+
// YYYY = YY^2
|
|
1302
|
+
var yyyy = yy.redSqr();
|
|
1303
|
+
// S = 2 * ((X1 + YY)^2 - XX - YYYY)
|
|
1304
|
+
var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
|
|
1305
|
+
s = s.redIAdd(s);
|
|
1306
|
+
// M = 3 * XX + a; a = 0
|
|
1307
|
+
var m = xx.redAdd(xx).redIAdd(xx);
|
|
1308
|
+
// T = M ^ 2 - 2*S
|
|
1309
|
+
var t = m.redSqr().redISub(s).redISub(s);
|
|
1310
|
+
|
|
1311
|
+
// 8 * YYYY
|
|
1312
|
+
var yyyy8 = yyyy.redIAdd(yyyy);
|
|
1313
|
+
yyyy8 = yyyy8.redIAdd(yyyy8);
|
|
1314
|
+
yyyy8 = yyyy8.redIAdd(yyyy8);
|
|
1315
|
+
|
|
1316
|
+
// X3 = T
|
|
1317
|
+
nx = t;
|
|
1318
|
+
// Y3 = M * (S - T) - 8 * YYYY
|
|
1319
|
+
ny = m.redMul(s.redISub(t)).redISub(yyyy8);
|
|
1320
|
+
// Z3 = 2*Y1
|
|
1321
|
+
nz = this.y.redAdd(this.y);
|
|
1322
|
+
} else {
|
|
1323
|
+
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
|
|
1324
|
+
// #doubling-dbl-2009-l
|
|
1325
|
+
// 2M + 5S + 13A
|
|
1326
|
+
|
|
1327
|
+
// A = X1^2
|
|
1328
|
+
var a = this.x.redSqr();
|
|
1329
|
+
// B = Y1^2
|
|
1330
|
+
var b = this.y.redSqr();
|
|
1331
|
+
// C = B^2
|
|
1332
|
+
var c = b.redSqr();
|
|
1333
|
+
// D = 2 * ((X1 + B)^2 - A - C)
|
|
1334
|
+
var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);
|
|
1335
|
+
d = d.redIAdd(d);
|
|
1336
|
+
// E = 3 * A
|
|
1337
|
+
var e = a.redAdd(a).redIAdd(a);
|
|
1338
|
+
// F = E^2
|
|
1339
|
+
var f = e.redSqr();
|
|
1340
|
+
|
|
1341
|
+
// 8 * C
|
|
1342
|
+
var c8 = c.redIAdd(c);
|
|
1343
|
+
c8 = c8.redIAdd(c8);
|
|
1344
|
+
c8 = c8.redIAdd(c8);
|
|
1345
|
+
|
|
1346
|
+
// X3 = F - 2 * D
|
|
1347
|
+
nx = f.redISub(d).redISub(d);
|
|
1348
|
+
// Y3 = E * (D - X3) - 8 * C
|
|
1349
|
+
ny = e.redMul(d.redISub(nx)).redISub(c8);
|
|
1350
|
+
// Z3 = 2 * Y1 * Z1
|
|
1351
|
+
nz = this.y.redMul(this.z);
|
|
1352
|
+
nz = nz.redIAdd(nz);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
return this.curve.jpoint(nx, ny, nz);
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
JPoint.prototype._threeDbl = function _threeDbl() {
|
|
1359
|
+
var nx;
|
|
1360
|
+
var ny;
|
|
1361
|
+
var nz;
|
|
1362
|
+
// Z = 1
|
|
1363
|
+
if (this.zOne) {
|
|
1364
|
+
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html
|
|
1365
|
+
// #doubling-mdbl-2007-bl
|
|
1366
|
+
// 1M + 5S + 15A
|
|
1367
|
+
|
|
1368
|
+
// XX = X1^2
|
|
1369
|
+
var xx = this.x.redSqr();
|
|
1370
|
+
// YY = Y1^2
|
|
1371
|
+
var yy = this.y.redSqr();
|
|
1372
|
+
// YYYY = YY^2
|
|
1373
|
+
var yyyy = yy.redSqr();
|
|
1374
|
+
// S = 2 * ((X1 + YY)^2 - XX - YYYY)
|
|
1375
|
+
var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
|
|
1376
|
+
s = s.redIAdd(s);
|
|
1377
|
+
// M = 3 * XX + a
|
|
1378
|
+
var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);
|
|
1379
|
+
// T = M^2 - 2 * S
|
|
1380
|
+
var t = m.redSqr().redISub(s).redISub(s);
|
|
1381
|
+
// X3 = T
|
|
1382
|
+
nx = t;
|
|
1383
|
+
// Y3 = M * (S - T) - 8 * YYYY
|
|
1384
|
+
var yyyy8 = yyyy.redIAdd(yyyy);
|
|
1385
|
+
yyyy8 = yyyy8.redIAdd(yyyy8);
|
|
1386
|
+
yyyy8 = yyyy8.redIAdd(yyyy8);
|
|
1387
|
+
ny = m.redMul(s.redISub(t)).redISub(yyyy8);
|
|
1388
|
+
// Z3 = 2 * Y1
|
|
1389
|
+
nz = this.y.redAdd(this.y);
|
|
1390
|
+
} else {
|
|
1391
|
+
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b
|
|
1392
|
+
// 3M + 5S
|
|
1393
|
+
|
|
1394
|
+
// delta = Z1^2
|
|
1395
|
+
var delta = this.z.redSqr();
|
|
1396
|
+
// gamma = Y1^2
|
|
1397
|
+
var gamma = this.y.redSqr();
|
|
1398
|
+
// beta = X1 * gamma
|
|
1399
|
+
var beta = this.x.redMul(gamma);
|
|
1400
|
+
// alpha = 3 * (X1 - delta) * (X1 + delta)
|
|
1401
|
+
var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));
|
|
1402
|
+
alpha = alpha.redAdd(alpha).redIAdd(alpha);
|
|
1403
|
+
// X3 = alpha^2 - 8 * beta
|
|
1404
|
+
var beta4 = beta.redIAdd(beta);
|
|
1405
|
+
beta4 = beta4.redIAdd(beta4);
|
|
1406
|
+
var beta8 = beta4.redAdd(beta4);
|
|
1407
|
+
nx = alpha.redSqr().redISub(beta8);
|
|
1408
|
+
// Z3 = (Y1 + Z1)^2 - gamma - delta
|
|
1409
|
+
nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);
|
|
1410
|
+
// Y3 = alpha * (4 * beta - X3) - 8 * gamma^2
|
|
1411
|
+
var ggamma8 = gamma.redSqr();
|
|
1412
|
+
ggamma8 = ggamma8.redIAdd(ggamma8);
|
|
1413
|
+
ggamma8 = ggamma8.redIAdd(ggamma8);
|
|
1414
|
+
ggamma8 = ggamma8.redIAdd(ggamma8);
|
|
1415
|
+
ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
return this.curve.jpoint(nx, ny, nz);
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
JPoint.prototype._dbl = function _dbl() {
|
|
1422
|
+
var a = this.curve.a;
|
|
1423
|
+
|
|
1424
|
+
// 4M + 6S + 10A
|
|
1425
|
+
var jx = this.x;
|
|
1426
|
+
var jy = this.y;
|
|
1427
|
+
var jz = this.z;
|
|
1428
|
+
var jz4 = jz.redSqr().redSqr();
|
|
1429
|
+
|
|
1430
|
+
var jx2 = jx.redSqr();
|
|
1431
|
+
var jy2 = jy.redSqr();
|
|
1432
|
+
|
|
1433
|
+
var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));
|
|
1434
|
+
|
|
1435
|
+
var jxd4 = jx.redAdd(jx);
|
|
1436
|
+
jxd4 = jxd4.redIAdd(jxd4);
|
|
1437
|
+
var t1 = jxd4.redMul(jy2);
|
|
1438
|
+
var nx = c.redSqr().redISub(t1.redAdd(t1));
|
|
1439
|
+
var t2 = t1.redISub(nx);
|
|
1440
|
+
|
|
1441
|
+
var jyd8 = jy2.redSqr();
|
|
1442
|
+
jyd8 = jyd8.redIAdd(jyd8);
|
|
1443
|
+
jyd8 = jyd8.redIAdd(jyd8);
|
|
1444
|
+
jyd8 = jyd8.redIAdd(jyd8);
|
|
1445
|
+
var ny = c.redMul(t2).redISub(jyd8);
|
|
1446
|
+
var nz = jy.redAdd(jy).redMul(jz);
|
|
1447
|
+
|
|
1448
|
+
return this.curve.jpoint(nx, ny, nz);
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
JPoint.prototype.trpl = function trpl() {
|
|
1452
|
+
if (!this.curve.zeroA)
|
|
1453
|
+
return this.dbl().add(this);
|
|
1454
|
+
|
|
1455
|
+
// hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl
|
|
1456
|
+
// 5M + 10S + ...
|
|
1457
|
+
|
|
1458
|
+
// XX = X1^2
|
|
1459
|
+
var xx = this.x.redSqr();
|
|
1460
|
+
// YY = Y1^2
|
|
1461
|
+
var yy = this.y.redSqr();
|
|
1462
|
+
// ZZ = Z1^2
|
|
1463
|
+
var zz = this.z.redSqr();
|
|
1464
|
+
// YYYY = YY^2
|
|
1465
|
+
var yyyy = yy.redSqr();
|
|
1466
|
+
// M = 3 * XX + a * ZZ2; a = 0
|
|
1467
|
+
var m = xx.redAdd(xx).redIAdd(xx);
|
|
1468
|
+
// MM = M^2
|
|
1469
|
+
var mm = m.redSqr();
|
|
1470
|
+
// E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM
|
|
1471
|
+
var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
|
|
1472
|
+
e = e.redIAdd(e);
|
|
1473
|
+
e = e.redAdd(e).redIAdd(e);
|
|
1474
|
+
e = e.redISub(mm);
|
|
1475
|
+
// EE = E^2
|
|
1476
|
+
var ee = e.redSqr();
|
|
1477
|
+
// T = 16*YYYY
|
|
1478
|
+
var t = yyyy.redIAdd(yyyy);
|
|
1479
|
+
t = t.redIAdd(t);
|
|
1480
|
+
t = t.redIAdd(t);
|
|
1481
|
+
t = t.redIAdd(t);
|
|
1482
|
+
// U = (M + E)^2 - MM - EE - T
|
|
1483
|
+
var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);
|
|
1484
|
+
// X3 = 4 * (X1 * EE - 4 * YY * U)
|
|
1485
|
+
var yyu4 = yy.redMul(u);
|
|
1486
|
+
yyu4 = yyu4.redIAdd(yyu4);
|
|
1487
|
+
yyu4 = yyu4.redIAdd(yyu4);
|
|
1488
|
+
var nx = this.x.redMul(ee).redISub(yyu4);
|
|
1489
|
+
nx = nx.redIAdd(nx);
|
|
1490
|
+
nx = nx.redIAdd(nx);
|
|
1491
|
+
// Y3 = 8 * Y1 * (U * (T - U) - E * EE)
|
|
1492
|
+
var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));
|
|
1493
|
+
ny = ny.redIAdd(ny);
|
|
1494
|
+
ny = ny.redIAdd(ny);
|
|
1495
|
+
ny = ny.redIAdd(ny);
|
|
1496
|
+
// Z3 = (Z1 + E)^2 - ZZ - EE
|
|
1497
|
+
var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);
|
|
1498
|
+
|
|
1499
|
+
return this.curve.jpoint(nx, ny, nz);
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
JPoint.prototype.mul = function mul(k, kbase) {
|
|
1503
|
+
k = new BN(k, kbase);
|
|
1504
|
+
|
|
1505
|
+
return this.curve._wnafMul(this, k);
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
JPoint.prototype.eq = function eq(p) {
|
|
1509
|
+
if (p.type === 'affine')
|
|
1510
|
+
return this.eq(p.toJ());
|
|
1511
|
+
|
|
1512
|
+
if (this === p)
|
|
1513
|
+
return true;
|
|
1514
|
+
|
|
1515
|
+
// x1 * z2^2 == x2 * z1^2
|
|
1516
|
+
var z2 = this.z.redSqr();
|
|
1517
|
+
var pz2 = p.z.redSqr();
|
|
1518
|
+
if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0)
|
|
1519
|
+
return false;
|
|
1520
|
+
|
|
1521
|
+
// y1 * z2^3 == y2 * z1^3
|
|
1522
|
+
var z3 = z2.redMul(this.z);
|
|
1523
|
+
var pz3 = pz2.redMul(p.z);
|
|
1524
|
+
return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
JPoint.prototype.eqXToP = function eqXToP(x) {
|
|
1528
|
+
var zs = this.z.redSqr();
|
|
1529
|
+
var rx = x.toRed(this.curve.red).redMul(zs);
|
|
1530
|
+
if (this.x.cmp(rx) === 0)
|
|
1531
|
+
return true;
|
|
1532
|
+
|
|
1533
|
+
var xc = x.clone();
|
|
1534
|
+
var t = this.curve.redN.redMul(zs);
|
|
1535
|
+
for (;;) {
|
|
1536
|
+
xc.iadd(this.curve.n);
|
|
1537
|
+
if (xc.cmp(this.curve.p) >= 0)
|
|
1538
|
+
return false;
|
|
1539
|
+
|
|
1540
|
+
rx.redIAdd(t);
|
|
1541
|
+
if (this.x.cmp(rx) === 0)
|
|
1542
|
+
return true;
|
|
1543
|
+
}
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
JPoint.prototype.inspect = function inspect() {
|
|
1547
|
+
if (this.isInfinity())
|
|
1548
|
+
return '<EC JPoint Infinity>';
|
|
1549
|
+
return '<EC JPoint x: ' + this.x.toString(16, 2) +
|
|
1550
|
+
' y: ' + this.y.toString(16, 2) +
|
|
1551
|
+
' z: ' + this.z.toString(16, 2) + '>';
|
|
1552
|
+
};
|
|
1553
|
+
|
|
1554
|
+
JPoint.prototype.isInfinity = function isInfinity() {
|
|
1555
|
+
// XXX This code assumes that zero is always zero in red
|
|
1556
|
+
return this.z.cmpn(0) === 0;
|
|
1557
|
+
};
|
|
1558
|
+
|
|
1559
|
+
var curve_1 = createCommonjsModule(function (module, exports$1) {
|
|
1560
|
+
|
|
1561
|
+
var curve = exports$1;
|
|
1562
|
+
|
|
1563
|
+
curve.base = base;
|
|
1564
|
+
curve.short = short_1;
|
|
1565
|
+
curve.mont = /*RicMoo:ethers:require(./mont)*/(null);
|
|
1566
|
+
curve.edwards = /*RicMoo:ethers:require(./edwards)*/(null);
|
|
1567
|
+
});
|
|
1568
|
+
|
|
1569
|
+
var curves_1 = createCommonjsModule(function (module, exports$1) {
|
|
1570
|
+
|
|
1571
|
+
var curves = exports$1;
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
var assert = utils_1$1.assert;
|
|
1578
|
+
|
|
1579
|
+
function PresetCurve(options) {
|
|
1580
|
+
if (options.type === 'short')
|
|
1581
|
+
this.curve = new curve_1.short(options);
|
|
1582
|
+
else if (options.type === 'edwards')
|
|
1583
|
+
this.curve = new curve_1.edwards(options);
|
|
1584
|
+
else
|
|
1585
|
+
this.curve = new curve_1.mont(options);
|
|
1586
|
+
this.g = this.curve.g;
|
|
1587
|
+
this.n = this.curve.n;
|
|
1588
|
+
this.hash = options.hash;
|
|
1589
|
+
|
|
1590
|
+
assert(this.g.validate(), 'Invalid curve');
|
|
1591
|
+
assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');
|
|
1592
|
+
}
|
|
1593
|
+
curves.PresetCurve = PresetCurve;
|
|
1594
|
+
|
|
1595
|
+
function defineCurve(name, options) {
|
|
1596
|
+
Object.defineProperty(curves, name, {
|
|
1597
|
+
configurable: true,
|
|
1598
|
+
enumerable: true,
|
|
1599
|
+
get: function() {
|
|
1600
|
+
var curve = new PresetCurve(options);
|
|
1601
|
+
Object.defineProperty(curves, name, {
|
|
1602
|
+
configurable: true,
|
|
1603
|
+
enumerable: true,
|
|
1604
|
+
value: curve,
|
|
1605
|
+
});
|
|
1606
|
+
return curve;
|
|
1607
|
+
},
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
defineCurve('p192', {
|
|
1612
|
+
type: 'short',
|
|
1613
|
+
prime: 'p192',
|
|
1614
|
+
p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',
|
|
1615
|
+
a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',
|
|
1616
|
+
b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',
|
|
1617
|
+
n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',
|
|
1618
|
+
hash: hash.sha256,
|
|
1619
|
+
gRed: false,
|
|
1620
|
+
g: [
|
|
1621
|
+
'188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',
|
|
1622
|
+
'07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',
|
|
1623
|
+
],
|
|
1624
|
+
});
|
|
1625
|
+
|
|
1626
|
+
defineCurve('p224', {
|
|
1627
|
+
type: 'short',
|
|
1628
|
+
prime: 'p224',
|
|
1629
|
+
p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',
|
|
1630
|
+
a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',
|
|
1631
|
+
b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',
|
|
1632
|
+
n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',
|
|
1633
|
+
hash: hash.sha256,
|
|
1634
|
+
gRed: false,
|
|
1635
|
+
g: [
|
|
1636
|
+
'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',
|
|
1637
|
+
'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',
|
|
1638
|
+
],
|
|
1639
|
+
});
|
|
1640
|
+
|
|
1641
|
+
defineCurve('p256', {
|
|
1642
|
+
type: 'short',
|
|
1643
|
+
prime: null,
|
|
1644
|
+
p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',
|
|
1645
|
+
a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',
|
|
1646
|
+
b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',
|
|
1647
|
+
n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',
|
|
1648
|
+
hash: hash.sha256,
|
|
1649
|
+
gRed: false,
|
|
1650
|
+
g: [
|
|
1651
|
+
'6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',
|
|
1652
|
+
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',
|
|
1653
|
+
],
|
|
1654
|
+
});
|
|
1655
|
+
|
|
1656
|
+
defineCurve('p384', {
|
|
1657
|
+
type: 'short',
|
|
1658
|
+
prime: null,
|
|
1659
|
+
p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
|
|
1660
|
+
'fffffffe ffffffff 00000000 00000000 ffffffff',
|
|
1661
|
+
a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
|
|
1662
|
+
'fffffffe ffffffff 00000000 00000000 fffffffc',
|
|
1663
|
+
b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' +
|
|
1664
|
+
'5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',
|
|
1665
|
+
n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' +
|
|
1666
|
+
'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',
|
|
1667
|
+
hash: hash.sha384,
|
|
1668
|
+
gRed: false,
|
|
1669
|
+
g: [
|
|
1670
|
+
'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +
|
|
1671
|
+
'5502f25d bf55296c 3a545e38 72760ab7',
|
|
1672
|
+
'3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +
|
|
1673
|
+
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',
|
|
1674
|
+
],
|
|
1675
|
+
});
|
|
1676
|
+
|
|
1677
|
+
defineCurve('p521', {
|
|
1678
|
+
type: 'short',
|
|
1679
|
+
prime: null,
|
|
1680
|
+
p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
|
|
1681
|
+
'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
|
|
1682
|
+
'ffffffff ffffffff ffffffff ffffffff ffffffff',
|
|
1683
|
+
a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
|
|
1684
|
+
'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
|
|
1685
|
+
'ffffffff ffffffff ffffffff ffffffff fffffffc',
|
|
1686
|
+
b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' +
|
|
1687
|
+
'99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' +
|
|
1688
|
+
'3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',
|
|
1689
|
+
n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
|
|
1690
|
+
'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' +
|
|
1691
|
+
'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',
|
|
1692
|
+
hash: hash.sha512,
|
|
1693
|
+
gRed: false,
|
|
1694
|
+
g: [
|
|
1695
|
+
'000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' +
|
|
1696
|
+
'053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' +
|
|
1697
|
+
'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',
|
|
1698
|
+
'00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +
|
|
1699
|
+
'579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +
|
|
1700
|
+
'3fad0761 353c7086 a272c240 88be9476 9fd16650',
|
|
1701
|
+
],
|
|
1702
|
+
});
|
|
1703
|
+
|
|
1704
|
+
defineCurve('curve25519', {
|
|
1705
|
+
type: 'mont',
|
|
1706
|
+
prime: 'p25519',
|
|
1707
|
+
p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
|
|
1708
|
+
a: '76d06',
|
|
1709
|
+
b: '1',
|
|
1710
|
+
n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
|
|
1711
|
+
hash: hash.sha256,
|
|
1712
|
+
gRed: false,
|
|
1713
|
+
g: [
|
|
1714
|
+
'9',
|
|
1715
|
+
],
|
|
1716
|
+
});
|
|
1717
|
+
|
|
1718
|
+
defineCurve('ed25519', {
|
|
1719
|
+
type: 'edwards',
|
|
1720
|
+
prime: 'p25519',
|
|
1721
|
+
p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
|
|
1722
|
+
a: '-1',
|
|
1723
|
+
c: '1',
|
|
1724
|
+
// -121665 * (121666^(-1)) (mod P)
|
|
1725
|
+
d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',
|
|
1726
|
+
n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
|
|
1727
|
+
hash: hash.sha256,
|
|
1728
|
+
gRed: false,
|
|
1729
|
+
g: [
|
|
1730
|
+
'216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',
|
|
1731
|
+
|
|
1732
|
+
// 4/5
|
|
1733
|
+
'6666666666666666666666666666666666666666666666666666666666666658',
|
|
1734
|
+
],
|
|
1735
|
+
});
|
|
1736
|
+
|
|
1737
|
+
var pre;
|
|
1738
|
+
try {
|
|
1739
|
+
pre = /*RicMoo:ethers:require(./precomputed/secp256k1)*/(null).crash();
|
|
1740
|
+
} catch (e) {
|
|
1741
|
+
pre = undefined;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
defineCurve('secp256k1', {
|
|
1745
|
+
type: 'short',
|
|
1746
|
+
prime: 'k256',
|
|
1747
|
+
p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',
|
|
1748
|
+
a: '0',
|
|
1749
|
+
b: '7',
|
|
1750
|
+
n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',
|
|
1751
|
+
h: '1',
|
|
1752
|
+
hash: hash.sha256,
|
|
1753
|
+
|
|
1754
|
+
// Precomputed endomorphism
|
|
1755
|
+
beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',
|
|
1756
|
+
lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',
|
|
1757
|
+
basis: [
|
|
1758
|
+
{
|
|
1759
|
+
a: '3086d221a7d46bcde86c90e49284eb15',
|
|
1760
|
+
b: '-e4437ed6010e88286f547fa90abfe4c3',
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
a: '114ca50f7a8e2f3f657c1108d9d44cfd8',
|
|
1764
|
+
b: '3086d221a7d46bcde86c90e49284eb15',
|
|
1765
|
+
},
|
|
1766
|
+
],
|
|
1767
|
+
|
|
1768
|
+
gRed: false,
|
|
1769
|
+
g: [
|
|
1770
|
+
'79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
|
|
1771
|
+
'483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
|
|
1772
|
+
pre,
|
|
1773
|
+
],
|
|
1774
|
+
});
|
|
1775
|
+
});
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
function HmacDRBG(options) {
|
|
1782
|
+
if (!(this instanceof HmacDRBG))
|
|
1783
|
+
return new HmacDRBG(options);
|
|
1784
|
+
this.hash = options.hash;
|
|
1785
|
+
this.predResist = !!options.predResist;
|
|
1786
|
+
|
|
1787
|
+
this.outLen = this.hash.outSize;
|
|
1788
|
+
this.minEntropy = options.minEntropy || this.hash.hmacStrength;
|
|
1789
|
+
|
|
1790
|
+
this._reseed = null;
|
|
1791
|
+
this.reseedInterval = null;
|
|
1792
|
+
this.K = null;
|
|
1793
|
+
this.V = null;
|
|
1794
|
+
|
|
1795
|
+
var entropy = utils_1.toArray(options.entropy, options.entropyEnc || 'hex');
|
|
1796
|
+
var nonce = utils_1.toArray(options.nonce, options.nonceEnc || 'hex');
|
|
1797
|
+
var pers = utils_1.toArray(options.pers, options.persEnc || 'hex');
|
|
1798
|
+
minimalisticAssert(entropy.length >= (this.minEntropy / 8),
|
|
1799
|
+
'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
|
|
1800
|
+
this._init(entropy, nonce, pers);
|
|
1801
|
+
}
|
|
1802
|
+
var hmacDrbg = HmacDRBG;
|
|
1803
|
+
|
|
1804
|
+
HmacDRBG.prototype._init = function init(entropy, nonce, pers) {
|
|
1805
|
+
var seed = entropy.concat(nonce).concat(pers);
|
|
1806
|
+
|
|
1807
|
+
this.K = new Array(this.outLen / 8);
|
|
1808
|
+
this.V = new Array(this.outLen / 8);
|
|
1809
|
+
for (var i = 0; i < this.V.length; i++) {
|
|
1810
|
+
this.K[i] = 0x00;
|
|
1811
|
+
this.V[i] = 0x01;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
this._update(seed);
|
|
1815
|
+
this._reseed = 1;
|
|
1816
|
+
this.reseedInterval = 0x1000000000000; // 2^48
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1819
|
+
HmacDRBG.prototype._hmac = function hmac() {
|
|
1820
|
+
return new hash.hmac(this.hash, this.K);
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1823
|
+
HmacDRBG.prototype._update = function update(seed) {
|
|
1824
|
+
var kmac = this._hmac()
|
|
1825
|
+
.update(this.V)
|
|
1826
|
+
.update([ 0x00 ]);
|
|
1827
|
+
if (seed)
|
|
1828
|
+
kmac = kmac.update(seed);
|
|
1829
|
+
this.K = kmac.digest();
|
|
1830
|
+
this.V = this._hmac().update(this.V).digest();
|
|
1831
|
+
if (!seed)
|
|
1832
|
+
return;
|
|
1833
|
+
|
|
1834
|
+
this.K = this._hmac()
|
|
1835
|
+
.update(this.V)
|
|
1836
|
+
.update([ 0x01 ])
|
|
1837
|
+
.update(seed)
|
|
1838
|
+
.digest();
|
|
1839
|
+
this.V = this._hmac().update(this.V).digest();
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1842
|
+
HmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {
|
|
1843
|
+
// Optional entropy enc
|
|
1844
|
+
if (typeof entropyEnc !== 'string') {
|
|
1845
|
+
addEnc = add;
|
|
1846
|
+
add = entropyEnc;
|
|
1847
|
+
entropyEnc = null;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
entropy = utils_1.toArray(entropy, entropyEnc);
|
|
1851
|
+
add = utils_1.toArray(add, addEnc);
|
|
1852
|
+
|
|
1853
|
+
minimalisticAssert(entropy.length >= (this.minEntropy / 8),
|
|
1854
|
+
'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
|
|
1855
|
+
|
|
1856
|
+
this._update(entropy.concat(add || []));
|
|
1857
|
+
this._reseed = 1;
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
|
|
1861
|
+
if (this._reseed > this.reseedInterval)
|
|
1862
|
+
throw new Error('Reseed is required');
|
|
1863
|
+
|
|
1864
|
+
// Optional encoding
|
|
1865
|
+
if (typeof enc !== 'string') {
|
|
1866
|
+
addEnc = add;
|
|
1867
|
+
add = enc;
|
|
1868
|
+
enc = null;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
// Optional additional data
|
|
1872
|
+
if (add) {
|
|
1873
|
+
add = utils_1.toArray(add, addEnc || 'hex');
|
|
1874
|
+
this._update(add);
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
var temp = [];
|
|
1878
|
+
while (temp.length < len) {
|
|
1879
|
+
this.V = this._hmac().update(this.V).digest();
|
|
1880
|
+
temp = temp.concat(this.V);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
var res = temp.slice(0, len);
|
|
1884
|
+
this._update(add);
|
|
1885
|
+
this._reseed++;
|
|
1886
|
+
return utils_1.encode(res, enc);
|
|
1887
|
+
};
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
var assert$3 = utils_1$1.assert;
|
|
1892
|
+
|
|
1893
|
+
function KeyPair(ec, options) {
|
|
1894
|
+
this.ec = ec;
|
|
1895
|
+
this.priv = null;
|
|
1896
|
+
this.pub = null;
|
|
1897
|
+
|
|
1898
|
+
// KeyPair(ec, { priv: ..., pub: ... })
|
|
1899
|
+
if (options.priv)
|
|
1900
|
+
this._importPrivate(options.priv, options.privEnc);
|
|
1901
|
+
if (options.pub)
|
|
1902
|
+
this._importPublic(options.pub, options.pubEnc);
|
|
1903
|
+
}
|
|
1904
|
+
var key = KeyPair;
|
|
1905
|
+
|
|
1906
|
+
KeyPair.fromPublic = function fromPublic(ec, pub, enc) {
|
|
1907
|
+
if (pub instanceof KeyPair)
|
|
1908
|
+
return pub;
|
|
1909
|
+
|
|
1910
|
+
return new KeyPair(ec, {
|
|
1911
|
+
pub: pub,
|
|
1912
|
+
pubEnc: enc,
|
|
1913
|
+
});
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {
|
|
1917
|
+
if (priv instanceof KeyPair)
|
|
1918
|
+
return priv;
|
|
1919
|
+
|
|
1920
|
+
return new KeyPair(ec, {
|
|
1921
|
+
priv: priv,
|
|
1922
|
+
privEnc: enc,
|
|
1923
|
+
});
|
|
1924
|
+
};
|
|
1925
|
+
|
|
1926
|
+
KeyPair.prototype.validate = function validate() {
|
|
1927
|
+
var pub = this.getPublic();
|
|
1928
|
+
|
|
1929
|
+
if (pub.isInfinity())
|
|
1930
|
+
return { result: false, reason: 'Invalid public key' };
|
|
1931
|
+
if (!pub.validate())
|
|
1932
|
+
return { result: false, reason: 'Public key is not a point' };
|
|
1933
|
+
if (!pub.mul(this.ec.curve.n).isInfinity())
|
|
1934
|
+
return { result: false, reason: 'Public key * N != O' };
|
|
1935
|
+
|
|
1936
|
+
return { result: true, reason: null };
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
KeyPair.prototype.getPublic = function getPublic(compact, enc) {
|
|
1940
|
+
// compact is optional argument
|
|
1941
|
+
if (typeof compact === 'string') {
|
|
1942
|
+
enc = compact;
|
|
1943
|
+
compact = null;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
if (!this.pub)
|
|
1947
|
+
this.pub = this.ec.g.mul(this.priv);
|
|
1948
|
+
|
|
1949
|
+
if (!enc)
|
|
1950
|
+
return this.pub;
|
|
1951
|
+
|
|
1952
|
+
return this.pub.encode(enc, compact);
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1955
|
+
KeyPair.prototype.getPrivate = function getPrivate(enc) {
|
|
1956
|
+
if (enc === 'hex')
|
|
1957
|
+
return this.priv.toString(16, 2);
|
|
1958
|
+
else
|
|
1959
|
+
return this.priv;
|
|
1960
|
+
};
|
|
1961
|
+
|
|
1962
|
+
KeyPair.prototype._importPrivate = function _importPrivate(key, enc) {
|
|
1963
|
+
this.priv = new BN(key, enc || 16);
|
|
1964
|
+
|
|
1965
|
+
// Ensure that the priv won't be bigger than n, otherwise we may fail
|
|
1966
|
+
// in fixed multiplication method
|
|
1967
|
+
this.priv = this.priv.umod(this.ec.curve.n);
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
KeyPair.prototype._importPublic = function _importPublic(key, enc) {
|
|
1971
|
+
if (key.x || key.y) {
|
|
1972
|
+
// Montgomery points only have an `x` coordinate.
|
|
1973
|
+
// Weierstrass/Edwards points on the other hand have both `x` and
|
|
1974
|
+
// `y` coordinates.
|
|
1975
|
+
if (this.ec.curve.type === 'mont') {
|
|
1976
|
+
assert$3(key.x, 'Need x coordinate');
|
|
1977
|
+
} else if (this.ec.curve.type === 'short' ||
|
|
1978
|
+
this.ec.curve.type === 'edwards') {
|
|
1979
|
+
assert$3(key.x && key.y, 'Need both x and y coordinate');
|
|
1980
|
+
}
|
|
1981
|
+
this.pub = this.ec.curve.point(key.x, key.y);
|
|
1982
|
+
return;
|
|
1983
|
+
}
|
|
1984
|
+
this.pub = this.ec.curve.decodePoint(key, enc);
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
// ECDH
|
|
1988
|
+
KeyPair.prototype.derive = function derive(pub) {
|
|
1989
|
+
if(!pub.validate()) {
|
|
1990
|
+
assert$3(pub.validate(), 'public point not validated');
|
|
1991
|
+
}
|
|
1992
|
+
return pub.mul(this.priv).getX();
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
// ECDSA
|
|
1996
|
+
KeyPair.prototype.sign = function sign(msg, enc, options) {
|
|
1997
|
+
return this.ec.sign(msg, this, enc, options);
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
KeyPair.prototype.verify = function verify(msg, signature, options) {
|
|
2001
|
+
return this.ec.verify(msg, signature, this, undefined, options);
|
|
2002
|
+
};
|
|
2003
|
+
|
|
2004
|
+
KeyPair.prototype.inspect = function inspect() {
|
|
2005
|
+
return '<Key priv: ' + (this.priv && this.priv.toString(16, 2)) +
|
|
2006
|
+
' pub: ' + (this.pub && this.pub.inspect()) + ' >';
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
var assert$4 = utils_1$1.assert;
|
|
2013
|
+
|
|
2014
|
+
function Signature(options, enc) {
|
|
2015
|
+
if (options instanceof Signature)
|
|
2016
|
+
return options;
|
|
2017
|
+
|
|
2018
|
+
if (this._importDER(options, enc))
|
|
2019
|
+
return;
|
|
2020
|
+
|
|
2021
|
+
assert$4(options.r && options.s, 'Signature without r or s');
|
|
2022
|
+
this.r = new BN(options.r, 16);
|
|
2023
|
+
this.s = new BN(options.s, 16);
|
|
2024
|
+
if (options.recoveryParam === undefined)
|
|
2025
|
+
this.recoveryParam = null;
|
|
2026
|
+
else
|
|
2027
|
+
this.recoveryParam = options.recoveryParam;
|
|
2028
|
+
}
|
|
2029
|
+
var signature = Signature;
|
|
2030
|
+
|
|
2031
|
+
function Position() {
|
|
2032
|
+
this.place = 0;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
function getLength(buf, p) {
|
|
2036
|
+
var initial = buf[p.place++];
|
|
2037
|
+
if (!(initial & 0x80)) {
|
|
2038
|
+
return initial;
|
|
2039
|
+
}
|
|
2040
|
+
var octetLen = initial & 0xf;
|
|
2041
|
+
|
|
2042
|
+
// Indefinite length or overflow
|
|
2043
|
+
if (octetLen === 0 || octetLen > 4) {
|
|
2044
|
+
return false;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
if(buf[p.place] === 0x00) {
|
|
2048
|
+
return false;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
var val = 0;
|
|
2052
|
+
for (var i = 0, off = p.place; i < octetLen; i++, off++) {
|
|
2053
|
+
val <<= 8;
|
|
2054
|
+
val |= buf[off];
|
|
2055
|
+
val >>>= 0;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
// Leading zeroes
|
|
2059
|
+
if (val <= 0x7f) {
|
|
2060
|
+
return false;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
p.place = off;
|
|
2064
|
+
return val;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
function rmPadding(buf) {
|
|
2068
|
+
var i = 0;
|
|
2069
|
+
var len = buf.length - 1;
|
|
2070
|
+
while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {
|
|
2071
|
+
i++;
|
|
2072
|
+
}
|
|
2073
|
+
if (i === 0) {
|
|
2074
|
+
return buf;
|
|
2075
|
+
}
|
|
2076
|
+
return buf.slice(i);
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
Signature.prototype._importDER = function _importDER(data, enc) {
|
|
2080
|
+
data = utils_1$1.toArray(data, enc);
|
|
2081
|
+
var p = new Position();
|
|
2082
|
+
if (data[p.place++] !== 0x30) {
|
|
2083
|
+
return false;
|
|
2084
|
+
}
|
|
2085
|
+
var len = getLength(data, p);
|
|
2086
|
+
if (len === false) {
|
|
2087
|
+
return false;
|
|
2088
|
+
}
|
|
2089
|
+
if ((len + p.place) !== data.length) {
|
|
2090
|
+
return false;
|
|
2091
|
+
}
|
|
2092
|
+
if (data[p.place++] !== 0x02) {
|
|
2093
|
+
return false;
|
|
2094
|
+
}
|
|
2095
|
+
var rlen = getLength(data, p);
|
|
2096
|
+
if (rlen === false) {
|
|
2097
|
+
return false;
|
|
2098
|
+
}
|
|
2099
|
+
if ((data[p.place] & 128) !== 0) {
|
|
2100
|
+
return false;
|
|
2101
|
+
}
|
|
2102
|
+
var r = data.slice(p.place, rlen + p.place);
|
|
2103
|
+
p.place += rlen;
|
|
2104
|
+
if (data[p.place++] !== 0x02) {
|
|
2105
|
+
return false;
|
|
2106
|
+
}
|
|
2107
|
+
var slen = getLength(data, p);
|
|
2108
|
+
if (slen === false) {
|
|
2109
|
+
return false;
|
|
2110
|
+
}
|
|
2111
|
+
if (data.length !== slen + p.place) {
|
|
2112
|
+
return false;
|
|
2113
|
+
}
|
|
2114
|
+
if ((data[p.place] & 128) !== 0) {
|
|
2115
|
+
return false;
|
|
2116
|
+
}
|
|
2117
|
+
var s = data.slice(p.place, slen + p.place);
|
|
2118
|
+
if (r[0] === 0) {
|
|
2119
|
+
if (r[1] & 0x80) {
|
|
2120
|
+
r = r.slice(1);
|
|
2121
|
+
} else {
|
|
2122
|
+
// Leading zeroes
|
|
2123
|
+
return false;
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
if (s[0] === 0) {
|
|
2127
|
+
if (s[1] & 0x80) {
|
|
2128
|
+
s = s.slice(1);
|
|
2129
|
+
} else {
|
|
2130
|
+
// Leading zeroes
|
|
2131
|
+
return false;
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
this.r = new BN(r);
|
|
2136
|
+
this.s = new BN(s);
|
|
2137
|
+
this.recoveryParam = null;
|
|
2138
|
+
|
|
2139
|
+
return true;
|
|
2140
|
+
};
|
|
2141
|
+
|
|
2142
|
+
function constructLength(arr, len) {
|
|
2143
|
+
if (len < 0x80) {
|
|
2144
|
+
arr.push(len);
|
|
2145
|
+
return;
|
|
2146
|
+
}
|
|
2147
|
+
var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);
|
|
2148
|
+
arr.push(octets | 0x80);
|
|
2149
|
+
while (--octets) {
|
|
2150
|
+
arr.push((len >>> (octets << 3)) & 0xff);
|
|
2151
|
+
}
|
|
2152
|
+
arr.push(len);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
Signature.prototype.toDER = function toDER(enc) {
|
|
2156
|
+
var r = this.r.toArray();
|
|
2157
|
+
var s = this.s.toArray();
|
|
2158
|
+
|
|
2159
|
+
// Pad values
|
|
2160
|
+
if (r[0] & 0x80)
|
|
2161
|
+
r = [ 0 ].concat(r);
|
|
2162
|
+
// Pad values
|
|
2163
|
+
if (s[0] & 0x80)
|
|
2164
|
+
s = [ 0 ].concat(s);
|
|
2165
|
+
|
|
2166
|
+
r = rmPadding(r);
|
|
2167
|
+
s = rmPadding(s);
|
|
2168
|
+
|
|
2169
|
+
while (!s[0] && !(s[1] & 0x80)) {
|
|
2170
|
+
s = s.slice(1);
|
|
2171
|
+
}
|
|
2172
|
+
var arr = [ 0x02 ];
|
|
2173
|
+
constructLength(arr, r.length);
|
|
2174
|
+
arr = arr.concat(r);
|
|
2175
|
+
arr.push(0x02);
|
|
2176
|
+
constructLength(arr, s.length);
|
|
2177
|
+
var backHalf = arr.concat(s);
|
|
2178
|
+
var res = [ 0x30 ];
|
|
2179
|
+
constructLength(res, backHalf.length);
|
|
2180
|
+
res = res.concat(backHalf);
|
|
2181
|
+
return utils_1$1.encode(res, enc);
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
|
|
2188
|
+
var rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });
|
|
2189
|
+
var assert$5 = utils_1$1.assert;
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
function EC(options) {
|
|
2195
|
+
if (!(this instanceof EC))
|
|
2196
|
+
return new EC(options);
|
|
2197
|
+
|
|
2198
|
+
// Shortcut `elliptic.ec(curve-name)`
|
|
2199
|
+
if (typeof options === 'string') {
|
|
2200
|
+
assert$5(Object.prototype.hasOwnProperty.call(curves_1, options),
|
|
2201
|
+
'Unknown curve ' + options);
|
|
2202
|
+
|
|
2203
|
+
options = curves_1[options];
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
// Shortcut for `elliptic.ec(elliptic.curves.curveName)`
|
|
2207
|
+
if (options instanceof curves_1.PresetCurve)
|
|
2208
|
+
options = { curve: options };
|
|
2209
|
+
|
|
2210
|
+
this.curve = options.curve.curve;
|
|
2211
|
+
this.n = this.curve.n;
|
|
2212
|
+
this.nh = this.n.ushrn(1);
|
|
2213
|
+
this.g = this.curve.g;
|
|
2214
|
+
|
|
2215
|
+
// Point on curve
|
|
2216
|
+
this.g = options.curve.g;
|
|
2217
|
+
this.g.precompute(options.curve.n.bitLength() + 1);
|
|
2218
|
+
|
|
2219
|
+
// Hash for function for DRBG
|
|
2220
|
+
this.hash = options.hash || options.curve.hash;
|
|
2221
|
+
}
|
|
2222
|
+
var ec = EC;
|
|
2223
|
+
|
|
2224
|
+
EC.prototype.keyPair = function keyPair(options) {
|
|
2225
|
+
return new key(this, options);
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
EC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {
|
|
2229
|
+
return key.fromPrivate(this, priv, enc);
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
EC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {
|
|
2233
|
+
return key.fromPublic(this, pub, enc);
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
EC.prototype.genKeyPair = function genKeyPair(options) {
|
|
2237
|
+
if (!options)
|
|
2238
|
+
options = {};
|
|
2239
|
+
|
|
2240
|
+
// Instantiate Hmac_DRBG
|
|
2241
|
+
var drbg = new hmacDrbg({
|
|
2242
|
+
hash: this.hash,
|
|
2243
|
+
pers: options.pers,
|
|
2244
|
+
persEnc: options.persEnc || 'utf8',
|
|
2245
|
+
entropy: options.entropy || rand(this.hash.hmacStrength),
|
|
2246
|
+
entropyEnc: options.entropy && options.entropyEnc || 'utf8',
|
|
2247
|
+
nonce: this.n.toArray(),
|
|
2248
|
+
});
|
|
2249
|
+
|
|
2250
|
+
var bytes = this.n.byteLength();
|
|
2251
|
+
var ns2 = this.n.sub(new BN(2));
|
|
2252
|
+
for (;;) {
|
|
2253
|
+
var priv = new BN(drbg.generate(bytes));
|
|
2254
|
+
if (priv.cmp(ns2) > 0)
|
|
2255
|
+
continue;
|
|
2256
|
+
|
|
2257
|
+
priv.iaddn(1);
|
|
2258
|
+
return this.keyFromPrivate(priv);
|
|
2259
|
+
}
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2262
|
+
EC.prototype._truncateToN = function _truncateToN(msg, truncOnly, bitLength) {
|
|
2263
|
+
var byteLength;
|
|
2264
|
+
if (BN.isBN(msg) || typeof msg === 'number') {
|
|
2265
|
+
msg = new BN(msg, 16);
|
|
2266
|
+
byteLength = msg.byteLength();
|
|
2267
|
+
} else if (typeof msg === 'object') {
|
|
2268
|
+
// BN assumes an array-like input and asserts length
|
|
2269
|
+
byteLength = msg.length;
|
|
2270
|
+
msg = new BN(msg, 16);
|
|
2271
|
+
} else {
|
|
2272
|
+
// BN converts the value to string
|
|
2273
|
+
var str = msg.toString();
|
|
2274
|
+
// HEX encoding
|
|
2275
|
+
byteLength = (str.length + 1) >>> 1;
|
|
2276
|
+
msg = new BN(str, 16);
|
|
2277
|
+
}
|
|
2278
|
+
// Allow overriding
|
|
2279
|
+
if (typeof bitLength !== 'number') {
|
|
2280
|
+
bitLength = byteLength * 8;
|
|
2281
|
+
}
|
|
2282
|
+
var delta = bitLength - this.n.bitLength();
|
|
2283
|
+
if (delta > 0)
|
|
2284
|
+
msg = msg.ushrn(delta);
|
|
2285
|
+
if (!truncOnly && msg.cmp(this.n) >= 0)
|
|
2286
|
+
return msg.sub(this.n);
|
|
2287
|
+
else
|
|
2288
|
+
return msg;
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
EC.prototype.sign = function sign(msg, key, enc, options) {
|
|
2292
|
+
if (typeof enc === 'object') {
|
|
2293
|
+
options = enc;
|
|
2294
|
+
enc = null;
|
|
2295
|
+
}
|
|
2296
|
+
if (!options)
|
|
2297
|
+
options = {};
|
|
2298
|
+
|
|
2299
|
+
if (typeof msg !== 'string' && typeof msg !== 'number' && !BN.isBN(msg)) {
|
|
2300
|
+
assert$5(typeof msg === 'object' && msg && typeof msg.length === 'number',
|
|
2301
|
+
'Expected message to be an array-like, a hex string, or a BN instance');
|
|
2302
|
+
assert$5((msg.length >>> 0) === msg.length); // non-negative 32-bit integer
|
|
2303
|
+
for (var i = 0; i < msg.length; i++) assert$5((msg[i] & 255) === msg[i]);
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
key = this.keyFromPrivate(key, enc);
|
|
2307
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
2308
|
+
|
|
2309
|
+
// Would fail further checks, but let's make the error message clear
|
|
2310
|
+
assert$5(!msg.isNeg(), 'Can not sign a negative message');
|
|
2311
|
+
|
|
2312
|
+
// Zero-extend key to provide enough entropy
|
|
2313
|
+
var bytes = this.n.byteLength();
|
|
2314
|
+
var bkey = key.getPrivate().toArray('be', bytes);
|
|
2315
|
+
|
|
2316
|
+
// Zero-extend nonce to have the same byte size as N
|
|
2317
|
+
var nonce = msg.toArray('be', bytes);
|
|
2318
|
+
|
|
2319
|
+
// Recheck nonce to be bijective to msg
|
|
2320
|
+
assert$5((new BN(nonce)).eq(msg), 'Can not sign message');
|
|
2321
|
+
|
|
2322
|
+
// Instantiate Hmac_DRBG
|
|
2323
|
+
var drbg = new hmacDrbg({
|
|
2324
|
+
hash: this.hash,
|
|
2325
|
+
entropy: bkey,
|
|
2326
|
+
nonce: nonce,
|
|
2327
|
+
pers: options.pers,
|
|
2328
|
+
persEnc: options.persEnc || 'utf8',
|
|
2329
|
+
});
|
|
2330
|
+
|
|
2331
|
+
// Number of bytes to generate
|
|
2332
|
+
var ns1 = this.n.sub(new BN(1));
|
|
2333
|
+
|
|
2334
|
+
for (var iter = 0; ; iter++) {
|
|
2335
|
+
var k = options.k ?
|
|
2336
|
+
options.k(iter) :
|
|
2337
|
+
new BN(drbg.generate(this.n.byteLength()));
|
|
2338
|
+
k = this._truncateToN(k, true);
|
|
2339
|
+
if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)
|
|
2340
|
+
continue;
|
|
2341
|
+
|
|
2342
|
+
var kp = this.g.mul(k);
|
|
2343
|
+
if (kp.isInfinity())
|
|
2344
|
+
continue;
|
|
2345
|
+
|
|
2346
|
+
var kpX = kp.getX();
|
|
2347
|
+
var r = kpX.umod(this.n);
|
|
2348
|
+
if (r.cmpn(0) === 0)
|
|
2349
|
+
continue;
|
|
2350
|
+
|
|
2351
|
+
var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));
|
|
2352
|
+
s = s.umod(this.n);
|
|
2353
|
+
if (s.cmpn(0) === 0)
|
|
2354
|
+
continue;
|
|
2355
|
+
|
|
2356
|
+
var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |
|
|
2357
|
+
(kpX.cmp(r) !== 0 ? 2 : 0);
|
|
2358
|
+
|
|
2359
|
+
// Use complement of `s`, if it is > `n / 2`
|
|
2360
|
+
if (options.canonical && s.cmp(this.nh) > 0) {
|
|
2361
|
+
s = this.n.sub(s);
|
|
2362
|
+
recoveryParam ^= 1;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
return new signature({ r: r, s: s, recoveryParam: recoveryParam });
|
|
2366
|
+
}
|
|
2367
|
+
};
|
|
2368
|
+
|
|
2369
|
+
EC.prototype.verify = function verify(msg, signature$1, key, enc, options) {
|
|
2370
|
+
if (!options)
|
|
2371
|
+
options = {};
|
|
2372
|
+
|
|
2373
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
2374
|
+
key = this.keyFromPublic(key, enc);
|
|
2375
|
+
signature$1 = new signature(signature$1, 'hex');
|
|
2376
|
+
|
|
2377
|
+
// Perform primitive values validation
|
|
2378
|
+
var r = signature$1.r;
|
|
2379
|
+
var s = signature$1.s;
|
|
2380
|
+
if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0)
|
|
2381
|
+
return false;
|
|
2382
|
+
if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0)
|
|
2383
|
+
return false;
|
|
2384
|
+
|
|
2385
|
+
// Validate signature
|
|
2386
|
+
var sinv = s.invm(this.n);
|
|
2387
|
+
var u1 = sinv.mul(msg).umod(this.n);
|
|
2388
|
+
var u2 = sinv.mul(r).umod(this.n);
|
|
2389
|
+
var p;
|
|
2390
|
+
|
|
2391
|
+
if (!this.curve._maxwellTrick) {
|
|
2392
|
+
p = this.g.mulAdd(u1, key.getPublic(), u2);
|
|
2393
|
+
if (p.isInfinity())
|
|
2394
|
+
return false;
|
|
2395
|
+
|
|
2396
|
+
return p.getX().umod(this.n).cmp(r) === 0;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
// NOTE: Greg Maxwell's trick, inspired by:
|
|
2400
|
+
// https://git.io/vad3K
|
|
2401
|
+
|
|
2402
|
+
p = this.g.jmulAdd(u1, key.getPublic(), u2);
|
|
2403
|
+
if (p.isInfinity())
|
|
2404
|
+
return false;
|
|
2405
|
+
|
|
2406
|
+
// Compare `p.x` of Jacobian point with `r`,
|
|
2407
|
+
// this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the
|
|
2408
|
+
// inverse of `p.z^2`
|
|
2409
|
+
return p.eqXToP(r);
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2412
|
+
EC.prototype.recoverPubKey = function(msg, signature$1, j, enc) {
|
|
2413
|
+
assert$5((3 & j) === j, 'The recovery param is more than two bits');
|
|
2414
|
+
signature$1 = new signature(signature$1, enc);
|
|
2415
|
+
|
|
2416
|
+
var n = this.n;
|
|
2417
|
+
var e = new BN(msg);
|
|
2418
|
+
var r = signature$1.r;
|
|
2419
|
+
var s = signature$1.s;
|
|
2420
|
+
|
|
2421
|
+
// A set LSB signifies that the y-coordinate is odd
|
|
2422
|
+
var isYOdd = j & 1;
|
|
2423
|
+
var isSecondKey = j >> 1;
|
|
2424
|
+
if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey)
|
|
2425
|
+
throw new Error('Unable to find sencond key candinate');
|
|
2426
|
+
|
|
2427
|
+
// 1.1. Let x = r + jn.
|
|
2428
|
+
if (isSecondKey)
|
|
2429
|
+
r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);
|
|
2430
|
+
else
|
|
2431
|
+
r = this.curve.pointFromX(r, isYOdd);
|
|
2432
|
+
|
|
2433
|
+
var rInv = signature$1.r.invm(n);
|
|
2434
|
+
var s1 = n.sub(e).mul(rInv).umod(n);
|
|
2435
|
+
var s2 = s.mul(rInv).umod(n);
|
|
2436
|
+
|
|
2437
|
+
// 1.6.1 Compute Q = r^-1 (sR - eG)
|
|
2438
|
+
// Q = r^-1 (sR + -eG)
|
|
2439
|
+
return this.g.mulAdd(s1, r, s2);
|
|
2440
|
+
};
|
|
2441
|
+
|
|
2442
|
+
EC.prototype.getKeyRecoveryParam = function(e, signature$1, Q, enc) {
|
|
2443
|
+
signature$1 = new signature(signature$1, enc);
|
|
2444
|
+
if (signature$1.recoveryParam !== null)
|
|
2445
|
+
return signature$1.recoveryParam;
|
|
2446
|
+
|
|
2447
|
+
for (var i = 0; i < 4; i++) {
|
|
2448
|
+
var Qprime;
|
|
2449
|
+
try {
|
|
2450
|
+
Qprime = this.recoverPubKey(e, signature$1, i);
|
|
2451
|
+
} catch (e) {
|
|
2452
|
+
continue;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
if (Qprime.eq(Q))
|
|
2456
|
+
return i;
|
|
2457
|
+
}
|
|
2458
|
+
throw new Error('Unable to find valid recovery factor');
|
|
2459
|
+
};
|
|
2460
|
+
|
|
2461
|
+
var elliptic_1 = createCommonjsModule(function (module, exports$1) {
|
|
2462
|
+
|
|
2463
|
+
var elliptic = exports$1;
|
|
2464
|
+
|
|
2465
|
+
elliptic.version = /*RicMoo:ethers*/{ version: "6.6.1" }.version;
|
|
2466
|
+
elliptic.utils = utils_1$1;
|
|
2467
|
+
elliptic.rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });
|
|
2468
|
+
elliptic.curve = curve_1;
|
|
2469
|
+
elliptic.curves = curves_1;
|
|
2470
|
+
|
|
2471
|
+
// Protocols
|
|
2472
|
+
elliptic.ec = ec;
|
|
2473
|
+
elliptic.eddsa = /*RicMoo:ethers:require(./elliptic/eddsa)*/(null);
|
|
2474
|
+
});
|
|
2475
|
+
|
|
2476
|
+
var EC$1 = elliptic_1.ec;
|
|
2477
|
+
|
|
2478
|
+
export { EC$1 as EC };
|
|
2479
|
+
//# sourceMappingURL=elliptic.js.map
|