ERC-20
Overview
Max Total Supply
10,000,000,000 Ce
Holders
2
Total Transfers
-
Market
Price
-
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Cheet
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2024-12-24 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC-20 * applications. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * * ```solidity * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.20; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys a `value` amount of tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 value) public virtual { _burn(_msgSender(), value); } /** * @dev Destroys a `value` amount of tokens from `account`, deducting from * the caller's allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `value`. */ function burnFrom(address account, uint256 value) public virtual { _spendAllowance(account, _msgSender(), value); _burn(account, value); } } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[ERC-2612]. * * Adds the {permit} method, which can be used to change an account's ERC-20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.20; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS } /** * @dev The signature derives the `address(0)`. */ error ECDSAInvalidSignature(); /** * @dev The signature has an invalid length. */ error ECDSAInvalidSignatureLength(uint256 length); /** * @dev The signature has an S value that is in the upper half order. */ error ECDSAInvalidSignatureS(bytes32 s); /** * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not * return address(0) without also returning an error description. Errors are documented using an enum (error type) * and a bytes32 providing additional information about the error. * * If no error is returned, then the address can be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function tryRecover( bytes32 hash, bytes memory signature ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly ("memory-safe") { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length)); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures] */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { unchecked { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); // We do not check for an overflow here since the shift operation results in 0 or 1. uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS, s); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature, bytes32(0)); } return (signer, RecoverError.NoError, bytes32(0)); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s); _throwError(error, errorArg); return recovered; } /** * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided. */ function _throwError(RecoverError error, bytes32 errorArg) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert ECDSAInvalidSignature(); } else if (error == RecoverError.InvalidSignatureLength) { revert ECDSAInvalidSignatureLength(uint256(errorArg)); } else if (error == RecoverError.InvalidSignatureS) { revert ECDSAInvalidSignatureS(errorArg); } } } // File: @openzeppelin/contracts/utils/Panic.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol) pragma solidity ^0.8.20; /** * @dev Helper library for emitting standardized panic codes. * * ```solidity * contract Example { * using Panic for uint256; * * // Use any of the declared internal constants * function foo() { Panic.GENERIC.panic(); } * * // Alternatively * function foo() { Panic.panic(Panic.GENERIC); } * } * ``` * * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. * * _Available since v5.1._ */ // slither-disable-next-line unused-state library Panic { /// @dev generic / unspecified error uint256 internal constant GENERIC = 0x00; /// @dev used by the assert() builtin uint256 internal constant ASSERT = 0x01; /// @dev arithmetic underflow or overflow uint256 internal constant UNDER_OVERFLOW = 0x11; /// @dev division or modulo by zero uint256 internal constant DIVISION_BY_ZERO = 0x12; /// @dev enum conversion error uint256 internal constant ENUM_CONVERSION_ERROR = 0x21; /// @dev invalid encoding in storage uint256 internal constant STORAGE_ENCODING_ERROR = 0x22; /// @dev empty array pop uint256 internal constant EMPTY_ARRAY_POP = 0x31; /// @dev array out of bounds access uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32; /// @dev resource error (too large allocation or too large array) uint256 internal constant RESOURCE_ERROR = 0x41; /// @dev calling invalid internal function uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51; /// @dev Reverts with a panic code. Recommended to use with /// the internal constants with predefined codes. function panic(uint256 code) internal pure { assembly ("memory-safe") { mstore(0x00, 0x4e487b71) mstore(0x20, code) revert(0x1c, 0x24) } } } // File: @openzeppelin/contracts/utils/math/SafeCast.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } /** * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump. */ function toUint(bool b) internal pure returns (uint256 u) { assembly ("memory-safe") { u := iszero(iszero(b)) } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * SafeCast.toUint(condition)); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. Panic.panic(Panic.DIVISION_BY_ZERO); } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return SafeCast.toUint(a > 0) * ((a - 1) / b + 1); } } /** * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2²⁵⁶ + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0. if (denominator <= prod1) { Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW)); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv ≡ 1 mod 2⁴. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2⁸ inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶ inverse *= 2 - denominator * inverse; // inverse mod 2³² inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴ inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸ inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶ // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @dev Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0); } /** * @dev Calculate the modular multiplicative inverse of a number in Z/nZ. * * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0. * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible. * * If the input value is not inversible, 0 is returned. * * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}. */ function invMod(uint256 a, uint256 n) internal pure returns (uint256) { unchecked { if (n == 0) return 0; // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version) // Used to compute integers x and y such that: ax + ny = gcd(a, n). // When the gcd is 1, then the inverse of a modulo n exists and it's x. // ax + ny = 1 // ax = 1 + (-y)n // ax ≡ 1 (mod n) # x is the inverse of a modulo n // If the remainder is 0 the gcd is n right away. uint256 remainder = a % n; uint256 gcd = n; // Therefore the initial coefficients are: // ax + ny = gcd(a, n) = n // 0a + 1n = n int256 x = 0; int256 y = 1; while (remainder != 0) { uint256 quotient = gcd / remainder; (gcd, remainder) = ( // The old remainder is the next gcd to try. remainder, // Compute the next remainder. // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd // where gcd is at most n (capped to type(uint256).max) gcd - remainder * quotient ); (x, y) = ( // Increment the coefficient of a. y, // Decrement the coefficient of n. // Can overflow, but the result is casted to uint256 so that the // next value of y is "wrapped around" to a value between 0 and n - 1. x - y * int256(quotient) ); } if (gcd != 1) return 0; // No inverse exists. return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative. } } /** * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`. * * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that * `a**(p-2)` is the modular multiplicative inverse of a in Fp. * * NOTE: this function does NOT check that `p` is a prime greater than `2`. */ function invModPrime(uint256 a, uint256 p) internal view returns (uint256) { unchecked { return Math.modExp(a, p - 2, p); } } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m) * * Requirements: * - modulus can't be zero * - underlying staticcall to precompile must succeed * * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make * sure the chain you're using it on supports the precompiled contract for modular exponentiation * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, * the underlying function will succeed given the lack of a revert, but the result may be incorrectly * interpreted as 0. */ function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) { (bool success, uint256 result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m). * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying * to operate modulo 0 or if the underlying precompile reverted. * * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack * of a revert, but the result may be incorrectly interpreted as 0. */ function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) { if (m == 0) return (false, 0); assembly ("memory-safe") { let ptr := mload(0x40) // | Offset | Content | Content (Hex) | // |-----------|------------|--------------------------------------------------------------------| // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x60:0x7f | value of b | 0x<.............................................................b> | // | 0x80:0x9f | value of e | 0x<.............................................................e> | // | 0xa0:0xbf | value of m | 0x<.............................................................m> | mstore(ptr, 0x20) mstore(add(ptr, 0x20), 0x20) mstore(add(ptr, 0x40), 0x20) mstore(add(ptr, 0x60), b) mstore(add(ptr, 0x80), e) mstore(add(ptr, 0xa0), m) // Given the result < m, it's guaranteed to fit in 32 bytes, // so we can use the memory scratch space located at offset 0. success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20) result := mload(0x00) } } /** * @dev Variant of {modExp} that supports inputs of arbitrary length. */ function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) { (bool success, bytes memory result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Variant of {tryModExp} that supports inputs of arbitrary length. */ function tryModExp( bytes memory b, bytes memory e, bytes memory m ) internal view returns (bool success, bytes memory result) { if (_zeroBytes(m)) return (false, new bytes(0)); uint256 mLen = m.length; // Encode call args in result and move the free memory pointer result = abi.encodePacked(b.length, e.length, mLen, b, e, m); assembly ("memory-safe") { let dataPtr := add(result, 0x20) // Write result on top of args to avoid allocating extra memory. success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen) // Overwrite the length. // result.length > returndatasize() is guaranteed because returndatasize() == m.length mstore(result, mLen) // Set the memory pointer after the returned data. mstore(0x40, add(dataPtr, mLen)) } } /** * @dev Returns whether the provided byte array is zero. */ function _zeroBytes(bytes memory byteArray) private pure returns (bool) { for (uint256 i = 0; i < byteArray.length; ++i) { if (byteArray[i] != 0) { return false; } } return true; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * This method is based on Newton's method for computing square roots; the algorithm is restricted to only * using integer operations. */ function sqrt(uint256 a) internal pure returns (uint256) { unchecked { // Take care of easy edge cases when a == 0 or a == 1 if (a <= 1) { return a; } // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between // the current value as `ε_n = | x_n - sqrt(a) |`. // // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is // bigger than any uint256. // // By noticing that // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)` // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar // to the msb function. uint256 aa = a; uint256 xn = 1; if (aa >= (1 << 128)) { aa >>= 128; xn <<= 64; } if (aa >= (1 << 64)) { aa >>= 64; xn <<= 32; } if (aa >= (1 << 32)) { aa >>= 32; xn <<= 16; } if (aa >= (1 << 16)) { aa >>= 16; xn <<= 8; } if (aa >= (1 << 8)) { aa >>= 8; xn <<= 4; } if (aa >= (1 << 4)) { aa >>= 4; xn <<= 2; } if (aa >= (1 << 2)) { xn <<= 1; } // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1). // // We can refine our estimation by noticing that the middle of that interval minimizes the error. // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2). // This is going to be our x_0 (and ε_0) xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2) // From here, Newton's method give us: // x_{n+1} = (x_n + a / x_n) / 2 // // One should note that: // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a // = ((x_n² + a) / (2 * x_n))² - a // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²) // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²) // = (x_n² - a)² / (2 * x_n)² // = ((x_n² - a) / (2 * x_n))² // ≥ 0 // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n // // This gives us the proof of quadratic convergence of the sequence: // ε_{n+1} = | x_{n+1} - sqrt(a) | // = | (x_n + a / x_n) / 2 - sqrt(a) | // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) | // = | (x_n - sqrt(a))² / (2 * x_n) | // = | ε_n² / (2 * x_n) | // = ε_n² / | (2 * x_n) | // // For the first iteration, we have a special case where x_0 is known: // ε_1 = ε_0² / | (2 * x_0) | // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2))) // ≤ 2**(2*e-4) / (3 * 2**(e-1)) // ≤ 2**(e-3) / 3 // ≤ 2**(e-3-log2(3)) // ≤ 2**(e-4.5) // // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n: // ε_{n+1} = ε_n² / | (2 * x_n) | // ≤ (2**(e-k))² / (2 * 2**(e-1)) // ≤ 2**(2*e-2*k) / 2**e // ≤ 2**(e-2*k) xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5 xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9 xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18 xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36 xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72 // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either // sqrt(a) or sqrt(a) + 1. return xn - SafeCast.toUint(xn > a / xn); } } /** * @dev Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 exp; unchecked { exp = 128 * SafeCast.toUint(value > (1 << 128) - 1); value >>= exp; result += exp; exp = 64 * SafeCast.toUint(value > (1 << 64) - 1); value >>= exp; result += exp; exp = 32 * SafeCast.toUint(value > (1 << 32) - 1); value >>= exp; result += exp; exp = 16 * SafeCast.toUint(value > (1 << 16) - 1); value >>= exp; result += exp; exp = 8 * SafeCast.toUint(value > (1 << 8) - 1); value >>= exp; result += exp; exp = 4 * SafeCast.toUint(value > (1 << 4) - 1); value >>= exp; result += exp; exp = 2 * SafeCast.toUint(value > (1 << 2) - 1); value >>= exp; result += exp; result += SafeCast.toUint(value > 1); } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 isGt; unchecked { isGt = SafeCast.toUint(value > (1 << 128) - 1); value >>= isGt * 128; result += isGt * 16; isGt = SafeCast.toUint(value > (1 << 64) - 1); value >>= isGt * 64; result += isGt * 8; isGt = SafeCast.toUint(value > (1 << 32) - 1); value >>= isGt * 32; result += isGt * 4; isGt = SafeCast.toUint(value > (1 << 16) - 1); value >>= isGt * 16; result += isGt * 2; result += SafeCast.toUint(value > (1 << 8) - 1); } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * int256(SafeCast.toUint(condition))); } } /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson. // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift, // taking advantage of the most significant (or "sign" bit) in two's complement representation. // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result, // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative). int256 mask = n >> 255; // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it. return uint256((n + mask) ^ mask); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; assembly ("memory-safe") { ptr := add(buffer, add(32, length)) } while (true) { ptr--; assembly ("memory-safe") { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal * representation, according to EIP-55. */ function toChecksumHexString(address addr) internal pure returns (string memory) { bytes memory buffer = bytes(toHexString(addr)); // hash the hex part of buffer (skip length + 2 bytes, length 40) uint256 hashValue; assembly ("memory-safe") { hashValue := shr(96, keccak256(add(buffer, 0x22), 40)) } for (uint256 i = 41; i > 1; --i) { // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f) if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) { // case shift by xoring with 0x20 buffer[i] ^= 0x20; } hashValue >>= 4; } return string(buffer); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/MessageHashUtils.sol) pragma solidity ^0.8.20; /** * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing. * * The library provides methods for generating a hash of a message that conforms to the * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712] * specifications. */ library MessageHashUtils { /** * @dev Returns the keccak256 digest of an ERC-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing a bytes32 `messageHash` with * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with * keccak256, although any bytes32 value can be safely used because the final digest will * be re-hashed. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) { assembly ("memory-safe") { mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20) } } /** * @dev Returns the keccak256 digest of an ERC-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing an arbitrary `message` with * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) { return keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message)); } /** * @dev Returns the keccak256 digest of an ERC-191 signed data with version * `0x00` (data with intended validator). * * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended * `validator` address. Then hashing the result. * * See {ECDSA-recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked(hex"19_00", validator, data)); } /** * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`). * * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with * `\x19\x01` and hashing the result. It corresponds to the hash signed by the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712. * * See {ECDSA-recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) { assembly ("memory-safe") { let ptr := mload(0x40) mstore(ptr, hex"19_01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) digest := keccak256(ptr, 0x42) } } } // File: @openzeppelin/contracts/utils/StorageSlot.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC-1967 implementation slot: * ```solidity * contract ERC1967 { * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot. * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * TIP: Consider using this library along with {SlotDerivation}. */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct Int256Slot { int256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `Int256Slot` with member `value` located at `slot`. */ function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { assembly ("memory-safe") { r.slot := store.slot } } /** * @dev Returns a `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { assembly ("memory-safe") { r.slot := store.slot } } } // File: @openzeppelin/contracts/utils/ShortStrings.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/ShortStrings.sol) pragma solidity ^0.8.20; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); assembly ("memory-safe") { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using * {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } } // File: @openzeppelin/contracts/interfaces/IERC5267.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.20; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } // File: @openzeppelin/contracts/utils/cryptography/EIP712.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.20; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP-712] is a standard for hashing and signing of typed structured data. * * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP-712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * @custom:oz-upgrades-unsafe-allow state-variable-immutable */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP-712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {IERC-5267}. */ function eip712Domain() public view virtual returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _EIP712Name(), _EIP712Version(), block.chainid, address(this), bytes32(0), new uint256[](0) ); } /** * @dev The name parameter for the EIP712 domain. * * NOTE: By default this function reads _name which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Name() internal view returns (string memory) { return _name.toStringWithFallback(_nameFallback); } /** * @dev The version parameter for the EIP712 domain. * * NOTE: By default this function reads _version which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Version() internal view returns (string memory) { return _version.toStringWithFallback(_versionFallback); } } // File: @openzeppelin/contracts/utils/Nonces.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Nonces.sol) pragma solidity ^0.8.20; /** * @dev Provides tracking nonces for addresses. Nonces will only increment. */ abstract contract Nonces { /** * @dev The nonce used for an `account` is not the expected current nonce. */ error InvalidAccountNonce(address account, uint256 currentNonce); mapping(address account => uint256) private _nonces; /** * @dev Returns the next unused nonce for an address. */ function nonces(address owner) public view virtual returns (uint256) { return _nonces[owner]; } /** * @dev Consumes a nonce. * * Returns the current value and increments nonce. */ function _useNonce(address owner) internal virtual returns (uint256) { // For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be // decremented or reset. This guarantees that the nonce never overflows. unchecked { // It is important to do x++ and not ++x here. return _nonces[owner]++; } } /** * @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`. */ function _useCheckedNonce(address owner, uint256 nonce) internal virtual { uint256 current = _useNonce(owner); if (nonce != current) { revert InvalidAccountNonce(owner, current); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[ERC-2612]. * * Adds the {permit} method, which can be used to change an account's ERC-20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712, Nonces { bytes32 private constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Permit deadline has expired. */ error ERC2612ExpiredSignature(uint256 deadline); /** * @dev Mismatched signature. */ error ERC2612InvalidSigner(address signer, address owner); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC-20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @inheritdoc IERC20Permit */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { if (block.timestamp > deadline) { revert ERC2612ExpiredSignature(deadline); } bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); if (signer != owner) { revert ERC2612InvalidSigner(signer, owner); } _approve(owner, spender, value); } /** * @inheritdoc IERC20Permit */ function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) { return super.nonces(owner); } /** * @inheritdoc IERC20Permit */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view virtual returns (bytes32) { return _domainSeparatorV4(); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.20; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Storage of the initializable contract. * * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions * when using with upgradeable contracts. * * @custom:storage-location erc7201:openzeppelin.storage.Initializable */ struct InitializableStorage { /** * @dev Indicates that the contract has been initialized. */ uint64 _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool _initializing; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00; /** * @dev The contract is already initialized. */ error InvalidInitialization(); /** * @dev The contract is not initializing. */ error NotInitializing(); /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint64 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in * production. * * Emits an {Initialized} event. */ modifier initializer() { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); // Cache values to avoid duplicated sloads bool isTopLevelCall = !$._initializing; uint64 initialized = $._initialized; // Allowed calls: // - initialSetup: the contract is not in the initializing state and no previous version was // initialized // - construction: the contract is initialized at version 1 (no reininitialization) and the // current contract is just being deployed bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; if (!initialSetup && !construction) { revert InvalidInitialization(); } $._initialized = 1; if (isTopLevelCall) { $._initializing = true; } _; if (isTopLevelCall) { $._initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint64 version) { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing || $._initialized >= version) { revert InvalidInitialization(); } $._initialized = version; $._initializing = true; _; $._initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { _checkInitializing(); _; } /** * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}. */ function _checkInitializing() internal view virtual { if (!_isInitializing()) { revert NotInitializing(); } } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing) { revert InvalidInitialization(); } if ($._initialized != type(uint64).max) { $._initialized = type(uint64).max; emit Initialized(type(uint64).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint64) { return _getInitializableStorage()._initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _getInitializableStorage()._initializing; } /** * @dev Returns a pointer to the storage namespace. */ // solhint-disable-next-line var-name-mixedcase function _getInitializableStorage() private pure returns (InitializableStorage storage $) { assembly { $.slot := INITIALIZABLE_STORAGE } } } // File: @openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/contracts/utils/Pausable.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.20; /** * @dev ERC-20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract pause mechanism of the contract unreachable, and thus unusable. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_update}. * * Requirements: * * - the contract must not be paused. */ function _update(address from, address to, uint256 value) internal virtual override whenNotPaused { super._update(from, to, value); } } // File: @openzeppelin/contracts/governance/utils/IVotes.sol // OpenZeppelin Contracts (last updated v5.0.0) (governance/utils/IVotes.sol) pragma solidity ^0.8.20; /** * @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts. */ interface IVotes { /** * @dev The signature used has expired. */ error VotesExpiredSignature(uint256 expiry); /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of voting units. */ event DelegateVotesChanged(address indexed delegate, uint256 previousVotes, uint256 newVotes); /** * @dev Returns the current amount of votes that `account` has. */ function getVotes(address account) external view returns (uint256); /** * @dev Returns the amount of votes that `account` had at a specific moment in the past. If the `clock()` is * configured to use block numbers, this will return the value at the end of the corresponding block. */ function getPastVotes(address account, uint256 timepoint) external view returns (uint256); /** * @dev Returns the total supply of votes available at a specific moment in the past. If the `clock()` is * configured to use block numbers, this will return the value at the end of the corresponding block. * * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes. * Votes that have not been delegated are still part of total supply, even though they would not participate in a * vote. */ function getPastTotalSupply(uint256 timepoint) external view returns (uint256); /** * @dev Returns the delegate that `account` has chosen. */ function delegates(address account) external view returns (address); /** * @dev Delegates votes from the sender to `delegatee`. */ function delegate(address delegatee) external; /** * @dev Delegates votes from signer to `delegatee`. */ function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) external; } // File: @openzeppelin/contracts/interfaces/IERC6372.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC6372.sol) pragma solidity ^0.8.20; interface IERC6372 { /** * @dev Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting). */ function clock() external view returns (uint48); /** * @dev Description of the clock */ // solhint-disable-next-line func-name-mixedcase function CLOCK_MODE() external view returns (string memory); } // File: @openzeppelin/contracts/interfaces/IERC5805.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5805.sol) pragma solidity ^0.8.20; interface IERC5805 is IERC6372, IVotes {} // File: @openzeppelin/contracts/utils/structs/Checkpoints.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/Checkpoints.sol) // This file was procedurally generated from scripts/generate/templates/Checkpoints.js. pragma solidity ^0.8.20; /** * @dev This library defines the `Trace*` struct, for checkpointing values as they change at different points in * time, and later looking up past values by block number. See {Votes} as an example. * * To create a history of checkpoints define a variable type `Checkpoints.Trace*` in your contract, and store a new * checkpoint for the current transaction block using the {push} function. */ library Checkpoints { /** * @dev A value was attempted to be inserted on a past checkpoint. */ error CheckpointUnorderedInsertion(); struct Trace224 { Checkpoint224[] _checkpoints; } struct Checkpoint224 { uint32 _key; uint224 _value; } /** * @dev Pushes a (`key`, `value`) pair into a Trace224 so that it is stored as the checkpoint. * * Returns previous value and new value. * * IMPORTANT: Never accept `key` as a user input, since an arbitrary `type(uint32).max` key set will disable the * library. */ function push( Trace224 storage self, uint32 key, uint224 value ) internal returns (uint224 oldValue, uint224 newValue) { return _insert(self._checkpoints, key, value); } /** * @dev Returns the value in the first (oldest) checkpoint with key greater or equal than the search key, or zero if * there is none. */ function lowerLookup(Trace224 storage self, uint32 key) internal view returns (uint224) { uint256 len = self._checkpoints.length; uint256 pos = _lowerBinaryLookup(self._checkpoints, key, 0, len); return pos == len ? 0 : _unsafeAccess(self._checkpoints, pos)._value; } /** * @dev Returns the value in the last (most recent) checkpoint with key lower or equal than the search key, or zero * if there is none. */ function upperLookup(Trace224 storage self, uint32 key) internal view returns (uint224) { uint256 len = self._checkpoints.length; uint256 pos = _upperBinaryLookup(self._checkpoints, key, 0, len); return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns the value in the last (most recent) checkpoint with key lower or equal than the search key, or zero * if there is none. * * NOTE: This is a variant of {upperLookup} that is optimised to find "recent" checkpoint (checkpoints with high * keys). */ function upperLookupRecent(Trace224 storage self, uint32 key) internal view returns (uint224) { uint256 len = self._checkpoints.length; uint256 low = 0; uint256 high = len; if (len > 5) { uint256 mid = len - Math.sqrt(len); if (key < _unsafeAccess(self._checkpoints, mid)._key) { high = mid; } else { low = mid + 1; } } uint256 pos = _upperBinaryLookup(self._checkpoints, key, low, high); return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns the value in the most recent checkpoint, or zero if there are no checkpoints. */ function latest(Trace224 storage self) internal view returns (uint224) { uint256 pos = self._checkpoints.length; return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns whether there is a checkpoint in the structure (i.e. it is not empty), and if so the key and value * in the most recent checkpoint. */ function latestCheckpoint(Trace224 storage self) internal view returns (bool exists, uint32 _key, uint224 _value) { uint256 pos = self._checkpoints.length; if (pos == 0) { return (false, 0, 0); } else { Checkpoint224 storage ckpt = _unsafeAccess(self._checkpoints, pos - 1); return (true, ckpt._key, ckpt._value); } } /** * @dev Returns the number of checkpoint. */ function length(Trace224 storage self) internal view returns (uint256) { return self._checkpoints.length; } /** * @dev Returns checkpoint at given position. */ function at(Trace224 storage self, uint32 pos) internal view returns (Checkpoint224 memory) { return self._checkpoints[pos]; } /** * @dev Pushes a (`key`, `value`) pair into an ordered list of checkpoints, either by inserting a new checkpoint, * or by updating the last one. */ function _insert( Checkpoint224[] storage self, uint32 key, uint224 value ) private returns (uint224 oldValue, uint224 newValue) { uint256 pos = self.length; if (pos > 0) { Checkpoint224 storage last = _unsafeAccess(self, pos - 1); uint32 lastKey = last._key; uint224 lastValue = last._value; // Checkpoint keys must be non-decreasing. if (lastKey > key) { revert CheckpointUnorderedInsertion(); } // Update or push new checkpoint if (lastKey == key) { last._value = value; } else { self.push(Checkpoint224({_key: key, _value: value})); } return (lastValue, value); } else { self.push(Checkpoint224({_key: key, _value: value})); return (0, value); } } /** * @dev Return the index of the first (oldest) checkpoint with key strictly bigger than the search key, or `high` * if there is none. `low` and `high` define a section where to do the search, with inclusive `low` and exclusive * `high`. * * WARNING: `high` should not be greater than the array's length. */ function _upperBinaryLookup( Checkpoint224[] storage self, uint32 key, uint256 low, uint256 high ) private view returns (uint256) { while (low < high) { uint256 mid = Math.average(low, high); if (_unsafeAccess(self, mid)._key > key) { high = mid; } else { low = mid + 1; } } return high; } /** * @dev Return the index of the first (oldest) checkpoint with key greater or equal than the search key, or `high` * if there is none. `low` and `high` define a section where to do the search, with inclusive `low` and exclusive * `high`. * * WARNING: `high` should not be greater than the array's length. */ function _lowerBinaryLookup( Checkpoint224[] storage self, uint32 key, uint256 low, uint256 high ) private view returns (uint256) { while (low < high) { uint256 mid = Math.average(low, high); if (_unsafeAccess(self, mid)._key < key) { low = mid + 1; } else { high = mid; } } return high; } /** * @dev Access an element of the array without performing bounds check. The position is assumed to be within bounds. */ function _unsafeAccess( Checkpoint224[] storage self, uint256 pos ) private pure returns (Checkpoint224 storage result) { assembly { mstore(0, self.slot) result.slot := add(keccak256(0, 0x20), pos) } } struct Trace208 { Checkpoint208[] _checkpoints; } struct Checkpoint208 { uint48 _key; uint208 _value; } /** * @dev Pushes a (`key`, `value`) pair into a Trace208 so that it is stored as the checkpoint. * * Returns previous value and new value. * * IMPORTANT: Never accept `key` as a user input, since an arbitrary `type(uint48).max` key set will disable the * library. */ function push( Trace208 storage self, uint48 key, uint208 value ) internal returns (uint208 oldValue, uint208 newValue) { return _insert(self._checkpoints, key, value); } /** * @dev Returns the value in the first (oldest) checkpoint with key greater or equal than the search key, or zero if * there is none. */ function lowerLookup(Trace208 storage self, uint48 key) internal view returns (uint208) { uint256 len = self._checkpoints.length; uint256 pos = _lowerBinaryLookup(self._checkpoints, key, 0, len); return pos == len ? 0 : _unsafeAccess(self._checkpoints, pos)._value; } /** * @dev Returns the value in the last (most recent) checkpoint with key lower or equal than the search key, or zero * if there is none. */ function upperLookup(Trace208 storage self, uint48 key) internal view returns (uint208) { uint256 len = self._checkpoints.length; uint256 pos = _upperBinaryLookup(self._checkpoints, key, 0, len); return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns the value in the last (most recent) checkpoint with key lower or equal than the search key, or zero * if there is none. * * NOTE: This is a variant of {upperLookup} that is optimised to find "recent" checkpoint (checkpoints with high * keys). */ function upperLookupRecent(Trace208 storage self, uint48 key) internal view returns (uint208) { uint256 len = self._checkpoints.length; uint256 low = 0; uint256 high = len; if (len > 5) { uint256 mid = len - Math.sqrt(len); if (key < _unsafeAccess(self._checkpoints, mid)._key) { high = mid; } else { low = mid + 1; } } uint256 pos = _upperBinaryLookup(self._checkpoints, key, low, high); return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns the value in the most recent checkpoint, or zero if there are no checkpoints. */ function latest(Trace208 storage self) internal view returns (uint208) { uint256 pos = self._checkpoints.length; return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns whether there is a checkpoint in the structure (i.e. it is not empty), and if so the key and value * in the most recent checkpoint. */ function latestCheckpoint(Trace208 storage self) internal view returns (bool exists, uint48 _key, uint208 _value) { uint256 pos = self._checkpoints.length; if (pos == 0) { return (false, 0, 0); } else { Checkpoint208 storage ckpt = _unsafeAccess(self._checkpoints, pos - 1); return (true, ckpt._key, ckpt._value); } } /** * @dev Returns the number of checkpoint. */ function length(Trace208 storage self) internal view returns (uint256) { return self._checkpoints.length; } /** * @dev Returns checkpoint at given position. */ function at(Trace208 storage self, uint32 pos) internal view returns (Checkpoint208 memory) { return self._checkpoints[pos]; } /** * @dev Pushes a (`key`, `value`) pair into an ordered list of checkpoints, either by inserting a new checkpoint, * or by updating the last one. */ function _insert( Checkpoint208[] storage self, uint48 key, uint208 value ) private returns (uint208 oldValue, uint208 newValue) { uint256 pos = self.length; if (pos > 0) { Checkpoint208 storage last = _unsafeAccess(self, pos - 1); uint48 lastKey = last._key; uint208 lastValue = last._value; // Checkpoint keys must be non-decreasing. if (lastKey > key) { revert CheckpointUnorderedInsertion(); } // Update or push new checkpoint if (lastKey == key) { last._value = value; } else { self.push(Checkpoint208({_key: key, _value: value})); } return (lastValue, value); } else { self.push(Checkpoint208({_key: key, _value: value})); return (0, value); } } /** * @dev Return the index of the first (oldest) checkpoint with key strictly bigger than the search key, or `high` * if there is none. `low` and `high` define a section where to do the search, with inclusive `low` and exclusive * `high`. * * WARNING: `high` should not be greater than the array's length. */ function _upperBinaryLookup( Checkpoint208[] storage self, uint48 key, uint256 low, uint256 high ) private view returns (uint256) { while (low < high) { uint256 mid = Math.average(low, high); if (_unsafeAccess(self, mid)._key > key) { high = mid; } else { low = mid + 1; } } return high; } /** * @dev Return the index of the first (oldest) checkpoint with key greater or equal than the search key, or `high` * if there is none. `low` and `high` define a section where to do the search, with inclusive `low` and exclusive * `high`. * * WARNING: `high` should not be greater than the array's length. */ function _lowerBinaryLookup( Checkpoint208[] storage self, uint48 key, uint256 low, uint256 high ) private view returns (uint256) { while (low < high) { uint256 mid = Math.average(low, high); if (_unsafeAccess(self, mid)._key < key) { low = mid + 1; } else { high = mid; } } return high; } /** * @dev Access an element of the array without performing bounds check. The position is assumed to be within bounds. */ function _unsafeAccess( Checkpoint208[] storage self, uint256 pos ) private pure returns (Checkpoint208 storage result) { assembly { mstore(0, self.slot) result.slot := add(keccak256(0, 0x20), pos) } } struct Trace160 { Checkpoint160[] _checkpoints; } struct Checkpoint160 { uint96 _key; uint160 _value; } /** * @dev Pushes a (`key`, `value`) pair into a Trace160 so that it is stored as the checkpoint. * * Returns previous value and new value. * * IMPORTANT: Never accept `key` as a user input, since an arbitrary `type(uint96).max` key set will disable the * library. */ function push( Trace160 storage self, uint96 key, uint160 value ) internal returns (uint160 oldValue, uint160 newValue) { return _insert(self._checkpoints, key, value); } /** * @dev Returns the value in the first (oldest) checkpoint with key greater or equal than the search key, or zero if * there is none. */ function lowerLookup(Trace160 storage self, uint96 key) internal view returns (uint160) { uint256 len = self._checkpoints.length; uint256 pos = _lowerBinaryLookup(self._checkpoints, key, 0, len); return pos == len ? 0 : _unsafeAccess(self._checkpoints, pos)._value; } /** * @dev Returns the value in the last (most recent) checkpoint with key lower or equal than the search key, or zero * if there is none. */ function upperLookup(Trace160 storage self, uint96 key) internal view returns (uint160) { uint256 len = self._checkpoints.length; uint256 pos = _upperBinaryLookup(self._checkpoints, key, 0, len); return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns the value in the last (most recent) checkpoint with key lower or equal than the search key, or zero * if there is none. * * NOTE: This is a variant of {upperLookup} that is optimised to find "recent" checkpoint (checkpoints with high * keys). */ function upperLookupRecent(Trace160 storage self, uint96 key) internal view returns (uint160) { uint256 len = self._checkpoints.length; uint256 low = 0; uint256 high = len; if (len > 5) { uint256 mid = len - Math.sqrt(len); if (key < _unsafeAccess(self._checkpoints, mid)._key) { high = mid; } else { low = mid + 1; } } uint256 pos = _upperBinaryLookup(self._checkpoints, key, low, high); return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns the value in the most recent checkpoint, or zero if there are no checkpoints. */ function latest(Trace160 storage self) internal view returns (uint160) { uint256 pos = self._checkpoints.length; return pos == 0 ? 0 : _unsafeAccess(self._checkpoints, pos - 1)._value; } /** * @dev Returns whether there is a checkpoint in the structure (i.e. it is not empty), and if so the key and value * in the most recent checkpoint. */ function latestCheckpoint(Trace160 storage self) internal view returns (bool exists, uint96 _key, uint160 _value) { uint256 pos = self._checkpoints.length; if (pos == 0) { return (false, 0, 0); } else { Checkpoint160 storage ckpt = _unsafeAccess(self._checkpoints, pos - 1); return (true, ckpt._key, ckpt._value); } } /** * @dev Returns the number of checkpoint. */ function length(Trace160 storage self) internal view returns (uint256) { return self._checkpoints.length; } /** * @dev Returns checkpoint at given position. */ function at(Trace160 storage self, uint32 pos) internal view returns (Checkpoint160 memory) { return self._checkpoints[pos]; } /** * @dev Pushes a (`key`, `value`) pair into an ordered list of checkpoints, either by inserting a new checkpoint, * or by updating the last one. */ function _insert( Checkpoint160[] storage self, uint96 key, uint160 value ) private returns (uint160 oldValue, uint160 newValue) { uint256 pos = self.length; if (pos > 0) { Checkpoint160 storage last = _unsafeAccess(self, pos - 1); uint96 lastKey = last._key; uint160 lastValue = last._value; // Checkpoint keys must be non-decreasing. if (lastKey > key) { revert CheckpointUnorderedInsertion(); } // Update or push new checkpoint if (lastKey == key) { last._value = value; } else { self.push(Checkpoint160({_key: key, _value: value})); } return (lastValue, value); } else { self.push(Checkpoint160({_key: key, _value: value})); return (0, value); } } /** * @dev Return the index of the first (oldest) checkpoint with key strictly bigger than the search key, or `high` * if there is none. `low` and `high` define a section where to do the search, with inclusive `low` and exclusive * `high`. * * WARNING: `high` should not be greater than the array's length. */ function _upperBinaryLookup( Checkpoint160[] storage self, uint96 key, uint256 low, uint256 high ) private view returns (uint256) { while (low < high) { uint256 mid = Math.average(low, high); if (_unsafeAccess(self, mid)._key > key) { high = mid; } else { low = mid + 1; } } return high; } /** * @dev Return the index of the first (oldest) checkpoint with key greater or equal than the search key, or `high` * if there is none. `low` and `high` define a section where to do the search, with inclusive `low` and exclusive * `high`. * * WARNING: `high` should not be greater than the array's length. */ function _lowerBinaryLookup( Checkpoint160[] storage self, uint96 key, uint256 low, uint256 high ) private view returns (uint256) { while (low < high) { uint256 mid = Math.average(low, high); if (_unsafeAccess(self, mid)._key < key) { low = mid + 1; } else { high = mid; } } return high; } /** * @dev Access an element of the array without performing bounds check. The position is assumed to be within bounds. */ function _unsafeAccess( Checkpoint160[] storage self, uint256 pos ) private pure returns (Checkpoint160 storage result) { assembly { mstore(0, self.slot) result.slot := add(keccak256(0, 0x20), pos) } } } // File: @openzeppelin/contracts/utils/types/Time.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/types/Time.sol) pragma solidity ^0.8.20; /** * @dev This library provides helpers for manipulating time-related objects. * * It uses the following types: * - `uint48` for timepoints * - `uint32` for durations * * While the library doesn't provide specific types for timepoints and duration, it does provide: * - a `Delay` type to represent duration that can be programmed to change value automatically at a given point * - additional helper functions */ library Time { using Time for *; /** * @dev Get the block timestamp as a Timepoint. */ function timestamp() internal view returns (uint48) { return SafeCast.toUint48(block.timestamp); } /** * @dev Get the block number as a Timepoint. */ function blockNumber() internal view returns (uint48) { return SafeCast.toUint48(block.number); } // ==================================================== Delay ===================================================== /** * @dev A `Delay` is a uint32 duration that can be programmed to change value automatically at a given point in the * future. The "effect" timepoint describes when the transitions happens from the "old" value to the "new" value. * This allows updating the delay applied to some operation while keeping some guarantees. * * In particular, the {update} function guarantees that if the delay is reduced, the old delay still applies for * some time. For example if the delay is currently 7 days to do an upgrade, the admin should not be able to set * the delay to 0 and upgrade immediately. If the admin wants to reduce the delay, the old delay (7 days) should * still apply for some time. * * * The `Delay` type is 112 bits long, and packs the following: * * ``` * | [uint48]: effect date (timepoint) * | | [uint32]: value before (duration) * ↓ ↓ ↓ [uint32]: value after (duration) * 0xAAAAAAAAAAAABBBBBBBBCCCCCCCC * ``` * * NOTE: The {get} and {withUpdate} functions operate using timestamps. Block number based delays are not currently * supported. */ type Delay is uint112; /** * @dev Wrap a duration into a Delay to add the one-step "update in the future" feature */ function toDelay(uint32 duration) internal pure returns (Delay) { return Delay.wrap(duration); } /** * @dev Get the value at a given timepoint plus the pending value and effect timepoint if there is a scheduled * change after this timepoint. If the effect timepoint is 0, then the pending value should not be considered. */ function _getFullAt( Delay self, uint48 timepoint ) private pure returns (uint32 valueBefore, uint32 valueAfter, uint48 effect) { (valueBefore, valueAfter, effect) = self.unpack(); return effect <= timepoint ? (valueAfter, 0, 0) : (valueBefore, valueAfter, effect); } /** * @dev Get the current value plus the pending value and effect timepoint if there is a scheduled change. If the * effect timepoint is 0, then the pending value should not be considered. */ function getFull(Delay self) internal view returns (uint32 valueBefore, uint32 valueAfter, uint48 effect) { return _getFullAt(self, timestamp()); } /** * @dev Get the current value. */ function get(Delay self) internal view returns (uint32) { (uint32 delay, , ) = self.getFull(); return delay; } /** * @dev Update a Delay object so that it takes a new duration after a timepoint that is automatically computed to * enforce the old delay at the moment of the update. Returns the updated Delay object and the timestamp when the * new delay becomes effective. */ function withUpdate( Delay self, uint32 newValue, uint32 minSetback ) internal view returns (Delay updatedDelay, uint48 effect) { uint32 value = self.get(); uint32 setback = uint32(Math.max(minSetback, value > newValue ? value - newValue : 0)); effect = timestamp() + setback; return (pack(value, newValue, effect), effect); } /** * @dev Split a delay into its components: valueBefore, valueAfter and effect (transition timepoint). */ function unpack(Delay self) internal pure returns (uint32 valueBefore, uint32 valueAfter, uint48 effect) { uint112 raw = Delay.unwrap(self); valueAfter = uint32(raw); valueBefore = uint32(raw >> 32); effect = uint48(raw >> 64); return (valueBefore, valueAfter, effect); } /** * @dev pack the components into a Delay object. */ function pack(uint32 valueBefore, uint32 valueAfter, uint48 effect) internal pure returns (Delay) { return Delay.wrap((uint112(effect) << 64) | (uint112(valueBefore) << 32) | uint112(valueAfter)); } } // File: @openzeppelin/contracts/governance/utils/Votes.sol // OpenZeppelin Contracts (last updated v5.1.0) (governance/utils/Votes.sol) pragma solidity ^0.8.20; /** * @dev This is a base abstract contract that tracks voting units, which are a measure of voting power that can be * transferred, and provides a system of vote delegation, where an account can delegate its voting units to a sort of * "representative" that will pool delegated voting units from different accounts and can then use it to vote in * decisions. In fact, voting units _must_ be delegated in order to count as actual votes, and an account has to * delegate those votes to itself if it wishes to participate in decisions and does not have a trusted representative. * * This contract is often combined with a token contract such that voting units correspond to token units. For an * example, see {ERC721Votes}. * * The full history of delegate votes is tracked on-chain so that governance protocols can consider votes as distributed * at a particular block number to protect against flash loans and double voting. The opt-in delegate system makes the * cost of this history tracking optional. * * When using this module the derived contract must implement {_getVotingUnits} (for example, make it return * {ERC721-balanceOf}), and can use {_transferVotingUnits} to track a change in the distribution of those units (in the * previous example, it would be included in {ERC721-_update}). */ abstract contract Votes is Context, EIP712, Nonces, IERC5805 { using Checkpoints for Checkpoints.Trace208; bytes32 private constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); mapping(address account => address) private _delegatee; mapping(address delegatee => Checkpoints.Trace208) private _delegateCheckpoints; Checkpoints.Trace208 private _totalCheckpoints; /** * @dev The clock was incorrectly modified. */ error ERC6372InconsistentClock(); /** * @dev Lookup to future votes is not available. */ error ERC5805FutureLookup(uint256 timepoint, uint48 clock); /** * @dev Clock used for flagging checkpoints. Can be overridden to implement timestamp based * checkpoints (and voting), in which case {CLOCK_MODE} should be overridden as well to match. */ function clock() public view virtual returns (uint48) { return Time.blockNumber(); } /** * @dev Machine-readable description of the clock as specified in ERC-6372. */ // solhint-disable-next-line func-name-mixedcase function CLOCK_MODE() public view virtual returns (string memory) { // Check that the clock was not modified if (clock() != Time.blockNumber()) { revert ERC6372InconsistentClock(); } return "mode=blocknumber&from=default"; } /** * @dev Returns the current amount of votes that `account` has. */ function getVotes(address account) public view virtual returns (uint256) { return _delegateCheckpoints[account].latest(); } /** * @dev Returns the amount of votes that `account` had at a specific moment in the past. If the `clock()` is * configured to use block numbers, this will return the value at the end of the corresponding block. * * Requirements: * * - `timepoint` must be in the past. If operating using block numbers, the block must be already mined. */ function getPastVotes(address account, uint256 timepoint) public view virtual returns (uint256) { uint48 currentTimepoint = clock(); if (timepoint >= currentTimepoint) { revert ERC5805FutureLookup(timepoint, currentTimepoint); } return _delegateCheckpoints[account].upperLookupRecent(SafeCast.toUint48(timepoint)); } /** * @dev Returns the total supply of votes available at a specific moment in the past. If the `clock()` is * configured to use block numbers, this will return the value at the end of the corresponding block. * * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes. * Votes that have not been delegated are still part of total supply, even though they would not participate in a * vote. * * Requirements: * * - `timepoint` must be in the past. If operating using block numbers, the block must be already mined. */ function getPastTotalSupply(uint256 timepoint) public view virtual returns (uint256) { uint48 currentTimepoint = clock(); if (timepoint >= currentTimepoint) { revert ERC5805FutureLookup(timepoint, currentTimepoint); } return _totalCheckpoints.upperLookupRecent(SafeCast.toUint48(timepoint)); } /** * @dev Returns the current total supply of votes. */ function _getTotalSupply() internal view virtual returns (uint256) { return _totalCheckpoints.latest(); } /** * @dev Returns the delegate that `account` has chosen. */ function delegates(address account) public view virtual returns (address) { return _delegatee[account]; } /** * @dev Delegates votes from the sender to `delegatee`. */ function delegate(address delegatee) public virtual { address account = _msgSender(); _delegate(account, delegatee); } /** * @dev Delegates votes from signer to `delegatee`. */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public virtual { if (block.timestamp > expiry) { revert VotesExpiredSignature(expiry); } address signer = ECDSA.recover( _hashTypedDataV4(keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry))), v, r, s ); _useCheckedNonce(signer, nonce); _delegate(signer, delegatee); } /** * @dev Delegate all of `account`'s voting units to `delegatee`. * * Emits events {IVotes-DelegateChanged} and {IVotes-DelegateVotesChanged}. */ function _delegate(address account, address delegatee) internal virtual { address oldDelegate = delegates(account); _delegatee[account] = delegatee; emit DelegateChanged(account, oldDelegate, delegatee); _moveDelegateVotes(oldDelegate, delegatee, _getVotingUnits(account)); } /** * @dev Transfers, mints, or burns voting units. To register a mint, `from` should be zero. To register a burn, `to` * should be zero. Total supply of voting units will be adjusted with mints and burns. */ function _transferVotingUnits(address from, address to, uint256 amount) internal virtual { if (from == address(0)) { _push(_totalCheckpoints, _add, SafeCast.toUint208(amount)); } if (to == address(0)) { _push(_totalCheckpoints, _subtract, SafeCast.toUint208(amount)); } _moveDelegateVotes(delegates(from), delegates(to), amount); } /** * @dev Moves delegated votes from one delegate to another. */ function _moveDelegateVotes(address from, address to, uint256 amount) internal virtual { if (from != to && amount > 0) { if (from != address(0)) { (uint256 oldValue, uint256 newValue) = _push( _delegateCheckpoints[from], _subtract, SafeCast.toUint208(amount) ); emit DelegateVotesChanged(from, oldValue, newValue); } if (to != address(0)) { (uint256 oldValue, uint256 newValue) = _push( _delegateCheckpoints[to], _add, SafeCast.toUint208(amount) ); emit DelegateVotesChanged(to, oldValue, newValue); } } } /** * @dev Get number of checkpoints for `account`. */ function _numCheckpoints(address account) internal view virtual returns (uint32) { return SafeCast.toUint32(_delegateCheckpoints[account].length()); } /** * @dev Get the `pos`-th checkpoint for `account`. */ function _checkpoints( address account, uint32 pos ) internal view virtual returns (Checkpoints.Checkpoint208 memory) { return _delegateCheckpoints[account].at(pos); } function _push( Checkpoints.Trace208 storage store, function(uint208, uint208) view returns (uint208) op, uint208 delta ) private returns (uint208 oldValue, uint208 newValue) { return store.push(clock(), op(store.latest(), delta)); } function _add(uint208 a, uint208 b) private pure returns (uint208) { return a + b; } function _subtract(uint208 a, uint208 b) private pure returns (uint208) { return a - b; } /** * @dev Must return the voting units held by an account. */ function _getVotingUnits(address) internal view virtual returns (uint256); } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Votes.sol) pragma solidity ^0.8.20; /** * @dev Extension of ERC-20 to support Compound-like voting and delegation. This version is more generic than Compound's, * and supports token supply up to 2^208^ - 1, while COMP is limited to 2^96^ - 1. * * NOTE: This contract does not provide interface compatibility with Compound's COMP token. * * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either * by calling the {Votes-delegate} function directly, or by providing a signature to be used with {Votes-delegateBySig}. Voting * power can be queried through the public accessors {Votes-getVotes} and {Votes-getPastVotes}. * * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. */ abstract contract ERC20Votes is ERC20, Votes { /** * @dev Total supply cap has been exceeded, introducing a risk of votes overflowing. */ error ERC20ExceededSafeSupply(uint256 increasedSupply, uint256 cap); /** * @dev Maximum token supply. Defaults to `type(uint208).max` (2^208^ - 1). * * This maximum is enforced in {_update}. It limits the total supply of the token, which is otherwise a uint256, * so that checkpoints can be stored in the Trace208 structure used by {Votes}. Increasing this value will not * remove the underlying limitation, and will cause {_update} to fail because of a math overflow in * {Votes-_transferVotingUnits}. An override could be used to further restrict the total supply (to a lower value) if * additional logic requires it. When resolving override conflicts on this function, the minimum should be * returned. */ function _maxSupply() internal view virtual returns (uint256) { return type(uint208).max; } /** * @dev Move voting power when tokens are transferred. * * Emits a {IVotes-DelegateVotesChanged} event. */ function _update(address from, address to, uint256 value) internal virtual override { super._update(from, to, value); if (from == address(0)) { uint256 supply = totalSupply(); uint256 cap = _maxSupply(); if (supply > cap) { revert ERC20ExceededSafeSupply(supply, cap); } } _transferVotingUnits(from, to, value); } /** * @dev Returns the voting units of an `account`. * * WARNING: Overriding this function may compromise the internal vote accounting. * `ERC20Votes` assumes tokens map to voting units 1:1 and this is not easy to change. */ function _getVotingUnits(address account) internal view virtual override returns (uint256) { return balanceOf(account); } /** * @dev Get number of checkpoints for `account`. */ function numCheckpoints(address account) public view virtual returns (uint32) { return _numCheckpoints(account); } /** * @dev Get the `pos`-th checkpoint for `account`. */ function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoints.Checkpoint208 memory) { return _checkpoints(account, pos); } } // File: contracts/CheetyToken.sol pragma solidity ^0.8.20; contract Cheet is ERC20, ERC20Burnable,ReentrancyGuardUpgradeable, ERC20Pausable, Ownable, ERC20Permit, ERC20Votes { uint256 private constant INITIAL_SUPPLY = 10_000_000_000 * 10 ** 18; // 10 billion tokens uint256 private immutable MAX_SUPPLY = INITIAL_SUPPLY; // Max cap of supply mapping(address => bool) private _blacklist; event BlacklistUpdated(address indexed account, bool isBlacklisted); constructor() ERC20("Cheet", "Ce") ERC20Permit("Cheet") Ownable(msg.sender) { _mint(msg.sender, INITIAL_SUPPLY); } /** * @dev Override _update to resolve conflict between ERC20 and ERC20Pausable. */ function _update(address from, address to, uint256 value) internal virtual override(ERC20, ERC20Pausable, ERC20Votes) { super._update(from, to, value); // Select the desired behavior if needed } // Other functions remain unchanged. /** * @dev Modifier to check if the account is not blacklisted. */ modifier notBlacklisted(address account) { require(!_blacklist[account], "CheetCoin: Address is blacklisted"); _; } /** * @dev Add or remove an address from the blacklist. * Can only be called by the owner. */ function updateBlacklist(address account, bool isBlacklisted) external onlyOwner { _blacklist[account] = isBlacklisted; emit BlacklistUpdated(account, isBlacklisted); } /** * @dev Override transfer to include blacklist and pausable checks. */ function transfer(address recipient, uint256 amount) public override whenNotPaused notBlacklisted(msg.sender) notBlacklisted(recipient) nonReentrant returns (bool) { return super.transfer(recipient, amount); } /** * @dev Override transferFrom to include blacklist and pausable checks. */ function transferFrom( address sender, address recipient, uint256 amount ) public override whenNotPaused notBlacklisted(sender) notBlacklisted(recipient) nonReentrant returns (bool) { return super.transferFrom(sender, recipient, amount); } /** * @dev Mint new tokens. Restricted to owner. * Ensures total supply does not exceed max supply. */ function mint(address to, uint256 amount) external onlyOwner { require(totalSupply() + amount <= MAX_SUPPLY, "CheetCoin: Max supply exceeded"); _mint(to, amount); } /** * @dev Burn tokens from an account. Restricted to owner. */ function burn(address from, uint256 amount) external onlyOwner { _burn(from, amount); } /** * @dev Pause the contract. Can only be called by the owner. */ function pause() external onlyOwner { _pause(); } /** * @dev Unpause the contract. Can only be called by the owner. */ function unpause() external onlyOwner { _unpause(); } /** * @dev Override approve to include safety checks. */ function approve(address spender, uint256 amount) public override notBlacklisted(spender) returns (bool) { require(amount == 0 || allowance(msg.sender, spender) == 0, "CheetCoin: Reset allowance to zero first"); return super.approve(spender, amount); } /** * @dev Returns whether the address is blacklisted. */ function checkBlacklistStatus(address account) external view returns (bool) { return _blacklist[account]; } function nonces(address owner) public view override(ERC20Permit, Nonces) returns (uint256) { return super.nonces(owner); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CheckpointUnorderedInsertion","type":"error"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededSafeSupply","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"ERC2612ExpiredSignature","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC2612InvalidSigner","type":"error"},{"inputs":[{"internalType":"uint256","name":"timepoint","type":"uint256"},{"internalType":"uint48","name":"clock","type":"uint48"}],"name":"ERC5805FutureLookup","type":"error"},{"inputs":[],"name":"ERC6372InconsistentClock","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"currentNonce","type":"uint256"}],"name":"InvalidAccountNonce","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"uint8","name":"bits","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"SafeCastOverflowedUintDowncast","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[{"internalType":"uint256","name":"expiry","type":"uint256"}],"name":"VotesExpiredSignature","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isBlacklisted","type":"bool"}],"name":"BlacklistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousVotes","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newVotes","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CLOCK_MODE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"checkBlacklistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint48","name":"_key","type":"uint48"},{"internalType":"uint208","name":"_value","type":"uint208"}],"internalType":"struct Checkpoints.Checkpoint208","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clock","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timepoint","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"timepoint","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isBlacklisted","type":"bool"}],"name":"updateBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101806040526b204fce5e3e250261100000006101609081525034801562000025575f80fd5b506040518060400160405280600581526020017f4368656574000000000000000000000000000000000000000000000000000000815250806040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250336040518060400160405280600581526020017f43686565740000000000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4365000000000000000000000000000000000000000000000000000000000000815250816003908162000111919062001460565b50806004908162000123919062001460565b5050505f60375f6101000a81548160ff0219169083151502179055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001b2575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001a9919062001587565b60405180910390fd5b620001c3816200029960201b60201c565b50620001da6038836200035e60201b90919060201c565b6101208181525050620001f86039826200035e60201b90919060201c565b6101408181525050818051906020012060e08181525050808051906020012061010081815250504660a0818152505062000237620003b360201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505050505062000293336b204fce5e3e250261100000006200040f60201b60201c565b62001a45565b5f603760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603760016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f60208351101562000383576200037b836200049960201b60201c565b9050620003ad565b8262000395836200050360201b60201c565b5f019081620003a5919062001460565b5060ff5f1b90505b92915050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60e051610100514630604051602001620003f4959493929190620015cd565b60405160208183030381529060405280519060200120905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000482575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040162000479919062001587565b60405180910390fd5b620004955f83836200050c60201b60201c565b5050565b5f80829050601f81511115620004e857826040517f305a27a9000000000000000000000000000000000000000000000000000000008152600401620004df9190620016b2565b60405180910390fd5b805181620004f69062001703565b5f1c175f1b915050919050565b5f819050919050565b6200051f8383836200052460201b60201c565b505050565b62000537838383620005f660201b60201c565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620005de575f6200057c6200061e60201b60201c565b90505f6200058f6200062760201b60201c565b905080821115620005db5781816040517f1cb15d26000000000000000000000000000000000000000000000000000000008152600401620005d292919062001772565b60405180910390fd5b50505b620005f18383836200064a60201b60201c565b505050565b620006066200074e60201b60201c565b620006198383836200079860201b60201c565b505050565b5f600254905090565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff8016905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620006b057620006ad603d620009bc60201b6200150317620006a184620009d360201b60201c565b62000a4360201b60201c565b50505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620007165762000713603d62000a9260201b62001518176200070784620009d360201b60201c565b62000a4360201b60201c565b50505b620007496200072b8462000aa960201b60201c565b6200073c8462000aa960201b60201c565b8362000b0e60201b60201c565b505050565b6200075e62000db860201b60201c565b1562000796576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620007ec578060025f828254620007df9190620017ca565b92505081905550620008bd565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101562000878578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016200086f9392919062001804565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000906578060025f828254039250508190555062000950565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620009af91906200183f565b60405180910390a3505050565b5f8183620009cb91906200187f565b905092915050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff801682111562000a3b5760d0826040517f6dfcc65000000000000000000000000000000000000000000000000000000000815260040162000a3292919062001920565b60405180910390fd5b819050919050565b5f8062000a8662000a5962000dcd60201b60201c565b62000a7562000a6e8862000de360201b60201c565b868860201c565b8762000e5160201b9092919060201c565b91509150935093915050565b5f818362000aa191906200194b565b905092915050565b5f603b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801562000b4a57505f81115b1562000db3575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000c81575f8062000bf0603c5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2062000a9260201b620015181762000be486620009d360201b60201c565b62000a4360201b60201c565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915079ffffffffffffffffffffffffffffffffffffffffffffffffffff1691508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405162000c7692919062001772565b60405180910390a250505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000db2575f8062000d21603c5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20620009bc60201b620015031762000d1586620009d360201b60201c565b62000a4360201b60201c565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915079ffffffffffffffffffffffffffffffffffffffffffffffffffff1691508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405162000da792919062001772565b60405180910390a250505b5b505050565b5f60375f9054906101000a900460ff16905090565b5f62000dde62000e7460201b60201c565b905090565b5f80825f018054905090505f811462000e475762000e18835f0160018362000e0c91906200199f565b62000e8b60201b60201c565b5f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff1662000e49565b5f5b915050919050565b5f8062000e68855f01858562000e9d60201b60201c565b91509150935093915050565b5f62000e8643620011a060201b60201c565b905090565b5f825f528160205f2001905092915050565b5f805f858054905090505f811115620010b8575f62000ed18760018462000ec591906200199f565b62000e8b60201b60201c565b90505f815f015f9054906101000a900465ffffffffffff1690505f825f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff1690508765ffffffffffff168265ffffffffffff16111562000f63576040517f2520601d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8765ffffffffffff168265ffffffffffff160362000fcf5786835f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550620010a8565b8860405180604001604052808a65ffffffffffff1681526020018979ffffffffffffffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003905f5260205f20015f909190919091505f820151815f015f6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506020820151815f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b8087955095505050505062001198565b8560405180604001604052808765ffffffffffff1681526020018679ffffffffffffffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003905f5260205f20015f909190919091505f820151815f015f6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506020820151815f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505f8492509250505b935093915050565b5f65ffffffffffff8016821115620011f4576030826040517f6dfcc650000000000000000000000000000000000000000000000000000000008152600401620011eb92919062001a1a565b60405180910390fd5b819050919050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200127857607f821691505b6020821081036200128e576200128d62001233565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620012f27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620012b5565b620012fe8683620012b5565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f62001348620013426200133c8462001316565b6200131f565b62001316565b9050919050565b5f819050919050565b620013638362001328565b6200137b62001372826200134f565b848454620012c1565b825550505050565b5f90565b6200139162001383565b6200139e81848462001358565b505050565b5b81811015620013c557620013b95f8262001387565b600181019050620013a4565b5050565b601f8211156200141457620013de8162001294565b620013e984620012a6565b81016020851015620013f9578190505b620014116200140885620012a6565b830182620013a3565b50505b505050565b5f82821c905092915050565b5f620014365f198460080262001419565b1980831691505092915050565b5f62001450838362001425565b9150826002028217905092915050565b6200146b82620011fc565b67ffffffffffffffff81111562001487576200148662001206565b5b62001493825462001260565b620014a0828285620013c9565b5f60209050601f831160018114620014d6575f8415620014c1578287015190505b620014cd858262001443565b8655506200153c565b601f198416620014e68662001294565b5f5b828110156200150f57848901518255600182019150602085019450602081019050620014e8565b868310156200152f57848901516200152b601f89168262001425565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200156f8262001544565b9050919050565b620015818162001563565b82525050565b5f6020820190506200159c5f83018462001576565b92915050565b5f819050919050565b620015b681620015a2565b82525050565b620015c78162001316565b82525050565b5f60a082019050620015e25f830188620015ab565b620015f16020830187620015ab565b620016006040830186620015ab565b6200160f6060830185620015bc565b6200161e608083018462001576565b9695505050505050565b5f82825260208201905092915050565b5f5b83811015620016575780820151818401526020810190506200163a565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6200167e82620011fc565b6200168a818562001628565b93506200169c81856020860162001638565b620016a78162001662565b840191505092915050565b5f6020820190508181035f830152620016cc818462001672565b905092915050565b5f81519050919050565b5f819050602082019050919050565b5f620016fa8251620015a2565b80915050919050565b5f6200170f82620016d4565b826200171b84620016de565b90506200172881620016ed565b925060208210156200176b57620017667fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802620012b5565b831692505b5050919050565b5f604082019050620017875f830185620015bc565b620017966020830184620015bc565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f620017d68262001316565b9150620017e38362001316565b9250828201905080821115620017fe57620017fd6200179d565b5b92915050565b5f606082019050620018195f83018662001576565b620018286020830185620015bc565b620018376040830184620015bc565b949350505050565b5f602082019050620018545f830184620015bc565b92915050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200188b826200185a565b915062001898836200185a565b9250828201905079ffffffffffffffffffffffffffffffffffffffffffffffffffff811115620018cd57620018cc6200179d565b5b92915050565b5f819050919050565b5f60ff82169050919050565b5f6200190862001902620018fc84620018d3565b6200131f565b620018dc565b9050919050565b6200191a81620018e8565b82525050565b5f604082019050620019355f8301856200190f565b620019446020830184620015bc565b9392505050565b5f62001957826200185a565b915062001964836200185a565b9250828203905079ffffffffffffffffffffffffffffffffffffffffffffffffffff8111156200199957620019986200179d565b5b92915050565b5f620019ab8262001316565b9150620019b88362001316565b9250828203905081811115620019d357620019d26200179d565b5b92915050565b5f819050919050565b5f62001a02620019fc620019f684620019d9565b6200131f565b620018dc565b9050919050565b62001a1481620019e2565b82525050565b5f60408201905062001a2f5f83018562001a09565b62001a3e6020830184620015bc565b9392505050565b60805160a05160c05160e051610100516101205161014051610160516144ed62001aa15f395f610aa901525f611d8201525f611d4701525f6120cf01525f6120ae01525f61161a01525f61167001525f61169901526144ed5ff3fe608060405234801561000f575f80fd5b506004361061020f575f3560e01c806379cc6790116101235780639ab24eb0116100ab578063d505accf1161007a578063d505accf14610607578063dd62ed3e14610623578063f1127ed814610653578063f2fde38b14610683578063fd2b35281461069f5761020f565b80639ab24eb01461056f5780639dc29fac1461059f578063a9059cbb146105bb578063c3cda520146105eb5761020f565b80638da5cb5b116100f25780638da5cb5b146104c95780638e539e8c146104e75780639155e0831461051757806391ddadf41461053357806395d89b41146105515761020f565b806379cc67901461044f5780637ecebe001461046b5780638456cb591461049b57806384b0196e146104a55761020f565b806340c10f19116101a65780635c19a95c116101755780635c19a95c146103ab5780635c975abb146103c75780636fcfff45146103e557806370a0823114610415578063715018a6146104455761020f565b806340c10f191461032557806342966c68146103415780634bf5d7e91461035d578063587cde1e1461037b5761020f565b8063313ce567116101e2578063313ce567146102af5780633644e515146102cd5780633a46b1a8146102eb5780633f4ba83a1461031b5761020f565b806306fdde0314610213578063095ea7b31461023157806318160ddd1461026157806323b872dd1461027f575b5f80fd5b61021b6106cf565b60405161022891906135bc565b60405180910390f35b61024b6004803603810190610246919061366d565b61075f565b60405161025891906136c5565b60405180910390f35b610269610853565b60405161027691906136ed565b60405180910390f35b61029960048036038101906102949190613706565b61085c565b6040516102a691906136c5565b60405180910390f35b6102b76109a1565b6040516102c49190613771565b60405180910390f35b6102d56109a9565b6040516102e291906137a2565b60405180910390f35b6103056004803603810190610300919061366d565b6109b7565b60405161031291906136ed565b60405180910390f35b610323610a8d565b005b61033f600480360381019061033a919061366d565b610a9f565b005b61035b600480360381019061035691906137bb565b610b2a565b005b610365610b3e565b60405161037291906135bc565b60405180910390f35b610395600480360381019061039091906137e6565b610bd2565b6040516103a29190613820565b60405180910390f35b6103c560048036038101906103c091906137e6565b610c37565b005b6103cf610c50565b6040516103dc91906136c5565b60405180910390f35b6103ff60048036038101906103fa91906137e6565b610c65565b60405161040c9190613857565b60405180910390f35b61042f600480360381019061042a91906137e6565b610c76565b60405161043c91906136ed565b60405180910390f35b61044d610cbb565b005b6104696004803603810190610464919061366d565b610cce565b005b610485600480360381019061048091906137e6565b610cee565b60405161049291906136ed565b60405180910390f35b6104a3610cff565b005b6104ad610d11565b6040516104c09796959493929190613961565b60405180910390f35b6104d1610db6565b6040516104de9190613820565b60405180910390f35b61050160048036038101906104fc91906137bb565b610ddf565b60405161050e91906136ed565b60405180910390f35b610531600480360381019061052c9190613a0d565b610e79565b005b61053b610f27565b6040516105489190613a6b565b60405180910390f35b610559610f35565b60405161056691906135bc565b60405180910390f35b610589600480360381019061058491906137e6565b610fc5565b60405161059691906136ed565b60405180910390f35b6105b960048036038101906105b4919061366d565b61102e565b005b6105d560048036038101906105d0919061366d565b611044565b6040516105e291906136c5565b60405180910390f35b61060560048036038101906106009190613ad8565b611187565b005b610621600480360381019061061c9190613b61565b61124c565b005b61063d60048036038101906106389190613bfe565b611391565b60405161064a91906136ed565b60405180910390f35b61066d60048036038101906106689190613c66565b611413565b60405161067a9190613d14565b60405180910390f35b61069d600480360381019061069891906137e6565b61142d565b005b6106b960048036038101906106b491906137e6565b6114b1565b6040516106c691906136c5565b60405180910390f35b6060600380546106de90613d5a565b80601f016020809104026020016040519081016040528092919081815260200182805461070a90613d5a565b80156107555780601f1061072c57610100808354040283529160200191610755565b820191905f5260205f20905b81548152906001019060200180831161073857829003601f168201915b5050505050905090565b5f82603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156107eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e290613dfa565b60405180910390fd5b5f83148061080157505f6107ff3386611391565b145b610840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083790613e88565b60405180910390fd5b61084a848461152d565b91505092915050565b5f600254905090565b5f61086561154f565b83603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156108f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e790613dfa565b60405180910390fd5b83603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561097b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097290613dfa565b60405180910390fd5b610983611590565b61098e8686866115df565b925061099861160d565b50509392505050565b5f6012905090565b5f6109b2611617565b905090565b5f806109c1610f27565b90508065ffffffffffff168310610a115782816040517fecd3f81e000000000000000000000000000000000000000000000000000000008152600401610a08929190613ea6565b60405180910390fd5b610a68610a1d846116cd565b603c5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061172690919063ffffffff16565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff1691505092915050565b610a95611813565b610a9d61189a565b565b610aa7611813565b7f000000000000000000000000000000000000000000000000000000000000000081610ad1610853565b610adb9190613efa565b1115610b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1390613f77565b60405180910390fd5b610b2682826118fb565b5050565b610b3b610b3561197a565b82611981565b50565b6060610b48611a00565b65ffffffffffff16610b58610f27565b65ffffffffffff1614610b97576040517f6ff0714000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280601d81526020017f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000815250905090565b5f603b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f610c4061197a565b9050610c4c8183611a0f565b5050565b5f60375f9054906101000a900460ff16905090565b5f610c6f82611b1f565b9050919050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610cc3611813565b610ccc5f611b74565b565b610ce082610cda61197a565b83611c39565b610cea8282611981565b5050565b5f610cf882611ccb565b9050919050565b610d07611813565b610d0f611cdc565b565b5f6060805f805f6060610d22611d3e565b610d2a611d79565b46305f801b5f67ffffffffffffffff811115610d4957610d48613f95565b5b604051908082528060200260200182016040528015610d775781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b5f603760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f80610de9610f27565b90508065ffffffffffff168310610e395782816040517fecd3f81e000000000000000000000000000000000000000000000000000000008152600401610e30929190613ea6565b60405180910390fd5b610e55610e45846116cd565b603d61172690919063ffffffff16565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915050919050565b610e81611813565b80603e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f6a12b3df6cba4203bd7fd06b816789f87de8c594299aed5717ae070fac781bac82604051610f1b91906136c5565b60405180910390a25050565b5f610f30611a00565b905090565b606060048054610f4490613d5a565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7090613d5a565b8015610fbb5780601f10610f9257610100808354040283529160200191610fbb565b820191905f5260205f20905b815481529060010190602001808311610f9e57829003601f168201915b5050505050905090565b5f61100b603c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611db4565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff169050919050565b611036611813565b6110408282611981565b5050565b5f61104d61154f565b33603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156110d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cf90613dfa565b60405180910390fd5b83603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115a90613dfa565b60405180910390fd5b61116b611590565b6111758585611e16565b925061117f61160d565b505092915050565b834211156111cc57836040517f4683af0e0000000000000000000000000000000000000000000000000000000081526004016111c391906136ed565b60405180910390fd5b5f61122d6112257fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf89898960405160200161120a9493929190613fc2565b60405160208183030381529060405280519060200120611e38565b858585611e51565b90506112398187611e7f565b6112438188611a0f565b50505050505050565b8342111561129157836040517f6279130200000000000000000000000000000000000000000000000000000000815260040161128891906136ed565b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886112bf8c611ed6565b896040516020016112d596959493929190614005565b6040516020818303038152906040528051906020012090505f6112f782611e38565b90505f61130682878787611e51565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461137a57808a6040517f4b800e46000000000000000000000000000000000000000000000000000000008152600401611371929190614064565b60405180910390fd5b6113858a8a8a611f29565b50505050505050505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61141b6134f6565b6114258383611f3b565b905092915050565b611435611813565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114a5575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161149c9190613820565b60405180910390fd5b6114ae81611b74565b50565b5f603e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f8183611510919061408b565b905092915050565b5f818361152591906140d8565b905092915050565b5f8061153761197a565b9050611544818585611f29565b600191505092915050565b611557610c50565b1561158e576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6002600554036115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cc9061416f565b60405180910390fd5b6002600581905550565b5f806115e961197a565b90506115f6858285611c39565b611601858585611f9a565b60019150509392505050565b6001600581905550565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561169257507f000000000000000000000000000000000000000000000000000000000000000046145b156116bf577f000000000000000000000000000000000000000000000000000000000000000090506116ca565b6116c761208a565b90505b90565b5f65ffffffffffff801682111561171e576030826040517f6dfcc6500000000000000000000000000000000000000000000000000000000081526004016117159291906141cf565b60405180910390fd5b819050919050565b5f80835f018054905090505f8082905060058311156117a7575f6117498461211f565b8461175491906141f6565b9050611762875f01826122b9565b5f015f9054906101000a900465ffffffffffff1665ffffffffffff168665ffffffffffff161015611795578091506117a5565b6001816117a29190613efa565b92505b505b5f6117b6875f018785856122cb565b90505f8114611805576117d7875f016001836117d291906141f6565b6122b9565b5f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff16611807565b5f5b94505050505092915050565b61181b61197a565b73ffffffffffffffffffffffffffffffffffffffff16611839610db6565b73ffffffffffffffffffffffffffffffffffffffff16146118985761185c61197a565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161188f9190613820565b60405180910390fd5b565b6118a2612340565b5f60375f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6118e461197a565b6040516118f19190613820565b60405180910390a1565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361196b575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016119629190613820565b60405180910390fd5b6119765f8383612380565b5050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119f1575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016119e89190613820565b60405180910390fd5b6119fc825f83612380565b5050565b5f611a0a436116cd565b905090565b5f611a1983610bd2565b905081603b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a4611b1a8183611b1586612390565b6123a1565b505050565b5f611b6d611b68603c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20612611565b612620565b9050919050565b5f603760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603760016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f611c448484611391565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611cc55781811015611cb6578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401611cad93929190614229565b60405180910390fd5b611cc484848484035f612677565b5b50505050565b5f611cd582612846565b9050919050565b611ce461154f565b600160375f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d2761197a565b604051611d349190613820565b60405180910390a1565b6060611d7460387f000000000000000000000000000000000000000000000000000000000000000061288c90919063ffffffff16565b905090565b6060611daf60397f000000000000000000000000000000000000000000000000000000000000000061288c90919063ffffffff16565b905090565b5f80825f018054905090505f8114611e0c57611dde835f01600183611dd991906141f6565b6122b9565b5f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff16611e0e565b5f5b915050919050565b5f80611e2061197a565b9050611e2d818585611f9a565b600191505092915050565b5f611e4a611e44611617565b83612939565b9050919050565b5f805f80611e6188888888612979565b925092509250611e718282612a60565b829350505050949350505050565b5f611e8983611ed6565b9050808214611ed15782816040517f752d88c0000000000000000000000000000000000000000000000000000000008152600401611ec892919061425e565b60405180910390fd5b505050565b5f603a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190600101919050559050919050565b611f368383836001612677565b505050565b611f436134f6565b611f9282603c5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20612bc290919063ffffffff16565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361200a575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016120019190613820565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361207a575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016120719190613820565b60405180910390fd5b612085838383612380565b505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000004630604051602001612104959493929190614285565b60405160208183030381529060405280519060200120905090565b5f60018211612130578190506122b4565b5f8290505f60019050700100000000000000000000000000000000821061216057608082901c9150604081901b90505b68010000000000000000821061217f57604082901c9150602081901b90505b640100000000821061219a57602082901c9150601081901b90505b6201000082106121b357601082901c9150600881901b90505b61010082106121cb57600882901c9150600481901b90505b601082106121e257600482901c9150600281901b90505b600482106121f257600181901b90505b600181600302901c9050600181858161220e5761220d6142d6565b5b048201901c90506001818581612227576122266142d6565b5b048201901c905060018185816122405761223f6142d6565b5b048201901c90506001818581612259576122586142d6565b5b048201901c90506001818581612272576122716142d6565b5b048201901c9050600181858161228b5761228a6142d6565b5b048201901c90506122ad8185816122a5576122a46142d6565b5b048211612c91565b8103925050505b919050565b5f825f528160205f2001905092915050565b5f5b81831015612335575f6122e08484612c9c565b90508465ffffffffffff166122f587836122b9565b5f015f9054906101000a900465ffffffffffff1665ffffffffffff16111561231f5780925061232f565b60018161232c9190613efa565b93505b506122cd565b819050949350505050565b612348610c50565b61237e576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b61238b838383612cc1565b505050565b5f61239a82610c76565b9050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156123dc57505f81115b1561260c575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146124f6575f80612467603c5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061151861246286612d6f565b612ddc565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915079ffffffffffffffffffffffffffffffffffffffffffffffffffff1691508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516124eb929190614303565b60405180910390a250505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461260b575f8061257c603c5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061150361257786612d6f565b612ddc565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915079ffffffffffffffffffffffffffffffffffffffffffffffffffff1691508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612600929190614303565b60405180910390a250505b5b505050565b5f815f01805490509050919050565b5f63ffffffff801682111561266f576020826040517f6dfcc650000000000000000000000000000000000000000000000000000000008152600401612666929190614363565b60405180910390fd5b819050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036126e7575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016126de9190613820565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612757575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161274e9190613820565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015612840578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161283791906136ed565b60405180910390a35b50505050565b5f603a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b606060ff5f1b83146128a8576128a183612e1b565b9050612933565b8180546128b490613d5a565b80601f01602080910402602001604051908101604052809291908181526020018280546128e090613d5a565b801561292b5780601f106129025761010080835404028352916020019161292b565b820191905f5260205f20905b81548152906001019060200180831161290e57829003601f168201915b505050505090505b92915050565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0845f1c11156129b5575f600385925092509250612a56565b5f6001888888886040515f81526020016040526040516129d8949392919061438a565b6020604051602081039080840390855afa1580156129f8573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612a49575f60015f801b93509350935050612a56565b805f805f1b935093509350505b9450945094915050565b5f6003811115612a7357612a726143cd565b5b826003811115612a8657612a856143cd565b5b0315612bbe5760016003811115612aa057612a9f6143cd565b5b826003811115612ab357612ab26143cd565b5b03612aea576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026003811115612afe57612afd6143cd565b5b826003811115612b1157612b106143cd565b5b03612b5557805f1c6040517ffce698f7000000000000000000000000000000000000000000000000000000008152600401612b4c91906136ed565b60405180910390fd5b600380811115612b6857612b676143cd565b5b826003811115612b7b57612b7a6143cd565b5b03612bbd57806040517fd78bce0c000000000000000000000000000000000000000000000000000000008152600401612bb491906137a2565b60405180910390fd5b5b5050565b612bca6134f6565b825f018263ffffffff1681548110612be557612be46143fa565b5b905f5260205f20016040518060400160405290815f82015f9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020015f820160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff1679ffffffffffffffffffffffffffffffffffffffffffffffffffff1679ffffffffffffffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b5f8115159050919050565b5f6002828418612cac9190614427565b828416612cb99190613efa565b905092915050565b612ccc838383612e8d565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d5f575f612d08610853565b90505f612d13612ea5565b905080821115612d5c5781816040517f1cb15d26000000000000000000000000000000000000000000000000000000008152600401612d53929190614303565b60405180910390fd5b50505b612d6a838383612ec8565b505050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff8016821115612dd45760d0826040517f6dfcc650000000000000000000000000000000000000000000000000000000008152600401612dcb929190614490565b60405180910390fd5b819050919050565b5f80612e0f612de9610f27565b612dff612df588611db4565b868863ffffffff16565b87612f809092919063ffffffff16565b91509150935093915050565b60605f612e2783612f9b565b90505f602067ffffffffffffffff811115612e4557612e44613f95565b5b6040519080825280601f01601f191660200182016040528015612e775781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b612e9561154f565b612ea0838383612fe9565b505050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff8016905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f1457612f11603d611503612f0c84612d6f565b612ddc565b50505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f6057612f5d603d611518612f5884612d6f565b612ddc565b50505b612f7b612f6c84610bd2565b612f7584610bd2565b836123a1565b505050565b5f80612f8f855f018585613202565b91509150935093915050565b5f8060ff835f1c169050601f811115612fe0576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613039578060025f82825461302d9190613efa565b92505081905550613107565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156130c2578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016130b993929190614229565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361314e578060025f8282540392505081905550613198565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516131f591906136ed565b60405180910390a3505050565b5f805f858054905090505f81111561340e575f61322b8760018461322691906141f6565b6122b9565b90505f815f015f9054906101000a900465ffffffffffff1690505f825f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff1690508765ffffffffffff168265ffffffffffff1611156132bc576040517f2520601d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8765ffffffffffff168265ffffffffffff16036133265786835f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506133ff565b8860405180604001604052808a65ffffffffffff1681526020018979ffffffffffffffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003905f5260205f20015f909190919091505f820151815f015f6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506020820151815f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b808795509550505050506134ee565b8560405180604001604052808765ffffffffffff1681526020018679ffffffffffffffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003905f5260205f20015f909190919091505f820151815f015f6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506020820151815f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505f8492509250505b935093915050565b60405180604001604052805f65ffffffffffff1681526020015f79ffffffffffffffffffffffffffffffffffffffffffffffffffff1681525090565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561356957808201518184015260208101905061354e565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61358e82613532565b613598818561353c565b93506135a881856020860161354c565b6135b181613574565b840191505092915050565b5f6020820190508181035f8301526135d48184613584565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613609826135e0565b9050919050565b613619816135ff565b8114613623575f80fd5b50565b5f8135905061363481613610565b92915050565b5f819050919050565b61364c8161363a565b8114613656575f80fd5b50565b5f8135905061366781613643565b92915050565b5f8060408385031215613683576136826135dc565b5b5f61369085828601613626565b92505060206136a185828601613659565b9150509250929050565b5f8115159050919050565b6136bf816136ab565b82525050565b5f6020820190506136d85f8301846136b6565b92915050565b6136e78161363a565b82525050565b5f6020820190506137005f8301846136de565b92915050565b5f805f6060848603121561371d5761371c6135dc565b5b5f61372a86828701613626565b935050602061373b86828701613626565b925050604061374c86828701613659565b9150509250925092565b5f60ff82169050919050565b61376b81613756565b82525050565b5f6020820190506137845f830184613762565b92915050565b5f819050919050565b61379c8161378a565b82525050565b5f6020820190506137b55f830184613793565b92915050565b5f602082840312156137d0576137cf6135dc565b5b5f6137dd84828501613659565b91505092915050565b5f602082840312156137fb576137fa6135dc565b5b5f61380884828501613626565b91505092915050565b61381a816135ff565b82525050565b5f6020820190506138335f830184613811565b92915050565b5f63ffffffff82169050919050565b61385181613839565b82525050565b5f60208201905061386a5f830184613848565b92915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6138a481613870565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6138dc8161363a565b82525050565b5f6138ed83836138d3565b60208301905092915050565b5f602082019050919050565b5f61390f826138aa565b61391981856138b4565b9350613924836138c4565b805f5b8381101561395457815161393b88826138e2565b9750613946836138f9565b925050600181019050613927565b5085935050505092915050565b5f60e0820190506139745f83018a61389b565b81810360208301526139868189613584565b9050818103604083015261399a8188613584565b90506139a960608301876136de565b6139b66080830186613811565b6139c360a0830185613793565b81810360c08301526139d58184613905565b905098975050505050505050565b6139ec816136ab565b81146139f6575f80fd5b50565b5f81359050613a07816139e3565b92915050565b5f8060408385031215613a2357613a226135dc565b5b5f613a3085828601613626565b9250506020613a41858286016139f9565b9150509250929050565b5f65ffffffffffff82169050919050565b613a6581613a4b565b82525050565b5f602082019050613a7e5f830184613a5c565b92915050565b613a8d81613756565b8114613a97575f80fd5b50565b5f81359050613aa881613a84565b92915050565b613ab78161378a565b8114613ac1575f80fd5b50565b5f81359050613ad281613aae565b92915050565b5f805f805f8060c08789031215613af257613af16135dc565b5b5f613aff89828a01613626565b9650506020613b1089828a01613659565b9550506040613b2189828a01613659565b9450506060613b3289828a01613a9a565b9350506080613b4389828a01613ac4565b92505060a0613b5489828a01613ac4565b9150509295509295509295565b5f805f805f805f60e0888a031215613b7c57613b7b6135dc565b5b5f613b898a828b01613626565b9750506020613b9a8a828b01613626565b9650506040613bab8a828b01613659565b9550506060613bbc8a828b01613659565b9450506080613bcd8a828b01613a9a565b93505060a0613bde8a828b01613ac4565b92505060c0613bef8a828b01613ac4565b91505092959891949750929550565b5f8060408385031215613c1457613c136135dc565b5b5f613c2185828601613626565b9250506020613c3285828601613626565b9150509250929050565b613c4581613839565b8114613c4f575f80fd5b50565b5f81359050613c6081613c3c565b92915050565b5f8060408385031215613c7c57613c7b6135dc565b5b5f613c8985828601613626565b9250506020613c9a85828601613c52565b9150509250929050565b613cad81613a4b565b82525050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b613ce181613cb3565b82525050565b604082015f820151613cfb5f850182613ca4565b506020820151613d0e6020850182613cd8565b50505050565b5f604082019050613d275f830184613ce7565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613d7157607f821691505b602082108103613d8457613d83613d2d565b5b50919050565b7f4368656574436f696e3a204164647265737320697320626c61636b6c697374655f8201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b5f613de460218361353c565b9150613def82613d8a565b604082019050919050565b5f6020820190508181035f830152613e1181613dd8565b9050919050565b7f4368656574436f696e3a20526573657420616c6c6f77616e636520746f207a655f8201527f726f206669727374000000000000000000000000000000000000000000000000602082015250565b5f613e7260288361353c565b9150613e7d82613e18565b604082019050919050565b5f6020820190508181035f830152613e9f81613e66565b9050919050565b5f604082019050613eb95f8301856136de565b613ec66020830184613a5c565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613f048261363a565b9150613f0f8361363a565b9250828201905080821115613f2757613f26613ecd565b5b92915050565b7f4368656574436f696e3a204d617820737570706c7920657863656564656400005f82015250565b5f613f61601e8361353c565b9150613f6c82613f2d565b602082019050919050565b5f6020820190508181035f830152613f8e81613f55565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f608082019050613fd55f830187613793565b613fe26020830186613811565b613fef60408301856136de565b613ffc60608301846136de565b95945050505050565b5f60c0820190506140185f830189613793565b6140256020830188613811565b6140326040830187613811565b61403f60608301866136de565b61404c60808301856136de565b61405960a08301846136de565b979650505050505050565b5f6040820190506140775f830185613811565b6140846020830184613811565b9392505050565b5f61409582613cb3565b91506140a083613cb3565b9250828201905079ffffffffffffffffffffffffffffffffffffffffffffffffffff8111156140d2576140d1613ecd565b5b92915050565b5f6140e282613cb3565b91506140ed83613cb3565b9250828203905079ffffffffffffffffffffffffffffffffffffffffffffffffffff81111561411f5761411e613ecd565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f614159601f8361353c565b915061416482614125565b602082019050919050565b5f6020820190508181035f8301526141868161414d565b9050919050565b5f819050919050565b5f819050919050565b5f6141b96141b46141af8461418d565b614196565b613756565b9050919050565b6141c98161419f565b82525050565b5f6040820190506141e25f8301856141c0565b6141ef60208301846136de565b9392505050565b5f6142008261363a565b915061420b8361363a565b925082820390508181111561422357614222613ecd565b5b92915050565b5f60608201905061423c5f830186613811565b61424960208301856136de565b61425660408301846136de565b949350505050565b5f6040820190506142715f830185613811565b61427e60208301846136de565b9392505050565b5f60a0820190506142985f830188613793565b6142a56020830187613793565b6142b26040830186613793565b6142bf60608301856136de565b6142cc6080830184613811565b9695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6040820190506143165f8301856136de565b61432360208301846136de565b9392505050565b5f819050919050565b5f61434d6143486143438461432a565b614196565b613756565b9050919050565b61435d81614333565b82525050565b5f6040820190506143765f830185614354565b61438360208301846136de565b9392505050565b5f60808201905061439d5f830187613793565b6143aa6020830186613762565b6143b76040830185613793565b6143c46060830184613793565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6144318261363a565b915061443c8361363a565b92508261444c5761444b6142d6565b5b828204905092915050565b5f819050919050565b5f61447a61447561447084614457565b614196565b613756565b9050919050565b61448a81614460565b82525050565b5f6040820190506144a35f830185614481565b6144b060208301846136de565b939250505056fea2646970667358221220043f5f655a2660d00e96904871efc77ec1440d77ffa597d4c528bea2f90cc3e564736f6c63430008140033
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061020f575f3560e01c806379cc6790116101235780639ab24eb0116100ab578063d505accf1161007a578063d505accf14610607578063dd62ed3e14610623578063f1127ed814610653578063f2fde38b14610683578063fd2b35281461069f5761020f565b80639ab24eb01461056f5780639dc29fac1461059f578063a9059cbb146105bb578063c3cda520146105eb5761020f565b80638da5cb5b116100f25780638da5cb5b146104c95780638e539e8c146104e75780639155e0831461051757806391ddadf41461053357806395d89b41146105515761020f565b806379cc67901461044f5780637ecebe001461046b5780638456cb591461049b57806384b0196e146104a55761020f565b806340c10f19116101a65780635c19a95c116101755780635c19a95c146103ab5780635c975abb146103c75780636fcfff45146103e557806370a0823114610415578063715018a6146104455761020f565b806340c10f191461032557806342966c68146103415780634bf5d7e91461035d578063587cde1e1461037b5761020f565b8063313ce567116101e2578063313ce567146102af5780633644e515146102cd5780633a46b1a8146102eb5780633f4ba83a1461031b5761020f565b806306fdde0314610213578063095ea7b31461023157806318160ddd1461026157806323b872dd1461027f575b5f80fd5b61021b6106cf565b60405161022891906135bc565b60405180910390f35b61024b6004803603810190610246919061366d565b61075f565b60405161025891906136c5565b60405180910390f35b610269610853565b60405161027691906136ed565b60405180910390f35b61029960048036038101906102949190613706565b61085c565b6040516102a691906136c5565b60405180910390f35b6102b76109a1565b6040516102c49190613771565b60405180910390f35b6102d56109a9565b6040516102e291906137a2565b60405180910390f35b6103056004803603810190610300919061366d565b6109b7565b60405161031291906136ed565b60405180910390f35b610323610a8d565b005b61033f600480360381019061033a919061366d565b610a9f565b005b61035b600480360381019061035691906137bb565b610b2a565b005b610365610b3e565b60405161037291906135bc565b60405180910390f35b610395600480360381019061039091906137e6565b610bd2565b6040516103a29190613820565b60405180910390f35b6103c560048036038101906103c091906137e6565b610c37565b005b6103cf610c50565b6040516103dc91906136c5565b60405180910390f35b6103ff60048036038101906103fa91906137e6565b610c65565b60405161040c9190613857565b60405180910390f35b61042f600480360381019061042a91906137e6565b610c76565b60405161043c91906136ed565b60405180910390f35b61044d610cbb565b005b6104696004803603810190610464919061366d565b610cce565b005b610485600480360381019061048091906137e6565b610cee565b60405161049291906136ed565b60405180910390f35b6104a3610cff565b005b6104ad610d11565b6040516104c09796959493929190613961565b60405180910390f35b6104d1610db6565b6040516104de9190613820565b60405180910390f35b61050160048036038101906104fc91906137bb565b610ddf565b60405161050e91906136ed565b60405180910390f35b610531600480360381019061052c9190613a0d565b610e79565b005b61053b610f27565b6040516105489190613a6b565b60405180910390f35b610559610f35565b60405161056691906135bc565b60405180910390f35b610589600480360381019061058491906137e6565b610fc5565b60405161059691906136ed565b60405180910390f35b6105b960048036038101906105b4919061366d565b61102e565b005b6105d560048036038101906105d0919061366d565b611044565b6040516105e291906136c5565b60405180910390f35b61060560048036038101906106009190613ad8565b611187565b005b610621600480360381019061061c9190613b61565b61124c565b005b61063d60048036038101906106389190613bfe565b611391565b60405161064a91906136ed565b60405180910390f35b61066d60048036038101906106689190613c66565b611413565b60405161067a9190613d14565b60405180910390f35b61069d600480360381019061069891906137e6565b61142d565b005b6106b960048036038101906106b491906137e6565b6114b1565b6040516106c691906136c5565b60405180910390f35b6060600380546106de90613d5a565b80601f016020809104026020016040519081016040528092919081815260200182805461070a90613d5a565b80156107555780601f1061072c57610100808354040283529160200191610755565b820191905f5260205f20905b81548152906001019060200180831161073857829003601f168201915b5050505050905090565b5f82603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156107eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e290613dfa565b60405180910390fd5b5f83148061080157505f6107ff3386611391565b145b610840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083790613e88565b60405180910390fd5b61084a848461152d565b91505092915050565b5f600254905090565b5f61086561154f565b83603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156108f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e790613dfa565b60405180910390fd5b83603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561097b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097290613dfa565b60405180910390fd5b610983611590565b61098e8686866115df565b925061099861160d565b50509392505050565b5f6012905090565b5f6109b2611617565b905090565b5f806109c1610f27565b90508065ffffffffffff168310610a115782816040517fecd3f81e000000000000000000000000000000000000000000000000000000008152600401610a08929190613ea6565b60405180910390fd5b610a68610a1d846116cd565b603c5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061172690919063ffffffff16565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff1691505092915050565b610a95611813565b610a9d61189a565b565b610aa7611813565b7f0000000000000000000000000000000000000000204fce5e3e2502611000000081610ad1610853565b610adb9190613efa565b1115610b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1390613f77565b60405180910390fd5b610b2682826118fb565b5050565b610b3b610b3561197a565b82611981565b50565b6060610b48611a00565b65ffffffffffff16610b58610f27565b65ffffffffffff1614610b97576040517f6ff0714000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280601d81526020017f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000815250905090565b5f603b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f610c4061197a565b9050610c4c8183611a0f565b5050565b5f60375f9054906101000a900460ff16905090565b5f610c6f82611b1f565b9050919050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610cc3611813565b610ccc5f611b74565b565b610ce082610cda61197a565b83611c39565b610cea8282611981565b5050565b5f610cf882611ccb565b9050919050565b610d07611813565b610d0f611cdc565b565b5f6060805f805f6060610d22611d3e565b610d2a611d79565b46305f801b5f67ffffffffffffffff811115610d4957610d48613f95565b5b604051908082528060200260200182016040528015610d775781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b5f603760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f80610de9610f27565b90508065ffffffffffff168310610e395782816040517fecd3f81e000000000000000000000000000000000000000000000000000000008152600401610e30929190613ea6565b60405180910390fd5b610e55610e45846116cd565b603d61172690919063ffffffff16565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915050919050565b610e81611813565b80603e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f6a12b3df6cba4203bd7fd06b816789f87de8c594299aed5717ae070fac781bac82604051610f1b91906136c5565b60405180910390a25050565b5f610f30611a00565b905090565b606060048054610f4490613d5a565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7090613d5a565b8015610fbb5780601f10610f9257610100808354040283529160200191610fbb565b820191905f5260205f20905b815481529060010190602001808311610f9e57829003601f168201915b5050505050905090565b5f61100b603c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611db4565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff169050919050565b611036611813565b6110408282611981565b5050565b5f61104d61154f565b33603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156110d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cf90613dfa565b60405180910390fd5b83603e5f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115a90613dfa565b60405180910390fd5b61116b611590565b6111758585611e16565b925061117f61160d565b505092915050565b834211156111cc57836040517f4683af0e0000000000000000000000000000000000000000000000000000000081526004016111c391906136ed565b60405180910390fd5b5f61122d6112257fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf89898960405160200161120a9493929190613fc2565b60405160208183030381529060405280519060200120611e38565b858585611e51565b90506112398187611e7f565b6112438188611a0f565b50505050505050565b8342111561129157836040517f6279130200000000000000000000000000000000000000000000000000000000815260040161128891906136ed565b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886112bf8c611ed6565b896040516020016112d596959493929190614005565b6040516020818303038152906040528051906020012090505f6112f782611e38565b90505f61130682878787611e51565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461137a57808a6040517f4b800e46000000000000000000000000000000000000000000000000000000008152600401611371929190614064565b60405180910390fd5b6113858a8a8a611f29565b50505050505050505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61141b6134f6565b6114258383611f3b565b905092915050565b611435611813565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114a5575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161149c9190613820565b60405180910390fd5b6114ae81611b74565b50565b5f603e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f8183611510919061408b565b905092915050565b5f818361152591906140d8565b905092915050565b5f8061153761197a565b9050611544818585611f29565b600191505092915050565b611557610c50565b1561158e576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6002600554036115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cc9061416f565b60405180910390fd5b6002600581905550565b5f806115e961197a565b90506115f6858285611c39565b611601858585611f9a565b60019150509392505050565b6001600581905550565b5f7f00000000000000000000000060c4dca358374da217c9f8d96a69d2df7530879573ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561169257507f000000000000000000000000000000000000000000000000000000000000009246145b156116bf577fb6d928f459ccf82f0efc8775176bb1e7d464a568f26eaa686aa6aa20b31e741190506116ca565b6116c761208a565b90505b90565b5f65ffffffffffff801682111561171e576030826040517f6dfcc6500000000000000000000000000000000000000000000000000000000081526004016117159291906141cf565b60405180910390fd5b819050919050565b5f80835f018054905090505f8082905060058311156117a7575f6117498461211f565b8461175491906141f6565b9050611762875f01826122b9565b5f015f9054906101000a900465ffffffffffff1665ffffffffffff168665ffffffffffff161015611795578091506117a5565b6001816117a29190613efa565b92505b505b5f6117b6875f018785856122cb565b90505f8114611805576117d7875f016001836117d291906141f6565b6122b9565b5f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff16611807565b5f5b94505050505092915050565b61181b61197a565b73ffffffffffffffffffffffffffffffffffffffff16611839610db6565b73ffffffffffffffffffffffffffffffffffffffff16146118985761185c61197a565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161188f9190613820565b60405180910390fd5b565b6118a2612340565b5f60375f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6118e461197a565b6040516118f19190613820565b60405180910390a1565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361196b575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016119629190613820565b60405180910390fd5b6119765f8383612380565b5050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119f1575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016119e89190613820565b60405180910390fd5b6119fc825f83612380565b5050565b5f611a0a436116cd565b905090565b5f611a1983610bd2565b905081603b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a4611b1a8183611b1586612390565b6123a1565b505050565b5f611b6d611b68603c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20612611565b612620565b9050919050565b5f603760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603760016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f611c448484611391565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611cc55781811015611cb6578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401611cad93929190614229565b60405180910390fd5b611cc484848484035f612677565b5b50505050565b5f611cd582612846565b9050919050565b611ce461154f565b600160375f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d2761197a565b604051611d349190613820565b60405180910390a1565b6060611d7460387f436865657400000000000000000000000000000000000000000000000000000561288c90919063ffffffff16565b905090565b6060611daf60397f310000000000000000000000000000000000000000000000000000000000000161288c90919063ffffffff16565b905090565b5f80825f018054905090505f8114611e0c57611dde835f01600183611dd991906141f6565b6122b9565b5f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff16611e0e565b5f5b915050919050565b5f80611e2061197a565b9050611e2d818585611f9a565b600191505092915050565b5f611e4a611e44611617565b83612939565b9050919050565b5f805f80611e6188888888612979565b925092509250611e718282612a60565b829350505050949350505050565b5f611e8983611ed6565b9050808214611ed15782816040517f752d88c0000000000000000000000000000000000000000000000000000000008152600401611ec892919061425e565b60405180910390fd5b505050565b5f603a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190600101919050559050919050565b611f368383836001612677565b505050565b611f436134f6565b611f9282603c5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20612bc290919063ffffffff16565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361200a575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016120019190613820565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361207a575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016120719190613820565b60405180910390fd5b612085838383612380565b505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fd79f47745cd88b4e0c6b08c4a5c2f71e126ea3b8235ec90f37d6fe3a911976f37fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc64630604051602001612104959493929190614285565b60405160208183030381529060405280519060200120905090565b5f60018211612130578190506122b4565b5f8290505f60019050700100000000000000000000000000000000821061216057608082901c9150604081901b90505b68010000000000000000821061217f57604082901c9150602081901b90505b640100000000821061219a57602082901c9150601081901b90505b6201000082106121b357601082901c9150600881901b90505b61010082106121cb57600882901c9150600481901b90505b601082106121e257600482901c9150600281901b90505b600482106121f257600181901b90505b600181600302901c9050600181858161220e5761220d6142d6565b5b048201901c90506001818581612227576122266142d6565b5b048201901c905060018185816122405761223f6142d6565b5b048201901c90506001818581612259576122586142d6565b5b048201901c90506001818581612272576122716142d6565b5b048201901c9050600181858161228b5761228a6142d6565b5b048201901c90506122ad8185816122a5576122a46142d6565b5b048211612c91565b8103925050505b919050565b5f825f528160205f2001905092915050565b5f5b81831015612335575f6122e08484612c9c565b90508465ffffffffffff166122f587836122b9565b5f015f9054906101000a900465ffffffffffff1665ffffffffffff16111561231f5780925061232f565b60018161232c9190613efa565b93505b506122cd565b819050949350505050565b612348610c50565b61237e576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b61238b838383612cc1565b505050565b5f61239a82610c76565b9050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156123dc57505f81115b1561260c575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146124f6575f80612467603c5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061151861246286612d6f565b612ddc565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915079ffffffffffffffffffffffffffffffffffffffffffffffffffff1691508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72483836040516124eb929190614303565b60405180910390a250505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461260b575f8061257c603c5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061150361257786612d6f565b612ddc565b79ffffffffffffffffffffffffffffffffffffffffffffffffffff16915079ffffffffffffffffffffffffffffffffffffffffffffffffffff1691508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612600929190614303565b60405180910390a250505b5b505050565b5f815f01805490509050919050565b5f63ffffffff801682111561266f576020826040517f6dfcc650000000000000000000000000000000000000000000000000000000008152600401612666929190614363565b60405180910390fd5b819050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036126e7575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016126de9190613820565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612757575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161274e9190613820565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015612840578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161283791906136ed565b60405180910390a35b50505050565b5f603a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b606060ff5f1b83146128a8576128a183612e1b565b9050612933565b8180546128b490613d5a565b80601f01602080910402602001604051908101604052809291908181526020018280546128e090613d5a565b801561292b5780601f106129025761010080835404028352916020019161292b565b820191905f5260205f20905b81548152906001019060200180831161290e57829003601f168201915b505050505090505b92915050565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0845f1c11156129b5575f600385925092509250612a56565b5f6001888888886040515f81526020016040526040516129d8949392919061438a565b6020604051602081039080840390855afa1580156129f8573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612a49575f60015f801b93509350935050612a56565b805f805f1b935093509350505b9450945094915050565b5f6003811115612a7357612a726143cd565b5b826003811115612a8657612a856143cd565b5b0315612bbe5760016003811115612aa057612a9f6143cd565b5b826003811115612ab357612ab26143cd565b5b03612aea576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026003811115612afe57612afd6143cd565b5b826003811115612b1157612b106143cd565b5b03612b5557805f1c6040517ffce698f7000000000000000000000000000000000000000000000000000000008152600401612b4c91906136ed565b60405180910390fd5b600380811115612b6857612b676143cd565b5b826003811115612b7b57612b7a6143cd565b5b03612bbd57806040517fd78bce0c000000000000000000000000000000000000000000000000000000008152600401612bb491906137a2565b60405180910390fd5b5b5050565b612bca6134f6565b825f018263ffffffff1681548110612be557612be46143fa565b5b905f5260205f20016040518060400160405290815f82015f9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020015f820160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff1679ffffffffffffffffffffffffffffffffffffffffffffffffffff1679ffffffffffffffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b5f8115159050919050565b5f6002828418612cac9190614427565b828416612cb99190613efa565b905092915050565b612ccc838383612e8d565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d5f575f612d08610853565b90505f612d13612ea5565b905080821115612d5c5781816040517f1cb15d26000000000000000000000000000000000000000000000000000000008152600401612d53929190614303565b60405180910390fd5b50505b612d6a838383612ec8565b505050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff8016821115612dd45760d0826040517f6dfcc650000000000000000000000000000000000000000000000000000000008152600401612dcb929190614490565b60405180910390fd5b819050919050565b5f80612e0f612de9610f27565b612dff612df588611db4565b868863ffffffff16565b87612f809092919063ffffffff16565b91509150935093915050565b60605f612e2783612f9b565b90505f602067ffffffffffffffff811115612e4557612e44613f95565b5b6040519080825280601f01601f191660200182016040528015612e775781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b612e9561154f565b612ea0838383612fe9565b505050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff8016905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f1457612f11603d611503612f0c84612d6f565b612ddc565b50505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f6057612f5d603d611518612f5884612d6f565b612ddc565b50505b612f7b612f6c84610bd2565b612f7584610bd2565b836123a1565b505050565b5f80612f8f855f018585613202565b91509150935093915050565b5f8060ff835f1c169050601f811115612fe0576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613039578060025f82825461302d9190613efa565b92505081905550613107565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156130c2578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016130b993929190614229565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361314e578060025f8282540392505081905550613198565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516131f591906136ed565b60405180910390a3505050565b5f805f858054905090505f81111561340e575f61322b8760018461322691906141f6565b6122b9565b90505f815f015f9054906101000a900465ffffffffffff1690505f825f0160069054906101000a900479ffffffffffffffffffffffffffffffffffffffffffffffffffff1690508765ffffffffffff168265ffffffffffff1611156132bc576040517f2520601d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8765ffffffffffff168265ffffffffffff16036133265786835f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506133ff565b8860405180604001604052808a65ffffffffffff1681526020018979ffffffffffffffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003905f5260205f20015f909190919091505f820151815f015f6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506020820151815f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b808795509550505050506134ee565b8560405180604001604052808765ffffffffffff1681526020018679ffffffffffffffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003905f5260205f20015f909190919091505f820151815f015f6101000a81548165ffffffffffff021916908365ffffffffffff1602179055506020820151815f0160066101000a81548179ffffffffffffffffffffffffffffffffffffffffffffffffffff021916908379ffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505f8492509250505b935093915050565b60405180604001604052805f65ffffffffffff1681526020015f79ffffffffffffffffffffffffffffffffffffffffffffffffffff1681525090565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561356957808201518184015260208101905061354e565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61358e82613532565b613598818561353c565b93506135a881856020860161354c565b6135b181613574565b840191505092915050565b5f6020820190508181035f8301526135d48184613584565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613609826135e0565b9050919050565b613619816135ff565b8114613623575f80fd5b50565b5f8135905061363481613610565b92915050565b5f819050919050565b61364c8161363a565b8114613656575f80fd5b50565b5f8135905061366781613643565b92915050565b5f8060408385031215613683576136826135dc565b5b5f61369085828601613626565b92505060206136a185828601613659565b9150509250929050565b5f8115159050919050565b6136bf816136ab565b82525050565b5f6020820190506136d85f8301846136b6565b92915050565b6136e78161363a565b82525050565b5f6020820190506137005f8301846136de565b92915050565b5f805f6060848603121561371d5761371c6135dc565b5b5f61372a86828701613626565b935050602061373b86828701613626565b925050604061374c86828701613659565b9150509250925092565b5f60ff82169050919050565b61376b81613756565b82525050565b5f6020820190506137845f830184613762565b92915050565b5f819050919050565b61379c8161378a565b82525050565b5f6020820190506137b55f830184613793565b92915050565b5f602082840312156137d0576137cf6135dc565b5b5f6137dd84828501613659565b91505092915050565b5f602082840312156137fb576137fa6135dc565b5b5f61380884828501613626565b91505092915050565b61381a816135ff565b82525050565b5f6020820190506138335f830184613811565b92915050565b5f63ffffffff82169050919050565b61385181613839565b82525050565b5f60208201905061386a5f830184613848565b92915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6138a481613870565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6138dc8161363a565b82525050565b5f6138ed83836138d3565b60208301905092915050565b5f602082019050919050565b5f61390f826138aa565b61391981856138b4565b9350613924836138c4565b805f5b8381101561395457815161393b88826138e2565b9750613946836138f9565b925050600181019050613927565b5085935050505092915050565b5f60e0820190506139745f83018a61389b565b81810360208301526139868189613584565b9050818103604083015261399a8188613584565b90506139a960608301876136de565b6139b66080830186613811565b6139c360a0830185613793565b81810360c08301526139d58184613905565b905098975050505050505050565b6139ec816136ab565b81146139f6575f80fd5b50565b5f81359050613a07816139e3565b92915050565b5f8060408385031215613a2357613a226135dc565b5b5f613a3085828601613626565b9250506020613a41858286016139f9565b9150509250929050565b5f65ffffffffffff82169050919050565b613a6581613a4b565b82525050565b5f602082019050613a7e5f830184613a5c565b92915050565b613a8d81613756565b8114613a97575f80fd5b50565b5f81359050613aa881613a84565b92915050565b613ab78161378a565b8114613ac1575f80fd5b50565b5f81359050613ad281613aae565b92915050565b5f805f805f8060c08789031215613af257613af16135dc565b5b5f613aff89828a01613626565b9650506020613b1089828a01613659565b9550506040613b2189828a01613659565b9450506060613b3289828a01613a9a565b9350506080613b4389828a01613ac4565b92505060a0613b5489828a01613ac4565b9150509295509295509295565b5f805f805f805f60e0888a031215613b7c57613b7b6135dc565b5b5f613b898a828b01613626565b9750506020613b9a8a828b01613626565b9650506040613bab8a828b01613659565b9550506060613bbc8a828b01613659565b9450506080613bcd8a828b01613a9a565b93505060a0613bde8a828b01613ac4565b92505060c0613bef8a828b01613ac4565b91505092959891949750929550565b5f8060408385031215613c1457613c136135dc565b5b5f613c2185828601613626565b9250506020613c3285828601613626565b9150509250929050565b613c4581613839565b8114613c4f575f80fd5b50565b5f81359050613c6081613c3c565b92915050565b5f8060408385031215613c7c57613c7b6135dc565b5b5f613c8985828601613626565b9250506020613c9a85828601613c52565b9150509250929050565b613cad81613a4b565b82525050565b5f79ffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b613ce181613cb3565b82525050565b604082015f820151613cfb5f850182613ca4565b506020820151613d0e6020850182613cd8565b50505050565b5f604082019050613d275f830184613ce7565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613d7157607f821691505b602082108103613d8457613d83613d2d565b5b50919050565b7f4368656574436f696e3a204164647265737320697320626c61636b6c697374655f8201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b5f613de460218361353c565b9150613def82613d8a565b604082019050919050565b5f6020820190508181035f830152613e1181613dd8565b9050919050565b7f4368656574436f696e3a20526573657420616c6c6f77616e636520746f207a655f8201527f726f206669727374000000000000000000000000000000000000000000000000602082015250565b5f613e7260288361353c565b9150613e7d82613e18565b604082019050919050565b5f6020820190508181035f830152613e9f81613e66565b9050919050565b5f604082019050613eb95f8301856136de565b613ec66020830184613a5c565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613f048261363a565b9150613f0f8361363a565b9250828201905080821115613f2757613f26613ecd565b5b92915050565b7f4368656574436f696e3a204d617820737570706c7920657863656564656400005f82015250565b5f613f61601e8361353c565b9150613f6c82613f2d565b602082019050919050565b5f6020820190508181035f830152613f8e81613f55565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f608082019050613fd55f830187613793565b613fe26020830186613811565b613fef60408301856136de565b613ffc60608301846136de565b95945050505050565b5f60c0820190506140185f830189613793565b6140256020830188613811565b6140326040830187613811565b61403f60608301866136de565b61404c60808301856136de565b61405960a08301846136de565b979650505050505050565b5f6040820190506140775f830185613811565b6140846020830184613811565b9392505050565b5f61409582613cb3565b91506140a083613cb3565b9250828201905079ffffffffffffffffffffffffffffffffffffffffffffffffffff8111156140d2576140d1613ecd565b5b92915050565b5f6140e282613cb3565b91506140ed83613cb3565b9250828203905079ffffffffffffffffffffffffffffffffffffffffffffffffffff81111561411f5761411e613ecd565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f614159601f8361353c565b915061416482614125565b602082019050919050565b5f6020820190508181035f8301526141868161414d565b9050919050565b5f819050919050565b5f819050919050565b5f6141b96141b46141af8461418d565b614196565b613756565b9050919050565b6141c98161419f565b82525050565b5f6040820190506141e25f8301856141c0565b6141ef60208301846136de565b9392505050565b5f6142008261363a565b915061420b8361363a565b925082820390508181111561422357614222613ecd565b5b92915050565b5f60608201905061423c5f830186613811565b61424960208301856136de565b61425660408301846136de565b949350505050565b5f6040820190506142715f830185613811565b61427e60208301846136de565b9392505050565b5f60a0820190506142985f830188613793565b6142a56020830187613793565b6142b26040830186613793565b6142bf60608301856136de565b6142cc6080830184613811565b9695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6040820190506143165f8301856136de565b61432360208301846136de565b9392505050565b5f819050919050565b5f61434d6143486143438461432a565b614196565b613756565b9050919050565b61435d81614333565b82525050565b5f6040820190506143765f830185614354565b61438360208301846136de565b9392505050565b5f60808201905061439d5f830187613793565b6143aa6020830186613762565b6143b76040830185613793565b6143c46060830184613793565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6144318261363a565b915061443c8361363a565b92508261444c5761444b6142d6565b5b828204905092915050565b5f819050919050565b5f61447a61447561447084614457565b614196565b613756565b9050919050565b61448a81614460565b82525050565b5f6040820190506144a35f830185614481565b6144b060208301846136de565b939250505056fea2646970667358221220043f5f655a2660d00e96904871efc77ec1440d77ffa597d4c528bea2f90cc3e564736f6c63430008140033
Deployed Bytecode Sourcemap
197504:3881:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13038:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;200720:275;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;14140:99;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;199458:353;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;13991:84;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;133409:114;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;187936:370;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;200571:67;;;:::i;:::-;;199945:187;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;23011:89;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;187031:278;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;189591:119;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;189797:141;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;151566:86;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;197036:128;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;14302:118;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;135875:103;;;:::i;:::-;;23429:161;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;201209:173;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;200414:63;;;:::i;:::-;;127807:580;;;:::i;:::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;135200:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;188956:347;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;198774:191;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;186772:98;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;13248:95;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;187404:137;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;200221:101;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;199064:291;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;190021:573;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;132397:695;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;14870:142;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;197246:165;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;136133:220;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;201078:121;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;13038:91;13083:13;13116:5;13109:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13038:91;:::o;200720:275::-;200819:4;200801:7;198572:10;:19;198583:7;198572:19;;;;;;;;;;;;;;;;;;;;;;;;;198571:20;198563:66;;;;;;;;;;;;:::i;:::-;;;;;;;;;200854:1:::1;200844:6;:11;:50;;;;200893:1;200859:30;200869:10;200881:7;200859:9;:30::i;:::-;:35;200844:50;200836:103;;;;;;;;;;;;:::i;:::-;;;;;;;;;200957:30;200971:7;200980:6;200957:13;:30::i;:::-;200950:37;;200720:275:::0;;;;;:::o;14140:99::-;14192:7;14219:12;;14212:19;;14140:99;:::o;199458:353::-;199729:4;151171:19;:17;:19::i;:::-;199646:6:::1;198572:10;:19;198583:7;198572:19;;;;;;;;;;;;;;;;;;;;;;;;;198571:20;198563:66;;;;;;;;;;;;:::i;:::-;;;;;;;;;199678:9:::2;198572:10;:19;198583:7;198572:19;;;;;;;;;;;;;;;;;;;;;;;;;198571:20;198563:66;;;;;;;;;;;;:::i;:::-;;;;;;;;;148473:21:::3;:19;:21::i;:::-;199758:45:::4;199777:6;199785:9;199796:6;199758:18;:45::i;:::-;199751:52;;148517:20:::3;:18;:20::i;:::-;198640:1:::2;151201::::1;199458:353:::0;;;;;:::o;13991:84::-;14040:5;14065:2;14058:9;;13991:84;:::o;133409:114::-;133468:7;133495:20;:18;:20::i;:::-;133488:27;;133409:114;:::o;187936:370::-;188023:7;188043:23;188069:7;:5;:7::i;:::-;188043:33;;188104:16;188091:29;;:9;:29;188087:117;;188164:9;188175:16;188144:48;;;;;;;;;;;;:::i;:::-;;;;;;;;188087:117;188221:77;188269:28;188287:9;188269:17;:28::i;:::-;188221:20;:29;188242:7;188221:29;;;;;;;;;;;;;;;:47;;:77;;;;:::i;:::-;188214:84;;;;;187936:370;;;;:::o;200571:67::-;135086:13;:11;:13::i;:::-;200620:10:::1;:8;:10::i;:::-;200571:67::o:0;199945:187::-;135086:13;:11;:13::i;:::-;200051:10:::1;200041:6;200025:13;:11;:13::i;:::-;:22;;;;:::i;:::-;:36;;200017:79;;;;;;;;;;;;:::i;:::-;;;;;;;;;200107:17;200113:2;200117:6;200107:5;:17::i;:::-;199945:187:::0;;:::o;23011:89::-;23066:26;23072:12;:10;:12::i;:::-;23086:5;23066;:26::i;:::-;23011:89;:::o;187031:278::-;187082:13;187173:18;:16;:18::i;:::-;187162:29;;:7;:5;:7::i;:::-;:29;;;187158:95;;187215:26;;;;;;;;;;;;;;187158:95;187263:38;;;;;;;;;;;;;;;;;;;187031:278;:::o;189591:119::-;189656:7;189683:10;:19;189694:7;189683:19;;;;;;;;;;;;;;;;;;;;;;;;;189676:26;;189591:119;;;:::o;189797:141::-;189860:15;189878:12;:10;:12::i;:::-;189860:30;;189901:29;189911:7;189920:9;189901;:29::i;:::-;189849:89;189797:141;:::o;151566:86::-;151613:4;151637:7;;;;;;;;;;;151630:14;;151566:86;:::o;197036:128::-;197106:6;197132:24;197148:7;197132:15;:24::i;:::-;197125:31;;197036:128;;;:::o;14302:118::-;14367:7;14394:9;:18;14404:7;14394:18;;;;;;;;;;;;;;;;14387:25;;14302:118;;;:::o;135875:103::-;135086:13;:11;:13::i;:::-;135940:30:::1;135967:1;135940:18;:30::i;:::-;135875:103::o:0;23429:161::-;23505:45;23521:7;23530:12;:10;:12::i;:::-;23544:5;23505:15;:45::i;:::-;23561:21;23567:7;23576:5;23561;:21::i;:::-;23429:161;;:::o;201209:173::-;201327:7;201359:19;201372:5;201359:12;:19::i;:::-;201352:26;;201209:173;;;:::o;200414:63::-;135086:13;:11;:13::i;:::-;200461:8:::1;:6;:8::i;:::-;200414:63::o:0;127807:580::-;127910:13;127938:18;127971:21;128007:15;128037:25;128077:12;128104:27;128212:13;:11;:13::i;:::-;128240:16;:14;:16::i;:::-;128271:13;128307:4;128335:1;128327:10;;128366:1;128352:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128159:220;;;;;;;;;;;;;;;;;;;;;127807:580;;;;;;;:::o;135200:87::-;135246:7;135273:6;;;;;;;;;;;135266:13;;135200:87;:::o;188956:347::-;189032:7;189052:23;189078:7;:5;:7::i;:::-;189052:33;;189113:16;189100:29;;:9;:29;189096:117;;189173:9;189184:16;189153:48;;;;;;;;;;;;:::i;:::-;;;;;;;;189096:117;189230:65;189266:28;189284:9;189266:17;:28::i;:::-;189230:17;:35;;:65;;;;:::i;:::-;189223:72;;;;;188956:347;;;:::o;198774:191::-;135086:13;:11;:13::i;:::-;198888::::1;198866:10;:19;198877:7;198866:19;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;198934:7;198917:40;;;198943:13;198917:40;;;;;;:::i;:::-;;;;;;;;198774:191:::0;;:::o;186772:98::-;186818:6;186844:18;:16;:18::i;:::-;186837:25;;186772:98;:::o;13248:95::-;13295:13;13328:7;13321:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13248:95;:::o;187404:137::-;187468:7;187495:38;:20;:29;187516:7;187495:29;;;;;;;;;;;;;;;:36;:38::i;:::-;187488:45;;;;187404:137;;;:::o;200221:101::-;135086:13;:11;:13::i;:::-;200295:19:::1;200301:4;200307:6;200295:5;:19::i;:::-;200221:101:::0;;:::o;199064:291::-;199285:4;151171:19;:17;:19::i;:::-;199198:10:::1;198572;:19;198583:7;198572:19;;;;;;;;;;;;;;;;;;;;;;;;;198571:20;198563:66;;;;;;;;;;;;:::i;:::-;;;;;;;;;199234:9:::2;198572:10;:19;198583:7;198572:19;;;;;;;;;;;;;;;;;;;;;;;;;198571:20;198563:66;;;;;;;;;;;;:::i;:::-;;;;;;;;;148473:21:::3;:19;:21::i;:::-;199314:33:::4;199329:9;199340:6;199314:14;:33::i;:::-;199307:40;;148517:20:::3;:18;:20::i;:::-;198640:1:::2;151201::::1;199064:291:::0;;;;:::o;190021:573::-;190234:6;190216:15;:24;190212:93;;;190286:6;190264:29;;;;;;;;;;;:::i;:::-;;;;;;;;190212:93;190315:14;190332:173;190360:86;186024:71;190419:9;190430:5;190437:6;190387:57;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;190377:68;;;;;;190360:16;:86::i;:::-;190461:1;190477;190493;190332:13;:173::i;:::-;190315:190;;190516:31;190533:6;190541:5;190516:16;:31::i;:::-;190558:28;190568:6;190576:9;190558;:28::i;:::-;190201:393;190021:573;;;;;;:::o;132397:695::-;132627:8;132609:15;:26;132605:99;;;132683:8;132659:33;;;;;;;;;;;:::i;:::-;;;;;;;;132605:99;132716:18;131716:95;132775:5;132782:7;132791:5;132798:16;132808:5;132798:9;:16::i;:::-;132816:8;132747:78;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;132737:89;;;;;;132716:110;;132839:12;132854:28;132871:10;132854:16;:28::i;:::-;132839:43;;132895:14;132912:28;132926:4;132932:1;132935;132938;132912:13;:28::i;:::-;132895:45;;132965:5;132955:15;;:6;:15;;;132951:90;;133015:6;133023:5;132994:35;;;;;;;;;;;;:::i;:::-;;;;;;;;132951:90;133053:31;133062:5;133069:7;133078:5;133053:8;:31::i;:::-;132594:498;;;132397:695;;;;;;;:::o;14870:142::-;14950:7;14977:11;:18;14989:5;14977:18;;;;;;;;;;;;;;;:27;14996:7;14977:27;;;;;;;;;;;;;;;;14970:34;;14870:142;;;;:::o;197246:165::-;197325:32;;:::i;:::-;197377:26;197390:7;197399:3;197377:12;:26::i;:::-;197370:33;;197246:165;;;;:::o;136133:220::-;135086:13;:11;:13::i;:::-;136238:1:::1;136218:22;;:8;:22;;::::0;136214:93:::1;;136292:1;136264:31;;;;;;;;;;;:::i;:::-;;;;;;;;136214:93;136317:28;136336:8;136317:18;:28::i;:::-;136133:220:::0;:::o;201078:121::-;201148:4;201172:10;:19;201183:7;201172:19;;;;;;;;;;;;;;;;;;;;;;;;;201165:26;;201078:121;;;:::o;193468:98::-;193526:7;193557:1;193553;:5;;;;:::i;:::-;193546:12;;193468:98;;;;:::o;193574:103::-;193637:7;193668:1;193664;:5;;;;:::i;:::-;193657:12;;193574:103;;;;:::o;15331:190::-;15404:4;15421:13;15437:12;:10;:12::i;:::-;15421:28;;15460:31;15469:5;15476:7;15485:5;15460:8;:31::i;:::-;15509:4;15502:11;;;15331:190;;;;:::o;151725:132::-;151791:8;:6;:8::i;:::-;151787:63;;;151823:15;;;;;;;;;;;;;;151787:63;151725:132::o;148553:293::-;147778:1;148687:7;;:19;148679:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;147778:1;148820:7;:18;;;;148553:293::o;16131:249::-;16218:4;16235:15;16253:12;:10;:12::i;:::-;16235:30;;16276:37;16292:4;16298:7;16307:5;16276:15;:37::i;:::-;16324:26;16334:4;16340:2;16344:5;16324:9;:26::i;:::-;16368:4;16361:11;;;16131:249;;;;;:::o;148854:213::-;147734:1;149037:7;:22;;;;148854:213::o;126474:268::-;126527:7;126568:11;126551:28;;126559:4;126551:28;;;:63;;;;;126600:14;126583:13;:31;126551:63;126547:188;;;126638:22;126631:29;;;;126547:188;126700:23;:21;:23::i;:::-;126693:30;;126474:268;;:::o;52422:218::-;52478:6;52509:16;52501:24;;:5;:24;52497:105;;;52580:2;52584:5;52549:41;;;;;;;;;;;;:::i;:::-;;;;;;;;52497:105;52626:5;52612:20;;52422:218;;;:::o;166900:624::-;166985:7;167005:11;167019:4;:17;;:24;;;;167005:38;;167056:11;167082:12;167097:3;167082:18;;167123:1;167117:3;:7;167113:241;;;167141:11;167161:14;167171:3;167161:9;:14::i;:::-;167155:3;:20;;;;:::i;:::-;167141:34;;167200:37;167214:4;:17;;167233:3;167200:13;:37::i;:::-;:42;;;;;;;;;;;;167194:48;;:3;:48;;;167190:153;;;167270:3;167263:10;;167190:153;;;167326:1;167320:3;:7;;;;:::i;:::-;167314:13;;167190:153;167126:228;167113:241;167366:11;167380:53;167399:4;:17;;167418:3;167423;167428:4;167380:18;:53::i;:::-;167366:67;;167460:1;167453:3;:8;:63;;167468:41;167482:4;:17;;167507:1;167501:3;:7;;;;:::i;:::-;167468:13;:41::i;:::-;:48;;;;;;;;;;;;167453:63;;;167464:1;167453:63;167446:70;;;;;;166900:624;;;;:::o;135365:166::-;135436:12;:10;:12::i;:::-;135425:23;;:7;:5;:7::i;:::-;:23;;;135421:103;;135499:12;:10;:12::i;:::-;135472:40;;;;;;;;;;;:::i;:::-;;;;;;;;135421:103;135365:166::o;152467:120::-;151430:16;:14;:16::i;:::-;152536:5:::1;152526:7;;:15;;;;;;;;;;;;;;;;;;152557:22;152566:12;:10;:12::i;:::-;152557:22;;;;;;:::i;:::-;;;;;;;;152467:120::o:0;18885:213::-;18975:1;18956:21;;:7;:21;;;18952:93;;19030:1;19001:32;;;;;;;;;;;:::i;:::-;;;;;;;;18952:93;19055:35;19071:1;19075:7;19084:5;19055:7;:35::i;:::-;18885:213;;:::o;4337:98::-;4390:7;4417:10;4410:17;;4337:98;:::o;19426:211::-;19516:1;19497:21;;:7;:21;;;19493:91;;19569:1;19542:30;;;;;;;;;;;:::i;:::-;;;;;;;;19493:91;19594:35;19602:7;19619:1;19623:5;19594:7;:35::i;:::-;19426:211;;:::o;180000:111::-;180046:6;180072:31;180090:12;180072:17;:31::i;:::-;180065:38;;180000:111;:::o;190779:318::-;190862:19;190884:18;190894:7;190884:9;:18::i;:::-;190862:40;;190935:9;190913:10;:19;190924:7;190913:19;;;;;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;191000:9;190962:48;;190987:11;190962:48;;190978:7;190962:48;;;;;;;;;;;;191021:68;191040:11;191053:9;191064:24;191080:7;191064:15;:24::i;:::-;191021:18;:68::i;:::-;190851:246;190779:318;;:::o;192723:164::-;192796:6;192822:57;192840:38;:20;:29;192861:7;192840:29;;;;;;;;;;;;;;;:36;:38::i;:::-;192822:17;:57::i;:::-;192815:64;;192723:164;;;:::o;136513:191::-;136587:16;136606:6;;;;;;;;;;;136587:25;;136632:8;136623:6;;:17;;;;;;;;;;;;;;;;;;136687:8;136656:40;;136677:8;136656:40;;;;;;;;;;;;136576:128;136513:191;:::o;21922:487::-;22022:24;22049:25;22059:5;22066:7;22049:9;:25::i;:::-;22022:52;;22109:17;22089:16;:37;22085:317;;22166:5;22147:16;:24;22143:132;;;22226:7;22235:16;22253:5;22199:60;;;;;;;;;;;;;:::i;:::-;;;;;;;;22143:132;22318:57;22327:5;22334:7;22362:5;22343:16;:24;22369:5;22318:8;:57::i;:::-;22085:317;22011:398;21922:487;;;:::o;133151:145::-;133242:7;133269:19;133282:5;133269:12;:19::i;:::-;133262:26;;133151:145;;;:::o;152208:118::-;151171:19;:17;:19::i;:::-;152278:4:::1;152268:7;;:14;;;;;;;;;;;;;;;;;;152298:20;152305:12;:10;:12::i;:::-;152298:20;;;;;;:::i;:::-;;;;;;;;152208:118::o:0;128716:128::-;128762:13;128795:41;128822:13;128795:5;:26;;:41;;;;:::i;:::-;128788:48;;128716:128;:::o;129179:137::-;129228:13;129261:47;129291:16;129261:8;:29;;:47;;;;:::i;:::-;129254:54;;129179:137;:::o;167649:209::-;167711:7;167731:11;167745:4;:17;;:24;;;;167731:38;;167794:1;167787:3;:8;:63;;167802:41;167816:4;:17;;167841:1;167835:3;:7;;;;:::i;:::-;167802:13;:41::i;:::-;:48;;;;;;;;;;;;167787:63;;;167798:1;167787:63;167780:70;;;167649:209;;;:::o;14625:182::-;14694:4;14711:13;14727:12;:10;:12::i;:::-;14711:28;;14750:27;14760:5;14767:2;14771:5;14750:9;:27::i;:::-;14795:4;14788:11;;;14625:182;;;;:::o;127573:178::-;127650:7;127677:66;127710:20;:18;:20::i;:::-;127732:10;127677:32;:66::i;:::-;127670:73;;127573:178;;;:::o;34619:264::-;34704:7;34725:17;34744:18;34764:16;34784:25;34795:4;34801:1;34804;34807;34784:10;:25::i;:::-;34724:85;;;;;;34820:28;34832:5;34839:8;34820:11;:28::i;:::-;34866:9;34859:16;;;;;34619:264;;;;;;:::o;130649:227::-;130733:15;130751:16;130761:5;130751:9;:16::i;:::-;130733:34;;130791:7;130782:5;:16;130778:91;;130842:5;130849:7;130822:35;;;;;;;;;;;;:::i;:::-;;;;;;;;130778:91;130722:154;130649:227;;:::o;130131:402::-;130191:7;130498;:14;130506:5;130498:14;;;;;;;;;;;;;;;;:16;;;;;;;;;;;;130491:23;;130131:402;;;:::o;20190:130::-;20275:37;20284:5;20291:7;20300:5;20307:4;20275:8;:37::i;:::-;20190:130;;;:::o;192969:204::-;193076:32;;:::i;:::-;193128:37;193161:3;193128:20;:29;193149:7;193128:29;;;;;;;;;;;;;;;:32;;:37;;;;:::i;:::-;193121:44;;192969:204;;;;:::o;16765:308::-;16865:1;16849:18;;:4;:18;;;16845:88;;16918:1;16891:30;;;;;;;;;;;:::i;:::-;;;;;;;;16845:88;16961:1;16947:16;;:2;:16;;;16943:88;;17016:1;16987:32;;;;;;;;;;;:::i;:::-;;;;;;;;16943:88;17041:24;17049:4;17055:2;17059:5;17041:7;:24::i;:::-;16765:308;;;:::o;126750:181::-;126805:7;124666:95;126864:11;126877:14;126893:13;126916:4;126842:80;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;126832:91;;;;;;126825:98;;126750:181;:::o;92206:5285::-;92254:7;92375:1;92370;:6;92366:55;;92404:1;92397:8;;;;92366:55;93362:10;93375:1;93362:14;;93391:10;93404:1;93391:14;;93433:8;93426:2;:16;93422:95;;93470:3;93463:10;;;;;93499:2;93492:9;;;;;93422:95;93542:7;93535:2;:15;93531:93;;93578:2;93571:9;;;;;93606:2;93599:9;;;;;93531:93;93649:7;93642:2;:15;93638:93;;93685:2;93678:9;;;;;93713:2;93706:9;;;;;93638:93;93756:7;93749:2;:15;93745:92;;93792:2;93785:9;;;;;93820:1;93813:8;;;;;93745:92;93862:6;93855:2;:14;93851:90;;93897:1;93890:8;;;;;93924:1;93917:8;;;;;93851:90;93966:6;93959:2;:14;93955:90;;94001:1;93994:8;;;;;94028:1;94021:8;;;;;93955:90;94070:6;94063:2;:14;94059:63;;94105:1;94098:8;;;;;94059:63;94566:1;94559:2;94555:1;:6;94554:13;;94549:18;;96513:1;96506:2;96502:1;:6;;;;;:::i;:::-;;;96497:2;:11;96496:18;;96491:23;;96623:1;96616:2;96612:1;:6;;;;;:::i;:::-;;;96607:2;:11;96606:18;;96601:23;;96735:1;96728:2;96724:1;:6;;;;;:::i;:::-;;;96719:2;:11;96718:18;;96713:23;;96845:1;96838:2;96834:1;:6;;;;;:::i;:::-;;;96829:2;:11;96828:18;;96823:23;;96956:1;96949:2;96945:1;:6;;;;;:::i;:::-;;;96940:2;:11;96939:18;;96934:23;;97067:1;97060:2;97056:1;:6;;;;;:::i;:::-;;;97051:2;:11;97050:18;;97045:23;;97444:28;97469:2;97465:1;:6;;;;;:::i;:::-;;;97460:2;:11;97444:15;:28::i;:::-;97439:2;:33;97432:40;;;;92206:5285;;;;:::o;171746:273::-;171859:28;171934:9;171931:1;171924:20;171997:3;171990:4;171987:1;171977:18;171973:28;171958:43;;171746:273;;;;:::o;170342:448::-;170504:7;170524:237;170537:4;170531:3;:10;170524:237;;;170558:11;170572:23;170585:3;170590:4;170572:12;:23::i;:::-;170558:37;;170646:3;170614:35;;:24;170628:4;170634:3;170614:13;:24::i;:::-;:29;;;;;;;;;;;;:35;;;170610:140;;;170677:3;170670:10;;170610:140;;;170733:1;170727:3;:7;;;;:::i;:::-;170721:13;;170610:140;170543:218;170524:237;;;170778:4;170771:11;;170342:448;;;;;;:::o;151934:130::-;151998:8;:6;:8::i;:::-;151993:64;;152030:15;;;;;;;;;;;;;;151993:64;151934:130::o;198169:208::-;198298:30;198312:4;198318:2;198322:5;198298:13;:30::i;:::-;198169:208;;;:::o;196821:135::-;196903:7;196930:18;196940:7;196930:9;:18::i;:::-;196923:25;;196821:135;;;:::o;191835:808::-;191945:2;191937:10;;:4;:10;;;;:24;;;;;191960:1;191951:6;:10;191937:24;191933:703;;;191998:1;191982:18;;:4;:18;;;191978:322;;192022:16;192040;192060:154;192088:20;:26;192109:4;192088:26;;;;;;;;;;;;;;;192137:9;192169:26;192188:6;192169:18;:26::i;:::-;192060:5;:154::i;:::-;192021:193;;;;;;;;192259:4;192238:46;;;192265:8;192275;192238:46;;;;;;;:::i;:::-;;;;;;;;192002:298;;191978:322;192332:1;192318:16;;:2;:16;;;192314:311;;192356:16;192374;192394:147;192422:20;:24;192443:2;192422:24;;;;;;;;;;;;;;;192469:4;192496:26;192515:6;192496:18;:26::i;:::-;192394:5;:147::i;:::-;192355:186;;;;;;;;192586:2;192565:44;;;192590:8;192600;192565:44;;;;;;;:::i;:::-;;;;;;;;192336:289;;192314:311;191933:703;191835:808;;;:::o;168513:121::-;168575:7;168602:4;:17;;:24;;;;168595:31;;168513:121;;;:::o;53456:218::-;53512:6;53543:16;53535:24;;:5;:24;53531:105;;;53614:2;53618:5;53583:41;;;;;;;;;;;;:::i;:::-;;;;;;;;53531:105;53660:5;53646:20;;53456:218;;;:::o;21187:443::-;21317:1;21300:19;;:5;:19;;;21296:91;;21372:1;21343:32;;;;;;;;;;;:::i;:::-;;;;;;;;21296:91;21420:1;21401:21;;:7;:21;;;21397:92;;21474:1;21446:31;;;;;;;;;;;:::i;:::-;;;;;;;;21397:92;21529:5;21499:11;:18;21511:5;21499:18;;;;;;;;;;;;;;;:27;21518:7;21499:27;;;;;;;;;;;;;;;:35;;;;21549:9;21545:78;;;21596:7;21580:31;;21589:5;21580:31;;;21605:5;21580:31;;;;;;:::i;:::-;;;;;;;;21545:78;21187:443;;;;:::o;129901:109::-;129961:7;129988;:14;129996:5;129988:14;;;;;;;;;;;;;;;;129981:21;;129901:109;;;:::o;120943:273::-;121037:13;118917:66;121096:17;;121086:5;121067:46;121063:146;;121137:15;121146:5;121137:8;:15::i;:::-;121130:22;;;;121063:146;121192:5;121185:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;120943:273;;;;;:::o;112763:382::-;112856:14;112940:4;112934:11;112971:10;112966:3;112959:23;113019:15;113012:4;113007:3;113003:14;112996:39;113072:10;113065:4;113060:3;113056:14;113049:34;113122:4;113117:3;113107:20;113097:30;;112908:230;112763:382;;;;:::o;32903:1577::-;33034:17;33053:16;33071:14;33998:66;33993:1;33985:10;;:79;33981:166;;;34097:1;34101:30;34133:1;34081:54;;;;;;;;33981:166;34244:14;34261:24;34271:4;34277:1;34280;34283;34261:24;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34244:41;;34318:1;34300:20;;:6;:20;;;34296:115;;34353:1;34357:29;34396:1;34388:10;;34337:62;;;;;;;;;34296:115;34431:6;34439:20;34469:1;34461:10;;34423:49;;;;;;;32903:1577;;;;;;;;;:::o;35021:542::-;35117:20;35108:29;;;;;;;;:::i;:::-;;:5;:29;;;;;;;;:::i;:::-;;;35104:452;35154:7;35104:452;35215:29;35206:38;;;;;;;;:::i;:::-;;:5;:38;;;;;;;;:::i;:::-;;;35202:354;;35268:23;;;;;;;;;;;;;;35202:354;35322:35;35313:44;;;;;;;;:::i;:::-;;:5;:44;;;;;;;;:::i;:::-;;;35309:247;;35417:8;35409:17;;35381:46;;;;;;;;;;;:::i;:::-;;;;;;;;35309:247;35458:30;35449:39;;;;;;;;:::i;:::-;;:5;:39;;;;;;;;:::i;:::-;;;35445:111;;35535:8;35512:32;;;;;;;;;;;:::i;:::-;;;;;;;;35445:111;35021:542;;;:::o;168711:140::-;168781:20;;:::i;:::-;168821:4;:17;;168839:3;168821:22;;;;;;;;;;:::i;:::-;;;;;;;;;168814:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;168711:140;;;;:::o;73603:149::-;73650:9;73731:1;73724:9;73717:17;73712:22;;73603:149;;;:::o;77411:156::-;77473:7;77558:1;77553;77549;:5;77548:11;;;;:::i;:::-;77543:1;77539;:5;77538:21;;;;:::i;:::-;77531:28;;77411:156;;;;:::o;196130:423::-;196225:30;196239:4;196245:2;196249:5;196225:13;:30::i;:::-;196286:1;196270:18;;:4;:18;;;196266:232;;196305:14;196322:13;:11;:13::i;:::-;196305:30;;196350:11;196364:12;:10;:12::i;:::-;196350:26;;196404:3;196395:6;:12;196391:96;;;196459:6;196467:3;196435:36;;;;;;;;;;;;:::i;:::-;;;;;;;;196391:96;196290:208;;196266:232;196508:37;196529:4;196535:2;196539:5;196508:20;:37::i;:::-;196130:423;;;:::o;41960:223::-;42017:7;42049:17;42041:25;;:5;:25;42037:107;;;42121:3;42126:5;42090:42;;;;;;;;;;;;:::i;:::-;;;;;;;;42037:107;42169:5;42154:21;;41960:223;;;:::o;193181:279::-;193352:16;193370;193406:46;193417:7;:5;:7::i;:::-;193426:25;193429:14;:5;:12;:14::i;:::-;193445:5;193426:2;:25;;:::i;:::-;193406:5;:10;;:46;;;;;:::i;:::-;193399:53;;;;193181:279;;;;;;:::o;119626:387::-;119685:13;119711:11;119725:16;119736:4;119725:10;:16::i;:::-;119711:30;;119831:17;119862:2;119851:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119831:34;;119928:3;119923;119916:16;119969:4;119962;119957:3;119953:14;119946:28;120002:3;119995:10;;;;119626:387;;;:::o;153692:147::-;151171:19;:17;:19::i;:::-;153801:30:::1;153815:4;153821:2;153825:5;153801:13;:30::i;:::-;153692:147:::0;;;:::o;195878:105::-;195931:7;195958:17;195951:24;;;;195878:105;:::o;191337:407::-;191457:1;191441:18;;:4;:18;;;191437:109;;191476:58;191482:17;191501:4;191507:26;191526:6;191507:18;:26::i;:::-;191476:5;:58::i;:::-;;;191437:109;191574:1;191560:16;;:2;:16;;;191556:112;;191593:63;191599:17;191618:9;191629:26;191648:6;191629:18;:26::i;:::-;191593:5;:63::i;:::-;;;191556:112;191678:58;191697:15;191707:4;191697:9;:15::i;:::-;191714:13;191724:2;191714:9;:13::i;:::-;191729:6;191678:18;:58::i;:::-;191337:407;;;:::o;165426:216::-;165542:16;165560;165596:38;165604:4;:17;;165623:3;165628:5;165596:7;:38::i;:::-;165589:45;;;;165426:216;;;;;;:::o;120090:251::-;120151:7;120171:14;120224:4;120215;120188:33;;:40;120171:57;;120252:2;120243:6;:11;120239:71;;;120278:20;;;;;;;;;;;;;;120239:71;120327:6;120320:13;;;120090:251;;;:::o;17397:1135::-;17503:1;17487:18;;:4;:18;;;17483:552;;17641:5;17625:12;;:21;;;;;;;:::i;:::-;;;;;;;;17483:552;;;17679:19;17701:9;:15;17711:4;17701:15;;;;;;;;;;;;;;;;17679:37;;17749:5;17735:11;:19;17731:117;;;17807:4;17813:11;17826:5;17782:50;;;;;;;;;;;;;:::i;:::-;;;;;;;;17731:117;18003:5;17989:11;:19;17971:9;:15;17981:4;17971:15;;;;;;;;;;;;;;;:37;;;;17664:371;17483:552;18065:1;18051:16;;:2;:16;;;18047:435;;18233:5;18217:12;;:21;;;;;;;;;;;18047:435;;;18450:5;18433:9;:13;18443:2;18433:13;;;;;;;;;;;;;;;;:22;;;;;;;;;;;18047:435;18514:2;18499:25;;18508:4;18499:25;;;18518:5;18499:25;;;;;;:::i;:::-;;;;;;;;17397:1135;;;:::o;169033:950::-;169158:16;169176;169205:11;169219:4;:11;;;;169205:25;;169253:1;169247:3;:7;169243:733;;;169271:26;169300:28;169314:4;169326:1;169320:3;:7;;;;:::i;:::-;169300:13;:28::i;:::-;169271:57;;169343:14;169360:4;:9;;;;;;;;;;;;169343:26;;169384:17;169404:4;:11;;;;;;;;;;;;169384:31;;169502:3;169492:13;;:7;:13;;;169488:91;;;169533:30;;;;;;;;;;;;;;169488:91;169656:3;169645:14;;:7;:14;;;169641:167;;169694:5;169680:4;:11;;;:19;;;;;;;;;;;;;;;;;;169641:167;;;169740:4;169750:41;;;;;;;;169771:3;169750:41;;;;;;169784:5;169750:41;;;;;169740:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;169641:167;169830:9;169841:5;169822:25;;;;;;;;;;169243:733;169880:4;169890:41;;;;;;;;169911:3;169890:41;;;;;;169924:5;169890:41;;;;;169880:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;169955:1;169958:5;169947:17;;;;;169033:950;;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:246::-;368:1;378:113;392:6;389:1;386:13;378:113;;;477:1;472:3;468:11;462:18;458:1;453:3;449:11;442:39;414:2;411:1;407:10;402:15;;378:113;;;525:1;516:6;511:3;507:16;500:27;349:184;287:246;;;:::o;539:102::-;580:6;631:2;627:7;622:2;615:5;611:14;607:28;597:38;;539:102;;;:::o;647:377::-;735:3;763:39;796:5;763:39;:::i;:::-;818:71;882:6;877:3;818:71;:::i;:::-;811:78;;898:65;956:6;951:3;944:4;937:5;933:16;898:65;:::i;:::-;988:29;1010:6;988:29;:::i;:::-;983:3;979:39;972:46;;739:285;647:377;;;;:::o;1030:313::-;1143:4;1181:2;1170:9;1166:18;1158:26;;1230:9;1224:4;1220:20;1216:1;1205:9;1201:17;1194:47;1258:78;1331:4;1322:6;1258:78;:::i;:::-;1250:86;;1030:313;;;;:::o;1430:117::-;1539:1;1536;1529:12;1676:126;1713:7;1753:42;1746:5;1742:54;1731:65;;1676:126;;;:::o;1808:96::-;1845:7;1874:24;1892:5;1874:24;:::i;:::-;1863:35;;1808:96;;;:::o;1910:122::-;1983:24;2001:5;1983:24;:::i;:::-;1976:5;1973:35;1963:63;;2022:1;2019;2012:12;1963:63;1910:122;:::o;2038:139::-;2084:5;2122:6;2109:20;2100:29;;2138:33;2165:5;2138:33;:::i;:::-;2038:139;;;;:::o;2183:77::-;2220:7;2249:5;2238:16;;2183:77;;;:::o;2266:122::-;2339:24;2357:5;2339:24;:::i;:::-;2332:5;2329:35;2319:63;;2378:1;2375;2368:12;2319:63;2266:122;:::o;2394:139::-;2440:5;2478:6;2465:20;2456:29;;2494:33;2521:5;2494:33;:::i;:::-;2394:139;;;;:::o;2539:474::-;2607:6;2615;2664:2;2652:9;2643:7;2639:23;2635:32;2632:119;;;2670:79;;:::i;:::-;2632:119;2790:1;2815:53;2860:7;2851:6;2840:9;2836:22;2815:53;:::i;:::-;2805:63;;2761:117;2917:2;2943:53;2988:7;2979:6;2968:9;2964:22;2943:53;:::i;:::-;2933:63;;2888:118;2539:474;;;;;:::o;3019:90::-;3053:7;3096:5;3089:13;3082:21;3071:32;;3019:90;;;:::o;3115:109::-;3196:21;3211:5;3196:21;:::i;:::-;3191:3;3184:34;3115:109;;:::o;3230:210::-;3317:4;3355:2;3344:9;3340:18;3332:26;;3368:65;3430:1;3419:9;3415:17;3406:6;3368:65;:::i;:::-;3230:210;;;;:::o;3446:118::-;3533:24;3551:5;3533:24;:::i;:::-;3528:3;3521:37;3446:118;;:::o;3570:222::-;3663:4;3701:2;3690:9;3686:18;3678:26;;3714:71;3782:1;3771:9;3767:17;3758:6;3714:71;:::i;:::-;3570:222;;;;:::o;3798:619::-;3875:6;3883;3891;3940:2;3928:9;3919:7;3915:23;3911:32;3908:119;;;3946:79;;:::i;:::-;3908:119;4066:1;4091:53;4136:7;4127:6;4116:9;4112:22;4091:53;:::i;:::-;4081:63;;4037:117;4193:2;4219:53;4264:7;4255:6;4244:9;4240:22;4219:53;:::i;:::-;4209:63;;4164:118;4321:2;4347:53;4392:7;4383:6;4372:9;4368:22;4347:53;:::i;:::-;4337:63;;4292:118;3798:619;;;;;:::o;4423:86::-;4458:7;4498:4;4491:5;4487:16;4476:27;;4423:86;;;:::o;4515:112::-;4598:22;4614:5;4598:22;:::i;:::-;4593:3;4586:35;4515:112;;:::o;4633:214::-;4722:4;4760:2;4749:9;4745:18;4737:26;;4773:67;4837:1;4826:9;4822:17;4813:6;4773:67;:::i;:::-;4633:214;;;;:::o;4853:77::-;4890:7;4919:5;4908:16;;4853:77;;;:::o;4936:118::-;5023:24;5041:5;5023:24;:::i;:::-;5018:3;5011:37;4936:118;;:::o;5060:222::-;5153:4;5191:2;5180:9;5176:18;5168:26;;5204:71;5272:1;5261:9;5257:17;5248:6;5204:71;:::i;:::-;5060:222;;;;:::o;5288:329::-;5347:6;5396:2;5384:9;5375:7;5371:23;5367:32;5364:119;;;5402:79;;:::i;:::-;5364:119;5522:1;5547:53;5592:7;5583:6;5572:9;5568:22;5547:53;:::i;:::-;5537:63;;5493:117;5288:329;;;;:::o;5623:::-;5682:6;5731:2;5719:9;5710:7;5706:23;5702:32;5699:119;;;5737:79;;:::i;:::-;5699:119;5857:1;5882:53;5927:7;5918:6;5907:9;5903:22;5882:53;:::i;:::-;5872:63;;5828:117;5623:329;;;;:::o;5958:118::-;6045:24;6063:5;6045:24;:::i;:::-;6040:3;6033:37;5958:118;;:::o;6082:222::-;6175:4;6213:2;6202:9;6198:18;6190:26;;6226:71;6294:1;6283:9;6279:17;6270:6;6226:71;:::i;:::-;6082:222;;;;:::o;6310:93::-;6346:7;6386:10;6379:5;6375:22;6364:33;;6310:93;;;:::o;6409:115::-;6494:23;6511:5;6494:23;:::i;:::-;6489:3;6482:36;6409:115;;:::o;6530:218::-;6621:4;6659:2;6648:9;6644:18;6636:26;;6672:69;6738:1;6727:9;6723:17;6714:6;6672:69;:::i;:::-;6530:218;;;;:::o;6754:149::-;6790:7;6830:66;6823:5;6819:78;6808:89;;6754:149;;;:::o;6909:115::-;6994:23;7011:5;6994:23;:::i;:::-;6989:3;6982:36;6909:115;;:::o;7030:114::-;7097:6;7131:5;7125:12;7115:22;;7030:114;;;:::o;7150:184::-;7249:11;7283:6;7278:3;7271:19;7323:4;7318:3;7314:14;7299:29;;7150:184;;;;:::o;7340:132::-;7407:4;7430:3;7422:11;;7460:4;7455:3;7451:14;7443:22;;7340:132;;;:::o;7478:108::-;7555:24;7573:5;7555:24;:::i;:::-;7550:3;7543:37;7478:108;;:::o;7592:179::-;7661:10;7682:46;7724:3;7716:6;7682:46;:::i;:::-;7760:4;7755:3;7751:14;7737:28;;7592:179;;;;:::o;7777:113::-;7847:4;7879;7874:3;7870:14;7862:22;;7777:113;;;:::o;7926:732::-;8045:3;8074:54;8122:5;8074:54;:::i;:::-;8144:86;8223:6;8218:3;8144:86;:::i;:::-;8137:93;;8254:56;8304:5;8254:56;:::i;:::-;8333:7;8364:1;8349:284;8374:6;8371:1;8368:13;8349:284;;;8450:6;8444:13;8477:63;8536:3;8521:13;8477:63;:::i;:::-;8470:70;;8563:60;8616:6;8563:60;:::i;:::-;8553:70;;8409:224;8396:1;8393;8389:9;8384:14;;8349:284;;;8353:14;8649:3;8642:10;;8050:608;;;7926:732;;;;:::o;8664:1215::-;9013:4;9051:3;9040:9;9036:19;9028:27;;9065:69;9131:1;9120:9;9116:17;9107:6;9065:69;:::i;:::-;9181:9;9175:4;9171:20;9166:2;9155:9;9151:18;9144:48;9209:78;9282:4;9273:6;9209:78;:::i;:::-;9201:86;;9334:9;9328:4;9324:20;9319:2;9308:9;9304:18;9297:48;9362:78;9435:4;9426:6;9362:78;:::i;:::-;9354:86;;9450:72;9518:2;9507:9;9503:18;9494:6;9450:72;:::i;:::-;9532:73;9600:3;9589:9;9585:19;9576:6;9532:73;:::i;:::-;9615;9683:3;9672:9;9668:19;9659:6;9615:73;:::i;:::-;9736:9;9730:4;9726:20;9720:3;9709:9;9705:19;9698:49;9764:108;9867:4;9858:6;9764:108;:::i;:::-;9756:116;;8664:1215;;;;;;;;;;:::o;9885:116::-;9955:21;9970:5;9955:21;:::i;:::-;9948:5;9945:32;9935:60;;9991:1;9988;9981:12;9935:60;9885:116;:::o;10007:133::-;10050:5;10088:6;10075:20;10066:29;;10104:30;10128:5;10104:30;:::i;:::-;10007:133;;;;:::o;10146:468::-;10211:6;10219;10268:2;10256:9;10247:7;10243:23;10239:32;10236:119;;;10274:79;;:::i;:::-;10236:119;10394:1;10419:53;10464:7;10455:6;10444:9;10440:22;10419:53;:::i;:::-;10409:63;;10365:117;10521:2;10547:50;10589:7;10580:6;10569:9;10565:22;10547:50;:::i;:::-;10537:60;;10492:115;10146:468;;;;;:::o;10620:97::-;10656:7;10696:14;10689:5;10685:26;10674:37;;10620:97;;;:::o;10723:115::-;10808:23;10825:5;10808:23;:::i;:::-;10803:3;10796:36;10723:115;;:::o;10844:218::-;10935:4;10973:2;10962:9;10958:18;10950:26;;10986:69;11052:1;11041:9;11037:17;11028:6;10986:69;:::i;:::-;10844:218;;;;:::o;11068:118::-;11139:22;11155:5;11139:22;:::i;:::-;11132:5;11129:33;11119:61;;11176:1;11173;11166:12;11119:61;11068:118;:::o;11192:135::-;11236:5;11274:6;11261:20;11252:29;;11290:31;11315:5;11290:31;:::i;:::-;11192:135;;;;:::o;11333:122::-;11406:24;11424:5;11406:24;:::i;:::-;11399:5;11396:35;11386:63;;11445:1;11442;11435:12;11386:63;11333:122;:::o;11461:139::-;11507:5;11545:6;11532:20;11523:29;;11561:33;11588:5;11561:33;:::i;:::-;11461:139;;;;:::o;11606:1053::-;11708:6;11716;11724;11732;11740;11748;11797:3;11785:9;11776:7;11772:23;11768:33;11765:120;;;11804:79;;:::i;:::-;11765:120;11924:1;11949:53;11994:7;11985:6;11974:9;11970:22;11949:53;:::i;:::-;11939:63;;11895:117;12051:2;12077:53;12122:7;12113:6;12102:9;12098:22;12077:53;:::i;:::-;12067:63;;12022:118;12179:2;12205:53;12250:7;12241:6;12230:9;12226:22;12205:53;:::i;:::-;12195:63;;12150:118;12307:2;12333:51;12376:7;12367:6;12356:9;12352:22;12333:51;:::i;:::-;12323:61;;12278:116;12433:3;12460:53;12505:7;12496:6;12485:9;12481:22;12460:53;:::i;:::-;12450:63;;12404:119;12562:3;12589:53;12634:7;12625:6;12614:9;12610:22;12589:53;:::i;:::-;12579:63;;12533:119;11606:1053;;;;;;;;:::o;12665:1199::-;12776:6;12784;12792;12800;12808;12816;12824;12873:3;12861:9;12852:7;12848:23;12844:33;12841:120;;;12880:79;;:::i;:::-;12841:120;13000:1;13025:53;13070:7;13061:6;13050:9;13046:22;13025:53;:::i;:::-;13015:63;;12971:117;13127:2;13153:53;13198:7;13189:6;13178:9;13174:22;13153:53;:::i;:::-;13143:63;;13098:118;13255:2;13281:53;13326:7;13317:6;13306:9;13302:22;13281:53;:::i;:::-;13271:63;;13226:118;13383:2;13409:53;13454:7;13445:6;13434:9;13430:22;13409:53;:::i;:::-;13399:63;;13354:118;13511:3;13538:51;13581:7;13572:6;13561:9;13557:22;13538:51;:::i;:::-;13528:61;;13482:117;13638:3;13665:53;13710:7;13701:6;13690:9;13686:22;13665:53;:::i;:::-;13655:63;;13609:119;13767:3;13794:53;13839:7;13830:6;13819:9;13815:22;13794:53;:::i;:::-;13784:63;;13738:119;12665:1199;;;;;;;;;;:::o;13870:474::-;13938:6;13946;13995:2;13983:9;13974:7;13970:23;13966:32;13963:119;;;14001:79;;:::i;:::-;13963:119;14121:1;14146:53;14191:7;14182:6;14171:9;14167:22;14146:53;:::i;:::-;14136:63;;14092:117;14248:2;14274:53;14319:7;14310:6;14299:9;14295:22;14274:53;:::i;:::-;14264:63;;14219:118;13870:474;;;;;:::o;14350:120::-;14422:23;14439:5;14422:23;:::i;:::-;14415:5;14412:34;14402:62;;14460:1;14457;14450:12;14402:62;14350:120;:::o;14476:137::-;14521:5;14559:6;14546:20;14537:29;;14575:32;14601:5;14575:32;:::i;:::-;14476:137;;;;:::o;14619:472::-;14686:6;14694;14743:2;14731:9;14722:7;14718:23;14714:32;14711:119;;;14749:79;;:::i;:::-;14711:119;14869:1;14894:53;14939:7;14930:6;14919:9;14915:22;14894:53;:::i;:::-;14884:63;;14840:117;14996:2;15022:52;15066:7;15057:6;15046:9;15042:22;15022:52;:::i;:::-;15012:62;;14967:117;14619:472;;;;;:::o;15097:105::-;15172:23;15189:5;15172:23;:::i;:::-;15167:3;15160:36;15097:105;;:::o;15208:138::-;15245:7;15285:54;15278:5;15274:66;15263:77;;15208:138;;;:::o;15352:108::-;15429:24;15447:5;15429:24;:::i;:::-;15424:3;15417:37;15352:108;;:::o;15542:519::-;15701:4;15696:3;15692:14;15788:4;15781:5;15777:16;15771:23;15807:61;15862:4;15857:3;15853:14;15839:12;15807:61;:::i;:::-;15716:162;15962:4;15955:5;15951:16;15945:23;15981:63;16038:4;16033:3;16029:14;16015:12;15981:63;:::i;:::-;15888:166;15670:391;15542:519;;:::o;16067:346::-;16222:4;16260:2;16249:9;16245:18;16237:26;;16273:133;16403:1;16392:9;16388:17;16379:6;16273:133;:::i;:::-;16067:346;;;;:::o;16419:180::-;16467:77;16464:1;16457:88;16564:4;16561:1;16554:15;16588:4;16585:1;16578:15;16605:320;16649:6;16686:1;16680:4;16676:12;16666:22;;16733:1;16727:4;16723:12;16754:18;16744:81;;16810:4;16802:6;16798:17;16788:27;;16744:81;16872:2;16864:6;16861:14;16841:18;16838:38;16835:84;;16891:18;;:::i;:::-;16835:84;16656:269;16605:320;;;:::o;16931:220::-;17071:34;17067:1;17059:6;17055:14;17048:58;17140:3;17135:2;17127:6;17123:15;17116:28;16931:220;:::o;17157:366::-;17299:3;17320:67;17384:2;17379:3;17320:67;:::i;:::-;17313:74;;17396:93;17485:3;17396:93;:::i;:::-;17514:2;17509:3;17505:12;17498:19;;17157:366;;;:::o;17529:419::-;17695:4;17733:2;17722:9;17718:18;17710:26;;17782:9;17776:4;17772:20;17768:1;17757:9;17753:17;17746:47;17810:131;17936:4;17810:131;:::i;:::-;17802:139;;17529:419;;;:::o;17954:227::-;18094:34;18090:1;18082:6;18078:14;18071:58;18163:10;18158:2;18150:6;18146:15;18139:35;17954:227;:::o;18187:366::-;18329:3;18350:67;18414:2;18409:3;18350:67;:::i;:::-;18343:74;;18426:93;18515:3;18426:93;:::i;:::-;18544:2;18539:3;18535:12;18528:19;;18187:366;;;:::o;18559:419::-;18725:4;18763:2;18752:9;18748:18;18740:26;;18812:9;18806:4;18802:20;18798:1;18787:9;18783:17;18776:47;18840:131;18966:4;18840:131;:::i;:::-;18832:139;;18559:419;;;:::o;18984:328::-;19103:4;19141:2;19130:9;19126:18;19118:26;;19154:71;19222:1;19211:9;19207:17;19198:6;19154:71;:::i;:::-;19235:70;19301:2;19290:9;19286:18;19277:6;19235:70;:::i;:::-;18984:328;;;;;:::o;19318:180::-;19366:77;19363:1;19356:88;19463:4;19460:1;19453:15;19487:4;19484:1;19477:15;19504:191;19544:3;19563:20;19581:1;19563:20;:::i;:::-;19558:25;;19597:20;19615:1;19597:20;:::i;:::-;19592:25;;19640:1;19637;19633:9;19626:16;;19661:3;19658:1;19655:10;19652:36;;;19668:18;;:::i;:::-;19652:36;19504:191;;;;:::o;19701:180::-;19841:32;19837:1;19829:6;19825:14;19818:56;19701:180;:::o;19887:366::-;20029:3;20050:67;20114:2;20109:3;20050:67;:::i;:::-;20043:74;;20126:93;20215:3;20126:93;:::i;:::-;20244:2;20239:3;20235:12;20228:19;;19887:366;;;:::o;20259:419::-;20425:4;20463:2;20452:9;20448:18;20440:26;;20512:9;20506:4;20502:20;20498:1;20487:9;20483:17;20476:47;20540:131;20666:4;20540:131;:::i;:::-;20532:139;;20259:419;;;:::o;20684:180::-;20732:77;20729:1;20722:88;20829:4;20826:1;20819:15;20853:4;20850:1;20843:15;20870:553;21047:4;21085:3;21074:9;21070:19;21062:27;;21099:71;21167:1;21156:9;21152:17;21143:6;21099:71;:::i;:::-;21180:72;21248:2;21237:9;21233:18;21224:6;21180:72;:::i;:::-;21262;21330:2;21319:9;21315:18;21306:6;21262:72;:::i;:::-;21344;21412:2;21401:9;21397:18;21388:6;21344:72;:::i;:::-;20870:553;;;;;;;:::o;21429:775::-;21662:4;21700:3;21689:9;21685:19;21677:27;;21714:71;21782:1;21771:9;21767:17;21758:6;21714:71;:::i;:::-;21795:72;21863:2;21852:9;21848:18;21839:6;21795:72;:::i;:::-;21877;21945:2;21934:9;21930:18;21921:6;21877:72;:::i;:::-;21959;22027:2;22016:9;22012:18;22003:6;21959:72;:::i;:::-;22041:73;22109:3;22098:9;22094:19;22085:6;22041:73;:::i;:::-;22124;22192:3;22181:9;22177:19;22168:6;22124:73;:::i;:::-;21429:775;;;;;;;;;:::o;22210:332::-;22331:4;22369:2;22358:9;22354:18;22346:26;;22382:71;22450:1;22439:9;22435:17;22426:6;22382:71;:::i;:::-;22463:72;22531:2;22520:9;22516:18;22507:6;22463:72;:::i;:::-;22210:332;;;;;:::o;22548:244::-;22588:3;22607:20;22625:1;22607:20;:::i;:::-;22602:25;;22641:20;22659:1;22641:20;:::i;:::-;22636:25;;22684:1;22681;22677:9;22670:16;;22707:54;22702:3;22699:63;22696:89;;;22765:18;;:::i;:::-;22696:89;22548:244;;;;:::o;22798:247::-;22838:4;22858:20;22876:1;22858:20;:::i;:::-;22853:25;;22892:20;22910:1;22892:20;:::i;:::-;22887:25;;22936:1;22933;22929:9;22921:17;;22960:54;22954:4;22951:64;22948:90;;;23018:18;;:::i;:::-;22948:90;22798:247;;;;:::o;23051:181::-;23191:33;23187:1;23179:6;23175:14;23168:57;23051:181;:::o;23238:366::-;23380:3;23401:67;23465:2;23460:3;23401:67;:::i;:::-;23394:74;;23477:93;23566:3;23477:93;:::i;:::-;23595:2;23590:3;23586:12;23579:19;;23238:366;;;:::o;23610:419::-;23776:4;23814:2;23803:9;23799:18;23791:26;;23863:9;23857:4;23853:20;23849:1;23838:9;23834:17;23827:47;23891:131;24017:4;23891:131;:::i;:::-;23883:139;;23610:419;;;:::o;24035:86::-;24081:7;24110:5;24099:16;;24035:86;;;:::o;24127:60::-;24155:3;24176:5;24169:12;;24127:60;;;:::o;24193:156::-;24250:9;24283:60;24299:43;24308:33;24335:5;24308:33;:::i;:::-;24299:43;:::i;:::-;24283:60;:::i;:::-;24270:73;;24193:156;;;:::o;24355:145::-;24449:44;24487:5;24449:44;:::i;:::-;24444:3;24437:57;24355:145;;:::o;24506:346::-;24634:4;24672:2;24661:9;24657:18;24649:26;;24685:78;24760:1;24749:9;24745:17;24736:6;24685:78;:::i;:::-;24773:72;24841:2;24830:9;24826:18;24817:6;24773:72;:::i;:::-;24506:346;;;;;:::o;24858:194::-;24898:4;24918:20;24936:1;24918:20;:::i;:::-;24913:25;;24952:20;24970:1;24952:20;:::i;:::-;24947:25;;24996:1;24993;24989:9;24981:17;;25020:1;25014:4;25011:11;25008:37;;;25025:18;;:::i;:::-;25008:37;24858:194;;;;:::o;25058:442::-;25207:4;25245:2;25234:9;25230:18;25222:26;;25258:71;25326:1;25315:9;25311:17;25302:6;25258:71;:::i;:::-;25339:72;25407:2;25396:9;25392:18;25383:6;25339:72;:::i;:::-;25421;25489:2;25478:9;25474:18;25465:6;25421:72;:::i;:::-;25058:442;;;;;;:::o;25506:332::-;25627:4;25665:2;25654:9;25650:18;25642:26;;25678:71;25746:1;25735:9;25731:17;25722:6;25678:71;:::i;:::-;25759:72;25827:2;25816:9;25812:18;25803:6;25759:72;:::i;:::-;25506:332;;;;;:::o;25844:664::-;26049:4;26087:3;26076:9;26072:19;26064:27;;26101:71;26169:1;26158:9;26154:17;26145:6;26101:71;:::i;:::-;26182:72;26250:2;26239:9;26235:18;26226:6;26182:72;:::i;:::-;26264;26332:2;26321:9;26317:18;26308:6;26264:72;:::i;:::-;26346;26414:2;26403:9;26399:18;26390:6;26346:72;:::i;:::-;26428:73;26496:3;26485:9;26481:19;26472:6;26428:73;:::i;:::-;25844:664;;;;;;;;:::o;26514:180::-;26562:77;26559:1;26552:88;26659:4;26656:1;26649:15;26683:4;26680:1;26673:15;26700:332;26821:4;26859:2;26848:9;26844:18;26836:26;;26872:71;26940:1;26929:9;26925:17;26916:6;26872:71;:::i;:::-;26953:72;27021:2;27010:9;27006:18;26997:6;26953:72;:::i;:::-;26700:332;;;;;:::o;27038:86::-;27084:7;27113:5;27102:16;;27038:86;;;:::o;27130:156::-;27187:9;27220:60;27236:43;27245:33;27272:5;27245:33;:::i;:::-;27236:43;:::i;:::-;27220:60;:::i;:::-;27207:73;;27130:156;;;:::o;27292:145::-;27386:44;27424:5;27386:44;:::i;:::-;27381:3;27374:57;27292:145;;:::o;27443:346::-;27571:4;27609:2;27598:9;27594:18;27586:26;;27622:78;27697:1;27686:9;27682:17;27673:6;27622:78;:::i;:::-;27710:72;27778:2;27767:9;27763:18;27754:6;27710:72;:::i;:::-;27443:346;;;;;:::o;27795:545::-;27968:4;28006:3;27995:9;27991:19;27983:27;;28020:71;28088:1;28077:9;28073:17;28064:6;28020:71;:::i;:::-;28101:68;28165:2;28154:9;28150:18;28141:6;28101:68;:::i;:::-;28179:72;28247:2;28236:9;28232:18;28223:6;28179:72;:::i;:::-;28261;28329:2;28318:9;28314:18;28305:6;28261:72;:::i;:::-;27795:545;;;;;;;:::o;28346:180::-;28394:77;28391:1;28384:88;28491:4;28488:1;28481:15;28515:4;28512:1;28505:15;28532:180;28580:77;28577:1;28570:88;28677:4;28674:1;28667:15;28701:4;28698:1;28691:15;28718:185;28758:1;28775:20;28793:1;28775:20;:::i;:::-;28770:25;;28809:20;28827:1;28809:20;:::i;:::-;28804:25;;28848:1;28838:35;;28853:18;;:::i;:::-;28838:35;28895:1;28892;28888:9;28883:14;;28718:185;;;;:::o;28909:87::-;28956:7;28985:5;28974:16;;28909:87;;;:::o;29002:158::-;29060:9;29093:61;29109:44;29118:34;29146:5;29118:34;:::i;:::-;29109:44;:::i;:::-;29093:61;:::i;:::-;29080:74;;29002:158;;;:::o;29166:147::-;29261:45;29300:5;29261:45;:::i;:::-;29256:3;29249:58;29166:147;;:::o;29319:348::-;29448:4;29486:2;29475:9;29471:18;29463:26;;29499:79;29575:1;29564:9;29560:17;29551:6;29499:79;:::i;:::-;29588:72;29656:2;29645:9;29641:18;29632:6;29588:72;:::i;:::-;29319:348;;;;;:::o
Swarm Source
ipfs://043f5f655a2660d00e96904871efc77ec1440d77ffa597d4c528bea2f90cc3e5
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.