{"version":3,"file":"Airdrop-dQmd5n3N.js","sources":["../../node_modules/@wagmi/core/dist/esm/query/signMessage.js","../../node_modules/wagmi/dist/esm/hooks/useSignMessage.js","../../src/assets/webp_converted/airdropTab.webp","../../src/contracts/ClaimableAirdrop.ts","../../src/components/Airdrop/NeedHelp.tsx","../../src/components/Airdrop/NoOnChainRewards.tsx","../../src/assets/webp_converted/airdropScreenshot.webp","../../src/components/Modals/Airdrop/ChangeAddress.tsx","../../src/components/Airdrop/OnChainRewards.tsx","../../node_modules/@mantine/styles/esm/theme/default-colors.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/font-styles/font-styles.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/focus-styles/focus-styles.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/theme-color/theme-color.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/gradient/get-gradient-color-stops/get-gradient-color-stops.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/gradient/gradient.js","../../node_modules/@mantine/styles/esm/theme/utils/rem/rem.js","../../node_modules/@mantine/styles/esm/theme/utils/get-size/get-size.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/breakpoints/breakpoints.js","../../node_modules/@mantine/styles/esm/theme/utils/to-rgba/to-rgba.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/rgba/rgba.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/cover/cover.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/darken/darken.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/lighten/lighten.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/radius/radius.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/variant/variant.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/primary-color/primary-color.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/hover/hover.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/placeholder-styles/placeholder-styles.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/dimmed/dimmed.js","../../node_modules/@mantine/styles/esm/theme/functions/fns/index.js","../../node_modules/@mantine/styles/esm/theme/functions/attach-functions.js","../../node_modules/@mantine/styles/esm/theme/default-theme.js","../../node_modules/@mantine/styles/esm/theme/MantineProvider.js","../../src/components/Airdrop/SyncingAirdrop.tsx","../../src/components/Airdrop/CheckHubAirdop.tsx","../../src/components/Airdrop/CompletedAirdrop.tsx","../../src/components/Airdrop/ErrorSyncingAirdrop.tsx","../../src/components/Airdrop/LinkDiscordAirdrop.tsx","../../src/components/Modals/Airdrop/ClaimAirdropModal.tsx","../../src/components/Airdrop/RewardsAirdrop.tsx","../../src/components/Airdrop/Airdrop.tsx"],"sourcesContent":["import { signMessage, } from '../actions/signMessage.js';\nexport function signMessageMutationOptions(config) {\n return {\n mutationFn(variables) {\n return signMessage(config, variables);\n },\n mutationKey: ['signMessage'],\n };\n}\n//# sourceMappingURL=signMessage.js.map","'use client';\nimport { useMutation } from '@tanstack/react-query';\nimport { signMessageMutationOptions, } from '@wagmi/core/query';\nimport { useConfig } from './useConfig.js';\n/** https://wagmi.sh/react/api/hooks/useSignMessage */\nexport function useSignMessage(parameters = {}) {\n const { mutation } = parameters;\n const config = useConfig(parameters);\n const mutationOptions = signMessageMutationOptions(config);\n const { mutate, mutateAsync, ...result } = useMutation({\n ...mutation,\n ...mutationOptions,\n });\n return {\n ...result,\n signMessage: mutate,\n signMessageAsync: mutateAsync,\n };\n}\n//# sourceMappingURL=useSignMessage.js.map","export default \"__VITE_ASSET__CYE$PGE3__\"","const abi = [\n {\n inputs: [\n {\n internalType: 'contract IERC20',\n name: '_rewardToken',\n type: 'address',\n },\n {\n internalType: 'address',\n name: 'initialOwner',\n type: 'address',\n },\n ],\n stateMutability: 'nonpayable',\n type: 'constructor',\n },\n {\n inputs: [],\n name: 'AccessControlBadConfirmation',\n type: 'error',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n internalType: 'bytes32',\n name: 'neededRole',\n type: 'bytes32',\n },\n ],\n name: 'AccessControlUnauthorizedAccount',\n type: 'error',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'target',\n type: 'address',\n },\n ],\n name: 'AddressEmptyCode',\n type: 'error',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n ],\n name: 'AddressInsufficientBalance',\n type: 'error',\n },\n {\n inputs: [],\n name: 'FailedInnerCall',\n type: 'error',\n },\n {\n inputs: [\n {\n internalType: 'string',\n name: 'msg',\n type: 'string',\n },\n {\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n {\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n {\n internalType: 'bytes32[]',\n name: 'proof',\n type: 'bytes32[]',\n },\n ],\n name: 'InvalidClaim',\n type: 'error',\n },\n {\n inputs: [\n {\n internalType: 'string',\n name: 'msg',\n type: 'string',\n },\n {\n internalType: 'bytes32',\n name: 'hash',\n type: 'bytes32',\n },\n {\n internalType: 'bytes32',\n name: 'preNode',\n type: 'bytes32',\n },\n {\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n ],\n name: 'InvalidRecipient',\n type: 'error',\n },\n {\n inputs: [],\n name: 'ReentrancyGuardReentrantCall',\n type: 'error',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'token',\n type: 'address',\n },\n ],\n name: 'SafeERC20FailedOperation',\n type: 'error',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'recipient',\n type: 'address',\n },\n ],\n name: 'AddressLinked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'expiration',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'bool',\n name: 'revocable',\n type: 'bool',\n },\n {\n indexed: false,\n internalType: 'uint8',\n name: 'drips',\n type: 'uint8',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'subsidy',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'bytes32',\n name: 'merkleRoot',\n type: 'bytes32',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'initialAllocation',\n type: 'uint256',\n },\n ],\n name: 'AirdropCreated',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'newExpiration',\n type: 'uint256',\n },\n ],\n name: 'AirdropExtended',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'AirdropLocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'AirdropPaused',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'AirdropUnlocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'AirdropUnpaused',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'allocation',\n type: 'uint256',\n },\n ],\n name: 'AllocationUpdated',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'L1Received',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'recipient',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'L1Withdrawn',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'recipient',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'RewardClaimed',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'numRewards',\n type: 'uint256',\n },\n ],\n name: 'RewardCountUpdated',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'totalAmount',\n type: 'uint256',\n },\n ],\n name: 'RewardRevoked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'totalAmount',\n type: 'uint256',\n },\n ],\n name: 'RewardUnrevoked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'previousAdminRole',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'newAdminRole',\n type: 'bytes32',\n },\n ],\n name: 'RoleAdminChanged',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n ],\n name: 'RoleGranted',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n ],\n name: 'RoleRevoked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'token',\n type: 'address',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'recipient',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'TokensWithdrawn',\n type: 'event',\n },\n {\n inputs: [],\n name: 'BOT_ROLE',\n outputs: [\n {\n internalType: 'bytes32',\n name: '',\n type: 'bytes32',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'DEFAULT_ADMIN_ROLE',\n outputs: [\n {\n internalType: 'bytes32',\n name: '',\n type: 'bytes32',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'MANAGER_ROLE',\n outputs: [\n {\n internalType: 'bytes32',\n name: '',\n type: 'bytes32',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'OWNER_ROLE',\n outputs: [\n {\n internalType: 'bytes32',\n name: '',\n type: 'bytes32',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n name: 'activeAirdrops',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'botAddress',\n type: 'address',\n },\n ],\n name: 'addBot',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'managerAddress',\n type: 'address',\n },\n ],\n name: 'addManager',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'ownerAddress',\n type: 'address',\n },\n ],\n name: 'addOwner',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n name: 'airdrops',\n outputs: [\n {\n components: [\n {\n internalType: 'bool',\n name: 'revocable',\n type: 'bool',\n },\n {\n internalType: 'bool',\n name: 'paused',\n type: 'bool',\n },\n {\n internalType: 'bool',\n name: 'locked',\n type: 'bool',\n },\n {\n internalType: 'uint8',\n name: 'drips',\n type: 'uint8',\n },\n {\n internalType: 'uint256',\n name: 'numRewards',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'subsidy',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'expiration',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'allocation',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'amountClaimed',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'amountSubsidized',\n type: 'uint256',\n },\n {\n internalType: 'bytes32',\n name: 'merkleRoot',\n type: 'bytes32',\n },\n ],\n internalType: 'struct ClaimableAirdrop.Status',\n name: 'status',\n type: 'tuple',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256[]',\n name: 'airdropIds',\n type: 'uint256[]',\n },\n {\n internalType: 'bytes32[]',\n name: 'nodes',\n type: 'bytes32[]',\n },\n {\n internalType: 'uint256[]',\n name: 'amounts',\n type: 'uint256[]',\n },\n {\n internalType: 'bytes32[][]',\n name: 'proofs',\n type: 'bytes32[][]',\n },\n ],\n name: 'claimMyRewards',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'expiration',\n type: 'uint256',\n },\n {\n internalType: 'bool',\n name: 'revocable',\n type: 'bool',\n },\n {\n internalType: 'uint256',\n name: 'subsidy',\n type: 'uint256',\n },\n {\n internalType: 'uint8',\n name: 'drips',\n type: 'uint8',\n },\n {\n internalType: 'uint256',\n name: 'numRewards',\n type: 'uint256',\n },\n {\n internalType: 'bytes32',\n name: 'merkleRoot',\n type: 'bytes32',\n },\n {\n internalType: 'uint256',\n name: 'allocation',\n type: 'uint256',\n },\n ],\n name: 'createAirdrop',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'expiration',\n type: 'uint256',\n },\n ],\n name: 'extendAirdrop',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getActiveAirdrops',\n outputs: [\n {\n internalType: 'uint256[]',\n name: '',\n type: 'uint256[]',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'getAirdropStatus',\n outputs: [\n {\n components: [\n {\n internalType: 'bool',\n name: 'revocable',\n type: 'bool',\n },\n {\n internalType: 'bool',\n name: 'paused',\n type: 'bool',\n },\n {\n internalType: 'bool',\n name: 'locked',\n type: 'bool',\n },\n {\n internalType: 'uint8',\n name: 'drips',\n type: 'uint8',\n },\n {\n internalType: 'uint256',\n name: 'numRewards',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'subsidy',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'expiration',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'allocation',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'amountClaimed',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'amountSubsidized',\n type: 'uint256',\n },\n {\n internalType: 'bytes32',\n name: 'merkleRoot',\n type: 'bytes32',\n },\n ],\n internalType: 'struct ClaimableAirdrop.Status',\n name: '',\n type: 'tuple',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n ],\n name: 'getLinkedAddress',\n outputs: [\n {\n internalType: 'address',\n name: '',\n type: 'address',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'recipient',\n type: 'address',\n },\n ],\n name: 'getLinkedRewards',\n outputs: [\n {\n internalType: 'uint256[]',\n name: '',\n type: 'uint256[]',\n },\n {\n internalType: 'bytes32[]',\n name: '',\n type: 'bytes32[]',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256[]',\n name: 'airdropIds',\n type: 'uint256[]',\n },\n {\n internalType: 'bytes32[]',\n name: 'nodes',\n type: 'bytes32[]',\n },\n ],\n name: 'getRewardStatuses',\n outputs: [\n {\n components: [\n {\n internalType: 'bool',\n name: 'claimed',\n type: 'bool',\n },\n {\n internalType: 'bool',\n name: 'revoked',\n type: 'bool',\n },\n {\n internalType: 'uint256',\n name: 'subsidyReceived',\n type: 'uint256',\n },\n {\n internalType: 'address payable',\n name: 'linkedAddress',\n type: 'address',\n },\n ],\n internalType: 'struct ClaimableAirdrop.Reward[]',\n name: '',\n type: 'tuple[]',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n ],\n name: 'getRoleAdmin',\n outputs: [\n {\n internalType: 'bytes32',\n name: '',\n type: 'bytes32',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n internalType: 'uint256',\n name: 'index',\n type: 'uint256',\n },\n ],\n name: 'getRoleMember',\n outputs: [\n {\n internalType: 'address',\n name: '',\n type: 'address',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n ],\n name: 'getRoleMemberCount',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getWithdrawableEther',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getWithdrawableRewardTokens',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n ],\n name: 'grantRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n ],\n name: 'hasRole',\n outputs: [\n {\n internalType: 'bool',\n name: '',\n type: 'bool',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'lastAirdropId',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n internalType: 'bytes32',\n name: 'node',\n type: 'bytes32',\n },\n {\n internalType: 'address payable',\n name: 'recipient',\n type: 'address',\n },\n ],\n name: 'linkAddress',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'lockAirdrop',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'lockAllExpired',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'botAddress',\n type: 'address',\n },\n ],\n name: 'removeBot',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'managerAddress',\n type: 'address',\n },\n ],\n name: 'removeManager',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'ownerAddress',\n type: 'address',\n },\n ],\n name: 'removeOwner',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n internalType: 'address',\n name: 'callerConfirmation',\n type: 'address',\n },\n ],\n name: 'renounceRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n internalType: 'bytes32[]',\n name: 'recipientHashes',\n type: 'bytes32[]',\n },\n {\n internalType: 'uint256[]',\n name: 'amounts',\n type: 'uint256[]',\n },\n {\n internalType: 'bytes32[][]',\n name: 'proofs',\n type: 'bytes32[][]',\n },\n ],\n name: 'revokeRewards',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes32',\n name: 'role',\n type: 'bytes32',\n },\n {\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n ],\n name: 'revokeRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'rewardToken',\n outputs: [\n {\n internalType: 'contract IERC20',\n name: '',\n type: 'address',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'newAllocation',\n type: 'uint256',\n },\n ],\n name: 'setAllocation',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'newNumRewards',\n type: 'uint256',\n },\n ],\n name: 'setNumRewards',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'bytes4',\n name: 'interfaceId',\n type: 'bytes4',\n },\n ],\n name: 'supportsInterface',\n outputs: [\n {\n internalType: 'bool',\n name: '',\n type: 'bool',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'totalAllocation',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'totalClaimed',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'totalSubsidized',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'totalSubsidy',\n outputs: [\n {\n internalType: 'uint256',\n name: '',\n type: 'uint256',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'unlockAirdrop',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n ],\n name: 'unpauseAirdrop',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'airdropId',\n type: 'uint256',\n },\n {\n internalType: 'bytes32[]',\n name: 'recipientHashes',\n type: 'bytes32[]',\n },\n {\n internalType: 'uint256[]',\n name: 'amounts',\n type: 'uint256[]',\n },\n ],\n name: 'unrevokeRewards',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'ownerAddress',\n type: 'address',\n },\n ],\n name: 'withdrawAllEther',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'ownerAddress',\n type: 'address',\n },\n {\n internalType: 'uint256',\n name: '_amount',\n type: 'uint256',\n },\n ],\n name: 'withdrawEther',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: 'recipient',\n type: 'address',\n },\n {\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'withdrawRewardTokens',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'contract IERC20',\n name: 'token',\n type: 'address',\n },\n {\n internalType: 'address',\n name: 'ownerAddress',\n type: 'address',\n },\n {\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'withdrawTokens',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n stateMutability: 'payable',\n type: 'receive',\n },\n] as const\n\nexport default abi\n","import { List, Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { useMediaQuery } from '@mantine/hooks'\nimport React, { useCallback, useState } from 'react'\nimport { Trans, useTranslation } from 'react-i18next'\n\nimport useNetworkType from '@/hooks/useNetworkType'\nimport { useAuth } from '@/plugins/auth'\nimport { REPORT_BUG } from '@/utils/utils'\n\nimport AddressDisplay from '../User/AddressDisplay'\nimport { ToggleDetails } from './StartAirdrop'\nimport { AIRDROP_APPEAL_FORM } from './utils'\n\ninterface NeedHelpProps {\n bot?: boolean\n assistance?: boolean\n address?: boolean\n review?: boolean\n onChainRewards?: boolean\n}\n\ninterface NeedHelpType {\n bot: boolean\n assistance: boolean\n address: boolean\n review: boolean\n onChainRewards: boolean\n}\n\nconst NeedHelp: React.FC = ({\n bot = false,\n assistance = false,\n address = false,\n review = false,\n onChainRewards = false,\n}) => {\n const { t } = useTranslation()\n const theme = useMantineTheme()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n const { isBetanet } = useNetworkType()\n const { address: myAddress } = useAuth()\n const [openMore, setOpenMore] = useState({\n bot: false,\n assistance: false,\n address: false,\n review: false,\n onChainRewards: false,\n })\n\n const toggleOpenMore = useCallback((key: keyof typeof openMore) => {\n setOpenMore(prev => ({ ...prev, [key]: !prev[key] }))\n }, [])\n\n if (!bot && !assistance && !address && !review && !onChainRewards) {\n return null\n }\n\n return (\n \n {t('components.airdrop.help', 'Need Help?')}\n {bot && (\n toggleOpenMore('bot')}\n open={openMore.bot}\n >\n \n \n \n {t(\n 'components.airdrop.interactInstructionsSteps1',\n 'Read the instructions, then submit the command ‘/airdrop’ into the channel. Wait a moment. Let the bot populate into your command line, and then press enter.'\n )}\n \n \n \n \n {t(\n 'components.airdrop.interactInstructionsStep2',\n 'If properly typed, inputting this command will pull up a new bot modal you can click on and interact with to find your rewards, link your Discord/community rewards to your Mainnet Hub account, transfer your platform rewards from Betanet over to a new account, and begin the claim process that will be transferred over to the Hub.'\n )}\n \n \n \n \n )}\n {assistance && (\n toggleOpenMore('assistance')}\n open={openMore.assistance}\n >\n \n \n For live assistance, send a message to our moderators on the{' '}\n \n #airdrop-support\n {' '}\n channel on Discord.\n \n \n \n \n You can also submit an error report via the feedback form{' '}\n \n here\n \n .\n \n \n \n )}\n {address && (\n toggleOpenMore('address')}\n open={openMore.address}\n >\n \n {t(\n 'components.airdrop.address.description',\n 'Make sure you’re claiming your rewards with the Mainnet account(s) you were most active on from April 26-October 24, 2024. Note that this airdrop is not designed to reward Betanet or Testnet activity.'\n )}\n \n \n )}\n {review && (\n toggleOpenMore('review')}\n open={openMore.review}\n >\n \n \n If you believe that your airdrop is not right based on your past activity, you can{' '}\n \n request a review\n {' '}\n of your airdrop allocation. Airdrop Appeals will be reviewed by the LAMINA1 core team\n throughout the airdrop claim period.\n \n \n \n )}\n {onChainRewards && !isBetanet && (\n toggleOpenMore('onChainRewards')}\n open={openMore.onChainRewards}\n >\n \n \n )}\n \n )\n}\n\nexport default NeedHelp\n","import { Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { useMediaQuery } from '@mantine/hooks'\nimport React from 'react'\nimport { useTranslation } from 'react-i18next'\n\nimport useNetworkType from '@/hooks/useNetworkType'\nimport { useAuth } from '@/plugins/auth'\n\nimport RootButton from '../Buttons/RootButton'\nimport NeedHelp from './NeedHelp'\n\ninterface NoOnChainRewardsProps {\n nextStep: () => void\n}\n\nconst NoOnChainRewards: React.FC = ({ nextStep }) => {\n const theme = useMantineTheme()\n const { disconnect } = useAuth()\n const { t } = useTranslation()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n const { isBetanet } = useNetworkType()\n return (\n \n \n {t(\n 'components.airdrop.noRewards2',\n 'Sorry. No platform rewards are linked to your account'\n )}\n \n \n \n {isBetanet\n ? t(\n 'components.airdrop.noActivityBetanet',\n 'This account does not have any activity on it prior to the platform rewards cutoff date of April 18, 2024. Try signing in to Betanet with a different login method to find more active accounts.'\n )\n : t(\n 'components.airdrop.noActivity',\n 'This account doesn’t have any on-chain or Telegram activity linked to it during the airdrop eligibility window from April 26-October 24, 2024. Try signing in with a different login method to find more active accounts, or select “Check Discord” to continue and see if you’re eligible for community rewards.'\n )}\n \n \n {isBetanet ? (\n \n {t('buttons.checkAnotherAccount', 'Check Another Account')}\n \n ) : (\n \n {t('buttons.checkDiscord', 'Check Discord')}\n \n )}\n \n {!isBetanet && }\n \n \n )\n}\n\nexport default NoOnChainRewards\n","export default \"__VITE_ASSET__D1UB2Jv7__\"","import { Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { IconCheck, IconCopy } from '@tabler/icons-react'\nimport React, { useCallback, useEffect, useMemo, useState } from 'react'\nimport { Trans, useTranslation } from 'react-i18next'\nimport { hashMessage, isAddress } from 'viem'\nimport { useSignMessage } from 'wagmi'\n\nimport airdropScreenshot from '@/assets/webp_converted/airdropScreenshot.webp'\nimport NeedHelp from '@/components/Airdrop/NeedHelp'\nimport { AirdropRecipient, DISCORD_AIRDROP } from '@/components/Airdrop/utils'\nimport { callbackCopyMessage } from '@/components/Buttons/CopyButton'\nimport RootButton from '@/components/Buttons/RootButton'\nimport ErrorMessage from '@/components/ErrorMessage'\nimport Loading from '@/components/Loading'\nimport SpecialInputTile from '@/components/SpecialInputTile'\nimport useCopyClipboard from '@/hooks/useCopyToClipboard'\nimport useSessionStorage from '@/hooks/useSessionStorage'\nimport { useAuth } from '@/plugins/auth'\n\nimport classes from '../../Transfer/Send.module.css'\n\nconst ConfirmedChange: React.FC<{\n setEnteredDiscord: (value: boolean) => void\n}> = ({ setEnteredDiscord }) => {\n const { t } = useTranslation()\n const theme = useMantineTheme()\n const { disconnect } = useAuth()\n return (\n \n \n {t(\n 'components.airdrop.modal.confirmation',\n 'Once you’ve received this confirmation from the Airdrop bot, log out of the LAMINA1 Hub and log in with the address you transferred your rewards to. Then complete the claim process by going to the Airdrop tab on that account.'\n )}\n \n \"discord-screenshot\"\n \n setEnteredDiscord(false)}>\n {t('buttons.back', 'Back')}\n \n \n {t('buttons.logout', 'Logout')}\n \n \n \n \n )\n}\n\ninterface SignedChangeAddressProps {\n setEnteredDiscord: (value: boolean) => void\n discordMessage: string\n}\n\nconst SignedChangeAddress: React.FC = ({\n setEnteredDiscord,\n discordMessage,\n}) => {\n const { t } = useTranslation()\n const theme = useMantineTheme()\n const [isCopied, staticCopy] = useCopyClipboard()\n const [enableGoToDiscord, setEnableGoToDiscord] = useState(false)\n\n useEffect(() => {\n if (isCopied) {\n setEnableGoToDiscord(true)\n }\n }, [isCopied])\n\n const handleGoToDiscord = useCallback(() => {\n setEnteredDiscord(true)\n window.open(DISCORD_AIRDROP, '_blank')\n }, [])\n return (\n \n \n \n Here’s your signed transfer request. Copy it. Then go to the Airdrop bot on the{' '}\n \n #adb-airdrop channel\n {' '}\n on Discord, click the “Forward Platform Rewards” button, and paste this message into the\n command line. Do this for every account you’d like to transfer your rewards from, then hit\n “Submit Claim to Mainnet Hub” before returning back to this flow.\n \n \n \n \n \n {discordMessage}\n \n \n \n \n : }\n onClick={() => {\n staticCopy(discordMessage, classes, theme, callbackCopyMessage(t))\n }}\n secondary\n style1={false}\n expand\n >\n {isCopied ? t('buttons.copied', 'Copied') : t('buttons.copy', 'Copy')}\n \n \n {t('buttons.goToDiscord', 'Go To Discord')}\n \n \n \n )\n}\n\ninterface ChangeAddressProps {\n enteredDiscord: boolean\n setEnteredDiscord: (value: boolean) => void\n}\n\nconst ChangeAddress: React.FC = ({ enteredDiscord, setEnteredDiscord }) => {\n const { t } = useTranslation()\n const theme = useMantineTheme()\n const { address } = useAuth()\n const [changeAddress, setChangeAddress] = useState('')\n const [touched, setTouched] = useState(false)\n // signature\n const { data: signature, error: errorSigning, status, signMessage } = useSignMessage()\n const isLoading = useMemo(() => status === 'pending', [status])\n const [rewards] = useSessionStorage(`addressRewards-${address}`, [])\n\n const msg = useMemo(\n () =>\n JSON.stringify({\n rewards: rewards.map(reward => ({\n airdropId: reward.AirdropID,\n nodeId: reward.NodeID,\n })),\n original_address: address,\n new_address: changeAddress,\n }),\n [address, changeAddress, rewards]\n )\n\n const msgHash = useMemo(() => hashMessage(msg), [msg])\n\n const discordMessage = useMemo(\n () => JSON.stringify({ message: msg, msg_hash: msgHash, signature }),\n [msg, msgHash, signature]\n )\n\n const rejectedSigning = errorSigning?.message.includes('User rejected the request')\n\n const handleChangingAddress = useCallback((e: any) => {\n setTouched(true)\n setChangeAddress(e.target.value)\n }, [])\n return (\n <>\n {!signature && (\n \n \n {t(\n 'components.airdrop.modal.didYouSignRequest',\n 'Sign request to transfer airdrop reward to a new address?'\n )}\n \n \n {t('components.airdrop.modal.inputAddress', 'Input Mainnet Address')}\n \n \n \n {t(\n 'components.airdrop.modal.agree',\n 'By clicking sign, you agree to forward all the platform rewards from this account to the above Mainnet address. You attest that this address is your address, or an address you trust. '\n )}\n \n \n {t(\n 'components.airdrop.modal.scam',\n 'Be wary of scams asking you to input their address into this field for rewards eligibility or bonuses. The LAMINA1 core team will never ask you to input an address here that is not your own.'\n )}\n \n {isLoading ? (\n \n ) : (\n \n signMessage({ message: msg })}\n disabled={!isAddress(changeAddress)}\n >\n {t('buttons.sign', 'Sign')}\n \n \n )}\n {rejectedSigning && (\n \n )}\n {errorSigning && !rejectedSigning && (\n \n )}\n \n )}\n\n {signature &&\n (enteredDiscord ? (\n \n ) : (\n \n ))}\n \n )\n}\n\nexport default ChangeAddress\n","import { Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { useDisclosure, useMediaQuery } from '@mantine/hooks'\nimport React, { useCallback, useState } from 'react'\nimport { Trans, useTranslation } from 'react-i18next'\n\nimport { NATIVE_CHAIN_LAUNCH_TICKER } from '@/constants/blockchain'\nimport useNetworkType from '@/hooks/useNetworkType'\nimport { useAuth } from '@/plugins/auth'\nimport { ProcessedBalance } from '@/utils/utils'\n\nimport RootButton from '../Buttons/RootButton'\nimport ChangeAddress from '../Modals/Airdrop/ChangeAddress'\nimport ModalSkeleton from '../Modals/ModalSkeleton'\nimport TooltipTitle from '../TooltipTitle'\nimport AddressDisplay from '../User/AddressDisplay'\n\ninterface OnChainRewardsProps {\n totalRewardAmount: ProcessedBalance\n nextStep: () => void\n}\n\nconst OnChainRewards: React.FC = ({ totalRewardAmount, nextStep }) => {\n const theme = useMantineTheme()\n const { t } = useTranslation()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n const { address, disconnect } = useAuth()\n const [opened, { open, close }] = useDisclosure()\n const { isBetanet } = useNetworkType()\n\n // entered discord through change address flow\n const [enteredDiscord, setEnteredDiscord] = useState(false)\n\n const goToMainnet = useCallback(() => {\n if (disconnect) {\n disconnect()\n }\n window.open('https://lamina1.com', '_target')\n }, [disconnect])\n\n return (\n <>\n \n \n {t('components.airdrop.rewards', 'Congrats! Platform rewards are linked to your account')}\n \n \n {t(\n 'components.airdrop.redeemLl1',\n 'You’re eligible to claim the following Launch L1 (LL1) rewards tokens based on your activity in Mainnet.'\n )}\n \n \n \n \n {totalRewardAmount.display} {NATIVE_CHAIN_LAUNCH_TICKER}\n \n \n \n \n Make sure this is the address you'd like your rewards sent to before\n continuing in the flow.\n \n
\n \n If you have multiple LAMINA1 addresses, you can forward the account these rewards\n are sent to by selecting "Change Airdrop Address" below.\n \n
\n \n Otherwise, continue on by selecting "Keep Address" below.\n \n \n ) : (\n \n \n LAMINA1 community members can keep their address the same across Betanet and\n Mainnet by signing in to lamina1.com with the\n same email, social sign in, or wallet they used for their Betanet account.\n \n
\n \n If these addresses match, your Airdrop rewards will be automatically forwarded to\n your Mainnet account. If they don't, or if you have multiple Betanet accounts\n you'd like to forward to your new Mainnet account, you can transfer your\n rewards by selecting "Change Address" below.\n \n
\n )\n }\n />\n \n\n \n {!isBetanet ? (\n \n \n \n {t('components.airdrop.notPrimary', 'This is Not My Primary Account')}\n \n \n {t(\n 'components.airdrop.notPrimaryDescription',\n 'If you want to change the address your platform rewards are forwarded to, select this option.'\n )}\n \n \n \n \n {t('buttons.changeAddress', 'Change Address')}\n \n \n \n ) : (\n \n \n \n {t('components.airdrop.betanetMatch', 'Betanet Matches Mainnet')}\n \n \n {t(\n 'components.airdrop.betanetMatchDescription',\n 'If this the same address you have on the LAMINA1 Mainnet and it’s your only Betanet address, claim your rewards by going to the Mainnet Hub.'\n )}\n \n \n \n \n {t('buttons.goToMainnet', 'Go To Mainnet')}\n \n \n \n )}\n {!isBetanet ? (\n \n \n \n {t('components.airdrop.primary', 'This is My Primary Account')}\n \n \n {t(\n 'components.airdrop.primaryDescription',\n 'If this is the primary account with which you would like to claim your platform rewards, continue below.'\n )}\n \n \n \n \n {t('buttons.keepAddress', 'Keep Address')}\n \n \n \n ) : (\n \n \n \n {t('components.airdrop.betanetDif', 'Betanet is Different to Mainnet')}\n \n \n {t(\n 'components.airdrop.betanetDifDescription',\n 'If this address is different to the one you have on Mainnet, or you’d like to change the account your rewards are forwarded to, select Change Address.'\n )}\n \n \n \n \n {t('buttons.changeAddress', 'Change Address')}\n \n \n \n )}\n \n \n \n \n \n \n )\n}\n\nexport default OnChainRewards\n","const DEFAULT_COLORS = {\n dark: [\n \"#C1C2C5\",\n \"#A6A7AB\",\n \"#909296\",\n \"#5c5f66\",\n \"#373A40\",\n \"#2C2E33\",\n \"#25262b\",\n \"#1A1B1E\",\n \"#141517\",\n \"#101113\"\n ],\n gray: [\n \"#f8f9fa\",\n \"#f1f3f5\",\n \"#e9ecef\",\n \"#dee2e6\",\n \"#ced4da\",\n \"#adb5bd\",\n \"#868e96\",\n \"#495057\",\n \"#343a40\",\n \"#212529\"\n ],\n red: [\n \"#fff5f5\",\n \"#ffe3e3\",\n \"#ffc9c9\",\n \"#ffa8a8\",\n \"#ff8787\",\n \"#ff6b6b\",\n \"#fa5252\",\n \"#f03e3e\",\n \"#e03131\",\n \"#c92a2a\"\n ],\n pink: [\n \"#fff0f6\",\n \"#ffdeeb\",\n \"#fcc2d7\",\n \"#faa2c1\",\n \"#f783ac\",\n \"#f06595\",\n \"#e64980\",\n \"#d6336c\",\n \"#c2255c\",\n \"#a61e4d\"\n ],\n grape: [\n \"#f8f0fc\",\n \"#f3d9fa\",\n \"#eebefa\",\n \"#e599f7\",\n \"#da77f2\",\n \"#cc5de8\",\n \"#be4bdb\",\n \"#ae3ec9\",\n \"#9c36b5\",\n \"#862e9c\"\n ],\n violet: [\n \"#f3f0ff\",\n \"#e5dbff\",\n \"#d0bfff\",\n \"#b197fc\",\n \"#9775fa\",\n \"#845ef7\",\n \"#7950f2\",\n \"#7048e8\",\n \"#6741d9\",\n \"#5f3dc4\"\n ],\n indigo: [\n \"#edf2ff\",\n \"#dbe4ff\",\n \"#bac8ff\",\n \"#91a7ff\",\n \"#748ffc\",\n \"#5c7cfa\",\n \"#4c6ef5\",\n \"#4263eb\",\n \"#3b5bdb\",\n \"#364fc7\"\n ],\n blue: [\n \"#e7f5ff\",\n \"#d0ebff\",\n \"#a5d8ff\",\n \"#74c0fc\",\n \"#4dabf7\",\n \"#339af0\",\n \"#228be6\",\n \"#1c7ed6\",\n \"#1971c2\",\n \"#1864ab\"\n ],\n cyan: [\n \"#e3fafc\",\n \"#c5f6fa\",\n \"#99e9f2\",\n \"#66d9e8\",\n \"#3bc9db\",\n \"#22b8cf\",\n \"#15aabf\",\n \"#1098ad\",\n \"#0c8599\",\n \"#0b7285\"\n ],\n teal: [\n \"#e6fcf5\",\n \"#c3fae8\",\n \"#96f2d7\",\n \"#63e6be\",\n \"#38d9a9\",\n \"#20c997\",\n \"#12b886\",\n \"#0ca678\",\n \"#099268\",\n \"#087f5b\"\n ],\n green: [\n \"#ebfbee\",\n \"#d3f9d8\",\n \"#b2f2bb\",\n \"#8ce99a\",\n \"#69db7c\",\n \"#51cf66\",\n \"#40c057\",\n \"#37b24d\",\n \"#2f9e44\",\n \"#2b8a3e\"\n ],\n lime: [\n \"#f4fce3\",\n \"#e9fac8\",\n \"#d8f5a2\",\n \"#c0eb75\",\n \"#a9e34b\",\n \"#94d82d\",\n \"#82c91e\",\n \"#74b816\",\n \"#66a80f\",\n \"#5c940d\"\n ],\n yellow: [\n \"#fff9db\",\n \"#fff3bf\",\n \"#ffec99\",\n \"#ffe066\",\n \"#ffd43b\",\n \"#fcc419\",\n \"#fab005\",\n \"#f59f00\",\n \"#f08c00\",\n \"#e67700\"\n ],\n orange: [\n \"#fff4e6\",\n \"#ffe8cc\",\n \"#ffd8a8\",\n \"#ffc078\",\n \"#ffa94d\",\n \"#ff922b\",\n \"#fd7e14\",\n \"#f76707\",\n \"#e8590c\",\n \"#d9480f\"\n ]\n};\n\nexport { DEFAULT_COLORS };\n//# sourceMappingURL=default-colors.js.map\n","function fontStyles(theme) {\n return () => ({ fontFamily: theme.fontFamily || \"sans-serif\" });\n}\n\nexport { fontStyles };\n//# sourceMappingURL=font-styles.js.map\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nfunction focusStyles(theme) {\n return (selector) => ({\n WebkitTapHighlightColor: \"transparent\",\n [selector || \"&:focus\"]: __spreadValues({}, theme.focusRing === \"always\" || theme.focusRing === \"auto\" ? theme.focusRingStyles.styles(theme) : theme.focusRingStyles.resetStyles(theme)),\n [selector ? selector.replace(\":focus\", \":focus:not(:focus-visible)\") : \"&:focus:not(:focus-visible)\"]: __spreadValues({}, theme.focusRing === \"auto\" || theme.focusRing === \"never\" ? theme.focusRingStyles.resetStyles(theme) : null)\n });\n}\n\nexport { focusStyles };\n//# sourceMappingURL=focus-styles.js.map\n","function primaryShade(theme) {\n return (colorScheme) => {\n if (typeof theme.primaryShade === \"number\") {\n return theme.primaryShade;\n }\n return theme.primaryShade[colorScheme || theme.colorScheme];\n };\n}\n\nexport { primaryShade };\n//# sourceMappingURL=primary-shade.js.map\n","import { primaryShade } from '../primary-shade/primary-shade.js';\n\nfunction themeColor(theme) {\n const getPrimaryShade = primaryShade(theme);\n return (color, shade, primaryFallback = true, useSplittedShade = true) => {\n if (typeof color === \"string\" && color.includes(\".\")) {\n const [splitterColor, _splittedShade] = color.split(\".\");\n const splittedShade = parseInt(_splittedShade, 10);\n if (splitterColor in theme.colors && splittedShade >= 0 && splittedShade < 10) {\n return theme.colors[splitterColor][typeof shade === \"number\" && !useSplittedShade ? shade : splittedShade];\n }\n }\n const _shade = typeof shade === \"number\" ? shade : getPrimaryShade();\n return color in theme.colors ? theme.colors[color][_shade] : primaryFallback ? theme.colors[theme.primaryColor][_shade] : color;\n };\n}\n\nexport { themeColor };\n//# sourceMappingURL=theme-color.js.map\n","function getGradientColorStops(colors) {\n let stops = \"\";\n for (let i = 1; i < colors.length - 1; i += 1) {\n stops += `${colors[i]} ${i / (colors.length - 1) * 100}%, `;\n }\n return `${colors[0]} 0%, ${stops}${colors[colors.length - 1]} 100%`;\n}\n\nexport { getGradientColorStops };\n//# sourceMappingURL=get-gradient-color-stops.js.map\n","import { themeColor } from '../theme-color/theme-color.js';\nimport { primaryShade } from '../primary-shade/primary-shade.js';\nimport { getGradientColorStops } from './get-gradient-color-stops/get-gradient-color-stops.js';\n\nfunction linearGradient(deg, ...colors) {\n return `linear-gradient(${deg}deg, ${getGradientColorStops(colors)})`;\n}\nfunction radialGradient(...colors) {\n return `radial-gradient(circle, ${getGradientColorStops(colors)})`;\n}\nfunction gradient(theme) {\n const getThemeColor = themeColor(theme);\n const getPrimaryShade = primaryShade(theme);\n return (payload) => {\n const merged = {\n from: (payload == null ? void 0 : payload.from) || theme.defaultGradient.from,\n to: (payload == null ? void 0 : payload.to) || theme.defaultGradient.to,\n deg: (payload == null ? void 0 : payload.deg) || theme.defaultGradient.deg\n };\n return `linear-gradient(${merged.deg}deg, ${getThemeColor(merged.from, getPrimaryShade(), false)} 0%, ${getThemeColor(merged.to, getPrimaryShade(), false)} 100%)`;\n };\n}\n\nexport { gradient, linearGradient, radialGradient };\n//# sourceMappingURL=gradient.js.map\n","function createConverter(units) {\n return (px) => {\n if (typeof px === \"number\") {\n return `${px / 16}${units}`;\n }\n if (typeof px === \"string\") {\n const replaced = px.replace(\"px\", \"\");\n if (!Number.isNaN(Number(replaced))) {\n return `${Number(replaced) / 16}${units}`;\n }\n }\n return px;\n };\n}\nconst rem = createConverter(\"rem\");\nconst em = createConverter(\"em\");\n\nexport { em, rem };\n//# sourceMappingURL=rem.js.map\n","import { em, rem } from '../rem/rem.js';\n\nfunction getSize({\n size,\n sizes,\n units\n}) {\n if (size in sizes) {\n return sizes[size];\n }\n if (typeof size === \"number\") {\n return units === \"em\" ? em(size) : rem(size);\n }\n return size || sizes.md;\n}\n\nexport { getSize };\n//# sourceMappingURL=get-size.js.map\n","import { em } from '../../../utils/rem/rem.js';\nimport { getSize } from '../../../utils/get-size/get-size.js';\n\nfunction getBreakpointValue(value) {\n if (typeof value === \"number\") {\n return value;\n }\n if (typeof value === \"string\" && value.includes(\"rem\")) {\n return Number(value.replace(\"rem\", \"\")) * 16;\n }\n if (typeof value === \"string\" && value.includes(\"em\")) {\n return Number(value.replace(\"em\", \"\")) * 16;\n }\n return Number(value);\n}\nfunction largerThan(theme) {\n return (breakpoint) => `@media (min-width: ${em(getBreakpointValue(getSize({ size: breakpoint, sizes: theme.breakpoints })))})`;\n}\nfunction smallerThan(theme) {\n return (breakpoint) => `@media (max-width: ${em(getBreakpointValue(getSize({ size: breakpoint, sizes: theme.breakpoints })) - 1)})`;\n}\n\nexport { getBreakpointValue, largerThan, smallerThan };\n//# sourceMappingURL=breakpoints.js.map\n","function isHexColor(hex) {\n const HEX_REGEXP = /^#?([0-9A-F]{3}){1,2}$/i;\n return HEX_REGEXP.test(hex);\n}\nfunction hexToRgba(color) {\n let hexString = color.replace(\"#\", \"\");\n if (hexString.length === 3) {\n const shorthandHex = hexString.split(\"\");\n hexString = [\n shorthandHex[0],\n shorthandHex[0],\n shorthandHex[1],\n shorthandHex[1],\n shorthandHex[2],\n shorthandHex[2]\n ].join(\"\");\n }\n const parsed = parseInt(hexString, 16);\n const r = parsed >> 16 & 255;\n const g = parsed >> 8 & 255;\n const b = parsed & 255;\n return {\n r,\n g,\n b,\n a: 1\n };\n}\nfunction rgbStringToRgba(color) {\n const [r, g, b, a] = color.replace(/[^0-9,.]/g, \"\").split(\",\").map(Number);\n return { r, g, b, a: a || 1 };\n}\nfunction toRgba(color) {\n if (isHexColor(color)) {\n return hexToRgba(color);\n }\n if (color.startsWith(\"rgb\")) {\n return rgbStringToRgba(color);\n }\n return {\n r: 0,\n g: 0,\n b: 0,\n a: 1\n };\n}\n\nexport { toRgba };\n//# sourceMappingURL=to-rgba.js.map\n","import { toRgba } from '../../../utils/to-rgba/to-rgba.js';\n\nfunction rgba(color, alpha) {\n if (typeof color !== \"string\" || alpha > 1 || alpha < 0) {\n return \"rgba(0, 0, 0, 1)\";\n }\n if (color.startsWith(\"var(--\")) {\n return color;\n }\n const { r, g, b } = toRgba(color);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n}\n\nexport { rgba };\n//# sourceMappingURL=rgba.js.map\n","import { rem } from '../../../utils/rem/rem.js';\n\nfunction cover(offset = 0) {\n return {\n position: \"absolute\",\n top: rem(offset),\n right: rem(offset),\n left: rem(offset),\n bottom: rem(offset)\n };\n}\n\nexport { cover };\n//# sourceMappingURL=cover.js.map\n","import { toRgba } from '../../../utils/to-rgba/to-rgba.js';\n\nfunction darken(color, alpha) {\n if (typeof color === \"string\" && color.startsWith(\"var(--\")) {\n return color;\n }\n const { r, g, b, a } = toRgba(color);\n const f = 1 - alpha;\n const dark = (input) => Math.round(input * f);\n return `rgba(${dark(r)}, ${dark(g)}, ${dark(b)}, ${a})`;\n}\n\nexport { darken };\n//# sourceMappingURL=darken.js.map\n","import { toRgba } from '../../../utils/to-rgba/to-rgba.js';\n\nfunction lighten(color, alpha) {\n if (typeof color === \"string\" && color.startsWith(\"var(--\")) {\n return color;\n }\n const { r, g, b, a } = toRgba(color);\n const light = (input) => Math.round(input + (255 - input) * alpha);\n return `rgba(${light(r)}, ${light(g)}, ${light(b)}, ${a})`;\n}\n\nexport { lighten };\n//# sourceMappingURL=lighten.js.map\n","import { rem } from '../../../utils/rem/rem.js';\n\nfunction radius(theme) {\n return (size) => {\n if (typeof size === \"number\") {\n return rem(size);\n }\n const defaultRadius = typeof theme.defaultRadius === \"number\" ? theme.defaultRadius : theme.radius[theme.defaultRadius] || theme.defaultRadius;\n return theme.radius[size] || size || defaultRadius;\n };\n}\n\nexport { radius };\n//# sourceMappingURL=radius.js.map\n","import { rgba } from '../rgba/rgba.js';\nimport { themeColor } from '../theme-color/theme-color.js';\nimport { primaryShade } from '../primary-shade/primary-shade.js';\nimport { gradient } from '../gradient/gradient.js';\n\nfunction getColorIndexInfo(color, theme) {\n if (typeof color === \"string\" && color.includes(\".\")) {\n const [splittedColor, _splittedShade] = color.split(\".\");\n const splittedShade = parseInt(_splittedShade, 10);\n if (splittedColor in theme.colors && splittedShade >= 0 && splittedShade < 10) {\n return { isSplittedColor: true, key: splittedColor, shade: splittedShade };\n }\n }\n return { isSplittedColor: false };\n}\nfunction variant(theme) {\n const getThemeColor = themeColor(theme);\n const getPrimaryShade = primaryShade(theme);\n const getGradient = gradient(theme);\n return ({ variant: variant2, color, gradient: gradient2, primaryFallback }) => {\n const colorInfo = getColorIndexInfo(color, theme);\n switch (variant2) {\n case \"light\": {\n return {\n border: \"transparent\",\n background: rgba(getThemeColor(color, theme.colorScheme === \"dark\" ? 8 : 0, primaryFallback, false), theme.colorScheme === \"dark\" ? 0.2 : 1),\n color: color === \"dark\" ? theme.colorScheme === \"dark\" ? theme.colors.dark[0] : theme.colors.dark[9] : getThemeColor(color, theme.colorScheme === \"dark\" ? 2 : getPrimaryShade(\"light\")),\n hover: rgba(getThemeColor(color, theme.colorScheme === \"dark\" ? 7 : 1, primaryFallback, false), theme.colorScheme === \"dark\" ? 0.25 : 0.65)\n };\n }\n case \"subtle\": {\n return {\n border: \"transparent\",\n background: \"transparent\",\n color: color === \"dark\" ? theme.colorScheme === \"dark\" ? theme.colors.dark[0] : theme.colors.dark[9] : getThemeColor(color, theme.colorScheme === \"dark\" ? 2 : getPrimaryShade(\"light\")),\n hover: rgba(getThemeColor(color, theme.colorScheme === \"dark\" ? 8 : 0, primaryFallback, false), theme.colorScheme === \"dark\" ? 0.2 : 1)\n };\n }\n case \"outline\": {\n return {\n border: getThemeColor(color, theme.colorScheme === \"dark\" ? 5 : getPrimaryShade(\"light\")),\n background: \"transparent\",\n color: getThemeColor(color, theme.colorScheme === \"dark\" ? 5 : getPrimaryShade(\"light\")),\n hover: theme.colorScheme === \"dark\" ? rgba(getThemeColor(color, 5, primaryFallback, false), 0.05) : rgba(getThemeColor(color, 0, primaryFallback, false), 0.35)\n };\n }\n case \"default\": {\n return {\n border: theme.colorScheme === \"dark\" ? theme.colors.dark[4] : theme.colors.gray[4],\n background: theme.colorScheme === \"dark\" ? theme.colors.dark[6] : theme.white,\n color: theme.colorScheme === \"dark\" ? theme.white : theme.black,\n hover: theme.colorScheme === \"dark\" ? theme.colors.dark[5] : theme.colors.gray[0]\n };\n }\n case \"white\": {\n return {\n border: \"transparent\",\n background: theme.white,\n color: getThemeColor(color, getPrimaryShade()),\n hover: null\n };\n }\n case \"transparent\": {\n return {\n border: \"transparent\",\n color: color === \"dark\" ? theme.colorScheme === \"dark\" ? theme.colors.dark[0] : theme.colors.dark[9] : getThemeColor(color, theme.colorScheme === \"dark\" ? 2 : getPrimaryShade(\"light\")),\n background: \"transparent\",\n hover: null\n };\n }\n case \"gradient\": {\n return {\n background: getGradient(gradient2),\n color: theme.white,\n border: \"transparent\",\n hover: null\n };\n }\n default: {\n const _primaryShade = getPrimaryShade();\n const _shade = colorInfo.isSplittedColor ? colorInfo.shade : _primaryShade;\n const _color = colorInfo.isSplittedColor ? colorInfo.key : color;\n return {\n border: \"transparent\",\n background: getThemeColor(_color, _shade, primaryFallback),\n color: theme.white,\n hover: getThemeColor(_color, _shade === 9 ? 8 : _shade + 1)\n };\n }\n }\n };\n}\n\nexport { variant };\n//# sourceMappingURL=variant.js.map\n","import { primaryShade } from '../primary-shade/primary-shade.js';\n\nfunction primaryColor(theme) {\n return (colorScheme) => {\n const shade = primaryShade(theme)(colorScheme);\n return theme.colors[theme.primaryColor][shade];\n };\n}\n\nexport { primaryColor };\n//# sourceMappingURL=primary-color.js.map\n","function hover(hoverStyle) {\n return {\n \"@media (hover: hover)\": {\n \"&:hover\": hoverStyle\n },\n \"@media (hover: none)\": {\n \"&:active\": hoverStyle\n }\n };\n}\n\nexport { hover };\n//# sourceMappingURL=hover.js.map\n","function placeholderStyles(theme) {\n return () => ({\n userSelect: \"none\",\n color: theme.colorScheme === \"dark\" ? theme.colors.dark[3] : theme.colors.gray[5]\n });\n}\n\nexport { placeholderStyles };\n//# sourceMappingURL=placeholder-styles.js.map\n","function dimmed(theme) {\n return () => theme.colorScheme === \"dark\" ? theme.colors.dark[2] : theme.colors.gray[6];\n}\n\nexport { dimmed };\n//# sourceMappingURL=dimmed.js.map\n","import { fontStyles } from './font-styles/font-styles.js';\nimport { focusStyles } from './focus-styles/focus-styles.js';\nimport { themeColor } from './theme-color/theme-color.js';\nimport { linearGradient, radialGradient, gradient } from './gradient/gradient.js';\nimport { smallerThan, largerThan } from './breakpoints/breakpoints.js';\nimport { rgba } from './rgba/rgba.js';\nimport { cover } from './cover/cover.js';\nimport { darken } from './darken/darken.js';\nimport { lighten } from './lighten/lighten.js';\nimport { radius } from './radius/radius.js';\nimport { variant } from './variant/variant.js';\nimport { primaryShade } from './primary-shade/primary-shade.js';\nimport { primaryColor } from './primary-color/primary-color.js';\nimport { hover } from './hover/hover.js';\nimport { placeholderStyles } from './placeholder-styles/placeholder-styles.js';\nimport { dimmed } from './dimmed/dimmed.js';\n\nconst fns = {\n fontStyles,\n themeColor,\n focusStyles,\n linearGradient,\n radialGradient,\n smallerThan,\n largerThan,\n rgba,\n cover,\n darken,\n lighten,\n radius,\n variant,\n primaryShade,\n hover,\n gradient,\n primaryColor,\n placeholderStyles,\n dimmed\n};\n\nexport { fns };\n//# sourceMappingURL=index.js.map\n","import { fns } from './fns/index.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nfunction attachFunctions(themeBase) {\n return __spreadProps(__spreadValues({}, themeBase), {\n fn: {\n fontStyles: fns.fontStyles(themeBase),\n themeColor: fns.themeColor(themeBase),\n focusStyles: fns.focusStyles(themeBase),\n largerThan: fns.largerThan(themeBase),\n smallerThan: fns.smallerThan(themeBase),\n radialGradient: fns.radialGradient,\n linearGradient: fns.linearGradient,\n gradient: fns.gradient(themeBase),\n rgba: fns.rgba,\n cover: fns.cover,\n lighten: fns.lighten,\n darken: fns.darken,\n primaryShade: fns.primaryShade(themeBase),\n radius: fns.radius(themeBase),\n variant: fns.variant(themeBase),\n hover: fns.hover,\n primaryColor: fns.primaryColor(themeBase),\n placeholderStyles: fns.placeholderStyles(themeBase),\n dimmed: fns.dimmed(themeBase)\n }\n });\n}\n\nexport { attachFunctions };\n//# sourceMappingURL=attach-functions.js.map\n","import { DEFAULT_COLORS } from './default-colors.js';\nimport { attachFunctions } from './functions/attach-functions.js';\n\nconst MANTINE_COLORS = Object.keys(DEFAULT_COLORS);\nconst MANTINE_SIZES = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"];\nconst _DEFAULT_THEME = {\n dir: \"ltr\",\n primaryShade: {\n light: 6,\n dark: 8\n },\n focusRing: \"auto\",\n loader: \"oval\",\n colorScheme: \"light\",\n white: \"#fff\",\n black: \"#000\",\n defaultRadius: \"sm\",\n transitionTimingFunction: \"ease\",\n colors: DEFAULT_COLORS,\n lineHeight: 1.55,\n fontFamily: \"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji\",\n fontFamilyMonospace: \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace\",\n primaryColor: \"blue\",\n respectReducedMotion: true,\n cursorType: \"default\",\n defaultGradient: {\n from: \"indigo\",\n to: \"cyan\",\n deg: 45\n },\n shadows: {\n xs: \"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1)\",\n sm: \"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 0.625rem 0.9375rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.4375rem 0.4375rem -0.3125rem\",\n md: \"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.25rem 1.5625rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.625rem 0.625rem -0.3125rem\",\n lg: \"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.75rem 1.4375rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 0.75rem 0.75rem -0.4375rem\",\n xl: \"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem\"\n },\n fontSizes: {\n xs: \"0.75rem\",\n sm: \"0.875rem\",\n md: \"1rem\",\n lg: \"1.125rem\",\n xl: \"1.25rem\"\n },\n radius: {\n xs: \"0.125rem\",\n sm: \"0.25rem\",\n md: \"0.5rem\",\n lg: \"1rem\",\n xl: \"2rem\"\n },\n spacing: {\n xs: \"0.625rem\",\n sm: \"0.75rem\",\n md: \"1rem\",\n lg: \"1.25rem\",\n xl: \"1.5rem\"\n },\n breakpoints: {\n xs: \"36em\",\n sm: \"48em\",\n md: \"62em\",\n lg: \"75em\",\n xl: \"88em\"\n },\n headings: {\n fontFamily: \"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji\",\n fontWeight: 700,\n sizes: {\n h1: { fontSize: \"2.125rem\", lineHeight: 1.3, fontWeight: void 0 },\n h2: { fontSize: \"1.625rem\", lineHeight: 1.35, fontWeight: void 0 },\n h3: { fontSize: \"1.375rem\", lineHeight: 1.4, fontWeight: void 0 },\n h4: { fontSize: \"1.125rem\", lineHeight: 1.45, fontWeight: void 0 },\n h5: { fontSize: \"1rem\", lineHeight: 1.5, fontWeight: void 0 },\n h6: { fontSize: \"0.875rem\", lineHeight: 1.5, fontWeight: void 0 }\n }\n },\n other: {},\n components: {},\n activeStyles: { transform: \"translateY(0.0625rem)\" },\n datesLocale: \"en\",\n globalStyles: void 0,\n focusRingStyles: {\n styles: (theme) => ({\n outlineOffset: \"0.125rem\",\n outline: `0.125rem solid ${theme.colors[theme.primaryColor][theme.colorScheme === \"dark\" ? 7 : 5]}`\n }),\n resetStyles: () => ({ outline: \"none\" }),\n inputStyles: (theme) => ({\n outline: \"none\",\n borderColor: theme.colors[theme.primaryColor][typeof theme.primaryShade === \"object\" ? theme.primaryShade[theme.colorScheme] : theme.primaryShade]\n })\n }\n};\nconst DEFAULT_THEME = attachFunctions(_DEFAULT_THEME);\n\nexport { DEFAULT_THEME, MANTINE_COLORS, MANTINE_SIZES, _DEFAULT_THEME };\n//# sourceMappingURL=default-theme.js.map\n","import React, { createContext, useContext } from 'react';\nimport { ThemeProvider, Global } from '@emotion/react';\nimport { DEFAULT_THEME } from './default-theme.js';\nimport { GlobalStyles } from './GlobalStyles.js';\nimport { MantineCssVariables } from './MantineCssVariables.js';\nimport { mergeThemeWithFunctions } from './utils/merge-theme/merge-theme.js';\nimport { filterProps } from './utils/filter-props/filter-props.js';\nimport { NormalizeCSS } from './NormalizeCSS.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nconst MantineProviderContext = createContext({\n theme: DEFAULT_THEME\n});\nfunction useMantineTheme() {\n var _a;\n return ((_a = useContext(MantineProviderContext)) == null ? void 0 : _a.theme) || DEFAULT_THEME;\n}\nfunction useMantineProviderStyles(component) {\n const theme = useMantineTheme();\n const getStyles = (name) => {\n var _a, _b, _c, _d;\n return {\n styles: ((_a = theme.components[name]) == null ? void 0 : _a.styles) || {},\n classNames: ((_b = theme.components[name]) == null ? void 0 : _b.classNames) || {},\n variants: (_c = theme.components[name]) == null ? void 0 : _c.variants,\n sizes: (_d = theme.components[name]) == null ? void 0 : _d.sizes\n };\n };\n if (Array.isArray(component)) {\n return component.map(getStyles);\n }\n return [getStyles(component)];\n}\nfunction useMantineEmotionCache() {\n var _a;\n return (_a = useContext(MantineProviderContext)) == null ? void 0 : _a.emotionCache;\n}\nfunction useComponentDefaultProps(component, defaultProps, props) {\n var _a;\n const theme = useMantineTheme();\n const contextPropsPayload = (_a = theme.components[component]) == null ? void 0 : _a.defaultProps;\n const contextProps = typeof contextPropsPayload === \"function\" ? contextPropsPayload(theme) : contextPropsPayload;\n return __spreadValues(__spreadValues(__spreadValues({}, defaultProps), contextProps), filterProps(props));\n}\nfunction MantineProvider({\n theme,\n emotionCache,\n withNormalizeCSS = false,\n withGlobalStyles = false,\n withCSSVariables = false,\n inherit = false,\n children\n}) {\n const ctx = useContext(MantineProviderContext);\n const mergedTheme = mergeThemeWithFunctions(DEFAULT_THEME, inherit ? __spreadValues(__spreadValues({}, ctx.theme), theme) : theme);\n return /* @__PURE__ */ React.createElement(ThemeProvider, {\n theme: mergedTheme\n }, /* @__PURE__ */ React.createElement(MantineProviderContext.Provider, {\n value: { theme: mergedTheme, emotionCache }\n }, withNormalizeCSS && /* @__PURE__ */ React.createElement(NormalizeCSS, null), withGlobalStyles && /* @__PURE__ */ React.createElement(GlobalStyles, {\n theme: mergedTheme\n }), withCSSVariables && /* @__PURE__ */ React.createElement(MantineCssVariables, {\n theme: mergedTheme\n }), typeof mergedTheme.globalStyles === \"function\" && /* @__PURE__ */ React.createElement(Global, {\n styles: mergedTheme.globalStyles(mergedTheme)\n }), children));\n}\nMantineProvider.displayName = \"@mantine/core/MantineProvider\";\n\nexport { MantineProvider, useComponentDefaultProps, useMantineEmotionCache, useMantineProviderStyles, useMantineTheme };\n//# sourceMappingURL=MantineProvider.js.map\n","import { Stack, Text, Title } from '@mantine/core'\nimport { useMediaQuery } from '@mantine/hooks'\nimport { useMantineTheme } from '@mantine/styles'\nimport React from 'react'\nimport { useTranslation } from 'react-i18next'\n\nimport RootButton from '../Buttons/RootButton'\nimport Loading from '../Loading'\n\ninterface SyncingAirdropProps {\n discord?: boolean\n back?: () => void\n}\n\nconst SyncingAirdrop: React.FC = ({ discord = false, back }) => {\n const theme = useMantineTheme()\n const { t } = useTranslation()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n return (\n \n \n {t('components.airdrop.interactLoading', 'Syncing with airdrop bot...')}\n \n \n {discord\n ? t(\n 'components.airdrop.loadingDescription',\n 'The airdrop bot is searching for activity on your linked LAMINA1 and Discord accounts. Be patient as it sends this information back to to Hub and tabulates your total rewards.'\n )\n : t(\n 'components.airdrop.loading',\n 'Checking for platform rewards linked to your account...'\n )}\n \n \n {discord && (\n \n \n {t('buttons.back', 'Back')}\n \n \n )}\n \n )\n}\n\nexport default SyncingAirdrop\n","import { Divider, Stack } from '@mantine/core'\nimport { readContract } from '@wagmi/core'\nimport { useEffect, useMemo, useState } from 'react'\n\nimport { AIRDROP_CONTRACT_ADDRESS } from '@/constants/blockchain'\nimport ClaimableAirdrop from '@/contracts/ClaimableAirdrop'\nimport useSessionStorage from '@/hooks/useSessionStorage'\nimport { useAuth } from '@/plugins/auth'\nimport { getWagmiConfig } from '@/plugins/auth/config'\nimport { processBalance } from '@/utils/utils'\n\nimport NoOnChainRewards from './NoOnChainRewards'\nimport OnChainRewards from './OnChainRewards'\nimport SyncingAirdrop from './SyncingAirdrop'\nimport { AIRDROP_API_KEY, AIRDROP_URL, AirdropRecipient, Reward } from './utils'\n\nexport const getAirdropRewards = async (address: string): Promise => {\n // Check Rewards status from airdrop API - /airdrop/address/:address/rewards\n const recipientEndpoint = `${AIRDROP_URL}airdrop/address/${address}/rewards`\n const getRecipientRewards = async (): Promise => {\n try {\n const response = await fetch(recipientEndpoint, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'Access-Control-Request-Method': 'GET',\n 'x-api-key': AIRDROP_API_KEY,\n },\n })\n if (!response.ok) {\n throw new Error(response.statusText)\n }\n const data = (await response.json()) as AirdropRecipient[]\n return data\n } catch (error: any) {\n throw new Error(error.message)\n }\n }\n const addressRewards = await getRecipientRewards()\n\n if (!addressRewards || addressRewards.length === 0) {\n return []\n }\n\n // Get active airdrops\n const activeAirdrops = (await readContract(getWagmiConfig(), {\n address: AIRDROP_CONTRACT_ADDRESS as `0x${string}`,\n account: address as `0x${string}`,\n abi: ClaimableAirdrop,\n functionName: 'getActiveAirdrops',\n })) as unknown as BigInt[]\n\n // Filter rewards based on active airdrops\n const activeAddressRewards = addressRewards.filter(reward =>\n activeAirdrops.some(airdropId => BigInt(reward.AirdropID) === airdropId)\n )\n\n if (activeAddressRewards.length === 0) {\n return []\n }\n\n // Check which rewards are still valid from the active address rewards\n const validRewards = (await readContract(getWagmiConfig(), {\n address: AIRDROP_CONTRACT_ADDRESS as `0x${string}`,\n account: address as `0x${string}`,\n abi: ClaimableAirdrop,\n functionName: 'getRewardStatuses',\n args: [\n activeAddressRewards.map(({ AirdropID }) => BigInt(AirdropID)),\n activeAddressRewards.map(({ NodeID }) => NodeID) as `0x${string}`[],\n ],\n })) as unknown as Reward[]\n\n const addressRewardsFiltered = activeAddressRewards.filter(\n (_, idx) => validRewards[idx].claimed === false && validRewards[idx].revoked === false\n )\n\n return addressRewardsFiltered\n}\n\ninterface CheckHubAirdropProps {\n nextStep: () => void\n}\n\nconst CheckHubAirdrop: React.FC = ({ nextStep }) => {\n const { address } = useAuth()\n\n const [rewards, setRewards] = useSessionStorage(\n `addressRewards-${address}`,\n []\n )\n const [loading, setLoading] = useState(true)\n\n useEffect(() => {\n if (!address) {\n return\n }\n getAirdropRewards(address)\n .then(res => {\n setLoading(false)\n setRewards(res)\n })\n .catch((error: any) => {\n console.error(error)\n setLoading(false)\n setRewards([])\n })\n }, [])\n\n const totalRewardAmount = useMemo(\n () =>\n processBalance(\n rewards\n .map(reward => reward.RewardAmount)\n .reduce((acc, val) => BigInt(acc) + BigInt(val), BigInt(0))\n ),\n [rewards]\n )\n\n return (\n \n \n {!loading && totalRewardAmount.value === BigInt(0) && (\n \n )}\n {loading && }\n {!loading && totalRewardAmount.value !== BigInt(0) && (\n \n )}\n \n )\n}\nexport default CheckHubAirdrop\n","import { Divider, Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { useMediaQuery } from '@mantine/hooks'\nimport confetti from 'canvas-confetti'\nimport React, { useCallback, useEffect } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { useNavigate } from 'react-router-dom'\n\nimport { saveLocation } from '@/plugins/auth/RouteRedirectors/utils'\n\nimport RootButton from '../Buttons/RootButton'\n\nconst CompletedAirdrop: React.FC = () => {\n const theme = useMantineTheme()\n const { t } = useTranslation()\n const navigate = useNavigate()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n useEffect(() => {\n confetti({\n particleCount: 1550,\n spread: 1400,\n })\n // launch a few confetti from the left edge\n confetti({\n particleCount: 117,\n angle: 60,\n spread: 55,\n origin: { x: 0 },\n })\n // and launch a few from the right edge\n confetti({\n particleCount: 117,\n angle: 120,\n spread: 55,\n origin: { x: 1 },\n })\n }, [])\n\n const handleNavigation = useCallback(() => {\n saveLocation('/wallet')\n navigate('/wallet')\n }, [navigate])\n\n return (\n \n \n\n \n \n {t('components.airdrop.completed', 'Claim Successful')}\n \n \n {t(\n 'components.airdrop.completedDescription',\n 'Nice work! You have successfully claimed your airdrop. Go to your “Wallet” tab to see the transaction and to see the LL1 you’ll be able to unwrap over time.'\n )}\n \n {t('buttons.openWallet', 'Open Wallet')}\n \n \n )\n}\nexport default CompletedAirdrop\n","import { Stack, Text, Title } from '@mantine/core'\nimport { useMediaQuery } from '@mantine/hooks'\nimport { useMantineTheme } from '@mantine/styles'\nimport React from 'react'\nimport { useTranslation } from 'react-i18next'\n\nimport RootButton from '../Buttons/RootButton'\nimport Loading from '../Loading'\n\ninterface ErrorSyncingAirdropProps {\n errorMesssage: string\n retry: () => void\n}\n\nconst ErrorSyncingAirdrop: React.FC = ({ errorMesssage, retry }) => {\n const theme = useMantineTheme()\n const { t } = useTranslation()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n return (\n \n \n {t('components.airdrop.interactError', 'Sync with airdrop bot not successful')}\n \n {errorMesssage}\n \n \n \n {t('buttons.retry', 'Retry')}\n \n \n \n )\n}\n\nexport default ErrorSyncingAirdrop\n","import { Divider, Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { useMediaQuery } from '@mantine/hooks'\nimport { readContract } from '@wagmi/core'\nimport { Dispatch, SetStateAction, useCallback, useState } from 'react'\nimport { Trans, useTranslation } from 'react-i18next'\n\nimport airdropScreenshot from '@/assets/webp_converted/airdropScreenshot.webp'\nimport { AIRDROP_CONTRACT_ADDRESS } from '@/constants/blockchain'\nimport ClaimableAirdrop from '@/contracts/ClaimableAirdrop'\nimport useCopyClipboard from '@/hooks/useCopyToClipboard'\nimport useSessionStorage from '@/hooks/useSessionStorage'\nimport { useAuth } from '@/plugins/auth'\nimport { getWagmiConfig } from '@/plugins/auth/config'\n\nimport { callbackCopyMessage } from '../Buttons/CopyButton'\nimport RootButton from '../Buttons/RootButton'\nimport classes from '../Transfer/Send.module.css'\nimport ErrorSyncingAirdrop from './ErrorSyncingAirdrop'\nimport NeedHelp from './NeedHelp'\nimport SyncingAirdrop from './SyncingAirdrop'\nimport {\n AIRDROP_API_KEY,\n AIRDROP_GUIDE,\n AIRDROP_URL,\n AirdropRecipient,\n DISCORD_AIRDROP,\n LinkedRewards,\n Reward,\n RewardKey,\n} from './utils'\n\ninterface LinkDiscordProps {\n skip: () => void\n}\n\nconst LinkDiscord: React.FC = ({ skip }) => {\n const { t } = useTranslation()\n const theme = useMantineTheme()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n const { address } = useAuth()\n const [, staticCopy] = useCopyClipboard()\n\n const copyHubAddress = useCallback(() => {\n staticCopy(address || '', classes, theme, callbackCopyMessage(t))\n }, [address, classes, staticCopy, theme, t])\n\n const openDiscord = useCallback(() => {\n window.open(DISCORD_AIRDROP, '_blank')\n }, [])\n\n return (\n \n \n {t('components.airdrop.complete', 'Link Discord to check for community rewards')}\n \n \n {t(\n 'components.airdrop.completeDescription',\n 'Next, connect your Discord to your on-chain account to see if you are eligible for any additional rewards based on your Discord or Zealy activity.'\n )}\n \n \n \n {t('components.airdrop.copyAddress', '1. Copy your Hub address')}\n \n \n {t('buttons.copyAddress', 'Copy HUB Address')}\n \n \n \n {\n t(\n 'components.airdrop.copyAddresDescription',\n 'You will use this address to link your LAMINA1 Hub account to your Discord. If your browser does not have permission to use the clipboard, select and copy your address: {{address}}.',\n { address }\n ) as string\n }\n \n \n \n {t('components.airdrop.openDiscord', '2. Open Discord, then follow the instructions')}\n \n \n {t('buttons.openDiscord', 'Open Discord')}\n \n \n \n \n Clicking this button will take you to the{' '}\n \n #hubmania-airdrop channel\n {' '}\n on Discord, which will explain how to use our airdrop bot to link your Hub address and\n Discord account.\n \n <> \n \n See the{' '}\n \n Hubmania Airdrop guide\n {' '}\n for more details.\n \n \n \n {t(\n 'components.airdrop.skipText',\n 'If you’ve already claimed your community rewards on a different account, feel free to skip this step.'\n )}\n \n \n \n {t('buttons.continue', 'Continue')}\n \n \n \n )\n}\n\nexport const getDiscordRewards = async (\n address: string,\n setRewards: Dispatch>\n): Promise => {\n // 1. RPC call to get linked Discord rewards - contract read\n const retval = (await readContract(getWagmiConfig(), {\n address: AIRDROP_CONTRACT_ADDRESS as `0x${string}`,\n account: address as `0x${string}`,\n abi: ClaimableAirdrop,\n functionName: 'getLinkedRewards',\n args: [address as `0x${string}`],\n })) as unknown as [number[], string[]]\n\n const linkedRewards: LinkedRewards | undefined =\n retval.length > 1\n ? {\n airdropID: retval[0],\n nodeID: retval[1],\n }\n : undefined\n\n if (\n linkedRewards &&\n linkedRewards.airdropID &&\n linkedRewards.nodeID &&\n linkedRewards.airdropID.length !== linkedRewards.nodeID.length\n ) {\n throw new Error('Error: Airdrop Discord linked rewards mismatch')\n }\n\n // 2. POST to get Discord Rewards from airdrop API - /airdrop/get/rewards\n const rewardsEndpoint = `${AIRDROP_URL}airdrop/get/rewards`\n const payload: RewardKey[] | undefined = linkedRewards?.airdropID\n ? linkedRewards.airdropID.map((aId, index) => ({\n AirdropID: Number(aId),\n NodeID: linkedRewards.nodeID[index],\n }))\n : undefined\n\n if (!payload || payload.length === 0) {\n console.log('No linked rewards')\n return []\n }\n\n const fetchRewards = async (): Promise => {\n try {\n const response = await fetch(rewardsEndpoint, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Access-Control-Request-Method': 'POST',\n 'x-api-key': AIRDROP_API_KEY,\n },\n body: JSON.stringify(payload),\n })\n if (!response.ok) {\n if (response.body) {\n const data = await response.json()\n if (data) {\n throw new Error(`Error: ${data.error}`)\n }\n }\n throw new Error(response.statusText)\n }\n const data = (await response.json()) as AirdropRecipient[]\n return data\n } catch (error: any) {\n throw new Error(error.message)\n }\n }\n const dsRewards = payload && payload.length ? await fetchRewards() : []\n\n // Check which rewards are still valid from the address rewards - contract read\n const validRewards = (await readContract(getWagmiConfig(), {\n address: AIRDROP_CONTRACT_ADDRESS as `0x${string}`,\n account: address as `0x${string}`,\n abi: ClaimableAirdrop,\n functionName: 'getRewardStatuses',\n args: [\n dsRewards.map(({ AirdropID }) => BigInt(AirdropID)),\n dsRewards.map(({ NodeID }) => NodeID) as `0x${string}`[],\n ],\n })) as unknown as Reward[]\n\n const dsRewardsFiltered = dsRewards.filter(\n (_, idx) =>\n validRewards[idx].claimed === false &&\n validRewards[idx].revoked === false &&\n validRewards[idx].linkedAddress === address\n )\n\n // Filter out platform rewards that came from discord and link them to the address rewards\n const platformRewards = dsRewardsFiltered.filter(({ IsDiscord }) => !IsDiscord)\n\n setRewards((prevState: AirdropRecipient[] | undefined) => {\n if (prevState) {\n return prevState\n .map((prevReward: AirdropRecipient) => {\n const linkedReward = platformRewards.find(\n ({ AirdropID, NodeID }) =>\n AirdropID === prevReward.AirdropID && NodeID === prevReward.NodeID\n )\n if (linkedReward) {\n return {\n ...prevReward,\n RewardAmount: linkedReward.RewardAmount,\n MerkleProof: linkedReward.MerkleProof,\n IsPublic: linkedReward.IsPublic,\n IsDiscord: linkedReward.IsDiscord,\n }\n }\n return prevReward\n })\n .concat(\n platformRewards.filter(\n platformReward =>\n !prevState.some(\n (prevReward: AirdropRecipient) =>\n prevReward.AirdropID === platformReward.AirdropID &&\n prevReward.NodeID === platformReward.NodeID\n )\n )\n )\n }\n return platformRewards\n })\n\n return dsRewardsFiltered.filter(({ IsDiscord }) => IsDiscord)\n}\n\ninterface LinkDiscordAirdropProps {\n prevStep: () => void\n nextStep: () => void\n}\n\nconst LinkDiscordAirdrop: React.FC = ({ prevStep, nextStep }) => {\n const theme = useMantineTheme()\n const { t } = useTranslation()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n const { address } = useAuth()\n\n const [, setRewards] = useSessionStorage(`addressRewards-${address}`)\n const [, setDiscordRewards] = useSessionStorage(\n `discordRewards-${address}`,\n []\n )\n const [linkedDiscord, setLinkedDiscord] = useState(false)\n const [isLoading, setIsLoading] = useState(false)\n const [airdropError, setAirdropError] = useState('')\n\n const handleSyncAirdropBot = useCallback(async () => {\n setLinkedDiscord(true)\n if (!address) return\n try {\n setIsLoading(true)\n const retval = await getDiscordRewards(address, setRewards)\n setDiscordRewards(retval)\n setIsLoading(false)\n nextStep()\n } catch (error: any) {\n console.error(error)\n setIsLoading(false)\n setAirdropError(error.message)\n }\n }, [])\n\n const handleBackFromSync = useCallback(() => {\n setIsLoading(false)\n setAirdropError('')\n }, [])\n\n return (\n \n \n {!linkedDiscord && }\n {linkedDiscord && !isLoading && airdropError && (\n \n )}\n {linkedDiscord && isLoading && !airdropError && (\n \n )}\n {linkedDiscord && !isLoading && !airdropError && (\n \n \n {t('components.airdrop.interact', 'Get confirmation from the airdrop bot')}\n \n \n {t(\n 'components.airdrop.interactDescription',\n 'Once you’ve received this confirmation from the bot, click “Continue” below.'\n )}\n \n \"discord-screenshot\"\n \n \n {t('buttons.back', 'Back')}\n \n \n {t('buttons.continue', 'Continue')}\n \n \n \n \n )}\n \n )\n}\nexport default LinkDiscordAirdrop\n","import { Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { useCallback, useMemo, useState } from 'react'\nimport { useTranslation } from 'react-i18next'\n\nimport { AirdropRecipient } from '@/components/Airdrop/utils'\nimport RootButton from '@/components/Buttons/RootButton'\nimport {\n ConfirmationError,\n ConfirmationLoading,\n ConfirmationReady,\n} from '@/components/Identity/ConfirmModals/utils'\nimport TransactionSummary from '@/components/Transfer/TransactionSummary'\nimport { AIRDROP_CONTRACT_ADDRESS, NATIVE_CHAIN_LAUNCH_TICKER } from '@/constants/blockchain'\nimport ClaimableAirdrop from '@/contracts/ClaimableAirdrop'\nimport { ContractParams, useChainFunctions } from '@/hooks/useChain'\nimport useSessionStorage from '@/hooks/useSessionStorage'\nimport { useAuth } from '@/plugins/auth'\nimport { l1NativeWagmiConfig } from '@/plugins/auth/config'\nimport { processBalance } from '@/utils/utils'\n\ninterface ClaimAirdropModalProps {\n close: () => void\n nextStep: () => void\n claimableRewards: bigint\n}\n\nconst ClaimAirdropModal: React.FC = ({\n close,\n nextStep,\n claimableRewards,\n}) => {\n const { t } = useTranslation()\n const theme = useMantineTheme()\n const { address } = useAuth()\n\n const [mergedRewards] = useSessionStorage(`mergedRewards-${address}`)\n const [isLoading, setIsLoading] = useState(false)\n const [isError, setIsError] = useState('')\n const [isReady, setIsReady] = useState(false)\n\n const { writeContract } = useChainFunctions(l1NativeWagmiConfig)\n\n const claimRewardsConfig: ContractParams | undefined = useMemo(() => {\n if (!mergedRewards) {\n return undefined\n }\n return {\n address: AIRDROP_CONTRACT_ADDRESS as `0x${string}`,\n abi: ClaimableAirdrop,\n functionName: 'claimMyRewards',\n args: [\n mergedRewards.map(({ AirdropID }) => AirdropID),\n mergedRewards.map(({ NodeID }) => NodeID),\n mergedRewards.map(({ RewardAmount }) => RewardAmount),\n mergedRewards.map(({ MerkleProof }) => MerkleProof),\n ],\n }\n }, [mergedRewards])\n\n const handleClaimAirdropModal = useCallback(async () => {\n if (!claimRewardsConfig) return\n setIsError('')\n try {\n setIsLoading(true)\n await writeContract(claimRewardsConfig)\n setIsLoading(false)\n setIsReady(true)\n } catch (error: any) {\n console.error(error)\n setIsLoading(false)\n setIsError(error.message)\n }\n }, [claimRewardsConfig, writeContract])\n\n return (\n <>\n {isError && }\n {isLoading && (\n \n )}\n {isReady && !isLoading && !isError && (\n \n )}\n {!isReady && !isLoading && !isError && (\n \n \n {t(\n 'components.airdrop.modal.claim.info',\n `Note: If you don’t claim these rewards by November 29, 2024, you may not receive an airdrop.`\n )}\n \n\n \n \n {processBalance(claimableRewards).display} {NATIVE_CHAIN_LAUNCH_TICKER}\n \n \n \n \n {t('buttons.cancel', 'Cancel')}\n \n \n {t('buttons.confirm', 'Confirm')}\n \n \n \n \n )}\n \n )\n}\nexport default ClaimAirdropModal\n","import { Divider, Stack, Text, Title, useMantineTheme } from '@mantine/core'\nimport { useDisclosure, useMediaQuery } from '@mantine/hooks'\nimport { useCallback, useEffect, useMemo, useState } from 'react'\nimport { useTranslation } from 'react-i18next'\n\nimport { NATIVE_CHAIN_LAUNCH_TICKER } from '@/constants/blockchain'\nimport useSessionStorage from '@/hooks/useSessionStorage'\nimport { useAuth } from '@/plugins/auth'\nimport { processBalance } from '@/utils/utils'\n\nimport RefreshButton from '../Buttons/RefreshButton'\nimport RootButton from '../Buttons/RootButton'\nimport ClaimAirdropModal from '../Modals/Airdrop/ClaimAirdropModal'\nimport ModalSkeleton from '../Modals/ModalSkeleton'\nimport TooltipTitle from '../TooltipTitle'\nimport { getAirdropRewards } from './CheckHubAirdop'\nimport { getDiscordRewards } from './LinkDiscordAirdrop'\nimport NeedHelp from './NeedHelp'\nimport { AirdropRecipient } from './utils'\n\ninterface RewardsAirdropProps {\n prevStep: () => void\n nextStep: () => void\n}\n\nconst RewardsAirdrop: React.FC = ({ prevStep, nextStep }) => {\n const theme = useMantineTheme()\n const { t } = useTranslation()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n const { address } = useAuth()\n const [rewards, setRewards] = useSessionStorage(`addressRewards-${address}`)\n const [discordRewards, setDiscordRewards] = useSessionStorage(\n `discordRewards-${address}`\n )\n const [, setMergedRewards] = useSessionStorage(`mergedRewards-${address}`, [])\n const [opened, { open, close }] = useDisclosure()\n const [refreshingRewards, setRefreshingRewards] = useState(false)\n\n const refreshRewards = useCallback(async () => {\n setRefreshingRewards(true)\n console.log('refreshing address rewards')\n if (!address) return\n try {\n const addrRewards = await getAirdropRewards(address)\n setRewards(addrRewards)\n } catch (error) {\n console.error(error)\n }\n console.log('refreshing discord rewards')\n try {\n const dsRewards = await getDiscordRewards(address, setRewards)\n setDiscordRewards(dsRewards)\n } catch (error) {\n console.error(error)\n }\n setRefreshingRewards(false)\n }, [])\n\n // remove all the discord rewards that are have the same AirdropID and NodeID than the address rewards and then merge the two arrays\n const processDsRewards = useMemo(() => {\n if (rewards && discordRewards) {\n return discordRewards.filter(\n discordReward =>\n !rewards.some(\n reward =>\n reward.AirdropID === discordReward.AirdropID && reward.NodeID === discordReward.NodeID\n )\n )\n }\n if (!rewards && discordRewards) return discordRewards\n return []\n }, [rewards, discordRewards])\n\n const totalDiscordRewards = useMemo(() => {\n if (processDsRewards) {\n return processDsRewards\n .map(reward => reward.RewardAmount)\n .reduce((acc, val) => BigInt(acc) + BigInt(val), BigInt(0))\n }\n return BigInt(0)\n }, [processDsRewards])\n\n const totalAddressRewards = useMemo(() => {\n if (rewards) {\n return rewards\n .map(reward => reward.RewardAmount)\n .reduce((acc, val) => BigInt(acc) + BigInt(val), BigInt(0))\n }\n return BigInt(0)\n }, [rewards])\n\n useEffect(() => {\n setMergedRewards(rewards && discordRewards ? processDsRewards.concat(rewards) : [])\n }, [rewards, discordRewards])\n\n const totalRewards = useMemo(\n () => BigInt(totalAddressRewards) + BigInt(totalDiscordRewards),\n [totalAddressRewards, totalDiscordRewards]\n )\n\n return (\n \n \n \n {t('Modal', 'Review and claim rewards')}\n \n {t(\n 'components.airdrop.rewardsClaimDescription',\n 'If all looks good, claim your platform and community rewards below:'\n )}\n \n \n \n \n \n {processBalance(totalAddressRewards).display} {NATIVE_CHAIN_LAUNCH_TICKER}\n \n \n \n \n \n {processBalance(totalDiscordRewards).display} {NATIVE_CHAIN_LAUNCH_TICKER}\n \n \n \n \n \n \n {processBalance(totalRewards).display} {NATIVE_CHAIN_LAUNCH_TICKER}\n \n \n }\n >\n {refreshingRewards\n ? t('components.airdrop.refreshingRewards', 'Refreshing Rewards...')\n : t('buttons.refreshClaim', 'Refresh Rewards')}\n \n \n \n \n {t('buttons.back', 'Back')}\n \n \n {t('buttons.completeClaim', 'Complete Claim')}\n \n \n \n \n \n \n \n \n )\n}\nexport default RewardsAirdrop\n","import { Grid, Stack, Stepper, useMantineTheme } from '@mantine/core'\nimport { useMediaQuery } from '@mantine/hooks'\nimport { useCallback, useState } from 'react'\n\nimport airdropImage from '@/assets/webp_converted/airdropTab.webp'\nimport ConnectMiddleware from '@/plugins/auth/RouteRedirectors/ConnectMiddleware'\nimport { BodyStack } from '@/styled/components'\n\nimport BackButton from '../Buttons/BackButton'\nimport HelpDrawer from '../HelpDrawer/HelpDrawer'\nimport Lamina1Logo from '../Lamina1Logo'\nimport CheckHubAirdrop from './CheckHubAirdop'\nimport CompletedAirdrop from './CompletedAirdrop'\nimport LinkDiscordAirdrop from './LinkDiscordAirdrop'\nimport RewardsAirdrop from './RewardsAirdrop'\nimport StartAirdrop from './StartAirdrop'\n\nconst STEPS = ['START', 'CHECK HUB', 'CHECK DISCORD', 'COMPLETE CLAIM']\nconst NUM_STEPS = STEPS.length\n\nconst Component: React.FC = () => {\n const theme = useMantineTheme()\n const isMobile = useMediaQuery(`(max-width: ${theme.breakpoints.sm})`)\n // Stepper\n const [activeStep, setActiveStep] = useState(0)\n const prevStep = useCallback(\n () => setActiveStep(current => (current > 0 ? current - 1 : current)),\n [setActiveStep]\n )\n const nextStep = useCallback(\n () => setActiveStep(current => (current < NUM_STEPS ? current + 1 : current)),\n [setActiveStep, NUM_STEPS]\n )\n\n return (\n \n \n \n \n \n \n \n \n }>\n \n \n }>\n \n \n }>\n \n \n }>\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\nComponent.displayName = 'Airdrop'\n\n// eslint-disable-next-line import/prefer-default-export\nexport { Component }\n"],"names":["signMessageMutationOptions","config","variables","signMessage","useSignMessage","parameters","mutation","useConfig","mutationOptions","mutate","mutateAsync","result","useMutation","airdropImage","abi","NeedHelp","bot","assistance","address","review","onChainRewards","t","useTranslation","theme","useMantineTheme","isMobile","useMediaQuery","isBetanet","useNetworkType","myAddress","useAuth","openMore","setOpenMore","useState","toggleOpenMore","useCallback","key","prev","Stack","jsx","Title","ToggleDetails","jsxs","List","Text","Trans","REPORT_BUG","AIRDROP_APPEAL_FORM","AddressDisplay","NoOnChainRewards","nextStep","disconnect","RootButton","airdropScreenshot","ConfirmedChange","setEnteredDiscord","SignedChangeAddress","discordMessage","isCopied","staticCopy","useCopyClipboard","enableGoToDiscord","setEnableGoToDiscord","useEffect","handleGoToDiscord","DISCORD_AIRDROP","IconCheck","IconCopy","classes","callbackCopyMessage","ChangeAddress","enteredDiscord","changeAddress","setChangeAddress","touched","setTouched","signature","errorSigning","status","isLoading","useMemo","rewards","useSessionStorage","msg","reward","msgHash","hashMessage","rejectedSigning","handleChangingAddress","e","Fragment","SpecialInputTile","isAddress","Loading","ErrorMessage","OnChainRewards","totalRewardAmount","opened","open","close","useDisclosure","goToMainnet","TooltipTitle","NATIVE_CHAIN_LAUNCH_TICKER","ModalSkeleton","DEFAULT_COLORS","fontStyles","__defProp","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","__defNormalProp","obj","value","__spreadValues","a","b","prop","focusStyles","selector","primaryShade","colorScheme","themeColor","getPrimaryShade","color","shade","primaryFallback","useSplittedShade","splitterColor","_splittedShade","splittedShade","_shade","getGradientColorStops","colors","stops","i","linearGradient","deg","radialGradient","gradient","getThemeColor","payload","merged","createConverter","units","px","replaced","rem","em","getSize","size","sizes","getBreakpointValue","largerThan","breakpoint","smallerThan","isHexColor","hex","hexToRgba","hexString","shorthandHex","parsed","g","rgbStringToRgba","r","toRgba","rgba","alpha","cover","offset","darken","f","dark","input","lighten","light","radius","defaultRadius","getColorIndexInfo","splittedColor","variant","getGradient","variant2","gradient2","colorInfo","_primaryShade","_color","primaryColor","hover","hoverStyle","placeholderStyles","dimmed","fns","__defProps","__getOwnPropDescs","__spreadProps","attachFunctions","themeBase","_DEFAULT_THEME","DEFAULT_THEME","MantineProviderContext","createContext","_a","useContext","SyncingAirdrop","discord","back","getAirdropRewards","recipientEndpoint","AIRDROP_URL","addressRewards","response","AIRDROP_API_KEY","error","activeAirdrops","readContract","getWagmiConfig","AIRDROP_CONTRACT_ADDRESS","ClaimableAirdrop","activeAddressRewards","airdropId","validRewards","AirdropID","NodeID","_","idx","CheckHubAirdrop","setRewards","loading","setLoading","res","processBalance","acc","val","Divider","CompletedAirdrop","navigate","useNavigate","confetti","handleNavigation","saveLocation","ErrorSyncingAirdrop","errorMesssage","retry","LinkDiscord","skip","copyHubAddress","openDiscord","AIRDROP_GUIDE","getDiscordRewards","retval","linkedRewards","rewardsEndpoint","aId","index","fetchRewards","data","dsRewards","dsRewardsFiltered","platformRewards","IsDiscord","prevState","prevReward","linkedReward","platformReward","LinkDiscordAirdrop","prevStep","setDiscordRewards","linkedDiscord","setLinkedDiscord","setIsLoading","airdropError","setAirdropError","handleSyncAirdropBot","handleBackFromSync","ClaimAirdropModal","claimableRewards","mergedRewards","isError","setIsError","isReady","setIsReady","writeContract","useChainFunctions","l1NativeWagmiConfig","claimRewardsConfig","RewardAmount","MerkleProof","handleClaimAirdropModal","ConfirmationError","ConfirmationLoading","ConfirmationReady","TransactionSummary","RewardsAirdrop","discordRewards","setMergedRewards","refreshingRewards","setRefreshingRewards","refreshRewards","addrRewards","processDsRewards","discordReward","totalDiscordRewards","totalAddressRewards","totalRewards","RefreshButton","STEPS","NUM_STEPS","Component","activeStep","setActiveStep","current","ConnectMiddleware","Lamina1Logo","Grid","BodyStack","BackButton","Stepper","StartAirdrop","HelpDrawer"],"mappings":"6sCACO,SAASA,GAA2BC,EAAQ,CAC/C,MAAO,CACH,WAAWC,EAAW,CAClB,OAAOC,GAAYF,EAAQC,CAAS,CACvC,EACD,YAAa,CAAC,aAAa,CACnC,CACA,CCHO,SAASE,GAAeC,EAAa,GAAI,CAC5C,KAAM,CAAE,SAAAC,CAAU,EAAGD,EACfJ,EAASM,GAAUF,CAAU,EAC7BG,EAAkBR,GAA2BC,CAAM,EACnD,CAAE,OAAAQ,EAAQ,YAAAC,EAAa,GAAGC,CAAM,EAAKC,GAAY,CACnD,GAAGN,EACH,GAAGE,CACX,CAAK,EACD,MAAO,CACH,GAAGG,EACH,YAAaF,EACb,iBAAkBC,CAC1B,CACA,CClBA,MAAeG,GAAA,mCCATC,EAAM,CACV,CACE,OAAQ,CACN,CACE,aAAc,kBACd,KAAM,eACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,eACN,KAAM,SACR,CACF,EACA,gBAAiB,aACjB,KAAM,aACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,+BACN,KAAM,OACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,KAAM,mCACN,KAAM,OACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,SACN,KAAM,SACR,CACF,EACA,KAAM,mBACN,KAAM,OACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,CACF,EACA,KAAM,6BACN,KAAM,OACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,kBACN,KAAM,OACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,SACd,KAAM,MACN,KAAM,QACR,EACA,CACE,aAAc,UACd,KAAM,SACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,YACd,KAAM,QACN,KAAM,WACR,CACF,EACA,KAAM,eACN,KAAM,OACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,SACd,KAAM,MACN,KAAM,QACR,EACA,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,CACF,EACA,KAAM,mBACN,KAAM,OACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,+BACN,KAAM,OACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,QACN,KAAM,SACR,CACF,EACA,KAAM,2BACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,OACd,KAAM,YACN,KAAM,MACR,EACA,CACE,QAAS,GACT,aAAc,QACd,KAAM,QACN,KAAM,OACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,oBACN,KAAM,SACR,CACF,EACA,KAAM,iBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,gBACN,KAAM,SACR,CACF,EACA,KAAM,kBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,kBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,kBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,KAAM,oBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,SACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,SACN,KAAM,SACR,CACF,EACA,KAAM,aACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,SACN,KAAM,SACR,CACF,EACA,KAAM,cACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,SACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,KAAM,qBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,cACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,cACN,KAAM,SACR,CACF,EACA,KAAM,kBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,oBACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,eACN,KAAM,SACR,CACF,EACA,KAAM,mBACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,SACN,KAAM,SACR,CACF,EACA,KAAM,cACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,SACN,KAAM,SACR,CACF,EACA,KAAM,cACN,KAAM,OACR,EACA,CACE,UAAW,GACX,OAAQ,CACN,CACE,QAAS,GACT,aAAc,UACd,KAAM,QACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,QAAS,GACT,aAAc,UACd,KAAM,SACN,KAAM,SACR,CACF,EACA,KAAM,kBACN,KAAM,OACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,WACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,qBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,eACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,aACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,KAAM,iBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,KAAM,SACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,iBACN,KAAM,SACR,CACF,EACA,KAAM,aACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,eACN,KAAM,SACR,CACF,EACA,KAAM,WACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,KAAM,WACN,QAAS,CACP,CACE,WAAY,CACV,CACE,aAAc,OACd,KAAM,YACN,KAAM,MACR,EACA,CACE,aAAc,OACd,KAAM,SACN,KAAM,MACR,EACA,CACE,aAAc,OACd,KAAM,SACN,KAAM,MACR,EACA,CACE,aAAc,QACd,KAAM,QACN,KAAM,OACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,gBACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,mBACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,aAAc,iCACd,KAAM,SACN,KAAM,OACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,YACd,KAAM,aACN,KAAM,WACR,EACA,CACE,aAAc,YACd,KAAM,QACN,KAAM,WACR,EACA,CACE,aAAc,YACd,KAAM,UACN,KAAM,WACR,EACA,CACE,aAAc,cACd,KAAM,SACN,KAAM,aACR,CACF,EACA,KAAM,iBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,OACd,KAAM,YACN,KAAM,MACR,EACA,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,aAAc,QACd,KAAM,QACN,KAAM,OACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,oBACN,QAAS,CACP,CACE,aAAc,YACd,KAAM,GACN,KAAM,WACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,mBACN,QAAS,CACP,CACE,WAAY,CACV,CACE,aAAc,OACd,KAAM,YACN,KAAM,MACR,EACA,CACE,aAAc,OACd,KAAM,SACN,KAAM,MACR,EACA,CACE,aAAc,OACd,KAAM,SACN,KAAM,MACR,EACA,CACE,aAAc,QACd,KAAM,QACN,KAAM,OACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,gBACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,mBACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,aAAc,iCACd,KAAM,GACN,KAAM,OACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,CACF,EACA,KAAM,mBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,mBACN,QAAS,CACP,CACE,aAAc,YACd,KAAM,GACN,KAAM,WACR,EACA,CACE,aAAc,YACd,KAAM,GACN,KAAM,WACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,YACd,KAAM,aACN,KAAM,WACR,EACA,CACE,aAAc,YACd,KAAM,QACN,KAAM,WACR,CACF,EACA,KAAM,oBACN,QAAS,CACP,CACE,WAAY,CACV,CACE,aAAc,OACd,KAAM,UACN,KAAM,MACR,EACA,CACE,aAAc,OACd,KAAM,UACN,KAAM,MACR,EACA,CACE,aAAc,UACd,KAAM,kBACN,KAAM,SACR,EACA,CACE,aAAc,kBACd,KAAM,gBACN,KAAM,SACR,CACF,EACA,aAAc,mCACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,CACF,EACA,KAAM,eACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,QACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,CACF,EACA,KAAM,qBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,uBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,8BACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,CACF,EACA,KAAM,YACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,CACF,EACA,KAAM,UACN,QAAS,CACP,CACE,aAAc,OACd,KAAM,GACN,KAAM,MACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,gBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,kBACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,cACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,cACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,iBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,aACN,KAAM,SACR,CACF,EACA,KAAM,YACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,iBACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,eACN,KAAM,SACR,CACF,EACA,KAAM,cACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,qBACN,KAAM,SACR,CACF,EACA,KAAM,eACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,aAAc,YACd,KAAM,kBACN,KAAM,WACR,EACA,CACE,aAAc,YACd,KAAM,UACN,KAAM,WACR,EACA,CACE,aAAc,cACd,KAAM,SACN,KAAM,aACR,CACF,EACA,KAAM,gBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,OACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,UACN,KAAM,SACR,CACF,EACA,KAAM,aACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,cACN,QAAS,CACP,CACE,aAAc,kBACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,gBACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,aAAc,UACd,KAAM,gBACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,SACd,KAAM,cACN,KAAM,QACR,CACF,EACA,KAAM,oBACN,QAAS,CACP,CACE,aAAc,OACd,KAAM,GACN,KAAM,MACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,kBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,eACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,kBACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,eACN,QAAS,CACP,CACE,aAAc,UACd,KAAM,GACN,KAAM,SACR,CACF,EACA,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,gBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,CACF,EACA,KAAM,iBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,YACN,KAAM,SACR,EACA,CACE,aAAc,YACd,KAAM,kBACN,KAAM,WACR,EACA,CACE,aAAc,YACd,KAAM,UACN,KAAM,WACR,CACF,EACA,KAAM,kBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,eACN,KAAM,SACR,CACF,EACA,KAAM,mBACN,QAAS,CAAC,EACV,gBAAiB,aACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,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A,UACA,SACD,EACD,IAAK,CACH,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,KAAM,CACJ,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,MAAO,CACL,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,OAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,OAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,KAAM,CACJ,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,KAAM,CACJ,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,KAAM,CACJ,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,MAAO,CACL,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,KAAM,CACJ,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,OAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,EACD,OAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,SACD,CACH,ECzKA,SAASC,GAAWnF,EAAO,CACzB,MAAO,KAAO,CAAE,WAAYA,EAAM,YAAc,YAAc,EAChE,CCFA,IAAIoF,GAAY,OAAO,eACnBC,GAAsB,OAAO,sBAC7BC,GAAe,OAAO,UAAU,eAChCC,GAAe,OAAO,UAAU,qBAChCC,GAAkB,CAACC,EAAK5E,EAAK6E,IAAU7E,KAAO4E,EAAML,GAAUK,EAAK5E,EAAK,CAAE,WAAY,GAAM,aAAc,GAAM,SAAU,GAAM,MAAA6E,CAAO,CAAA,EAAID,EAAI5E,CAAG,EAAI6E,EACtJC,GAAiB,CAACC,EAAGC,IAAM,CAC7B,QAASC,KAAQD,IAAMA,EAAI,CAAA,GACrBP,G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