h_test_1 0.0.32 → 0.0.34

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.
@@ -1 +1 @@
1
- var e={twitterTokenUrl:`https://api.twitter.com/2/oauth2/token`,twitterUserUrl:`https://api.twitter.com/2/users/me?user.fields=profile_image_url`,discordTokenUrl:`https://discord.com/api/oauth2/token`,discordUserUrl:`https://discord.com/api/users/@me`,twitterAuthUrl:e=>`https://twitter.com/i/oauth2/authorize?${e.toString()}`};exports.oauthUrls=e;
1
+ var e={discordTokenUrl:`https://discord.com/api/oauth2/token`,discordUserUrl:`https://discord.com/api/users/@me`};exports.oauthUrls=e;
@@ -1,7 +1,4 @@
1
1
  export declare const oauthUrls: {
2
- twitterTokenUrl: string;
3
- twitterUserUrl: string;
4
2
  discordTokenUrl: string;
5
3
  discordUserUrl: string;
6
- twitterAuthUrl: (params: URLSearchParams) => string;
7
4
  };
@@ -1,10 +1,7 @@
1
1
  //#region libs/shared/common/src/constants/oauthUrls.constants.ts
2
2
  var e = {
3
- twitterTokenUrl: "https://api.twitter.com/2/oauth2/token",
4
- twitterUserUrl: "https://api.twitter.com/2/users/me?user.fields=profile_image_url",
5
3
  discordTokenUrl: "https://discord.com/api/oauth2/token",
6
- discordUserUrl: "https://discord.com/api/users/@me",
7
- twitterAuthUrl: (e) => `https://twitter.com/i/oauth2/authorize?${e.toString()}`
4
+ discordUserUrl: "https://discord.com/api/users/@me"
8
5
  };
9
6
  //#endregion
10
7
  export { e as oauthUrls };
