Contract 0x501ace133452d4df83ca68c684454fcba608b9dd 1

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x104f10a5b835c569a9271e564dfd002e5075f31a31f2b8cacc73ca0edc20b4a6Deposit Matic315867942022-08-06 12:21:307 days 9 hrs ago0x8e4c642269d00948dfcf4401ed1fa630e36b88c1 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.1 MATIC0.009692739 31
0x99565ab714ce5e8771e40bfe68a6a7708e27f5aa9c69a2e08e21bc46b202b201Deposit Matic314238332022-08-02 6:55:4011 days 14 hrs ago0xdd3193b0bbad560ab400469e480059f9ec5fa5fb IN  0x501ace133452d4df83ca68c684454fcba608b9dd5.5 MATIC0.009691995 31
0x48fee7838808eaa3fa415839afc0c92a746df37abb92e782230c3473c57c1a90Deposit Matic306409002022-07-12 12:02:5332 days 9 hrs ago0x09986e6acf22bdbaaed0fdb1c9c307ddae35feab IN  0x501ace133452d4df83ca68c684454fcba608b9dd410 MATIC0.0131781 31
0xd1875776faef9af5e3e00845cd406b535e363023e179f9d3c93edd58073279bcDeposit Matic303990272022-07-06 9:25:3138 days 12 hrs ago0x97312742a538ce0f94e19fee60c8f9b8ef39d860 IN  0x501ace133452d4df83ca68c684454fcba608b9dd970 MATIC0.016723769238 39.34078861
0xfe270f2556dfb74b6652af21afaf2cf35847e9cf72b3ac31cb6c4995cd33e8c7Set Pending Gove...298063572022-06-20 22:50:0253 days 22 hrs ago0x501ace0e8d16b92236763e2ded7ae3bc2dffa276 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0 MATIC0.001465835004 31.000000096
0x9093aad1f7250117d4e8b76c913b51f5c841518471a61ddcfea89826d835e760Deposit Matic296002212022-06-15 14:03:3459 days 7 hrs ago0x83abeafe7ba5be9b173149603e13550dcc2ffe57 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.0416459058 MATIC0.039922217406 93.919381104
0x325897ae5bff8e8ebbe286dde6d7f6d80fd5492b06cb545825fa5d71ead9ed34Deposit Matic293992092022-06-10 15:01:2064 days 6 hrs ago0xf5e8f335c41a9c003bdbb2639dd7bea3b0ed4bb9 IN  0x501ace133452d4df83ca68c684454fcba608b9dd1 MATIC0.011508467404 36.808603051
0xd40da1114d1a0c74dfe318f03eb2fa56b8ff966319d23420686ab05bab680065Deposit Matic293602812022-06-09 15:19:1365 days 6 hrs ago0x14c712fa53588087193e43b8f3fa468ac6f6b0ae IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.1 MATIC0.013263939 31
0xb88adc1cf6772f4e66ecd19bcf37f58a11a3e9ea0f20fca1e36a579ce04ea582Claim Payout292455152022-06-06 18:37:3768 days 2 hrs ago0xbe76fe6a81c83dc8001080e50bf25958c5884d8c IN  0x501ace133452d4df83ca68c684454fcba608b9dd0 MATIC0.003618475 31
0xe02e85f62529a5e61893887f2a4ce611f99628ebbc3bc072b76373e47e799befDeposit Matic289942582022-05-31 13:42:3474 days 7 hrs ago0x8810ec3c21c827b5a1d1e3f3ba30c68c914c751c IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x549fef3cd164cfd6501ecfbf42b62a1f3ad2b52f745c671ebb47a34ad0ee45ceDeposit Matic289939022022-05-31 13:30:1874 days 8 hrs ago0xb5e675b5c7b3b876b9ca44d5cdbe754ec6ea8d30 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.02267034693853.333333973
0x8b24cd17c3a52b86367e1a11088be625d576d409c7a19eb8447a452166ddb049Deposit Matic289937732022-05-31 13:25:5074 days 8 hrs ago0x449b79270ba050d9eaeed885047e86b5d98b3379 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x24e64534adcbc5ce650c175d45757079b5c22656f5d45daed11e5f088cdb301bDeposit Matic289936972022-05-31 13:23:1474 days 8 hrs ago0x4dbab8ed6e0000b7ba3af858505dd96d02e7e6b4 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361560816632.033333333
0x659981ea47fe67814813ae4ac70b39edef5e753d2fd7286b10a59d1c2ed7a68bDeposit Matic289936242022-05-31 13:20:4474 days 8 hrs ago0x6c6413dd7d48d0026af87b620345cfb92d581e9c IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x38a9ec7ea4390ef77ef0167374db3bb68c429507f27080891cf1aa1b63a60c6aDeposit Matic289935612022-05-31 13:18:3474 days 8 hrs ago0x6088b78c77eb4c194e54d4d3a9470ee20d4e102d IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x9e235edd716dca12b4a6ff2ca0bab6feefb8e311e02362a831dd63e46f599295Deposit Matic289868832022-05-31 9:22:1474 days 12 hrs ago0xe6cc2293081cb52c57d6ce2ee877223c7f84c3da IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x166eab1f58ec60e09436612d8d20875548199f2ad6bb9c092a9c93560dcb007eDeposit Matic289868162022-05-31 9:19:5674 days 12 hrs ago0xeb94e7c5fb1552993df8ac078f577b4a54a1b834 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0xae462e3770b60430b4e106b4f267664edf37cca70437a60661083277c8647cd0Deposit Matic289867022022-05-31 9:16:0074 days 12 hrs ago0x2b3f2894ca6396a2ee2afdec21f5d7ac5b37a4f3 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x578cc6548f0cb6ca3943d670906e6a0dd880fc75e6f7348760f2a03fdb6ba027Deposit Matic289866312022-05-31 9:13:3474 days 12 hrs ago0x2856b3b25ca415a42e8b060bce6229902ca40952 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0xd5cf03b75497d4ac1d1cf0739b80ccc09f41a48f3aecc49372b56c6021276856Deposit Matic289865692022-05-31 9:11:2674 days 12 hrs ago0x7bd831b38ece497f95961061734dedd956d2c07d IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x53ee39a1a55540684fbb6900acf54354ffa49281c134a5aa7f815d2ed210240bDeposit Matic289864782022-05-31 9:08:1674 days 12 hrs ago0xa3390eacb246d0522b2e5759fa0ea1ed8af9b27c IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0xbfd5117f3c1b7ad35bff49007e7e38948d650b7c03eae876eb47e99d5616e8efDeposit Matic289737262022-05-31 1:34:1774 days 19 hrs ago0xb89f4a852eb54010d5e306f21f8974d43999e082 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0x67bbe38616b60054db34b637d5e85dc8b80eb96c93329c1da4029b095c551a6aDeposit Matic289736662022-05-31 1:32:1374 days 19 hrs ago0x8dd9107fd6ae214c584c0c2185745e1740e383b8 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0xc83d86592c7ddec64f506b0a34a72d018c1138eaf96de756bfe603528637039aDeposit Matic289736162022-05-31 1:30:2974 days 20 hrs ago0x1dedf6d6c35181a22a01f42999e8e4e1aa0c6ceb IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.05 MATIC0.01361637696632.033333333
0xb94fdf7c753fdfe6b3b639047993835d80e17fe57f95b71a73bda87596224eeaDeposit Matic289735542022-05-31 1:28:1974 days 20 hrs ago0xa8bc08eafa60fa61291543ba9c8e6443d3dc1e46 IN  0x501ace133452d4df83ca68c684454fcba608b9dd0.048 MATIC0.01361637696632.033333333
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x104f10a5b835c569a9271e564dfd002e5075f31a31f2b8cacc73ca0edc20b4a6315867942022-08-06 12:21:307 days 9 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.095 MATIC
0x104f10a5b835c569a9271e564dfd002e5075f31a31f2b8cacc73ca0edc20b4a6315867942022-08-06 12:21:307 days 9 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.005 MATIC
0x99565ab714ce5e8771e40bfe68a6a7708e27f5aa9c69a2e08e21bc46b202b201314238332022-08-02 6:55:4011 days 14 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0755.225 MATIC
0x99565ab714ce5e8771e40bfe68a6a7708e27f5aa9c69a2e08e21bc46b202b201314238332022-08-02 6:55:4011 days 14 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.275 MATIC
0x48fee7838808eaa3fa415839afc0c92a746df37abb92e782230c3473c57c1a90306409002022-07-12 12:02:5332 days 9 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c075389.5 MATIC
0x48fee7838808eaa3fa415839afc0c92a746df37abb92e782230c3473c57c1a90306409002022-07-12 12:02:5332 days 9 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae0620.5 MATIC
0xd1875776faef9af5e3e00845cd406b535e363023e179f9d3c93edd58073279bc303990272022-07-06 9:25:3138 days 12 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c075921.5 MATIC
0xd1875776faef9af5e3e00845cd406b535e363023e179f9d3c93edd58073279bc303990272022-07-06 9:25:3138 days 12 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae0648.5 MATIC
0x9093aad1f7250117d4e8b76c913b51f5c841518471a61ddcfea89826d835e760296002212022-06-15 14:03:3459 days 7 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.03956361051 MATIC
0x9093aad1f7250117d4e8b76c913b51f5c841518471a61ddcfea89826d835e760296002212022-06-15 14:03:3459 days 7 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.00208229529 MATIC
0x325897ae5bff8e8ebbe286dde6d7f6d80fd5492b06cb545825fa5d71ead9ed34293992092022-06-10 15:01:2064 days 6 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.95 MATIC
0x325897ae5bff8e8ebbe286dde6d7f6d80fd5492b06cb545825fa5d71ead9ed34293992092022-06-10 15:01:2064 days 6 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.05 MATIC
0xd40da1114d1a0c74dfe318f03eb2fa56b8ff966319d23420686ab05bab680065293602812022-06-09 15:19:1365 days 6 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.095 MATIC
0xd40da1114d1a0c74dfe318f03eb2fa56b8ff966319d23420686ab05bab680065293602812022-06-09 15:19:1365 days 6 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.005 MATIC
0xe02e85f62529a5e61893887f2a4ce611f99628ebbc3bc072b76373e47e799bef289942582022-05-31 13:42:3474 days 7 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.0475 MATIC
0xe02e85f62529a5e61893887f2a4ce611f99628ebbc3bc072b76373e47e799bef289942582022-05-31 13:42:3474 days 7 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.0025 MATIC
0x549fef3cd164cfd6501ecfbf42b62a1f3ad2b52f745c671ebb47a34ad0ee45ce289939022022-05-31 13:30:1874 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.0475 MATIC
0x549fef3cd164cfd6501ecfbf42b62a1f3ad2b52f745c671ebb47a34ad0ee45ce289939022022-05-31 13:30:1874 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.0025 MATIC
0x8b24cd17c3a52b86367e1a11088be625d576d409c7a19eb8447a452166ddb049289937732022-05-31 13:25:5074 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.0475 MATIC
0x8b24cd17c3a52b86367e1a11088be625d576d409c7a19eb8447a452166ddb049289937732022-05-31 13:25:5074 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.0025 MATIC
0x24e64534adcbc5ce650c175d45757079b5c22656f5d45daed11e5f088cdb301b289936972022-05-31 13:23:1474 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.0475 MATIC
0x24e64534adcbc5ce650c175d45757079b5c22656f5d45daed11e5f088cdb301b289936972022-05-31 13:23:1474 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.0025 MATIC
0x659981ea47fe67814813ae4ac70b39edef5e753d2fd7286b10a59d1c2ed7a68b289936242022-05-31 13:20:4474 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.0475 MATIC
0x659981ea47fe67814813ae4ac70b39edef5e753d2fd7286b10a59d1c2ed7a68b289936242022-05-31 13:20:4474 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0x4999d2076ec9388a742a400b7632b8a07d59ae060.0025 MATIC
0x38a9ec7ea4390ef77ef0167374db3bb68c429507f27080891cf1aa1b63a60c6a289935612022-05-31 13:18:3474 days 8 hrs ago 0x501ace133452d4df83ca68c684454fcba608b9dd 0xd1108a800363c262774b990e9df75a4287d5c0750.0475 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BondTellerMatic

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-02-04
*/

// SPDX-License-Identifier: GPL-3.0-or-later

// Sources flattened with hardhat v2.6.2 https://hardhat.org

// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity 0.8.6;

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


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity 0.8.6;



/**
 * @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}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * 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.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 value {ERC20} uses, unless this function is
     * 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 override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` 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.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @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, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * 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.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @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`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]



pragma solidity 0.8.6;


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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @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, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]



pragma solidity 0.8.6;

/**
 * @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.
 */
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].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}


// File @openzeppelin/contracts/security/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// File @openzeppelin/contracts-upgradeable/utils/cryptography/[email protected]



pragma solidity 0.8.6;

/**
 * @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 ECDSAUpgradeable {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode 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 {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]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode 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 {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        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]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // 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);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

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

        return (signer, RecoverError.NoError);
    }

    /**
     * @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) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}


// File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected]



pragma solidity 0.8.6;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}


// File @openzeppelin/contracts-upgradeable/utils/cryptography/[email protected]



pragma solidity 0.8.6;


/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic 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 their contracts 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].
 *
 * _Available since v3.4._
 */
abstract contract EIP712Upgradeable is Initializable {
    /* solhint-disable var-name-mixedcase */
    bytes32 private _HASHED_NAME;
    bytes32 private _HASHED_VERSION;
    bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    /* solhint-enable var-name-mixedcase */

    /**
     * @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].
     */
    function __EIP712_init(string memory name, string memory version) internal initializer {
        __EIP712_init_unchained(name, version);
    }

    function __EIP712_init_unchained(string memory name, string memory version) internal initializer {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash());
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, 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 ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev The hash of the name parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712NameHash() internal virtual view returns (bytes32) {
        return _HASHED_NAME;
    }

    /**
     * @dev The hash of the version parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712VersionHash() internal virtual view returns (bytes32) {
        return _HASHED_VERSION;
    }
    uint256[50] private __gap;
}


// File @openzeppelin/contracts/utils/cryptography/[email protected]



pragma solidity 0.8.6;

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

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode 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 {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]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode 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 {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        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]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // 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);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

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

        return (signer, RecoverError.NoError);
    }

    /**
     * @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) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}


// File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected]



pragma solidity 0.8.6;

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


// File @openzeppelin/contracts-upgradeable/token/ERC721/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}


// File @openzeppelin/contracts-upgradeable/token/ERC721/[email protected]



pragma solidity 0.8.6;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721ReceiverUpgradeable {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}


// File @openzeppelin/contracts-upgradeable/token/ERC721/extensions/[email protected]



pragma solidity 0.8.6;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @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, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * 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.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @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`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]



pragma solidity 0.8.6;

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]



pragma solidity 0.8.6;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}


// File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected]



pragma solidity 0.8.6;


/**
 * @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);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}


// File @openzeppelin/contracts-upgradeable/token/ERC721/[email protected]



pragma solidity 0.8.6;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Upgradeable.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
    uint256[44] private __gap;
}


// File @openzeppelin/contracts-upgradeable/token/ERC721/extensions/[email protected]



pragma solidity 0.8.6;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts-upgradeable/token/ERC721/extensions/[email protected]



pragma solidity 0.8.6;



/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721Enumerable_init_unchained();
    }

    function __ERC721Enumerable_init_unchained() internal initializer {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Upgradeable.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721Upgradeable.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721Upgradeable.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
    uint256[46] private __gap;
}


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity 0.8.6;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}


// File contracts/interfaces/utils/IERC1271.sol


// code borrowed from @uniswap/v3-periphery
pragma solidity 0.8.6;

/// @title Interface for verifying contract-based account signatures
/// @notice Interface that verifies provided signature for the data
/// @dev Interface defined by EIP-1271
interface IERC1271 {
    /// @notice Returns whether the provided signature is valid for the provided data
    /// @dev MUST return the bytes4 magic value 0x1626ba7e when function passes.
    /// MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5).
    /// MUST allow external calls.
    /// @param hash Hash of the data to be signed
    /// @param signature Signature byte array associated with _data
    /// @return magicValue The bytes4 magic value 0x1626ba7e
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}


// File contracts/interfaces/utils/IERC721EnhancedInitializable.sol


// code borrowed from OpenZeppelin and @uniswap/v3-periphery
pragma solidity 0.8.6;

/**
 * @title ERC721Enhanced
 * @author solace.fi
 * @notice An extension of `ERC721`.
 *
 * The base is OpenZeppelin's `ERC721Enumerable` which also includes the `Metadata` extension. This extension includes simpler transfers, gasless approvals, and better enumeration.
 */
interface IERC721EnhancedInitializable is IERC721EnumerableUpgradeable {

    /***************************************
    SIMPLER TRANSFERS
    ***************************************/

    /**
     * @notice Transfers `tokenID` from `msg.sender` to `to`.
     * @dev This was excluded from the official `ERC721` standard in favor of `transferFrom(address from, address to, uint256 tokenID)`. We elect to include it.
     * @param to The receipient of the token.
     * @param tokenID The token to transfer.
     */
    function transfer(address to, uint256 tokenID) external;

    /**
     * @notice Safely transfers `tokenID` from `msg.sender` to `to`.
     * @dev This was excluded from the official `ERC721` standard in favor of `safeTransferFrom(address from, address to, uint256 tokenID)`. We elect to include it.
     * @param to The receipient of the token.
     * @param tokenID The token to transfer.
     */
    function safeTransfer(address to, uint256 tokenID) external;

    /***************************************
    GASLESS APPROVALS
    ***************************************/

    /**
     * @notice Approve of a specific `tokenID` for spending by `spender` via signature.
     * @param spender The account that is being approved.
     * @param tokenID The ID of the token that is being approved for spending.
     * @param deadline The deadline timestamp by which the call must be mined for the approve to work.
     * @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`.
     * @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`.
     * @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`.
     */
    function permit(
        address spender,
        uint256 tokenID,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @notice Returns the current nonce for `tokenID`. This value must be
     * included whenever a signature is generated for `permit`.
     * Every successful call to `permit` increases ``tokenID``'s nonce by one. This
     * prevents a signature from being used multiple times.
     * @param tokenID ID of the token to request nonce.
     * @return nonce Nonce of the token.
     */
    function nonces(uint256 tokenID) external view returns (uint256 nonce);

    /**
     * @notice The permit typehash used in the `permit` signature.
     * @return typehash The typehash for the `permit`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function PERMIT_TYPEHASH() external view returns (bytes32 typehash);

    /**
     * @notice The domain separator used in the encoding of the signature for `permit`, as defined by `EIP712`.
     * @return seperator The domain seperator for `permit`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32 seperator);

    /***************************************
    CHANGEABLE URIS
    ***************************************/

    /// @notice Emitted when the base URI is set.
    event BaseURISet(string baseURI);

    /***************************************
    MISC
    ***************************************/

    /**
     * @notice Determines if a token exists or not.
     * @param tokenID The ID of the token to query.
     * @return status True if the token exists, false if it doesn't.
     */
    function exists(uint256 tokenID) external view returns (bool status);
}


// File contracts/utils/ERC721EnhancedInitializable.sol


// code borrowed from OpenZeppelin and @uniswap/v3-periphery
pragma solidity 0.8.6;








/**
 * @title ERC721Enhanced
 * @author solace.fi
 * @notice An extension of `ERC721`.
 *
 * The base is OpenZeppelin's `ERC721Enumerable` which also includes the `Metadata` extension. This extension includes simpler transfers, gasless approvals, and better enumeration.
 */
abstract contract ERC721EnhancedInitializable is IERC721EnhancedInitializable, ERC721EnumerableUpgradeable, EIP712Upgradeable {
    using Strings for uint256;

    /// @dev The nonces used in the permit signature verification.
    /// tokenID => nonce
    mapping(uint256 => uint256) private _nonces;

    /// @dev Value is equal to keccak256("Permit(address spender,uint256 tokenID,uint256 nonce,uint256 deadline)");
    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH = 0x137406564cdcf9b40b1700502a9241e87476728da7ae3d0edfcf0541e5b49b3e;

    string public baseURI;

    /**
     * @notice Initializes the `ERC721Enhanced` contract.
     * @param name The name of the token.
     * @param symbol The symbol of the token.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __ERC721Enhanced_init(string memory name, string memory symbol) internal initializer {
        __ERC721_init(name, symbol);
        __ERC721Enumerable_init_unchained();
        __EIP712_init_unchained(name, "1");
    }

    // solhint-disable-next-line func-name-mixedcase
    function __ERC721Enhanced_init_unchained() internal initializer {
        baseURI = "";
    }

    /***************************************
    SIMPLER TRANSFERS
    ***************************************/

    /**
     * @notice Transfers `tokenID` from `msg.sender` to `to`.
     * @dev This was excluded from the official `ERC721` standard in favor of `transferFrom(address from, address to, uint256 tokenID)`. We elect to include it.
     * @param to The receipient of the token.
     * @param tokenID The token to transfer.
     */
    function transfer(address to, uint256 tokenID) public override {
        super.transferFrom(msg.sender, to, tokenID);
    }

    /**
     * @notice Safely transfers `tokenID` from `msg.sender` to `to`.
     * @dev This was excluded from the official `ERC721` standard in favor of `safeTransferFrom(address from, address to, uint256 tokenID)`. We elect to include it.
     * @param to The receipient of the token.
     * @param tokenID The token to transfer.
     */
    function safeTransfer(address to, uint256 tokenID) public override {
        super.safeTransferFrom(msg.sender, to, tokenID, "");
    }

    /***************************************
    GASLESS APPROVALS
    ***************************************/

    /**
     * @notice Approve of a specific `tokenID` for spending by `spender` via signature.
     * @param spender The account that is being approved.
     * @param tokenID The ID of the token that is being approved for spending.
     * @param deadline The deadline timestamp by which the call must be mined for the approve to work.
     * @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`.
     * @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`.
     * @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`.
     */
    function permit(
        address spender,
        uint256 tokenID,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        require(_exists(tokenID), "query for nonexistent token");
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp <= deadline, "permit expired");

        uint256 nonce = _nonces[tokenID]++; // get then increment
        bytes32 digest =
            keccak256(
                abi.encodePacked(
                    "\x19\x01",
                    DOMAIN_SEPARATOR(),
                    keccak256(abi.encode(_PERMIT_TYPEHASH, spender, tokenID, nonce, deadline))
                )
            );
        address owner = ownerOf(tokenID);
        require(spender != owner, "cannot permit to self");

        if (Address.isContract(owner)) {
            require(IERC1271(owner).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e, "unauthorized");
        } else {
            address recoveredAddress = ecrecover(digest, v, r, s);
            require(recoveredAddress != address(0), "invalid signature");
            require(recoveredAddress == owner, "unauthorized");
        }

        _approve(spender, tokenID);
    }

    /**
     * @notice Returns the current nonce for `tokenID`. This value must be
     * included whenever a signature is generated for `permit`.
     * Every successful call to `permit` increases ``tokenID``'s nonce by one. This
     * prevents a signature from being used multiple times.
     * @param tokenID ID of the token to request nonce.
     * @return nonce Nonce of the token.
     */
    function nonces(uint256 tokenID) external view override returns (uint256 nonce) {
        return _nonces[tokenID];
    }

    /**
     * @notice The permit typehash used in the `permit` signature.
     * @return typehash The typehash for the `permit`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function PERMIT_TYPEHASH() external pure override returns (bytes32 typehash) {
        return _PERMIT_TYPEHASH;
    }

    /**
     * @notice The domain separator used in the encoding of the signature for `permit`, as defined by `EIP712`.
     * @return seperator The domain seperator for `permit`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() public view override returns (bytes32 seperator) {
        return _domainSeparatorV4();
    }

    /***************************************
    CHANGEABLE URIS
    ***************************************/

    /**
     * @notice Returns the Uniform Resource Identifier (URI) for `tokenID` token.
     */
    function tokenURI(uint256 tokenID) public view virtual override tokenMustExist(tokenID) returns (string memory) {
        string memory baseURI_ = baseURI;
        return string(abi.encodePacked(baseURI_, tokenID.toString()));
    }

    /**
     * @notice Base URI for computing `tokenURI`. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenID`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual override returns (string memory baseURI_) {
        return baseURI;
    }

    /**
     * @notice Sets the base URI for computing `tokenURI`.
     * @dev Remember to add access control to inheriting contracts.
     * @param baseURI_ The new base URI.
     */
    function _setBaseURI(string memory baseURI_) internal {
        baseURI = baseURI_;
        emit BaseURISet(baseURI_);
    }

    /***************************************
    MODIFIERS
    ***************************************/

    // Call will revert if the token does not exist.
    modifier tokenMustExist(uint256 tokenID) {
        require(_exists(tokenID), "query for nonexistent token");
        _;
    }

    // Call will revert if not made by owner.
    // Call will revert if the token does not exist.
    modifier onlyOwner(uint256 tokenID) {
        require(ownerOf(tokenID) == msg.sender, "only owner");
        _;
    }

    // Call will revert if not made by owner or approved.
    // Call will revert if the token does not exist.
    modifier onlyOwnerOrApproved(uint256 tokenID) {
        require(_isApprovedOrOwner(msg.sender, tokenID), "only owner or approved");
        _;
    }

    /***************************************
    MORE HOOKS
    ***************************************/

    /**
     * @notice Mints `tokenID` and transfers it to `to`.
     * @param to The receiver of the token.
     * @param tokenID The ID of the token to mint.
     */
    function _mint(address to, uint256 tokenID) internal virtual override {
        super._mint(to, tokenID);
        _afterTokenTransfer(address(0), to, tokenID);
    }

    /**
     * @notice Destroys `tokenID`.
     * @param tokenID The ID of the token to burn.
     */
    function _burn(uint256 tokenID) internal virtual override {
        address owner = ownerOf(tokenID);
        super._burn(tokenID);
        _afterTokenTransfer(owner, address(0), tokenID);
    }

    /**
     * @notice Transfers `tokenID` from `from` to `to`.
     * @param from The account to transfer the token from.
     * @param to The account to transfer the token to.
     * @param tokenID The ID of the token to transfer.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenID
    ) internal virtual override {
        super._transfer(from, to, tokenID);
        _afterTokenTransfer(from, to, tokenID);
    }

    /**
     * @notice Hook that is called after any token transfer. This includes minting and burning.
     * @param from The user that sends the token, or zero if minting.
     * @param to The zero that receives the token, or zero if burning.
     * @param tokenID The ID of the token being transferred.
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenID
    // solhint-disable-next-line no-empty-blocks
    ) internal virtual {}

    /***************************************
    MISC
    ***************************************/

    /**
     * @notice Determines if a token exists or not.
     * @param tokenID The ID of the token to query.
     * @return status True if the token exists, false if it doesn't.
     */
    function exists(uint256 tokenID) external view override returns (bool status) {
        return _exists(tokenID);
    }
}


// File contracts/interfaces/utils/IGovernable.sol


pragma solidity 0.8.6;

/**
 * @title IGovernable
 * @author solace.fi
 * @notice Enforces access control for important functions to [**governor**](/docs/protocol/governance).
 *
 * Many contracts contain functionality that should only be accessible to a privileged user. The most common access control pattern is [OpenZeppelin's `Ownable`](https://docs.openzeppelin.com/contracts/4.x/access-control#ownership-and-ownable). We instead use `Governable` with a few key differences:
 * - Transferring the governance role is a two step process. The current governance must [`setPendingGovernance(pendingGovernance_)`](#setpendinggovernance) then the new governance must [`acceptGovernance()`](#acceptgovernance). This is to safeguard against accidentally setting ownership to the wrong address and locking yourself out of your contract.
 * - `governance` is a constructor argument instead of `msg.sender`. This is especially useful when deploying contracts via a [`SingletonFactory`](./ISingletonFactory).
 * - We use `lockGovernance()` instead of `renounceOwnership()`. `renounceOwnership()` is a prerequisite for the reinitialization bug because it sets `owner = address(0x0)`. We also use the `governanceIsLocked()` flag.
 */
interface IGovernable {

    /***************************************
    EVENTS
    ***************************************/

    /// @notice Emitted when pending Governance is set.
    event GovernancePending(address pendingGovernance);
    /// @notice Emitted when Governance is set.
    event GovernanceTransferred(address oldGovernance, address newGovernance);
    /// @notice Emitted when Governance is locked.
    event GovernanceLocked();

    /***************************************
    VIEW FUNCTIONS
    ***************************************/

    /// @notice Address of the current governor.
    function governance() external view returns (address);

    /// @notice Address of the governor to take over.
    function pendingGovernance() external view returns (address);

    /// @notice Returns true if governance is locked.
    function governanceIsLocked() external view returns (bool);

    /***************************************
    MUTATORS
    ***************************************/

    /**
     * @notice Initiates transfer of the governance role to a new governor.
     * Transfer is not complete until the new governor accepts the role.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param pendingGovernance_ The new governor.
     */
    function setPendingGovernance(address pendingGovernance_) external;

    /**
     * @notice Accepts the governance role.
     * Can only be called by the new governor.
     */
    function acceptGovernance() external;

    /**
     * @notice Permanently locks this contract's governance role and any of its functions that require the role.
     * This action cannot be reversed.
     * Before you call it, ask yourself:
     *   - Is the contract self-sustaining?
     *   - Is there a chance you will need governance privileges in the future?
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     */
    function lockGovernance() external;
}


// File contracts/utils/GovernableInitializable.sol


pragma solidity 0.8.6;


/**
 * @title GovernableInitializable
 * @author solace.fi
 * @notice Enforces access control for important functions to [**governor**](/docs/protocol/governance).
 *
 * Many contracts contain functionality that should only be accessible to a privileged user. The most common access control pattern is [OpenZeppelin's `Ownable`](https://docs.openzeppelin.com/contracts/4.x/access-control#ownership-and-ownable). We instead use `Governable` with a few key differences:
   * - Transferring the governance role is a two step process. The current governance must [`setPendingGovernance(pendingGovernance_)`](#setpendinggovernance) then the new governance must [`acceptGovernance()`](#acceptgovernance). This is to safeguard against accidentally setting ownership to the wrong address and locking yourself out of your contract.
 * - `governance` is a constructor argument instead of `msg.sender`. This is especially useful when deploying contracts via a [`SingletonFactory`](./../interfaces/utils/ISingletonFactory).
 * - We use `lockGovernance()` instead of `renounceOwnership()`. `renounceOwnership()` is a prerequisite for the reinitialization bug because it sets `owner = address(0x0)`. We also use the `governanceIsLocked()` flag.
 */
contract GovernableInitializable is IGovernable, Initializable {

    /***************************************
    GLOBAL VARIABLES
    ***************************************/

    // Governor.
    address private _governance;

    // governance to take over.
    address private _pendingGovernance;

    bool private _locked;

    /**
     * @notice Initializes the governable contract.
     * @param governance_ The address of the [governor](/docs/protocol/governance).
     */
    // solhint-disable-next-line func-name-mixedcase
    function __Governable_init(address governance_) internal initializer {
        require(governance_ != address(0x0), "zero address governance");
        _governance = governance_;
        _pendingGovernance = address(0x0);
        _locked = false;
    }

    /***************************************
    MODIFIERS
    ***************************************/

    // can only be called by governor
    // can only be called while unlocked
    modifier onlyGovernance() {
        require(!_locked, "governance locked");
        require(msg.sender == _governance, "!governance");
        _;
    }

    // can only be called by pending governor
    // can only be called while unlocked
    modifier onlyPendingGovernance() {
        require(!_locked, "governance locked");
        require(msg.sender == _pendingGovernance, "!pending governance");
        _;
    }

    /***************************************
    VIEW FUNCTIONS
    ***************************************/

    /// @notice Address of the current governor.
    function governance() external view override returns (address) {
        return _governance;
    }

    /// @notice Address of the governor to take over.
    function pendingGovernance() external view override returns (address) {
        return _pendingGovernance;
    }

    /// @notice Returns true if governance is locked.
    function governanceIsLocked() external view override returns (bool) {
        return _locked;
    }

    /***************************************
    MUTATOR FUNCTIONS
    ***************************************/

    /**
     * @notice Initiates transfer of the governance role to a new governor.
     * Transfer is not complete until the new governor accepts the role.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param pendingGovernance_ The new governor.
     */
    function setPendingGovernance(address pendingGovernance_) external override onlyGovernance {
        _pendingGovernance = pendingGovernance_;
        emit GovernancePending(pendingGovernance_);
    }

    /**
     * @notice Accepts the governance role.
     * Can only be called by the pending governor.
     */
    function acceptGovernance() external override onlyPendingGovernance {
        // sanity check against transferring governance to the zero address
        // if someone figures out how to sign transactions from the zero address
        // consider the entirety of ethereum to be rekt
        require(_pendingGovernance != address(0x0), "zero governance");
        address oldGovernance = _governance;
        _governance = _pendingGovernance;
        _pendingGovernance = address(0x0);
        emit GovernanceTransferred(oldGovernance, _governance);
    }

    /**
     * @notice Permanently locks this contract's governance role and any of its functions that require the role.
     * This action cannot be reversed.
     * Before you call it, ask yourself:
     *   - Is the contract self-sustaining?
     *   - Is there a chance you will need governance privileges in the future?
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     */
    function lockGovernance() external override onlyGovernance {
        _locked = true;
        // intentionally not using address(0x0), see re-initialization exploit
        _governance = address(0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF);
        _pendingGovernance = address(0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF);
        emit GovernanceTransferred(msg.sender, address(0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF));
        emit GovernanceLocked();
    }
}


// File contracts/interfaces/ISOLACE.sol



pragma solidity 0.8.6;

/**
 * @title Solace Token (SOLACE)
 * @author solace.fi
 * @notice The native governance token of the Solace Coverage Protocol.
 */
interface ISOLACE is IERC20Metadata {

    /***************************************
    EVENTS
    ***************************************/

    /// @notice Emitted when a minter is added.
    event MinterAdded(address indexed minter);
    /// @notice Emitted when a minter is removed.
    event MinterRemoved(address indexed minter);

    /***************************************
    MINT FUNCTIONS
    ***************************************/

    /**
     * @notice Returns true if `account` is authorized to mint [**SOLACE**](../SOLACE).
     * @param account Account to query.
     * @return status True if `account` can mint, false otherwise.
     */
    function isMinter(address account) external view returns (bool status);

    /**
     * @notice Mints new [**SOLACE**](../SOLACE) to the receiver account.
     * Can only be called by authorized minters.
     * @param account The receiver of new tokens.
     * @param amount The number of new tokens.
     */
    function mint(address account, uint256 amount) external;

    /**
     * @notice Burns [**SOLACE**](../SOLACE) from msg.sender.
     * @param amount Amount to burn.
     */
    function burn(uint256 amount) external;

    /**
     * @notice Adds a new minter.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param minter The new minter.
     */
    function addMinter(address minter) external;

    /**
     * @notice Removes a minter.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param minter The minter to remove.
     */
    function removeMinter(address minter) external;
}


// File @openzeppelin/contracts/utils/structs/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}


// File @openzeppelin/contracts/utils/structs/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    using EnumerableSet for EnumerableSet.Bytes32Set;

    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct Map {
        // Storage of keys
        EnumerableSet.Bytes32Set _keys;
        mapping(bytes32 => bytes32) _values;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(
        Map storage map,
        bytes32 key,
        bytes32 value
    ) private returns (bool) {
        map._values[key] = value;
        return map._keys.add(key);
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        delete map._values[key];
        return map._keys.remove(key);
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._keys.contains(key);
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._keys.length();
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        bytes32 key = map._keys.at(index);
        return (key, map._values[key]);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        bytes32 value = map._values[key];
        if (value == bytes32(0)) {
            return (_contains(map, key), bytes32(0));
        } else {
            return (true, value);
        }
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key");
        return value;
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(
        Map storage map,
        bytes32 key,
        string memory errorMessage
    ) private view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || _contains(map, key), errorMessage);
        return value;
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        UintToAddressMap storage map,
        uint256 key,
        address value
    ) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToAddressMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}


