false
true
0

Contract Address Details

0x0c22e23040c27ea3cF0EbF14B0ff1F9f5e0d0B56

Contract Name
MasterChef
Creator
0x6b8840–52b7ae at 0x6a194f–c8df07
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
14,021 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25945662
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
MasterChef




Optimization enabled
false
Compiler version
v0.8.28+commit.7893614a




EVM Version
shanghai




Verified at
2025-02-23T19:37:58.854100Z

src/MasterChef.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";

import {RewardToken} from "./RewardToken.sol";
import {RehypothecationProtocol} from "./Rehypothecation.sol";

// MasterChef is the master of RWRD. He can mint RWRD and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once RWRD is sufficiently
// distributed and the community can show to govern itself.
contract MasterChef is AccessControl {
    using SafeERC20 for IERC20;
    using Address for address;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of RWRD
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accRewardTokensPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accRewardTokensPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. RWRD tokens to distribute per block.
        uint256 lastRewardBlock; // Last block number that RWRD tokens distribution occurs.
        uint256 accRewardTokensPerShare; // Accumulated RWRD tokens per share, times 1e12. See below.
        uint16 depositFeeBP; // Deposit fee in basis points
        uint16 withdrawFeeBP; // Withdraw fee in basis points
    }

    // Address of the reward token.
    RewardToken public rewardToken;
    // Dev address.
    address public devAddress;
    // Dev mint share in basis points.
    uint16 public devMintRatioBP;
    // Reward tokens created per block.
    uint256 public rewardTokenAmountPerBlock;
    // Maximum reward token amount per block.
    uint256 public maximumRewardTokensAmountPerBlock;
    // Deposit Fee address
    address public feeAddress;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Amount of actual deposited tokens for each pool
    uint256[] public poolBalance;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when RWRD emission starts.
    uint256 public startBlock;

    // Rehypothecation with other MasterChef contract.
    mapping(uint256 => RehypothecationProtocol) public rehypothecations;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(
        address indexed user,
        uint256 indexed pid,
        uint256 amount
    );
    event EmissionRateUpdated(
        address indexed caller,
        uint256 previousRate,
        uint256 newRate
    );
    event DevMintRatioUpdated(
        address indexed caller,
        uint16 previousRatio,
        uint16 newRatio
    );

    // Empty constructor, actual construction is in initialize()
    constructor() {}

    function initialize(
        RewardToken _rewardToken,
        uint256 _rewardTokenPerBlock,
        uint256 _maximumRewardTokenPerBlock,
        address _devAddress,
        uint16 _devMintRatioBP,
        address _feeAddress,
        uint256 _startBlock
    ) public {
        require(address(rewardToken) == address(0), "Already initialized");
        require(_startBlock >= block.number);

        rewardToken = _rewardToken;
        rewardTokenAmountPerBlock = _rewardTokenPerBlock;
        maximumRewardTokensAmountPerBlock = _maximumRewardTokenPerBlock;

        devAddress = _devAddress;
        devMintRatioBP = _devMintRatioBP;
        feeAddress = _feeAddress;
        startBlock = _startBlock;

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    modifier validatePool(uint256 _pid) {
        require(_pid < poolInfo.length, "Pool Id invalid");
        _;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function isDuplicate(IERC20 _lpToken) public view returns (bool) {
        uint256 length = poolInfo.length;
        for (uint256 i = 0; i < length; ) {
            if (address(poolInfo[i].lpToken) == address(_lpToken)) {
                return true;
            }
            unchecked {
                i++;
            }
        }
        return false;
    }

    // Add a new pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        uint16 _depositFeeBP,
        uint16 _withdrawFeeBP,
        bool _withUpdate,
        bool _checkDuplicate
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_depositFeeBP <= 100_00, "Invalid deposit fee basis points");
        require(_withdrawFeeBP <= 100_00, "Invalid withdraw fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        if (_checkDuplicate) {
            require(!isDuplicate(_lpToken), "Pool exists");
        }
        uint256 lastRewardBlock = block.number > startBlock
            ? block.number
            : startBlock;
        totalAllocPoint = totalAllocPoint + _allocPoint;
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accRewardTokensPerShare: 0,
                depositFeeBP: _depositFeeBP,
                withdrawFeeBP: _withdrawFeeBP
            })
        );
        poolBalance.push(0);
    }

    // Update the given pool's RWRD allocation point and deposit fee. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        uint16 _depositFeeBP,
        uint16 _withdrawFeeBP,
        bool _withUpdate
    ) external validatePool(_pid) onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_depositFeeBP <= 100_00, "Invalid deposit fee basis points");
        require(_withdrawFeeBP <= 100_00, "Invalid withdraw fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint =
            totalAllocPoint -
            poolInfo[_pid].allocPoint +
            _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        require(
            _withdrawFeeBP <= poolInfo[_pid].withdrawFeeBP,
            "Withdraw fee cannot be increased"
        );
        poolInfo[_pid].withdrawFeeBP = _withdrawFeeBP;
    }

    // Set rehypothecation farming protocol
    function setRehypothecation(
        uint256 _pid,
        RehypothecationProtocol _rehypothecation
    ) external validatePool(_pid) onlyRole(DEFAULT_ADMIN_ROLE) {
        require(
            getTotalDepositAmount(_pid) == 0,
            "Rehypothecation protocol can be changed only on empty pool"
        );
        rehypothecations[_pid] = _rehypothecation;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(
        uint256 _from,
        uint256 _to
    ) public pure returns (uint256) {
        if (_from > _to) {
            (_from, _to) = (_to, _from);
        }
        return (_to - _from);
    }

    // Return amount of tokens staked in pool _pid
    function getTotalDepositAmount(uint256 _pid) public view returns (uint256) {
        RehypothecationProtocol rhypo = rehypothecations[_pid];
        if (address(rhypo) == address(0)) {
            return poolBalance[_pid];
        }
        return rhypo.getTotalDepositAmount();
    }

    // View function to see pending reward on frontend.
    function pendingReward(
        uint256 _pid,
        address _user
    ) public view validatePool(_pid) returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardTokensPerShare = pool.accRewardTokensPerShare;
        uint256 lpSupply = getTotalDepositAmount(_pid);
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(
                pool.lastRewardBlock,
                block.number
            );
            uint256 rewardTokenReward = (multiplier *
                rewardTokenAmountPerBlock *
                pool.allocPoint) / totalAllocPoint;
            accRewardTokensPerShare =
                accRewardTokensPerShare +
                (rewardTokenReward * 1e12) /
                lpSupply;
        }
        return (user.amount * accRewardTokensPerShare) / 1e12 - user.rewardDebt;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ) {
            _updatePool(pid);
            unchecked {
                ++pid;
            }
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function _updatePool(uint256 _pid) private {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = getTotalDepositAmount(_pid);
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 rewardAmount = (multiplier *
            rewardTokenAmountPerBlock *
            pool.allocPoint) / totalAllocPoint;
        uint16 _devMintRatioBP = devMintRatioBP;
        if (_devMintRatioBP > 0) {
            rewardToken.mint(
                devAddress,
                (rewardAmount * _devMintRatioBP) / 100
            );
        }
        rewardToken.mint(address(this), rewardAmount);
        pool.accRewardTokensPerShare =
            pool.accRewardTokensPerShare +
            (rewardAmount * 1e12) /
            lpSupply;
        pool.lastRewardBlock = block.number;
    }

    function updatePool(uint256 _pid) public validatePool(_pid) {
        _updatePool(_pid);
    }

    // Deposit LP tokens to MasterChef for RWRD allocation.
    function deposit(uint256 _pid, uint256 _amount) public validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        address _freeAddress = feeAddress;
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = (user.amount * pool.accRewardTokensPerShare) /
                1e12 -
                user.rewardDebt;
            if (pending > 0) {
                safeRewardTokenTransfer(msg.sender, pending);
                _claimRehypothecationRewards(_pid, _freeAddress, false);
            }
        }
        if (_amount > 0) {
            IERC20 lpToken = pool.lpToken;
            uint256 before = lpToken.balanceOf(address(this));
            lpToken.safeTransferFrom(
                address(msg.sender),
                address(this),
                _amount
            );
            _amount = lpToken.balanceOf(address(this)) - before;
            if (_amount > 0) {
                if (pool.depositFeeBP > 0) {
                    uint256 depositFee = (_amount * pool.depositFeeBP) / 10000;
                    uint256 amountAfterFee = _amount - depositFee;
                    lpToken.safeTransfer(_freeAddress, depositFee);
                    poolBalance[_pid] += amountAfterFee;
                    user.amount = user.amount + amountAfterFee;

                    _depositRehypothecation(_pid, amountAfterFee);
                } else {
                    poolBalance[_pid] += _amount;
                    user.amount = user.amount + _amount;
                    _depositRehypothecation(_pid, _amount);
                }
            }
        }
        user.rewardDebt = (user.amount * pool.accRewardTokensPerShare) / 1e12;
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Convenience method to name claim transaction more properly
    function claim(uint256 _pid) external {
        deposit(_pid, 0);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(
        uint256 _pid,
        uint256 _amount
    ) external validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        address _feeAddress = feeAddress;
        require(user.amount >= _amount, "Withdraw amount too high");
        updatePool(_pid);
        uint256 pending = (user.amount * pool.accRewardTokensPerShare) /
            1e12 -
            user.rewardDebt;
        if (pending > 0) {
            safeRewardTokenTransfer(msg.sender, pending);
            _claimRehypothecationRewards(_pid, _feeAddress, false);
        }
        if (_amount > 0) {
            _withdrawRehypothecation(_pid, _amount);
            user.amount = user.amount - _amount;
            poolBalance[_pid] -= _amount;

            if (pool.withdrawFeeBP > 0) {
                uint256 withdrawFee = (_amount * pool.withdrawFeeBP) / 100_00;
                pool.lpToken.safeTransfer(_feeAddress, withdrawFee);
                pool.lpToken.safeTransfer(
                    address(msg.sender),
                    _amount - withdrawFee
                );
            } else {
                pool.lpToken.safeTransfer(address(msg.sender), _amount);
            }
        }
        user.rewardDebt = (user.amount * pool.accRewardTokensPerShare) / 1e12;
        emit Withdraw(msg.sender, _pid, _amount);
    }

    function claimAll() public {
        uint256 length = poolInfo.length;
        for (uint256 _pid = 0; _pid < length; ) {
            this.deposit(_pid, 0);
            unchecked {
                _pid++;
            }
        }
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        RehypothecationProtocol rhypo = rehypothecations[_pid];
        if (address(rhypo) != address(0)) {
            require(
                pool.allocPoint == 0,
                "Emergency withdraw for pools with rehypothecation is allowed only for inactive pools"
            );
            // In case of rehypothecation, this may fail if enableEmergencyWithdraw() hasn't been called yet
            amount = rhypo.emergencyWithdraw(msg.sender);
        }
        poolBalance[_pid] -= amount;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    // Safe rewardToken transfer function, just in case if rounding error causes pool to not have enough RWRD tokens.
    function safeRewardTokenTransfer(address _to, uint256 _amount) internal {
        uint256 rewardTokenBal = rewardToken.balanceOf(address(this));
        if (_amount > rewardTokenBal) {
            rewardToken.transfer(_to, rewardTokenBal);
        } else {
            rewardToken.transfer(_to, _amount);
        }
    }

    function setDevAddress(
        address _devAddress
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        devAddress = _devAddress;
    }

    function setDevRatio(
        uint16 _devMintRatioBP
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(
            _devMintRatioBP < devMintRatioBP,
            "Dev mint ratio can only be lowered"
        );
        emit DevMintRatioUpdated(msg.sender, devMintRatioBP, _devMintRatioBP);
        devMintRatioBP = _devMintRatioBP;
    }

    function setFeeAddress(
        address _feeAddress
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        feeAddress = _feeAddress;
    }

    // Pancake has to add hidden dummy pools in order to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(
        uint256 _rewardTokensAmountPerBlock
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(
            _rewardTokensAmountPerBlock <= maximumRewardTokensAmountPerBlock,
            "Emission rate too high"
        );
        massUpdatePools();
        emit EmissionRateUpdated(
            msg.sender,
            rewardTokenAmountPerBlock,
            _rewardTokensAmountPerBlock
        );
        rewardTokenAmountPerBlock = _rewardTokensAmountPerBlock;
    }

    function _depositRehypothecation(uint256 _pid, uint256 _amount) internal {
        RehypothecationProtocol rhypo = rehypothecations[_pid];
        if (address(rhypo) != address(0)) {
            poolInfo[_pid].lpToken.approve(address(rhypo), _amount);
            rhypo.deposit(msg.sender, _amount);
        }
    }

    function _withdrawRehypothecation(
        uint256 _pid,
        uint256 _amount
    ) internal returns (bool amountReturned) {
        RehypothecationProtocol rhypo = rehypothecations[_pid];
        if (address(rhypo) != address(0)) {
            rhypo.withdraw(msg.sender, _amount);
            amountReturned = true;
        }
    }

    function _claimRehypothecationRewards(
        uint256 _pid,
        address _feeAddress,
        bool _requireSuccess
    ) internal {
        RehypothecationProtocol rhypo = rehypothecations[_pid];
        if (address(rhypo) != address(0)) {
            try rhypo.claimRewards(_feeAddress) {} catch Error(
                string memory _err
            ) {
                if (_requireSuccess) revert(_err);
            } catch {
                if (_requireSuccess) revert("Claim failed");
            }
        }
    }

    function enableEmergencyWithdraw(
        uint256 _pid
    ) external validatePool(_pid) onlyRole(DEFAULT_ADMIN_ROLE) {
        RehypothecationProtocol rhypo = rehypothecations[_pid];
        require(
            address(rhypo) != address(0),
            "Needed only for pools with rehypothecation"
        );
        massUpdatePools();
        poolInfo[_pid].allocPoint = 0; // deactivate pool
        rhypo.enableEmergencyWithdraw(); // allows user emergency withdraws
    }

    function claimRehypothecationRewards(
        uint256 _pid
    ) external validatePool(_pid) onlyRole(DEFAULT_ADMIN_ROLE) {
        _claimRehypothecationRewards(_pid, feeAddress, true);
    }

    function claimAllRehypothecationRewards()
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        uint256 length = poolInfo.length;
        address _feeAddress = feeAddress;
        for (uint256 _pid = 0; _pid < length; ) {
            _claimRehypothecationRewards(_pid, _feeAddress, false);
            unchecked {
                _pid++;
            }
        }
    }

    function saveTokens(
        IERC20 tokenAddress
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(!isDuplicate(tokenAddress), "Deposited tokens cannot be saved");
        IERC20(tokenAddress).transfer(
            msg.sender,
            IERC20(tokenAddress).balanceOf(address(this))
        );
    }
}
        

lib/openzeppelin-contracts/contracts/access/AccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}
          