@@ -1 +1 @@
1
- const e=require(`../types/new-rewards.type.cjs`);require(`../types/index.cjs`);var t={ROUTES:{checkKycStatus:`/check-kyc-status`,getUserSignature:`/signature-request`,startReclaimVerification:`/start-reclaim-verification`,startUserVerification:`/start-aiprise-verification`,zkMeAccessToken:`/zkMeAccessToken`,getSnapshots:e=>`/snapshots/${e}`,getMerkleTreeSiblings:`/merkle-tree-siblings`,getSnapshotServerEvents:`/events`,callOdosAPI:`/OdosSwapData`,callOneInchAPI:`/OneInchSwapData`,callLifiAPI:`/LifiBridgeData`,callOkxAPI:`/OkxSwapData`,getOdosPriceForToken:(e,t)=>`/getOdosPriceForToken/${e}/${t}`,monitor:`/monitor`,checkRisk:e=>`/check-risk/${e}`,simulateTransaction:`/simulate-transaction`,simulateBatchTx:`/simulate-batch-tx`,simulateVolatileTokenTransfer:`/simulate-volatile-token-transfer`,getTokensInfo:`/get-tokens-info`,getTokenData:e=>`/get-token-data/${e}`,getProxyAccounts:e=>`/get-proxy-accounts/${e}`,updateProxyAccounts:`/update-proxy-accounts`,generateProoflessDepositLimitless:`/generate-proofless-deposit-limitless`,generateMultiPaymentDepositLimitless:`/generate-multi-payment-deposit`,generateAddAccessToken:`/generate-add-access-token`,getTemporaryWalletNonces:(e,t)=>`/temporary-wallets/nonces/${e}/${t}`,addTemporaryWalletNonce:`/temporary-wallets/add-nonce`,removeTemporaryWalletNonce:`/temporary-wallets/remove-nonce`,encodeMoonPayBuyUrl:`/moonpay-buy-url`,getMoonPayQuote:`/moonpay-quote`,privateSendTopUpRecipientInfos:`/private-send-recipient-info/top-up`,privateSendAllocateRecipientInfos:`/private-send-recipient-info/allocate`,privateSendNonceSync:`/private-send-nonce/sync`,privateSendNonceReserve:`/private-send-nonce/reserve`,tronSubsidyEligibility:`/tron-subsidy/eligibility`,tronSubsidyRecord:`/tron-subsidy/record`}},n={getGasEstimate:(e,t,n,r)=>`/gas-estimation/${e}/${n}/${t}/${r}`,getTokenPrices:`/get-token-prices`,TRANSACT:`/general-transact`,TRANSACT_BATCH:`/general-transact-batch`,SOLANA_TRANSACT:`/solana-transact`,SOLANA_TRANSACT_BATCH:`/solana-transact-batch`,getIdleRelay:`/get-idle-relay`,emitTxPublicData:`/emit-tx-public-data`,emitReferralTx:`/emit-referral-tx`,getScheduledTransactions:`/scheduled-transactions`,getScheduledTransactionsNullifierIndexes:`/scheduled-transactions/nullifier-indexes`,updateDepositAndWithdrawStatus:`/update-deposit-and-withdraw-status`,getTokenPriceChartData:`/get-token-price-chart-data`,getTokenPreviousDayPrices:`/get-token-previous-day-prices`,getPrivateTransactionsRatio:e=>`/get-private-transactions-ratio/${e}`,savePrivacyScoreAndGetPrivacyRank:`/save-privacy-score-and-get-privacy-rank`},r=[e.TaskTypes.firstSwap,e.TaskTypes.reclaim,e.TaskTypes.dailySwap,e.TaskTypes.dailyDappTx,e.TaskTypes.createOrJoinBH,e.TaskTypes.shieldUnshield,e.TaskTypes.moneyComes],i={[e.TaskTypes.discord]:e=>`/verify/discord/${e}`,[e.TaskTypes.x]:e=>`/verify/x/${e}`,[e.TaskTypes.xReferral]:e=>`/verify/x-referral/${e}`,[e.TaskTypes.telegram]:e=>`/verify/telegram/${e}`,...Object.fromEntries(r.map(e=>[e,e=>`/verify/wallet-task/${e}`]))},a={createPresaleReferral:`/create-presale-referral`,updatePresaleReferralList:`/update-presale-referral-list`,generateTradingPoints:`/generate-trading-points`,getBrotherhoodUsers:e=>`/brotherhoods/${e}/users`,getCurrentUserBrotherhoodUsers:e=>`/get-current-user-brotherhood-users/${e}`,editBrotherhood:`/edit-brotherhood`,createBrotherhood:`/create-brotherhood`,getCurrentUserBrotherhood:`/get-current-user-brotherhood`,getPublicBrotherhoods:`/get-public-brotherhoods`,getBrotherhood:e=>`/brotherhoods/${e}`,leaveBrotherhood:e=>`/brotherhoods/${e}/leave`,joinBrotherhood:e=>`/brotherhoods/${e}/join`,getUserAnalytics:`/get-user-analytics`,getBrotherhoodAnalytics:`/brotherhood/analytics`,connectRewardsUser:`/connect-user`,updateRewardsUser:`/update-rewards-user`,getRewardsUser:e=>`/get-rewards-user/${e}`,checkUsernameAvailability:e=>`/check-username/${encodeURIComponent(e)}`,getSwapStreak:`/swap-streak`,getUserCurrentLeaderboard:`/current-users-leaderboard`,getBrotherhoodsLeaderboard:`/brotherhoods-leaderboard`,getCurrentUserReferral:`/current-user-referral`,submitReferralCode:`/refer-user`,getCurrentUserAppliedReferralCode:`/current-user-applied-referral-code`,submitAccessCode:`/submit-access-code`,getAccessCodeBenefits:`/get-access-code-benefits`,getTelegramCallback:`/auth/telegram/callback`,generateAumPoints:`/generate-aum-points`,getTasksProgress:e=>`/get-tasks-progress/${e}`,disconnectSocialNetwork:`/disconnect-social-network`,getNftMultiplier:e=>`/get-nft-multiplier/${e}`,seedlessInit:`/seedless/init`,seedlessBackup:`/seedless/backup`,seedlessCheckPassword:`/seedless/check-password`,seedlessStatus:`/seedless/status`,seedlessSalt:`/seedless/salt`,sendPrivateSendEmailNotifications:`/private-send-email-notifications`,webflowBlogPosts:`/webflow-blog-posts`},o=`v11`,s=`v11`,c=`https://wallet-playground.hinkal.pro`,l=`https://wallet-staging.hinkal.pro`,u=`https://wallet-prod${s}.hinkal.pro`,d=`http://localhost:7072`,f=`/server`,p=`http://localhost:7073`,m=`/relayer`,h=`http://localhost:7074`,g=`/snapshot-server`,_=`http://localhost:7090`,v=`/data-server`;exports.API_CONFIG=t,exports.DATA_SERVER_CONFIG=a,exports.DATA_SERVER_URL_ENDPOINT=v,exports.DATA_SERVER_URL_LOCAL=_,exports.PLAYGROUND_URL=c,exports.PRODUCTION_URL=u,exports.RELAYER_CONFIG=n,exports.RELAYER_URL_ENDPOINT=m,exports.RELAYER_URL_LOCAL=p,exports.SERVER_URL_ENDPOINT=f,exports.SERVER_URL_LOCAL=d,exports.SNAPSHOT_SERVER_URL_ENDPOINT=g,exports.SNAPSHOT_SERVER_URL_LOCAL=h,exports.STAGING_URL=l,exports.VERIFICATION_ROUTES=i,exports.WALLET_TASK_VERIFICATION_TYPES=r,exports.backendVersion=o;
1
+ const e=require(`../types/new-rewards.type.cjs`);require(`../types/index.cjs`);var t={ROUTES:{checkKycStatus:`/check-kyc-status`,getUserSignature:`/signature-request`,startReclaimVerification:`/start-reclaim-verification`,startUserVerification:`/start-aiprise-verification`,zkMeAccessToken:`/zkMeAccessToken`,getSnapshots:e=>`/snapshots/${e}`,getMerkleTreeSiblings:`/merkle-tree-siblings`,getSnapshotServerEvents:`/events`,callOdosAPI:`/OdosSwapData`,callOneInchAPI:`/OneInchSwapData`,callLifiAPI:`/LifiBridgeData`,callOkxAPI:`/OkxSwapData`,getOdosPriceForToken:(e,t)=>`/getOdosPriceForToken/${e}/${t}`,monitor:`/monitor`,checkRisk:e=>`/check-risk/${e}`,simulateTransaction:`/simulate-transaction`,simulateBatchTx:`/simulate-batch-tx`,simulateVolatileTokenTransfer:`/simulate-volatile-token-transfer`,getTokensInfo:`/get-tokens-info`,getTokenData:e=>`/get-token-data/${e}`,getProxyAccounts:e=>`/get-proxy-accounts/${e}`,updateProxyAccounts:`/update-proxy-accounts`,generateProoflessDepositLimitless:`/generate-proofless-deposit-limitless`,generateMultiPaymentDepositLimitless:`/generate-multi-payment-deposit`,generateAddAccessToken:`/generate-add-access-token`,getTemporaryWalletNonces:(e,t)=>`/temporary-wallets/nonces/${e}/${t}`,addTemporaryWalletNonce:`/temporary-wallets/add-nonce`,removeTemporaryWalletNonce:`/temporary-wallets/remove-nonce`,encodeMoonPayBuyUrl:`/moonpay-buy-url`,getMoonPayQuote:`/moonpay-quote`,privateSendTopUpRecipientInfos:`/private-send-recipient-info/top-up`,privateSendAllocateRecipientInfos:`/private-send-recipient-info/allocate`,privateSendNonceSync:`/private-send-nonce/sync`,privateSendNonceReserve:`/private-send-nonce/reserve`,tronSubsidyEligibility:`/tron-subsidy/eligibility`,tronSubsidyRecord:`/tron-subsidy/record`}},n={getGasEstimate:(e,t,n,r)=>`/gas-estimation/${e}/${n}/${t}/${r}`,getTokenPrices:`/get-token-prices`,TRANSACT:`/general-transact`,TRANSACT_BATCH:`/general-transact-batch`,SOLANA_TRANSACT:`/solana-transact`,SOLANA_TRANSACT_BATCH:`/solana-transact-batch`,getIdleRelay:`/get-idle-relay`,emitTxPublicData:`/emit-tx-public-data`,emitReferralTx:`/emit-referral-tx`,getScheduledTransactions:`/scheduled-transactions`,getScheduledTransactionsNullifierIndexes:`/scheduled-transactions/nullifier-indexes`,updateDepositAndWithdrawStatus:`/update-deposit-and-withdraw-status`,getTokenPriceChartData:`/get-token-price-chart-data`,getTokenPreviousDayPrices:`/get-token-previous-day-prices`,getPrivateTransactionsRatio:e=>`/get-private-transactions-ratio/${e}`,savePrivacyScoreAndGetPrivacyRank:`/save-privacy-score-and-get-privacy-rank`},r=[e.TaskTypes.firstSwap,e.TaskTypes.reclaim,e.TaskTypes.dailySwap,e.TaskTypes.dailyDappTx,e.TaskTypes.createOrJoinBH,e.TaskTypes.shieldUnshield,e.TaskTypes.moneyComes],i={[e.TaskTypes.discord]:e=>`/verify/discord/${e}`,[e.TaskTypes.telegram]:e=>`/verify/telegram/${e}`,...Object.fromEntries(r.map(e=>[e,e=>`/verify/wallet-task/${e}`]))},a={createPresaleReferral:`/create-presale-referral`,updatePresaleReferralList:`/update-presale-referral-list`,generateTradingPoints:`/generate-trading-points`,getBrotherhoodUsers:e=>`/brotherhoods/${e}/users`,getCurrentUserBrotherhoodUsers:e=>`/get-current-user-brotherhood-users/${e}`,editBrotherhood:`/edit-brotherhood`,createBrotherhood:`/create-brotherhood`,getCurrentUserBrotherhood:`/get-current-user-brotherhood`,getPublicBrotherhoods:`/get-public-brotherhoods`,getBrotherhood:e=>`/brotherhoods/${e}`,leaveBrotherhood:e=>`/brotherhoods/${e}/leave`,joinBrotherhood:e=>`/brotherhoods/${e}/join`,getUserAnalytics:`/get-user-analytics`,getBrotherhoodAnalytics:`/brotherhood/analytics`,connectRewardsUser:`/connect-user`,updateRewardsUser:`/update-rewards-user`,getRewardsUser:e=>`/get-rewards-user/${e}`,checkUsernameAvailability:e=>`/check-username/${encodeURIComponent(e)}`,getSwapStreak:`/swap-streak`,getUserCurrentLeaderboard:`/current-users-leaderboard`,getBrotherhoodsLeaderboard:`/brotherhoods-leaderboard`,getCurrentUserReferral:`/current-user-referral`,submitReferralCode:`/refer-user`,getCurrentUserAppliedReferralCode:`/current-user-applied-referral-code`,submitAccessCode:`/submit-access-code`,getAccessCodeBenefits:`/get-access-code-benefits`,getTelegramCallback:`/auth/telegram/callback`,generateAumPoints:`/generate-aum-points`,getTasksProgress:e=>`/get-tasks-progress/${e}`,disconnectSocialNetwork:`/disconnect-social-network`,getNftMultiplier:e=>`/get-nft-multiplier/${e}`,seedlessInit:`/seedless/init`,seedlessBackup:`/seedless/backup`,seedlessCheckPassword:`/seedless/check-password`,seedlessStatus:`/seedless/status`,seedlessSalt:`/seedless/salt`,sendPrivateSendEmailNotifications:`/private-send-email-notifications`,webflowBlogPosts:`/webflow-blog-posts`},o=`v11`,s=`v11`,c=`https://wallet-playground.hinkal.pro`,l=`https://wallet-staging.hinkal.pro`,u=`https://wallet-prod${s}.hinkal.pro`,d=`http://localhost:7072`,f=`/server`,p=`http://localhost:7073`,m=`/relayer`,h=`http://localhost:7074`,g=`/snapshot-server`,_=`http://localhost:7090`,v=`/data-server`;exports.API_CONFIG=t,exports.DATA_SERVER_CONFIG=a,exports.DATA_SERVER_URL_ENDPOINT=v,exports.DATA_SERVER_URL_LOCAL=_,exports.PLAYGROUND_URL=c,exports.PRODUCTION_URL=u,exports.RELAYER_CONFIG=n,exports.RELAYER_URL_ENDPOINT=m,exports.RELAYER_URL_LOCAL=p,exports.SERVER_URL_ENDPOINT=f,exports.SERVER_URL_LOCAL=d,exports.SNAPSHOT_SERVER_URL_ENDPOINT=g,exports.SNAPSHOT_SERVER_URL_LOCAL=h,exports.STAGING_URL=l,exports.VERIFICATION_ROUTES=i,exports.WALLET_TASK_VERIFICATION_TYPES=r,exports.backendVersion=o;
@@ -65,8 +65,6 @@ var t = { ROUTES: {
65
65
  e.moneyComes
66
66
  ], i = {
67
67
  [e.discord]: (e) => `/verify/discord/${e}`,
68
- [e.x]: (e) => `/verify/x/${e}`,
69
- [e.xReferral]: (e) => `/verify/x-referral/${e}`,
70
68
  [e.telegram]: (e) => `/verify/telegram/${e}`,
71
69
  ...Object.fromEntries(r.map((e) => [e, (e) => `/verify/wallet-task/${e}`]))
72
70
  }, a = {
@@ -1 +1 @@
1
- const e=require(`../types/new-rewards.type.cjs`);require(`../types/index.cjs`);var t=[{name:e.TaskTypes.x,header:`Follow Hinkal on X and tell your friends about it`,description:`Follow @hinkal_protocol on X, and make a tweet about you using Hinkal`,points:100,category:e.TaskCategory.Welcome,progressMax:1},{name:e.TaskTypes.discord,header:`Connect Discord and Join Hinkal's server`,description:`Link your Discord account and join our community server`,points:100,category:e.TaskCategory.Welcome,progressMax:1},{name:e.TaskTypes.telegram,header:`Connect Telegram and Join Hinkal's channel`,description:`Link your Telegram account and join our official channel`,points:100,category:e.TaskCategory.Welcome,progressMax:1},{name:e.TaskTypes.firstSwap,header:`Do your first swap`,description:`Complete your first token swap on Hinkal`,points:100,category:e.TaskCategory.Welcome,progressMax:1}],n=[{name:e.TaskTypes.swaps,header:`Swaps`,description:`Reach a total of 500 swaps`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:500},{name:e.TaskTypes.quests,header:`Quests`,description:`Finish a total of 50 quests`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:50},{name:e.TaskTypes.referrals,header:`Referrals`,description:`Get 25 new referrals`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:25},{name:e.TaskTypes.dApps,header:`dApps`,description:`Transact on 50 unique dApps`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:50},{name:e.TaskTypes.chains,header:`Chains`,description:`Do at least 1 swap on all chains`,points:1e4,category:e.TaskCategory.Brotherhood,progressMax:5}],r=[{name:e.TaskTypes.dailySwap,header:`Daily swap`,description:`Swap any tokens on any chain once`,points:100,category:e.TaskCategory.Daily,progressMax:1},{name:e.TaskTypes.dailyDappTx,header:`dApp transactions`,description:`Connect and do a transaction on any dApp`,points:100,category:e.TaskCategory.Daily,progressMax:1},{name:e.TaskTypes.xReferral,header:`Friends, friends, friends!`,description:`Share your referral code on X`,points:100,category:e.TaskCategory.Daily,progressMax:1}],i=[{name:e.TaskTypes.createOrJoinBH,header:`Create or join a brotherhood`,description:`Go to the brotherhoods and create or join one`,points:1500,category:e.TaskCategory.PointsBoost,progressMax:1},{name:e.TaskTypes.shieldUnshield,header:`Public account aficionado`,description:`Shield and Unshield any tokens once`,points:1500,category:e.TaskCategory.PointsBoost,progressMax:1},{name:e.TaskTypes.moneyComes,header:`Here comes the money`,description:`Do swap volume of $100 total with any token`,points:1500,category:e.TaskCategory.PointsBoost,progressMax:100}],a={name:e.TaskTypes.referralPrivateSendBonus,header:`Referral bonus`,description:`Refer a friend and send a total of $10 using confidential transfers`,points:1e4,category:e.TaskCategory.PointsBoost,progressMax:1},o=[...t,...n,...r,...i,a],s=[{name:e.TaskTypes.achievementDapps,header:`dApps`,description:`Transact on a total of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:10,points:1e4},{tier:e.AchievementTiers.Silver,progressMax:25,points:25e3},{tier:e.AchievementTiers.Gold,progressMax:50,points:5e4},{tier:e.AchievementTiers.Diamond,progressMax:100,points:1e5}]},{name:e.TaskTypes.achievementSwaps,header:`Swap`,description:`Swap a total volume of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:1e3,points:5e3},{tier:e.AchievementTiers.Silver,progressMax:1e4,points:5e4},{tier:e.AchievementTiers.Gold,progressMax:1e5,points:5e5},{tier:e.AchievementTiers.Diamond,progressMax:25e4,points:1e6}]},{name:e.TaskTypes.achievementReferrals,header:`Referrals`,description:`Refer a total of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:10,points:1e4},{tier:e.AchievementTiers.Silver,progressMax:25,points:25e3},{tier:e.AchievementTiers.Gold,progressMax:50,points:5e4},{tier:e.AchievementTiers.Diamond,progressMax:100,points:1e5}]},{name:e.TaskTypes.achievementChains,header:`Chains`,description:`Do at least 1 swap on all supported chains`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Diamond,progressMax:5,points:1e4}]},{name:e.TaskTypes.achievementPrivateSends,header:`Private`,description:`Send a total of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:1e3,points:5e3},{tier:e.AchievementTiers.Silver,progressMax:1e4,points:5e4},{tier:e.AchievementTiers.Gold,progressMax:1e5,points:5e5},{tier:e.AchievementTiers.Diamond,progressMax:25e4,points:1e6}]}];exports.ACHIEVEMENTS=s,exports.BROTHERHOOD_TASKS=n,exports.DAILY_TASKS=r,exports.POINTS_BOOST_TASKS=i,exports.REFERRAL_BONUS_TASK=a,exports.REWARDS_TASKS=o,exports.WELCOME_TASKS=t;
1
+ const e=require(`../types/new-rewards.type.cjs`);require(`../types/index.cjs`);var t=[{name:e.TaskTypes.discord,header:`Connect Discord and Join Hinkal's server`,description:`Link your Discord account and join our community server`,points:100,category:e.TaskCategory.Welcome,progressMax:1},{name:e.TaskTypes.telegram,header:`Connect Telegram and Join Hinkal's channel`,description:`Link your Telegram account and join our official channel`,points:100,category:e.TaskCategory.Welcome,progressMax:1},{name:e.TaskTypes.firstSwap,header:`Do your first swap`,description:`Complete your first token swap on Hinkal`,points:100,category:e.TaskCategory.Welcome,progressMax:1}],n=[{name:e.TaskTypes.swaps,header:`Swaps`,description:`Reach a total of 500 swaps`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:500},{name:e.TaskTypes.quests,header:`Quests`,description:`Finish a total of 50 quests`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:50},{name:e.TaskTypes.referrals,header:`Referrals`,description:`Get 25 new referrals`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:25},{name:e.TaskTypes.dApps,header:`dApps`,description:`Transact on 50 unique dApps`,points:3e4,category:e.TaskCategory.Brotherhood,progressMax:50},{name:e.TaskTypes.chains,header:`Chains`,description:`Do at least 1 swap on all chains`,points:1e4,category:e.TaskCategory.Brotherhood,progressMax:5}],r=[{name:e.TaskTypes.dailySwap,header:`Daily swap`,description:`Swap any tokens on any chain once`,points:100,category:e.TaskCategory.Daily,progressMax:1},{name:e.TaskTypes.dailyDappTx,header:`dApp transactions`,description:`Connect and do a transaction on any dApp`,points:100,category:e.TaskCategory.Daily,progressMax:1}],i=[{name:e.TaskTypes.createOrJoinBH,header:`Create or join a brotherhood`,description:`Go to the brotherhoods and create or join one`,points:1500,category:e.TaskCategory.PointsBoost,progressMax:1},{name:e.TaskTypes.shieldUnshield,header:`Public account aficionado`,description:`Shield and Unshield any tokens once`,points:1500,category:e.TaskCategory.PointsBoost,progressMax:1},{name:e.TaskTypes.moneyComes,header:`Here comes the money`,description:`Do swap volume of $100 total with any token`,points:1500,category:e.TaskCategory.PointsBoost,progressMax:100}],a={name:e.TaskTypes.referralPrivateSendBonus,header:`Referral bonus`,description:`Refer a friend and send a total of $10 using confidential transfers`,points:1e4,category:e.TaskCategory.PointsBoost,progressMax:1},o=[...t,...n,...r,...i,a],s=[{name:e.TaskTypes.achievementDapps,header:`dApps`,description:`Transact on a total of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:10,points:1e4},{tier:e.AchievementTiers.Silver,progressMax:25,points:25e3},{tier:e.AchievementTiers.Gold,progressMax:50,points:5e4},{tier:e.AchievementTiers.Diamond,progressMax:100,points:1e5}]},{name:e.TaskTypes.achievementSwaps,header:`Swap`,description:`Swap a total volume of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:1e3,points:5e3},{tier:e.AchievementTiers.Silver,progressMax:1e4,points:5e4},{tier:e.AchievementTiers.Gold,progressMax:1e5,points:5e5},{tier:e.AchievementTiers.Diamond,progressMax:25e4,points:1e6}]},{name:e.TaskTypes.achievementReferrals,header:`Referrals`,description:`Refer a total of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:10,points:1e4},{tier:e.AchievementTiers.Silver,progressMax:25,points:25e3},{tier:e.AchievementTiers.Gold,progressMax:50,points:5e4},{tier:e.AchievementTiers.Diamond,progressMax:100,points:1e5}]},{name:e.TaskTypes.achievementChains,header:`Chains`,description:`Do at least 1 swap on all supported chains`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Diamond,progressMax:5,points:1e4}]},{name:e.TaskTypes.achievementPrivateSends,header:`Private`,description:`Send a total of`,tiers:[{tier:e.AchievementTiers.None,progressMax:0,points:0},{tier:e.AchievementTiers.Bronze,progressMax:1e3,points:5e3},{tier:e.AchievementTiers.Silver,progressMax:1e4,points:5e4},{tier:e.AchievementTiers.Gold,progressMax:1e5,points:5e5},{tier:e.AchievementTiers.Diamond,progressMax:25e4,points:1e6}]}];exports.ACHIEVEMENTS=s,exports.BROTHERHOOD_TASKS=n,exports.DAILY_TASKS=r,exports.POINTS_BOOST_TASKS=i,exports.REFERRAL_BONUS_TASK=a,exports.REWARDS_TASKS=o,exports.WELCOME_TASKS=t;
@@ -2,14 +2,6 @@ import { AchievementTiers as e, TaskCategory as t, TaskTypes as n } from "../typ
2
2
  import "../types/index.mjs";
3
3
  //#region libs/shared/common/src/constants/tasks.constants.ts
4
4
  var r = [
5
- {
6
- name: n.x,
7
- header: "Follow Hinkal on X and tell your friends about it",
8
- description: "Follow @hinkal_protocol on X, and make a tweet about you using Hinkal",
9
- points: 100,
10
- category: t.Welcome,
11
- progressMax: 1
12
- },
13
5
  {
14
6
  name: n.discord,
15
7
  header: "Connect Discord and Join Hinkal's server",
@@ -75,32 +67,21 @@ var r = [
75
67
  category: t.Brotherhood,
76
68
  progressMax: 5
77
69
  }
78
- ], a = [
79
- {
80
- name: n.dailySwap,
81
- header: "Daily swap",
82
- description: "Swap any tokens on any chain once",
83
- points: 100,
84
- category: t.Daily,
85
- progressMax: 1
86
- },
87
- {
88
- name: n.dailyDappTx,
89
- header: "dApp transactions",
90
- description: "Connect and do a transaction on any dApp",
91
- points: 100,
92
- category: t.Daily,
93
- progressMax: 1
94
- },
95
- {
96
- name: n.xReferral,
97
- header: "Friends, friends, friends!",
98
- description: "Share your referral code on X",
99
- points: 100,
100
- category: t.Daily,
101
- progressMax: 1
102
- }
103
- ], o = [
70
+ ], a = [{
71
+ name: n.dailySwap,
72
+ header: "Daily swap",
73
+ description: "Swap any tokens on any chain once",
74
+ points: 100,
75
+ category: t.Daily,
76
+ progressMax: 1
77
+ }, {
78
+ name: n.dailyDappTx,
79
+ header: "dApp transactions",
80
+ description: "Connect and do a transaction on any dApp",
81
+ points: 100,
82
+ category: t.Daily,
83
+ progressMax: 1
84
+ }], o = [
104
85
  {
105
86
  name: n.createOrJoinBH,
106
87
  header: "Create or join a brotherhood",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h_test_1",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "homepage": "hinkal.io",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -84,7 +84,7 @@
84
84
  "dotenv": "^16.4.5",
85
85
  "ethers": "^6.15.0",
86
86
  "idb-keyval": "6.2.1",
87
- "multiformats": "^13.4.2",
87
+ "multiformats": "^9.4.2",
88
88
  "snarkjs": "0.7.5",
89
89
  "libsodium-wrappers": "^0.8.2",
90
90
  "lodash": "^4.17.21",
@@ -1 +1 @@
1
- var e=function(e){return e.LAST_IGNORED_DEPOSIT_BALANCE_1K=`lastIgnoredDepositBalance1K`,e.LAST_IGNORED_DEPOSIT_BALANCE_10K=`lastIgnoredDepositBalance10K`,e.LAST_IGNORED_DEPOSIT_SCAM_TOKENS=`lastIgnoredDepositScamTokens`,e.LAST_IGNORED_DEPOSIT_TRANSACTIONS=`lastIgnoredDepositTransactions`,e.LOCAL_STORAGE_KEY_USER_ANALYTICS_CONSENT=`userAnalyticsConsentPref`,e.PASSWORD_HASH=`passwordHash`,e.LAST_ADDRESS=`lastAddress`,e.AUTO_LOCK_TIME=`autoLockTime`,e.TOKEN_REGISTRY=`tokenRegistry`,e.IS_BALANCE_HIDDEN=`isBalanceHidden`,e.TRANSACTION_STATUS=`transactionStatus`,e.SELECTED_SUB_ACCOUNT_ADDRESS=`selectedSubAccountAddress`,e.GENERATE_PROOF_REMOTELY=`generateProofRemotely`,e.IS_RELAYER_OFF=`isRelayerOff`,e.ONBOARDING_SHOWN=`onboardingShown`,e.GAS_COST_TOKEN=`gasCostToken`,e.PRIVATE_TOKENS=`privateTokens`,e.ALCHEMY_PUBLIC_TOKENS=`alchemyPublicTokens`,e.EVENTS_PUBLIC_TOKENS=`eventsPublicTokens`,e.ARC_PUBLIC_TOKENS=`arcPublicTokens`,e.PUBLIC_TOKENS_LAST_PROCESSED_BLOCKS=`publicTokensLastProcessedBlocks`,e.ACCEPTED_TERMS_OF_SERVICES=`acceptedTermsOfServices`,e.SLIPPAGE_PERCENTAGE=`slippagePercentage`,e.IS_SLIPPAGE_PERCENTAGE_CUSTOM=`isSlippagePercentageCustom`,e.MNEMONIC_PHRASE=`mnemonicPhrase`,e.SOURCE_MNEMONIC_PHRASE=`sourceMnemonicPhrase`,e.SELECTED_WALLET_ENVIRONMENT=`selectedWalletEnvironment`,e.IS_TOOLTIPS_ON=`isTooltipsOn`,e.CONNECTED_ADDRESS=`connectedAddress`,e.CONNECTED_SOLANA_ADDRESS=`connectedSolanaAddress`,e.CONNECTED_SESSIONS=`connectedSessions`,e.TX_ACTIVITY=`tx-activity`,e.EVENTS_PUBLIC_APPROVALS=`eventsPublicApprovals`,e.PUBLIC_APPROVALS_LAST_PROCESSED_BLOCKS=`publicApprovalsLastProcessedBlocks`,e.ACTIVE_SUB_ACCOUNT=`activeSubAccount`,e.SIGNED_MESSAGES=`signedMessages`,e.AUTO_SHIELD_IS_ON=`autoShieldIsOn`,e.MAX_GAS_IN_DOLLAR=`maxGasInDollar`,e.PENDING_SOLANA_SIGNATURES=`pendingSolanaSignatures`,e.ONBOARDING_TEMPORARY_PASSWORD=`onboardingTemporaryPassword`,e.STORAGE_KEY_LAST_SEEN_VERSION=`hinkalLastSeenVersion`,e.X_REFERRAL_LAST_CLICK=`xReferralLastClick`,e.HINKAL_GOOGLE_SESSION=`hinkalGoogleSession`,e.IS_CREATE_NEW_PUBLIC_WALLET_ON=`isCreateNewPublicWalletOn`,e.DISGUISED_AS_METAMASK_HOSTS=`disguisedAsMetamaskHosts`,e.CHAIN_ID_FILTER=`chainIdFilter`,e.SIGNATURE=`signature`,e.PUBLIC_ACCOUNT_DETAILS=`publicAccountDetails`,e.IS_NEW_ACCOUNT_MANAGEMENT_SYSTEM=`isNewAccountManagementSystem`,e.SUB_ACCOUNTS_REFRESH_TOKEN=`subAccountsRefreshToken`,e.PRIVATE_SEND_NONCE=`privateSendNonce`,e.PRIVATE_SEND_PENDING_ENCLAVE_UTXOS=`privateSendPendingEnclaveUtxos`,e.SHOULD_SHOW_ANNOUNCEMENT_BANNER=`shouldShowAnnouncementBanner`,e.LAST_SHIELD_TIME=`lastShieldTime`,e.IS_TOUR_COMPLETED=`isTourCompleted`,e.TOUR_CURRENT_STEP=`tourCurrentStep`,e}({});exports.StorageKeys=e;
1
+ var e=function(e){return e.LAST_IGNORED_DEPOSIT_BALANCE_1K=`lastIgnoredDepositBalance1K`,e.LAST_IGNORED_DEPOSIT_BALANCE_10K=`lastIgnoredDepositBalance10K`,e.LAST_IGNORED_DEPOSIT_SCAM_TOKENS=`lastIgnoredDepositScamTokens`,e.LAST_IGNORED_DEPOSIT_TRANSACTIONS=`lastIgnoredDepositTransactions`,e.LOCAL_STORAGE_KEY_USER_ANALYTICS_CONSENT=`userAnalyticsConsentPref`,e.PASSWORD_HASH=`passwordHash`,e.LAST_ADDRESS=`lastAddress`,e.AUTO_LOCK_TIME=`autoLockTime`,e.TOKEN_REGISTRY=`tokenRegistry`,e.IS_BALANCE_HIDDEN=`isBalanceHidden`,e.TRANSACTION_STATUS=`transactionStatus`,e.SELECTED_SUB_ACCOUNT_ADDRESS=`selectedSubAccountAddress`,e.GENERATE_PROOF_REMOTELY=`generateProofRemotely`,e.IS_RELAYER_OFF=`isRelayerOff`,e.ONBOARDING_SHOWN=`onboardingShown`,e.GAS_COST_TOKEN=`gasCostToken`,e.PRIVATE_TOKENS=`privateTokens`,e.ALCHEMY_PUBLIC_TOKENS=`alchemyPublicTokens`,e.EVENTS_PUBLIC_TOKENS=`eventsPublicTokens`,e.ARC_PUBLIC_TOKENS=`arcPublicTokens`,e.PUBLIC_TOKENS_LAST_PROCESSED_BLOCKS=`publicTokensLastProcessedBlocks`,e.ACCEPTED_TERMS_OF_SERVICES=`acceptedTermsOfServices`,e.SLIPPAGE_PERCENTAGE=`slippagePercentage`,e.IS_SLIPPAGE_PERCENTAGE_CUSTOM=`isSlippagePercentageCustom`,e.MNEMONIC_PHRASE=`mnemonicPhrase`,e.SOURCE_MNEMONIC_PHRASE=`sourceMnemonicPhrase`,e.SELECTED_WALLET_ENVIRONMENT=`selectedWalletEnvironment`,e.IS_TOOLTIPS_ON=`isTooltipsOn`,e.CONNECTED_ADDRESS=`connectedAddress`,e.CONNECTED_SOLANA_ADDRESS=`connectedSolanaAddress`,e.CONNECTED_SESSIONS=`connectedSessions`,e.TX_ACTIVITY=`tx-activity`,e.EVENTS_PUBLIC_APPROVALS=`eventsPublicApprovals`,e.PUBLIC_APPROVALS_LAST_PROCESSED_BLOCKS=`publicApprovalsLastProcessedBlocks`,e.ACTIVE_SUB_ACCOUNT=`activeSubAccount`,e.SIGNED_MESSAGES=`signedMessages`,e.AUTO_SHIELD_IS_ON=`autoShieldIsOn`,e.MAX_GAS_IN_DOLLAR=`maxGasInDollar`,e.PENDING_SOLANA_SIGNATURES=`pendingSolanaSignatures`,e.ONBOARDING_TEMPORARY_PASSWORD=`onboardingTemporaryPassword`,e.STORAGE_KEY_LAST_SEEN_VERSION=`hinkalLastSeenVersion`,e.HINKAL_GOOGLE_SESSION=`hinkalGoogleSession`,e.IS_CREATE_NEW_PUBLIC_WALLET_ON=`isCreateNewPublicWalletOn`,e.DISGUISED_AS_METAMASK_HOSTS=`disguisedAsMetamaskHosts`,e.CHAIN_ID_FILTER=`chainIdFilter`,e.SIGNATURE=`signature`,e.PUBLIC_ACCOUNT_DETAILS=`publicAccountDetails`,e.IS_NEW_ACCOUNT_MANAGEMENT_SYSTEM=`isNewAccountManagementSystem`,e.SUB_ACCOUNTS_REFRESH_TOKEN=`subAccountsRefreshToken`,e.PRIVATE_SEND_NONCE=`privateSendNonce`,e.PRIVATE_SEND_PENDING_ENCLAVE_UTXOS=`privateSendPendingEnclaveUtxos`,e.SHOULD_SHOW_ANNOUNCEMENT_BANNER=`shouldShowAnnouncementBanner`,e.LAST_SHIELD_TIME=`lastShieldTime`,e.IS_TOUR_COMPLETED=`isTourCompleted`,e.TOUR_CURRENT_STEP=`tourCurrentStep`,e}({});exports.StorageKeys=e;
@@ -40,7 +40,6 @@ export declare enum StorageKeys {
40
40
  PENDING_SOLANA_SIGNATURES = "pendingSolanaSignatures",
41
41
  ONBOARDING_TEMPORARY_PASSWORD = "onboardingTemporaryPassword",
42
42
  STORAGE_KEY_LAST_SEEN_VERSION = "hinkalLastSeenVersion",
43
- X_REFERRAL_LAST_CLICK = "xReferralLastClick",
44
43
  HINKAL_GOOGLE_SESSION = "hinkalGoogleSession",
45
44
  IS_CREATE_NEW_PUBLIC_WALLET_ON = "isCreateNewPublicWalletOn",
46
45
  DISGUISED_AS_METAMASK_HOSTS = "disguisedAsMetamaskHosts",
@@ -1,6 +1,6 @@
1
1
  //#region libs/shared/common/src/types/cache.types.ts
2
2
  var e = /* @__PURE__ */ function(e) {
3
- return e.LAST_IGNORED_DEPOSIT_BALANCE_1K = "lastIgnoredDepositBalance1K", e.LAST_IGNORED_DEPOSIT_BALANCE_10K = "lastIgnoredDepositBalance10K", e.LAST_IGNORED_DEPOSIT_SCAM_TOKENS = "lastIgnoredDepositScamTokens", e.LAST_IGNORED_DEPOSIT_TRANSACTIONS = "lastIgnoredDepositTransactions", e.LOCAL_STORAGE_KEY_USER_ANALYTICS_CONSENT = "userAnalyticsConsentPref", e.PASSWORD_HASH = "passwordHash", e.LAST_ADDRESS = "lastAddress", e.AUTO_LOCK_TIME = "autoLockTime", e.TOKEN_REGISTRY = "tokenRegistry", e.IS_BALANCE_HIDDEN = "isBalanceHidden", e.TRANSACTION_STATUS = "transactionStatus", e.SELECTED_SUB_ACCOUNT_ADDRESS = "selectedSubAccountAddress", e.GENERATE_PROOF_REMOTELY = "generateProofRemotely", e.IS_RELAYER_OFF = "isRelayerOff", e.ONBOARDING_SHOWN = "onboardingShown", e.GAS_COST_TOKEN = "gasCostToken", e.PRIVATE_TOKENS = "privateTokens", e.ALCHEMY_PUBLIC_TOKENS = "alchemyPublicTokens", e.EVENTS_PUBLIC_TOKENS = "eventsPublicTokens", e.ARC_PUBLIC_TOKENS = "arcPublicTokens", e.PUBLIC_TOKENS_LAST_PROCESSED_BLOCKS = "publicTokensLastProcessedBlocks", e.ACCEPTED_TERMS_OF_SERVICES = "acceptedTermsOfServices", e.SLIPPAGE_PERCENTAGE = "slippagePercentage", e.IS_SLIPPAGE_PERCENTAGE_CUSTOM = "isSlippagePercentageCustom", e.MNEMONIC_PHRASE = "mnemonicPhrase", e.SOURCE_MNEMONIC_PHRASE = "sourceMnemonicPhrase", e.SELECTED_WALLET_ENVIRONMENT = "selectedWalletEnvironment", e.IS_TOOLTIPS_ON = "isTooltipsOn", e.CONNECTED_ADDRESS = "connectedAddress", e.CONNECTED_SOLANA_ADDRESS = "connectedSolanaAddress", e.CONNECTED_SESSIONS = "connectedSessions", e.TX_ACTIVITY = "tx-activity", e.EVENTS_PUBLIC_APPROVALS = "eventsPublicApprovals", e.PUBLIC_APPROVALS_LAST_PROCESSED_BLOCKS = "publicApprovalsLastProcessedBlocks", e.ACTIVE_SUB_ACCOUNT = "activeSubAccount", e.SIGNED_MESSAGES = "signedMessages", e.AUTO_SHIELD_IS_ON = "autoShieldIsOn", e.MAX_GAS_IN_DOLLAR = "maxGasInDollar", e.PENDING_SOLANA_SIGNATURES = "pendingSolanaSignatures", e.ONBOARDING_TEMPORARY_PASSWORD = "onboardingTemporaryPassword", e.STORAGE_KEY_LAST_SEEN_VERSION = "hinkalLastSeenVersion", e.X_REFERRAL_LAST_CLICK = "xReferralLastClick", e.HINKAL_GOOGLE_SESSION = "hinkalGoogleSession", e.IS_CREATE_NEW_PUBLIC_WALLET_ON = "isCreateNewPublicWalletOn", e.DISGUISED_AS_METAMASK_HOSTS = "disguisedAsMetamaskHosts", e.CHAIN_ID_FILTER = "chainIdFilter", e.SIGNATURE = "signature", e.PUBLIC_ACCOUNT_DETAILS = "publicAccountDetails", e.IS_NEW_ACCOUNT_MANAGEMENT_SYSTEM = "isNewAccountManagementSystem", e.SUB_ACCOUNTS_REFRESH_TOKEN = "subAccountsRefreshToken", e.PRIVATE_SEND_NONCE = "privateSendNonce", e.PRIVATE_SEND_PENDING_ENCLAVE_UTXOS = "privateSendPendingEnclaveUtxos", e.SHOULD_SHOW_ANNOUNCEMENT_BANNER = "shouldShowAnnouncementBanner", e.LAST_SHIELD_TIME = "lastShieldTime", e.IS_TOUR_COMPLETED = "isTourCompleted", e.TOUR_CURRENT_STEP = "tourCurrentStep", e;
3
+ return e.LAST_IGNORED_DEPOSIT_BALANCE_1K = "lastIgnoredDepositBalance1K", e.LAST_IGNORED_DEPOSIT_BALANCE_10K = "lastIgnoredDepositBalance10K", e.LAST_IGNORED_DEPOSIT_SCAM_TOKENS = "lastIgnoredDepositScamTokens", e.LAST_IGNORED_DEPOSIT_TRANSACTIONS = "lastIgnoredDepositTransactions", e.LOCAL_STORAGE_KEY_USER_ANALYTICS_CONSENT = "userAnalyticsConsentPref", e.PASSWORD_HASH = "passwordHash", e.LAST_ADDRESS = "lastAddress", e.AUTO_LOCK_TIME = "autoLockTime", e.TOKEN_REGISTRY = "tokenRegistry", e.IS_BALANCE_HIDDEN = "isBalanceHidden", e.TRANSACTION_STATUS = "transactionStatus", e.SELECTED_SUB_ACCOUNT_ADDRESS = "selectedSubAccountAddress", e.GENERATE_PROOF_REMOTELY = "generateProofRemotely", e.IS_RELAYER_OFF = "isRelayerOff", e.ONBOARDING_SHOWN = "onboardingShown", e.GAS_COST_TOKEN = "gasCostToken", e.PRIVATE_TOKENS = "privateTokens", e.ALCHEMY_PUBLIC_TOKENS = "alchemyPublicTokens", e.EVENTS_PUBLIC_TOKENS = "eventsPublicTokens", e.ARC_PUBLIC_TOKENS = "arcPublicTokens", e.PUBLIC_TOKENS_LAST_PROCESSED_BLOCKS = "publicTokensLastProcessedBlocks", e.ACCEPTED_TERMS_OF_SERVICES = "acceptedTermsOfServices", e.SLIPPAGE_PERCENTAGE = "slippagePercentage", e.IS_SLIPPAGE_PERCENTAGE_CUSTOM = "isSlippagePercentageCustom", e.MNEMONIC_PHRASE = "mnemonicPhrase", e.SOURCE_MNEMONIC_PHRASE = "sourceMnemonicPhrase", e.SELECTED_WALLET_ENVIRONMENT = "selectedWalletEnvironment", e.IS_TOOLTIPS_ON = "isTooltipsOn", e.CONNECTED_ADDRESS = "connectedAddress", e.CONNECTED_SOLANA_ADDRESS = "connectedSolanaAddress", e.CONNECTED_SESSIONS = "connectedSessions", e.TX_ACTIVITY = "tx-activity", e.EVENTS_PUBLIC_APPROVALS = "eventsPublicApprovals", e.PUBLIC_APPROVALS_LAST_PROCESSED_BLOCKS = "publicApprovalsLastProcessedBlocks", e.ACTIVE_SUB_ACCOUNT = "activeSubAccount", e.SIGNED_MESSAGES = "signedMessages", e.AUTO_SHIELD_IS_ON = "autoShieldIsOn", e.MAX_GAS_IN_DOLLAR = "maxGasInDollar", e.PENDING_SOLANA_SIGNATURES = "pendingSolanaSignatures", e.ONBOARDING_TEMPORARY_PASSWORD = "onboardingTemporaryPassword", e.STORAGE_KEY_LAST_SEEN_VERSION = "hinkalLastSeenVersion", e.HINKAL_GOOGLE_SESSION = "hinkalGoogleSession", e.IS_CREATE_NEW_PUBLIC_WALLET_ON = "isCreateNewPublicWalletOn", e.DISGUISED_AS_METAMASK_HOSTS = "disguisedAsMetamaskHosts", e.CHAIN_ID_FILTER = "chainIdFilter", e.SIGNATURE = "signature", e.PUBLIC_ACCOUNT_DETAILS = "publicAccountDetails", e.IS_NEW_ACCOUNT_MANAGEMENT_SYSTEM = "isNewAccountManagementSystem", e.SUB_ACCOUNTS_REFRESH_TOKEN = "subAccountsRefreshToken", e.PRIVATE_SEND_NONCE = "privateSendNonce", e.PRIVATE_SEND_PENDING_ENCLAVE_UTXOS = "privateSendPendingEnclaveUtxos", e.SHOULD_SHOW_ANNOUNCEMENT_BANNER = "shouldShowAnnouncementBanner", e.LAST_SHIELD_TIME = "lastShieldTime", e.IS_TOUR_COMPLETED = "isTourCompleted", e.TOUR_CURRENT_STEP = "tourCurrentStep", e;
4
4
  }({});
5
5
  //#endregion
6
6
  export { e as StorageKeys };
@@ -1 +1 @@
1
- var e=function(e){return e.Welcome=`welcome`,e.Daily=`daily`,e.Brotherhood=`brotherhood`,e.PointsBoost=`pointsBoost`,e}({}),t=function(e){return e.None=`None`,e.Bronze=`Bronze`,e.Silver=`Silver`,e.Gold=`Gold`,e.Diamond=`Diamond`,e}({}),n=function(e){return e.x=`x`,e.discord=`discord`,e.telegram=`telegram`,e.reclaim=`reclaim`,e.firstSwap=`firstSwap`,e.members=`members`,e.quests=`quests`,e.swaps=`swaps`,e.referrals=`referrals`,e.dApps=`dApps`,e.chains=`chains`,e.dailySwap=`dailySwap`,e.dailyDappTx=`dailyDappTx`,e.xReferral=`xReferral`,e.achievementSwaps=`achievementSwaps`,e.achievementReferrals=`achievementReferrals`,e.achievementDapps=`achievementDapps`,e.achievementChains=`achievementChains`,e.achievementPrivateSends=`achievementPrivateSends`,e.createOrJoinBH=`createOrJoinBH`,e.shieldUnshield=`shieldUnshield`,e.moneyComes=`moneyComes`,e.referralPrivateSendBonus=`referralPrivateSendBonus`,e}({}),r=function(e){return e.swappedChains=`swappedChains`,e.interactedDApps=`interactedDApps`,e}({});exports.AchievementTiers=t,exports.BrotherhoodTaskTypes=r,exports.TaskCategory=e,exports.TaskTypes=n;
1
+ var e=function(e){return e.Welcome=`welcome`,e.Daily=`daily`,e.Brotherhood=`brotherhood`,e.PointsBoost=`pointsBoost`,e}({}),t=function(e){return e.None=`None`,e.Bronze=`Bronze`,e.Silver=`Silver`,e.Gold=`Gold`,e.Diamond=`Diamond`,e}({}),n=function(e){return e.discord=`discord`,e.telegram=`telegram`,e.reclaim=`reclaim`,e.firstSwap=`firstSwap`,e.members=`members`,e.quests=`quests`,e.swaps=`swaps`,e.referrals=`referrals`,e.dApps=`dApps`,e.chains=`chains`,e.dailySwap=`dailySwap`,e.dailyDappTx=`dailyDappTx`,e.achievementSwaps=`achievementSwaps`,e.achievementReferrals=`achievementReferrals`,e.achievementDapps=`achievementDapps`,e.achievementChains=`achievementChains`,e.achievementPrivateSends=`achievementPrivateSends`,e.createOrJoinBH=`createOrJoinBH`,e.shieldUnshield=`shieldUnshield`,e.moneyComes=`moneyComes`,e.referralPrivateSendBonus=`referralPrivateSendBonus`,e}({}),r=function(e){return e.swappedChains=`swappedChains`,e.interactedDApps=`interactedDApps`,e}({});exports.AchievementTiers=t,exports.BrotherhoodTaskTypes=r,exports.TaskCategory=e,exports.TaskTypes=n;
@@ -9,7 +9,6 @@ export interface SocialConnection {
9
9
  }
10
10
  export interface SocialsConnections {
11
11
  discord?: SocialConnection;
12
- x?: SocialConnection;
13
12
  telegram?: SocialConnection;
14
13
  }
15
14
  export declare enum TaskCategory {
@@ -54,7 +53,6 @@ export interface TelegramUser {
54
53
  username?: string;
55
54
  }
56
55
  export declare enum TaskTypes {
57
- x = "x",
58
56
  discord = "discord",
59
57
  telegram = "telegram",
60
58
  reclaim = "reclaim",
@@ -67,7 +65,6 @@ export declare enum TaskTypes {
67
65
  chains = "chains",
68
66
  dailySwap = "dailySwap",
69
67
  dailyDappTx = "dailyDappTx",
70
- xReferral = "xReferral",
71
68
  achievementSwaps = "achievementSwaps",
72
69
  achievementReferrals = "achievementReferrals",
73
70
  achievementDapps = "achievementDapps",
@@ -4,7 +4,7 @@ var e = /* @__PURE__ */ function(e) {
4
4
  }({}), t = /* @__PURE__ */ function(e) {
5
5
  return e.None = "None", e.Bronze = "Bronze", e.Silver = "Silver", e.Gold = "Gold", e.Diamond = "Diamond", e;
6
6
  }({}), n = /* @__PURE__ */ function(e) {
7
- return e.x = "x", e.discord = "discord", e.telegram = "telegram", e.reclaim = "reclaim", e.firstSwap = "firstSwap", e.members = "members", e.quests = "quests", e.swaps = "swaps", e.referrals = "referrals", e.dApps = "dApps", e.chains = "chains", e.dailySwap = "dailySwap", e.dailyDappTx = "dailyDappTx", e.xReferral = "xReferral", e.achievementSwaps = "achievementSwaps", e.achievementReferrals = "achievementReferrals", e.achievementDapps = "achievementDapps", e.achievementChains = "achievementChains", e.achievementPrivateSends = "achievementPrivateSends", e.createOrJoinBH = "createOrJoinBH", e.shieldUnshield = "shieldUnshield", e.moneyComes = "moneyComes", e.referralPrivateSendBonus = "referralPrivateSendBonus", e;
7
+ return e.discord = "discord", e.telegram = "telegram", e.reclaim = "reclaim", e.firstSwap = "firstSwap", e.members = "members", e.quests = "quests", e.swaps = "swaps", e.referrals = "referrals", e.dApps = "dApps", e.chains = "chains", e.dailySwap = "dailySwap", e.dailyDappTx = "dailyDappTx", e.achievementSwaps = "achievementSwaps", e.achievementReferrals = "achievementReferrals", e.achievementDapps = "achievementDapps", e.achievementChains = "achievementChains", e.achievementPrivateSends = "achievementPrivateSends", e.createOrJoinBH = "createOrJoinBH", e.shieldUnshield = "shieldUnshield", e.moneyComes = "moneyComes", e.referralPrivateSendBonus = "referralPrivateSendBonus", e;
8
8
  }({}), r = /* @__PURE__ */ function(e) {
9
9
  return e.swappedChains = "swappedChains", e.interactedDApps = "interactedDApps", e;
10
10
  }({});
@@ -1 +1,21 @@
1
- const e=require(`./worker.registry.cjs`),t=require(`./zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs`),n=require(`./snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs`),r=require(`./utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs`);var i=async()=>({[e.WorkerVariant.ZKProof]:t.default,[e.WorkerVariant.SnarkJS]:n.default,[e.WorkerVariant.UTXO]:r.default});exports.getWorkerViteURL=i;
1
+
2
+ const domain = 'https://d13x2m0ev3hbsi.cloudfront.net';
3
+
4
+ // Returns a blob:// URL which points
5
+ // to a javascript file which will call
6
+ // importScripts with the given URL
7
+ async function getWorkerURL(url) {
8
+ const contentRes = await fetch(url);
9
+ const content = await contentRes.text()
10
+
11
+ return URL.createObjectURL(new Blob([content], { type: "application/javascript" }));
12
+ }
13
+
14
+ var e = /* @__PURE__ */ ((r) => (r.ZKProof = "ZKProof", r.SnarkJS = "SnarkJS", r.UTXO = "UTXO", r))(e || {});
15
+
16
+ const n = async () => ({
17
+ [e.ZKProof]: await getWorkerURL(domain + '/0.2.20/' + 'zkProofWorkerLauncher.js'),
18
+ [e.SnarkJS]: await getWorkerURL(domain + '/0.2.20/' + 'snarkjsWorkerLauncher.js'),
19
+ [e.UTXO]: await getWorkerURL(domain + '/0.2.20/' + 'utxoWorkerLauncher.js'),
20
+ });
21
+ exports.getWorkerViteURL = n;
@@ -1,12 +1,21 @@
1
- import { WorkerVariant as e } from "./worker.registry.mjs";
2
- import t from "./zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs";
3
- import n from "./snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs";
4
- import r from "./utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs";
5
- //#region libs/shared/common/src/webworker/viteWorkerURL.constant.ts
6
- var i = async () => ({
7
- [e.ZKProof]: t,
8
- [e.SnarkJS]: n,
9
- [e.UTXO]: r
10
- });
11
- //#endregion
12
- export { i as getWorkerViteURL };
1
+
2
+ const domain = 'https://d13x2m0ev3hbsi.cloudfront.net';
3
+
4
+ // Returns a blob:// URL which points
5
+ // to a javascript file which will call
6
+ // importScripts with the given URL
7
+ async function getWorkerURL(url) {
8
+ const contentRes = await fetch(url);
9
+ const content = await contentRes.text()
10
+
11
+ return URL.createObjectURL(new Blob([content], { type: "application/javascript" }));
12
+ }
13
+
14
+ var e = /* @__PURE__ */ ((r) => (r.ZKProof = "ZKProof", r.SnarkJS = "SnarkJS", r.UTXO = "UTXO", r))(e || {});
15
+
16
+ const n = async () => ({
17
+ [e.ZKProof]: await getWorkerURL(domain + '/0.2.20/' + 'zkProofWorkerLauncher.js'),
18
+ [e.SnarkJS]: await getWorkerURL(domain + '/0.2.20/' + 'snarkjsWorkerLauncher.js'),
19
+ [e.UTXO]: await getWorkerURL(domain + '/0.2.20/' + 'utxoWorkerLauncher.js'),
20
+ });
21
+ export { n as getWorkerViteURL };
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),p=s((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),m=s((e=>{let t=f(),n=p(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=te,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return m(e,t);if(ArrayBuffer.isView(e))return g(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return _(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=ee(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:v(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function m(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function h(e){let t=e.length<0?0:v(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function g(e){if(Z(e,Uint8Array)){let t=new Uint8Array(e);return _(t.buffer,t.byteOffset,t.byteLength)}return h(e)}function _(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function ee(e){if(s.isBuffer(e)){let t=v(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||Q(e.length)?o(0):h(e);if(e.type===`Buffer`&&Array.isArray(e.data))return h(e.data)}function v(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function te(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return J(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return Y(e).length;default:if(i)return r?-1:J(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ae(this,t,n);case`utf8`:case`utf-8`:return D(this,t,n);case`ascii`:return A(this,t,n);case`latin1`:case`binary`:return j(this,t,n);case`base64`:return ie(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return M(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?D(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Q(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(Q(r))return o;e[n+o]=r}return o}function ne(e,t,n,r){return X(J(t,e.length-n),e,n,r)}function T(e,t,n,r){return X(se(t),e,n,r)}function E(e,t,n,r){return X(Y(t),e,n,r)}function re(e,t,n,r){return X(ce(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return ne(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return T(this,e,t,n);case`base64`:return E(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return re(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ie(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function D(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return k(r)}let O=4096;function k(e){let t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}function A(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function j(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ae(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=le[e[r]];return i}function M(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function N(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!1,52,8)};function P(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function F(e,t,n,r,i){W(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function I(e,t,n,r,i){W(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=$(function(e,t=0){return F(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=$(function(e,t=0){return I(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=$(function(e,t=0){return F(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=$(function(e,t=0){return I(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function L(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function R(e,t,r,i,a){return t=+t,r>>>=0,a||L(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)};function z(e,t,r,i,a){return t=+t,r>>>=0,a||L(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let B={};function V(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}V(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),V(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),V(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=H(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function H(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function U(e,t,n){G(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&K(t,e.length-(n+1))}function W(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE(`value`,i,e)}U(r,i,a)}function G(e,t){if(typeof e!=`number`)throw new B.ERR_INVALID_ARG_TYPE(t,`number`,e)}function K(e,t,n){throw Math.floor(e)===e?t<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(G(e,n),new B.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let q=/[^+/0-9A-Za-z-_]/g;function oe(e){if(e=e.split(`=`)[0],e=e.trim().replace(q,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function J(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function se(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ce(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function Y(e){return t.toByteArray(oe(e))}function X(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Q(e){return e!==e}let le=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function $(e){return typeof BigInt>`u`?ue:e}function ue(){throw Error(`BigInt not supported`)}})),h=s(((e,t)=>{var n=t.exports={},r,i;function a(){throw Error(`setTimeout has not been defined`)}function o(){throw Error(`clearTimeout has not been defined`)}(function(){try{r=typeof setTimeout==`function`?setTimeout:a}catch{r=a}try{i=typeof clearTimeout==`function`?clearTimeout:o}catch{i=o}})();function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch{try{return r.call(null,e,0)}catch{return r.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}var l=[],u=!1,d,f=-1;function p(){!u||!d||(u=!1,d.length?l=d.concat(l):f=-1,l.length&&m())}function m(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(d=l,l=[];++f<t;)d&&d[f].run();f=-1,t=l.length}d=null,u=!1,c(e)}}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),l.length===1&&!u&&s(m)};function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)},n.title=`browser`,n.browser=!0,n.env={},n.argv=[],n.version=``,n.versions={};function g(){}n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw Error(`process.binding is not supported`)},n.cwd=function(){return`/`},n.chdir=function(e){throw Error(`process.chdir is not supported`)},n.umask=function(){return 0}}));export{c as a,o as i,m as n,d as o,s as r,u as s,h as t};
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{s as n,l as r,o as t};
@@ -1 +0,0 @@
1
- import{r as e,t}from"./chunk-DECur_0Z.js";var n=t((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),r=t((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),i=t((e=>{let t=n(),i=r(),a=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=l,e.SlowBuffer=te,e.INSPECT_MAX_BYTES=50;let o=2147483647;e.kMaxLength=o,l.TYPED_ARRAY_SUPPORT=s(),!l.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,`parent`,{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,`offset`,{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function c(e){if(e>o)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return p(e)}return u(e,t,n)}l.poolSize=8192;function u(e,t,n){if(typeof e==`string`)return m(e,t);if(ArrayBuffer.isView(e))return g(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return _(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return l.from(r,t,n);let i=ee(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return l.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function f(e,t,n){return d(e),e<=0||t===void 0?c(e):typeof n==`string`?c(e).fill(t,n):c(e).fill(t)}l.alloc=function(e,t,n){return f(e,t,n)};function p(e){return d(e),c(e<0?0:v(e)|0)}l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)};function m(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!l.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=c(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function h(e){let t=e.length<0?0:v(e.length)|0,n=c(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function g(e){if(Z(e,Uint8Array)){let t=new Uint8Array(e);return _(t.buffer,t.byteOffset,t.byteLength)}return h(e)}function _(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function ee(e){if(l.isBuffer(e)){let t=v(e.length)|0,n=c(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||Q(e.length)?c(0):h(e);if(e.type===`Buffer`&&Array.isArray(e.data))return h(e.data)}function v(e){if(e>=o)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+o.toString(16)+` bytes`);return e|0}function te(e){return+e!=e&&(e=0),l.alloc(+e)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype},l.compare=function(e,t){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return l.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(l.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return J(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return Y(e).length;default:if(i)return r?-1:J(e).length;t=(``+t).toLowerCase(),i=!0}}l.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ae(this,t,n);case`utf8`:case`utf-8`:return D(this,t,n);case`ascii`:return A(this,t,n);case`latin1`:case`binary`:return j(this,t,n);case`base64`:return ie(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return M(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}l.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}l.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},l.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},l.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},l.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?D(this,0,e):b.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:l.compare(this,e)===0},l.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<s;++e)if(c[e]!==u[e]){a=c[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Q(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=l.from(t,r)),l.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}l.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},l.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(Q(r))return o;e[n+o]=r}return o}function ne(e,t,n,r){return X(J(t,e.length-n),e,n,r)}function T(e,t,n,r){return X(se(t),e,n,r)}function E(e,t,n,r){return X(Y(t),e,n,r)}function re(e,t,n,r){return X(ce(t,e.length-n),e,n,r)}l.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return ne(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return T(this,e,t,n);case`base64`:return E(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return re(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ie(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function D(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return k(r)}let O=4096;function k(e){let t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}function A(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function j(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ae(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=le[e[r]];return i}function M(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}l.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r};function N(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},l.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),l.prototype.readBigInt64BE=$(function(e){e>>>=0,G(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)};function P(e,t,n,r,i,a){if(!l.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=e&255,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function F(e,t,n,r,i){W(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function I(e,t,n,r,i){W(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}l.prototype.writeBigUInt64LE=$(function(e,t=0){return F(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),l.prototype.writeBigUInt64BE=$(function(e,t=0){return I(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},l.prototype.writeBigInt64LE=$(function(e,t=0){return F(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),l.prototype.writeBigInt64BE=$(function(e,t=0){return I(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function L(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function R(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)};function z(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}l.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!l.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=l.isBuffer(e)?e:l.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let B={};function V(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}V(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),V(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),V(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=H(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function H(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function U(e,t,n){G(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&K(t,e.length-(n+1))}function W(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE(`value`,i,e)}U(r,i,a)}function G(e,t){if(typeof e!=`number`)throw new B.ERR_INVALID_ARG_TYPE(t,`number`,e)}function K(e,t,n){throw Math.floor(e)===e?t<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(G(e,n),new B.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let q=/[^+/0-9A-Za-z-_]/g;function oe(e){if(e=e.split(`=`)[0],e=e.trim().replace(q,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function J(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function se(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ce(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function Y(e){return t.toByteArray(oe(e))}function X(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Q(e){return e!==e}let le=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function $(e){return typeof BigInt>`u`?ue:e}function ue(){throw Error(`BigInt not supported`)}})),a=t(((e,t)=>{var n=t.exports={},r,i;function a(){throw Error(`setTimeout has not been defined`)}function o(){throw Error(`clearTimeout has not been defined`)}(function(){try{r=typeof setTimeout==`function`?setTimeout:a}catch{r=a}try{i=typeof clearTimeout==`function`?clearTimeout:o}catch{i=o}})();function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch{try{return r.call(null,e,0)}catch{return r.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}var l=[],u=!1,d,f=-1;function p(){!u||!d||(u=!1,d.length?l=d.concat(l):f=-1,l.length&&m())}function m(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(d=l,l=[];++f<t;)d&&d[f].run();f=-1,t=l.length}d=null,u=!1,c(e)}}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),l.length===1&&!u&&s(m)};function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)},n.title=`browser`,n.browser=!0,n.env={},n.argv=[],n.version=``,n.versions={};function g(){}n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw Error(`process.binding is not supported`)},n.cwd=function(){return`/`},n.chdir=function(e){throw Error(`process.chdir is not supported`)},n.umask=function(){return 0}})),o=i(),s=e(a());const c=()=>{self.addEventListener(`unhandledrejection`,e=>{throw Error(e.reason)})};globalThis.process=s.default,globalThis.Buffer=o.Buffer;const l=import(`./snarkjsWorkerLogic-DYQ1QKDc.js`);addEventListener(`message`,async e=>{let{onWorkerMessage:t}=await l;t(e.data)}),c();