// File @openzeppelin/contracts/utils/introspection/[email protected]



pragma solidity 0.8.6;

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


// File @openzeppelin/contracts/token/ERC721/[email protected]



pragma solidity 0.8.6;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]



pragma solidity 0.8.6;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File contracts/interfaces/utils/IERC721Enhanced.sol


// code borrowed from OpenZeppelin and @uniswap/v3-periphery
pragma solidity 0.8.6;

/**
 * @title ERC721Enhanced
 * @author solace.fi
 * @notice An extension of `ERC721`.
 *
 * The base is OpenZeppelin's `ERC721Enumerable` which also includes the `Metadata` extension. This extension includes simpler transfers, gasless approvals, and changeable URIs.
 */
interface IERC721Enhanced is IERC721Enumerable {

    /***************************************
    SIMPLER TRANSFERS
    ***************************************/

    /**
     * @notice Transfers `tokenID` from `msg.sender` to `to`.
     * @dev This was excluded from the official `ERC721` standard in favor of `transferFrom(address from, address to, uint256 tokenID)`. We elect to include it.
     * @param to The receipient of the token.
     * @param tokenID The token to transfer.
     */
    function transfer(address to, uint256 tokenID) external;

    /**
     * @notice Safely transfers `tokenID` from `msg.sender` to `to`.
     * @dev This was excluded from the official `ERC721` standard in favor of `safeTransferFrom(address from, address to, uint256 tokenID)`. We elect to include it.
     * @param to The receipient of the token.
     * @param tokenID The token to transfer.
     */
    function safeTransfer(address to, uint256 tokenID) external;

    /***************************************
    GASLESS APPROVALS
    ***************************************/

    /**
     * @notice Approve of a specific `tokenID` for spending by `spender` via signature.
     * @param spender The account that is being approved.
     * @param tokenID The ID of the token that is being approved for spending.
     * @param deadline The deadline timestamp by which the call must be mined for the approve to work.
     * @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`.
     * @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`.
     * @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`.
     */
    function permit(
        address spender,
        uint256 tokenID,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @notice Returns the current nonce for `tokenID`. This value must be
     * included whenever a signature is generated for `permit`.
     * Every successful call to `permit` increases ``tokenID``'s nonce by one. This
     * prevents a signature from being used multiple times.
     * @param tokenID ID of the token to request nonce.
     * @return nonce Nonce of the token.
     */
    function nonces(uint256 tokenID) external view returns (uint256 nonce);

    /**
     * @notice The permit typehash used in the `permit` signature.
     * @return typehash The typehash for the `permit`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function PERMIT_TYPEHASH() external view returns (bytes32 typehash);

    /**
     * @notice The domain separator used in the encoding of the signature for `permit`, as defined by `EIP712`.
     * @return seperator The domain seperator for `permit`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32 seperator);

    /***************************************
    CHANGEABLE URIS
    ***************************************/

    /// @notice Emitted when the base URI is set.
    event BaseURISet(string baseURI);

    /***************************************
    MISC
    ***************************************/

    /**
     * @notice Determines if a token exists or not.
     * @param tokenID The ID of the token to query.
     * @return status True if the token exists, false if it doesn't.
     */
    function exists(uint256 tokenID) external view returns (bool status);
}


// File contracts/interfaces/staking/IxsLocker.sol


pragma solidity 0.8.6;




struct Lock {
    uint256 amount;
    uint256 end;
}


/**
 * @title IxsLocker
 * @author solace.fi
 * @notice Stake your [**SOLACE**](./../../SOLACE) to receive voting rights, [**SOLACE**](./../../SOLACE) rewards, and more.
 *
 * Locks are ERC721s and can be viewed with [`locks()`](#locks). Each lock has an `amount` of [**SOLACE**](./../../SOLACE) and an `end` timestamp and cannot be transferred or withdrawn from before it unlocks. Locks have a maximum duration of four years.
 *
 * Users can create locks via [`createLock()`](#createlock) or [`createLockSigned()`](#createlocksigned), deposit more [**SOLACE**](./../../SOLACE) into a lock via [`increaseAmount()`](#increaseamount) or [`increaseAmountSigned()`](#increaseamountsigned), extend a lock via [`extendLock()`](#extendlock), and withdraw via [`withdraw()`](#withdraw), [`withdrawInPart()`](#withdrawinpart), or [`withdrawMany()`](#withdrawmany).
 *
 * Users and contracts (eg BondTellers) may deposit on behalf of another user or contract.
 *
 * Any time a lock is updated it will notify the listener contracts (eg StakingRewards).
 *
 * Note that transferring [**SOLACE**](./../../SOLACE) to this contract will not give you any rewards. You should deposit your [**SOLACE**](./../../SOLACE) via [`createLock()`](#createlock) or [`createLockSigned()`](#createlocksigned).
 */
interface IxsLocker is IERC721Enhanced {

    /***************************************
    EVENTS
    ***************************************/

    /// @notice Emitted when a lock is created.
    event LockCreated(uint256 xsLockID);
    /// @notice Emitted when a lock is updated.
    event LockUpdated(uint256 xsLockID, uint256 amount, uint256 end);
    /// @notice Emitted when a lock is withdrawn from.
    event Withdrawl(uint256 xsLockID, uint256 amount);
    /// @notice Emitted when a listener is added.
    event xsLockListenerAdded(address listener);
    /// @notice Emitted when a listener is removed.
    event xsLockListenerRemoved(address listener);

    /***************************************
    GLOBAL VARIABLES
    ***************************************/

    /// @notice [**SOLACE**](./../../SOLACE) token.
    function solace() external view returns (address);

    /// @notice The maximum time into the future that a lock can expire.
    function MAX_LOCK_DURATION() external view returns (uint256);

    /// @notice The total number of locks that have been created.
    function totalNumLocks() external view returns (uint256);

    /***************************************
    VIEW FUNCTIONS
    ***************************************/

    /**
     * @notice Information about a lock.
     * @param xsLockID The ID of the lock to query.
     * @return lock_ Information about the lock.
     */
    function locks(uint256 xsLockID) external view returns (Lock memory lock_);

    /**
     * @notice Determines if the lock is locked.
     * @param xsLockID The ID of the lock to query.
     * @return locked True if the lock is locked, false if unlocked.
     */
    function isLocked(uint256 xsLockID) external view returns (bool locked);

    /**
     * @notice Determines the time left until the lock unlocks.
     * @param xsLockID The ID of the lock to query.
     * @return time The time left in seconds, 0 if unlocked.
     */
    function timeLeft(uint256 xsLockID) external view returns (uint256 time);

    /**
     * @notice Returns the amount of [**SOLACE**](./../../SOLACE) the user has staked.
     * @param account The account to query.
     * @return balance The user's balance.
     */
    function stakedBalance(address account) external view returns (uint256 balance);

    /**
     * @notice The list of contracts that are listening to lock updates.
     * @return listeners_ The list as an array.
     */
    function getXsLockListeners() external view returns (address[] memory listeners_);

    /***************************************
    MUTATOR FUNCTIONS
    ***************************************/

    /**
     * @notice Deposit [**SOLACE**](./../../SOLACE) to create a new lock.
     * @dev [**SOLACE**](./../../SOLACE) is transferred from msg.sender, assumes its already approved.
     * @dev use end=0 to initialize as unlocked.
     * @param recipient The account that will receive the lock.
     * @param amount The amount of [**SOLACE**](./../../SOLACE) to deposit.
     * @param end The timestamp the lock will unlock.
     * @return xsLockID The ID of the newly created lock.
     */
    function createLock(address recipient, uint256 amount, uint256 end) external returns (uint256 xsLockID);