lib/openzeppelin-contracts/contracts/access/IAccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}
          

lib/openzeppelin-contracts/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @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);
    }
}
          

lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol

// SPDX-License-Identifier: MIT
// 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
        );
}
          

lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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);
}
          

lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @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 ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
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}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * 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:
     * ```
     * 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);
            }
        }
    }
}
          

lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}
          

lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
          

lib/openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Burnable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.20;

import {ERC20} from "../ERC20.sol";
import {Context} from "../../../utils/Context.sol";

/**
 * @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);
    }
}
          

lib/openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Permit.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Permit.sol)

pragma solidity ^0.8.20;

import {IERC20Permit} from "./IERC20Permit.sol";
import {ERC20} from "../ERC20.sol";
import {ECDSA} from "../../../utils/cryptography/ECDSA.sol";
import {EIP712} from "../../../utils/cryptography/EIP712.sol";
import {Nonces} from "../../../utils/Nonces.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 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 ERC20 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();
    }
}
          

lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 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);
}
          

lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 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);
}
          

lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}
          

lib/openzeppelin-contracts/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}
          

lib/openzeppelin-contracts/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT
// 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;
    }
}
          

lib/openzeppelin-contracts/contracts/utils/Nonces.sol

// SPDX-License-Identifier: MIT
// 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);
        }
    }
}
          

lib/openzeppelin-contracts/contracts/utils/math/Math.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    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 overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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 division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return 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.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev 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^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + 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^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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^256 / 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^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            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^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // 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^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, 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;
        }
    }

    /**
     * @notice 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) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @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;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @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;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @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;
    }
}
          

lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";

// | 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);
        /// @solidity memory-safe-assembly
        assembly {
            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;
        }
    }
}
          

lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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 ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     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;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 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) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            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) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            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) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}
          

lib/openzeppelin-contracts/contracts/utils/Strings.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @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;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    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 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));
    }
}
          

lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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, RecoverError, bytes32) {
        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.
            /// @solidity memory-safe-assembly
            assembly {
                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[EIP-2098 short signatures]
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
        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, RecoverError, bytes32) {
        // 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);
        }
    }
}
          

lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.20;

import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";

/**
 * @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);
    }
}
          

lib/openzeppelin-contracts/contracts/utils/cryptography/MessageHashUtils.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

import {Strings} from "../Strings.sol";

/**
 * @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[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-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) {
        /// @solidity memory-safe-assembly
        assembly {
            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 EIP-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 EIP-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 (EIP-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) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}
          

lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
          

lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return 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 {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}
          

src/Rehypothecation.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;

import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {MasterChef} from "./MasterChef.sol";

/**
 * @title Interface for implementation of rehypothecation protocol in external
 * farming protocol where one ERC-20 token can be deposited for yield.
 *
 * @notice Rehypothecation should be carefully done for taxed tokens
 * because each deposit and withdraw does 2 transfers!
 *
 * @notice Implementation of non-view external methods must use onlyMasterChef
 * modifier allowing only MasterChef to call them
 */
interface IRehypothecationProtocol {
    /** Returns rehypothecation protocol name */
    function name() external returns (string memory);

    /**
     * Deposits funds for account at specified amount.
     *
     * Implementation shall assume that MasterChef already owns funds
     * and approved this implementation to transfer funds further.
     *
     * Implementation must support multiple deposits for same account.
     * Implementation must handle use of zero amount.
     */
    function deposit(address _account, uint256 _amount) external;

    /**
     * Withdraws specified amount of funds for specified account.
     *
     * Implementation shall sent funds back to MasterChef.
     * Implementation must handle use of zero amount.
     */
    function withdraw(address _account, uint256 _amount) external;

    /**
     * Called by MasterChef admin to enable emergency withdraws for user accounts.
     * Typically means that related pool is deactivated and will not be used anymore.
     *
     * Implementation should revert if protocol does not need or does not support
     * emergency withdraw.
     */
    function enableEmergencyWithdraw() external;

    /**
     * Performs emergency withdraw of all funds for specified account.
     *
     * This should be implemented for protocols which support this method
     * such as traditional MasterChefs.
     *
     * Implementation may assume that enableEmergencyWithdraw() was already called.
     */
    function emergencyWithdraw(
        address _account
    ) external returns (uint256 userAmount);

    /**
     * Claim rewards from rehypothecation and transfer them to MasterChef's feeAddress.
     * Returns true if there are some rewards.
     *
     * Implementations may transfer rewards also at other circumstances
     * such as deposit or withdraw as appropriate for underlying protocol.
     */
    function claimRewards(address feeAddress) external returns (bool);

    /** Returns sum of deposits for all accounts. */
    function getTotalDepositAmount() external view returns (uint256);

    /** Returns sum of deposits for specified account. */
    function getUserDepositAmount(
        address _account
    ) external view returns (uint256);
}

abstract contract RehypothecationProtocol is
    IRehypothecationProtocol,
    AccessControl
{
    MasterChef public masterChef;
    string private protocolName;

    constructor(MasterChef _masterChef, string memory _name) {
        masterChef = _masterChef;
        protocolName = string.concat("MasterChef.", _name);
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    modifier onlyMasterChef() {
        require(msg.sender == address(masterChef));
        _;
    }

    function name() public view returns (string memory) {
        return protocolName;
    }
}
          

src/RewardToken.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract RewardToken is ERC20, ERC20Burnable, Ownable, ERC20Permit {
    constructor(
        string memory name,
        string memory symbol,
        address initialOwner
    ) ERC20(name, symbol) Ownable(initialOwner) ERC20Permit(name) {}

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }
}
          

Compiler Settings

{"viaIR":true,"remappings":["@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"outputSelection":{"*":{"*":["abi","evm.bytecode.object","evm.bytecode.sourceMap","evm.bytecode.linkReferences","evm.deployedBytecode.object","evm.deployedBytecode.sourceMap","evm.deployedBytecode.linkReferences","evm.deployedBytecode.immutableReferences","evm.methodIdentifiers","metadata"]}},"optimizer":{"runs":200,"enabled":false},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"libraries":{},"evmVersion":"shanghai"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"AccessControlBadConfirmation","inputs":[]},{"type":"error","name":"AccessControlUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bytes32","name":"neededRole","internalType":"bytes32"}]},{"type":"error","name":"AddressEmptyCode","inputs":[{"type":"address","name":"target","internalType":"address"}]},{"type":"error","name":"AddressInsufficientBalance","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"FailedInnerCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DevMintRatioUpdated","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"uint16","name":"previousRatio","internalType":"uint16","indexed":false},{"type":"uint16","name":"newRatio","internalType":"uint16","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmissionRateUpdated","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"uint256","name":"previousRate","internalType":"uint256","indexed":false},{"type":"uint256","name":"newRate","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"uint16","name":"_depositFeeBP","internalType":"uint16"},{"type":"uint16","name":"_withdrawFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"},{"type":"bool","name":"_checkDuplicate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimAll","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimAllRehypothecationRewards","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimRehypothecationRewards","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"devMintRatioBP","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"enableEmergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeAddress","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMultiplier","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalDepositAmount","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_rewardToken","internalType":"contract RewardToken"},{"type":"uint256","name":"_rewardTokenPerBlock","internalType":"uint256"},{"type":"uint256","name":"_maximumRewardTokenPerBlock","internalType":"uint256"},{"type":"address","name":"_devAddress","internalType":"address"},{"type":"uint16","name":"_devMintRatioBP","internalType":"uint16"},{"type":"address","name":"_feeAddress","internalType":"address"},{"type":"uint256","name":"_startBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isDuplicate","inputs":[{"type":"address","name":"_lpToken","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maximumRewardTokensAmountPerBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingReward","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolBalance","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardBlock","internalType":"uint256"},{"type":"uint256","name":"accRewardTokensPerShare","internalType":"uint256"},{"type":"uint16","name":"depositFeeBP","internalType":"uint16"},{"type":"uint16","name":"withdrawFeeBP","internalType":"uint16"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract RehypothecationProtocol"}],"name":"rehypothecations","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"callerConfirmation","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract RewardToken"}],"name":"rewardToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rewardTokenAmountPerBlock","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"saveTokens","inputs":[{"type":"address","name":"tokenAddress","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"uint16","name":"_depositFeeBP","internalType":"uint16"},{"type":"uint16","name":"_withdrawFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDevAddress","inputs":[{"type":"address","name":"_devAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDevRatio","inputs":[{"type":"uint16","name":"_devMintRatioBP","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeAddress","inputs":[{"type":"address","name":"_feeAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRehypothecation","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_rehypothecation","internalType":"contract RehypothecationProtocol"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateEmissionRate","inputs":[{"type":"uint256","name":"_rewardTokensAmountPerBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]}]
              

Contract Creation Code

0x608060405234602257600e6085565b60146026565b614e436100918239614e4390f35b602c565b60405190565b5f80fd5b5f1b90565b90603f5f19916030565b9181191691161790565b90565b90565b90565b6061605d6065926049565b604f565b604c565b90565b90565b90607b60776081926052565b6068565b82546035565b9055565b608e5f6009606b565b56fe60806040526004361015610013575b6115c7565b61001d5f356102cc565b806301ffc9a7146102c7578063081e3eda146102c25780630ba84cd2146102bd57806312545ac3146102b857806312d6a191146102b35780631526fe27146102ae57806317caf6f1146102a9578063248a9ca3146102a45780632f2ff15d1461029f57806336568abe1461029a578063379607f5146102955780633ad10ef614610290578063412753581461028b578063441a3e7014610286578063469ce95e1461028157806348cd4cb11461027c5780634a7fa021146102775780634d2ad53b1461027257806351eb05a61461026d5780635312ea8e14610268578063630b5ba1146102635780636a6d964e1461025e578063771e6d54146102595780637bd7bde814610254578063819a777e1461024f5780638705fcd41461024a5780638b7c0484146102455780638dbb1e3a146102405780638e2e27231461023b57806391d148541461023657806393f1a40b1461023157806398969e821461022c57806398c99c9e14610227578063a217fddf14610222578063d0d41fe11461021d578063d1058e5914610218578063d4f5063b14610213578063d547741f1461020e578063d86ec35f14610209578063e2bbb15814610204578063e34f7491146101ff578063eb9b3e36146101fa5763f7c618c10361000e57611592565b6114ef565b6114ad565b611479565b611444565b6113c5565b61138b565b6112f4565b6112c1565b61128c565b61121e565b6111e8565b6111b1565b6110c4565b61108f565b611059565b611026565b610ff3565b610fa0565b610ec2565b610e2c565b610d58565b610cc4565b610c91565b610c5e565b610c2b565b610bf4565b610b46565b610b02565b610a81565b610a1f565b6109db565b610946565b610912565b6108de565b61084d565b6107b2565b610767565b610524565b6104a7565b610438565b6103bd565b610354565b60e01c90565b60405190565b5f80fd5b5f80fd5b63ffffffff60e01b1690565b6102f5816102e0565b036102fc57565b5f80fd5b9050359061030d826102ec565b565b9060208282031261032857610325915f01610300565b90565b6102dc565b151590565b61033b9061032d565b9052565b9190610352905f60208501940190610332565b565b346103845761038061036f61036a36600461030f565b6115cf565b6103776102d2565b9182918261033f565b0390f35b6102d8565b5f91031261039357565b6102dc565b90565b6103a490610398565b9052565b91906103bb905f6020850194019061039b565b565b346103ed576103cd366004610389565b6103e96103d8611613565b6103e06102d2565b918291826103a8565b0390f35b6102d8565b6103fb81610398565b0361040257565b5f80fd5b90503590610413826103f2565b565b9060208282031261042e5761042b915f01610406565b90565b6102dc565b5f0190565b346104665761045061044b366004610415565b611792565b6104586102d2565b8061046281610433565b0390f35b6102d8565b1c90565b90565b610482906008610487930261046b565b61046f565b90565b906104959154610472565b90565b6104a460045f9061048a565b90565b346104d7576104b7366004610389565b6104d36104c2610498565b6104ca6102d2565b918291826103a8565b0390f35b6102d8565b61ffff1690565b6104ec816104dc565b036104f357565b5f80fd5b90503590610504826104e3565b565b9060208282031261051f5761051c915f016104f7565b90565b6102dc565b346105525761053c610537366004610506565b61198a565b6105446102d2565b8061054e81610433565b0390f35b6102d8565b634e487b7160e01b5f52603260045260245ffd5b5490565b5f5260205f2090565b6105818161056b565b82101561059b5761059360059161056f565b910201905f90565b610557565b5f1c90565b60018060a01b031690565b6105bc6105c1916105a0565b6105a5565b90565b6105ce90546105b0565b90565b6105dd6105e2916105a0565b61046f565b90565b6105ef90546105d1565b90565b61ffff1690565b61060561060a916105a0565b6105f2565b90565b61061790546105f9565b90565b60101c90565b61062c6106319161061a565b6105f2565b90565b61063e9054610620565b90565b60069061064d8261056b565b8110156106ac5761065d91610578565b509061066a5f83016105c4565b91610677600182016105e5565b91610684600283016105e5565b91610691600382016105e5565b916106a960046106a281850161060d565b9301610634565b90565b5f80fd5b60018060a01b031690565b90565b6106d26106cd6106d7926106b0565b6106bb565b6106b0565b90565b6106e3906106be565b90565b6106ef906106da565b90565b6106fb906106e6565b9052565b610708906104dc565b9052565b919461075461075e9298979561074a60a0966107406107659a61073660c08a019e5f8b01906106f2565b602089019061039b565b604087019061039b565b606085019061039b565b60808301906106ff565b01906106ff565b565b3461079e5761079a61078261077d366004610415565b610641565b926107919694969291926102d2565b9687968761070c565b0390f35b6102d8565b6107af60095f9061048a565b90565b346107e2576107c2366004610389565b6107de6107cd6107a3565b6107d56102d2565b918291826103a8565b0390f35b6102d8565b90565b6107f3816107e7565b036107fa57565b5f80fd5b9050359061080b826107ea565b565b9060208282031261082657610823915f016107fe565b90565b6102dc565b610834906107e7565b9052565b919061084b905f6020850194019061082b565b565b3461087d5761087961086861086336600461080d565b6119df565b6108706102d2565b91829182610838565b0390f35b6102d8565b61088b906106b0565b90565b61089781610882565b0361089e57565b5f80fd5b905035906108af8261088e565b565b91906040838203126108d957806108cd6108d6925f86016107fe565b936020016108a2565b90565b6102dc565b3461090d576108f76108f13660046108b1565b90611a2a565b6108ff6102d2565b8061090981610433565b0390f35b6102d8565b346109415761092b6109253660046108b1565b90611a36565b6109336102d2565b8061093d81610433565b0390f35b6102d8565b346109745761095e610959366004610415565b611a9a565b6109666102d2565b8061097081610433565b0390f35b6102d8565b60018060a01b031690565b610994906008610999930261046b565b610979565b90565b906109a79154610984565b90565b6109b660025f9061099c565b90565b6109c290610882565b9052565b91906109d9905f602085019401906109b9565b565b34610a0b576109eb366004610389565b610a076109f66109aa565b6109fe6102d2565b918291826109c6565b0390f35b6102d8565b610a1c60055f9061099c565b90565b34610a4f57610a2f366004610389565b610a4b610a3a610a10565b610a426102d2565b918291826109c6565b0390f35b6102d8565b9190604083820312610a7c5780610a70610a79925f8601610406565b93602001610406565b90565b6102dc565b34610ab057610a9a610a94366004610a54565b90612017565b610aa26102d2565b80610aac81610433565b0390f35b6102d8565b610abe90610882565b90565b610aca81610ab5565b03610ad157565b5f80fd5b90503590610ae282610ac1565b565b90602082820312610afd57610afa915f01610ad5565b90565b6102dc565b34610b3257610b2e610b1d610b18366004610ae4565b612032565b610b256102d2565b9182918261033f565b0390f35b6102d8565b610b43600a5f9061048a565b90565b34610b7657610b56366004610389565b610b72610b61610b37565b610b696102d2565b918291826103a8565b0390f35b6102d8565b610b848161032d565b03610b8b57565b5f80fd5b90503590610b9c82610b7b565b565b919060a083820312610bef57610bb6815f8501610406565b92610bc48260208301610406565b92610bec610bd584604085016104f7565b93610be381606086016104f7565b93608001610b8f565b90565b6102dc565b34610c2657610c10610c07366004610b9e565b93929092612486565b610c186102d2565b80610c2281610433565b0390f35b6102d8565b34610c5957610c43610c3e366004610415565b6124f8565b610c4b6102d2565b80610c5581610433565b0390f35b6102d8565b34610c8c57610c76610c71366004610415565b61253e565b610c7e6102d2565b80610c8881610433565b0390f35b6102d8565b34610cbf57610ca9610ca4366004610415565b612911565b610cb16102d2565b80610cbb81610433565b0390f35b6102d8565b34610cf257610cd4366004610389565b610cdc61291c565b610ce46102d2565b80610cee81610433565b0390f35b6102d8565b5490565b5f5260205f2090565b610d0d81610cf7565b821015610d2757610d1f600191610cfb565b910201905f90565b610557565b6007610d3781610cf7565b821015610d5457610d5191610d4b91610d04565b9061048a565b90565b5f80fd5b34610d8857610d84610d73610d6e366004610415565b610d2c565b610d7b6102d2565b918291826103a8565b0390f35b6102d8565b610d9690610882565b90565b610da281610d8d565b03610da957565b5f80fd5b90503590610dba82610d99565b565b60e081830312610e2757610dd2825f8301610dad565b92610de08360208401610406565b92610dee8160408501610406565b92610dfc82606083016108a2565b92610e24610e0d84608085016104f7565b93610e1b8160a086016108a2565b9360c001610406565b90565b6102dc565b34610e6157610e4b610e3f366004610dbc565b95949094939193612a8b565b610e536102d2565b80610e5d81610433565b0390f35b6102d8565b610e6f90610882565b90565b610e7b81610e66565b03610e8257565b5f80fd5b90503590610e9382610e72565b565b9190604083820312610ebd5780610eb1610eba925f8601610406565b93602001610e86565b90565b6102dc565b34610ef157610edb610ed5366004610e95565b90612ca9565b610ee36102d2565b80610eed81610433565b0390f35b6102d8565b610f0a610f05610f0f92610398565b6106bb565b610398565b90565b90610f1c90610ef6565b5f5260205260405f2090565b60018060a01b031690565b610f43906008610f48930261046b565b610f28565b90565b90610f569154610f33565b90565b610f6f90610f6a600b915f92610f12565b610f4b565b90565b610f7b906106da565b90565b610f8790610f72565b9052565b9190610f9e905f60208501940190610f7e565b565b34610fd057610fcc610fbb610fb6366004610415565b610f59565b610fc36102d2565b91829182610f8b565b0390f35b6102d8565b90602082820312610fee57610feb915f016108a2565b90565b6102dc565b346110215761100b611006366004610fd5565b612cdd565b6110136102d2565b8061101d81610433565b0390f35b6102d8565b346110545761103e611039366004610415565b612ed9565b6110466102d2565b8061105081610433565b0390f35b6102d8565b3461108a5761108661107561106f366004610a54565b90612ee4565b61107d6102d2565b918291826103a8565b0390f35b6102d8565b346110bf576110bb6110aa6110a5366004610415565b612f18565b6110b26102d2565b918291826103a8565b0390f35b6102d8565b346110f5576110f16110e06110da3660046108b1565b90613032565b6110e86102d2565b9182918261033f565b0390f35b6102d8565b9190604083820312611122578061111661111f925f8601610406565b936020016108a2565b90565b6102dc565b9061113190610ef6565b5f5260205260405f2090565b611146906106da565b90565b906111539061113d565b5f5260205260405f2090565b9061116e611173926008611127565b611149565b9061118b60016111845f85016105e5565b93016105e5565b90565b9160206111af9294936111a860408201965f83019061039b565b019061039b565b565b346111e3576111ca6111c43660046110fa565b9061115f565b906111df6111d66102d2565b9283928361118e565b0390f35b6102d8565b34611219576112156112046111fe3660046110fa565b906131e6565b61120c6102d2565b918291826103a8565b0390f35b6102d8565b3461124c57611236611231366004610ae4565b613419565b61123e6102d2565b8061124881610433565b0390f35b6102d8565b90565b5f1b90565b61126d61126861127292611251565b611254565b6107e7565b90565b61127e5f611259565b90565b611289611275565b90565b346112bc5761129c366004610389565b6112b86112a7611281565b6112af6102d2565b91829182610838565b0390f35b6102d8565b346112ef576112d96112d4366004610fd5565b61344c565b6112e16102d2565b806112eb81610433565b0390f35b6102d8565b3461132257611304366004610389565b61130c613487565b6113146102d2565b8061131e81610433565b0390f35b6102d8565b909160c0828403126113865761133f835f8401610406565b9261134d8160208501610ad5565b9261135b82604083016104f7565b9261138361136c84606085016104f7565b9361137a8160808601610b8f565b9360a001610b8f565b90565b6102dc565b346113c0576113aa61139e366004611327565b94939093929192613996565b6113b26102d2565b806113bc81610433565b0390f35b6102d8565b346113f4576113de6113d83660046108b1565b906139d0565b6113e66102d2565b806113f081610433565b0390f35b6102d8565b61140990600861140e930261046b565b6105f2565b90565b9061141c91546113f9565b90565b61142c6002601490611411565b90565b9190611442905f602085019401906106ff565b565b3461147457611454366004610389565b61147061145f61141f565b6114676102d2565b9182918261142f565b0390f35b6102d8565b346114a85761149261148c366004610a54565b90613e46565b61149a6102d2565b806114a481610433565b0390f35b6102d8565b346114db576114bd366004610389565b6114c5613ec4565b6114cd6102d2565b806114d781610433565b0390f35b6102d8565b6114ec60035f9061048a565b90565b3461151f576114ff366004610389565b61151b61150a6114e0565b6115126102d2565b918291826103a8565b0390f35b6102d8565b60018060a01b031690565b61153f906008611544930261046b565b611524565b90565b90611552915461152f565b90565b61156160015f90611547565b90565b61156d906106da565b90565b61157990611564565b9052565b9190611590905f60208501940190611570565b565b346115c2576115a2366004610389565b6115be6115ad611555565b6115b56102d2565b9182918261157d565b0390f35b6102d8565b5f80fd5b5f90565b6115d76115cb565b50806115f26115ec637965db0b60e01b6102e0565b916102e0565b149081156115ff575b5090565b6116099150613ece565b5f6115fb565b5f90565b61161b61160f565b50611626600661056b565b90565b6116429061163d611638611275565b613ef4565b611708565b565b60209181520190565b5f7f456d697373696f6e207261746520746f6f206869676800000000000000000000910152565b6116816016602092611644565b61168a8161164d565b0190565b6116a39060208101905f818303910152611674565b90565b156116ad57565b6116b56102d2565b62461bcd60e51b8152806116cb6004820161168e565b0390fd5b906116db5f1991611254565b9181191691161790565b90565b906116fd6116f861170492610ef6565b6116e5565b82546116cf565b9055565b611790906117328161172b61172561172060046105e5565b610398565b91610398565b11156116a6565b61173a61291c565b3361174560036105e5565b90826117717feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d95119261113d565b9261178661177d6102d2565b9283928361118e565b0390a260036116e8565b565b61179b90611629565b565b6117b6906117b16117ac611275565b613ef4565b611909565b565b60a01c90565b6117ca6117cf916117b8565b6105f2565b90565b6117dc90546117be565b90565b60207f6564000000000000000000000000000000000000000000000000000000000000917f446576206d696e7420726174696f2063616e206f6e6c79206265206c6f7765725f8201520152565b6118396022604092611644565b611842816117df565b0190565b61185b9060208101905f81830391015261182c565b90565b1561186557565b61186d6102d2565b62461bcd60e51b81528061188360048201611846565b0390fd5b9160206118a89294936118a160408201965f8301906106ff565b01906106ff565b565b60a01b90565b906118c061ffff60a01b916118aa565b9181191691161790565b6118de6118d96118e3926104dc565b6106bb565b6104dc565b90565b90565b906118fe6118f9611905926118ca565b6118e6565b82546118b0565b9055565b611988906119328161192c61192661192160026117d2565b6104dc565b916104dc565b1061185e565b3361193d60026117d2565b90826119697f7fa0c746a78467fbdf5bb34adcbaa07b8d38d3ba394c9d90fd77569bb6c44d769261113d565b9261197e6119756102d2565b92839283611887565b0390a260026118e9565b565b6119939061179d565b565b5f90565b6119a2906107e7565b90565b906119af90611999565b5f5260205260405f2090565b90565b6119ca6119cf916105a0565b6119bb565b90565b6119dc90546119be565b90565b60016119f76119fd926119f0611995565b505f6119a5565b016119d2565b90565b90611a1b91611a16611a11826119df565b613ef4565b611a1d565b565b90611a2791613f4d565b50565b90611a3491611a00565b565b9080611a51611a4b611a46613ffc565b610882565b91610882565b03611a6257611a5f91614009565b50565b5f63334bd91960e11b815280611a7a60048201610433565b0390fd5b611a92611a8d611a9792611251565b6106bb565b610398565b90565b611aad90611aa75f611a7e565b90613e46565b565b5f7f506f6f6c20496420696e76616c69640000000000000000000000000000000000910152565b611ae3600f602092611644565b611aec81611aaf565b0190565b611b059060208101905f818303910152611ad6565b90565b15611b0f57565b611b176102d2565b62461bcd60e51b815280611b2d60048201611af0565b0390fd5b90611b6091611b5b81611b55611b4f611b4a600661056b565b610398565b91610398565b10611b08565b611d70565b565b90565b90565b611b74611b79916105a0565b610979565b90565b611b869054611b68565b90565b5f7f576974686472617720616d6f756e7420746f6f20686967680000000000000000910152565b611bbd6018602092611644565b611bc681611b89565b0190565b611bdf9060208101905f818303910152611bb0565b90565b15611be957565b611bf16102d2565b62461bcd60e51b815280611c0760048201611bca565b0390fd5b634e487b7160e01b5f52601160045260245ffd5b611c2e611c3491939293610398565b92610398565b91611c40838202610398565b928184041490151715611c4f57565b611c0b565b90565b611c6b611c66611c7092611c54565b6106bb565b610398565b90565b634e487b7160e01b5f52601260045260245ffd5b611c93611c9991610398565b91610398565b908115611ca4570490565b611c73565b611cb8611cbe91939293610398565b92610398565b8203918211611cc957565b611c0b565b1b90565b91906008611ced910291611ce75f1984611cce565b92611cce565b9181191691161790565b9190611d0d611d08611d1593610ef6565b6116e5565b908354611cd2565b9055565b611d2d611d28611d3292611251565b6106bb565b6104dc565b90565b611d49611d44611d4e926104dc565b6106bb565b610398565b90565b90565b611d68611d63611d6d92611d51565b6106bb565b610398565b90565b90611ea1611d89611d8360068590610578565b50611b62565b6001611e9a611e86611daf611daa611da360088a90611127565b3390611149565b611b65565b93611dba6005611b7c565b611de1611dc85f88016105e5565b611dda611dd48b610398565b91610398565b1015611be2565b611dea8961253e565b611e35611e24611e10611dfe5f8a016105e5565b611e0a600387016105e5565b90611c1f565b611e1e64e8d4a51000611c57565b90611c87565b611e2f8789016105e5565b90611ca9565b80611e48611e425f611a7e565b91610398565b11611ffb575b5087611e62611e5c5f611a7e565b91610398565b11611ef2575b50611e806003611e795f88016105e5565b92016105e5565b90611c1f565b611e9464e8d4a51000611c57565b90611c87565b91016116e8565b33919091611eed611edb611ed57ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689361113d565b93610ef6565b93611ee46102d2565b918291826103a8565b0390a3565b611efd898990614520565b50611f1e611f16611f0f5f89016105e5565b8a90611ca9565b5f88016116e8565b611f4988611f43611f3160078d90610d04565b919092611f3e838561048a565b611ca9565b91611cf7565b611f5560048301610634565b611f67611f615f611d19565b916104dc565b115f14611fdf57611fd890611fbb611fa7611f968b611f90611f8b60048901610634565b611d35565b90611c1f565b611fa1612710611d54565b90611c87565b91611fb35f86016105c4565b908391614624565b611fc65f84016105c4565b90611fd233918b611ca9565b91614624565b5b5f611e68565b50611ff6611fee5f83016105c4565b338991614624565b611fd9565b61200590336140aa565b61201189825f916143d0565b5f611e4e565b9061202191611b31565b565b600161202f9101610398565b90565b61203a6115cb565b50612045600661056b565b9061204f5f611a7e565b5b8061206361205d85610398565b91610398565b10156120bd576120886120835f61207c60068590610578565b50016105c4565b6106e6565b6120a261209c612097856106e6565b610882565b91610882565b146120b5576120b090612023565b612050565b505050600190565b5050505f90565b906120f6949392916120f1816120eb6120e56120e0600661056b565b610398565b91610398565b10611b08565b6120f8565b565b906121159493929161211061210b611275565b613ef4565b612378565b565b61212b61212661213092611d51565b6106bb565b6104dc565b90565b5f7f496e76616c6964206465706f7369742066656520626173697320706f696e7473910152565b61216660208092611644565b61216f81612133565b0190565b6121889060208101905f81830391015261215a565b90565b1561219257565b61219a6102d2565b62461bcd60e51b8152806121b060048201612173565b0390fd5b60207f7300000000000000000000000000000000000000000000000000000000000000917f496e76616c69642077697468647261772066656520626173697320706f696e745f8201520152565b61220e6021604092611644565b612217816121b4565b0190565b6122309060208101905f818303910152612201565b90565b1561223a57565b6122426102d2565b62461bcd60e51b8152806122586004820161221b565b0390fd5b61226b61227191939293610398565b92610398565b820180921161227c57565b611c0b565b9061228e61ffff91611254565b9181191691161790565b906122ad6122a86122b4926118ca565b6118e6565b8254612281565b9055565b5f7f5769746864726177206665652063616e6e6f7420626520696e63726561736564910152565b6122eb60208092611644565b6122f4816122b8565b0190565b61230d9060208101905f8183039101526122df565b90565b1561231757565b61231f6102d2565b62461bcd60e51b815280612335600482016122f8565b0390fd5b60101b90565b9061234e63ffff000091612339565b9181191691161790565b9061236d612368612374926118ca565b6118e6565b825461233f565b9055565b9261243560049361242161247094612477986123a9846123a261239c612710612117565b916104dc565b111561218b565b6123c8866123c16123bb612710612117565b916104dc565b1115612233565b612479575b61240c6124056123fe8a6123f860016123f16123e960096105e5565b936006610578565b50016105e5565b90611ca9565b839061225c565b60096116e8565b600161241a60068a90610578565b50016116e8565b8461242e60068890610578565b5001612298565b6124688161246161245b6124568761244f60068b90610578565b5001610634565b6104dc565b916104dc565b1115612310565b926006610578565b5001612358565b565b61248161291c565b6123cd565b90612493949392916120c4565b565b6124c3906124be816124b86124b26124ad600661056b565b610398565b91610398565b10611b08565b6124c5565b565b6124de906124d96124d4611275565b613ef4565b6124e0565b565b6124f6906124ee6005611b7c565b6001916143d0565b565b61250190612495565b565b6125319061252c8161252661252061251b600661056b565b610398565b91610398565b10611b08565b612533565b565b61253c90614691565b565b61254790612503565b565b612577906125728161256c612566612561600661056b565b610398565b91610398565b10611b08565b61271e565b565b61258561258a916105a0565b610f28565b90565b6125979054612579565b90565b6125ae6125a96125b392611251565b6106bb565b6106b0565b90565b6125bf9061259a565b90565b60407f7920666f7220696e61637469766520706f6f6c73000000000000000000000000917f456d657267656e637920776974686472617720666f7220706f6f6c73207769745f8201527f682072656879706f746865636174696f6e20697320616c6c6f776564206f6e6c60208201520152565b6126426054606092611644565b61264b816125c2565b0190565b6126649060208101905f818303910152612635565b90565b1561266e57565b6126766102d2565b62461bcd60e51b81528061268c6004820161264f565b0390fd5b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b906126bc90612694565b810190811067ffffffffffffffff8211176126d657604052565b61269e565b60e01b90565b905051906126ee826103f2565b565b9060208282031261270957612706915f016126e1565b90565b6102dc565b6127166102d2565b3d5f823e3d90fd5b61273361272d60068390610578565b50611b62565b61275161274c61274560088590611127565b3390611149565b611b65565b906127876127605f84016105e5565b9261277561276d5f611a7e565b5f83016116e8565b60016127805f611a7e565b91016116e8565b61279b612796600b8590610f12565b61258d565b6127a481610f72565b6127be6127b86127b35f6125b6565b610882565b91610882565b03612857575b506127fe5f612806926127f8856127f26127e060078a90610d04565b9190926127ed838561048a565b611ca9565b91611cf7565b016105c4565b338391614624565b3391909161285261284061283a7fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959361113d565b93610ef6565b936128496102d2565b918291826103a8565b0390a3565b81925061288f60209161288a61287260016128ba96016105e5565b61288461287e5f611a7e565b91610398565b14612667565b610f72565b636ff1c9bc906128af5f33936128a36102d2565b968795869485936126db565b8352600483016109c6565b03925af1801561290c575f6127fe916128069382916128de575b50939250506127c4565b6128ff915060203d8111612905575b6128f781836126b2565b8101906126f0565b5f6128d4565b503d6128ed565b61270e565b61291a90612549565b565b612926600661056b565b61292f5f611a7e565b5b8061294361293d84610398565b91610398565b1015612960578061295661295b92614691565b612023565b612930565b5050565b612970612975916105a0565b611524565b90565b6129829054612964565b90565b5f7f416c726561647920696e697469616c697a656400000000000000000000000000910152565b6129b96013602092611644565b6129c281612985565b0190565b6129db9060208101905f8183039101526129ac565b90565b156129e557565b6129ed6102d2565b62461bcd60e51b815280612a03600482016129c6565b0390fd5b15612a0e57565b5f80fd5b90612a2360018060a01b0391611254565b9181191691161790565b612a36906106be565b90565b612a4290612a2d565b90565b90565b90612a5d612a58612a6492612a39565b612a45565b8254612a12565b9055565b90565b90612a80612a7b612a879261113d565b612a68565b8254612a12565b9055565b612b2a969593612b0e612b1c94612b07612b239895612b00612b1596612adc612abc612ab76001612978565b611564565b612ad6612ad0612acb5f6125b6565b610882565b91610882565b146129de565b612af98d612af2612aec43610398565b91610398565b1015612a07565b6001612a48565b60036116e8565b60046116e8565b6002612a6b565b60026118e9565b6005612a6b565b600a6116e8565b612b3c612b35611275565b3390613f4d565b50565b90612b6e91612b6981612b63612b5d612b58600661056b565b610398565b91610398565b10611b08565b612b70565b565b90612b8a91612b85612b80611275565b613ef4565b612c6f565b565b60207f6368616e676564206f6e6c79206f6e20656d70747920706f6f6c000000000000917f52656879706f746865636174696f6e2070726f746f636f6c2063616e206265205f8201520152565b612be6603a604092611644565b612bef81612b8c565b0190565b612c089060208101905f818303910152612bd9565b90565b15612c1257565b612c1a6102d2565b62461bcd60e51b815280612c3060048201612bf3565b0390fd5b612c3d906106be565b90565b612c4990612c34565b90565b90565b90612c64612c5f612c6b92612c40565b612c4c565b8254612a12565b9055565b612ca2612ca792612c9a612c8284612f18565b612c94612c8e5f611a7e565b91610398565b14612c0b565b91600b610f12565b612c4f565b565b90612cb391612b3f565b565b612cce90612cc9612cc4611275565b613ef4565b612cd0565b565b612cdb906005612a6b565b565b612ce690612cb5565b565b612d1690612d1181612d0b612d05612d00600661056b565b610398565b91610398565b10611b08565b612d18565b565b612d3190612d2c612d27611275565b613ef4565b612dea565b565b60207f6f746865636174696f6e00000000000000000000000000000000000000000000917f4e6565646564206f6e6c7920666f7220706f6f6c7320776974682072656879705f8201520152565b612d8d602a604092611644565b612d9681612d33565b0190565b612daf9060208101905f818303910152612d80565b90565b15612db957565b612dc16102d2565b62461bcd60e51b815280612dd760048201612d9a565b0390fd5b5f910312612de557565b6102dc565b612e5d90612e58612e05612e00600b8490610f12565b61258d565b91612e33612e1284610f72565b612e2c612e26612e215f6125b6565b610882565b91610882565b1415612db2565b612e3b61291c565b6001612e51612e495f611a7e565b926006610578565b50016116e8565b610f72565b633630153390803b15612ed457612e80915f91612e786102d2565b9384926126db565b8252818381612e9160048201610433565b03925af18015612ecf57612ea3575b50565b612ec2905f3d8111612ec8575b612eba81836126b2565b810190612ddb565b5f612ea0565b503d612eb0565b61270e565b612690565b612ee290612ce8565b565b612f0f91612ef061160f565b5081612f04612efe83610398565b91610398565b11612f12575b611ca9565b90565b90612f0a565b612f2061160f565b50612f35612f30600b8390610f12565b61258d565b90612f3f82610f72565b612f59612f53612f4e5f6125b6565b610882565b91610882565b14612fdc57506020612f6d612f8392610f72565b633c9b97fc90612f7b6102d2565b9384926126db565b82528180612f9360048201610433565b03915afa908115612fd7575f91612fa9575b5090565b612fca915060203d8111612fd0575b612fc281836126b2565b8101906126f0565b5f612fa5565b503d612fb8565b61270e565b612ff29150612fec906007610d04565b9061048a565b90565b90612fff9061113d565b5f5260205260405f2090565b60ff1690565b61301d613022916105a0565b61300b565b90565b61302f9054613011565b90565b613058915f61304d613053936130466115cb565b50826119a5565b01612ff5565b613025565b90565b9061308b92916130868261308061307a613075600661056b565b610398565b91610398565b10611b08565b61308e565b90565b6001613139613125613146959461314094506130d26130cd6130bb6130b560068590610578565b50611b62565b976130c860088590611127565b611149565b611b65565b956130e86130e2600383016105e5565b92612f18565b90436131076131016130fc600285016105e5565b610398565b91610398565b11806131cb575b613149575b50506131205f87016105e5565b611c1f565b61313364e8d4a51000611c57565b90611c87565b92016105e5565b90611ca9565b90565b6131c492916131b96131a56131958461318f8b61318861317861317160026131be9b016105e5565b4390612ee4565b61318260036105e5565b90611c1f565b92016105e5565b90611c1f565b61319f60096105e5565b90611c87565b6131b364e8d4a51000611c57565b90611c1f565b611c87565b9061225c565b5f80613113565b50816131df6131d95f611a7e565b91610398565b141561310e565b906131f8916131f361160f565b61305b565b90565b6132149061320f61320a611275565b613ef4565b6132f3565b565b5f7f4465706f736974656420746f6b656e732063616e6e6f74206265207361766564910152565b61324960208092611644565b61325281613216565b0190565b61326b9060208101905f81830391015261323d565b90565b1561327557565b61327d6102d2565b62461bcd60e51b81528061329360048201613256565b0390fd5b6132a0906106da565b90565b905051906132b082610b7b565b565b906020828203126132cb576132c8915f016132a3565b90565b6102dc565b9160206132f19294936132ea60408201965f8301906109b9565b019061039b565b565b61330d61330861330283612032565b1561032d565b61326e565b61335e613319826106e6565b9163a9059cbb92602061332c33936106e6565b6370a082319061335361333e30613297565b926133476102d2565b978894859384936126db565b8352600483016109c6565b03915afa928315613414575f936133de575b506133905f6020949561339b6133846102d2565b978896879586946126db565b8452600484016132d0565b03925af180156133d9576133ad575b50565b6133cd9060203d81116133d2575b6133c581836126b2565b8101906132b2565b6133aa565b503d6133bb565b61270e565b602093505f61340561339092863d811161340d575b6133fd81836126b2565b8101906126f0565b945050613370565b503d6133f3565b61270e565b613422906131fb565b565b61343d90613438613433611275565b613ef4565b61343f565b565b61344a906002612a6b565b565b61345590613424565b565b61346090611a7e565b9052565b91602061348592949361347e60408201965f83019061039b565b0190613457565b565b613491600661056b565b9061349b5f611a7e565b5b806134af6134a985610398565b91610398565b101561354b576134be30613297565b9063e2bbb158815f93803b15613546576134eb5f80946134f66134df6102d2565b988996879586946126db565b845260048401613464565b03925af19182156135415761351092613515575b50612023565b61349c565b613534905f3d811161353a575b61352c81836126b2565b810190612ddb565b5f61350a565b503d613522565b61270e565b612690565b509050565b9061356e9594939291613569613564611275565b613ef4565b613839565b565b5f7f506f6f6c20657869737473000000000000000000000000000000000000000000910152565b6135a4600b602092611644565b6135ad81613570565b0190565b6135c69060208101905f818303910152613597565b90565b156135d057565b6135d86102d2565b62461bcd60e51b8152806135ee600482016135b1565b0390fd5b90565b906136086136016102d2565b92836126b2565b565b61361460c06135f5565b90565b9061362190610ab5565b9052565b9061362f90610398565b9052565b9061363d906104dc565b9052565b5f5260205f2090565b5490565b6136578161364a565b82101561367157613669600591613641565b910201905f90565b610557565b634e487b7160e01b5f525f60045260245ffd5b6136939051610ab5565b90565b61369f906106be565b90565b6136ab90613696565b90565b90565b906136c66136c16136cd926136a2565b6136ae565b8254612a12565b9055565b6136db9051610398565b90565b6136e890516104dc565b90565b9061377960a0600461377f9461370e5f82016137085f8801613689565b906136b1565b61372760018201613721602088016136d1565b906116e8565b6137406002820161373a604088016136d1565b906116e8565b61375960038201613753606088016136d1565b906116e8565b61377182820161376b608088016136de565b90612298565b0192016136de565b90612358565b565b919061379257613790916136eb565b565b613676565b90815491680100000000000000008310156137c757826137bf9160016137c59501815561364e565b90613781565b565b61269e565b90565b5f5260205f2090565b5490565b6137e5816137d8565b8210156137ff576137f76001916137cf565b910201905f90565b610557565b9081549168010000000000000000831015613834578261382c916001613832950181556137dc565b90611cf7565b565b61269e565b909261392c9061392361391a6139359561393a995f9961386e83613867613861612710612117565b916104dc565b111561218b565b61388d86613886613880612710612117565b916104dc565b1115612233565b613989575b61396a575b436138b36138ad6138a8600a6105e5565b610398565b91610398565b11891461395857613915435b6138dd6138d66138cf60096105e5565b8a9061225c565b60096116e8565b61390c6138ea60066135f2565b9a986139038d95989a6138fb61360a565b9e8f01613617565b60208d01613625565b60408b01613625565b611a7e565b60608801613625565b60808601613633565b60a08401613633565b613797565b61395661394760076137cc565b6139505f611a7e565b90613804565b565b613915613965600a6105e5565b6138bf565b61398461397f6139798a612032565b1561032d565b6135c9565b613897565b61399161291c565b613892565b906139a49594939291613550565b565b906139c1916139bc6139b7826119df565b613ef4565b6139c3565b565b906139cd91614009565b50565b906139da916139a6565b565b90613a0b91613a0681613a006139fa6139f5600661056b565b610398565b91610398565b10611b08565b613a0d565b565b90613a23613a1d60068490610578565b50611b62565b613a41613a3c613a3560088690611127565b3390611149565b611b65565b613a4b6005611b7c565b613a548561253e565b613a5f5f83016105e5565b613a71613a6b5f611a7e565b91610398565b11613dbf575b83613a8a613a845f611a7e565b91610398565b11613b26575b506001613ace613aba613ad594613ab46003613aad5f88016105e5565b92016105e5565b90611c1f565b613ac864e8d4a51000611c57565b90611c87565b91016116e8565b33919091613b21613b0f613b097f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159361113d565b93610ef6565b93613b186102d2565b918291826103a8565b0390a3565b9180613b365f613b7493016105c4565b946020613b42876106e6565b6370a0823190613b69613b5430613297565b92613b5d6102d2565b978894859384936126db565b8352600483016109c6565b03915afa928315613dba57613be093613ba3915f91613d8c575b5091879033613b9c30613297565b9192614985565b6020613bae876106e6565b6370a0823190613bd5613bc030613297565b92613bc96102d2565b978894859384936126db565b8352600483016109c6565b03915afa918215613d8757613ad595613c0b613ace94613aba946001975f92613d57575b5090611ca9565b9788613c1f613c195f611a7e565b91610398565b11613c30575b505094505050613a90565b613c3c6004840161060d565b613c4e613c485f611d19565b916104dc565b115f14613cfa57613ca2613cf292613c8e613c7d8c613c77613c7260048a0161060d565b611d35565b90611c1f565b613c88612710611d54565b90611c87565b613c998c8290611ca9565b93919091614624565b613ccc81613cc6613cb48d6007610d04565b919092613cc1838561048a565b61225c565b91611cf7565b613cec613ce4613cdd5f8a016105e5565b839061225c565b5f89016116e8565b896149d5565b5b5f80613c25565b5050613d2787613d21613d0f60078c90610d04565b919092613d1c838561048a565b61225c565b91611cf7565b613d47613d3f613d385f88016105e5565b899061225c565b5f87016116e8565b613d528888906149d5565b613cf3565b613d7991925060203d8111613d80575b613d7181836126b2565b8101906126f0565b905f613c04565b503d613d67565b61270e565b613dad915060203d8111613db3575b613da581836126b2565b8101906126f0565b5f613b8e565b503d613d9b565b61270e565b613e0b613df9613de5613dd35f86016105e5565b613ddf600388016105e5565b90611c1f565b613df364e8d4a51000611c57565b90611c87565b613e05600185016105e5565b90611ca9565b80613e1e613e185f611a7e565b91610398565b11613e2a575b50613a77565b613e3490336140aa565b613e4085825f916143d0565b5f613e24565b90613e50916139dc565b565b613e62613e5d611275565b613ef4565b613e6a613e6c565b565b613e76600661056b565b613e806005611b7c565b91613e8a5f611a7e565b5b80613e9e613e9885610398565b91610398565b1015613ebe5780613eb4613eb992865f916143d0565b612023565b613e8b565b50915050565b613ecc613e52565b565b613ed66115cb565b50613ef0613eea6301ffc9a760e01b6102e0565b916102e0565b1490565b613f0690613f00613ffc565b90614b64565b565b90613f1460ff91611254565b9181191691161790565b613f279061032d565b90565b90565b90613f42613f3d613f4992613f1e565b613f2a565b8254613f08565b9055565b613f556115cb565b50613f6a613f64828490613032565b1561032d565b5f14613ff257613f916001613f8c5f613f848186906119a5565b018590612ff5565b613f2d565b90613f9a613ffc565b90613fd7613fd1613fcb7f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d95611999565b9261113d565b9261113d565b92613fe06102d2565b80613fea81610433565b0390a4600190565b50505f90565b5f90565b614004613ff8565b503390565b6140116115cb565b5061401d818390613032565b5f146140a4576140435f61403e5f6140368186906119a5565b018590612ff5565b613f2d565b9061404c613ffc565b9061408961408361407d7ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b95611999565b9261113d565b9261113d565b926140926102d2565b8061409c81610433565b0390a4600190565b50505f90565b906140f59060206140c36140be6001612978565b611564565b6370a08231906140ea6140d530613297565b926140de6102d2565b968794859384936126db565b8352600483016109c6565b03915afa801561425f576020925f91614232575b50908061411e61411884610398565b91610398565b115f146141aa57506141386141336001612978565b611564565b61415b5f63a9059cbb95939561416661414f6102d2565b978896879586946126db565b8452600484016132d0565b03925af180156141a557614179575b505b565b6141999060203d811161419e575b61419181836126b2565b8101906132b2565b614175565b503d614187565b61270e565b90506141be6141b96001612978565b611564565b6141e15f63a9059cbb9593956141ec6141d56102d2565b978896879586946126db565b8452600484016132d0565b03925af1801561422d57614201575b50614177565b6142219060203d8111614226575b61421981836126b2565b8101906132b2565b6141fb565b503d61420f565b61270e565b6142529150833d8111614258575b61424a81836126b2565b8101906126f0565b5f614109565b503d614240565b61270e565b5f9060033d11614271575b565b905060045f803e6142825f516102cc565b9061426f565b5f9060443d106143055761429a6102d2565b60043d036004823e8051903d602483011167ffffffffffffffff8311176143015781810191825167ffffffffffffffff81116142fb5780602085010160043d038401106142f5576142f29394955060200101906126b2565b90565b50505050565b50505050565b5050565b565b5190565b5f5b83811061431d575050905f910152565b80602091830151818501520161430d565b61434d61435660209361435b9361434481614307565b93848093611644565b9586910161430b565b612694565b0190565b6143749160208201915f81840391015261432e565b90565b5f7f436c61696d206661696c65640000000000000000000000000000000000000000910152565b6143ab600c602092611644565b6143b481614377565b0190565b6143cd9060208101905f81830391015261439e565b90565b6143de6143e391600b610f12565b61258d565b6143ec81610f72565b6144066144006143fb5f6125b6565b610882565b91610882565b03614411575b505050565b61444891614420602092610f72565b61443d5f63ef5cfb8c6144316102d2565b968795869485936126db565b8352600483016109c6565b03925af190816144f4575b50155f146144ee576001614465614264565b6308c379a0146144ab575b61447f575b505b5f808061440c565b614489575f614475565b6144916102d2565b62461bcd60e51b8152806144a7600482016143b8565b0390fd5b6144b3614288565b806144bf575b50614470565b90505f9082156144b9576144ea906144d56102d2565b91829162461bcd60e51b83526004830161435f565b0390fd5b50614477565b6145149060203d8111614519575b61450c81836126b2565b8101906132b2565b614453565b503d614502565b919061453d6145386145306115cb565b94600b610f12565b61258d565b61454681610f72565b61456061455a6145555f6125b6565b610882565b91610882565b0361456a575b5050565b61457691929350610f72565b9063f3fef3a390339092803b156145fa576145a45f80946145af6145986102d2565b978896879586946126db565b8452600484016132d0565b03925af180156145f5576145c9575b506001905f80614566565b6145e8905f3d81116145ee575b6145e081836126b2565b810190612ddb565b5f6145be565b503d6145d6565b61270e565b612690565b63ffffffff1690565b61461c614617614621926145ff565b6126db565b6102e0565b90565b9061466b6146709361465c6004949361464363a9059cbb919391614608565b9261464c6102d2565b96879460208601908152016132d0565b602082018103825203836126b2565b614ba3565b565b90565b61468961468461468e92614672565b6106bb565b610398565b90565b6146a66146a060068390610578565b50611b62565b90436146c56146bf6146ba600286016105e5565b610398565b91610398565b111561494f576146d490612f18565b90816146e86146e25f611a7e565b91610398565b14801561492a575b6149195761474561473561472361471361470c600286016105e5565b4390612ee4565b61471d60036105e5565b90611c1f565b61472f600185016105e5565b90611c1f565b61473f60096105e5565b90611c87565b9161475060026117d2565b8061476361475d5f611d19565b916104dc565b11614855575b5061477c6147776001612978565b611564565b6340c10f1961478a30613297565b8592803b15614850576147b05f80946147bb6147a46102d2565b978896879586946126db565b8452600484016132d0565b03925af193841561484b576148046148139361480a9361481d9761481f575b506147ff6147ea600388016105e5565b936147f964e8d4a51000611c57565b90611c1f565b611c87565b9061225c565b600383016116e8565b60024391016116e8565b565b61483e905f3d8111614844575b61483681836126b2565b810190612ddb565b5f6147da565b503d61482c565b61270e565b612690565b6148676148626001612978565b611564565b906340c10f199061489f61488f61487e6002611b7c565b926148898991611d35565b90611c1f565b6148996064614675565b90611c87565b92803b15614914576148c45f80946148cf6148b86102d2565b978896879586946126db565b8452600484016132d0565b03925af1801561490f576148e3575b614769565b614902905f3d8111614908575b6148fa81836126b2565b810190612ddb565b5f6148de565b503d6148f0565b61270e565b612690565b614928915060024391016116e8565b565b50614937600182016105e5565b6149496149435f611a7e565b91610398565b146146f0565b5050565b60409061497c614983949695939661497260608401985f8501906109b9565b60208301906109b9565b019061039b565b565b6004926149bf6149d395936149ce93946149a66323b872dd92949192614608565b936149af6102d2565b9788956020870190815201614953565b602082018103825203836126b2565b614ba3565b565b6149e96149e4600b8390610f12565b61258d565b906149f382610f72565b614a0d614a07614a025f6125b6565b610882565b91610882565b03614a18575b505050565b614a315f614a2a614a36936006610578565b50016105c4565b6106e6565b90602063095ea7b392614a4883610f72565b90614a665f8796614a71614a5a6102d2565b988996879586946126db565b8452600484016132d0565b03925af1918215614b3c57614a8b92614b10575b50610f72565b906347e7ef2490339092803b15614b0b57614ab95f8094614ac4614aad6102d2565b978896879586946126db565b8452600484016132d0565b03925af18015614b0657614ada575b8080614a13565b614af9905f3d8111614aff575b614af181836126b2565b810190612ddb565b5f614ad3565b503d614ae7565b61270e565b612690565b614b309060203d8111614b35575b614b2881836126b2565b8101906132b2565b614a85565b503d614b1e565b61270e565b916020614b62929493614b5b60408201965f8301906109b9565b019061082b565b565b90614b79614b73838390613032565b1561032d565b614b81575050565b614b9b5f92839263e2517d3f60e01b845260048401614b41565b0390fd5b5190565b90614bb690614bb1836106e6565b614c39565b614bbf81614b9f565b614bd1614bcb5f611a7e565b91610398565b14159081614c09575b50614be25750565b614bee614c05916106e6565b5f918291635274afe760e01b8352600483016109c6565b0390fd5b614c2e9150614c28906020614c1d82614b9f565b8183010191016132b2565b1561032d565b5f614bda565b606090565b90614c5791614c46614c34565b5090614c515f611a7e565b91614cc9565b90565b614c63906106da565b90565b67ffffffffffffffff8111614c8457614c80602091612694565b0190565b61269e565b90614c9b614c9683614c66565b6135f5565b918252565b3d5f14614cbb57614cb03d614c89565b903d5f602084013e5b565b614cc3614c34565b90614cb9565b9091614cd3614c34565b50614cdd30614c5a565b31614cf0614cea83610398565b91610398565b10614d1c575f8091614d19948491602082019151925af190614d10614ca0565b90919091614d43565b90565b614d3f614d2830614c5a565b5f91829163cd78605960e01b8352600483016109c6565b0390fd5b90614d5790614d50614c34565b501561032d565b5f14614d635750614dc7565b614d6c82614b9f565b614d7e614d785f611a7e565b91610398565b1480614dac575b614d8d575090565b614da8905f918291639996b31560e01b8352600483016109c6565b0390fd5b50803b614dc1614dbb5f611a7e565b91610398565b14614d85565b614dd081614b9f565b614de2614ddc5f611a7e565b91610398565b115f14614df157805190602001fd5b5f630a12f52160e11b815280614e0960048201610433565b0390fdfea2646970667358221220e19788b740c62b23c6ead6721dd09ed6c976112303c660087a1d9ef50740df4c64736f6c634300081c0033

Deployed ByteCode

0x60806040526004361015610013575b6115c7565b61001d5f356102cc565b806301ffc9a7146102c7578063081e3eda146102c25780630ba84cd2146102bd57806312545ac3146102b857806312d6a191146102b35780631526fe27146102ae57806317caf6f1146102a9578063248a9ca3146102a45780632f2ff15d1461029f57806336568abe1461029a578063379607f5146102955780633ad10ef614610290578063412753581461028b578063441a3e7014610286578063469ce95e1461028157806348cd4cb11461027c5780634a7fa021146102775780634d2ad53b1461027257806351eb05a61461026d5780635312ea8e14610268578063630b5ba1146102635780636a6d964e1461025e578063771e6d54146102595780637bd7bde814610254578063819a777e1461024f5780638705fcd41461024a5780638b7c0484146102455780638dbb1e3a146102405780638e2e27231461023b57806391d148541461023657806393f1a40b1461023157806398969e821461022c57806398c99c9e14610227578063a217fddf14610222578063d0d41fe11461021d578063d1058e5914610218578063d4f5063b14610213578063d547741f1461020e578063d86ec35f14610209578063e2bbb15814610204578063e34f7491146101ff578063eb9b3e36146101fa5763f7c618c10361000e57611592565b6114ef565b6114ad565b611479565b611444565b6113c5565b61138b565b6112f4565b6112c1565b61128c565b61121e565b6111e8565b6111b1565b6110c4565b61108f565b611059565b611026565b610ff3565b610fa0565b610ec2565b610e2c565b610d58565b610cc4565b610c91565b610c5e565b610c2b565b610bf4565b610b46565b610b02565b610a81565b610a1f565b6109db565b610946565b610912565b6108de565b61084d565b6107b2565b610767565b610524565b6104a7565b610438565b6103bd565b610354565b60e01c90565b60405190565b5f80fd5b5f80fd5b63ffffffff60e01b1690565b6102f5816102e0565b036102fc57565b5f80fd5b9050359061030d826102ec565b565b9060208282031261032857610325915f01610300565b90565b6102dc565b151590565b61033b9061032d565b9052565b9190610352905f60208501940190610332565b565b346103845761038061036f61036a36600461030f565b6115cf565b6103776102d2565b9182918261033f565b0390f35b6102d8565b5f91031261039357565b6102dc565b90565b6103a490610398565b9052565b91906103bb905f6020850194019061039b565b565b346103ed576103cd366004610389565b6103e96103d8611613565b6103e06102d2565b918291826103a8565b0390f35b6102d8565b6103fb81610398565b0361040257565b5f80fd5b90503590610413826103f2565b565b9060208282031261042e5761042b915f01610406565b90565b6102dc565b5f0190565b346104665761045061044b366004610415565b611792565b6104586102d2565b8061046281610433565b0390f35b6102d8565b1c90565b90565b610482906008610487930261046b565b61046f565b90565b906104959154610472565b90565b6104a460045f9061048a565b90565b346104d7576104b7366004610389565b6104d36104c2610498565b6104ca6102d2565b918291826103a8565b0390f35b6102d8565b61ffff1690565b6104ec816104dc565b036104f357565b5f80fd5b90503590610504826104e3565b565b9060208282031261051f5761051c915f016104f7565b90565b6102dc565b346105525761053c610537366004610506565b61198a565b6105446102d2565b8061054e81610433565b0390f35b6102d8565b634e487b7160e01b5f52603260045260245ffd5b5490565b5f5260205f2090565b6105818161056b565b82101561059b5761059360059161056f565b910201905f90565b610557565b5f1c90565b60018060a01b031690565b6105bc6105c1916105a0565b6105a5565b90565b6105ce90546105b0565b90565b6105dd6105e2916105a0565b61046f565b90565b6105ef90546105d1565b90565b61ffff1690565b61060561060a916105a0565b6105f2565b90565b61061790546105f9565b90565b60101c90565b61062c6106319161061a565b6105f2565b90565b61063e9054610620565b90565b60069061064d8261056b565b8110156106ac5761065d91610578565b509061066a5f83016105c4565b91610677600182016105e5565b91610684600283016105e5565b91610691600382016105e5565b916106a960046106a281850161060d565b9301610634565b90565b5f80fd5b60018060a01b031690565b90565b6106d26106cd6106d7926106b0565b6106bb565b6106b0565b90565b6106e3906106be565b90565b6106ef906106da565b90565b6106fb906106e6565b9052565b610708906104dc565b9052565b919461075461075e9298979561074a60a0966107406107659a61073660c08a019e5f8b01906106f2565b602089019061039b565b604087019061039b565b606085019061039b565b60808301906106ff565b01906106ff565b565b3461079e5761079a61078261077d366004610415565b610641565b926107919694969291926102d2565b9687968761070c565b0390f35b6102d8565b6107af60095f9061048a565b90565b346107e2576107c2366004610389565b6107de6107cd6107a3565b6107d56102d2565b918291826103a8565b0390f35b6102d8565b90565b6107f3816107e7565b036107fa57565b5f80fd5b9050359061080b826107ea565b565b9060208282031261082657610823915f016107fe565b90565b6102dc565b610834906107e7565b9052565b919061084b905f6020850194019061082b565b565b3461087d5761087961086861086336600461080d565b6119df565b6108706102d2565b91829182610838565b0390f35b6102d8565b61088b906106b0565b90565b61089781610882565b0361089e57565b5f80fd5b905035906108af8261088e565b565b91906040838203126108d957806108cd6108d6925f86016107fe565b936020016108a2565b90565b6102dc565b3461090d576108f76108f13660046108b1565b90611a2a565b6108ff6102d2565b8061090981610433565b0390f35b6102d8565b346109415761092b6109253660046108b1565b90611a36565b6109336102d2565b8061093d81610433565b0390f35b6102d8565b346109745761095e610959366004610415565b611a9a565b6109666102d2565b8061097081610433565b0390f35b6102d8565b60018060a01b031690565b610994906008610999930261046b565b610979565b90565b906109a79154610984565b90565b6109b660025f9061099c565b90565b6109c290610882565b9052565b91906109d9905f602085019401906109b9565b565b34610a0b576109eb366004610389565b610a076109f66109aa565b6109fe6102d2565b918291826109c6565b0390f35b6102d8565b610a1c60055f9061099c565b90565b34610a4f57610a2f366004610389565b610a4b610a3a610a10565b610a426102d2565b918291826109c6565b0390f35b6102d8565b9190604083820312610a7c5780610a70610a79925f8601610406565b93602001610406565b90565b6102dc565b34610ab057610a9a610a94366004610a54565b90612017565b610aa26102d2565b80610aac81610433565b0390f35b6102d8565b610abe90610882565b90565b610aca81610ab5565b03610ad157565b5f80fd5b90503590610ae282610ac1565b565b90602082820312610afd57610afa915f01610ad5565b90565b6102dc565b34610b3257610b2e610b1d610b18366004610ae4565b612032565b610b256102d2565b9182918261033f565b0390f35b6102d8565b610b43600a5f9061048a565b90565b34610b7657610b56366004610389565b610b72610b61610b37565b610b696102d2565b918291826103a8565b0390f35b6102d8565b610b848161032d565b03610b8b57565b5f80fd5b90503590610b9c82610b7b565b565b919060a083820312610bef57610bb6815f8501610406565b92610bc48260208301610406565b92610bec610bd584604085016104f7565b93610be381606086016104f7565b93608001610b8f565b90565b6102dc565b34610c2657610c10610c07366004610b9e565b93929092612486565b610c186102d2565b80610c2281610433565b0390f35b6102d8565b34610c5957610c43610c3e366004610415565b6124f8565b610c4b6102d2565b80610c5581610433565b0390f35b6102d8565b34610c8c57610c76610c71366004610415565b61253e565b610c7e6102d2565b80610c8881610433565b0390f35b6102d8565b34610cbf57610ca9610ca4366004610415565b612911565b610cb16102d2565b80610cbb81610433565b0390f35b6102d8565b34610cf257610cd4366004610389565b610cdc61291c565b610ce46102d2565b80610cee81610433565b0390f35b6102d8565b5490565b5f5260205f2090565b610d0d81610cf7565b821015610d2757610d1f600191610cfb565b910201905f90565b610557565b6007610d3781610cf7565b821015610d5457610d5191610d4b91610d04565b9061048a565b90565b5f80fd5b34610d8857610d84610d73610d6e366004610415565b610d2c565b610d7b6102d2565b918291826103a8565b0390f35b6102d8565b610d9690610882565b90565b610da281610d8d565b03610da957565b5f80fd5b90503590610dba82610d99565b565b60e081830312610e2757610dd2825f8301610dad565b92610de08360208401610406565b92610dee8160408501610406565b92610dfc82606083016108a2565b92610e24610e0d84608085016104f7565b93610e1b8160a086016108a2565b9360c001610406565b90565b6102dc565b34610e6157610e4b610e3f366004610dbc565b95949094939193612a8b565b610e536102d2565b80610e5d81610433565b0390f35b6102d8565b610e6f90610882565b90565b610e7b81610e66565b03610e8257565b5f80fd5b90503590610e9382610e72565b565b9190604083820312610ebd5780610eb1610eba925f8601610406565b93602001610e86565b90565b6102dc565b34610ef157610edb610ed5366004610e95565b90612ca9565b610ee36102d2565b80610eed81610433565b0390f35b6102d8565b610f0a610f05610f0f92610398565b6106bb565b610398565b90565b90610f1c90610ef6565b5f5260205260405f2090565b60018060a01b031690565b610f43906008610f48930261046b565b610f28565b90565b90610f569154610f33565b90565b610f6f90610f6a600b915f92610f12565b610f4b565b90565b610f7b906106da565b90565b610f8790610f72565b9052565b9190610f9e905f60208501940190610f7e565b565b34610fd057610fcc610fbb610fb6366004610415565b610f59565b610fc36102d2565b91829182610f8b565b0390f35b6102d8565b90602082820312610fee57610feb915f016108a2565b90565b6102dc565b346110215761100b611006366004610fd5565b612cdd565b6110136102d2565b8061101d81610433565b0390f35b6102d8565b346110545761103e611039366004610415565b612ed9565b6110466102d2565b8061105081610433565b0390f35b6102d8565b3461108a5761108661107561106f366004610a54565b90612ee4565b61107d6102d2565b918291826103a8565b0390f35b6102d8565b346110bf576110bb6110aa6110a5366004610415565b612f18565b6110b26102d2565b918291826103a8565b0390f35b6102d8565b346110f5576110f16110e06110da3660046108b1565b90613032565b6110e86102d2565b9182918261033f565b0390f35b6102d8565b9190604083820312611122578061111661111f925f8601610406565b936020016108a2565b90565b6102dc565b9061113190610ef6565b5f5260205260405f2090565b611146906106da565b90565b906111539061113d565b5f5260205260405f2090565b9061116e611173926008611127565b611149565b9061118b60016111845f85016105e5565b93016105e5565b90565b9160206111af9294936111a860408201965f83019061039b565b019061039b565b565b346111e3576111ca6111c43660046110fa565b9061115f565b906111df6111d66102d2565b9283928361118e565b0390f35b6102d8565b34611219576112156112046111fe3660046110fa565b906131e6565b61120c6102d2565b918291826103a8565b0390f35b6102d8565b3461124c57611236611231366004610ae4565b613419565b61123e6102d2565b8061124881610433565b0390f35b6102d8565b90565b5f1b90565b61126d61126861127292611251565b611254565b6107e7565b90565b61127e5f611259565b90565b611289611275565b90565b346112bc5761129c366004610389565b6112b86112a7611281565b6112af6102d2565b91829182610838565b0390f35b6102d8565b346112ef576112d96112d4366004610fd5565b61344c565b6112e16102d2565b806112eb81610433565b0390f35b6102d8565b3461132257611304366004610389565b61130c613487565b6113146102d2565b8061131e81610433565b0390f35b6102d8565b909160c0828403126113865761133f835f8401610406565b9261134d8160208501610ad5565b9261135b82604083016104f7565b9261138361136c84606085016104f7565b9361137a8160808601610b8f565b9360a001610b8f565b90565b6102dc565b346113c0576113aa61139e366004611327565b94939093929192613996565b6113b26102d2565b806113bc81610433565b0390f35b6102d8565b346113f4576113de6113d83660046108b1565b906139d0565b6113e66102d2565b806113f081610433565b0390f35b6102d8565b61140990600861140e930261046b565b6105f2565b90565b9061141c91546113f9565b90565b61142c6002601490611411565b90565b9190611442905f602085019401906106ff565b565b3461147457611454366004610389565b61147061145f61141f565b6114676102d2565b9182918261142f565b0390f35b6102d8565b346114a85761149261148c366004610a54565b90613e46565b61149a6102d2565b806114a481610433565b0390f35b6102d8565b346114db576114bd366004610389565b6114c5613ec4565b6114cd6102d2565b806114d781610433565b0390f35b6102d8565b6114ec60035f9061048a565b90565b3461151f576114ff366004610389565b61151b61150a6114e0565b6115126102d2565b918291826103a8565b0390f35b6102d8565b60018060a01b031690565b61153f906008611544930261046b565b611524565b90565b90611552915461152f565b90565b61156160015f90611547565b90565b61156d906106da565b90565b61157990611564565b9052565b9190611590905f60208501940190611570565b565b346115c2576115a2366004610389565b6115be6115ad611555565b6115b56102d2565b9182918261157d565b0390f35b6102d8565b5f80fd5b5f90565b6115d76115cb565b50806115f26115ec637965db0b60e01b6102e0565b916102e0565b149081156115ff575b5090565b6116099150613ece565b5f6115fb565b5f90565b61161b61160f565b50611626600661056b565b90565b6116429061163d611638611275565b613ef4565b611708565b565b60209181520190565b5f7f456d697373696f6e207261746520746f6f206869676800000000000000000000910152565b6116816016602092611644565b61168a8161164d565b0190565b6116a39060208101905f818303910152611674565b90565b156116ad57565b6116b56102d2565b62461bcd60e51b8152806116cb6004820161168e565b0390fd5b906116db5f1991611254565b9181191691161790565b90565b906116fd6116f861170492610ef6565b6116e5565b82546116cf565b9055565b611790906117328161172b61172561172060046105e5565b610398565b91610398565b11156116a6565b61173a61291c565b3361174560036105e5565b90826117717feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d95119261113d565b9261178661177d6102d2565b9283928361118e565b0390a260036116e8565b565b61179b90611629565b565b6117b6906117b16117ac611275565b613ef4565b611909565b565b60a01c90565b6117ca6117cf916117b8565b6105f2565b90565b6117dc90546117be565b90565b60207f6564000000000000000000000000000000000000000000000000000000000000917f446576206d696e7420726174696f2063616e206f6e6c79206265206c6f7765725f8201520152565b6118396022604092611644565b611842816117df565b0190565b61185b9060208101905f81830391015261182c565b90565b1561186557565b61186d6102d2565b62461bcd60e51b81528061188360048201611846565b0390fd5b9160206118a89294936118a160408201965f8301906106ff565b01906106ff565b565b60a01b90565b906118c061ffff60a01b916118aa565b9181191691161790565b6118de6118d96118e3926104dc565b6106bb565b6104dc565b90565b90565b906118fe6118f9611905926118ca565b6118e6565b82546118b0565b9055565b611988906119328161192c61192661192160026117d2565b6104dc565b916104dc565b1061185e565b3361193d60026117d2565b90826119697f7fa0c746a78467fbdf5bb34adcbaa07b8d38d3ba394c9d90fd77569bb6c44d769261113d565b9261197e6119756102d2565b92839283611887565b0390a260026118e9565b565b6119939061179d565b565b5f90565b6119a2906107e7565b90565b906119af90611999565b5f5260205260405f2090565b90565b6119ca6119cf916105a0565b6119bb565b90565b6119dc90546119be565b90565b60016119f76119fd926119f0611995565b505f6119a5565b016119d2565b90565b90611a1b91611a16611a11826119df565b613ef4565b611a1d565b565b90611a2791613f4d565b50565b90611a3491611a00565b565b9080611a51611a4b611a46613ffc565b610882565b91610882565b03611a6257611a5f91614009565b50565b5f63334bd91960e11b815280611a7a60048201610433565b0390fd5b611a92611a8d611a9792611251565b6106bb565b610398565b90565b611aad90611aa75f611a7e565b90613e46565b565b5f7f506f6f6c20496420696e76616c69640000000000000000000000000000000000910152565b611ae3600f602092611644565b611aec81611aaf565b0190565b611b059060208101905f818303910152611ad6565b90565b15611b0f57565b611b176102d2565b62461bcd60e51b815280611b2d60048201611af0565b0390fd5b90611b6091611b5b81611b55611b4f611b4a600661056b565b610398565b91610398565b10611b08565b611d70565b565b90565b90565b611b74611b79916105a0565b610979565b90565b611b869054611b68565b90565b5f7f576974686472617720616d6f756e7420746f6f20686967680000000000000000910152565b611bbd6018602092611644565b611bc681611b89565b0190565b611bdf9060208101905f818303910152611bb0565b90565b15611be957565b611bf16102d2565b62461bcd60e51b815280611c0760048201611bca565b0390fd5b634e487b7160e01b5f52601160045260245ffd5b611c2e611c3491939293610398565b92610398565b91611c40838202610398565b928184041490151715611c4f57565b611c0b565b90565b611c6b611c66611c7092611c54565b6106bb565b610398565b90565b634e487b7160e01b5f52601260045260245ffd5b611c93611c9991610398565b91610398565b908115611ca4570490565b611c73565b611cb8611cbe91939293610398565b92610398565b8203918211611cc957565b611c0b565b1b90565b91906008611ced910291611ce75f1984611cce565b92611cce565b9181191691161790565b9190611d0d611d08611d1593610ef6565b6116e5565b908354611cd2565b9055565b611d2d611d28611d3292611251565b6106bb565b6104dc565b90565b611d49611d44611d4e926104dc565b6106bb565b610398565b90565b90565b611d68611d63611d6d92611d51565b6106bb565b610398565b90565b90611ea1611d89611d8360068590610578565b50611b62565b6001611e9a611e86611daf611daa611da360088a90611127565b3390611149565b611b65565b93611dba6005611b7c565b611de1611dc85f88016105e5565b611dda611dd48b610398565b91610398565b1015611be2565b611dea8961253e565b611e35611e24611e10611dfe5f8a016105e5565b611e0a600387016105e5565b90611c1f565b611e1e64e8d4a51000611c57565b90611c87565b611e2f8789016105e5565b90611ca9565b80611e48611e425f611a7e565b91610398565b11611ffb575b5087611e62611e5c5f611a7e565b91610398565b11611ef2575b50611e806003611e795f88016105e5565b92016105e5565b90611c1f565b611e9464e8d4a51000611c57565b90611c87565b91016116e8565b33919091611eed611edb611ed57ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689361113d565b93610ef6565b93611ee46102d2565b918291826103a8565b0390a3565b611efd898990614520565b50611f1e611f16611f0f5f89016105e5565b8a90611ca9565b5f88016116e8565b611f4988611f43611f3160078d90610d04565b919092611f3e838561048a565b611ca9565b91611cf7565b611f5560048301610634565b611f67611f615f611d19565b916104dc565b115f14611fdf57611fd890611fbb611fa7611f968b611f90611f8b60048901610634565b611d35565b90611c1f565b611fa1612710611d54565b90611c87565b91611fb35f86016105c4565b908391614624565b611fc65f84016105c4565b90611fd233918b611ca9565b91614624565b5b5f611e68565b50611ff6611fee5f83016105c4565b338991614624565b611fd9565b61200590336140aa565b61201189825f916143d0565b5f611e4e565b9061202191611b31565b565b600161202f9101610398565b90565b61203a6115cb565b50612045600661056b565b9061204f5f611a7e565b5b8061206361205d85610398565b91610398565b10156120bd576120886120835f61207c60068590610578565b50016105c4565b6106e6565b6120a261209c612097856106e6565b610882565b91610882565b146120b5576120b090612023565b612050565b505050600190565b5050505f90565b906120f6949392916120f1816120eb6120e56120e0600661056b565b610398565b91610398565b10611b08565b6120f8565b565b906121159493929161211061210b611275565b613ef4565b612378565b565b61212b61212661213092611d51565b6106bb565b6104dc565b90565b5f7f496e76616c6964206465706f7369742066656520626173697320706f696e7473910152565b61216660208092611644565b61216f81612133565b0190565b6121889060208101905f81830391015261215a565b90565b1561219257565b61219a6102d2565b62461bcd60e51b8152806121b060048201612173565b0390fd5b60207f7300000000000000000000000000000000000000000000000000000000000000917f496e76616c69642077697468647261772066656520626173697320706f696e745f8201520152565b61220e6021604092611644565b612217816121b4565b0190565b6122309060208101905f818303910152612201565b90565b1561223a57565b6122426102d2565b62461bcd60e51b8152806122586004820161221b565b0390fd5b61226b61227191939293610398565b92610398565b820180921161227c57565b611c0b565b9061228e61ffff91611254565b9181191691161790565b906122ad6122a86122b4926118ca565b6118e6565b8254612281565b9055565b5f7f5769746864726177206665652063616e6e6f7420626520696e63726561736564910152565b6122eb60208092611644565b6122f4816122b8565b0190565b61230d9060208101905f8183039101526122df565b90565b1561231757565b61231f6102d2565b62461bcd60e51b815280612335600482016122f8565b0390fd5b60101b90565b9061234e63ffff000091612339565b9181191691161790565b9061236d612368612374926118ca565b6118e6565b825461233f565b9055565b9261243560049361242161247094612477986123a9846123a261239c612710612117565b916104dc565b111561218b565b6123c8866123c16123bb612710612117565b916104dc565b1115612233565b612479575b61240c6124056123fe8a6123f860016123f16123e960096105e5565b936006610578565b50016105e5565b90611ca9565b839061225c565b60096116e8565b600161241a60068a90610578565b50016116e8565b8461242e60068890610578565b5001612298565b6124688161246161245b6124568761244f60068b90610578565b5001610634565b6104dc565b916104dc565b1115612310565b926006610578565b5001612358565b565b61248161291c565b6123cd565b90612493949392916120c4565b565b6124c3906124be816124b86124b26124ad600661056b565b610398565b91610398565b10611b08565b6124c5565b565b6124de906124d96124d4611275565b613ef4565b6124e0565b565b6124f6906124ee6005611b7c565b6001916143d0565b565b61250190612495565b565b6125319061252c8161252661252061251b600661056b565b610398565b91610398565b10611b08565b612533565b565b61253c90614691565b565b61254790612503565b565b612577906125728161256c612566612561600661056b565b610398565b91610398565b10611b08565b61271e565b565b61258561258a916105a0565b610f28565b90565b6125979054612579565b90565b6125ae6125a96125b392611251565b6106bb565b6106b0565b90565b6125bf9061259a565b90565b60407f7920666f7220696e61637469766520706f6f6c73000000000000000000000000917f456d657267656e637920776974686472617720666f7220706f6f6c73207769745f8201527f682072656879706f746865636174696f6e20697320616c6c6f776564206f6e6c60208201520152565b6126426054606092611644565b61264b816125c2565b0190565b6126649060208101905f818303910152612635565b90565b1561266e57565b6126766102d2565b62461bcd60e51b81528061268c6004820161264f565b0390fd5b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b906126bc90612694565b810190811067ffffffffffffffff8211176126d657604052565b61269e565b60e01b90565b905051906126ee826103f2565b565b9060208282031261270957612706915f016126e1565b90565b6102dc565b6127166102d2565b3d5f823e3d90fd5b61273361272d60068390610578565b50611b62565b61275161274c61274560088590611127565b3390611149565b611b65565b906127876127605f84016105e5565b9261277561276d5f611a7e565b5f83016116e8565b60016127805f611a7e565b91016116e8565b61279b612796600b8590610f12565b61258d565b6127a481610f72565b6127be6127b86127b35f6125b6565b610882565b91610882565b03612857575b506127fe5f612806926127f8856127f26127e060078a90610d04565b9190926127ed838561048a565b611ca9565b91611cf7565b016105c4565b338391614624565b3391909161285261284061283a7fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959361113d565b93610ef6565b936128496102d2565b918291826103a8565b0390a3565b81925061288f60209161288a61287260016128ba96016105e5565b61288461287e5f611a7e565b91610398565b14612667565b610f72565b636ff1c9bc906128af5f33936128a36102d2565b968795869485936126db565b8352600483016109c6565b03925af1801561290c575f6127fe916128069382916128de575b50939250506127c4565b6128ff915060203d8111612905575b6128f781836126b2565b8101906126f0565b5f6128d4565b503d6128ed565b61270e565b61291a90612549565b565b612926600661056b565b61292f5f611a7e565b5b8061294361293d84610398565b91610398565b1015612960578061295661295b92614691565b612023565b612930565b5050565b612970612975916105a0565b611524565b90565b6129829054612964565b90565b5f7f416c726561647920696e697469616c697a656400000000000000000000000000910152565b6129b96013602092611644565b6129c281612985565b0190565b6129db9060208101905f8183039101526129ac565b90565b156129e557565b6129ed6102d2565b62461bcd60e51b815280612a03600482016129c6565b0390fd5b15612a0e57565b5f80fd5b90612a2360018060a01b0391611254565b9181191691161790565b612a36906106be565b90565b612a4290612a2d565b90565b90565b90612a5d612a58612a6492612a39565b612a45565b8254612a12565b9055565b90565b90612a80612a7b612a879261113d565b612a68565b8254612a12565b9055565b612b2a969593612b0e612b1c94612b07612b239895612b00612b1596612adc612abc612ab76001612978565b611564565b612ad6612ad0612acb5f6125b6565b610882565b91610882565b146129de565b612af98d612af2612aec43610398565b91610398565b1015612a07565b6001612a48565b60036116e8565b60046116e8565b6002612a6b565b60026118e9565b6005612a6b565b600a6116e8565b612b3c612b35611275565b3390613f4d565b50565b90612b6e91612b6981612b63612b5d612b58600661056b565b610398565b91610398565b10611b08565b612b70565b565b90612b8a91612b85612b80611275565b613ef4565b612c6f565b565b60207f6368616e676564206f6e6c79206f6e20656d70747920706f6f6c000000000000917f52656879706f746865636174696f6e2070726f746f636f6c2063616e206265205f8201520152565b612be6603a604092611644565b612bef81612b8c565b0190565b612c089060208101905f818303910152612bd9565b90565b15612c1257565b612c1a6102d2565b62461bcd60e51b815280612c3060048201612bf3565b0390fd5b612c3d906106be565b90565b612c4990612c34565b90565b90565b90612c64612c5f612c6b92612c40565b612c4c565b8254612a12565b9055565b612ca2612ca792612c9a612c8284612f18565b612c94612c8e5f611a7e565b91610398565b14612c0b565b91600b610f12565b612c4f565b565b90612cb391612b3f565b565b612cce90612cc9612cc4611275565b613ef4565b612cd0565b565b612cdb906005612a6b565b565b612ce690612cb5565b565b612d1690612d1181612d0b612d05612d00600661056b565b610398565b91610398565b10611b08565b612d18565b565b612d3190612d2c612d27611275565b613ef4565b612dea565b565b60207f6f746865636174696f6e00000000000000000000000000000000000000000000917f4e6565646564206f6e6c7920666f7220706f6f6c7320776974682072656879705f8201520152565b612d8d602a604092611644565b612d9681612d33565b0190565b612daf9060208101905f818303910152612d80565b90565b15612db957565b612dc16102d2565b62461bcd60e51b815280612dd760048201612d9a565b0390fd5b5f910312612de557565b6102dc565b612e5d90612e58612e05612e00600b8490610f12565b61258d565b91612e33612e1284610f72565b612e2c612e26612e215f6125b6565b610882565b91610882565b1415612db2565b612e3b61291c565b6001612e51612e495f611a7e565b926006610578565b50016116e8565b610f72565b633630153390803b15612ed457612e80915f91612e786102d2565b9384926126db565b8252818381612e9160048201610433565b03925af18015612ecf57612ea3575b50565b612ec2905f3d8111612ec8575b612eba81836126b2565b810190612ddb565b5f612ea0565b503d612eb0565b61270e565b612690565b612ee290612ce8565b565b612f0f91612ef061160f565b5081612f04612efe83610398565b91610398565b11612f12575b611ca9565b90565b90612f0a565b612f2061160f565b50612f35612f30600b8390610f12565b61258d565b90612f3f82610f72565b612f59612f53612f4e5f6125b6565b610882565b91610882565b14612fdc57506020612f6d612f8392610f72565b633c9b97fc90612f7b6102d2565b9384926126db565b82528180612f9360048201610433565b03915afa908115612fd7575f91612fa9575b5090565b612fca915060203d8111612fd0575b612fc281836126b2565b8101906126f0565b5f612fa5565b503d612fb8565b61270e565b612ff29150612fec906007610d04565b9061048a565b90565b90612fff9061113d565b5f5260205260405f2090565b60ff1690565b61301d613022916105a0565b61300b565b90565b61302f9054613011565b90565b613058915f61304d613053936130466115cb565b50826119a5565b01612ff5565b613025565b90565b9061308b92916130868261308061307a613075600661056b565b610398565b91610398565b10611b08565b61308e565b90565b6001613139613125613146959461314094506130d26130cd6130bb6130b560068590610578565b50611b62565b976130c860088590611127565b611149565b611b65565b956130e86130e2600383016105e5565b92612f18565b90436131076131016130fc600285016105e5565b610398565b91610398565b11806131cb575b613149575b50506131205f87016105e5565b611c1f565b61313364e8d4a51000611c57565b90611c87565b92016105e5565b90611ca9565b90565b6131c492916131b96131a56131958461318f8b61318861317861317160026131be9b016105e5565b4390612ee4565b61318260036105e5565b90611c1f565b92016105e5565b90611c1f565b61319f60096105e5565b90611c87565b6131b364e8d4a51000611c57565b90611c1f565b611c87565b9061225c565b5f80613113565b50816131df6131d95f611a7e565b91610398565b141561310e565b906131f8916131f361160f565b61305b565b90565b6132149061320f61320a611275565b613ef4565b6132f3565b565b5f7f4465706f736974656420746f6b656e732063616e6e6f74206265207361766564910152565b61324960208092611644565b61325281613216565b0190565b61326b9060208101905f81830391015261323d565b90565b1561327557565b61327d6102d2565b62461bcd60e51b81528061329360048201613256565b0390fd5b6132a0906106da565b90565b905051906132b082610b7b565b565b906020828203126132cb576132c8915f016132a3565b90565b6102dc565b9160206132f19294936132ea60408201965f8301906109b9565b019061039b565b565b61330d61330861330283612032565b1561032d565b61326e565b61335e613319826106e6565b9163a9059cbb92602061332c33936106e6565b6370a082319061335361333e30613297565b926133476102d2565b978894859384936126db565b8352600483016109c6565b03915afa928315613414575f936133de575b506133905f6020949561339b6133846102d2565b978896879586946126db565b8452600484016132d0565b03925af180156133d9576133ad575b50565b6133cd9060203d81116133d2575b6133c581836126b2565b8101906132b2565b6133aa565b503d6133bb565b61270e565b602093505f61340561339092863d811161340d575b6133fd81836126b2565b8101906126f0565b945050613370565b503d6133f3565b61270e565b613422906131fb565b565b61343d90613438613433611275565b613ef4565b61343f565b565b61344a906002612a6b565b565b61345590613424565b565b61346090611a7e565b9052565b91602061348592949361347e60408201965f83019061039b565b0190613457565b565b613491600661056b565b9061349b5f611a7e565b5b806134af6134a985610398565b91610398565b101561354b576134be30613297565b9063e2bbb158815f93803b15613546576134eb5f80946134f66134df6102d2565b988996879586946126db565b845260048401613464565b03925af19182156135415761351092613515575b50612023565b61349c565b613534905f3d811161353a575b61352c81836126b2565b810190612ddb565b5f61350a565b503d613522565b61270e565b612690565b509050565b9061356e9594939291613569613564611275565b613ef4565b613839565b565b5f7f506f6f6c20657869737473000000000000000000000000000000000000000000910152565b6135a4600b602092611644565b6135ad81613570565b0190565b6135c69060208101905f818303910152613597565b90565b156135d057565b6135d86102d2565b62461bcd60e51b8152806135ee600482016135b1565b0390fd5b90565b906136086136016102d2565b92836126b2565b565b61361460c06135f5565b90565b9061362190610ab5565b9052565b9061362f90610398565b9052565b9061363d906104dc565b9052565b5f5260205f2090565b5490565b6136578161364a565b82101561367157613669600591613641565b910201905f90565b610557565b634e487b7160e01b5f525f60045260245ffd5b6136939051610ab5565b90565b61369f906106be565b90565b6136ab90613696565b90565b90565b906136c66136c16136cd926136a2565b6136ae565b8254612a12565b9055565b6136db9051610398565b90565b6136e890516104dc565b90565b9061377960a0600461377f9461370e5f82016137085f8801613689565b906136b1565b61372760018201613721602088016136d1565b906116e8565b6137406002820161373a604088016136d1565b906116e8565b61375960038201613753606088016136d1565b906116e8565b61377182820161376b608088016136de565b90612298565b0192016136de565b90612358565b565b919061379257613790916136eb565b565b613676565b90815491680100000000000000008310156137c757826137bf9160016137c59501815561364e565b90613781565b565b61269e565b90565b5f5260205f2090565b5490565b6137e5816137d8565b8210156137ff576137f76001916137cf565b910201905f90565b610557565b9081549168010000000000000000831015613834578261382c916001613832950181556137dc565b90611cf7565b565b61269e565b909261392c9061392361391a6139359561393a995f9961386e83613867613861612710612117565b916104dc565b111561218b565b61388d86613886613880612710612117565b916104dc565b1115612233565b613989575b61396a575b436138b36138ad6138a8600a6105e5565b610398565b91610398565b11891461395857613915435b6138dd6138d66138cf60096105e5565b8a9061225c565b60096116e8565b61390c6138ea60066135f2565b9a986139038d95989a6138fb61360a565b9e8f01613617565b60208d01613625565b60408b01613625565b611a7e565b60608801613625565b60808601613633565b60a08401613633565b613797565b61395661394760076137cc565b6139505f611a7e565b90613804565b565b613915613965600a6105e5565b6138bf565b61398461397f6139798a612032565b1561032d565b6135c9565b613897565b61399161291c565b613892565b906139a49594939291613550565b565b906139c1916139bc6139b7826119df565b613ef4565b6139c3565b565b906139cd91614009565b50565b906139da916139a6565b565b90613a0b91613a0681613a006139fa6139f5600661056b565b610398565b91610398565b10611b08565b613a0d565b565b90613a23613a1d60068490610578565b50611b62565b613a41613a3c613a3560088690611127565b3390611149565b611b65565b613a4b6005611b7c565b613a548561253e565b613a5f5f83016105e5565b613a71613a6b5f611a7e565b91610398565b11613dbf575b83613a8a613a845f611a7e565b91610398565b11613b26575b506001613ace613aba613ad594613ab46003613aad5f88016105e5565b92016105e5565b90611c1f565b613ac864e8d4a51000611c57565b90611c87565b91016116e8565b33919091613b21613b0f613b097f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159361113d565b93610ef6565b93613b186102d2565b918291826103a8565b0390a3565b9180613b365f613b7493016105c4565b946020613b42876106e6565b6370a0823190613b69613b5430613297565b92613b5d6102d2565b978894859384936126db565b8352600483016109c6565b03915afa928315613dba57613be093613ba3915f91613d8c575b5091879033613b9c30613297565b9192614985565b6020613bae876106e6565b6370a0823190613bd5613bc030613297565b92613bc96102d2565b978894859384936126db565b8352600483016109c6565b03915afa918215613d8757613ad595613c0b613ace94613aba946001975f92613d57575b5090611ca9565b9788613c1f613c195f611a7e565b91610398565b11613c30575b505094505050613a90565b613c3c6004840161060d565b613c4e613c485f611d19565b916104dc565b115f14613cfa57613ca2613cf292613c8e613c7d8c613c77613c7260048a0161060d565b611d35565b90611c1f565b613c88612710611d54565b90611c87565b613c998c8290611ca9565b93919091614624565b613ccc81613cc6613cb48d6007610d04565b919092613cc1838561048a565b61225c565b91611cf7565b613cec613ce4613cdd5f8a016105e5565b839061225c565b5f89016116e8565b896149d5565b5b5f80613c25565b5050613d2787613d21613d0f60078c90610d04565b919092613d1c838561048a565b61225c565b91611cf7565b613d47613d3f613d385f88016105e5565b899061225c565b5f87016116e8565b613d528888906149d5565b613cf3565b613d7991925060203d8111613d80575b613d7181836126b2565b8101906126f0565b905f613c04565b503d613d67565b61270e565b613dad915060203d8111613db3575b613da581836126b2565b8101906126f0565b5f613b8e565b503d613d9b565b61270e565b613e0b613df9613de5613dd35f86016105e5565b613ddf600388016105e5565b90611c1f565b613df364e8d4a51000611c57565b90611c87565b613e05600185016105e5565b90611ca9565b80613e1e613e185f611a7e565b91610398565b11613e2a575b50613a77565b613e3490336140aa565b613e4085825f916143d0565b5f613e24565b90613e50916139dc565b565b613e62613e5d611275565b613ef4565b613e6a613e6c565b565b613e76600661056b565b613e806005611b7c565b91613e8a5f611a7e565b5b80613e9e613e9885610398565b91610398565b1015613ebe5780613eb4613eb992865f916143d0565b612023565b613e8b565b50915050565b613ecc613e52565b565b613ed66115cb565b50613ef0613eea6301ffc9a760e01b6102e0565b916102e0565b1490565b613f0690613f00613ffc565b90614b64565b565b90613f1460ff91611254565b9181191691161790565b613f279061032d565b90565b90565b90613f42613f3d613f4992613f1e565b613f2a565b8254613f08565b9055565b613f556115cb565b50613f6a613f64828490613032565b1561032d565b5f14613ff257613f916001613f8c5f613f848186906119a5565b018590612ff5565b613f2d565b90613f9a613ffc565b90613fd7613fd1613fcb7f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d95611999565b9261113d565b9261113d565b92613fe06102d2565b80613fea81610433565b0390a4600190565b50505f90565b5f90565b614004613ff8565b503390565b6140116115cb565b5061401d818390613032565b5f146140a4576140435f61403e5f6140368186906119a5565b018590612ff5565b613f2d565b9061404c613ffc565b9061408961408361407d7ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b95611999565b9261113d565b9261113d565b926140926102d2565b8061409c81610433565b0390a4600190565b50505f90565b906140f59060206140c36140be6001612978565b611564565b6370a08231906140ea6140d530613297565b926140de6102d2565b968794859384936126db565b8352600483016109c6565b03915afa801561425f576020925f91614232575b50908061411e61411884610398565b91610398565b115f146141aa57506141386141336001612978565b611564565b61415b5f63a9059cbb95939561416661414f6102d2565b978896879586946126db565b8452600484016132d0565b03925af180156141a557614179575b505b565b6141999060203d811161419e575b61419181836126b2565b8101906132b2565b614175565b503d614187565b61270e565b90506141be6141b96001612978565b611564565b6141e15f63a9059cbb9593956141ec6141d56102d2565b978896879586946126db565b8452600484016132d0565b03925af1801561422d57614201575b50614177565b6142219060203d8111614226575b61421981836126b2565b8101906132b2565b6141fb565b503d61420f565b61270e565b6142529150833d8111614258575b61424a81836126b2565b8101906126f0565b5f614109565b503d614240565b61270e565b5f9060033d11614271575b565b905060045f803e6142825f516102cc565b9061426f565b5f9060443d106143055761429a6102d2565b60043d036004823e8051903d602483011167ffffffffffffffff8311176143015781810191825167ffffffffffffffff81116142fb5780602085010160043d038401106142f5576142f29394955060200101906126b2565b90565b50505050565b50505050565b5050565b565b5190565b5f5b83811061431d575050905f910152565b80602091830151818501520161430d565b61434d61435660209361435b9361434481614307565b93848093611644565b9586910161430b565b612694565b0190565b6143749160208201915f81840391015261432e565b90565b5f7f436c61696d206661696c65640000000000000000000000000000000000000000910152565b6143ab600c602092611644565b6143b481614377565b0190565b6143cd9060208101905f81830391015261439e565b90565b6143de6143e391600b610f12565b61258d565b6143ec81610f72565b6144066144006143fb5f6125b6565b610882565b91610882565b03614411575b505050565b61444891614420602092610f72565b61443d5f63ef5cfb8c6144316102d2565b968795869485936126db565b8352600483016109c6565b03925af190816144f4575b50155f146144ee576001614465614264565b6308c379a0146144ab575b61447f575b505b5f808061440c565b614489575f614475565b6144916102d2565b62461bcd60e51b8152806144a7600482016143b8565b0390fd5b6144b3614288565b806144bf575b50614470565b90505f9082156144b9576144ea906144d56102d2565b91829162461bcd60e51b83526004830161435f565b0390fd5b50614477565b6145149060203d8111614519575b61450c81836126b2565b8101906132b2565b614453565b503d614502565b919061453d6145386145306115cb565b94600b610f12565b61258d565b61454681610f72565b61456061455a6145555f6125b6565b610882565b91610882565b0361456a575b5050565b61457691929350610f72565b9063f3fef3a390339092803b156145fa576145a45f80946145af6145986102d2565b978896879586946126db565b8452600484016132d0565b03925af180156145f5576145c9575b506001905f80614566565b6145e8905f3d81116145ee575b6145e081836126b2565b810190612ddb565b5f6145be565b503d6145d6565b61270e565b612690565b63ffffffff1690565b61461c614617614621926145ff565b6126db565b6102e0565b90565b9061466b6146709361465c6004949361464363a9059cbb919391614608565b9261464c6102d2565b96879460208601908152016132d0565b602082018103825203836126b2565b614ba3565b565b90565b61468961468461468e92614672565b6106bb565b610398565b90565b6146a66146a060068390610578565b50611b62565b90436146c56146bf6146ba600286016105e5565b610398565b91610398565b111561494f576146d490612f18565b90816146e86146e25f611a7e565b91610398565b14801561492a575b6149195761474561473561472361471361470c600286016105e5565b4390612ee4565b61471d60036105e5565b90611c1f565b61472f600185016105e5565b90611c1f565b61473f60096105e5565b90611c87565b9161475060026117d2565b8061476361475d5f611d19565b916104dc565b11614855575b5061477c6147776001612978565b611564565b6340c10f1961478a30613297565b8592803b15614850576147b05f80946147bb6147a46102d2565b978896879586946126db565b8452600484016132d0565b03925af193841561484b576148046148139361480a9361481d9761481f575b506147ff6147ea600388016105e5565b936147f964e8d4a51000611c57565b90611c1f565b611c87565b9061225c565b600383016116e8565b60024391016116e8565b565b61483e905f3d8111614844575b61483681836126b2565b810190612ddb565b5f6147da565b503d61482c565b61270e565b612690565b6148676148626001612978565b611564565b906340c10f199061489f61488f61487e6002611b7c565b926148898991611d35565b90611c1f565b6148996064614675565b90611c87565b92803b15614914576148c45f80946148cf6148b86102d2565b978896879586946126db565b8452600484016132d0565b03925af1801561490f576148e3575b614769565b614902905f3d8111614908575b6148fa81836126b2565b810190612ddb565b5f6148de565b503d6148f0565b61270e565b612690565b614928915060024391016116e8565b565b50614937600182016105e5565b6149496149435f611a7e565b91610398565b146146f0565b5050565b60409061497c614983949695939661497260608401985f8501906109b9565b60208301906109b9565b019061039b565b565b6004926149bf6149d395936149ce93946149a66323b872dd92949192614608565b936149af6102d2565b9788956020870190815201614953565b602082018103825203836126b2565b614ba3565b565b6149e96149e4600b8390610f12565b61258d565b906149f382610f72565b614a0d614a07614a025f6125b6565b610882565b91610882565b03614a18575b505050565b614a315f614a2a614a36936006610578565b50016105c4565b6106e6565b90602063095ea7b392614a4883610f72565b90614a665f8796614a71614a5a6102d2565b988996879586946126db565b8452600484016132d0565b03925af1918215614b3c57614a8b92614b10575b50610f72565b906347e7ef2490339092803b15614b0b57614ab95f8094614ac4614aad6102d2565b978896879586946126db565b8452600484016132d0565b03925af18015614b0657614ada575b8080614a13565b614af9905f3d8111614aff575b614af181836126b2565b810190612ddb565b5f614ad3565b503d614ae7565b61270e565b612690565b614b309060203d8111614b35575b614b2881836126b2565b8101906132b2565b614a85565b503d614b1e565b61270e565b916020614b62929493614b5b60408201965f8301906109b9565b019061082b565b565b90614b79614b73838390613032565b1561032d565b614b81575050565b614b9b5f92839263e2517d3f60e01b845260048401614b41565b0390fd5b5190565b90614bb690614bb1836106e6565b614c39565b614bbf81614b9f565b614bd1614bcb5f611a7e565b91610398565b14159081614c09575b50614be25750565b614bee614c05916106e6565b5f918291635274afe760e01b8352600483016109c6565b0390fd5b614c2e9150614c28906020614c1d82614b9f565b8183010191016132b2565b1561032d565b5f614bda565b606090565b90614c5791614c46614c34565b5090614c515f611a7e565b91614cc9565b90565b614c63906106da565b90565b67ffffffffffffffff8111614c8457614c80602091612694565b0190565b61269e565b90614c9b614c9683614c66565b6135f5565b918252565b3d5f14614cbb57614cb03d614c89565b903d5f602084013e5b565b614cc3614c34565b90614cb9565b9091614cd3614c34565b50614cdd30614c5a565b31614cf0614cea83610398565b91610398565b10614d1c575f8091614d19948491602082019151925af190614d10614ca0565b90919091614d43565b90565b614d3f614d2830614c5a565b5f91829163cd78605960e01b8352600483016109c6565b0390fd5b90614d5790614d50614c34565b501561032d565b5f14614d635750614dc7565b614d6c82614b9f565b614d7e614d785f611a7e565b91610398565b1480614dac575b614d8d575090565b614da8905f918291639996b31560e01b8352600483016109c6565b0390fd5b50803b614dc1614dbb5f611a7e565b91610398565b14614d85565b614dd081614b9f565b614de2614ddc5f611a7e565b91610398565b115f14614df157805190602001fd5b5f630a12f52160e11b815280614e0960048201610433565b0390fdfea2646970667358221220e19788b740c62b23c6ead6721dd09ed6c976112303c660087a1d9ef50740df4c64736f6c634300081c0033