    /**
     * @notice Deposit [**SOLACE**](./../../SOLACE) to create a new lock.
     * @dev [**SOLACE**](./../../SOLACE) is transferred from msg.sender using ERC20Permit.
     * @dev use end=0 to initialize as unlocked.
     * @dev recipient = msg.sender
     * @param amount The amount of [**SOLACE**](./../../SOLACE) to deposit.
     * @param end The timestamp the lock will unlock.
     * @param deadline Time the transaction must go through before.
     * @param v secp256k1 signature
     * @param r secp256k1 signature
     * @param s secp256k1 signature
     * @return xsLockID The ID of the newly created lock.
     */
    function createLockSigned(uint256 amount, uint256 end, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external returns (uint256 xsLockID);

    /**
     * @notice Deposit [**SOLACE**](./../../SOLACE) to increase the value of an existing lock.
     * @dev [**SOLACE**](./../../SOLACE) is transferred from msg.sender, assumes its already approved.
     * @param xsLockID The ID of the lock to update.
     * @param amount The amount of [**SOLACE**](./../../SOLACE) to deposit.
     */
    function increaseAmount(uint256 xsLockID, uint256 amount) external;

    /**
     * @notice Deposit [**SOLACE**](./../../SOLACE) to increase the value of an existing lock.
     * @dev [**SOLACE**](./../../SOLACE) is transferred from msg.sender using ERC20Permit.
     * @param xsLockID The ID of the lock to update.
     * @param amount The amount of [**SOLACE**](./../../SOLACE) to deposit.
     * @param deadline Time the transaction must go through before.
     * @param v secp256k1 signature
     * @param r secp256k1 signature
     * @param s secp256k1 signature
     */
    function increaseAmountSigned(uint256 xsLockID, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;

    /**
     * @notice Extend a lock's duration.
     * @dev Can only be called by the lock owner or approved.
     * @param xsLockID The ID of the lock to update.
     * @param end The new time for the lock to unlock.
     */
    function extendLock(uint256 xsLockID, uint256 end) external;

    /**
     * @notice Withdraw from a lock in full.
     * @dev Can only be called by the lock owner or approved.
     * @dev Can only be called if unlocked.
     * @param xsLockID The ID of the lock to withdraw from.
     * @param recipient The user to receive the lock's [**SOLACE**](./../../SOLACE).
     */
    function withdraw(uint256 xsLockID, address recipient) external;

    /**
     * @notice Withdraw from a lock in part.
     * @dev Can only be called by the lock owner or approved.
     * @dev Can only be called if unlocked.
     * @param xsLockID The ID of the lock to withdraw from.
     * @param recipient The user to receive the lock's [**SOLACE**](./../../SOLACE).
     * @param amount The amount of [**SOLACE**](./../../SOLACE) to withdraw.
     */
    function withdrawInPart(uint256 xsLockID, address recipient, uint256 amount) external;

    /**
     * @notice Withdraw from multiple locks in full.
     * @dev Can only be called by the lock owner or approved.
     * @dev Can only be called if unlocked.
     * @param xsLockIDs The ID of the locks to withdraw from.
     * @param recipient The user to receive the lock's [**SOLACE**](./../../SOLACE).
     */
    function withdrawMany(uint256[] calldata xsLockIDs, address recipient) external;

    /***************************************
    GOVERNANCE FUNCTIONS
    ***************************************/

    /**
     * @notice Adds a listener.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param listener The listener to add.
     */
    function addXsLockListener(address listener) external;

    /**
     * @notice Removes a listener.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param listener The listener to remove.
     */
    function removeXsLockListener(address listener) external;

    /**
     * @notice Sets the base URI for computing `tokenURI`.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param baseURI_ The new base URI.
     */
    function setBaseURI(string memory baseURI_) external;
}


// File contracts/interfaces/bonds/IBondDepository.sol


pragma solidity 0.8.6;

/**
 * @title BondDepository
 * @author solace.fi
 * @notice Factory and manager of [`Bond Tellers`](./IBondTeller).
 */
interface IBondDepository {

    /***************************************
    EVENTS
    ***************************************/

    /// @notice Emitted when a teller is added.
    event TellerAdded(address indexed teller);
    /// @notice Emitted when a teller is removed.
    event TellerRemoved(address indexed teller);

    /***************************************
    VIEW FUNCTIONS
    ***************************************/

    /// @notice Native [**SOLACE**](./../../SOLACE) Token.
    function solace() external view returns (address solace_);

    /// @notice Returns true if the address is a teller.
    function isTeller(address teller) external view returns (bool isTeller_);

    /***************************************
    TELLER MANAGEMENT FUNCTIONS
    ***************************************/

    /**
     * @notice Adds a teller.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param teller The teller to add.
     */
    function addTeller(address teller) external;

    /**
     * @notice Adds a teller.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param teller The teller to remove.
     */
    function removeTeller(address teller) external;

    /***************************************
    FUND MANAGEMENT FUNCTIONS
    ***************************************/

    /**
     * @notice Sends [**SOLACE**](./../../SOLACE) to the teller.
     * Can only be called by tellers.
     * @param amount The amount of [**SOLACE**](./../../SOLACE) to send.
     */
    function pullSolace(uint256 amount) external;
}


// File contracts/interfaces/bonds/IBondTellerMatic.sol


pragma solidity 0.8.6;


/**
 * @title IBondTellerMatic
 * @author solace.fi
 * @notice A bond teller that accepts **MATIC** and **WMATIC** as payment.
 *
 * Bond tellers allow users to buy bonds. Payments are made in **MATIC** or **WMATIC** which is sent to the underwriting pool and used to back risk. Users will receive [**SOLACE**](./../../SOLACE) but it must be bonded or staked. If bonded, the [**SOLACE**](./../../SOLACE) will be vested linearly and redeemed over time. If staked, the [**SOLACE**](./../../SOLACE) only be withdrawable after the lock expires but will give the user extra [**SOLACE**](./../../SOLACE) rewards and voting rights.
 *
 * Bonds can be purchased via [`depositMatic()`](#depositeth), [`depositWmatic()`](#depositwmatic), or [`depositWmaticSigned()`](#depositwmaticsigned). Bonds are represented as ERC721s, can be viewed with [`bonds()`](#bonds), and redeemed with [`claimRewards()`](#claimrewards). If staked, an [`xsLocker`](./../../staking/xsLocker) lock is created instead of a bond.
 */
interface IBondTellerMatic {

    /***************************************
    EVENTS
    ***************************************/

    /// @notice Emitted when a bond is created.
    event CreateBond(uint256 indexed lockID, uint256 principalAmount, uint256 payoutAmount, uint40 vestingStart, uint40 vestingTime);
    /// @notice Emitted when a bond is redeemed.
    event RedeemBond(uint256 indexed bondID, address recipient, uint256 payoutAmount);
    /// @notice Emitted when deposits are paused.
    event Paused();
    /// @notice Emitted when deposits are unpaused.
    event Unpaused();
    /// @notice Emitted when terms are set.
    event TermsSet();
    /// @notice Emitted when fees are set.
    event FeesSet();
    /// @notice Emitted when fees are set.
    event AddressesSet();

    /***************************************
    INITIALIZER
    ***************************************/

    /**
     * @notice Initializes the teller.
     * @param name_ The name of the bond token.
     * @param governance_ The address of the [governor](/docs/protocol/governance).
     * @param solace_ The [**SOLACE**](./../../SOLACE) token.
     * @param xsLocker_ The [**xsLocker**](./../../staking/xsLocker) contract.
     * @param pool_ The underwriting pool.
     * @param dao_ The DAO.
     * @param principal_ The ERC20 token that users deposit.
     * @param isPermittable_ True if `principal` supports `EIP2612`.
     * @param bondDepo_ The bond depository.
     */
    function initialize(
        string memory name_,
        address governance_,
        address solace_,
        address xsLocker_,
        address pool_,
        address dao_,
        address principal_,
        bool isPermittable_,
        address bondDepo_
    ) external;

    /***************************************
    VIEW FUNCTIONS
    ***************************************/

    // BOND PRICE

    /**
     * @notice Calculate the current price of a bond.
     * Assumes 1 [**SOLACE**](./../../SOLACE) payout.
     * @return price_ The price of the bond measured in `principal`.
     */
    function bondPrice() external view returns (uint256 price_);

    /**
     * @notice Calculate the amount of [**SOLACE**](./../../SOLACE) out for an amount of `principal`.
     * @param amountIn Amount of principal to deposit.
     * @param stake True to stake, false to not stake.
     * @return amountOut Amount of [**SOLACE**](./../../SOLACE) out.
     */
    function calculateAmountOut(uint256 amountIn, bool stake) external view returns (uint256 amountOut);

    /**
     * @notice Calculate the amount of `principal` in for an amount of [**SOLACE**](./../../SOLACE) out.
     * @param amountOut Amount of [**SOLACE**](./../../SOLACE) out.
     * @param stake True to stake, false to not stake.
     * @return amountIn Amount of principal to deposit.
     */
    function calculateAmountIn(uint256 amountOut, bool stake) external view returns (uint256 amountIn);

    /***************************************
    BONDER FUNCTIONS
    ***************************************/

    /**
     * @notice Create a bond by depositing **MATIC**.
     * Principal will be transferred from `msg.sender` using `allowance`.
     * @param minAmountOut The minimum [**SOLACE**](./../../SOLACE) out.
     * @param depositor The bond recipient, default msg.sender.
     * @param stake True to stake, false to not stake.
     * @return payout The amount of [**SOLACE**](./../../SOLACE) in the bond.
     * @return tokenID The ID of the newly created bond or lock.
     */
    function depositMatic(
        uint256 minAmountOut,
        address depositor,
        bool stake
    ) external payable returns (uint256 payout, uint256 tokenID);

    /**
     * @notice Create a bond by depositing `amount` **WMATIC**.
     * **WMATIC** will be transferred from `msg.sender` using `allowance`.
     * @param amount Amount of **WMATIC** to deposit.
     * @param minAmountOut The minimum [**SOLACE**](./../../SOLACE) out.
     * @param depositor The bond recipient, default msg.sender.
     * @param stake True to stake, false to not stake.
     * @return payout The amount of [**SOLACE**](./../../SOLACE) in the bond.
     * @return tokenID The ID of the newly created bond or lock.
     */
    function depositWmatic(
        uint256 amount,
        uint256 minAmountOut,
        address depositor,
        bool stake
    ) external returns (uint256 payout, uint256 tokenID);

    /**
     * @notice Create a bond by depositing `amount` **WMATIC**.
     * **WMATIC** will be transferred from `depositor` using `permit`.
     * Note that not all **WMATIC**s have a permit function, in which case this function will revert.
     * @param amount Amount of **WMATIC** to deposit.
     * @param minAmountOut The minimum [**SOLACE**](./../../SOLACE) out.
     * @param depositor The bond recipient, default msg.sender.
     * @param stake True to stake, false to not stake.
     * @param deadline Time the transaction must go through before.
     * @param v secp256k1 signature
     * @param r secp256k1 signature
     * @param s secp256k1 signature
     * @return payout The amount of [**SOLACE**](./../../SOLACE) in the bond.
     * @return tokenID The ID of the newly created bond or lock.
     */
    function depositWmaticSigned(
        uint256 amount,
        uint256 minAmountOut,
        address depositor,
        bool stake,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 payout, uint256 tokenID);

    /**
     * @notice Claim payout for a bond that the user holds.
     * User calling `claimPayout()` must be either the owner or approved for the entered bondID.
     * @param bondID The ID of the bond to redeem.
     */
    function claimPayout(uint256 bondID) external;

    /***************************************
    GOVERNANCE FUNCTIONS
    ***************************************/

    /**
     * @notice Pauses deposits.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
    */
    function pause() external;

    /**
     * @notice Unpauses deposits.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
    */
    function unpause() external;

    /**
     * @notice Sets the addresses to call out.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param solace_ The [**SOLACE**](./../../SOLACE) token.
     * @param xsLocker_ The [**xsLocker**](./../../staking/xsLocker) contract.
     * @param pool_ The underwriting pool.
     * @param dao_ The DAO.
     * @param principal_ The ERC20 token that users deposit.
     * @param isPermittable_ True if `principal` supports `EIP2612`.
     * @param bondDepo_ The bond depository.
     */
    function setAddresses(
        address solace_,
        address xsLocker_,
        address pool_,
        address dao_,
        address principal_,
        bool isPermittable_,
        address bondDepo_
    ) external;

    /***************************************
    FALLBACK FUNCTIONS
    ***************************************/

    /**
     * @notice Fallback function to allow contract to receive *MATIC*.
     * Deposits **MATIC** and creates bond.
     */
    receive () external payable;

    /**
     * @notice Fallback function to allow contract to receive **MATIC**.
     * Deposits **MATIC** and creates bond.
     */
    fallback () external payable;
}


// File contracts/bonds/BondTellerMatic.sol


pragma solidity 0.8.6;










/**
 * @title BondTellerMatic
 * @author solace.fi
 * @notice A bond teller that accepts **MATIC** and **WMATIC** as payment.
 *
 * Bond tellers allow users to buy bonds. Payments are made in **MATIC** or **WMATIC** which is sent to the underwriting pool and used to back risk. Users will receive [**SOLACE**](./../SOLACE) but it must be bonded or staked. If bonded, the [**SOLACE**](./../SOLACE) will be vested linearly and redeemed over time. If staked, the [**SOLACE**](./../SOLACE) only be withdrawable after the lock expires but will give the user extra [**SOLACE**](./../SOLACE) rewards and voting rights.
 *
 * Bonds can be purchased via [`depositMatic()`](#depositeth), [`depositWmatic()`](#depositwmatic), or [`depositWmaticSigned()`](#depositwmaticsigned). Bonds are represented as ERC721s, can be viewed with [`bonds()`](#bonds), and redeemed with [`claimRewards()`](#claimrewards). If staked, an [`xsLocker`](./../staking/xsLocker) lock is created instead of a bond.
 */
contract BondTellerMatic is IBondTellerMatic, ReentrancyGuard, ERC721EnhancedInitializable, GovernableInitializable {

    /***************************************
    GLOBAL VARIABLES
    ***************************************/

    // prices
    uint256 public capacity;                   // capacity remaining for all bonds
    uint256 public nextPrice;                  // the price of the next bond before decay
    uint256 public minimumPrice;               // price floor measured in principal per 1 solace
    uint128 public priceAdjNum;                // factor that increases price after purchase
    uint128 public priceAdjDenom;              // factor that increases price after purchase
    uint256 public halfLife;                   // factor for price decay
    uint256 public lastPriceUpdate;            // last timestamp price was updated
    uint256 public maxPayout;                  // max payout in a single bond measured in principal
    uint256 internal constant MAX_BPS = 10000; // 10k basis points (100%)
    uint256 public protocolFeeBps;             // portion of principal that is sent to the dao, the rest to the pool
    bool public termsSet;                      // have terms been set
    bool public capacityIsPayout;              // capacity limit is for payout vs principal
    bool public paused;                        // pauses deposits

    // times
    uint40 public startTime;                   // timestamp bonds start
    uint40 public endTime;                     // timestamp bonds no longer offered
    uint40 public globalVestingTerm;           // duration in seconds (fixed-term)

    // bonds
    uint256 public numBonds;                   // total number of bonds that have been created

    struct Bond {
        uint256 payoutAmount;                  // amount of solace to be paid in total on the bond
        uint256 payoutAlreadyClaimed;          // amount of solace that has already been claimed on the bond
        uint256 principalPaid;                 // amount of principal paid for this bond
        uint40 vestingStart;                   // timestamp at which bond was minted
        uint40 localVestingTerm;               // vesting term for this bond
    }

    mapping (uint256 => Bond) public bonds;    // mapping of bondID to Bond object

    // addresses
    address public solace;                     // solace native token
    address public xsLocker;                   // xsLocker staking contract
    address public principal;                  // token to accept as payment
    bool public isPermittable;                 // true if principal supports EIP2612.
    address public underwritingPool;           // the underwriting pool to back risks
    address public dao;                        // the dao
    address public bondDepo;                   // the bond depository

    /***************************************
    INITIALIZER
    ***************************************/

    /**
     * @notice Initializes the teller.
     * @param name_ The name of the bond token.
     * @param governance_ The address of the [governor](/docs/protocol/governance).
     * @param solace_ The [**SOLACE**](./../SOLACE) token.
     * @param xsLocker_ The [**xsLocker**](./../staking/xsLocker) contract.
     * @param pool_ The underwriting pool.
     * @param dao_ The DAO.
     * @param principal_ The ERC20 token that users deposit.
     * @param isPermittable_ True if `principal` supports `EIP2612`.
     * @param bondDepo_ The bond depository.
     */
    function initialize(
        string memory name_,
        address governance_,
        address solace_,
        address xsLocker_,
        address pool_,
        address dao_,
        address principal_,
        bool isPermittable_,
        address bondDepo_
    ) external override initializer {
        __Governable_init(governance_);
        string memory symbol = "SBT";
        __ERC721Enhanced_init(name_, symbol);
        _setAddresses(solace_, xsLocker_, pool_, dao_, principal_, isPermittable_, bondDepo_);
    }

    /***************************************
    VIEW FUNCTIONS
    ***************************************/

    // BOND PRICE

    /**
     * @notice Calculate the current price of a bond.
     * Assumes 1 [**SOLACE**](./../SOLACE) payout.
     * @return price_ The price of the bond measured in `principal`.
     */
    function bondPrice() public view override returns (uint256 price_) {
        // solhint-disable-next-line not-rely-on-time
        uint256 timeSinceLast = block.timestamp - lastPriceUpdate;
        price_ = exponentialDecay(nextPrice, timeSinceLast);
        if (price_ < minimumPrice) {
            price_ = minimumPrice;
        }
    }

    /**
     * @notice Calculate the amount of [**SOLACE**](./../SOLACE) out for an amount of `principal`.
     * @param amountIn Amount of principal to deposit.
     * @param stake True to stake, false to not stake.
     * @return amountOut Amount of [**SOLACE**](./../SOLACE) out.
     */
    function calculateAmountOut(uint256 amountIn, bool stake) external view override returns (uint256 amountOut) {
        require(termsSet, "not initialized");
        // exchange rate
        uint256 bondPrice_ = bondPrice();
        require(bondPrice_ > 0, "zero price");
        amountOut = 1 ether * amountIn / bondPrice_; // 1 ether => 1 solace
        // ensure there is remaining capacity for bond
        if (capacityIsPayout) {
            // capacity in payout terms
            require(capacity >= amountOut, "bond at capacity");
        } else {
            // capacity in principal terms
            require(capacity >= amountIn, "bond at capacity");
        }
        require(amountOut <= maxPayout, "bond too large");

        return amountOut;
    }

    /**
     * @notice Calculate the amount of `principal` in for an amount of [**SOLACE**](./../SOLACE) out.
     * @param amountOut Amount of [**SOLACE**](./../SOLACE) out.
     * @param stake True to stake, false to not stake.
     * @return amountIn Amount of principal to deposit.
     */
    function calculateAmountIn(uint256 amountOut, bool stake) external view override returns (uint256 amountIn) {
        require(termsSet, "not initialized");
        // exchange rate
        uint256 bondPrice_ = bondPrice();
        require(bondPrice_ > 0, "zero price");
        amountIn = amountOut * bondPrice_ / 1 ether;
        // ensure there is remaining capacity for bond
        if (capacityIsPayout) {
            // capacity in payout terms
            require(capacity >= amountOut, "bond at capacity");
        } else {
            // capacity in principal terms
            require(capacity >= amountIn, "bond at capacity");
        }
        require(amountOut <= maxPayout, "bond too large");
    }

    /***************************************
    BONDER FUNCTIONS
    ***************************************/

    /**
     * @notice Create a bond by depositing **MATIC**.
     * Principal will be transferred from `msg.sender` using `allowance`.
     * @param minAmountOut The minimum [**SOLACE**](./../SOLACE) out.
     * @param depositor The bond recipient, default msg.sender.
     * @param stake True to stake, false to not stake.
     * @return payout The amount of [**SOLACE**](./../SOLACE) in the bond.
     * @return tokenID The ID of the newly created bond or lock.
     */
    function depositMatic(
        uint256 minAmountOut,
        address depositor,
        bool stake
    ) public payable override nonReentrant returns (uint256 payout, uint256 tokenID) {
        // accounting
        uint256 protocolFee;
        (payout, tokenID, protocolFee) = _deposit(msg.value, minAmountOut, depositor, stake);
        // route principal - put last as Checks-Effects-Interactions
        if(protocolFee > 0) Address.sendValue(payable(dao), protocolFee);
        Address.sendValue(payable(underwritingPool), msg.value - protocolFee);
    }

    /**
     * @notice Create a bond by depositing `amount` **WMATIC**.
     * **WMATIC** will be transferred from `msg.sender` using `allowance`.
     * @param amount Amount of **WMATIC** to deposit.
     * @param minAmountOut The minimum [**SOLACE**](./../SOLACE) out.
     * @param depositor The bond recipient, default msg.sender.
     * @param stake True to stake, false to not stake.
     * @return payout The amount of [**SOLACE**](./../SOLACE) in the bond.
     * @return tokenID The ID of the newly created bond or lock.
     */
    function depositWmatic(
        uint256 amount,
        uint256 minAmountOut,
        address depositor,
        bool stake
    ) external override nonReentrant returns (uint256 payout, uint256 tokenID) {
        // accounting
        uint256 protocolFee;
        (payout, tokenID, protocolFee) = _deposit(amount, minAmountOut, depositor, stake);
        // route principal - put last as Checks-Effects-Interactions
        if(protocolFee > 0) SafeERC20.safeTransferFrom(IERC20(principal), depositor, dao, protocolFee);
        SafeERC20.safeTransferFrom(IERC20(principal), depositor, underwritingPool, amount - protocolFee);
    }

    /**
     * @notice Create a bond by depositing `amount` **WMATIC**.
     * **WMATIC** will be transferred from `depositor` using `permit`.
     * Note that not all **WMATIC**s have a permit function, in which case this function will revert.
     * @param amount Amount of **WMATIC** to deposit.
     * @param minAmountOut The minimum [**SOLACE**](./../SOLACE) out.
     * @param depositor The bond recipient, default msg.sender.
     * @param stake True to stake, false to not stake.
     * @param deadline Time the transaction must go through before.
     * @param v secp256k1 signature
     * @param r secp256k1 signature
     * @param s secp256k1 signature
     * @return payout The amount of [**SOLACE**](./../SOLACE) in the bond.
     * @return tokenID The ID of the newly created bond or lock.
     */
    function depositWmaticSigned(
        uint256 amount,
        uint256 minAmountOut,
        address depositor,
        bool stake,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override nonReentrant returns (uint256 payout, uint256 tokenID) {
        // permit
        require(isPermittable, "principal does not support permit");
        IERC20Permit(address(principal)).permit(depositor, address(this), amount, deadline, v, r, s);
        // accounting
        uint256 protocolFee;
        (payout, tokenID, protocolFee) = _deposit(amount, minAmountOut, depositor, stake);
        // route principal - put last as Checks-Effects-Interactions
        if(protocolFee > 0) SafeERC20.safeTransferFrom(IERC20(principal), depositor, dao, protocolFee);
        SafeERC20.safeTransferFrom(IERC20(principal), depositor, underwritingPool, amount - protocolFee);
    }

    /***************************************
    BONDER FUNCTIONS
    ***************************************/

    /**
     * @notice Claim payout for a bond that the user holds.
     * User calling `claimPayout()`` must be either the owner or approved for the entered bondID.
     * @param bondID The ID of the bond to redeem.
     */
    function claimPayout(uint256 bondID) external override nonReentrant tokenMustExist(bondID) {
        // checks
        require(_isApprovedOrOwner(msg.sender, bondID), "!bonder");

        // Payout as per vesting terms
        Bond memory bond = bonds[bondID];
        uint256 eligiblePayout = _calculateEligiblePayout(bondID);
        bonds[bondID].payoutAlreadyClaimed += eligiblePayout;

        // Burn bond if vesting completed
        // solhint-disable-next-line not-rely-on-time
        if (block.timestamp > bond.vestingStart + bond.localVestingTerm) {
            _burn(bondID);
            delete bonds[bondID];
        }
        emit RedeemBond(bondID, msg.sender, eligiblePayout);

        // Place SafeERC20.safeTransfer last as per Checks-Effects-Interactions
        SafeERC20.safeTransfer(IERC20(solace), msg.sender, eligiblePayout);
    }

    /***************************************
    HELPER FUNCTIONS
    ***************************************/

    /**
     * @notice Create a bond by depositing `amount` of `principal`.
     * @param amount Amount of principal to deposit.
     * @param minAmountOut The minimum [**SOLACE**](./../SOLACE) out.
     * @param depositor The bond recipient, default msg.sender.
     * @param stake True to stake, false to not stake.
     * @return payout The amount of [**SOLACE**](./../SOLACE) in the bond.
     * @return tokenID The ID of the newly created bond or lock.
     * @return protocolFee Amount of principal paid to dao
     */
    function _deposit(
        uint256 amount,
        uint256 minAmountOut,
        address depositor,
        bool stake
    ) internal returns (uint256 payout, uint256 tokenID, uint256 protocolFee) {
        require(depositor != address(0), "invalid address");
        require(!paused, "cannot deposit while paused");

        require(termsSet, "not initialized");
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp >= uint256(startTime), "bond not yet started");
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp <= uint256(endTime), "bond concluded");

        payout = _calculateTotalPayout(amount);

        // ensure there is remaining capacity for bond
        if (capacityIsPayout) {
            // capacity in payout terms
            uint256 cap = capacity;
            require(cap >= payout, "bond at capacity");
            capacity = cap - payout;
        } else {
            // capacity in principal terms
            uint256 cap = capacity;
            require(cap >= amount, "bond at capacity");
            capacity = cap - amount;
        }
        require(payout <= maxPayout, "bond too large");
        require(minAmountOut <= payout, "slippage protection");

        // route solace
        IBondDepository(bondDepo).pullSolace(payout);
        // optionally stake
        if(stake) {
            // solhint-disable-next-line not-rely-on-time
            tokenID = IxsLocker(xsLocker).createLock(depositor, payout, block.timestamp+globalVestingTerm);
        } else {
          // record bond info
          tokenID = ++numBonds;
          // solhint-disable-next-line not-rely-on-time
          uint40 vestingStart = toUint40(block.timestamp);
          uint40 vestingTerm = globalVestingTerm;
          bonds[tokenID] = Bond({
              payoutAmount: payout,
              payoutAlreadyClaimed: 0,
              principalPaid: amount,
              vestingStart: vestingStart,
              localVestingTerm: vestingTerm
          });
          _mint(depositor, tokenID);
          emit CreateBond(tokenID, amount, payout, vestingStart, vestingTerm);
        }

        protocolFee = amount * protocolFeeBps / MAX_BPS;
        return (payout, tokenID, protocolFee);
    }

    /***************************************
    HELPER FUNCTIONS
    ***************************************/

    /**
     * @notice Calculate the payout in [**SOLACE**](./../SOLACE) and update the current price of a bond.
     * @param depositAmount The amount of `principal` to deposit.
     * @return amountOut The amount of [**SOLACE**](./../SOLACE) out.
     */
    function _calculateTotalPayout(uint256 depositAmount) internal returns (uint256 amountOut) {
        // calculate this price
        // solhint-disable-next-line not-rely-on-time
        uint256 timeSinceLast = block.timestamp - lastPriceUpdate;
        uint256 price_ = exponentialDecay(nextPrice, timeSinceLast);
        if(price_ < minimumPrice) price_ = minimumPrice;
        require(price_ != 0, "invalid price");
        // solhint-disable-next-line not-rely-on-time
        lastPriceUpdate = block.timestamp;
        // calculate amount out
        amountOut = (1 ether * depositAmount) / price_; // 1 ether => 1 solace
        // update next price
        nextPrice = price_ + ( (amountOut * uint256(priceAdjNum)) / uint256(priceAdjDenom));
    }

    /**
     * @notice Calculates current eligible payout on a bond, based on `bond.localVestingTerm` and `bonds[bondID].payoutAlreadyClaimed`.
     * @param bondID The ID of the bond to calculate eligible payout on.
     * @return eligiblePayout Amount of [**SOLACE**](./../SOLACE) that can be currently claimed for the bond.
     */
    function _calculateEligiblePayout(uint256 bondID) internal view returns (uint256 eligiblePayout) {
        Bond memory bond = bonds[bondID];

        // Sanity check
        assert(bond.payoutAlreadyClaimed <= bond.payoutAmount);

        // Calculation if still vesting
        // solhint-disable-next-line not-rely-on-time
        if (block.timestamp <= bond.vestingStart + bond.localVestingTerm) {
            // solhint-disable-next-line not-rely-on-time
            eligiblePayout = ( ( bond.payoutAmount * ( block.timestamp - bond.vestingStart ) ) / bond.localVestingTerm ) - bond.payoutAlreadyClaimed;
        } else {
            // Calculation if vesting completed
            eligiblePayout = bond.payoutAmount - bond.payoutAlreadyClaimed;
        }
    }

    /**
     * @notice Calculates exponential decay.
     * @dev Linear approximation, trades precision for speed.
     * @param initValue The initial value.
     * @param time The time elapsed.
     * @return endValue The value at the end.
     */
    function exponentialDecay(uint256 initValue, uint256 time) internal view returns (uint256 endValue) {
        endValue = initValue >> (time / halfLife);
        endValue -= endValue * (time % halfLife) / halfLife / 2;
    }

    /**
     * @dev Returns the downcasted uint40 from uint256, reverting on
     * overflow (when the input is greater than largest uint40).
     *
     * Counterpart to Solidity's `uint40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     */
    function toUint40(uint256 value) internal pure returns (uint40) {
        require(value < 2**40, "SafeCast: value doesn\'t fit in 40 bits");
        return uint40(value);
    }

    /***************************************
    GOVERNANCE FUNCTIONS
    ***************************************/

    /**
     * @notice Pauses deposits.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
    */
    function pause() external override onlyGovernance {
        paused = true;
        emit Paused();
    }

    /**
     * @notice Unpauses deposits.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
    */
    function unpause() external override onlyGovernance {
        paused = false;
        emit Unpaused();
    }

    struct Terms {
        uint256 startPrice;       // The starting price, measured in `principal` for one [**SOLACE**](./../SOLACE).
        uint256 minimumPrice;     // The minimum price of a bond, measured in `principal` for one [**SOLACE**](./../SOLACE).
        uint256 maxPayout;        // The maximum [**SOLACE**](./../SOLACE) that can be sold in a single bond.
        uint128 priceAdjNum;      // Used to calculate price increase after bond purchase.
        uint128 priceAdjDenom;    // Used to calculate price increase after bond purchase.
        uint256 capacity;         // The amount still sellable.
        bool capacityIsPayout;    // True if `capacity_` is measured in [**SOLACE**](./../SOLACE), false if measured in `principal`.
        uint40 startTime;         // The time that purchases start.
        uint40 endTime;           // The time that purchases end.
        uint40 globalVestingTerm; // The duration that users must wait to redeem bonds.
        uint40 halfLife;          // Used to calculate price decay.
    }

    /**
     * @notice Sets the bond terms.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param terms The terms of the bond.
     */
    function setTerms(Terms calldata terms) external onlyGovernance {
        require(terms.startPrice > 0, "invalid price");
        nextPrice = terms.startPrice;
        minimumPrice = terms.minimumPrice;
        maxPayout = terms.maxPayout;
        require(terms.priceAdjDenom != 0, "1/0");
        priceAdjNum = terms.priceAdjNum;
        priceAdjDenom = terms.priceAdjDenom;
        capacity = terms.capacity;
        capacityIsPayout = terms.capacityIsPayout;
        require(terms.startTime <= terms.endTime, "invalid dates");
        startTime = terms.startTime;
        endTime = terms.endTime;
        globalVestingTerm = terms.globalVestingTerm;
        require(terms.halfLife > 0, "invalid halflife");
        halfLife = terms.halfLife;
        termsSet = true;
        // solhint-disable-next-line not-rely-on-time
        lastPriceUpdate = block.timestamp;
        emit TermsSet();
    }

    /**
     * @notice Sets the bond fees.
     * @param protocolFee The fraction of `principal` that will be sent to the dao measured in BPS.
     */
    function setFees(uint256 protocolFee) external onlyGovernance {
        require(protocolFee <= MAX_BPS, "invalid protocol fee");
        protocolFeeBps = protocolFee;
        emit FeesSet();
    }

    /**
     * @notice Sets the addresses to call out.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param solace_ The [**SOLACE**](./../SOLACE) token.
     * @param xsLocker_ The [**xsLocker**](./../staking/xsLocker) contract.
     * @param pool_ The underwriting pool.
     * @param dao_ The DAO.
     * @param principal_ The ERC20 token that users deposit.
     * @param isPermittable_ True if `principal` supports `EIP2612`.
     * @param bondDepo_ The bond depository.
     */
    function setAddresses(
        address solace_,
        address xsLocker_,
        address pool_,
        address dao_,
        address principal_,
        bool isPermittable_,
        address bondDepo_
    ) external override onlyGovernance {
        _setAddresses(solace_, xsLocker_, pool_, dao_, principal_, isPermittable_, bondDepo_);
    }

    /**
     * @notice Sets the addresses to call out.
     * Can only be called by the current [**governor**](/docs/protocol/governance).
     * @param solace_ The [**SOLACE**](./../SOLACE) token.
     * @param xsLocker_ The [**xsLocker**](./../staking/xsLocker) contract.
     * @param pool_ The underwriting pool.
     * @param dao_ The DAO.
     * @param principal_ The ERC20 token that users deposit.
     * @param isPermittable_ True if `principal` supports `EIP2612`.
     * @param bondDepo_ The bond depository.
     */
    function _setAddresses(
        address solace_,
        address xsLocker_,
        address pool_,
        address dao_,
        address principal_,
        bool isPermittable_,
        address bondDepo_
    ) internal {
        require(solace_ != address(0x0), "zero address solace");
        require(xsLocker_ != address(0x0), "zero address xslocker");
        require(pool_ != address(0x0), "zero address pool");
        require(dao_ != address(0x0), "zero address dao");
        require(principal_ != address(0x0), "zero address principal");
        require(bondDepo_ != address(0x0), "zero address bond depo");
        solace = solace_;
        xsLocker = xsLocker_;
        IERC20(solace).approve(xsLocker_, type(uint256).max);
        underwritingPool = pool_;
        dao = dao_;
        principal = principal_;
        isPermittable = isPermittable_;
        bondDepo = bondDepo_;
        emit AddressesSet();
    }

    /***************************************
    FALLBACK FUNCTIONS
    ***************************************/

    /**
     * @notice Fallback function to allow contract to receive **MATIC**.
     * Deposits **MATIC** and creates bond.
     */
    receive () external payable override {
        depositMatic(0, msg.sender, false);
    }

    /**
     * @notice Fallback function to allow contract to receive **MATIC**.
     * Deposits **MATIC** and creates bond.
     */
    fallback () external payable override {
        depositMatic(0, msg.sender, false);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[],"name":"AddressesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"lockID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"principalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payoutAmount","type":"uint256"},{"indexed":false,"internalType":"uint40","name":"vestingStart","type":"uint40"},{"indexed":false,"internalType":"uint40","name":"vestingTime","type":"uint40"}],"name":"CreateBond","type":"event"},{"anonymous":false,"inputs":[],"name":"FeesSet","type":"event"},{"anonymous":false,"inputs":[],"name":"GovernanceLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pendingGovernance","type":"address"}],"name":"GovernancePending","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldGovernance","type":"address"},{"indexed":false,"internalType":"address","name":"newGovernance","type":"address"}],"name":"GovernanceTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bondID","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"payoutAmount","type":"uint256"}],"name":"RedeemBond","type":"event"},{"anonymous":false,"inputs":[],"name":"TermsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"seperator","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"typehash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondDepo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPrice","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bonds","outputs":[{"internalType":"uint256","name":"payoutAmount","type":"uint256"},{"internalType":"uint256","name":"payoutAlreadyClaimed","type":"uint256"},{"internalType":"uint256","name":"principalPaid","type":"uint256"},{"internalType":"uint40","name":"vestingStart","type":"uint40"},{"internalType":"uint40","name":"localVestingTerm","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"calculateAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"calculateAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capacity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capacityIsPayout","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bondID","type":"uint256"}],"name":"claimPayout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dao","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"depositor","type":"address"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"depositMatic","outputs":[{"internalType":"uint256","name":"payout","type":"uint256"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"depositor","type":"address"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"depositWmatic","outputs":[{"internalType":"uint256","name":"payout","type":"uint256"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"depositor","type":"address"},{"internalType":"bool","name":"stake","type":"bool"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"depositWmaticSigned","outputs":[{"internalType":"uint256","name":"payout","type":"uint256"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"status","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalVestingTerm","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governanceIsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"halfLife","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"address","name":"governance_","type":"address"},{"internalType":"address","name":"solace_","type":"address"},{"internalType":"address","name":"xsLocker_","type":"address"},{"internalType":"address","name":"pool_","type":"address"},{"internalType":"address","name":"dao_","type":"address"},{"internalType":"address","name":"principal_","type":"address"},{"internalType":"bool","name":"isPermittable_","type":"bool"},{"internalType":"address","name":"bondDepo_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPermittable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPriceUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numBonds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceAdjDenom","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceAdjNum","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"principal","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"safeTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"solace_","type":"address"},{"internalType":"address","name":"xsLocker_","type":"address"},{"internalType":"address","name":"pool_","type":"address"},{"internalType":"address","name":"dao_","type":"address"},{"internalType":"address","name":"principal_","type":"address"},{"internalType":"bool","name":"isPermittable_","type":"bool"},{"internalType":"address","name":"bondDepo_","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"protocolFee","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingGovernance_","type":"address"}],"name":"setPendingGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"minimumPrice","type":"uint256"},{"internalType":"uint256","name":"maxPayout","type":"uint256"},{"internalType":"uint128","name":"priceAdjNum","type":"uint128"},{"internalType":"uint128","name":"priceAdjDenom","type":"uint128"},{"internalType":"uint256","name":"capacity","type":"uint256"},{"internalType":"bool","name":"capacityIsPayout","type":"bool"},{"internalType":"uint40","name":"startTime","type":"uint40"},{"internalType":"uint40","name":"endTime","type":"uint40"},{"internalType":"uint40","name":"globalVestingTerm","type":"uint40"},{"internalType":"uint40","name":"halfLife","type":"uint40"}],"internalType":"struct BondTellerMatic.Terms","name":"terms","type":"tuple"}],"name":"setTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"solace","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"termsSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underwritingPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xsLocker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040527f137406564cdcf9b40b1700502a9241e87476728da7ae3d0edfcf0541e5b49b3e60805234801561003457600080fd5b5060016000556080516159446200005d6000396000818161066e015261233f01526159446000f3fe6080604052600436106104185760003560e01c80635c975abb116102285780638456cb5911610128578063ba5d3078116100bb578063dc9451f61161008a578063e985e9c51161006f578063e985e9c514610cba578063ef9089d614610d03578063f39c38a014610d1a5761042e565b8063dc9451f614610c82578063e0176de814610ca35761042e565b8063ba5d307814610c0b578063c87b56dd14610c2c578063d7ccfb0b14610c4c578063d83a775b14610c615761042e565b8063a22cb465116100f7578063a22cb46514610b96578063a9059cbb14610bb6578063abbf4b1714610bd6578063b88d4fde14610beb5761042e565b80638456cb5914610b2c57806384df619814610b415780638a69614e14610b6157806395d89b4114610b815761042e565b806370fa3ffe116101bb5780637a45df761161018a5780637bc90d1c1161016f5780637bc90d1c14610aeb5780637f386b6c14610b025780637f7b0ca914610b195761042e565b80637a45df7614610aab5780637ac2ff7b14610acb5761042e565b806370fa3ffe14610a295780637401123514610a4957806376495f2714610a6a57806378e9792514610a855761042e565b80636949faeb116101f75780636949faeb146109bd57806369aa1960146109d45780636c0360eb146109f457806370a0823114610a095761042e565b80635c975abb146108dc5780635cfc1a51146108fd5780635f1c17c0146109145780636352211e1461099d5761042e565b806335659fb811610333578063423f6cef116102c65780634ee7b28b116102955780634f6ccce71161027a5780634f6ccce714610886578063586a80bf146108a65780635aa6e675146108bd5761042e565b80634ee7b28b146108465780634f558e79146108665761042e565b8063423f6cef146107c057806342842e0e146107e057806344df64c31461080057806345fcd13d146108205761042e565b80633ef8d97e116103025780633ef8d97e146107415780633f4ba83a146107625780634162169f146107775780634226d038146107985761042e565b806335659fb8146106d35780633644e515146106ea578063389045dd146106ff5780633d18678e146107215761042e565b80631c930221116103ab5780632ad1a5781161037a5780632ad1a578146106065780632f745c591461063f57806330adf81f1461065f5780633197cbb6146106925761042e565b80631c93022114610591578063238efcbc146105b157806323b872dd146105c6578063268de54c146105e65761042e565b80630abb6035116103e75780630abb6035146104ec5780630f1ecf051461050c578063141a468c1461054157806318160ddd1461057c5761042e565b806301ffc9a71461043b57806306fdde0314610470578063081812fc14610492578063095ea7b3146104ca5761042e565b3661042e5761042a6000336000610d39565b5050005b61042a6000336000610d39565b34801561044757600080fd5b5061045b6104563660046153ac565b610dfb565b60405190151581526020015b60405180910390f35b34801561047c57600080fd5b50610485610e26565b6040516104679190615741565b34801561049e57600080fd5b506104b26104ad3660046154f9565b610eb8565b6040516001600160a01b039091168152602001610467565b3480156104d657600080fd5b506104ea6104e53660046152f0565b610f4d565b005b3480156104f857600080fd5b506104ea61050736600461512b565b611063565b34801561051857600080fd5b5061052c610527366004615590565b611151565b60408051928352602083019190915201610467565b34801561054d57600080fd5b5061056e61055c3660046154f9565b600090815260fe602052604090205490565b604051908152602001610467565b34801561058857600080fd5b50609a5461056e565b34801561059d57600080fd5b5061010154600160a01b900460ff1661045b565b3480156105bd57600080fd5b506104ea611223565b3480156105d257600080fd5b506104ea6105e1366004615201565b61138e565b3480156105f257600080fd5b5061010a5461045b90610100900460ff1681565b34801561061257600080fd5b5061010554610627906001600160801b031681565b6040516001600160801b039091168152602001610467565b34801561064b57600080fd5b5061056e61065a3660046152f0565b611415565b34801561066b57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061056e565b34801561069e57600080fd5b5061010a546106bd9068010000000000000000900464ffffffffff1681565b60405164ffffffffff9091168152602001610467565b3480156106df57600080fd5b5061056e6101095481565b3480156106f657600080fd5b5061056e6114bd565b34801561070b57600080fd5b5061010f5461045b90600160a01b900460ff1681565b34801561072d57600080fd5b506104ea61073c3660046154f9565b6114cc565b34801561074d57600080fd5b5061010d546104b2906001600160a01b031681565b34801561076e57600080fd5b506104ea6115e8565b34801561078357600080fd5b50610111546104b2906001600160a01b031681565b3480156107a457600080fd5b506101055461062790600160801b90046001600160801b031681565b3480156107cc57600080fd5b506104ea6107db3660046152f0565b6116b8565b3480156107ec57600080fd5b506104ea6107fb366004615201565b6116d7565b34801561080c57600080fd5b506104ea61081b3660046154bd565b6116f2565b34801561082c57600080fd5b5061010a546106bd90600160681b900464ffffffffff1681565b34801561085257600080fd5b506104ea610861366004615179565b611ac4565b34801561087257600080fd5b5061045b6108813660046154f9565b611b74565b34801561089257600080fd5b5061056e6108a13660046154f9565b611b93565b3480156108b257600080fd5b5061056e61010b5481565b3480156108c957600080fd5b50610100546001600160a01b03166104b2565b3480156108e857600080fd5b5061010a5461045b9062010000900460ff1681565b34801561090957600080fd5b5061056e6101025481565b34801561092057600080fd5b5061096b61092f3660046154f9565b61010c6020526000908152604090208054600182015460028301546003909301549192909164ffffffffff808216916501000000000090041685565b6040805195865260208601949094529284019190915264ffffffffff908116606084015216608082015260a001610467565b3480156109a957600080fd5b506104b26109b83660046154f9565b611c37565b3480156109c957600080fd5b5061056e6101075481565b3480156109e057600080fd5b5061052c6109ef3660046155d8565b611cc2565b348015610a0057600080fd5b50610485611e9b565b348015610a1557600080fd5b5061056e610a2436600461512b565b611f29565b348015610a3557600080fd5b5061056e610a4436600461556b565b611fc3565b348015610a5557600080fd5b5061010e546104b2906001600160a01b031681565b348015610a7657600080fd5b5061010a5461045b9060ff1681565b348015610a9157600080fd5b5061010a546106bd906301000000900464ffffffffff1681565b348015610ab757600080fd5b506104ea610ac63660046153e6565b612161565b348015610ad757600080fd5b506104ea610ae636600461531a565b61225a565b348015610af757600080fd5b5061056e6101065481565b348015610b0e57600080fd5b5061056e6101045481565b61052c610b2736600461552b565b610d39565b348015610b3857600080fd5b506104ea6126a6565b348015610b4d57600080fd5b5061056e610b5c36600461556b565b61277b565b348015610b6d57600080fd5b506104ea610b7c3660046154f9565b612912565b348015610b8d57600080fd5b50610485612b7d565b348015610ba257600080fd5b506104ea610bb13660046152b9565b612b8c565b348015610bc257600080fd5b506104ea610bd13660046152f0565b612c51565b348015610be257600080fd5b506104ea612c5c565b348015610bf757600080fd5b506104ea610c0636600461523d565b612db0565b348015610c1757600080fd5b5061010f546104b2906001600160a01b031681565b348015610c3857600080fd5b50610485610c473660046154f9565b612e3e565b348015610c5857600080fd5b5061056e612f71565b348015610c6d57600080fd5b50610112546104b2906001600160a01b031681565b348015610c8e57600080fd5b50610110546104b2906001600160a01b031681565b348015610caf57600080fd5b5061056e6101085481565b348015610cc657600080fd5b5061045b610cd5366004615146565b6001600160a01b039182166000908152606b6020908152604080832093909416825291909152205460ff1690565b348015610d0f57600080fd5b5061056e6101035481565b348015610d2657600080fd5b50610101546001600160a01b03166104b2565b60008060026000541415610d945760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000908155610da734878787612faa565b919450925090508015610dcb5761011154610dcb906001600160a01b031682613533565b61011054610deb906001600160a01b0316610de683346157bf565b613533565b5060016000559094909350915050565b60006001600160e01b0319821663780e9d6360e01b1480610e205750610e208261364c565b92915050565b606060668054610e3590615802565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6190615802565b8015610eae5780601f10610e8357610100808354040283529160200191610eae565b820191906000526020600020905b815481529060010190602001808311610e9157829003601f168201915b5050505050905090565b6000818152606860205260408120546001600160a01b0316610f315760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d8b565b506000908152606a60205260409020546001600160a01b031690565b6000610f5882611c37565b9050806001600160a01b0316836001600160a01b03161415610fc65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d8b565b336001600160a01b0382161480610fe25750610fe28133610cd5565b6110545760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d8b565b61105e838361369c565b505050565b61010154600160a01b900460ff16156110b25760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610100546001600160a01b031633146110fb5760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b6044820152606401610d8b565b61010180546001600160a01b0319166001600160a01b0383169081179091556040519081527fd61ed858909d3cb796547804c47dc1550d27455f8a0037b6b487e46212392396906020015b60405180910390a150565b600080600260005414156111a75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d8b565b600260009081556111ba87878787612faa565b9194509250905080156111e85761010f54610111546111e8916001600160a01b03908116918891168461370a565b61010f5461011054611212916001600160a01b039081169188911661120d858c6157bf565b61370a565b506001600055909590945092505050565b61010154600160a01b900460ff16156112725760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610101546001600160a01b031633146112cd5760405162461bcd60e51b815260206004820152601360248201527f2170656e64696e6720676f7665726e616e6365000000000000000000000000006044820152606401610d8b565b610101546001600160a01b03166113265760405162461bcd60e51b815260206004820152600f60248201527f7a65726f20676f7665726e616e636500000000000000000000000000000000006044820152606401610d8b565b610100805461010180546001600160a01b038082166001600160a01b0319808616821790965594909116909155604080519190921680825260208201939093527f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce809101611146565b611398338261378a565b61140a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d8b565b61105e838383613881565b600061142083611f29565b82106114945760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d8b565b506001600160a01b03919091166000908152609860209081526040808320938352929052205490565b60006114c761388c565b905090565b61010154600160a01b900460ff161561151b5760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610100546001600160a01b031633146115645760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b6044820152606401610d8b565b6127108111156115b65760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642070726f746f636f6c206665650000000000000000000000006044820152606401610d8b565b6101098190556040517f6a116a91f064f00a498d82b291f32259028c1149f5efbf6af24a3645095ea6ae90600090a150565b61010154600160a01b900460ff16156116375760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610100546001600160a01b031633146116805760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b6044820152606401610d8b565b61010a805462ff0000191690556040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693390600090a1565b6116d333838360405180602001604052806000815250612db0565b5050565b61105e83838360405180602001604052806000815250612db0565b61010154600160a01b900460ff16156117415760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610100546001600160a01b0316331461178a5760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b6044820152606401610d8b565b80356117c85760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420707269636560981b6044820152606401610d8b565b8035610103556020810135610104556040810135610108556117f060a08201608083016154d0565b6001600160801b031661182b5760405162461bcd60e51b81526020600482015260036024820152620312f360ec1b6044820152606401610d8b565b61183b60808201606083016154d0565b61010580546fffffffffffffffffffffffffffffffff19166001600160801b039290921691909117905561187560a08201608083016154d0565b61010580546001600160801b03928316600160801b02921691909117905560a0810135610102556118ac60e0820160c08301615372565b61010a805461ff00191661010092151583021790556118d290610120830190830161564e565b64ffffffffff166118ea610100830160e0840161564e565b64ffffffffff16111561193f5760405162461bcd60e51b815260206004820152600d60248201527f696e76616c6964206461746573000000000000000000000000000000000000006044820152606401610d8b565b611950610100820160e0830161564e565b61010a805464ffffffffff9290921663010000000267ffffffffff0000001990921691909117905561198a6101208201610100830161564e565b61010a805464ffffffffff9290921668010000000000000000026cffffffffff0000000000000000199092169190911790556119ce6101408201610120830161564e565b61010a805464ffffffffff92909216600160681b0271ffffffffff00000000000000000000000000199092169190911790556000611a146101608301610140840161564e565b64ffffffffff1611611a685760405162461bcd60e51b815260206004820152601060248201527f696e76616c69642068616c666c696665000000000000000000000000000000006044820152606401610d8b565b611a7a6101608201610140830161564e565b64ffffffffff166101065561010a805460ff1916600117905542610107556040517f438cf1acf5a1733b16e518580ad08589e26ce0af89c881c469604df31f27bfd990600090a150565b61010154600160a01b900460ff1615611b135760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610100546001600160a01b03163314611b5c5760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b6044820152606401610d8b565b611b6b87878787878787613907565b50505050505050565b6000818152606860205260408120546001600160a01b03161515610e20565b6000611b9e609a5490565b8210611c125760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d8b565b609a8281548110611c2557611c256158be565b90600052602060002001549050919050565b6000818152606860205260408120546001600160a01b031680610e205760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d8b565b60008060026000541415611d185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d8b565b600260005561010f54600160a01b900460ff16611d815760405162461bcd60e51b815260206004820152602160248201527f7072696e636970616c20646f6573206e6f7420737570706f7274207065726d696044820152601d60fa1b6064820152608401610d8b565b61010f5460405163d505accf60e01b81526001600160a01b038a81166004830152306024830152604482018d90526064820189905260ff8816608483015260a4820187905260c482018690529091169063d505accf9060e401600060405180830381600087803b158015611df457600080fd5b505af1158015611e08573d6000803e3d6000fd5b505050506000611e1a8b8b8b8b612faa565b919450925090508015611e485761010f5461011154611e48916001600160a01b03908116918c91168461370a565b611e8661010f60009054906101000a90046001600160a01b03168a61011060009054906101000a90046001600160a01b0316848f61120d91906157bf565b50600160005590999098509650505050505050565b60ff8054611ea890615802565b80601f0160208091040260200160405190810160405280929190818152602001828054611ed490615802565b8015611f215780601f10611ef657610100808354040283529160200191611f21565b820191906000526020600020905b815481529060010190602001808311611f0457829003601f168201915b505050505081565b60006001600160a01b038216611fa75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d8b565b506001600160a01b031660009081526069602052604090205490565b61010a5460009060ff1661200b5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081a5b9a5d1a585b1a5e9959608a1b6044820152606401610d8b565b6000612015612f71565b9050600081116120545760405162461bcd60e51b815260206004820152600a6024820152697a65726f20707269636560b01b6044820152606401610d8b565b8061206785670de0b6b3a76400006157a0565b612071919061578c565b61010a54909250610100900460ff16156120d057816101025410156120cb5760405162461bcd60e51b815260206004820152601060248201526f626f6e6420617420636170616369747960801b6044820152606401610d8b565b612116565b836101025410156121165760405162461bcd60e51b815260206004820152601060248201526f626f6e6420617420636170616369747960801b6044820152606401610d8b565b6101085482111561215a5760405162461bcd60e51b815260206004820152600e60248201526d626f6e6420746f6f206c6172676560901b6044820152606401610d8b565b5092915050565b600154610100900460ff168061217a575060015460ff16155b6121dd5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d8b565b600154610100900460ff161580156121ff576001805461ffff19166101011790555b61220889613c57565b60408051808201909152600381526214d09560ea1b602082015261222c8b82613d9b565b61223b89898989898989613907565b50801561224e576001805461ff00191690555b50505050505050505050565b6000858152606860205260409020546001600160a01b03166122be5760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610d8b565b8342111561230e5760405162461bcd60e51b815260206004820152600e60248201527f7065726d697420657870697265640000000000000000000000000000000000006044820152606401610d8b565b600085815260fe602052604081208054908261232983615837565b91905055905060006123396114bd565b604080517f000000000000000000000000000000000000000000000000000000000000000060208201526001600160a01b038b1691810191909152606081018990526080810184905260a0810188905260c001604051602081830303815290604052805190602001206040516020016123c992919061190160f01b81526002810192909252602282015260420190565b60405160208183030381529060405280519060200120905060006123ec88611c37565b9050806001600160a01b0316896001600160a01b031614156124505760405162461bcd60e51b815260206004820152601560248201527f63616e6e6f74207065726d697420746f2073656c6600000000000000000000006044820152606401610d8b565b803b1561258857604080516020810187905280820186905260f888901b7fff00000000000000000000000000000000000000000000000000000000000000166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b03831691631626ba7e916124d0918691606501615728565b60206040518083038186803b1580156124e857600080fd5b505afa1580156124fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252091906153c9565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916631626ba7e60e01b146125835760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610d8b565b612691565b6040805160008082526020820180845285905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125dc573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661263f5760405162461bcd60e51b815260206004820152601160248201527f696e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610d8b565b816001600160a01b0316816001600160a01b03161461268f5760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610d8b565b505b61269b898961369c565b505050505050505050565b61010154600160a01b900460ff16156126f55760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610100546001600160a01b0316331461273e5760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b6044820152606401610d8b565b61010a805462ff00001916620100001790556040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75290600090a1565b61010a5460009060ff166127c35760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081a5b9a5d1a585b1a5e9959608a1b6044820152606401610d8b565b60006127cd612f71565b90506000811161280c5760405162461bcd60e51b815260206004820152600a6024820152697a65726f20707269636560b01b6044820152606401610d8b565b670de0b6b3a764000061281f82866157a0565b612829919061578c565b61010a54909250610100900460ff161561288857836101025410156128835760405162461bcd60e51b815260206004820152601060248201526f626f6e6420617420636170616369747960801b6044820152606401610d8b565b6128ce565b816101025410156128ce5760405162461bcd60e51b815260206004820152601060248201526f626f6e6420617420636170616369747960801b6044820152606401610d8b565b6101085484111561215a5760405162461bcd60e51b815260206004820152600e60248201526d626f6e6420746f6f206c6172676560901b6044820152606401610d8b565b600260005414156129655760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d8b565b60026000558061298c816000908152606860205260409020546001600160a01b0316151590565b6129d85760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610d8b565b6129e2338361378a565b612a2e5760405162461bcd60e51b815260206004820152600760248201527f21626f6e646572000000000000000000000000000000000000000000000000006044820152606401610d8b565b600082815261010c60209081526040808320815160a081018352815481526001820154938101939093526002810154918301919091526003015464ffffffffff80821660608401526501000000000090910416608082015290612a9084613e84565b90508061010c60008681526020019081526020016000206001016000828254612ab99190615754565b909155505060808201516060830151612ad2919061576c565b64ffffffffff16421115612b1f57612ae984613f75565b600084815261010c60205260408120818155600181018290556002810191909155600301805469ffffffffffffffffffff191690555b604080513381526020810183905285917f97f4572ff501a5533a09cf8d7d39be87e303470dd8bc7cff4fe91212be76bc73910160405180910390a261010d54612b72906001600160a01b03163383613f8b565b505060016000555050565b606060678054610e3590615802565b6001600160a01b038216331415612be55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d8b565b336000818152606b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116d333838361138e565b61010154600160a01b900460ff1615612cab5760405162461bcd60e51b815260206004820152601160248201527019dbdd995c9b985b98d9481b1bd8dad959607a1b6044820152606401610d8b565b610100546001600160a01b03163314612cf45760405162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b6044820152606401610d8b565b610101805461010080546001600160a01b036001600160a01b0319909116811790915574ffffffffffffffffffffffffffffffffffffffffff199091167401ffffffffffffffffffffffffffffffffffffffff179091556040805133815260208101929092527f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce80910160405180910390a16040517fd572292b9e5d684b0719ae2d0e210513b477e303c975ed1c63b6fcac1607672790600090a1565b612dba338361378a565b612e2c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d8b565b612e3884848484613fbb565b50505050565b606081612e62816000908152606860205260409020546001600160a01b0316151590565b612eae5760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610d8b565b600060ff8054612ebd90615802565b80601f0160208091040260200160405190810160405280929190818152602001828054612ee990615802565b8015612f365780601f10612f0b57610100808354040283529160200191612f36565b820191906000526020600020905b815481529060010190602001808311612f1957829003601f168201915b5050505050905080612f4785614044565b604051602001612f589291906156bd565b6040516020818303038152906040529250505b50919050565b6000806101075442612f8391906157bf565b9050612f92610103548261415a565b915061010454821015612fa6576101045491505b5090565b600080806001600160a01b0385166130045760405162461bcd60e51b815260206004820152600f60248201527f696e76616c6964206164647265737300000000000000000000000000000000006044820152606401610d8b565b61010a5462010000900460ff161561305e5760405162461bcd60e51b815260206004820152601b60248201527f63616e6e6f74206465706f736974207768696c652070617573656400000000006044820152606401610d8b565b61010a5460ff166130a35760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081a5b9a5d1a585b1a5e9959608a1b6044820152606401610d8b565b61010a546301000000900464ffffffffff164210156131045760405162461bcd60e51b815260206004820152601460248201527f626f6e64206e6f742079657420737461727465640000000000000000000000006044820152606401610d8b565b61010a5468010000000000000000900464ffffffffff1642111561316a5760405162461bcd60e51b815260206004820152600e60248201527f626f6e6420636f6e636c756465640000000000000000000000000000000000006044820152606401610d8b565b613173876141aa565b61010a54909350610100900460ff16156131e25761010254838110156131ce5760405162461bcd60e51b815260206004820152601060248201526f626f6e6420617420636170616369747960801b6044820152606401610d8b565b6131d884826157bf565b6101025550613239565b61010254878110156132295760405162461bcd60e51b815260206004820152601060248201526f626f6e6420617420636170616369747960801b6044820152606401610d8b565b61323388826157bf565b61010255505b6101085483111561327d5760405162461bcd60e51b815260206004820152600e60248201526d626f6e6420746f6f206c6172676560901b6044820152606401610d8b565b828611156132cd5760405162461bcd60e51b815260206004820152601360248201527f736c6970706167652070726f74656374696f6e000000000000000000000000006044820152606401610d8b565b61011254604051631d8d9d9160e01b8152600481018590526001600160a01b0390911690631d8d9d9190602401600060405180830381600087803b15801561331457600080fd5b505af1158015613328573d6000803e3d6000fd5b5050505083156133f55761010e5461010a546001600160a01b039091169063650e1505908790869061336890600160681b900464ffffffffff1642615754565b6040516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091526044820152606401602060405180830381600087803b1580156133b657600080fd5b505af11580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee9190615512565b915061350b565b61010b6000815461340590615837565b91829055509150600061341742614283565b61010a546040805160a081018252878152600060208083018281528385018f815264ffffffffff80891660608701908152600160681b9098048116608087018181528d875261010c90955296909420945185559051600185015551600284015593516003909201805494518216650100000000000269ffffffffffffffffffff199095169290911691909117929092179091559091506134b78785614300565b604080518a81526020810187905264ffffffffff8481168284015283166060820152905185917f3a95f02ad5731defc4cdd85d5f55ccc75370529c85a4535e6963b51252cce656919081900360800190a250505b612710610109548861351d91906157a0565b613527919061578c565b90509450945094915050565b804710156135835760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d8b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146135d0576040519150601f19603f3d011682016040523d82523d6000602084013e6135d5565b606091505b505090508061105e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d8b565b60006001600160e01b031982166380ac58cd60e01b148061367d57506001600160e01b03198216635b5e139f60e01b145b80610e2057506301ffc9a760e01b6001600160e01b0319831614610e20565b6000818152606a6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906136d182611c37565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040516001600160a01b0380851660248301528316604482015260648101829052612e389085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915261430a565b6000818152606860205260408120546001600160a01b03166138035760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d8b565b600061380e83611c37565b9050806001600160a01b0316846001600160a01b031614806138495750836001600160a01b031661383e84610eb8565b6001600160a01b0316145b8061387957506001600160a01b038082166000908152606b602090815260408083209388168352929052205460ff165b949350505050565b61105e8383836143ef565b60006114c77f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6138bb60ca5490565b60cb546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6001600160a01b03871661395d5760405162461bcd60e51b815260206004820152601360248201527f7a65726f206164647265737320736f6c616365000000000000000000000000006044820152606401610d8b565b6001600160a01b0386166139b35760405162461bcd60e51b815260206004820152601560248201527f7a65726f20616464726573732078736c6f636b657200000000000000000000006044820152606401610d8b565b6001600160a01b038516613a095760405162461bcd60e51b815260206004820152601160248201527f7a65726f206164647265737320706f6f6c0000000000000000000000000000006044820152606401610d8b565b6001600160a01b038416613a5f5760405162461bcd60e51b815260206004820152601060248201527f7a65726f20616464726573732064616f000000000000000000000000000000006044820152606401610d8b565b6001600160a01b038316613ab55760405162461bcd60e51b815260206004820152601660248201527f7a65726f2061646472657373207072696e636970616c000000000000000000006044820152606401610d8b565b6001600160a01b038116613b0b5760405162461bcd60e51b815260206004820152601660248201527f7a65726f206164647265737320626f6e64206465706f000000000000000000006044820152606401610d8b565b61010d80546001600160a01b038981166001600160a01b0319928316811790935561010e8054918a1691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b390604401602060405180830381600087803b158015613b7d57600080fd5b505af1158015613b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bb5919061538f565b5061011080546001600160a01b038088166001600160a01b031992831617909255610111805487841690831617905561010f8054851515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff19909116878516171790556101128054928416929091169190911790556040517f2cff880e9c762635ec2d7e14018fa7c77831bf16fb33c01dbf332d4663cbe0fb90600090a150505050505050565b600154610100900460ff1680613c70575060015460ff16155b613cd35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d8b565b600154610100900460ff16158015613cf5576001805461ffff19166101011790555b6001600160a01b038216613d4b5760405162461bcd60e51b815260206004820152601760248201527f7a65726f206164647265737320676f7665726e616e63650000000000000000006044820152606401610d8b565b61010080546001600160a01b0319166001600160a01b038416179055610101805474ffffffffffffffffffffffffffffffffffffffffff1916905580156116d3576001805461ff00191690555050565b600154610100900460ff1680613db4575060015460ff16155b613e175760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d8b565b600154610100900460ff16158015613e39576001805461ffff19166101011790555b613e4383836145ae565b613e4b614666565b613e6e83604051806040016040528060018152602001603160f81b815250614719565b801561105e576001805461ff0019169055505050565b600081815261010c60209081526040808320815160a0810183528154808252600183015494820185905260028301549382019390935260039091015464ffffffffff808216606084015265010000000000909104166080820152911115613eed57613eed615866565b80608001518160600151613f01919061576c565b64ffffffffff164211613f5d578060200151816080015164ffffffffff16826060015164ffffffffff1642613f3691906157bf565b8351613f4291906157a0565b613f4c919061578c565b613f5691906157bf565b9150612f6b565b60208101518151613f6e91906157bf565b9392505050565b6000613f8082611c37565b90506116d3826147ea565b6040516001600160a01b03831660248201526044810182905261105e90849063a9059cbb60e01b9060640161373e565b613fc6848484613881565b613fd284848484614891565b612e385760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d8b565b6060816140685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115614092578061407c81615837565b915061408b9050600a8361578c565b915061406c565b60008167ffffffffffffffff8111156140ad576140ad6158d4565b6040519080825280601f01601f1916602001820160405280156140d7576020820181803683370190505b5090505b8415613879576140ec6001836157bf565b91506140f9600a86615852565b614104906030615754565b60f81b818381518110614119576141196158be565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350614153600a8661578c565b94506140db565b6000610106548261416b919061578c565b610106549084901c91506002906141828185615852565b61418c90846157a0565b614196919061578c565b6141a0919061578c565b613f6e90826157bf565b60008061010754426141bc91906157bf565b905060006141cd610103548361415a565b9050610104548110156141e05750610104545b8061421d5760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420707269636560981b6044820152606401610d8b565b42610107558061423585670de0b6b3a76400006157a0565b61423f919061578c565b610105549093506001600160801b03600160801b82048116916142639116856157a0565b61426d919061578c565b6142779082615754565b61010355509092915050565b6000650100000000008210612fa65760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201527f30206269747300000000000000000000000000000000000000000000000000006064820152608401610d8b565b6116d382826149f4565b600061435f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614b429092919063ffffffff16565b80519091501561105e578080602001905181019061437d919061538f565b61105e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610d8b565b826001600160a01b031661440282611c37565b6001600160a01b03161461447e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d8b565b6001600160a01b0382166144e05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d8b565b6144eb838383614b51565b6144f660008261369c565b6001600160a01b038316600090815260696020526040812080546001929061451f9084906157bf565b90915550506001600160a01b038216600090815260696020526040812080546001929061454d908490615754565b909155505060008181526068602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600154610100900460ff16806145c7575060015460ff16155b61462a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d8b565b600154610100900460ff1615801561464c576001805461ffff19166101011790555b614654614666565b61465c614666565b613e6e8383614c09565b600154610100900460ff168061467f575060015460ff16155b6146e25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d8b565b600154610100900460ff16158015614704576001805461ffff19166101011790555b8015614716576001805461ff00191690555b50565b600154610100900460ff1680614732575060015460ff16155b6147955760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d8b565b600154610100900460ff161580156147b7576001805461ffff19166101011790555b825160208085019190912083519184019190912060ca9190915560cb55801561105e576001805461ff0019169055505050565b60006147f582611c37565b905061480381600084614b51565b61480e60008361369c565b6001600160a01b03811660009081526069602052604081208054600192906148379084906157bf565b909155505060008281526068602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b156149e957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906148d59033908990889088906004016156ec565b602060405180830381600087803b1580156148ef57600080fd5b505af192505050801561491f575060408051601f3d908101601f1916820190925261491c918101906153c9565b60015b6149cf573d80801561494d576040519150601f19603f3d011682016040523d82523d6000602084013e614952565b606091505b5080516149c75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d8b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613879565b506001949350505050565b6001600160a01b038216614a4a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d8b565b6000818152606860205260409020546001600160a01b031615614aaf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d8b565b614abb60008383614b51565b6001600160a01b0382166000908152606960205260408120805460019290614ae4908490615754565b909155505060008181526068602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60606138798484600085614ce5565b6001600160a01b038316614bac57614ba781609a80546000838152609b60205260408120829055600182018355919091527f44da158ba27f9252712a74ff6a55c5d531f69609f1f6e7f17c4443a8e2089be40155565b614bcf565b816001600160a01b0316836001600160a01b031614614bcf57614bcf8382614e24565b6001600160a01b038216614be65761105e81614ec1565b826001600160a01b0316826001600160a01b03161461105e5761105e8282614f70565b600154610100900460ff1680614c22575060015460ff16155b614c855760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d8b565b600154610100900460ff16158015614ca7576001805461ffff19166101011790555b8251614cba906066906020860190614fed565b508151614cce906067906020850190614fed565b50801561105e576001805461ff0019169055505050565b606082471015614d5d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610d8b565b843b614dab5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d8b565b600080866001600160a01b03168587604051614dc791906156a1565b60006040518083038185875af1925050503d8060008114614e04576040519150601f19603f3d011682016040523d82523d6000602084013e614e09565b606091505b5091509150614e19828286614fb4565b979650505050505050565b60006001614e3184611f29565b614e3b91906157bf565b600083815260996020526040902054909150808214614e8e576001600160a01b03841660009081526098602090815260408083208584528252808320548484528184208190558352609990915290208190555b5060009182526099602090815260408084208490556001600160a01b039094168352609881528383209183525290812055565b609a54600090614ed3906001906157bf565b6000838152609b6020526040812054609a8054939450909284908110614efb57614efb6158be565b9060005260206000200154905080609a8381548110614f1c57614f1c6158be565b6000918252602080832090910192909255828152609b9091526040808220849055858252812055609a805480614f5457614f546158a8565b6001900381819060005260206000200160009055905550505050565b6000614f7b83611f29565b6001600160a01b039093166000908152609860209081526040808320868452825280832085905593825260999052919091209190915550565b60608315614fc3575081613f6e565b825115614fd35782518084602001fd5b8160405162461bcd60e51b8152600401610d8b9190615741565b828054614ff990615802565b90600052602060002090601f01602090048101928261501b5760008555615061565b82601f1061503457805160ff1916838001178555615061565b82800160010185558215615061579182015b82811115615061578251825591602001919060010190615046565b50612fa69291505b80821115612fa65760008155600101615069565b600067ffffffffffffffff80841115615098576150986158d4565b604051601f8501601f19908116603f011681019082821181831017156150c0576150c06158d4565b816040528093508581528686860111156150d957600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461510a57600080fd5b919050565b803561510a816158ea565b803560ff8116811461510a57600080fd5b60006020828403121561513d57600080fd5b613f6e826150f3565b6000806040838503121561515957600080fd5b615162836150f3565b9150615170602084016150f3565b90509250929050565b600080600080600080600060e0888a03121561519457600080fd5b61519d886150f3565b96506151ab602089016150f3565b95506151b9604089016150f3565b94506151c7606089016150f3565b93506151d5608089016150f3565b925060a08801356151e5816158ea565b91506151f360c089016150f3565b905092959891949750929550565b60008060006060848603121561521657600080fd5b61521f846150f3565b925061522d602085016150f3565b9150604084013590509250925092565b6000806000806080858703121561525357600080fd5b61525c856150f3565b935061526a602086016150f3565b925060408501359150606085013567ffffffffffffffff81111561528d57600080fd5b8501601f8101871361529e57600080fd5b6152ad8782356020840161507d565b91505092959194509250565b600080604083850312156152cc57600080fd5b6152d5836150f3565b915060208301356152e5816158ea565b809150509250929050565b6000806040838503121561530357600080fd5b61530c836150f3565b946020939093013593505050565b60008060008060008060c0878903121561533357600080fd5b61533c876150f3565b955060208701359450604087013593506153586060880161511a565b92506080870135915060a087013590509295509295509295565b60006020828403121561538457600080fd5b8135613f6e816158ea565b6000602082840312156153a157600080fd5b8151613f6e816158ea565b6000602082840312156153be57600080fd5b8135613f6e816158f8565b6000602082840312156153db57600080fd5b8151613f6e816158f8565b60008060008060008060008060006101208a8c03121561540557600080fd5b893567ffffffffffffffff81111561541c57600080fd5b8a01601f81018c1361542d57600080fd5b61543c8c82356020840161507d565b99505061544b60208b016150f3565b975061545960408b016150f3565b965061546760608b016150f3565b955061547560808b016150f3565b945061548360a08b016150f3565b935061549160c08b016150f3565b925061549f60e08b0161510f565b91506154ae6101008b016150f3565b90509295985092959850929598565b60006101608284031215612f6b57600080fd5b6000602082840312156154e257600080fd5b81356001600160801b0381168114613f6e57600080fd5b60006020828403121561550b57600080fd5b5035919050565b60006020828403121561552457600080fd5b5051919050565b60008060006060848603121561554057600080fd5b83359250615550602085016150f3565b91506040840135615560816158ea565b809150509250925092565b6000806040838503121561557e57600080fd5b8235915060208301356152e5816158ea565b600080600080608085870312156155a657600080fd5b84359350602085013592506155bd604086016150f3565b915060608501356155cd816158ea565b939692955090935050565b600080600080600080600080610100898b0312156155f557600080fd5b883597506020890135965061560c60408a016150f3565b9550606089013561561c816158ea565b94506080890135935061563160a08a0161511a565b925060c0890135915060e089013590509295985092959890939650565b60006020828403121561566057600080fd5b813564ffffffffff81168114613f6e57600080fd5b6000815180845261568d8160208601602086016157d6565b601f01601f19169290920160200192915050565b600082516156b38184602087016157d6565b9190910192915050565b600083516156cf8184602088016157d6565b8351908301906156e38183602088016157d6565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261571e6080830184615675565b9695505050505050565b8281526040602082015260006138796040830184615675565b602081526000613f6e6020830184615675565b600082198211156157675761576761587c565b500190565b600064ffffffffff8083168185168083038211156156e3576156e361587c565b60008261579b5761579b615892565b500490565b60008160001904831182151516156157ba576157ba61587c565b500290565b6000828210156157d1576157d161587c565b500390565b60005b838110156157f15781810151838201526020016157d9565b83811115612e385750506000910152565b600181811c9082168061581657607f821691505b60208210811415612f6b57634e487b7160e01b600052602260045260246000fd5b600060001982141561584b5761584b61587c565b5060010190565b60008261586157615861615892565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461471657600080fd5b6001600160e01b03198116811461471657600080fdfea26469706673582212206ab1ff23e12d97ba105b5db6e1c5e072728f2bbe7aba2759af8d36539f74058864736f6c63430008060033

Deployed ByteCode Sourcemap

179908:24670:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;204297:34;204310:1;204313:10;204325:5;204297:12;:34::i;:::-;;;179908:24670;;204533:34;204546:1;204549:10;204561:5;204533:12;:34::i;93666:257::-;;;;;;;;;;-1:-1:-1;93666:257:0;;;;;:::i;:::-;;:::i;:::-;;;14505:14:1;;14498:22;14480:41;;14468:2;14453:18;93666:257:0;;;;;;;;80059:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;81629:221::-;;;;;;;;;;-1:-1:-1;81629:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;11649:55:1;;;11631:74;;11619:2;11604:18;81629:221:0;11586:125:1;81141:422:0;;;;;;;;;;-1:-1:-1;81141:422:0;;;;;:::i;:::-;;:::i;:::-;;124315:202;;;;;;;;;;-1:-1:-1;124315:202:0;;;;;:::i;:::-;;:::i;188567:643::-;;;;;;;;;;-1:-1:-1;188567:643:0;;;;;:::i;:::-;;:::i;:::-;;;;37527:25:1;;;37583:2;37568:18;;37561:34;;;;37500:18;188567:643:0;37482:119:1;112195:122:0;;;;;;;;;;-1:-1:-1;112195:122:0;;;;;:::i;:::-;112260:13;112293:16;;;:7;:16;;;;;;;112195:122;;;;14678:25:1;;;14666:2;14651:18;112195:122:0;14633:76:1;94350:113:0;;;;;;;;;;-1:-1:-1;94438:10:0;:17;94350:113;;123783:101;;;;;;;;;;-1:-1:-1;123869:7:0;;-1:-1:-1;;;123869:7:0;;;;123783:101;;124640:563;;;;;;;;;;;;;:::i;82519:339::-;;;;;;;;;;-1:-1:-1;82519:339:0;;;;;:::i;:::-;;:::i;181148:28::-;;;;;;;;;;-1:-1:-1;181148:28:0;;;;;;;;;;;180437:26;;;;;;;;;;-1:-1:-1;180437:26:0;;;;-1:-1:-1;;;;;180437:26:0;;;;;;-1:-1:-1;;;;;37112:47:1;;;37094:66;;37082:2;37067:18;180437:26:0;37049:117:1;94007:267:0;;;;;;;;;;-1:-1:-1;94007:267:0;;;;;:::i;:::-;;:::i;112521:119::-;;;;;;;;;;-1:-1:-1;112616:16:0;112521:119;;181397:21;;;;;;;;;;-1:-1:-1;181397:21:0;;;;;;;;;;;;;;38734:12:1;38722:25;;;38704:44;;38692:2;38677:18;181397:21:0;38659:95:1;180959:29:0;;;;;;;;;;;;;;;;112894:123;;;;;;;;;;;;;:::i;182502:25::-;;;;;;;;;;-1:-1:-1;182502:25:0;;;;-1:-1:-1;;;182502:25:0;;;;;;201390:200;;;;;;;;;;-1:-1:-1;201390:200:0;;;;;:::i;:::-;;:::i;182276:21::-;;;;;;;;;;-1:-1:-1;182276:21:0;;;;-1:-1:-1;;;;;182276:21:0;;;198947:111;;;;;;;;;;;;;:::i;182676:18::-;;;;;;;;;;-1:-1:-1;182676:18:0;;;;-1:-1:-1;;;;;182676:18:0;;;180531:28;;;;;;;;;;-1:-1:-1;180531:28:0;;;;-1:-1:-1;;;180531:28:0;;-1:-1:-1;;;;;180531:28:0;;;109606:137;;;;;;;;;;-1:-1:-1;109606:137:0;;;;;:::i;:::-;;:::i;82929:185::-;;;;;;;;;;-1:-1:-1;82929:185:0;;;;;:::i;:::-;;:::i;200310:917::-;;;;;;;;;;-1:-1:-1;200310:917:0;;;;;:::i;:::-;;:::i;181482:31::-;;;;;;;;;;-1:-1:-1;181482:31:0;;;;-1:-1:-1;;;181482:31:0;;;;;;202137:354;;;;;;;;;;-1:-1:-1;202137:354:0;;;;;:::i;:::-;;:::i;117027:120::-;;;;;;;;;;-1:-1:-1;117027:120:0;;;;;:::i;:::-;;:::i;94540:244::-;;;;;;;;;;-1:-1:-1;94540:244:0;;;;;:::i;:::-;;:::i;181582:23::-;;;;;;;;;;;;;;;;123443:100;;;;;;;;;;-1:-1:-1;123524:11:0;;-1:-1:-1;;;;;123524:11:0;123443:100;;181241:18;;;;;;;;;;-1:-1:-1;181241:18:0;;;;;;;;;;;180164:23;;;;;;;;;;;;;;;;182172:38;;;;;;;;;;-1:-1:-1;182172:38:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37861:25:1;;;37917:2;37902:18;;37895:34;;;;37945:18;;;37938:34;;;;37991:12;38039:15;;;38034:2;38019:18;;38012:43;38092:15;38086:3;38071:19;;38064:44;37848:3;37833:19;182172:38:0;37815:299:1;79753:239:0;;;;;;;;;;-1:-1:-1;79753:239:0;;;;;:::i;:::-;;:::i;180699:30::-;;;;;;;;;;;;;;;;190045:926;;;;;;;;;;-1:-1:-1;190045:926:0;;;;;:::i;:::-;;:::i;108026:21::-;;;;;;;;;;;;;:::i;79483:208::-;;;;;;;;;;-1:-1:-1;79483:208:0;;;;;:::i;:::-;;:::i;185023:779::-;;;;;;;;;;-1:-1:-1;185023:779:0;;;;;:::i;:::-;;:::i;182347:23::-;;;;;;;;;;-1:-1:-1;182347:23:0;;;;-1:-1:-1;;;;;182347:23:0;;;181077:20;;;;;;;;;;-1:-1:-1;181077:20:0;;;;;;;;181324:23;;;;;;;;;;-1:-1:-1;181324:23:0;;;;;;;;;;;183499:536;;;;;;;;;;-1:-1:-1;183499:536:0;;;;;:::i;:::-;;:::i;110506:1277::-;;;;;;;;;;-1:-1:-1;110506:1277:0;;;;;:::i;:::-;;:::i;180625:23::-;;;;;;;;;;;;;;;;180339:27;;;;;;;;;;;;;;;;187442:569;;;;;;:::i;:::-;;:::i;198696:106::-;;;;;;;;;;;;;:::i;186110:726::-;;;;;;;;;;-1:-1:-1;186110:726:0;;;;;:::i;:::-;;:::i;191325:875::-;;;;;;;;;;-1:-1:-1;191325:875:0;;;;;:::i;:::-;;:::i;80228:104::-;;;;;;;;;;;;;:::i;81922:295::-;;;;;;;;;;-1:-1:-1;81922:295:0;;;;;:::i;:::-;;:::i;109126:125::-;;;;;;;;;;-1:-1:-1;109126:125:0;;;;;:::i;:::-;;:::i;125636:467::-;;;;;;;;;;;;;:::i;83185:328::-;;;;;;;;;;-1:-1:-1;83185:328:0;;;;;:::i;:::-;;:::i;182424:24::-;;;;;;;;;;-1:-1:-1;182424:24:0;;;;-1:-1:-1;;;;;182424:24:0;;;113241:235;;;;;;;;;;-1:-1:-1;113241:235:0;;;;;:::i;:::-;;:::i;184373:345::-;;;;;;;;;;;;;:::i;182735:23::-;;;;;;;;;;-1:-1:-1;182735:23:0;;;;-1:-1:-1;;;;;182735:23:0;;;182589:31;;;;;;;;;;-1:-1:-1;182589:31:0;;;;-1:-1:-1;;;;;182589:31:0;;;180783:24;;;;;;;;;;;;;;;;82288:164;;;;;;;;;;-1:-1:-1;82288:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;82409:25:0;;;82385:4;82409:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;82288:164;180248:24;;;;;;;;;;;;;;;;123606:114;;;;;;;;;;-1:-1:-1;123694:18:0;;-1:-1:-1;;;;;123694:18:0;123606:114;;187442:569;187597:14;187613:15;32579:1;33175:7;;:19;;33167:63;;;;-1:-1:-1;;;33167:63:0;;36109:2:1;33167:63:0;;;36091:21:1;36148:2;36128:18;;;36121:30;36187:33;36167:18;;;36160:61;36238:18;;33167:63:0;;;;;;;;;32579:1;33308:7;:18;;;187727:51:::1;187736:9;187747:12:::0;187761:9;187772:5;187727:8:::1;:51::i;:::-;187694:84:::0;;-1:-1:-1;187694:84:0;-1:-1:-1;187694:84:0;-1:-1:-1;187862:15:0;;187859:64:::1;;187905:3;::::0;187879:44:::1;::::0;-1:-1:-1;;;;;187905:3:0::1;187911:11:::0;187879:17:::1;:44::i;:::-;187960:16;::::0;187934:69:::1;::::0;-1:-1:-1;;;;;187960:16:0::1;187979:23;187991:11:::0;187979:9:::1;:23;:::i;:::-;187934:17;:69::i;:::-;-1:-1:-1::0;32535:1:0;33487:7;:22;187442:569;;;;-1:-1:-1;187442:569:0;-1:-1:-1;;187442:569:0:o;93666:257::-;93790:4;-1:-1:-1;;;;;;93814:61:0;;-1:-1:-1;;;93814:61:0;;:101;;;93879:36;93903:11;93879:23;:36::i;:::-;93807:108;93666:257;-1:-1:-1;;93666:257:0:o;80059:100::-;80113:13;80146:5;80139:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80059:100;:::o;81629:221::-;81705:7;85112:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85112:16:0;81725:73;;;;-1:-1:-1;;;81725:73:0;;31155:2:1;81725:73:0;;;31137:21:1;31194:2;31174:18;;;31167:30;31233:34;31213:18;;;31206:62;-1:-1:-1;;;31284:18:1;;;31277:42;31336:19;;81725:73:0;31127:234:1;81725:73:0;-1:-1:-1;81818:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;81818:24:0;;81629:221::o;81141:422::-;81222:13;81238:34;81264:7;81238:25;:34::i;:::-;81222:50;;81297:5;-1:-1:-1;;;;;81291:11:0;:2;-1:-1:-1;;;;;81291:11:0;;;81283:57;;;;-1:-1:-1;;;81283:57:0;;32733:2:1;81283:57:0;;;32715:21:1;32772:2;32752:18;;;32745:30;32811:34;32791:18;;;32784:62;-1:-1:-1;;;32862:18:1;;;32855:31;32903:19;;81283:57:0;32705:223:1;81283:57:0;73830:10;-1:-1:-1;;;;;81375:21:0;;;;:62;;-1:-1:-1;81400:37:0;81417:5;73830:10;82288:164;:::i;81400:37::-;81353:168;;;;-1:-1:-1;;;81353:168:0;;26729:2:1;81353:168:0;;;26711:21:1;26768:2;26748:18;;;26741:30;26807:34;26787:18;;;26780:62;26878:26;26858:18;;;26851:54;26922:19;;81353:168:0;26701:246:1;81353:168:0;81534:21;81543:2;81547:7;81534:8;:21::i;:::-;81211:352;81141:422;;:::o;124315:202::-;122888:7;;-1:-1:-1;;;122888:7:0;;;;122887:8;122879:38;;;;-1:-1:-1;;;122879:38:0;;21181:2:1;122879:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;122879:38:0;21153:167:1;122879:38:0;122950:11;;-1:-1:-1;;;;;122950:11:0;122936:10;:25;122928:49;;;;-1:-1:-1;;;122928:49:0;;19798:2:1;122928:49:0;;;19780:21:1;19837:2;19817:18;;;19810:30;-1:-1:-1;;;19856:18:1;;;19849:41;19907:18;;122928:49:0;19770:161:1;122928:49:0;124417:18:::1;:39:::0;;-1:-1:-1;;;;;;124417:39:0::1;-1:-1:-1::0;;;;;124417:39:0;::::1;::::0;;::::1;::::0;;;124472:37:::1;::::0;11631:74:1;;;124472:37:0::1;::::0;11619:2:1;11604:18;124472:37:0::1;;;;;;;;124315:202:::0;:::o;188567:643::-;188742:14;188758:15;32579:1;33175:7;;:19;;33167:63;;;;-1:-1:-1;;;33167:63:0;;36109:2:1;33167:63:0;;;36091:21:1;36148:2;36128:18;;;36121:30;36187:33;36167:18;;;36160:61;36238:18;;33167:63:0;36081:181:1;33167:63:0;32579:1;33308:7;:18;;;188872:48:::1;188881:6:::0;188889:12;188903:9;188914:5;188872:8:::1;:48::i;:::-;188839:81:::0;;-1:-1:-1;188839:81:0;-1:-1:-1;188839:81:0;-1:-1:-1;189004:15:0;;189001:94:::1;;189055:9;::::0;189078:3:::1;::::0;189021:74:::1;::::0;-1:-1:-1;;;;;189055:9:0;;::::1;::::0;189067;;189078:3:::1;189083:11:::0;189021:26:::1;:74::i;:::-;189140:9;::::0;189163:16:::1;::::0;189106:96:::1;::::0;-1:-1:-1;;;;;189140:9:0;;::::1;::::0;189152;;189163:16:::1;189181:20;189190:11:::0;189181:6;:20:::1;:::i;:::-;189106:26;:96::i;:::-;-1:-1:-1::0;32535:1:0;33487:7;:22;188567:643;;;;-1:-1:-1;188567:643:0;-1:-1:-1;;;188567:643:0:o;124640:563::-;123147:7;;-1:-1:-1;;;123147:7:0;;;;123146:8;123138:38;;;;-1:-1:-1;;;123138:38:0;;21181:2:1;123138:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;123138:38:0;21153:167:1;123138:38:0;123209:18;;-1:-1:-1;;;;;123209:18:0;123195:10;:32;123187:64;;;;-1:-1:-1;;;123187:64:0;;31978:2:1;123187:64:0;;;31960:21:1;32017:2;31997:18;;;31990:30;32056:21;32036:18;;;32029:49;32095:18;;123187:64:0;31950:169:1;123187:64:0;124943:18:::1;::::0;-1:-1:-1;;;;;124943:18:0::1;124935:62;;;::::0;-1:-1:-1;;;124935:62:0;;29418:2:1;124935:62:0::1;::::0;::::1;29400:21:1::0;29457:2;29437:18;;;29430:30;29496:17;29476:18;;;29469:45;29531:18;;124935:62:0::1;29390:165:1::0;124935:62:0::1;125032:11;::::0;;125068:18:::1;::::0;;-1:-1:-1;;;;;125068:18:0;;::::1;-1:-1:-1::0;;;;;;125054:32:0;;::::1;::::0;::::1;::::0;;;125097:33;;;::::1;::::0;;;125146:49:::1;::::0;;125032:11;;;::::1;11951:34:1::0;;;12016:2;12001:18;;11994:43;;;;125146:49:0::1;::::0;11863:18:1;125146:49:0::1;11845:198:1::0;82519:339:0;82714:41;73830:10;82747:7;82714:18;:41::i;:::-;82706:103;;;;-1:-1:-1;;;82706:103:0;;33815:2:1;82706:103:0;;;33797:21:1;33854:2;33834:18;;;33827:30;33893:34;33873:18;;;33866:62;33964:19;33944:18;;;33937:47;34001:19;;82706:103:0;33787:239:1;82706:103:0;82822:28;82832:4;82838:2;82842:7;82822:9;:28::i;94007:267::-;94104:7;94140:34;94168:5;94140:27;:34::i;:::-;94132:5;:42;94124:98;;;;-1:-1:-1;;;94124:98:0;;18967:2:1;94124:98:0;;;18949:21:1;19006:2;18986:18;;;18979:30;19045:34;19025:18;;;19018:62;19116:13;19096:18;;;19089:41;19147:19;;94124:98:0;18939:233:1;94124:98:0;-1:-1:-1;;;;;;94240:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;94007:267::o;112894:123::-;112952:17;112989:20;:18;:20::i;:::-;112982:27;;112894:123;:::o;201390:200::-;122888:7;;-1:-1:-1;;;122888:7:0;;;;122887:8;122879:38;;;;-1:-1:-1;;;122879:38:0;;21181:2:1;122879:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;122879:38:0;21153:167:1;122879:38:0;122950:11;;-1:-1:-1;;;;;122950:11:0;122936:10;:25;122928:49;;;;-1:-1:-1;;;122928:49:0;;19798:2:1;122928:49:0;;;19780:21:1;19837:2;19817:18;;;19810:30;-1:-1:-1;;;19856:18:1;;;19849:41;19907:18;;122928:49:0;19770:161:1;122928:49:0;180920:5:::1;201471:11;:22;;201463:55;;;::::0;-1:-1:-1;;;201463:55:0;;21527:2:1;201463:55:0::1;::::0;::::1;21509:21:1::0;21566:2;21546:18;;;21539:30;21605:22;21585:18;;;21578:50;21645:18;;201463:55:0::1;21499:170:1::0;201463:55:0::1;201529:14;:28:::0;;;201573:9:::1;::::0;::::1;::::0;;;::::1;201390:200:::0;:::o;198947:111::-;122888:7;;-1:-1:-1;;;122888:7:0;;;;122887:8;122879:38;;;;-1:-1:-1;;;122879:38:0;;21181:2:1;122879:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;122879:38:0;21153:167:1;122879:38:0;122950:11;;-1:-1:-1;;;;;122950:11:0;122936:10;:25;122928:49;;;;-1:-1:-1;;;122928:49:0;;19798:2:1;122928:49:0;;;19780:21:1;19837:2;19817:18;;;19810:30;-1:-1:-1;;;19856:18:1;;;19849:41;19907:18;;122928:49:0;19770:161:1;122928:49:0;199010:6:::1;:14:::0;;-1:-1:-1;;199010:14:0::1;::::0;;199040:10:::1;::::0;::::1;::::0;199019:5:::1;::::0;199040:10:::1;198947:111::o:0;109606:137::-;109684:51;109707:10;109719:2;109723:7;109684:51;;;;;;;;;;;;:22;:51::i;:::-;109606:137;;:::o;82929:185::-;83067:39;83084:4;83090:2;83094:7;83067:39;;;;;;;;;;;;:16;:39::i;200310:917::-;122888:7;;-1:-1:-1;;;122888:7:0;;;;122887:8;122879:38;;;;-1:-1:-1;;;122879:38:0;;21181:2:1;122879:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;122879:38:0;21153:167:1;122879:38:0;122950:11;;-1:-1:-1;;;;;122950:11:0;122936:10;:25;122928:49;;;;-1:-1:-1;;;122928:49:0;;19798:2:1;122928:49:0;;;19780:21:1;19837:2;19817:18;;;19810:30;-1:-1:-1;;;19856:18:1;;;19849:41;19907:18;;122928:49:0;19770:161:1;122928:49:0;200393:16;::::1;200385:46;;;::::0;-1:-1:-1;;;200385:46:0;;26387:2:1;200385:46:0::1;::::0;::::1;26369:21:1::0;26426:2;26406:18;;;26399:30;-1:-1:-1;;;26445:18:1;;;26438:43;26498:18;;200385:46:0::1;26359:163:1::0;200385:46:0::1;200454:16:::0;::::1;200442:9;:28:::0;200496:18:::1;::::0;::::1;;200481:12;:33:::0;200537:15:::1;::::0;::::1;;200525:9;:27:::0;200571:19:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;200571:24:0::1;200563:40;;;::::0;-1:-1:-1;;;200563:40:0;;36819:2:1;200563:40:0::1;::::0;::::1;36801:21:1::0;36858:1;36838:18;;;36831:29;-1:-1:-1;;;36876:18:1;;;36869:33;36919:18;;200563:40:0::1;36791:152:1::0;200563:40:0::1;200628:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;200614:11;:31:::0;;-1:-1:-1;;200614:31:0::1;-1:-1:-1::0;;;;;200614:31:0;;;::::1;::::0;;;::::1;::::0;;200672:19:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;200656:13;:35:::0;;-1:-1:-1;;;;;200656:35:0;;::::1;-1:-1:-1::0;;;200656:35:0::1;::::0;::::1;::::0;;;::::1;::::0;;200713:14:::1;::::0;::::1;;200702:8;:25:::0;200757:22:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;200738:16;:41:::0;;-1:-1:-1;;200738:41:0::1;;::::0;::::1;;::::0;::::1;;::::0;;200817:13:::1;::::0;;;;;;::::1;;:::i;:::-;200798:32;;:15;::::0;;;::::1;::::0;::::1;;:::i;:::-;:32;;;;200790:58;;;::::0;-1:-1:-1;;;200790:58:0;;20839:2:1;200790:58:0::1;::::0;::::1;20821:21:1::0;20878:2;20858:18;;;20851:30;20917:15;20897:18;;;20890:43;20950:18;;200790:58:0::1;20811:163:1::0;200790:58:0::1;200871:15;::::0;;;::::1;::::0;::::1;;:::i;:::-;200859:9;:27:::0;;::::1;::::0;;;::::1;::::0;::::1;-1:-1:-1::0;;200859:27:0;;::::1;::::0;;;::::1;::::0;;200907:13:::1;::::0;;;200859:27:::1;200907:13:::0;::::1;;:::i;:::-;200897:7;:23:::0;;::::1;::::0;;;::::1;::::0;::::1;-1:-1:-1::0;;200897:23:0;;::::1;::::0;;;::::1;::::0;;200951::::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;200931:17;:43:::0;;::::1;::::0;;;::::1;-1:-1:-1::0;;;200931:43:0::1;-1:-1:-1::0;;200931:43:0;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;200993:14:0::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;:18;;;200985:47;;;::::0;-1:-1:-1;;;200985:47:0;;33135:2:1;200985:47:0::1;::::0;::::1;33117:21:1::0;33174:2;33154:18;;;33147:30;33213:18;33193;;;33186:46;33249:18;;200985:47:0::1;33107:166:1::0;200985:47:0::1;201054:14;::::0;;;::::1;::::0;::::1;;:::i;:::-;201043:25;;:8;:25:::0;201079:8:::1;:15:::0;;-1:-1:-1;;201079:15:0::1;201090:4;201079:15;::::0;;201178::::1;201160;:33:::0;201209:10:::1;::::0;::::1;::::0;201079:8:::1;::::0;201209:10:::1;200310:917:::0;:::o;202137:354::-;122888:7;;-1:-1:-1;;;122888:7:0;;;;122887:8;122879:38;;;;-1:-1:-1;;;122879:38:0;;21181:2:1;122879:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;122879:38:0;21153:167:1;122879:38:0;122950:11;;-1:-1:-1;;;;;122950:11:0;122936:10;:25;122928:49;;;;-1:-1:-1;;;122928:49:0;;19798:2:1;122928:49:0;;;19780:21:1;19837:2;19817:18;;;19810:30;-1:-1:-1;;;19856:18:1;;;19849:41;19907:18;;122928:49:0;19770:161:1;122928:49:0;202398:85:::1;202412:7;202421:9;202432:5;202439:4;202445:10;202457:14;202473:9;202398:13;:85::i;:::-;202137:354:::0;;;;;;;:::o;117027:120::-;117092:11;85112:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85112:16:0;:30;;117123:16;85023:127;94540:244;94615:7;94651:41;94438:10;:17;;94350:113;94651:41;94643:5;:49;94635:106;;;;-1:-1:-1;;;94635:106:0;;34591:2:1;94635:106:0;;;34573:21:1;34630:2;34610:18;;;34603:30;34669:34;34649:18;;;34642:62;34740:14;34720:18;;;34713:42;34772:19;;94635:106:0;34563:234:1;94635:106:0;94759:10;94770:5;94759:17;;;;;;;;:::i;:::-;;;;;;;;;94752:24;;94540:244;;;:::o;79753:239::-;79825:7;79861:16;;;:7;:16;;;;;;-1:-1:-1;;;;;79861:16:0;79896:19;79888:73;;;;-1:-1:-1;;;79888:73:0;;27565:2:1;79888:73:0;;;27547:21:1;27604:2;27584:18;;;27577:30;27643:34;27623:18;;;27616:62;27714:11;27694:18;;;27687:39;27743:19;;79888:73:0;27537:231:1;190045:926:0;190311:14;190327:15;32579:1;33175:7;;:19;;33167:63;;;;-1:-1:-1;;;33167:63:0;;36109:2:1;33167:63:0;;;36091:21:1;36148:2;36128:18;;;36121:30;36187:33;36167:18;;;36160:61;36238:18;;33167:63:0;36081:181:1;33167:63:0;32579:1;33308:7;:18;190382:13:::1;::::0;-1:-1:-1;;;190382:13:0;::::1;;;190374:59;;;::::0;-1:-1:-1;;;190374:59:0;;22981:2:1;190374:59:0::1;::::0;::::1;22963:21:1::0;23020:2;23000:18;;;22993:30;23059:34;23039:18;;;23032:62;-1:-1:-1;;;23110:18:1;;;23103:31;23151:19;;190374:59:0::1;22953:223:1::0;190374:59:0::1;190465:9;::::0;190444:92:::1;::::0;-1:-1:-1;;;190444:92:0;;-1:-1:-1;;;;;13357:15:1;;;190444:92:0::1;::::0;::::1;13339:34:1::0;190503:4:0::1;13389:18:1::0;;;13382:43;13441:18;;;13434:34;;;13484:18;;;13477:34;;;13560:4;13548:17;;13527:19;;;13520:46;13582:19;;;13575:35;;;13626:19;;;13619:35;;;190465:9:0;;::::1;::::0;190444:39:::1;::::0;13250:19:1;;190444:92:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;190570:19;190633:48;190642:6;190650:12;190664:9;190675:5;190633:8;:48::i;:::-;190600:81:::0;;-1:-1:-1;190600:81:0;-1:-1:-1;190600:81:0;-1:-1:-1;190765:15:0;;190762:94:::1;;190816:9;::::0;190839:3:::1;::::0;190782:74:::1;::::0;-1:-1:-1;;;;;190816:9:0;;::::1;::::0;190828;;190839:3:::1;190844:11:::0;190782:26:::1;:74::i;:::-;190867:96;190901:9;;;;;;;;;-1:-1:-1::0;;;;;190901:9:0::1;190913;190924:16;;;;;;;;;-1:-1:-1::0;;;;;190924:16:0::1;190951:11;190942:6;:20;;;;:::i;190867:96::-;-1:-1:-1::0;32535:1:0;33487:7;:22;190045:926;;;;-1:-1:-1;190045:926:0;-1:-1:-1;;;;;;;190045:926:0:o;108026:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;79483:208::-;79555:7;-1:-1:-1;;;;;79583:19:0;;79575:74;;;;-1:-1:-1;;;79575:74:0;;27154:2:1;79575:74:0;;;27136:21:1;27193:2;27173:18;;;27166:30;27232:34;27212:18;;;27205:62;27303:12;27283:18;;;27276:40;27333:19;;79575:74:0;27126:232:1;79575:74:0;-1:-1:-1;;;;;;79667:16:0;;;;;:9;:16;;;;;;;79483:208::o;185023:779::-;185151:8;;185113:17;;185151:8;;185143:36;;;;-1:-1:-1;;;185143:36:0;;20138:2:1;185143:36:0;;;20120:21:1;20177:2;20157:18;;;20150:30;-1:-1:-1;;;20196:18:1;;;20189:45;20251:18;;185143:36:0;20110:165:1;185143:36:0;185216:18;185237:11;:9;:11::i;:::-;185216:32;;185280:1;185267:10;:14;185259:37;;;;-1:-1:-1;;;185259:37:0;;28319:2:1;185259:37:0;;;28301:21:1;28358:2;28338:18;;;28331:30;-1:-1:-1;;;28377:18:1;;;28370:40;28427:18;;185259:37:0;28291:160:1;185259:37:0;185340:10;185319:18;185329:8;185319:7;:18;:::i;:::-;:31;;;;:::i;:::-;185444:16;;185307:43;;-1:-1:-1;185444:16:0;;;;;185440:266;;;185538:9;185526:8;;:21;;185518:50;;;;-1:-1:-1;;;185518:50:0;;26042:2:1;185518:50:0;;;26024:21:1;26081:2;26061:18;;;26054:30;-1:-1:-1;;;26100:18:1;;;26093:46;26156:18;;185518:50:0;26014:166:1;185518:50:0;185440:266;;;185665:8;185653;;:20;;185645:49;;;;-1:-1:-1;;;185645:49:0;;26042:2:1;185645:49:0;;;26024:21:1;26081:2;26061:18;;;26054:30;-1:-1:-1;;;26100:18:1;;;26093:46;26156:18;;185645:49:0;26014:166:1;185645:49:0;185737:9;;185724;:22;;185716:49;;;;-1:-1:-1;;;185716:49:0;;29762:2:1;185716:49:0;;;29744:21:1;29801:2;29781:18;;;29774:30;-1:-1:-1;;;29820:18:1;;;29813:44;29874:18;;185716:49:0;29734:164:1;185716:49:0;185778:16;185023:779;;;;:::o;183499:536::-;44065:13;;;;;;;;:30;;-1:-1:-1;44083:12:0;;;;44082:13;44065:30;44057:89;;;;-1:-1:-1;;;44057:89:0;;29003:2:1;44057:89:0;;;28985:21:1;29042:2;29022:18;;;29015:30;29081:34;29061:18;;;29054:62;-1:-1:-1;;;29132:18:1;;;29125:44;29186:19;;44057:89:0;28975:236:1;44057:89:0;44182:13;;;;;;;44181:14;44206:101;;;;44257:4;44241:20;;-1:-1:-1;;44276:19:0;;;;;44206:101;183815:30:::1;183833:11;183815:17;:30::i;:::-;183856:28;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;183856:28:0::1;::::0;::::1;::::0;183895:36:::1;183917:5:::0;183856:28;183895:21:::1;:36::i;:::-;183942:85;183956:7;183965:9;183976:5;183983:4;183989:10;184001:14;184017:9;183942:13;:85::i;:::-;183804:231;44337:14:::0;44333:68;;;44368:13;:21;;-1:-1:-1;;44368:21:0;;;44333:68;44046:362;183499:536;;;;;;;;;:::o;110506:1277::-;85088:4;85112:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85112:16:0;110695:56;;;;-1:-1:-1;;;110695:56:0;;25338:2:1;110695:56:0;;;25320:21:1;25377:2;25357:18;;;25350:30;25416:29;25396:18;;;25389:57;25463:18;;110695:56:0;25310:177:1;110695:56:0;110844:8;110825:15;:27;;110817:54;;;;-1:-1:-1;;;110817:54:0;;35004:2:1;110817:54:0;;;34986:21:1;35043:2;35023:18;;;35016:30;35082:16;35062:18;;;35055:44;35116:18;;110817:54:0;34976:164:1;110817:54:0;110884:13;110900:16;;;:7;:16;;;;;:18;;;110884:13;110900:18;;;:::i;:::-;;;;;110884:34;;110951:14;111081:18;:16;:18::i;:::-;111132:63;;;111143:16;111132:63;;;14973:25:1;-1:-1:-1;;;;;15034:55:1;;15014:18;;;15007:83;;;;15106:18;;;15099:34;;;15149:18;;;15142:34;;;15192:19;;;15185:35;;;14945:19;;111132:63:0;;;;;;;;;;;;111122:74;;;;;;111009:206;;;;;;;;-1:-1:-1;;;11136:27:1;;11188:1;11179:11;;11172:27;;;;11224:2;11215:12;;11208:28;11261:2;11252:12;;11126:144;111009:206:0;;;;;;;;;;;;;110981:249;;;;;;110951:279;;111241:13;111257:16;111265:7;111257;:16::i;:::-;111241:32;;111303:5;-1:-1:-1;;;;;111292:16:0;:7;-1:-1:-1;;;;;111292:16:0;;;111284:50;;;;-1:-1:-1;;;111284:50:0;;24168:2:1;111284:50:0;;;24150:21:1;24207:2;24187:18;;;24180:30;24246:23;24226:18;;;24219:51;24287:18;;111284:50:0;24140:171:1;111284:50:0;17597:20;;17645:8;111347:390;;111442:25;;;;;;9962:19:1;;;9997:12;;;9990:28;;;10074:3;10052:16;;;10070:13;10048:36;10034:12;;;10027:58;111442:25:0;;;;;;;;;10101:12:1;;;111442:25:0;;;;-1:-1:-1;;;111401:67:0;;;-1:-1:-1;;;;;111401:32:0;;;;;:67;;111434:6;;111401:67;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:81;;;111472:10;111401:81;;;111393:106;;;;-1:-1:-1;;;111393:106:0;;30814:2:1;111393:106:0;;;30796:21:1;30853:2;30833:18;;;30826:30;-1:-1:-1;;;30872:18:1;;;30865:42;30924:18;;111393:106:0;30786:162:1;111393:106:0;111347:390;;;111559:26;;;111532:24;111559:26;;;;;;;;;16268:25:1;;;16341:4;16329:17;;16309:18;;;16302:45;;;;16363:18;;;16356:34;;;16406:18;;;16399:34;;;111559:26:0;;16240:19:1;;111559:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;111559:26:0;;-1:-1:-1;;111559:26:0;;;-1:-1:-1;;;;;;;111608:30:0;;111600:60;;;;-1:-1:-1;;;111600:60:0;;17222:2:1;111600:60:0;;;17204:21:1;17261:2;17241:18;;;17234:30;17300:19;17280:18;;;17273:47;17337:18;;111600:60:0;17194:167:1;111600:60:0;111703:5;-1:-1:-1;;;;;111683:25:0;:16;-1:-1:-1;;;;;111683:25:0;;111675:50;;;;-1:-1:-1;;;111675:50:0;;30814:2:1;111675:50:0;;;30796:21:1;30853:2;30833:18;;;30826:30;-1:-1:-1;;;30872:18:1;;;30865:42;30924:18;;111675:50:0;30786:162:1;111675:50:0;111517:220;111347:390;111749:26;111758:7;111767;111749:8;:26::i;:::-;110684:1099;;;110506:1277;;;;;;:::o;198696:106::-;122888:7;;-1:-1:-1;;;122888:7:0;;;;122887:8;122879:38;;;;-1:-1:-1;;;122879:38:0;;21181:2:1;122879:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;122879:38:0;21153:167:1;122879:38:0;122950:11;;-1:-1:-1;;;;;122950:11:0;122936:10;:25;122928:49;;;;-1:-1:-1;;;122928:49:0;;19798:2:1;122928:49:0;;;19780:21:1;19837:2;19817:18;;;19810:30;-1:-1:-1;;;19856:18:1;;;19849:41;19907:18;;122928:49:0;19770:161:1;122928:49:0;198757:6:::1;:13:::0;;-1:-1:-1;;198757:13:0::1;::::0;::::1;::::0;;198786:8:::1;::::0;::::1;::::0;198757:13;;198786:8:::1;198696:106::o:0;186110:726::-;186237:8;;186200:16;;186237:8;;186229:36;;;;-1:-1:-1;;;186229:36:0;;20138:2:1;186229:36:0;;;20120:21:1;20177:2;20157:18;;;20150:30;-1:-1:-1;;;20196:18:1;;;20189:45;20251:18;;186229:36:0;20110:165:1;186229:36:0;186302:18;186323:11;:9;:11::i;:::-;186302:32;;186366:1;186353:10;:14;186345:37;;;;-1:-1:-1;;;186345:37:0;;28319:2:1;186345:37:0;;;28301:21:1;28358:2;28338:18;;;28331:30;-1:-1:-1;;;28377:18:1;;;28370:40;28427:18;;186345:37:0;28291:160:1;186345:37:0;186429:7;186404:22;186416:10;186404:9;:22;:::i;:::-;:32;;;;:::i;:::-;186507:16;;186393:43;;-1:-1:-1;186507:16:0;;;;;186503:266;;;186601:9;186589:8;;:21;;186581:50;;;;-1:-1:-1;;;186581:50:0;;26042:2:1;186581:50:0;;;26024:21:1;26081:2;26061:18;;;26054:30;-1:-1:-1;;;26100:18:1;;;26093:46;26156:18;;186581:50:0;26014:166:1;186581:50:0;186503:266;;;186728:8;186716;;:20;;186708:49;;;;-1:-1:-1;;;186708:49:0;;26042:2:1;186708:49:0;;;26024:21:1;26081:2;26061:18;;;26054:30;-1:-1:-1;;;26100:18:1;;;26093:46;26156:18;;186708:49:0;26014:166:1;186708:49:0;186800:9;;186787;:22;;186779:49;;;;-1:-1:-1;;;186779:49:0;;29762:2:1;186779:49:0;;;29744:21:1;29801:2;29781:18;;;29774:30;-1:-1:-1;;;29820:18:1;;;29813:44;29874:18;;186779:49:0;29734:164:1;191325:875:0;32579:1;33175:7;;:19;;33167:63;;;;-1:-1:-1;;;33167:63:0;;36109:2:1;33167:63:0;;;36091:21:1;36148:2;36128:18;;;36121:30;36187:33;36167:18;;;36160:61;36238:18;;33167:63:0;36081:181:1;33167:63:0;32579:1;33308:7;:18;191408:6;114399:16:::1;191408:6:::0;85088:4;85112:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85112:16:0;:30;;;85023:127;114399:16:::1;114391:56;;;::::0;-1:-1:-1;;;114391:56:0;;25338:2:1;114391:56:0::1;::::0;::::1;25320:21:1::0;25377:2;25357:18;;;25350:30;25416:29;25396:18;;;25389:57;25463:18;;114391:56:0::1;25310:177:1::0;114391:56:0::1;191454:38:::2;191473:10;191485:6;191454:18;:38::i;:::-;191446:58;;;::::0;-1:-1:-1;;;191446:58:0;;33480:2:1;191446:58:0::2;::::0;::::2;33462:21:1::0;33519:1;33499:18;;;33492:29;33557:9;33537:18;;;33530:37;33584:18;;191446:58:0::2;33452:156:1::0;191446:58:0::2;191557:16;191576:13:::0;;;:5:::2;:13;::::0;;;;;;;191557:32;;::::2;::::0;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;;::::2;::::0;;;;::::2;::::0;::::2;::::0;;;;;;;;::::2;;::::0;::::2;::::0;;::::2;::::0;;;;;;;::::2;;::::0;;;;;191625::::2;191582:6:::0;191625:24:::2;:32::i;:::-;191600:57;;191706:14;191668:5;:13;191674:6;191668:13;;;;;;;;;;;:34;;;:52;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;191873:21:0::2;::::0;::::2;::::0;191853:17:::2;::::0;::::2;::::0;:41:::2;::::0;191873:21;191853:41:::2;:::i;:::-;191835:59;;:15;:59;191831:140;;;191911:13;191917:6;191911:5;:13::i;:::-;191946;::::0;;;:5:::2;:13;::::0;;;;191939:20;;;::::2;::::0;::::2;::::0;;;::::2;::::0;::::2;::::0;;;;::::2;;::::0;;-1:-1:-1;;191939:20:0;;;191831:140:::2;191986:46;::::0;;192005:10:::2;13839:74:1::0;;13944:2;13929:18;;13922:34;;;191997:6:0;;191986:46:::2;::::0;13812:18:1;191986:46:0::2;;;;;;;192156:6;::::0;192126:66:::2;::::0;-1:-1:-1;;;;;192156:6:0::2;192165:10;192177:14:::0;192126:22:::2;:66::i;:::-;-1:-1:-1::0;;32535:1:0;33487:7;:22;-1:-1:-1;;191325:875:0:o;80228:104::-;80284:13;80317:7;80310:14;;;;;:::i;81922:295::-;-1:-1:-1;;;;;82025:24:0;;73830:10;82025:24;;82017:62;;;;-1:-1:-1;;;82017:62:0;;22281:2:1;82017:62:0;;;22263:21:1;22320:2;22300:18;;;22293:30;22359:27;22339:18;;;22332:55;22404:18;;82017:62:0;22253:175:1;82017:62:0;73830:10;82092:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;82092:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;82092:53:0;;;;;;;;;;82161:48;;14480:41:1;;;82092:42:0;;73830:10;82161:48;;14453:18:1;82161:48:0;;;;;;;81922:295;;:::o;109126:125::-;109200:43;109219:10;109231:2;109235:7;109200:18;:43::i;125636:467::-;122888:7;;-1:-1:-1;;;122888:7:0;;;;122887:8;122879:38;;;;-1:-1:-1;;;122879:38:0;;21181:2:1;122879:38:0;;;21163:21:1;21220:2;21200:18;;;21193:30;-1:-1:-1;;;21239:18:1;;;21232:47;21296:18;;122879:38:0;21153:167:1;122879:38:0;122950:11;;-1:-1:-1;;;;;122950:11:0;122936:10;:25;122928:49;;;;-1:-1:-1;;;122928:49:0;;19798:2:1;122928:49:0;;;19780:21:1;19837:2;19817:18;;;19810:30;-1:-1:-1;;;19856:18:1;;;19849:41;19907:18;;122928:49:0;19770:161:1;122928:49:0;125706:7:::1;:14:::0;;::::1;125811:65:::0;;-1:-1:-1;;;;;;;;;;;125811:65:0;;::::1;::::0;::::1;::::0;;;-1:-1:-1;;125887:72:0;;;;;;;;125975:86:::1;::::0;;125997:10:::1;11951:34:1::0;;12016:2;12001:18;;11994:43;;;;125975:86:0::1;::::0;11863:18:1;125975:86:0::1;;;;;;;126077:18;::::0;::::1;::::0;;;::::1;125636:467::o:0;83185:328::-;83360:41;73830:10;83393:7;83360:18;:41::i;:::-;83352:103;;;;-1:-1:-1;;;83352:103:0;;33815:2:1;83352:103:0;;;33797:21:1;33854:2;33834:18;;;33827:30;33893:34;33873:18;;;33866:62;33964:19;33944:18;;;33937:47;34001:19;;83352:103:0;33787:239:1;83352:103:0;83466:39;83480:4;83486:2;83490:7;83499:5;83466:13;:39::i;:::-;83185:328;;;;:::o;113241:235::-;113338:13;113320:7;114399:16;114407:7;85088:4;85112:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85112:16:0;:30;;;85023:127;114399:16;114391:56;;;;-1:-1:-1;;;114391:56:0;;25338:2:1;114391:56:0;;;25320:21:1;25377:2;25357:18;;;25350:30;25416:29;25396:18;;;25389:57;25463:18;;114391:56:0;25310:177:1;114391:56:0;113364:22:::1;113389:7;113364:32;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113438:8;113448:18;:7;:16;:18::i;:::-;113421:46;;;;;;;;;:::i;:::-;;;;;;;;;;;;;113407:61;;;114458:1;113241:235:::0;;;;:::o;184373:345::-;184424:14;184506:21;184548:15;;184530;:33;;;;:::i;:::-;184506:57;;184583:42;184600:9;;184611:13;184583:16;:42::i;:::-;184574:51;;184649:12;;184640:6;:21;184636:75;;;184687:12;;184678:21;;184636:75;184440:278;184373:345;:::o;192859:2325::-;193007:14;;;-1:-1:-1;;;;;193080:23:0;;193072:51;;;;-1:-1:-1;;;193072:51:0;;27975:2:1;193072:51:0;;;27957:21:1;28014:2;27994:18;;;27987:30;28053:17;28033:18;;;28026:45;28088:18;;193072:51:0;27947:165:1;193072:51:0;193143:6;;;;;;;193142:7;193134:47;;;;-1:-1:-1;;;193134:47:0;;17911:2:1;193134:47:0;;;17893:21:1;17950:2;17930:18;;;17923:30;17989:29;17969:18;;;17962:57;18036:18;;193134:47:0;17883:177:1;193134:47:0;193202:8;;;;193194:36;;;;-1:-1:-1;;;193194:36:0;;20138:2:1;193194:36:0;;;20120:21:1;20177:2;20157:18;;;20150:30;-1:-1:-1;;;20196:18:1;;;20189:45;20251:18;;193194:36:0;20110:165:1;193194:36:0;193331:9;;;;;;;193304:15;:37;;193296:70;;;;-1:-1:-1;;;193296:70:0;;18267:2:1;193296:70:0;;;18249:21:1;18306:2;18286:18;;;18279:30;18345:22;18325:18;;;18318:50;18385:18;;193296:70:0;18239:170:1;193296:70:0;193467:7;;;;;;;193440:15;:35;;193432:62;;;;-1:-1:-1;;;193432:62:0;;17568:2:1;193432:62:0;;;17550:21:1;17607:2;17587:18;;;17580:30;17646:16;17626:18;;;17619:44;17680:18;;193432:62:0;17540:164:1;193432:62:0;193516:29;193538:6;193516:21;:29::i;:::-;193618:16;;193507:38;;-1:-1:-1;193618:16:0;;;;;193614:401;;;193706:8;;193737:13;;;;193729:42;;;;-1:-1:-1;;;193729:42:0;;26042:2:1;193729:42:0;;;26024:21:1;26081:2;26061:18;;;26054:30;-1:-1:-1;;;26100:18:1;;;26093:46;26156:18;;193729:42:0;26014:166:1;193729:42:0;193797:12;193803:6;193797:3;:12;:::i;:::-;193786:8;:23;-1:-1:-1;193614:401:0;;;193900:8;;193931:13;;;;193923:42;;;;-1:-1:-1;;;193923:42:0;;26042:2:1;193923:42:0;;;26024:21:1;26081:2;26061:18;;;26054:30;-1:-1:-1;;;26100:18:1;;;26093:46;26156:18;;193923:42:0;26014:166:1;193923:42:0;193991:12;193997:6;193991:3;:12;:::i;:::-;193980:8;:23;-1:-1:-1;193614:401:0;194043:9;;194033:6;:19;;194025:46;;;;-1:-1:-1;;;194025:46:0;;29762:2:1;194025:46:0;;;29744:21:1;29801:2;29781:18;;;29774:30;-1:-1:-1;;;29820:18:1;;;29813:44;29874:18;;194025:46:0;29734:164:1;194025:46:0;194106:6;194090:12;:22;;194082:54;;;;-1:-1:-1;;;194082:54:0;;25694:2:1;194082:54:0;;;25676:21:1;25733:2;25713:18;;;25706:30;25772:21;25752:18;;;25745:49;25811:18;;194082:54:0;25666:169:1;194082:54:0;194190:8;;194174:44;;-1:-1:-1;;;194174:44:0;;;;;14678:25:1;;;-1:-1:-1;;;;;194190:8:0;;;;194174:36;;14651:18:1;;194174:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;194261:5;194258:811;;;194362:8;;194418:17;;-1:-1:-1;;;;;194362:8:0;;;;194352:30;;194383:9;;194394:6;;194402:33;;-1:-1:-1;;;194418:17:0;;;;194402:15;:33;:::i;:::-;194352:84;;-1:-1:-1;;;;;;194352:84:0;;;;;;;-1:-1:-1;;;;;14187:55:1;;;194352:84:0;;;14169:74:1;14259:18;;;14252:34;;;;14302:18;;;14295:34;14142:18;;194352:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;194342:94;;194258:811;;;194510:8;;194508:10;;;;;:::i;:::-;;;;;-1:-1:-1;194508:10:0;-1:-1:-1;194588:19:0;194610:25;194619:15;194610:8;:25::i;:::-;194669:17;;194716:223;;;;;;;;;;;194648:18;194716:223;;;;;;;;;;;;;194669:17;194716:223;;;;;;;;;-1:-1:-1;;;194669:17:0;;;;;194716:223;;;;;;194699:14;;;:5;:14;;;;;;;:240;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;194699:240:0;;;;;;;;;;;;;;;;;;194588:47;;-1:-1:-1;194952:25:0;194958:9;194705:7;194952:5;:25::i;:::-;194995:62;;;38346:25:1;;;38402:2;38387:18;;38380:34;;;38433:12;38481:15;;;38461:18;;;38454:43;38533:15;;38528:2;38513:18;;38506:43;194995:62:0;;195006:7;;194995:62;;;;;;38333:3:1;194995:62:0;;;194454:615;;194258:811;180920:5;195104:14;;195095:6;:23;;;;:::i;:::-;:33;;;;:::i;:::-;195081:47;;192859:2325;;;;;;;;:::o;18596:317::-;18711:6;18686:21;:31;;18678:73;;;;-1:-1:-1;;;18678:73:0;;23810:2:1;18678:73:0;;;23792:21:1;23849:2;23829:18;;;23822:30;23888:31;23868:18;;;23861:59;23937:18;;18678:73:0;23782:179:1;18678:73:0;18765:12;18783:9;-1:-1:-1;;;;;18783:14:0;18805:6;18783:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18764:52;;;18835:7;18827:78;;;;-1:-1:-1;;;18827:78:0;;23383:2:1;18827:78:0;;;23365:21:1;23422:2;23402:18;;;23395:30;23461:34;23441:18;;;23434:62;23532:28;23512:18;;;23505:56;23578:19;;18827:78:0;23355:248:1;79070:349:0;79194:4;-1:-1:-1;;;;;;79231:51:0;;-1:-1:-1;;;79231:51:0;;:127;;-1:-1:-1;;;;;;;79299:59:0;;-1:-1:-1;;;79299:59:0;79231:127;:180;;;-1:-1:-1;;;;;;;;;;77249:51:0;;;79375:36;77140:168;89038:185;89113:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;89113:29:0;-1:-1:-1;;;;;89113:29:0;;;;;;;;:24;;89167:34;89113:24;89167:25;:34::i;:::-;-1:-1:-1;;;;;89158:57:0;;;;;;;;;;;89038:185;;:::o;25458:248::-;25629:68;;-1:-1:-1;;;;;12329:15:1;;;25629:68:0;;;12311:34:1;12381:15;;12361:18;;;12354:43;12413:18;;;12406:34;;;25602:96:0;;25622:5;;-1:-1:-1;;;25652:27:0;12223:18:1;;25629:68:0;;;;-1:-1:-1;;25629:68:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25629:68:0;;;;;;;;;;25602:19;:96::i;85317:359::-;85410:4;85112:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85112:16:0;85427:73;;;;-1:-1:-1;;;85427:73:0;;24925:2:1;85427:73:0;;;24907:21:1;24964:2;24944:18;;;24937:30;25003:34;24983:18;;;24976:62;-1:-1:-1;;;25054:18:1;;;25047:42;25106:19;;85427:73:0;24897:234:1;85427:73:0;85511:13;85527:34;85553:7;85527:25;:34::i;:::-;85511:50;;85591:5;-1:-1:-1;;;;;85580:16:0;:7;-1:-1:-1;;;;;85580:16:0;;:51;;;;85624:7;-1:-1:-1;;;;;85600:31:0;:20;85612:7;85600:11;:20::i;:::-;-1:-1:-1;;;;;85600:31:0;;85580:51;:87;;;-1:-1:-1;;;;;;82409:25:0;;;82385:4;82409:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;85635:32;85572:96;85317:359;-1:-1:-1;;;;85317:359:0:o;115994:224::-;116127:34;116143:4;116149:2;116153:7;116127:15;:34::i;47196:162::-;47249:7;47276:74;45929:95;47310:17;48778:12;;;48693:105;47310:17;49133:15;;47547:73;;;;;;15490:25:1;;;15531:18;;;15524:34;;;15574:18;;;15567:34;;;47591:13:0;15617:18:1;;;15610:34;47614:4:0;15660:19:1;;;15653:84;47510:7:0;;15462:19:1;;47547:73:0;;;;;;;;;;;;47537:84;;;;;;47530:91;;47366:263;;;;;;203038:948;-1:-1:-1;;;;;203284:23:0;;203276:55;;;;-1:-1:-1;;;203276:55:0;;30105:2:1;203276:55:0;;;30087:21:1;30144:2;30124:18;;;30117:30;30183:21;30163:18;;;30156:49;30222:18;;203276:55:0;30077:169:1;203276:55:0;-1:-1:-1;;;;;203350:25:0;;203342:59;;;;-1:-1:-1;;;203342:59:0;;36469:2:1;203342:59:0;;;36451:21:1;36508:2;36488:18;;;36481:30;36547:23;36527:18;;;36520:51;36588:18;;203342:59:0;36441:171:1;203342:59:0;-1:-1:-1;;;;;203420:21:0;;203412:51;;;;-1:-1:-1;;;203412:51:0;;22635:2:1;203412:51:0;;;22617:21:1;22674:2;22654:18;;;22647:30;22713:19;22693:18;;;22686:47;22750:18;;203412:51:0;22607:167:1;203412:51:0;-1:-1:-1;;;;;203482:20:0;;203474:49;;;;-1:-1:-1;;;203474:49:0;;28658:2:1;203474:49:0;;;28640:21:1;28697:2;28677:18;;;28670:30;28736:18;28716;;;28709:46;28772:18;;203474:49:0;28630:166:1;203474:49:0;-1:-1:-1;;;;;203542:26:0;;203534:61;;;;-1:-1:-1;;;203534:61:0;;18616:2:1;203534:61:0;;;18598:21:1;18655:2;18635:18;;;18628:30;18694:24;18674:18;;;18667:52;18736:18;;203534:61:0;18588:172:1;203534:61:0;-1:-1:-1;;;;;203614:25:0;;203606:60;;;;-1:-1:-1;;;203606:60:0;;35347:2:1;203606:60:0;;;35329:21:1;35386:2;35366:18;;;35359:30;35425:24;35405:18;;;35398:52;35467:18;;203606:60:0;35319:172:1;203606:60:0;203677:6;:16;;-1:-1:-1;;;;;203677:16:0;;;-1:-1:-1;;;;;;203677:16:0;;;;;;;;203704:8;:20;;;;;;;;;;;;;;203735:52;;-1:-1:-1;;;203735:52:0;;;;;13839:74:1;;;;-1:-1:-1;;13929:18:1;;;13922:34;203735:22:0;;13812:18:1;;203735:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;203798:16:0;:24;;-1:-1:-1;;;;;203798:24:0;;;-1:-1:-1;;;;;;203798:24:0;;;;;;;203833:3;:10;;;;;;;;;;;203854:9;:22;;203887:30;;;-1:-1:-1;;;203887:30:0;-1:-1:-1;;203887:30:0;;;203854:22;;;203887:30;;;;203928:8;:20;;;;;;;;;;;;;;;203964:14;;;;203798:16;;203964:14;203038:948;;;;;;;:::o;122387:257::-;44065:13;;;;;;;;:30;;-1:-1:-1;44083:12:0;;;;44082:13;44065:30;44057:89;;;;-1:-1:-1;;;44057:89:0;;29003:2:1;44057:89:0;;;28985:21:1;29042:2;29022:18;;;29015:30;29081:34;29061:18;;;29054:62;-1:-1:-1;;;29132:18:1;;;29125:44;29186:19;;44057:89:0;28975:236:1;44057:89:0;44182:13;;;;;;;44181:14;44206:101;;;;44257:4;44241:20;;-1:-1:-1;;44276:19:0;;;;;44206:101;-1:-1:-1;;;;;122475:27:0;::::1;122467:63;;;::::0;-1:-1:-1;;;122467:63:0;;16870:2:1;122467:63:0::1;::::0;::::1;16852:21:1::0;16909:2;16889:18;;;16882:30;16948:25;16928:18;;;16921:53;16991:18;;122467:63:0::1;16842:173:1::0;122467:63:0::1;122541:11;:25:::0;;-1:-1:-1;;;;;;122541:25:0::1;-1:-1:-1::0;;;;;122541:25:0;::::1;;::::0;;122577:18:::1;:33:::0;;-1:-1:-1;;122621:15:0;;;44333:68;;;;44368:13;:21;;-1:-1:-1;;44368:21:0;;;44046:362;122387:257;:::o;108277:231::-;44065:13;;;;;;;;:30;;-1:-1:-1;44083:12:0;;;;44082:13;44065:30;44057:89;;;;-1:-1:-1;;;44057:89:0;;29003:2:1;44057:89:0;;;28985:21:1;29042:2;29022:18;;;29015:30;29081:34;29061:18;;;29054:62;-1:-1:-1;;;29132:18:1;;;29125:44;29186:19;;44057:89:0;28975:236:1;44057:89:0;44182:13;;;;;;;44181:14;44206:101;;;;44257:4;44241:20;;-1:-1:-1;;44276:19:0;;;;;44206:101;108382:27:::1;108396:4;108402:6;108382:13;:27::i;:::-;108420:35;:33;:35::i;:::-;108466:34;108490:4;108466:34;;;;;;;;;;;;;-1:-1:-1::0;;;108466:34:0::1;;::::0;:23:::1;:34::i;:::-;44337:14:::0;44333:68;;;44368:13;:21;;-1:-1:-1;;44368:21:0;;;44046:362;108277:231;;:::o;196685:780::-;196758:22;196812:13;;;:5;:13;;;;;;;;196793:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;196870:46;;196863:54;;;;:::i;:::-;197069:4;:21;;;197049:4;:17;;;:41;;;;:::i;:::-;197030:60;;:15;:60;197026:432;;197277:4;:25;;;197251:4;:21;;;197185:87;;197227:4;:17;;;197209:35;;:15;:35;;;;:::i;:::-;197187:17;;:59;;;;:::i;:::-;197185:87;;;;:::i;:::-;197183:119;;;;:::i;:::-;197166:136;;197026:432;;;197421:25;;;;197401:17;;:45;;197421:25;197401:45;:::i;:::-;197384:62;196685:780;-1:-1:-1;;;196685:780:0:o;115541:198::-;115610:13;115626:16;115634:7;115626;:16::i;:::-;115610:32;;115653:20;115665:7;115653:11;:20::i;25239:211::-;25383:58;;-1:-1:-1;;;;;13857:55:1;;25383:58:0;;;13839:74:1;13929:18;;;13922:34;;;25356:86:0;;25376:5;;-1:-1:-1;;;25406:23:0;13812:18:1;;25383:58:0;13794:168:1;84395:315:0;84552:28;84562:4;84568:2;84572:7;84552:9;:28::i;:::-;84599:48;84622:4;84628:2;84632:7;84641:5;84599:22;:48::i;:::-;84591:111;;;;-1:-1:-1;;;84591:111:0;;19379:2:1;84591:111:0;;;19361:21:1;19418:2;19398:18;;;19391:30;19457:34;19437:18;;;19430:62;19528:20;19508:18;;;19501:48;19566:19;;84591:111:0;19351:240:1;100241:723:0;100297:13;100518:10;100514:53;;-1:-1:-1;;100545:10:0;;;;;;;;;;;;-1:-1:-1;;;100545:10:0;;;;;100241:723::o;100514:53::-;100592:5;100577:12;100633:78;100640:9;;100633:78;;100666:8;;;;:::i;:::-;;-1:-1:-1;100689:10:0;;-1:-1:-1;100697:2:0;100689:10;;:::i;:::-;;;100633:78;;;100721:19;100753:6;100743:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;100743:17:0;;100721:39;;100771:154;100778:10;;100771:154;;100805:11;100815:1;100805:11;;:::i;:::-;;-1:-1:-1;100874:10:0;100882:2;100874:5;:10;:::i;:::-;100861:24;;:2;:24;:::i;:::-;100848:39;;100831:6;100838;100831:14;;;;;;;;:::i;:::-;;;;:56;;;;;;;;;;-1:-1:-1;100902:11:0;100911:2;100902:11;;:::i;:::-;;;100771:154;;197729:226;197811:16;197872:8;;197865:4;:15;;;;:::i;:::-;197935:8;;197851:30;;;;;-1:-1:-1;197946:1:0;;197916:15;197935:8;197916:4;:15;:::i;:::-;197904:28;;:8;:28;:::i;:::-;:39;;;;:::i;:::-;:43;;;;:::i;:::-;197892:55;;;;:::i;195570:767::-;195642:17;195760:21;195802:15;;195784;:33;;;;:::i;:::-;195760:57;;195828:14;195845:42;195862:9;;195873:13;195845:16;:42::i;:::-;195828:59;;195910:12;;195901:6;:21;195898:47;;;-1:-1:-1;195933:12:0;;195898:47;195964:11;195956:37;;;;-1:-1:-1;;;195956:37:0;;26387:2:1;195956:37:0;;;26369:21:1;26426:2;26406:18;;;26399:30;-1:-1:-1;;;26445:18:1;;;26438:43;26498:18;;195956:37:0;26359:163:1;195956:37:0;196077:15;196059;:33;196176:6;196149:23;196159:13;196149:7;:23;:::i;:::-;196148:34;;;;:::i;:::-;196314:13;;196136:46;;-1:-1:-1;;;;;;;;;196314:13:0;;;;;196270:32;;196290:11;196136:46;196270:32;:::i;:::-;196269:59;;;;:::i;:::-;196258:71;;:6;:71;:::i;:::-;196246:9;:83;-1:-1:-1;195570:767:0;;;-1:-1:-1;;195570:767:0:o;198254:179::-;198310:6;198345:5;198337;:13;198329:65;;;;-1:-1:-1;;;198329:65:0;;32326:2:1;198329:65:0;;;32308:21:1;32365:2;32345:18;;;32338:30;32404:34;32384:18;;;32377:62;32475:8;32455:18;;;32448:36;32501:19;;198329:65:0;32298:228:1;115259:168:0;115340:24;115352:2;115356:7;115340:11;:24::i;27812:716::-;28236:23;28262:69;28290:4;28262:69;;;;;;;;;;;;;;;;;28270:5;-1:-1:-1;;;;;28262:27:0;;;:69;;;;;:::i;:::-;28346:17;;28236:95;;-1:-1:-1;28346:21:0;28342:179;;28443:10;28432:30;;;;;;;;;;;;:::i;:::-;28424:85;;;;-1:-1:-1;;;28424:85:0;;35698:2:1;28424:85:0;;;35680:21:1;35737:2;35717:18;;;35710:30;35776:34;35756:18;;;35749:62;35847:12;35827:18;;;35820:40;35877:19;;28424:85:0;35670:232:1;88331:589:0;88501:4;-1:-1:-1;;;;;88463:42:0;:34;88489:7;88463:25;:34::i;:::-;-1:-1:-1;;;;;88463:42:0;;88455:96;;;;-1:-1:-1;;;88455:96:0;;31568:2:1;88455:96:0;;;31550:21:1;31607:2;31587:18;;;31580:30;31646:34;31626:18;;;31619:62;31717:11;31697:18;;;31690:39;31746:19;;88455:96:0;31540:231:1;88455:96:0;-1:-1:-1;;;;;88570:16:0;;88562:65;;;;-1:-1:-1;;;88562:65:0;;21876:2:1;88562:65:0;;;21858:21:1;21915:2;21895:18;;;21888:30;21954:34;21934:18;;;21927:62;-1:-1:-1;;;22005:18:1;;;21998:34;22049:19;;88562:65:0;21848:226:1;88562:65:0;88640:39;88661:4;88667:2;88671:7;88640:20;:39::i;:::-;88744:29;88761:1;88765:7;88744:8;:29::i;:::-;-1:-1:-1;;;;;88786:15:0;;;;;;:9;:15;;;;;:20;;88805:1;;88786:15;:20;;88805:1;;88786:20;:::i;:::-;;;;-1:-1:-1;;;;;;;88817:13:0;;;;;;:9;:13;;;;;:18;;88834:1;;88817:13;:18;;88834:1;;88817:18;:::i;:::-;;;;-1:-1:-1;;88846:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;88846:21:0;-1:-1:-1;;;;;88846:21:0;;;;;;;;;88885:27;;88846:16;;88885:27;;;;;;;88331:589;;;:::o;78613:219::-;44065:13;;;;;;;;:30;;-1:-1:-1;44083:12:0;;;;44082:13;44065:30;44057:89;;;;-1:-1:-1;;;44057:89:0;;29003:2:1;44057:89:0;;;28985:21:1;29042:2;29022:18;;;29015:30;29081:34;29061:18;;;29054:62;-1:-1:-1;;;29132:18:1;;;29125:44;29186:19;;44057:89:0;28975:236:1;44057:89:0;44182:13;;;;;;;44181:14;44206:101;;;;44257:4;44241:20;;-1:-1:-1;;44276:19:0;;;;;44206:101;78712:26:::1;:24;:26::i;:::-;78749:25;:23;:25::i;:::-;78785:39;78809:5;78816:7;78785:23;:39::i;93048:74::-:0;44065:13;;;;;;;;:30;;-1:-1:-1;44083:12:0;;;;44082:13;44065:30;44057:89;;;;-1:-1:-1;;;44057:89:0;;29003:2:1;44057:89:0;;;28985:21:1;29042:2;29022:18;;;29015:30;29081:34;29061:18;;;29054:62;-1:-1:-1;;;29132:18:1;;;29125:44;29186:19;;44057:89:0;28975:236:1;44057:89:0;44182:13;;;;;;;44181:14;44206:101;;;;44257:4;44241:20;;-1:-1:-1;;44276:19:0;;;;;44206:101;44337:14;44333:68;;;44368:13;:21;;-1:-1:-1;;44368:21:0;;;44333:68;44046:362;93048:74::o;46808:297::-;44065:13;;;;;;;;:30;;-1:-1:-1;44083:12:0;;;;44082:13;44065:30;44057:89;;;;-1:-1:-1;;;44057:89:0;;29003:2:1;44057:89:0;;;28985:21:1;29042:2;29022:18;;;29015:30;29081:34;29061:18;;;29054:62;-1:-1:-1;;;29132:18:1;;;29125:44;29186:19;;44057:89:0;28975:236:1;44057:89:0;44182:13;;;;;;;44181:14;44206:101;;;;44257:4;44241:20;;-1:-1:-1;;44276:19:0;;;;;44206:101;46937:22;;::::1;::::0;;::::1;::::0;;;;46994:25;;;;::::1;::::0;;;;47030:12:::1;:25:::0;;;;47066:15:::1;:31:::0;44333:68;;;;44368:13;:21;;-1:-1:-1;;44368:21:0;;;44046:362;46808:297;;:::o;87623:371::-;87683:13;87699:34;87725:7;87699:25;:34::i;:::-;87683:50;;87746:48;87767:5;87782:1;87786:7;87746:20;:48::i;:::-;87835:29;87852:1;87856:7;87835:8;:29::i;:::-;-1:-1:-1;;;;;87877:16:0;;;;;;:9;:16;;;;;:21;;87897:1;;87877:16;:21;;87897:1;;87877:21;:::i;:::-;;;;-1:-1:-1;;87916:16:0;;;;:7;:16;;;;;;87909:23;;-1:-1:-1;;;;;;87909:23:0;;;87950:36;87924:7;;87916:16;-1:-1:-1;;;;;87950:36:0;;;;;87916:16;;87950:36;87672:322;87623:371;:::o;89788:821::-;89943:4;-1:-1:-1;;;;;89964:13:0;;17597:20;17645:8;89960:642;;90000:83;;-1:-1:-1;;;90000:83:0;;-1:-1:-1;;;;;90000:47:0;;;;;:83;;73830:10;;90062:4;;90068:7;;90077:5;;90000:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90000:83:0;;;;;;;;-1:-1:-1;;90000:83:0;;;;;;;;;;;;:::i;:::-;;;89996:551;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90264:13:0;;90260:272;;90307:60;;-1:-1:-1;;;90307:60:0;;19379:2:1;90307:60:0;;;19361:21:1;19418:2;19398:18;;;19391:30;19457:34;19437:18;;;19430:62;19528:20;19508:18;;;19501:48;19566:19;;90307:60:0;19351:240:1;90260:272:0;90482:6;90476:13;90467:6;90463:2;90459:15;90452:38;89996:551;-1:-1:-1;;;;;;90134:62:0;-1:-1:-1;;;90134:62:0;;-1:-1:-1;90127:69:0;;89960:642;-1:-1:-1;90586:4:0;89788:821;;;;;;:::o;87012:382::-;-1:-1:-1;;;;;87092:16:0;;87084:61;;;;-1:-1:-1;;;87084:61:0;;30453:2:1;87084:61:0;;;30435:21:1;;;30472:18;;;30465:30;30531:34;30511:18;;;30504:62;30583:18;;87084:61:0;30425:182:1;87084:61:0;85088:4;85112:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85112:16:0;:30;87156:58;;;;-1:-1:-1;;;87156:58:0;;20482:2:1;87156:58:0;;;20464:21:1;20521:2;20501:18;;;20494:30;20560;20540:18;;;20533:58;20608:18;;87156:58:0;20454:178:1;87156:58:0;87227:45;87256:1;87260:2;87264:7;87227:20;:45::i;:::-;-1:-1:-1;;;;;87285:13:0;;;;;;:9;:13;;;;;:18;;87302:1;;87285:13;:18;;87302:1;;87285:18;:::i;:::-;;;;-1:-1:-1;;87314:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;87314:21:0;-1:-1:-1;;;;;87314:21:0;;;;;;;;87353:33;;87314:16;;;87353:33;;87314:16;;87353:33;87012:382;;:::o;20080:229::-;20217:12;20249:52;20271:6;20279:4;20285:1;20288:12;20249:21;:52::i;95397:589::-;-1:-1:-1;;;;;95603:18:0;;95599:187;;95638:40;95670:7;96824:10;:17;;96797:24;;;;:15;:24;;;;;:44;;;96852:24;;;;;;;;;;;;96720:164;95638:40;95599:187;;;95708:2;-1:-1:-1;;;;;95700:10:0;:4;-1:-1:-1;;;;;95700:10:0;;95696:90;;95727:47;95760:4;95766:7;95727:32;:47::i;:::-;-1:-1:-1;;;;;95800:16:0;;95796:183;;95833:45;95870:7;95833:36;:45::i;95796:183::-;95906:4;-1:-1:-1;;;;;95900:10:0;:2;-1:-1:-1;;;;;95900:10:0;;95896:83;;95927:40;95955:2;95959:7;95927:27;:40::i;78840:158::-;44065:13;;;;;;;;:30;;-1:-1:-1;44083:12:0;;;;44082:13;44065:30;44057:89;;;;-1:-1:-1;;;44057:89:0;;29003:2:1;44057:89:0;;;28985:21:1;29042:2;29022:18;;;29015:30;29081:34;29061:18;;;29054:62;-1:-1:-1;;;29132:18:1;;;29125:44;29186:19;;44057:89:0;28975:236:1;44057:89:0;44182:13;;;;;;;44181:14;44206:101;;;;44257:4;44241:20;;-1:-1:-1;;44276:19:0;;;;;44206:101;78949:13;;::::1;::::0;:5:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;78973:17:0;;::::1;::::0;:7:::1;::::0;:17:::1;::::0;::::1;::::0;::::1;:::i;:::-;;44337:14:::0;44333:68;;;44368:13;:21;;-1:-1:-1;;44368:21:0;;;44046:362;78840:158;;:::o;21200:510::-;21370:12;21428:5;21403:21;:30;;21395:81;;;;-1:-1:-1;;;21395:81:0;;24518:2:1;21395:81:0;;;24500:21:1;24557:2;24537:18;;;24530:30;24596:34;24576:18;;;24569:62;24667:8;24647:18;;;24640:36;24693:19;;21395:81:0;24490:228:1;21395:81:0;17597:20;;21487:60;;;;-1:-1:-1;;;21487:60:0;;34233:2:1;21487:60:0;;;34215:21:1;34272:2;34252:18;;;34245:30;34311:31;34291:18;;;34284:59;34360:18;;21487:60:0;34205:179:1;21487:60:0;21561:12;21575:23;21602:6;-1:-1:-1;;;;;21602:11:0;21621:5;21628:4;21602:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21560:73;;;;21651:51;21668:7;21677:10;21689:12;21651:16;:51::i;:::-;21644:58;21200:510;-1:-1:-1;;;;;;;21200:510:0:o;97511:999::-;97777:22;97838:1;97802:33;97830:4;97802:27;:33::i;:::-;:37;;;;:::i;:::-;97850:18;97871:26;;;:17;:26;;;;;;97777:62;;-1:-1:-1;98004:28:0;;;98000:328;;-1:-1:-1;;;;;98071:18:0;;98049:19;98071:18;;;:12;:18;;;;;;;;:34;;;;;;;;;98122:30;;;;;;:44;;;98239:30;;:17;:30;;;;;:43;;;98000:328;-1:-1:-1;98424:26:0;;;;:17;:26;;;;;;;;98417:33;;;-1:-1:-1;;;;;98468:18:0;;;;;:12;:18;;;;;:34;;;;;;;98461:41;97511:999::o;98805:1079::-;99083:10;:17;99058:22;;99083:21;;99103:1;;99083:21;:::i;:::-;99115:18;99136:24;;;:15;:24;;;;;;99509:10;:26;;99058:46;;-1:-1:-1;99136:24:0;;99058:46;;99509:26;;;;;;:::i;:::-;;;;;;;;;99487:48;;99573:11;99548:10;99559;99548:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;99653:28;;;:15;:28;;;;;;;:41;;;99825:24;;;;;99818:31;99860:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;98876:1008;;;98805:1079;:::o;96287:232::-;96372:14;96389:31;96417:2;96389:27;:31::i;:::-;-1:-1:-1;;;;;96431:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;96476:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;96287:232:0:o;23886:712::-;24036:12;24065:7;24061:530;;;-1:-1:-1;24096:10:0;24089:17;;24061:530;24210:17;;:21;24206:374;;24408:10;24402:17;24469:15;24456:10;24452:2;24448:19;24441:44;24206:374;24551:12;24544:20;;-1:-1:-1;;;24544:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:2;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:2;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:2;;;532:1;529;522:12;491:2;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;88:557;;;;;:::o;650:196::-;718:20;;-1:-1:-1;;;;;767:54:1;;757:65;;747:2;;836:1;833;826:12;747:2;699:147;;;:::o;851:128::-;916:20;;945:28;916:20;945:28;:::i;984:156::-;1050:20;;1110:4;1099:16;;1089:27;;1079:2;;1130:1;1127;1120:12;1145:186;1204:6;1257:2;1245:9;1236:7;1232:23;1228:32;1225:2;;;1273:1;1270;1263:12;1225:2;1296:29;1315:9;1296:29;:::i;1336:260::-;1404:6;1412;1465:2;1453:9;1444:7;1440:23;1436:32;1433:2;;;1481:1;1478;1471:12;1433:2;1504:29;1523:9;1504:29;:::i;:::-;1494:39;;1552:38;1586:2;1575:9;1571:18;1552:38;:::i;:::-;1542:48;;1423:173;;;;;:::o;1601:689::-;1711:6;1719;1727;1735;1743;1751;1759;1812:3;1800:9;1791:7;1787:23;1783:33;1780:2;;;1829:1;1826;1819:12;1780:2;1852:29;1871:9;1852:29;:::i;:::-;1842:39;;1900:38;1934:2;1923:9;1919:18;1900:38;:::i;:::-;1890:48;;1957:38;1991:2;1980:9;1976:18;1957:38;:::i;:::-;1947:48;;2014:38;2048:2;2037:9;2033:18;2014:38;:::i;:::-;2004:48;;2071:39;2105:3;2094:9;2090:19;2071:39;:::i;:::-;2061:49;;2160:3;2149:9;2145:19;2132:33;2174:28;2196:5;2174:28;:::i;:::-;2221:5;-1:-1:-1;2245:39:1;2279:3;2264:19;;2245:39;:::i;:::-;2235:49;;1770:520;;;;;;;;;;:::o;2295:328::-;2372:6;2380;2388;2441:2;2429:9;2420:7;2416:23;2412:32;2409:2;;;2457:1;2454;2447:12;2409:2;2480:29;2499:9;2480:29;:::i;:::-;2470:39;;2528:38;2562:2;2551:9;2547:18;2528:38;:::i;:::-;2518:48;;2613:2;2602:9;2598:18;2585:32;2575:42;;2399:224;;;;;:::o;2628:666::-;2723:6;2731;2739;2747;2800:3;2788:9;2779:7;2775:23;2771:33;2768:2;;;2817:1;2814;2807:12;2768:2;2840:29;2859:9;2840:29;:::i;:::-;2830:39;;2888:38;2922:2;2911:9;2907:18;2888:38;:::i;:::-;2878:48;;2973:2;2962:9;2958:18;2945:32;2935:42;;3028:2;3017:9;3013:18;3000:32;3055:18;3047:6;3044:30;3041:2;;;3087:1;3084;3077:12;3041:2;3110:22;;3163:4;3155:13;;3151:27;-1:-1:-1;3141:2:1;;3192:1;3189;3182:12;3141:2;3215:73;3280:7;3275:2;3262:16;3257:2;3253;3249:11;3215:73;:::i;:::-;3205:83;;;2758:536;;;;;;;:::o;3299:315::-;3364:6;3372;3425:2;3413:9;3404:7;3400:23;3396:32;3393:2;;;3441:1;3438;3431:12;3393:2;3464:29;3483:9;3464:29;:::i;:::-;3454:39;;3543:2;3532:9;3528:18;3515:32;3556:28;3578:5;3556:28;:::i;:::-;3603:5;3593:15;;;3383:231;;;;;:::o;3619:254::-;3687:6;3695;3748:2;3736:9;3727:7;3723:23;3719:32;3716:2;;;3764:1;3761;3754:12;3716:2;3787:29;3806:9;3787:29;:::i;:::-;3777:39;3863:2;3848:18;;;;3835:32;;-1:-1:-1;;;3706:167:1:o;3878:531::-;3980:6;3988;3996;4004;4012;4020;4073:3;4061:9;4052:7;4048:23;4044:33;4041:2;;;4090:1;4087;4080:12;4041:2;4113:29;4132:9;4113:29;:::i;:::-;4103:39;;4189:2;4178:9;4174:18;4161:32;4151:42;;4240:2;4229:9;4225:18;4212:32;4202:42;;4263:36;4295:2;4284:9;4280:18;4263:36;:::i;:::-;4253:46;;4346:3;4335:9;4331:19;4318:33;4308:43;;4398:3;4387:9;4383:19;4370:33;4360:43;;4031:378;;;;;;;;:::o;4414:241::-;4470:6;4523:2;4511:9;4502:7;4498:23;4494:32;4491:2;;;4539:1;4536;4529:12;4491:2;4578:9;4565:23;4597:28;4619:5;4597:28;:::i;4660:245::-;4727:6;4780:2;4768:9;4759:7;4755:23;4751:32;4748:2;;;4796:1;4793;4786:12;4748:2;4828:9;4822:16;4847:28;4869:5;4847:28;:::i;4910:245::-;4968:6;5021:2;5009:9;5000:7;4996:23;4992:32;4989:2;;;5037:1;5034;5027:12;4989:2;5076:9;5063:23;5095:30;5119:5;5095:30;:::i;5160:249::-;5229:6;5282:2;5270:9;5261:7;5257:23;5253:32;5250:2;;;5298:1;5295;5288:12;5250:2;5330:9;5324:16;5349:30;5373:5;5349:30;:::i;5414:1046::-;5552:6;5560;5568;5576;5584;5592;5600;5608;5616;5669:3;5657:9;5648:7;5644:23;5640:33;5637:2;;;5686:1;5683;5676:12;5637:2;5726:9;5713:23;5759:18;5751:6;5748:30;5745:2;;;5791:1;5788;5781:12;5745:2;5814:22;;5867:4;5859:13;;5855:27;-1:-1:-1;5845:2:1;;5896:1;5893;5886:12;5845:2;5919:75;5986:7;5981:2;5968:16;5961:4;5957:2;5953:13;5919:75;:::i;:::-;5909:85;;;6013:40;6047:4;6036:9;6032:20;6013:40;:::i;:::-;6003:50;;6072:38;6106:2;6095:9;6091:18;6072:38;:::i;:::-;6062:48;;6129:38;6163:2;6152:9;6148:18;6129:38;:::i;:::-;6119:48;;6186:39;6220:3;6209:9;6205:19;6186:39;:::i;:::-;6176:49;;6244:39;6278:3;6267:9;6263:19;6244:39;:::i;:::-;6234:49;;6302:39;6336:3;6325:9;6321:19;6302:39;:::i;:::-;6292:49;;6360:36;6391:3;6380:9;6376:19;6360:36;:::i;:::-;6350:46;;6415:39;6449:3;6438:9;6434:19;6415:39;:::i;:::-;6405:49;;5627:833;;;;;;;;;;;:::o;6465:192::-;6549:6;6602:3;6590:9;6581:7;6577:23;6573:33;6570:2;;;6619:1;6616;6609:12;6662:301;6721:6;6774:2;6762:9;6753:7;6749:23;6745:32;6742:2;;;6790:1;6787;6780:12;6742:2;6829:9;6816:23;-1:-1:-1;;;;;6872:5:1;6868:46;6861:5;6858:57;6848:2;;6929:1;6926;6919:12;6968:180;7027:6;7080:2;7068:9;7059:7;7055:23;7051:32;7048:2;;;7096:1;7093;7086:12;7048:2;-1:-1:-1;7119:23:1;;7038:110;-1:-1:-1;7038:110:1:o;7153:184::-;7223:6;7276:2;7264:9;7255:7;7251:23;7247:32;7244:2;;;7292:1;7289;7282:12;7244:2;-1:-1:-1;7315:16:1;;7234:103;-1:-1:-1;7234:103:1:o;7342:383::-;7416:6;7424;7432;7485:2;7473:9;7464:7;7460:23;7456:32;7453:2;;;7501:1;7498;7491:12;7453:2;7537:9;7524:23;7514:33;;7566:38;7600:2;7589:9;7585:18;7566:38;:::i;:::-;7556:48;;7654:2;7643:9;7639:18;7626:32;7667:28;7689:5;7667:28;:::i;:::-;7714:5;7704:15;;;7443:282;;;;;:::o;7730:309::-;7795:6;7803;7856:2;7844:9;7835:7;7831:23;7827:32;7824:2;;;7872:1;7869;7862:12;7824:2;7908:9;7895:23;7885:33;;7968:2;7957:9;7953:18;7940:32;7981:28;8003:5;7981:28;:::i;8044:452::-;8127:6;8135;8143;8151;8204:3;8192:9;8183:7;8179:23;8175:33;8172:2;;;8221:1;8218;8211:12;8172:2;8257:9;8244:23;8234:33;;8314:2;8303:9;8299:18;8286:32;8276:42;;8337:38;8371:2;8360:9;8356:18;8337:38;:::i;:::-;8327:48;;8425:2;8414:9;8410:18;8397:32;8438:28;8460:5;8438:28;:::i;:::-;8162:334;;;;-1:-1:-1;8162:334:1;;-1:-1:-1;;8162:334:1:o;8501:730::-;8618:6;8626;8634;8642;8650;8658;8666;8674;8727:3;8715:9;8706:7;8702:23;8698:33;8695:2;;;8744:1;8741;8734:12;8695:2;8780:9;8767:23;8757:33;;8837:2;8826:9;8822:18;8809:32;8799:42;;8860:38;8894:2;8883:9;8879:18;8860:38;:::i;:::-;8850:48;;8948:2;8937:9;8933:18;8920:32;8961:28;8983:5;8961:28;:::i;:::-;9008:5;-1:-1:-1;9060:3:1;9045:19;;9032:33;;-1:-1:-1;9084:37:1;9116:3;9101:19;;9084:37;:::i;:::-;9074:47;;9168:3;9157:9;9153:19;9140:33;9130:43;;9220:3;9209:9;9205:19;9192:33;9182:43;;8685:546;;;;;;;;;;;:::o;9236:278::-;9294:6;9347:2;9335:9;9326:7;9322:23;9318:32;9315:2;;;9363:1;9360;9353:12;9315:2;9402:9;9389:23;9452:12;9445:5;9441:24;9434:5;9431:35;9421:2;;9480:1;9477;9470:12;9519:257;9560:3;9598:5;9592:12;9625:6;9620:3;9613:19;9641:63;9697:6;9690:4;9685:3;9681:14;9674:4;9667:5;9663:16;9641:63;:::i;:::-;9758:2;9737:15;-1:-1:-1;;9733:29:1;9724:39;;;;9765:4;9720:50;;9568:208;-1:-1:-1;;9568:208:1:o;10124:274::-;10253:3;10291:6;10285:13;10307:53;10353:6;10348:3;10341:4;10333:6;10329:17;10307:53;:::i;:::-;10376:16;;;;;10261:137;-1:-1:-1;;10261:137:1:o;10403:470::-;10582:3;10620:6;10614:13;10636:53;10682:6;10677:3;10670:4;10662:6;10658:17;10636:53;:::i;:::-;10752:13;;10711:16;;;;10774:57;10752:13;10711:16;10808:4;10796:17;;10774:57;:::i;:::-;10847:20;;10590:283;-1:-1:-1;;;;10590:283:1:o;12451:511::-;12645:4;-1:-1:-1;;;;;12755:2:1;12747:6;12743:15;12732:9;12725:34;12807:2;12799:6;12795:15;12790:2;12779:9;12775:18;12768:43;;12847:6;12842:2;12831:9;12827:18;12820:34;12890:3;12885:2;12874:9;12870:18;12863:31;12911:45;12951:3;12940:9;12936:19;12928:6;12911:45;:::i;:::-;12903:53;12654:308;-1:-1:-1;;;;;;12654:308:1:o;15748:288::-;15923:6;15912:9;15905:25;15966:2;15961;15950:9;15946:18;15939:30;15886:4;15986:44;16026:2;16015:9;16011:18;16003:6;15986:44;:::i;16444:219::-;16593:2;16582:9;16575:21;16556:4;16613:44;16653:2;16642:9;16638:18;16630:6;16613:44;:::i;38759:128::-;38799:3;38830:1;38826:6;38823:1;38820:13;38817:2;;;38836:18;;:::i;:::-;-1:-1:-1;38872:9:1;;38807:80::o;38892:230::-;38931:3;38959:12;38998:2;38995:1;38991:10;39028:2;39025:1;39021:10;39059:3;39055:2;39051:12;39046:3;39043:21;39040:2;;;39067:18;;:::i;39127:120::-;39167:1;39193;39183:2;;39198:18;;:::i;:::-;-1:-1:-1;39232:9:1;;39173:74::o;39252:168::-;39292:7;39358:1;39354;39350:6;39346:14;39343:1;39340:21;39335:1;39328:9;39321:17;39317:45;39314:2;;;39365:18;;:::i;:::-;-1:-1:-1;39405:9:1;;39304:116::o;39425:125::-;39465:4;39493:1;39490;39487:8;39484:2;;;39498:18;;:::i;:::-;-1:-1:-1;39535:9:1;;39474:76::o;39555:258::-;39627:1;39637:113;39651:6;39648:1;39645:13;39637:113;;;39727:11;;;39721:18;39708:11;;;39701:39;39673:2;39666:10;39637:113;;;39768:6;39765:1;39762:13;39759:2;;;-1:-1:-1;;39803:1:1;39785:16;;39778:27;39608:205::o;39818:380::-;39897:1;39893:12;;;;39940;;;39961:2;;40015:4;40007:6;40003:17;39993:27;;39961:2;40068;40060:6;40057:14;40037:18;40034:38;40031:2;;;40114:10;40109:3;40105:20;40102:1;40095:31;40149:4;40146:1;40139:15;40177:4;40174:1;40167:15;40203:135;40242:3;-1:-1:-1;;40263:17:1;;40260:2;;;40283:18;;:::i;:::-;-1:-1:-1;40330:1:1;40319:13;;40250:88::o;40343:112::-;40375:1;40401;40391:2;;40406:18;;:::i;:::-;-1:-1:-1;40440:9:1;;40381:74::o;40460:127::-;40521:10;40516:3;40512:20;40509:1;40502:31;40552:4;40549:1;40542:15;40576:4;40573:1;40566:15;40592:127;40653:10;40648:3;40644:20;40641:1;40634:31;40684:4;40681:1;40674:15;40708:4;40705:1;40698:15;40724:127;40785:10;40780:3;40776:20;40773:1;40766:31;40816:4;40813:1;40806:15;40840:4;40837:1;40830:15;40856:127;40917:10;40912:3;40908:20;40905:1;40898:31;40948:4;40945:1;40938:15;40972:4;40969:1;40962:15;40988:127;41049:10;41044:3;41040:20;41037:1;41030:31;41080:4;41077:1;41070:15;41104:4;41101:1;41094:15;41120:127;41181:10;41176:3;41172:20;41169:1;41162:31;41212:4;41209:1;41202:15;41236:4;41233:1;41226:15;41252:118;41338:5;41331:13;41324:21;41317:5;41314:32;41304:2;;41360:1;41357;41350:12;41375:131;-1:-1:-1;;;;;;41449:32:1;;41439:43;;41429:2;;41496:1;41493;41486:12

Swarm Source

ipfs://6ab1ff23e12d97ba105b5db6e1c5e072728f2bbe7aba2759af8d36539f740588
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.