ETH Price: $2,928.00 (-7.26%)
Gas: 7 Gwei

Contract

0x45b3Cf56896c4547426A4145AD1D0AE971120214
 

Overview

ETH Balance

0.06095225208967732 ETH

Eth Value

$178.47 (@ $2,928.00/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve202321122024-07-04 8:59:4726 hrs ago1720083587IN
0x45b3Cf56...971120214
0 ETH0.000420278.92329564
Approve201858782024-06-27 22:01:597 days ago1719525719IN
0x45b3Cf56...971120214
0 ETH0.000333797.13979113
Approve201570982024-06-23 21:33:4711 days ago1719178427IN
0x45b3Cf56...971120214
0 ETH0.000144343.08760798
Transfer201484272024-06-22 16:26:4712 days ago1719073607IN
0x45b3Cf56...971120214
0 ETH0.000232964.03618036
Approve200857812024-06-13 22:09:1121 days ago1718316551IN
0x45b3Cf56...971120214
0 ETH0.000461869.81878565
Approve200768452024-06-12 16:09:1122 days ago1718208551IN
0x45b3Cf56...971120214
0 ETH0.0011429824.26775135
Approve200593602024-06-10 5:31:5925 days ago1717997519IN
0x45b3Cf56...971120214
0 ETH0.000157853.35580323
Approve200506192024-06-09 0:13:4726 days ago1717892027IN
0x45b3Cf56...971120214
0 ETH0.000242675.15900235
Approve200376282024-06-07 4:41:3528 days ago1717735295IN
0x45b3Cf56...971120214
0 ETH0.000439969.41075793
Approve200154092024-06-04 2:15:4731 days ago1717467347IN
0x45b3Cf56...971120214
0 ETH0.000283466.0261631
Approve199838532024-05-30 16:29:3535 days ago1717086575IN
0x45b3Cf56...971120214
0 ETH0.0008834618.75765556
Approve199820892024-05-30 10:32:2336 days ago1717065143IN
0x45b3Cf56...971120214
0 ETH0.000346227.36038819
Approve199722682024-05-29 1:33:4737 days ago1716946427IN
0x45b3Cf56...971120214
0 ETH0.000411618.75049887
Approve199655712024-05-28 3:06:2338 days ago1716865583IN
0x45b3Cf56...971120214
0 ETH0.0005724812.17043324
Approve199240742024-05-22 7:56:4744 days ago1716364607IN
0x45b3Cf56...971120214
0 ETH0.000317226.74395021
Approve199172332024-05-21 8:57:1145 days ago1716281831IN
0x45b3Cf56...971120214
0 ETH0.000424279.01955309
Approve199076252024-05-20 0:41:4746 days ago1716165707IN
0x45b3Cf56...971120214
0 ETH0.000128844.81564443
Approve199076162024-05-20 0:39:5946 days ago1716165599IN
0x45b3Cf56...971120214
0 ETH0.000119734.83668732
Approve198995982024-05-18 21:45:3547 days ago1716068735IN
0x45b3Cf56...971120214
0 ETH0.000137862.94974659
Approve198799762024-05-16 3:52:2350 days ago1715831543IN
0x45b3Cf56...971120214
0 ETH0.000233624.96036659
Approve198505202024-05-12 0:58:2354 days ago1715475503IN
0x45b3Cf56...971120214
0 ETH0.000252495.36782156
Approve197950132024-05-04 6:40:3562 days ago1714804835IN
0x45b3Cf56...971120214
0 ETH0.000152576.16357892
Approve197352012024-04-25 21:55:1170 days ago1714082111IN
0x45b3Cf56...971120214
0 ETH0.000436449.27830591
Approve197217652024-04-24 0:47:5972 days ago1713919679IN
0x45b3Cf56...971120214
0 ETH0.000340817.24547518
Approve197074072024-04-22 0:37:3574 days ago1713746255IN
0x45b3Cf56...971120214
0 ETH0.000273145.8068457
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
192165422024-02-13 3:54:47143 days ago1707796487
0x45b3Cf56...971120214
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SimpleDN404

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2024-02-13
*/

/**
 * 404Blocks
 * 
 * Website: 404blocks.xyz
 * twitter.com/404_blocks
 */
 
 // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

// File: https://github.com/Vectorized/solady/blob/main/src/utils/SafeTransferLib.sol


/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
///
/// @dev Note:
/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.
/// - For ERC20s, this implementation won't check that a token has code,
///   responsibility is delegated to the caller.
library SafeTransferLib {
	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                       CUSTOM ERRORS                        */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev The ETH transfer has failed.
	error ETHTransferFailed();

	/// @dev The ERC20 `transferFrom` has failed.
	error TransferFromFailed();

	/// @dev The ERC20 `transfer` has failed.
	error TransferFailed();

	/// @dev The ERC20 `approve` has failed.
	error ApproveFailed();

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                         CONSTANTS                          */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.
	uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;

	/// @dev Suggested gas stipend for contract receiving ETH to perform a few
	/// storage reads and writes, but low enough to prevent griefing.
	uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                       ETH OPERATIONS                       */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	// If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.
	//
	// The regular variants:
	// - Forwards all remaining gas to the target.
	// - Reverts if the target reverts.
	// - Reverts if the current contract has insufficient balance.
	//
	// The force variants:
	// - Forwards with an optional gas stipend
	//   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).
	// - If the target reverts, or if the gas stipend is exhausted,
	//   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.
	//   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.
	// - Reverts if the current contract has insufficient balance.
	//
	// The try variants:
	// - Forwards with a mandatory gas stipend.
	// - Instead of reverting, returns whether the transfer succeeded.

	/// @dev Sends `amount` (in wei) ETH to `to`.
	function safeTransferETH(address to, uint256 amount) internal {
		/// @solidity memory-safe-assembly
		assembly {
			if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {
				mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
				revert(0x1c, 0x04)
			}
		}
	}

	/// @dev Sends all the ETH in the current contract to `to`.
	function safeTransferAllETH(address to) internal {
		/// @solidity memory-safe-assembly
		assembly {
			// Transfer all the ETH and check if it succeeded or not.
			if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
				mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
				revert(0x1c, 0x04)
			}
		}
	}

	/// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
	function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {
		/// @solidity memory-safe-assembly
		assembly {
			if lt(selfbalance(), amount) {
				mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
				revert(0x1c, 0x04)
			}
			if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {
				mstore(0x00, to) // Store the address in scratch space.
				mstore8(0x0b, 0x73) // Opcode `PUSH20`.
				mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
				if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
			}
		}
	}

	/// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.
	function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {
		/// @solidity memory-safe-assembly
		assembly {
			if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
				mstore(0x00, to) // Store the address in scratch space.
				mstore8(0x0b, 0x73) // Opcode `PUSH20`.
				mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
				if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
			}
		}
	}

	/// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.
	function forceSafeTransferETH(address to, uint256 amount) internal {
		/// @solidity memory-safe-assembly
		assembly {
			if lt(selfbalance(), amount) {
				mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
				revert(0x1c, 0x04)
			}
			if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {
				mstore(0x00, to) // Store the address in scratch space.
				mstore8(0x0b, 0x73) // Opcode `PUSH20`.
				mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
				if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
			}
		}
	}

	/// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.
	function forceSafeTransferAllETH(address to) internal {
		/// @solidity memory-safe-assembly
		assembly {
			// forgefmt: disable-next-item
			if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
				mstore(0x00, to) // Store the address in scratch space.
				mstore8(0x0b, 0x73) // Opcode `PUSH20`.
				mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
				if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
			}
		}
	}

	/// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
	function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)
		internal
		returns (bool success)
	{
		/// @solidity memory-safe-assembly
		assembly {
			success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)
		}
	}

	/// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.
	function trySafeTransferAllETH(address to, uint256 gasStipend)
		internal
		returns (bool success)
	{
		/// @solidity memory-safe-assembly
		assembly {
			success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)
		}
	}

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                      ERC20 OPERATIONS                      */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Sends `amount` of ERC20 `token` from `from` to `to`.
	/// Reverts upon failure.
	///
	/// The `from` account must have at least `amount` approved for
	/// the current contract to manage.
	function safeTransferFrom(address token, address from, address to, uint256 amount) internal {
		/// @solidity memory-safe-assembly
		assembly {
			let m := mload(0x40) // Cache the free memory pointer.
			mstore(0x60, amount) // Store the `amount` argument.
			mstore(0x40, to) // Store the `to` argument.
			mstore(0x2c, shl(96, from)) // Store the `from` argument.
			mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.
			// Perform the transfer, reverting upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
					call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
				)
			) {
				mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
				revert(0x1c, 0x04)
			}
			mstore(0x60, 0) // Restore the zero slot to zero.
			mstore(0x40, m) // Restore the free memory pointer.
		}
	}

	/// @dev Sends all of ERC20 `token` from `from` to `to`.
	/// Reverts upon failure.
	///
	/// The `from` account must have their entire balance approved for
	/// the current contract to manage.
	function safeTransferAllFrom(address token, address from, address to)
		internal
		returns (uint256 amount)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let m := mload(0x40) // Cache the free memory pointer.
			mstore(0x40, to) // Store the `to` argument.
			mstore(0x2c, shl(96, from)) // Store the `from` argument.
			mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.
			// Read the balance, reverting upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					gt(returndatasize(), 0x1f), // At least 32 bytes returned.
					staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)
				)
			) {
				mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
				revert(0x1c, 0x04)
			}
			mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.
			amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.
			// Perform the transfer, reverting upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
					call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
				)
			) {
				mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
				revert(0x1c, 0x04)
			}
			mstore(0x60, 0) // Restore the zero slot to zero.
			mstore(0x40, m) // Restore the free memory pointer.
		}
	}

	/// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.
	/// Reverts upon failure.
	function safeTransfer(address token, address to, uint256 amount) internal {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x14, to) // Store the `to` argument.
			mstore(0x34, amount) // Store the `amount` argument.
			mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.
			// Perform the transfer, reverting upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
					call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
				)
			) {
				mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
				revert(0x1c, 0x04)
			}
			mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
		}
	}

	/// @dev Sends all of ERC20 `token` from the current contract to `to`.
	/// Reverts upon failure.
	function safeTransferAll(address token, address to) internal returns (uint256 amount) {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.
			mstore(0x20, address()) // Store the address of the current contract.
			// Read the balance, reverting upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					gt(returndatasize(), 0x1f), // At least 32 bytes returned.
					staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)
				)
			) {
				mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
				revert(0x1c, 0x04)
			}
			mstore(0x14, to) // Store the `to` argument.
			amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.
			mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.
			// Perform the transfer, reverting upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
					call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
				)
			) {
				mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
				revert(0x1c, 0x04)
			}
			mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
		}
	}

	/// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.
	/// Reverts upon failure.
	function safeApprove(address token, address to, uint256 amount) internal {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x14, to) // Store the `to` argument.
			mstore(0x34, amount) // Store the `amount` argument.
			mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
			// Perform the approval, reverting upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
					call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
				)
			) {
				mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.
				revert(0x1c, 0x04)
			}
			mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
		}
	}

	/// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.
	/// If the initial attempt to approve fails, attempts to reset the approved amount to zero,
	/// then retries the approval again (some tokens, e.g. USDT, requires this).
	/// Reverts upon failure.
	function safeApproveWithRetry(address token, address to, uint256 amount) internal {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x14, to) // Store the `to` argument.
			mstore(0x34, amount) // Store the `amount` argument.
			mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
			// Perform the approval, retrying upon failure.
			if iszero(
				and( // The arguments of `and` are evaluated from right to left.
					or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
					call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
				)
			) {
				mstore(0x34, 0) // Store 0 for the `amount`.
				mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
				pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.
				mstore(0x34, amount) // Store back the original `amount`.
				// Retry the approval, reverting upon failure.
				if iszero(
					and(
						or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
						call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
					)
				) {
					mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.
					revert(0x1c, 0x04)
				}
			}
			mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
		}
	}

	/// @dev Returns the amount of ERC20 `token` owned by `account`.
	/// Returns zero if the `token` does not exist.
	function balanceOf(address token, address account) internal view returns (uint256 amount) {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x14, account) // Store the `account` argument.
			mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.
			amount :=
				mul(
					mload(0x20),
					and( // The arguments of `and` are evaluated from right to left.
						gt(returndatasize(), 0x1f), // At least 32 bytes returned.
						staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)
					)
				)
		}
	}
}

// File: https://github.com/Vectorized/solady/blob/main/src/utils/LibString.sol


pragma solidity ^0.8.4;

/// @notice Library for converting numbers into strings and other string operations.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibString.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibString.sol)
///
/// @dev Note:
/// For performance and bytecode compactness, most of the string operations are restricted to
/// byte strings (7-bit ASCII), except where otherwise specified.
/// Usage of byte string operations on charsets with runes spanning two or more bytes
/// can lead to undefined behavior.
library LibString {
	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                        CUSTOM ERRORS                       */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev The length of the output is too small to contain all the hex digits.
	error HexLengthInsufficient();

	/// @dev The length of the string is more than 32 bytes.
	error TooBigForSmallString();

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                         CONSTANTS                          */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev The constant returned when the `search` is not found in the string.
	uint256 internal constant NOT_FOUND = type(uint256).max;

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                     DECIMAL OPERATIONS                     */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Returns the base 10 decimal representation of `value`.
	function toString(uint256 value) internal pure returns (string memory str) {
		/// @solidity memory-safe-assembly
		assembly {
			// The maximum value of a uint256 contains 78 digits (1 byte per digit), but
			// we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
			// We will need 1 word for the trailing zeros padding, 1 word for the length,
			// and 3 words for a maximum of 78 digits.
			str := add(mload(0x40), 0x80)
			// Update the free memory pointer to allocate.
			mstore(0x40, add(str, 0x20))
			// Zeroize the slot after the string.
			mstore(str, 0)

			// Cache the end of the memory to calculate the length later.
			let end := str

			let w := not(0) // Tsk.
			// We write the string from rightmost digit to leftmost digit.
			// The following is essentially a do-while loop that also handles the zero case.
			for { let temp := value } 1 {} {
				str := add(str, w) // `sub(str, 1)`.
				// Write the character to the pointer.
				// The ASCII index of the '0' character is 48.
				mstore8(str, add(48, mod(temp, 10)))
				// Keep dividing `temp` until zero.
				temp := div(temp, 10)
				if iszero(temp) { break }
			}

			let length := sub(end, str)
			// Move the pointer 32 bytes leftwards to make room for the length.
			str := sub(str, 0x20)
			// Store the length.
			mstore(str, length)
		}
	}

	/// @dev Returns the base 10 decimal representation of `value`.
	function toString(int256 value) internal pure returns (string memory str) {
		if (value >= 0) {
			return toString(uint256(value));
		}
		unchecked {
			str = toString(~uint256(value) + 1);
		}
		/// @solidity memory-safe-assembly
		assembly {
			// We still have some spare memory space on the left,
			// as we have allocated 3 words (96 bytes) for up to 78 digits.
			let length := mload(str) // Load the string length.
			mstore(str, 0x2d) // Store the '-' character.
			str := sub(str, 1) // Move back the string pointer by a byte.
			mstore(str, add(length, 1)) // Update the string length.
		}
	}

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                   HEXADECIMAL OPERATIONS                   */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Returns the hexadecimal representation of `value`,
	/// left-padded to an input length of `length` bytes.
	/// The output is prefixed with "0x" encoded using 2 hexadecimal digits per byte,
	/// giving a total length of `length * 2 + 2` bytes.
	/// Reverts if `length` is too small for the output to contain all the digits.
	function toHexString(uint256 value, uint256 length) internal pure returns (string memory str) {
		str = toHexStringNoPrefix(value, length);
		/// @solidity memory-safe-assembly
		assembly {
			let strLength := add(mload(str), 2) // Compute the length.
			mstore(str, 0x3078) // Write the "0x" prefix.
			str := sub(str, 2) // Move the pointer.
			mstore(str, strLength) // Write the length.
		}
	}

	/// @dev Returns the hexadecimal representation of `value`,
	/// left-padded to an input length of `length` bytes.
	/// The output is prefixed with "0x" encoded using 2 hexadecimal digits per byte,
	/// giving a total length of `length * 2` bytes.
	/// Reverts if `length` is too small for the output to contain all the digits.
	function toHexStringNoPrefix(uint256 value, uint256 length)
		internal
		pure
		returns (string memory str)
	{
		/// @solidity memory-safe-assembly
		assembly {
			// We need 0x20 bytes for the trailing zeros padding, `length * 2` bytes
			// for the digits, 0x02 bytes for the prefix, and 0x20 bytes for the length.
			// We add 0x20 to the total and round down to a multiple of 0x20.
			// (0x20 + 0x20 + 0x02 + 0x20) = 0x62.
			str := add(mload(0x40), and(add(shl(1, length), 0x42), not(0x1f)))
			// Allocate the memory.
			mstore(0x40, add(str, 0x20))
			// Zeroize the slot after the string.
			mstore(str, 0)

			// Cache the end to calculate the length later.
			let end := str
			// Store "0123456789abcdef" in scratch space.
			mstore(0x0f, 0x30313233343536373839616263646566)

			let start := sub(str, add(length, length))
			let w := not(1) // Tsk.
			let temp := value
			// We write the string from rightmost digit to leftmost digit.
			// The following is essentially a do-while loop that also handles the zero case.
			for {} 1 {} {
				str := add(str, w) // `sub(str, 2)`.
				mstore8(add(str, 1), mload(and(temp, 15)))
				mstore8(str, mload(and(shr(4, temp), 15)))
				temp := shr(8, temp)
				if iszero(xor(str, start)) { break }
			}

			if temp {
				mstore(0x00, 0x2194895a) // `HexLengthInsufficient()`.
				revert(0x1c, 0x04)
			}

			// Compute the string's length.
			let strLength := sub(end, str)
			// Move the pointer and write the length.
			str := sub(str, 0x20)
			mstore(str, strLength)
		}
	}

	/// @dev Returns the hexadecimal representation of `value`.
	/// The output is prefixed with "0x" and encoded using 2 hexadecimal digits per byte.
	/// As address are 20 bytes long, the output will left-padded to have
	/// a length of `20 * 2 + 2` bytes.
	function toHexString(uint256 value) internal pure returns (string memory str) {
		str = toHexStringNoPrefix(value);
		/// @solidity memory-safe-assembly
		assembly {
			let strLength := add(mload(str), 2) // Compute the length.
			mstore(str, 0x3078) // Write the "0x" prefix.
			str := sub(str, 2) // Move the pointer.
			mstore(str, strLength) // Write the length.
		}
	}

	/// @dev Returns the hexadecimal representation of `value`.
	/// The output is prefixed with "0x".
	/// The output excludes leading "0" from the `toHexString` output.
	/// `0x00: "0x0", 0x01: "0x1", 0x12: "0x12", 0x123: "0x123"`.
	function toMinimalHexString(uint256 value) internal pure returns (string memory str) {
		str = toHexStringNoPrefix(value);
		/// @solidity memory-safe-assembly
		assembly {
			let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.
			let strLength := add(mload(str), 2) // Compute the length.
			mstore(add(str, o), 0x3078) // Write the "0x" prefix, accounting for leading zero.
			str := sub(add(str, o), 2) // Move the pointer, accounting for leading zero.
			mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.
		}
	}

	/// @dev Returns the hexadecimal representation of `value`.
	/// The output excludes leading "0" from the `toHexStringNoPrefix` output.
	/// `0x00: "0", 0x01: "1", 0x12: "12", 0x123: "123"`.
	function toMinimalHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {
		str = toHexStringNoPrefix(value);
		/// @solidity memory-safe-assembly
		assembly {
			let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.
			let strLength := mload(str) // Get the length.
			str := add(str, o) // Move the pointer, accounting for leading zero.
			mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.
		}
	}

	/// @dev Returns the hexadecimal representation of `value`.
	/// The output is encoded using 2 hexadecimal digits per byte.
	/// As address are 20 bytes long, the output will left-padded to have
	/// a length of `20 * 2` bytes.
	function toHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {
		/// @solidity memory-safe-assembly
		assembly {
			// We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,
			// 0x02 bytes for the prefix, and 0x40 bytes for the digits.
			// The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x40) is 0xa0.
			str := add(mload(0x40), 0x80)
			// Allocate the memory.
			mstore(0x40, add(str, 0x20))
			// Zeroize the slot after the string.
			mstore(str, 0)

			// Cache the end to calculate the length later.
			let end := str
			// Store "0123456789abcdef" in scratch space.
			mstore(0x0f, 0x30313233343536373839616263646566)

			let w := not(1) // Tsk.
			// We write the string from rightmost digit to leftmost digit.
			// The following is essentially a do-while loop that also handles the zero case.
			for { let temp := value } 1 {} {
				str := add(str, w) // `sub(str, 2)`.
				mstore8(add(str, 1), mload(and(temp, 15)))
				mstore8(str, mload(and(shr(4, temp), 15)))
				temp := shr(8, temp)
				if iszero(temp) { break }
			}

			// Compute the string's length.
			let strLength := sub(end, str)
			// Move the pointer and write the length.
			str := sub(str, 0x20)
			mstore(str, strLength)
		}
	}

	/// @dev Returns the hexadecimal representation of `value`.
	/// The output is prefixed with "0x", encoded using 2 hexadecimal digits per byte,
	/// and the alphabets are capitalized conditionally according to
	/// https://eips.ethereum.org/EIPS/eip-55
	function toHexStringChecksummed(address value) internal pure returns (string memory str) {
		str = toHexString(value);
		/// @solidity memory-safe-assembly
		assembly {
			let mask := shl(6, div(not(0), 255)) // `0b010000000100000000 ...`
			let o := add(str, 0x22)
			let hashed := and(keccak256(o, 40), mul(34, mask)) // `0b10001000 ... `
			let t := shl(240, 136) // `0b10001000 << 240`
			for { let i := 0 } 1 {} {
				mstore(add(i, i), mul(t, byte(i, hashed)))
				i := add(i, 1)
				if eq(i, 20) { break }
			}
			mstore(o, xor(mload(o), shr(1, and(mload(0x00), and(mload(o), mask)))))
			o := add(o, 0x20)
			mstore(o, xor(mload(o), shr(1, and(mload(0x20), and(mload(o), mask)))))
		}
	}

	/// @dev Returns the hexadecimal representation of `value`.
	/// The output is prefixed with "0x" and encoded using 2 hexadecimal digits per byte.
	function toHexString(address value) internal pure returns (string memory str) {
		str = toHexStringNoPrefix(value);
		/// @solidity memory-safe-assembly
		assembly {
			let strLength := add(mload(str), 2) // Compute the length.
			mstore(str, 0x3078) // Write the "0x" prefix.
			str := sub(str, 2) // Move the pointer.
			mstore(str, strLength) // Write the length.
		}
	}

	/// @dev Returns the hexadecimal representation of `value`.
	/// The output is encoded using 2 hexadecimal digits per byte.
	function toHexStringNoPrefix(address value) internal pure returns (string memory str) {
		/// @solidity memory-safe-assembly
		assembly {
			str := mload(0x40)

			// Allocate the memory.
			// We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,
			// 0x02 bytes for the prefix, and 0x28 bytes for the digits.
			// The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x28) is 0x80.
			mstore(0x40, add(str, 0x80))

			// Store "0123456789abcdef" in scratch space.
			mstore(0x0f, 0x30313233343536373839616263646566)

			str := add(str, 2)
			mstore(str, 40)

			let o := add(str, 0x20)
			mstore(add(o, 40), 0)

			value := shl(96, value)

			// We write the string from rightmost digit to leftmost digit.
			// The following is essentially a do-while loop that also handles the zero case.
			for { let i := 0 } 1 {} {
				let p := add(o, add(i, i))
				let temp := byte(i, value)
				mstore8(add(p, 1), mload(and(temp, 15)))
				mstore8(p, mload(shr(4, temp)))
				i := add(i, 1)
				if eq(i, 20) { break }
			}
		}
	}

	/// @dev Returns the hex encoded string from the raw bytes.
	/// The output is encoded using 2 hexadecimal digits per byte.
	function toHexString(bytes memory raw) internal pure returns (string memory str) {
		str = toHexStringNoPrefix(raw);
		/// @solidity memory-safe-assembly
		assembly {
			let strLength := add(mload(str), 2) // Compute the length.
			mstore(str, 0x3078) // Write the "0x" prefix.
			str := sub(str, 2) // Move the pointer.
			mstore(str, strLength) // Write the length.
		}
	}

	/// @dev Returns the hex encoded string from the raw bytes.
	/// The output is encoded using 2 hexadecimal digits per byte.
	function toHexStringNoPrefix(bytes memory raw) internal pure returns (string memory str) {
		/// @solidity memory-safe-assembly
		assembly {
			let length := mload(raw)
			str := add(mload(0x40), 2) // Skip 2 bytes for the optional prefix.
			mstore(str, add(length, length)) // Store the length of the output.

			// Store "0123456789abcdef" in scratch space.
			mstore(0x0f, 0x30313233343536373839616263646566)

			let o := add(str, 0x20)
			let end := add(raw, length)

			for {} iszero(eq(raw, end)) {} {
				raw := add(raw, 1)
				mstore8(add(o, 1), mload(and(mload(raw), 15)))
				mstore8(o, mload(and(shr(4, mload(raw)), 15)))
				o := add(o, 2)
			}
			mstore(o, 0) // Zeroize the slot after the string.
			mstore(0x40, add(o, 0x20)) // Allocate the memory.
		}
	}

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                   RUNE STRING OPERATIONS                   */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Returns the number of UTF characters in the string.
	function runeCount(string memory s) internal pure returns (uint256 result) {
		/// @solidity memory-safe-assembly
		assembly {
			if mload(s) {
				mstore(0x00, div(not(0), 255))
				mstore(0x20, 0x0202020202020202020202020202020202020202020202020303030304040506)
				let o := add(s, 0x20)
				let end := add(o, mload(s))
				for { result := 1 } 1 { result := add(result, 1) } {
					o := add(o, byte(0, mload(shr(250, mload(o)))))
					if iszero(lt(o, end)) { break }
				}
			}
		}
	}

	/// @dev Returns if this string is a 7-bit ASCII string.
	/// (i.e. all characters codes are in [0..127])
	function is7BitASCII(string memory s) internal pure returns (bool result) {
		/// @solidity memory-safe-assembly
		assembly {
			let mask := shl(7, div(not(0), 255))
			result := 1
			let n := mload(s)
			if n {
				let o := add(s, 0x20)
				let end := add(o, n)
				let last := mload(end)
				mstore(end, 0)
				for {} 1 {} {
					if and(mask, mload(o)) {
						result := 0
						break
					}
					o := add(o, 0x20)
					if iszero(lt(o, end)) { break }
				}
				mstore(end, last)
			}
		}
	}

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                   BYTE STRING OPERATIONS                   */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	// For performance and bytecode compactness, byte string operations are restricted
	// to 7-bit ASCII strings. All offsets are byte offsets, not UTF character offsets.
	// Usage of byte string operations on charsets with runes spanning two or more bytes
	// can lead to undefined behavior.

	/// @dev Returns `subject` all occurrences of `search` replaced with `replacement`.
	function replace(string memory subject, string memory search, string memory replacement)
		internal
		pure
		returns (string memory result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let subjectLength := mload(subject)
			let searchLength := mload(search)
			let replacementLength := mload(replacement)

			subject := add(subject, 0x20)
			search := add(search, 0x20)
			replacement := add(replacement, 0x20)
			result := add(mload(0x40), 0x20)

			let subjectEnd := add(subject, subjectLength)
			if iszero(gt(searchLength, subjectLength)) {
				let subjectSearchEnd := add(sub(subjectEnd, searchLength), 1)
				let h := 0
				if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }
				let m := shl(3, sub(0x20, and(searchLength, 0x1f)))
				let s := mload(search)
				for {} 1 {} {
					let t := mload(subject)
					// Whether the first `searchLength % 32` bytes of
					// `subject` and `search` matches.
					if iszero(shr(m, xor(t, s))) {
						if h {
							if iszero(eq(keccak256(subject, searchLength), h)) {
								mstore(result, t)
								result := add(result, 1)
								subject := add(subject, 1)
								if iszero(lt(subject, subjectSearchEnd)) { break }
								continue
							}
						}
						// Copy the `replacement` one word at a time.
						for { let o := 0 } 1 {} {
							mstore(add(result, o), mload(add(replacement, o)))
							o := add(o, 0x20)
							if iszero(lt(o, replacementLength)) { break }
						}
						result := add(result, replacementLength)
						subject := add(subject, searchLength)
						if searchLength {
							if iszero(lt(subject, subjectSearchEnd)) { break }
							continue
						}
					}
					mstore(result, t)
					result := add(result, 1)
					subject := add(subject, 1)
					if iszero(lt(subject, subjectSearchEnd)) { break }
				}
			}

			let resultRemainder := result
			result := add(mload(0x40), 0x20)
			let k := add(sub(resultRemainder, result), sub(subjectEnd, subject))
			// Copy the rest of the string one word at a time.
			for {} lt(subject, subjectEnd) {} {
				mstore(resultRemainder, mload(subject))
				resultRemainder := add(resultRemainder, 0x20)
				subject := add(subject, 0x20)
			}
			result := sub(result, 0x20)
			let last := add(add(result, 0x20), k) // Zeroize the slot after the string.
			mstore(last, 0)
			mstore(0x40, add(last, 0x20)) // Allocate the memory.
			mstore(result, k) // Store the length.
		}
	}

	/// @dev Returns the byte index of the first location of `search` in `subject`,
	/// searching from left to right, starting from `from`.
	/// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
	function indexOf(string memory subject, string memory search, uint256 from)
		internal
		pure
		returns (uint256 result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			for { let subjectLength := mload(subject) } 1 {} {
				if iszero(mload(search)) {
					if iszero(gt(from, subjectLength)) {
						result := from
						break
					}
					result := subjectLength
					break
				}
				let searchLength := mload(search)
				let subjectStart := add(subject, 0x20)

				result := not(0) // Initialize to `NOT_FOUND`.

				subject := add(subjectStart, from)
				let end := add(sub(add(subjectStart, subjectLength), searchLength), 1)

				let m := shl(3, sub(0x20, and(searchLength, 0x1f)))
				let s := mload(add(search, 0x20))

				if iszero(and(lt(subject, end), lt(from, subjectLength))) { break }

				if iszero(lt(searchLength, 0x20)) {
					for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {
						if iszero(shr(m, xor(mload(subject), s))) {
							if eq(keccak256(subject, searchLength), h) {
								result := sub(subject, subjectStart)
								break
							}
						}
						subject := add(subject, 1)
						if iszero(lt(subject, end)) { break }
					}
					break
				}
				for {} 1 {} {
					if iszero(shr(m, xor(mload(subject), s))) {
						result := sub(subject, subjectStart)
						break
					}
					subject := add(subject, 1)
					if iszero(lt(subject, end)) { break }
				}
				break
			}
		}
	}

	/// @dev Returns the byte index of the first location of `search` in `subject`,
	/// searching from left to right.
	/// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
	function indexOf(string memory subject, string memory search)
		internal
		pure
		returns (uint256 result)
	{
		result = indexOf(subject, search, 0);
	}

	/// @dev Returns the byte index of the first location of `search` in `subject`,
	/// searching from right to left, starting from `from`.
	/// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
	function lastIndexOf(string memory subject, string memory search, uint256 from)
		internal
		pure
		returns (uint256 result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			for {} 1 {} {
				result := not(0) // Initialize to `NOT_FOUND`.
				let searchLength := mload(search)
				if gt(searchLength, mload(subject)) { break }
				let w := result

				let fromMax := sub(mload(subject), searchLength)
				if iszero(gt(fromMax, from)) { from := fromMax }

				let end := add(add(subject, 0x20), w)
				subject := add(add(subject, 0x20), from)
				if iszero(gt(subject, end)) { break }
				// As this function is not too often used,
				// we shall simply use keccak256 for smaller bytecode size.
				for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {
					if eq(keccak256(subject, searchLength), h) {
						result := sub(subject, add(end, 1))
						break
					}
					subject := add(subject, w) // `sub(subject, 1)`.
					if iszero(gt(subject, end)) { break }
				}
				break
			}
		}
	}

	/// @dev Returns the byte index of the first location of `search` in `subject`,
	/// searching from right to left.
	/// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
	function lastIndexOf(string memory subject, string memory search)
		internal
		pure
		returns (uint256 result)
	{
		result = lastIndexOf(subject, search, uint256(int256(-1)));
	}

	/// @dev Returns true if `search` is found in `subject`, false otherwise.
	function contains(string memory subject, string memory search) internal pure returns (bool) {
		return indexOf(subject, search) != NOT_FOUND;
	}

	/// @dev Returns whether `subject` starts with `search`.
	function startsWith(string memory subject, string memory search)
		internal
		pure
		returns (bool result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let searchLength := mload(search)
			// Just using keccak256 directly is actually cheaper.
			// forgefmt: disable-next-item
			result := and(
				iszero(gt(searchLength, mload(subject))),
				eq(
					keccak256(add(subject, 0x20), searchLength),
					keccak256(add(search, 0x20), searchLength)
				)
			)
		}
	}

	/// @dev Returns whether `subject` ends with `search`.
	function endsWith(string memory subject, string memory search)
		internal
		pure
		returns (bool result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let searchLength := mload(search)
			let subjectLength := mload(subject)
			// Whether `search` is not longer than `subject`.
			let withinRange := iszero(gt(searchLength, subjectLength))
			// Just using keccak256 directly is actually cheaper.
			// forgefmt: disable-next-item
			result := and(
				withinRange,
				eq(
					keccak256(
						// `subject + 0x20 + max(subjectLength - searchLength, 0)`.
						add(add(subject, 0x20), mul(withinRange, sub(subjectLength, searchLength))),
						searchLength
					),
					keccak256(add(search, 0x20), searchLength)
				)
			)
		}
	}

	/// @dev Returns `subject` repeated `times`.
	function repeat(string memory subject, uint256 times)
		internal
		pure
		returns (string memory result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let subjectLength := mload(subject)
			if iszero(or(iszero(times), iszero(subjectLength))) {
				subject := add(subject, 0x20)
				result := mload(0x40)
				let output := add(result, 0x20)
				for {} 1 {} {
					// Copy the `subject` one word at a time.
					for { let o := 0 } 1 {} {
						mstore(add(output, o), mload(add(subject, o)))
						o := add(o, 0x20)
						if iszero(lt(o, subjectLength)) { break }
					}
					output := add(output, subjectLength)
					times := sub(times, 1)
					if iszero(times) { break }
				}
				mstore(output, 0) // Zeroize the slot after the string.
				let resultLength := sub(output, add(result, 0x20))
				mstore(result, resultLength) // Store the length.
				// Allocate the memory.
				mstore(0x40, add(result, add(resultLength, 0x20)))
			}
		}
	}

	/// @dev Returns a copy of `subject` sliced from `start` to `end` (exclusive).
	/// `start` and `end` are byte offsets.
	function slice(string memory subject, uint256 start, uint256 end)
		internal
		pure
		returns (string memory result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let subjectLength := mload(subject)
			if iszero(gt(subjectLength, end)) { end := subjectLength }
			if iszero(gt(subjectLength, start)) { start := subjectLength }
			if lt(start, end) {
				result := mload(0x40)
				let resultLength := sub(end, start)
				mstore(result, resultLength)
				subject := add(subject, start)
				let w := not(0x1f)
				// Copy the `subject` one word at a time, backwards.
				for { let o := and(add(resultLength, 0x1f), w) } 1 {} {
					mstore(add(result, o), mload(add(subject, o)))
					o := add(o, w) // `sub(o, 0x20)`.
					if iszero(o) { break }
				}
				// Zeroize the slot after the string.
				mstore(add(add(result, 0x20), resultLength), 0)
				// Allocate memory for the length and the bytes,
				// rounded up to a multiple of 32.
				mstore(0x40, add(result, and(add(resultLength, 0x3f), w)))
			}
		}
	}

	/// @dev Returns a copy of `subject` sliced from `start` to the end of the string.
	/// `start` is a byte offset.
	function slice(string memory subject, uint256 start)
		internal
		pure
		returns (string memory result)
	{
		result = slice(subject, start, uint256(int256(-1)));
	}

	/// @dev Returns all the indices of `search` in `subject`.
	/// The indices are byte offsets.
	function indicesOf(string memory subject, string memory search)
		internal
		pure
		returns (uint256[] memory result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let subjectLength := mload(subject)
			let searchLength := mload(search)

			if iszero(gt(searchLength, subjectLength)) {
				subject := add(subject, 0x20)
				search := add(search, 0x20)
				result := add(mload(0x40), 0x20)

				let subjectStart := subject
				let subjectSearchEnd := add(sub(add(subject, subjectLength), searchLength), 1)
				let h := 0
				if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }
				let m := shl(3, sub(0x20, and(searchLength, 0x1f)))
				let s := mload(search)
				for {} 1 {} {
					let t := mload(subject)
					// Whether the first `searchLength % 32` bytes of
					// `subject` and `search` matches.
					if iszero(shr(m, xor(t, s))) {
						if h {
							if iszero(eq(keccak256(subject, searchLength), h)) {
								subject := add(subject, 1)
								if iszero(lt(subject, subjectSearchEnd)) { break }
								continue
							}
						}
						// Append to `result`.
						mstore(result, sub(subject, subjectStart))
						result := add(result, 0x20)
						// Advance `subject` by `searchLength`.
						subject := add(subject, searchLength)
						if searchLength {
							if iszero(lt(subject, subjectSearchEnd)) { break }
							continue
						}
					}
					subject := add(subject, 1)
					if iszero(lt(subject, subjectSearchEnd)) { break }
				}
				let resultEnd := result
				// Assign `result` to the free memory pointer.
				result := mload(0x40)
				// Store the length of `result`.
				mstore(result, shr(5, sub(resultEnd, add(result, 0x20))))
				// Allocate memory for result.
				// We allocate one more word, so this array can be recycled for {split}.
				mstore(0x40, add(resultEnd, 0x20))
			}
		}
	}

	/// @dev Returns a arrays of strings based on the `delimiter` inside of the `subject` string.
	function split(string memory subject, string memory delimiter)
		internal
		pure
		returns (string[] memory result)
	{
		uint256[] memory indices = indicesOf(subject, delimiter);
		/// @solidity memory-safe-assembly
		assembly {
			let w := not(0x1f)
			let indexPtr := add(indices, 0x20)
			let indicesEnd := add(indexPtr, shl(5, add(mload(indices), 1)))
			mstore(add(indicesEnd, w), mload(subject))
			mstore(indices, add(mload(indices), 1))
			let prevIndex := 0
			for {} 1 {} {
				let index := mload(indexPtr)
				mstore(indexPtr, 0x60)
				if iszero(eq(index, prevIndex)) {
					let element := mload(0x40)
					let elementLength := sub(index, prevIndex)
					mstore(element, elementLength)
					// Copy the `subject` one word at a time, backwards.
					for { let o := and(add(elementLength, 0x1f), w) } 1 {} {
						mstore(add(element, o), mload(add(add(subject, prevIndex), o)))
						o := add(o, w) // `sub(o, 0x20)`.
						if iszero(o) { break }
					}
					// Zeroize the slot after the string.
					mstore(add(add(element, 0x20), elementLength), 0)
					// Allocate memory for the length and the bytes,
					// rounded up to a multiple of 32.
					mstore(0x40, add(element, and(add(elementLength, 0x3f), w)))
					// Store the `element` into the array.
					mstore(indexPtr, element)
				}
				prevIndex := add(index, mload(delimiter))
				indexPtr := add(indexPtr, 0x20)
				if iszero(lt(indexPtr, indicesEnd)) { break }
			}
			result := indices
			if iszero(mload(delimiter)) {
				result := add(indices, 0x20)
				mstore(result, sub(mload(indices), 2))
			}
		}
	}

	/// @dev Returns a concatenated string of `a` and `b`.
	/// Cheaper than `string.concat()` and does not de-align the free memory pointer.
	function concat(string memory a, string memory b)
		internal
		pure
		returns (string memory result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let w := not(0x1f)
			result := mload(0x40)
			let aLength := mload(a)
			// Copy `a` one word at a time, backwards.
			for { let o := and(add(aLength, 0x20), w) } 1 {} {
				mstore(add(result, o), mload(add(a, o)))
				o := add(o, w) // `sub(o, 0x20)`.
				if iszero(o) { break }
			}
			let bLength := mload(b)
			let output := add(result, aLength)
			// Copy `b` one word at a time, backwards.
			for { let o := and(add(bLength, 0x20), w) } 1 {} {
				mstore(add(output, o), mload(add(b, o)))
				o := add(o, w) // `sub(o, 0x20)`.
				if iszero(o) { break }
			}
			let totalLength := add(aLength, bLength)
			let last := add(add(result, 0x20), totalLength)
			// Zeroize the slot after the string.
			mstore(last, 0)
			// Stores the length.
			mstore(result, totalLength)
			// Allocate memory for the length and the bytes,
			// rounded up to a multiple of 32.
			mstore(0x40, and(add(last, 0x1f), w))
		}
	}

	/// @dev Returns a copy of the string in either lowercase or UPPERCASE.
	/// WARNING! This function is only compatible with 7-bit ASCII strings.
	function toCase(string memory subject, bool toUpper)
		internal
		pure
		returns (string memory result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let length := mload(subject)
			if length {
				result := add(mload(0x40), 0x20)
				subject := add(subject, 1)
				let flags := shl(add(70, shl(5, toUpper)), 0x3ffffff)
				let w := not(0)
				for { let o := length } 1 {} {
					o := add(o, w)
					let b := and(0xff, mload(add(subject, o)))
					mstore8(add(result, o), xor(b, and(shr(b, flags), 0x20)))
					if iszero(o) { break }
				}
				result := mload(0x40)
				mstore(result, length) // Store the length.
				let last := add(add(result, 0x20), length)
				mstore(last, 0) // Zeroize the slot after the string.
				mstore(0x40, add(last, 0x20)) // Allocate the memory.
			}
		}
	}

	/// @dev Returns a string from a small bytes32 string.
	/// `s` must be null-terminated, or behavior will be undefined.
	function fromSmallString(bytes32 s) internal pure returns (string memory result) {
		/// @solidity memory-safe-assembly
		assembly {
			result := mload(0x40)
			let n := 0
			for {} byte(n, s) { n := add(n, 1) } {} // Scan for '\0'.
			mstore(result, n)
			let o := add(result, 0x20)
			mstore(o, s)
			mstore(add(o, n), 0)
			mstore(0x40, add(result, 0x40))
		}
	}

	/// @dev Returns the small string, with all bytes after the first null byte zeroized.
	function normalizeSmallString(bytes32 s) internal pure returns (bytes32 result) {
		/// @solidity memory-safe-assembly
		assembly {
			for {} byte(result, s) { result := add(result, 1) } {} // Scan for '\0'.
			mstore(0x00, s)
			mstore(result, 0x00)
			result := mload(0x00)
		}
	}

	/// @dev Returns the string as a normalized null-terminated small string.
	function toSmallString(string memory s) internal pure returns (bytes32 result) {
		/// @solidity memory-safe-assembly
		assembly {
			result := mload(s)
			if iszero(lt(result, 33)) {
				mstore(0x00, 0xec92f9a3) // `TooBigForSmallString()`.
				revert(0x1c, 0x04)
			}
			result := shl(shl(3, sub(32, result)), mload(add(s, result)))
		}
	}

	/// @dev Returns a lowercased copy of the string.
	/// WARNING! This function is only compatible with 7-bit ASCII strings.
	function lower(string memory subject) internal pure returns (string memory result) {
		result = toCase(subject, false);
	}

	/// @dev Returns an UPPERCASED copy of the string.
	/// WARNING! This function is only compatible with 7-bit ASCII strings.
	function upper(string memory subject) internal pure returns (string memory result) {
		result = toCase(subject, true);
	}

	/// @dev Escapes the string to be used within HTML tags.
	function escapeHTML(string memory s) internal pure returns (string memory result) {
		/// @solidity memory-safe-assembly
		assembly {
			let end := add(s, mload(s))
			result := add(mload(0x40), 0x20)
			// Store the bytes of the packed offsets and strides into the scratch space.
			// `packed = (stride << 5) | offset`. Max offset is 20. Max stride is 6.
			mstore(0x1f, 0x900094)
			mstore(0x08, 0xc0000000a6ab)
			// Store "&quot;&amp;&#39;&lt;&gt;" into the scratch space.
			mstore(0x00, shl(64, 0x2671756f743b26616d703b262333393b266c743b2667743b))
			for {} iszero(eq(s, end)) {} {
				s := add(s, 1)
				let c := and(mload(s), 0xff)
				// Not in `["\"","'","&","<",">"]`.
				if iszero(and(shl(c, 1), 0x500000c400000000)) {
					mstore8(result, c)
					result := add(result, 1)
					continue
				}
				let t := shr(248, mload(c))
				mstore(result, mload(and(t, 0x1f)))
				result := add(result, shr(5, t))
			}
			let last := result
			mstore(last, 0) // Zeroize the slot after the string.
			result := mload(0x40)
			mstore(result, sub(last, add(result, 0x20))) // Store the length.
			mstore(0x40, add(last, 0x20)) // Allocate the memory.
		}
	}

	/// @dev Escapes the string to be used within double-quotes in a JSON.
	/// If `addDoubleQuotes` is true, the result will be enclosed in double-quotes.
	function escapeJSON(string memory s, bool addDoubleQuotes)
		internal
		pure
		returns (string memory result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			let end := add(s, mload(s))
			result := add(mload(0x40), 0x20)
			if addDoubleQuotes {
				mstore8(result, 34)
				result := add(1, result)
			}
			// Store "\\u0000" in scratch space.
			// Store "0123456789abcdef" in scratch space.
			// Also, store `{0x08:"b", 0x09:"t", 0x0a:"n", 0x0c:"f", 0x0d:"r"}`.
			// into the scratch space.
			mstore(0x15, 0x5c75303030303031323334353637383961626364656662746e006672)
			// Bitmask for detecting `["\"","\\"]`.
			let e := or(shl(0x22, 1), shl(0x5c, 1))
			for {} iszero(eq(s, end)) {} {
				s := add(s, 1)
				let c := and(mload(s), 0xff)
				if iszero(lt(c, 0x20)) {
					if iszero(and(shl(c, 1), e)) {
						// Not in `["\"","\\"]`.
						mstore8(result, c)
						result := add(result, 1)
						continue
					}
					mstore8(result, 0x5c) // "\\".
					mstore8(add(result, 1), c)
					result := add(result, 2)
					continue
				}
				if iszero(and(shl(c, 1), 0x3700)) {
					// Not in `["\b","\t","\n","\f","\d"]`.
					mstore8(0x1d, mload(shr(4, c))) // Hex value.
					mstore8(0x1e, mload(and(c, 15))) // Hex value.
					mstore(result, mload(0x19)) // "\\u00XX".
					result := add(result, 6)
					continue
				}
				mstore8(result, 0x5c) // "\\".
				mstore8(add(result, 1), mload(add(c, 8)))
				result := add(result, 2)
			}
			if addDoubleQuotes {
				mstore8(result, 34)
				result := add(1, result)
			}
			let last := result
			mstore(last, 0) // Zeroize the slot after the string.
			result := mload(0x40)
			mstore(result, sub(last, add(result, 0x20))) // Store the length.
			mstore(0x40, add(last, 0x20)) // Allocate the memory.
		}
	}

	/// @dev Escapes the string to be used within double-quotes in a JSON.
	function escapeJSON(string memory s) internal pure returns (string memory result) {
		result = escapeJSON(s, false);
	}

	/// @dev Returns whether `a` equals `b`.
	function eq(string memory a, string memory b) internal pure returns (bool result) {
		/// @solidity memory-safe-assembly
		assembly {
			result := eq(keccak256(add(a, 0x20), mload(a)), keccak256(add(b, 0x20), mload(b)))
		}
	}

	/// @dev Returns whether `a` equals `b`, where `b` is a null-terminated small string.
	function eqs(string memory a, bytes32 b) internal pure returns (bool result) {
		/// @solidity memory-safe-assembly
		assembly {
			// These should be evaluated on compile time, as far as possible.
			let m := not(shl(7, div(not(iszero(b)), 255))) // `0x7f7f ...`.
			let x := not(or(m, or(b, add(m, and(b, m)))))
			let r := shl(7, iszero(iszero(shr(128, x))))
			r := or(r, shl(6, iszero(iszero(shr(64, shr(r, x))))))
			r := or(r, shl(5, lt(0xffffffff, shr(r, x))))
			r := or(r, shl(4, lt(0xffff, shr(r, x))))
			r := or(r, shl(3, lt(0xff, shr(r, x))))
			// forgefmt: disable-next-item
			result := gt(eq(mload(a), add(iszero(x), xor(31, shr(3, r)))),
				xor(shr(add(8, r), b), shr(add(8, r), mload(add(a, 0x20)))))
		}
	}

	/// @dev Packs a single string with its length into a single word.
	/// Returns `bytes32(0)` if the length is zero or greater than 31.
	function packOne(string memory a) internal pure returns (bytes32 result) {
		/// @solidity memory-safe-assembly
		assembly {
			// We don't need to zero right pad the string,
			// since this is our own custom non-standard packing scheme.
			result :=
				mul(
					// Load the length and the bytes.
					mload(add(a, 0x1f)),
					// `length != 0 && length < 32`. Abuses underflow.
					// Assumes that the length is valid and within the block gas limit.
					lt(sub(mload(a), 1), 0x1f)
				)
		}
	}

	/// @dev Unpacks a string packed using {packOne}.
	/// Returns the empty string if `packed` is `bytes32(0)`.
	/// If `packed` is not an output of {packOne}, the output behavior is undefined.
	function unpackOne(bytes32 packed) internal pure returns (string memory result) {
		/// @solidity memory-safe-assembly
		assembly {
			// Grab the free memory pointer.
			result := mload(0x40)
			// Allocate 2 words (1 for the length, 1 for the bytes).
			mstore(0x40, add(result, 0x40))
			// Zeroize the length slot.
			mstore(result, 0)
			// Store the length and bytes.
			mstore(add(result, 0x1f), packed)
			// Right pad with zeroes.
			mstore(add(add(result, 0x20), mload(result)), 0)
		}
	}

	/// @dev Packs two strings with their lengths into a single word.
	/// Returns `bytes32(0)` if combined length is zero or greater than 30.
	function packTwo(string memory a, string memory b) internal pure returns (bytes32 result) {
		/// @solidity memory-safe-assembly
		assembly {
			let aLength := mload(a)
			// We don't need to zero right pad the strings,
			// since this is our own custom non-standard packing scheme.
			result :=
				mul(
					// Load the length and the bytes of `a` and `b`.
					or(
						shl(shl(3, sub(0x1f, aLength)), mload(add(a, aLength))),
						mload(sub(add(b, 0x1e), aLength))
					),
					// `totalLength != 0 && totalLength < 31`. Abuses underflow.
					// Assumes that the lengths are valid and within the block gas limit.
					lt(sub(add(aLength, mload(b)), 1), 0x1e)
				)
		}
	}

	/// @dev Unpacks strings packed using {packTwo}.
	/// Returns the empty strings if `packed` is `bytes32(0)`.
	/// If `packed` is not an output of {packTwo}, the output behavior is undefined.
	function unpackTwo(bytes32 packed)
		internal
		pure
		returns (string memory resultA, string memory resultB)
	{
		/// @solidity memory-safe-assembly
		assembly {
			// Grab the free memory pointer.
			resultA := mload(0x40)
			resultB := add(resultA, 0x40)
			// Allocate 2 words for each string (1 for the length, 1 for the byte). Total 4 words.
			mstore(0x40, add(resultB, 0x40))
			// Zeroize the length slots.
			mstore(resultA, 0)
			mstore(resultB, 0)
			// Store the lengths and bytes.
			mstore(add(resultA, 0x1f), packed)
			mstore(add(resultB, 0x1f), mload(add(add(resultA, 0x20), mload(resultA))))
			// Right pad with zeroes.
			mstore(add(add(resultA, 0x20), mload(resultA)), 0)
			mstore(add(add(resultB, 0x20), mload(resultB)), 0)
		}
	}

	/// @dev Directly returns `a` without copying.
	function directReturn(string memory a) internal pure {
		assembly {
			// Assumes that the string does not start from the scratch space.
			let retStart := sub(a, 0x20)
			let retSize := add(mload(a), 0x40)
			// Right pad with zeroes. Just in case the string is produced
			// by a method that doesn't zero right pad.
			mstore(add(retStart, retSize), 0)
			// Store the return offset.
			mstore(retStart, 0x20)
			// End the transaction, returning the string.
			return(retStart, retSize)
		}
	}
}

// File: https://github.com/Vectorized/solady/blob/main/src/auth/Ownable.sol


pragma solidity ^0.8.4;

/// @notice Simple single owner authorization mixin.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)
///
/// @dev Note:
/// This implementation does NOT auto-initialize the owner to `msg.sender`.
/// You MUST call the `_initializeOwner` in the constructor / initializer.
///
/// While the ownable portion follows
/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,
/// the nomenclature for the 2-step ownership handover may be unique to this codebase.
abstract contract Ownable {
	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                       CUSTOM ERRORS                        */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev The caller is not authorized to call the function.
	error Unauthorized();

	/// @dev The `newOwner` cannot be the zero address.
	error NewOwnerIsZeroAddress();

	/// @dev The `pendingOwner` does not have a valid handover request.
	error NoHandoverRequest();

	/// @dev Cannot double-initialize.
	error AlreadyInitialized();

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                           EVENTS                           */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev The ownership is transferred from `oldOwner` to `newOwner`.
	/// This event is intentionally kept the same as OpenZeppelin's Ownable to be
	/// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),
	/// despite it not being as lightweight as a single argument event.
	event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);

	/// @dev An ownership handover to `pendingOwner` has been requested.
	event OwnershipHandoverRequested(address indexed pendingOwner);

	/// @dev The ownership handover to `pendingOwner` has been canceled.
	event OwnershipHandoverCanceled(address indexed pendingOwner);

	/// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`.
	uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =
		0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;

	/// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`.
	uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =
		0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;

	/// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`.
	uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =
		0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                          STORAGE                           */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev The owner slot is given by:
	/// `bytes32(~uint256(uint32(bytes4(keccak256("_OWNER_SLOT_NOT")))))`.
	/// It is intentionally chosen to be a high value
	/// to avoid collision with lower slots.
	/// The choice of manual storage layout is to enable compatibility
	/// with both regular and upgradeable contracts.
	bytes32 internal constant _OWNER_SLOT =
		0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;

	/// The ownership handover slot of `newOwner` is given by:
	/// ```
	///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))
	///     let handoverSlot := keccak256(0x00, 0x20)
	/// ```
	/// It stores the expiry timestamp of the two-step ownership handover.
	uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                     INTERNAL FUNCTIONS                     */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Override to return true to make `_initializeOwner` prevent double-initialization.
	function _guardInitializeOwner() internal pure virtual returns (bool guard) {}

	/// @dev Initializes the owner directly without authorization guard.
	/// This function must be called upon initialization,
	/// regardless of whether the contract is upgradeable or not.
	/// This is to enable generalization to both regular and upgradeable contracts,
	/// and to save gas in case the initial owner is not the caller.
	/// For performance reasons, this function will not check if there
	/// is an existing owner.
	function _initializeOwner(address newOwner) internal virtual {
		if (_guardInitializeOwner()) {
			/// @solidity memory-safe-assembly
			assembly {
				let ownerSlot := _OWNER_SLOT
				if sload(ownerSlot) {
					mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.
					revert(0x1c, 0x04)
				}
				// Clean the upper 96 bits.
				newOwner := shr(96, shl(96, newOwner))
				// Store the new value.
				sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
				// Emit the {OwnershipTransferred} event.
				log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
			}
		} else {
			/// @solidity memory-safe-assembly
			assembly {
				// Clean the upper 96 bits.
				newOwner := shr(96, shl(96, newOwner))
				// Store the new value.
				sstore(_OWNER_SLOT, newOwner)
				// Emit the {OwnershipTransferred} event.
				log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
			}
		}
	}

	/// @dev Sets the owner directly without authorization guard.
	function _setOwner(address newOwner) internal virtual {
		if (_guardInitializeOwner()) {
			/// @solidity memory-safe-assembly
			assembly {
				let ownerSlot := _OWNER_SLOT
				// Clean the upper 96 bits.
				newOwner := shr(96, shl(96, newOwner))
				// Emit the {OwnershipTransferred} event.
				log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
				// Store the new value.
				sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
			}
		} else {
			/// @solidity memory-safe-assembly
			assembly {
				let ownerSlot := _OWNER_SLOT
				// Clean the upper 96 bits.
				newOwner := shr(96, shl(96, newOwner))
				// Emit the {OwnershipTransferred} event.
				log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
				// Store the new value.
				sstore(ownerSlot, newOwner)
			}
		}
	}

	/// @dev Throws if the sender is not the owner.
	function _checkOwner() internal view virtual {
		/// @solidity memory-safe-assembly
		assembly {
			// If the caller is not the stored owner, revert.
			if iszero(eq(caller(), sload(_OWNER_SLOT))) {
				mstore(0x00, 0x82b42900) // `Unauthorized()`.
				revert(0x1c, 0x04)
			}
		}
	}

	/// @dev Returns how long a two-step ownership handover is valid for in seconds.
	/// Override to return a different value if needed.
	/// Made internal to conserve bytecode. Wrap it in a public function if needed.
	function _ownershipHandoverValidFor() internal view virtual returns (uint64) {
		return 48 * 3600;
	}

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                  PUBLIC UPDATE FUNCTIONS                   */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Allows the owner to transfer the ownership to `newOwner`.
	function transferOwnership(address newOwner) public payable virtual onlyOwner {
		/// @solidity memory-safe-assembly
		assembly {
			if iszero(shl(96, newOwner)) {
				mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.
				revert(0x1c, 0x04)
			}
		}
		_setOwner(newOwner);
	}

	/// @dev Allows the owner to renounce their ownership.
	function renounceOwnership() public payable virtual onlyOwner {
		_setOwner(address(0));
	}

	/// @dev Request a two-step ownership handover to the caller.
	/// The request will automatically expire in 48 hours (172800 seconds) by default.
	function requestOwnershipHandover() public payable virtual {
		unchecked {
			uint256 expires = block.timestamp + _ownershipHandoverValidFor();
			/// @solidity memory-safe-assembly
			assembly {
				// Compute and set the handover slot to `expires`.
				mstore(0x0c, _HANDOVER_SLOT_SEED)
				mstore(0x00, caller())
				sstore(keccak256(0x0c, 0x20), expires)
				// Emit the {OwnershipHandoverRequested} event.
				log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())
			}
		}
	}

	/// @dev Cancels the two-step ownership handover to the caller, if any.
	function cancelOwnershipHandover() public payable virtual {
		/// @solidity memory-safe-assembly
		assembly {
			// Compute and set the handover slot to 0.
			mstore(0x0c, _HANDOVER_SLOT_SEED)
			mstore(0x00, caller())
			sstore(keccak256(0x0c, 0x20), 0)
			// Emit the {OwnershipHandoverCanceled} event.
			log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())
		}
	}

	/// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.
	/// Reverts if there is no existing ownership handover requested by `pendingOwner`.
	function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {
		/// @solidity memory-safe-assembly
		assembly {
			// Compute and set the handover slot to 0.
			mstore(0x0c, _HANDOVER_SLOT_SEED)
			mstore(0x00, pendingOwner)
			let handoverSlot := keccak256(0x0c, 0x20)
			// If the handover does not exist, or has expired.
			if gt(timestamp(), sload(handoverSlot)) {
				mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.
				revert(0x1c, 0x04)
			}
			// Set the handover slot to 0.
			sstore(handoverSlot, 0)
		}
		_setOwner(pendingOwner);
	}

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                   PUBLIC READ FUNCTIONS                    */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Returns the owner of the contract.
	function owner() public view virtual returns (address result) {
		/// @solidity memory-safe-assembly
		assembly {
			result := sload(_OWNER_SLOT)
		}
	}

	/// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.
	function ownershipHandoverExpiresAt(address pendingOwner)
		public
		view
		virtual
		returns (uint256 result)
	{
		/// @solidity memory-safe-assembly
		assembly {
			// Compute the handover slot.
			mstore(0x0c, _HANDOVER_SLOT_SEED)
			mstore(0x00, pendingOwner)
			// Load the handover slot.
			result := sload(keccak256(0x0c, 0x20))
		}
	}

	/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
	/*                         MODIFIERS                          */
	/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

	/// @dev Marks a function as only callable by the owner.
	modifier onlyOwner() virtual {
		_checkOwner();
		_;
	}
}

// File: https://github.com/Vectorized/dn404/blob/main/src/DN404Mirror.sol


pragma solidity ^0.8.4;

/// @title DN404Mirror
/// @notice DN404Mirror provides an interface for interacting with the
/// NFT tokens in a DN404 implementation.
///
/// @author vectorized.eth (@optimizoor)
/// @author Quit (@0xQuit)
/// @author Michael Amadi (@AmadiMichaels)
/// @author cygaar (@0xCygaar)
/// @author Thomas (@0xjustadev)
/// @author Harrison (@PopPunkOnChain)
///
/// @dev Note:
/// - The ERC721 data is stored in the base DN404 contract.
contract DN404Mirror is Ownable {
	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                           EVENTS                           */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Emitted when token `id` is transferred from `from` to `to`.
	event Transfer(address indexed from, address indexed to, uint256 indexed id);

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

	/// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens.
	event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved);

	/// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`.
	uint256 private constant _TRANSFER_EVENT_SIGNATURE =
		0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

	/// @dev `keccak256(bytes("Approval(address,address,uint256)"))`.
	uint256 private constant _APPROVAL_EVENT_SIGNATURE =
		0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925;

	/// @dev `keccak256(bytes("ApprovalForAll(address,address,bool)"))`.
	uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =
		0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                        CUSTOM ERRORS                       */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Thrown when a call for an NFT function did not originate
	/// from the base DN404 contract.
	error SenderNotBase();

	/// @dev Thrown when a call for an NFT function did not originate from the deployer.
	error SenderNotDeployer();

	/// @dev Thrown when transferring an NFT to a contract address that
	/// does not implement ERC721Receiver.
	error TransferToNonERC721ReceiverImplementer();

	/// @dev Thrown when linking to the DN404 base contract and the
	/// DN404 supportsInterface check fails or the call reverts.
	error CannotLink();

	/// @dev Thrown when a linkMirrorContract call is received and the
	/// NFT mirror contract has already been linked to a DN404 base contract.
	error AlreadyLinked();

	/// @dev Thrown when retrieving the base DN404 address when a link has not
	/// been established.
	error NotLinked();

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                          STORAGE                           */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Struct contain the NFT mirror contract storage.
	struct DN404NFTStorage {
		address baseERC20;
		address deployer;
	}

	/// @dev Returns a storage pointer for DN404NFTStorage.
	function _getDN404NFTStorage() internal pure virtual returns (DN404NFTStorage storage $) {
		/// @solidity memory-safe-assembly
		assembly {
			// `uint72(bytes9(keccak256("DN404_MIRROR_STORAGE")))`.
			$.slot := 0x3602298b8c10b01230 // Truncate to 9 bytes to reduce bytecode size.
		}
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                        CONSTRUCTOR                         */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	constructor(address deployer) {
		// For non-proxies, we will store the deployer so that only the deployer can
		// link the base contract.
		_getDN404NFTStorage().deployer = deployer;
		_initializeOwner(deployer);
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                     ERC721 OPERATIONS                      */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns the token collection name from the base DN404 contract.
	function name() public view virtual returns (string memory result) {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			result := mload(0x40)
			mstore(0x00, 0x06fdde03) // `name()`.
			if iszero(staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x00)) {
				returndatacopy(result, 0x00, returndatasize())
				revert(result, returndatasize())
			}
			returndatacopy(0x00, 0x00, 0x20)
			returndatacopy(result, mload(0x00), 0x20)
			returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
			mstore(0x40, add(add(result, 0x20), mload(result)))
		}
	}

	/// @dev Returns the token collection symbol from the base DN404 contract.
	function symbol() public view virtual returns (string memory result) {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			result := mload(0x40)
			mstore(0x00, 0x95d89b41) // `symbol()`.
			if iszero(staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x00)) {
				returndatacopy(result, 0x00, returndatasize())
				revert(result, returndatasize())
			}
			returndatacopy(0x00, 0x00, 0x20)
			returndatacopy(result, mload(0x00), 0x20)
			returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
			mstore(0x40, add(add(result, 0x20), mload(result)))
		}
	}

	/// @dev Returns the Uniform Resource Identifier (URI) for token `id` from
	/// the base DN404 contract.
	function tokenURI(uint256 id) public view virtual returns (string memory result) {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			result := mload(0x40)
			mstore(0x20, id)
			mstore(0x00, 0xc87b56dd) // `tokenURI()`.
			if iszero(staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x00)) {
				returndatacopy(result, 0x00, returndatasize())
				revert(result, returndatasize())
			}
			returndatacopy(0x00, 0x00, 0x20)
			returndatacopy(result, mload(0x00), 0x20)
			returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
			mstore(0x40, add(add(result, 0x20), mload(result)))
		}
	}

	/// @dev Returns the total NFT supply from the base DN404 contract.
	function totalSupply() public view virtual returns (uint256 result) {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x00, 0xe2c79281) // `totalNFTSupply()`.
			if iszero(
				and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x20))
			) {
				returndatacopy(mload(0x40), 0x00, returndatasize())
				revert(mload(0x40), returndatasize())
			}
			result := mload(0x00)
		}
	}

	/// @dev Returns the number of NFT tokens owned by `owner` from the base DN404 contract.
	///
	/// Requirements:
	/// - `owner` must not be the zero address.
	function balanceOf(address owner) public view virtual returns (uint256 result) {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x20, shr(96, shl(96, owner)))
			mstore(0x00, 0xf5b100ea) // `balanceOfNFT(address)`.
			if iszero(
				and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
			) {
				returndatacopy(mload(0x40), 0x00, returndatasize())
				revert(mload(0x40), returndatasize())
			}
			result := mload(0x00)
		}
	}

	/// @dev Returns the owner of token `id` from the base DN404 contract.
	///
	/// Requirements:
	/// - Token `id` must exist.
	function ownerOf(uint256 id) public view virtual returns (address result) {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x00, 0x6352211e) // `ownerOf(uint256)`.
			mstore(0x20, id)
			if iszero(
				and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
			) {
				returndatacopy(mload(0x40), 0x00, returndatasize())
				revert(mload(0x40), returndatasize())
			}
			result := shr(96, mload(0x0c))
		}
	}

	/// @dev Sets `spender` as the approved account to manage token `id` in
	/// the base DN404 contract.
	///
	/// Requirements:
	/// - Token `id` must exist.
	/// - The caller must be the owner of the token,
	///   or an approved operator for the token owner.
	///
	/// Emits an {Approval} event.
	function approve(address spender, uint256 id) public virtual {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			spender := shr(96, shl(96, spender))
			let m := mload(0x40)
			mstore(0x00, 0xd10b6e0c) // `approveNFT(address,uint256,address)`.
			mstore(0x20, spender)
			mstore(0x40, id)
			mstore(0x60, caller())
			if iszero(
				and(
					gt(returndatasize(), 0x1f),
					call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20)
				)
			) {
				returndatacopy(m, 0x00, returndatasize())
				revert(m, returndatasize())
			}
			mstore(0x40, m) // Restore the free memory pointer.
			mstore(0x60, 0) // Restore the zero pointer.
			// Emit the {Approval} event.
			log4(codesize(), 0x00, _APPROVAL_EVENT_SIGNATURE, shr(96, mload(0x0c)), spender, id)
		}
	}

	/// @dev Returns the account approved to manage token `id` from
	/// the base DN404 contract.
	///
	/// Requirements:
	/// - Token `id` must exist.
	function getApproved(uint256 id) public view virtual returns (address result) {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x00, 0x081812fc) // `getApproved(uint256)`.
			mstore(0x20, id)
			if iszero(
				and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
			) {
				returndatacopy(mload(0x40), 0x00, returndatasize())
				revert(mload(0x40), returndatasize())
			}
			result := shr(96, mload(0x0c))
		}
	}

	/// @dev Sets whether `operator` is approved to manage the tokens of the caller in
	/// the base DN404 contract.
	///
	/// Emits an {ApprovalForAll} event.
	function setApprovalForAll(address operator, bool approved) public virtual {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			operator := shr(96, shl(96, operator))
			let m := mload(0x40)
			mstore(0x00, 0x813500fc) // `setApprovalForAll(address,bool,address)`.
			mstore(0x20, operator)
			mstore(0x40, iszero(iszero(approved)))
			mstore(0x60, caller())
			if iszero(
				and(eq(mload(0x00), 1), call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20))
			) {
				returndatacopy(m, 0x00, returndatasize())
				revert(m, returndatasize())
			}
			// Emit the {ApprovalForAll} event.
			log3(0x40, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), operator)
			mstore(0x40, m) // Restore the free memory pointer.
			mstore(0x60, 0) // Restore the zero pointer.
		}
	}

	/// @dev Returns whether `operator` is approved to manage the tokens of `owner` from
	/// the base DN404 contract.
	function isApprovedForAll(address owner, address operator)
		public
		view
		virtual
		returns (bool result)
	{
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			let m := mload(0x40)
			mstore(0x40, operator)
			mstore(0x2c, shl(96, owner))
			mstore(0x0c, 0xe985e9c5000000000000000000000000) // `isApprovedForAll(address,address)`.
			if iszero(
				and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x44, 0x00, 0x20))
			) {
				returndatacopy(m, 0x00, returndatasize())
				revert(m, returndatasize())
			}
			mstore(0x40, m) // Restore the free memory pointer.
			result := iszero(iszero(mload(0x00)))
		}
	}

	/// @dev Transfers token `id` from `from` to `to`.
	///
	/// Requirements:
	///
	/// - Token `id` must exist.
	/// - `from` must be the owner of the token.
	/// - `to` cannot be the zero address.
	/// - The caller must be the owner of the token, or be approved to manage the token.
	///
	/// Emits a {Transfer} event.
	function transferFrom(address from, address to, uint256 id) public virtual {
		address base = baseERC20();
		/// @solidity memory-safe-assembly
		assembly {
			from := shr(96, shl(96, from))
			to := shr(96, shl(96, to))
			let m := mload(0x40)
			mstore(m, 0xe5eb36c8) // `transferFromNFT(address,address,uint256,address)`.
			mstore(add(m, 0x20), from)
			mstore(add(m, 0x40), to)
			mstore(add(m, 0x60), id)
			mstore(add(m, 0x80), caller())
			if iszero(
				and(eq(mload(m), 1), call(gas(), base, callvalue(), add(m, 0x1c), 0x84, m, 0x20))
			) {
				returndatacopy(m, 0x00, returndatasize())
				revert(m, returndatasize())
			}
			// Emit the {Transfer} event.
			log4(codesize(), 0x00, _TRANSFER_EVENT_SIGNATURE, from, to, id)
		}
	}

	/// @dev Equivalent to `safeTransferFrom(from, to, id, "")`.
	function safeTransferFrom(address from, address to, uint256 id) public payable virtual {
		transferFrom(from, to, id);

		if (_hasCode(to)) _checkOnERC721Received(from, to, id, "");
	}

	/// @dev Transfers token `id` from `from` to `to`.
	///
	/// Requirements:
	///
	/// - Token `id` must exist.
	/// - `from` must be the owner of the token.
	/// - `to` cannot be the zero address.
	/// - The caller must be the owner of the token, or be approved to manage the token.
	/// - 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 id, bytes calldata data)
		public
		virtual
	{
		transferFrom(from, to, id);

		if (_hasCode(to)) _checkOnERC721Received(from, to, id, data);
	}

	/// @dev Returns true if this contract implements the interface defined by `interfaceId`.
	/// See: https://eips.ethereum.org/EIPS/eip-165
	/// This function call must use less than 30000 gas.
	function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {
		/// @solidity memory-safe-assembly
		assembly {
			let s := shr(224, interfaceId)
			// ERC165: 0x01ffc9a7, ERC721: 0x80ac58cd, ERC721Metadata: 0x5b5e139f.
			result := or(or(eq(s, 0x01ffc9a7), eq(s, 0x80ac58cd)), eq(s, 0x5b5e139f))
		}
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                     MIRROR OPERATIONS                      */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns the address of the base DN404 contract.
	function baseERC20() public view virtual returns (address base) {
		base = _getDN404NFTStorage().baseERC20;
		if (base == address(0)) revert NotLinked();
	}

	/// @dev Fallback modifier to execute calls from the base DN404 contract.
	modifier dn404NFTFallback() virtual {
		DN404NFTStorage storage $ = _getDN404NFTStorage();

		uint256 fnSelector = _calldataload(0x00) >> 224;

		// `logTransfer(uint256[])`.
		if (fnSelector == 0x263c69d6) {
			if (msg.sender != $.baseERC20) revert SenderNotBase();
			/// @solidity memory-safe-assembly
			assembly {
				// When returndatacopy copies 1 or more out-of-bounds bytes, it reverts.
				returndatacopy(0x00, returndatasize(), lt(calldatasize(), 0x20))
				let o := add(0x24, calldataload(0x04)) // Packed logs offset.
				returndatacopy(0x00, returndatasize(), lt(calldatasize(), o))
				let end := add(o, shl(5, calldataload(sub(o, 0x20))))
				returndatacopy(0x00, returndatasize(), lt(calldatasize(), end))

				for {} iszero(eq(o, end)) { o := add(0x20, o) } {
					let d := calldataload(o) // Entry in the packed logs.
					let a := shr(96, d) // The address.
					let b := and(1, d) // Whether it is a burn.
					log4(
						codesize(),
						0x00,
						_TRANSFER_EVENT_SIGNATURE,
						mul(a, b),
						mul(a, iszero(b)),
						shr(168, shl(160, d))
					)
				}
				mstore(0x00, 0x01)
				return(0x00, 0x20)
			}
		}
		// `linkMirrorContract(address)`.
		if (fnSelector == 0x0f4599e5) {
			if ($.deployer != address(0)) {
				if (address(uint160(_calldataload(0x04))) != $.deployer) {
					revert SenderNotDeployer();
				}
			}
			if ($.baseERC20 != address(0)) revert AlreadyLinked();
			$.baseERC20 = msg.sender;
			/// @solidity memory-safe-assembly
			assembly {
				mstore(0x00, 0x01)
				return(0x00, 0x20)
			}
		}
		_;
	}

	/// @dev Fallback function for calls from base DN404 contract.
	fallback() external payable virtual dn404NFTFallback {}

	receive() external payable virtual {}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                      PRIVATE HELPERS                       */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns the calldata value at `offset`.
	function _calldataload(uint256 offset) private pure returns (uint256 value) {
		/// @solidity memory-safe-assembly
		assembly {
			value := calldataload(offset)
		}
	}

	/// @dev Returns if `a` has bytecode of non-zero length.
	function _hasCode(address a) private view returns (bool result) {
		/// @solidity memory-safe-assembly
		assembly {
			result := extcodesize(a) // Can handle dirty upper bits.
		}
	}

	/// @dev Perform a call to invoke {IERC721Receiver-onERC721Received} on `to`.
	/// Reverts if the target does not support the function correctly.
	function _checkOnERC721Received(address from, address to, uint256 id, bytes memory data)
		private
	{
		/// @solidity memory-safe-assembly
		assembly {
			// Prepare the calldata.
			let m := mload(0x40)
			let onERC721ReceivedSelector := 0x150b7a02
			mstore(m, onERC721ReceivedSelector)
			mstore(add(m, 0x20), caller()) // The `operator`, which is always `msg.sender`.
			mstore(add(m, 0x40), shr(96, shl(96, from)))
			mstore(add(m, 0x60), id)
			mstore(add(m, 0x80), 0x80)
			let n := mload(data)
			mstore(add(m, 0xa0), n)
			if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xc0), n)) }
			// Revert if the call reverts.
			if iszero(call(gas(), to, 0, add(m, 0x1c), add(n, 0xa4), m, 0x20)) {
				if returndatasize() {
					// Bubble up the revert if the call reverts.
					returndatacopy(m, 0x00, returndatasize())
					revert(m, returndatasize())
				}
			}
			// Load the returndata and compare it.
			if iszero(eq(mload(m), shl(224, onERC721ReceivedSelector))) {
				mstore(0x00, 0xd1a57ed6) // `TransferToNonERC721ReceiverImplementer()`.
				revert(0x1c, 0x04)
			}
		}
	}
}

// File: https://github.com/Vectorized/dn404/blob/main/src/DN404.sol


pragma solidity ^0.8.4;

/// @title DN404
/// @notice DN404 is a hybrid ERC20 and ERC721 implementation that mints
/// and burns NFTs based on an account's ERC20 token balance.
///
/// @author vectorized.eth (@optimizoor)
/// @author Quit (@0xQuit)
/// @author Michael Amadi (@AmadiMichaels)
/// @author cygaar (@0xCygaar)
/// @author Thomas (@0xjustadev)
/// @author Harrison (@PopPunkOnChain)
///
/// @dev Note:
/// - The ERC721 data is stored in this base DN404 contract, however a
///   DN404Mirror contract ***MUST*** be deployed and linked during
///   initialization.
abstract contract DN404 {
	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                           EVENTS                           */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Emitted when `amount` tokens is transferred from `from` to `to`.
	event Transfer(address indexed from, address indexed to, uint256 amount);

	/// @dev Emitted when `amount` tokens is approved by `owner` to be used by `spender`.
	event Approval(address indexed owner, address indexed spender, uint256 amount);

	/// @dev Emitted when `target` sets their skipNFT flag to `status`.
	event SkipNFTSet(address indexed target, bool status);

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                        CUSTOM ERRORS                       */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Thrown when attempting to double-initialize the contract.
	error DNAlreadyInitialized();

	/// @dev Thrown when attempting to transfer or burn more tokens than sender's balance.
	error InsufficientBalance();

	/// @dev Thrown when a spender attempts to transfer tokens with an insufficient allowance.
	error InsufficientAllowance();

	/// @dev Thrown when minting an amount of tokens that would overflow the max tokens.
	error TotalSupplyOverflow();

	/// @dev Thrown when the caller for a fallback NFT function is not the mirror contract.
	error SenderNotMirror();

	/// @dev Thrown when attempting to transfer tokens to the zero address.
	error TransferToZeroAddress();

	/// @dev Thrown when the mirror address provided for initialization is the zero address.
	error MirrorAddressIsZero();

	/// @dev Thrown when the link call to the mirror contract reverts.
	error LinkMirrorContractFailed();

	/// @dev Thrown when setting an NFT token approval
	/// and the caller is not the owner or an approved operator.
	error ApprovalCallerNotOwnerNorApproved();

	/// @dev Thrown when transferring an NFT
	/// and the caller is not the owner or an approved operator.
	error TransferCallerNotOwnerNorApproved();

	/// @dev Thrown when transferring an NFT and the from address is not the current owner.
	error TransferFromIncorrectOwner();

	/// @dev Thrown when checking the owner or approved address for an non-existent NFT.
	error TokenDoesNotExist();

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                         CONSTANTS                          */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Amount of token balance that is equal to one NFT.
	uint256 internal constant _WAD = 10 ** 18;

	/// @dev The maximum token ID allowed for an NFT.
	uint256 internal constant _MAX_TOKEN_ID = 0xffffffff;

	/// @dev The maximum possible token supply.
	uint256 internal constant _MAX_SUPPLY = 10 ** 18 * 0xffffffff - 1;

	/// @dev The flag to denote that the address data is initialized.
	uint8 internal constant _ADDRESS_DATA_INITIALIZED_FLAG = 1 << 0;

	/// @dev The flag to denote that the address should skip NFTs.
	uint8 internal constant _ADDRESS_DATA_SKIP_NFT_FLAG = 1 << 1;

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                          STORAGE                           */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Struct containing an address's token data and settings.
	struct AddressData {
		// Auxiliary data.
		uint88 aux;
		// Flags for `initialized` and `skipNFT`.
		uint8 flags;
		// The alias for the address. Zero means absence of an alias.
		uint32 addressAlias;
		// The number of NFT tokens.
		uint32 ownedLength;
		// The token balance in wei.
		uint96 balance;
	}

	/// @dev A uint32 map in storage.
	struct Uint32Map {
		mapping(uint256 => uint256) map;
	}

	/// @dev Struct containing the base token contract storage.
	struct DN404Storage {
		// Current number of address aliases assigned.
		uint32 numAliases;
		// Next token ID to assign for an NFT mint.
		uint32 nextTokenId;
		// Total supply of minted NFTs.
		uint32 totalNFTSupply;
		// Total supply of tokens.
		uint96 totalSupply;
		// Address of the NFT mirror contract.
		address mirrorERC721;
		// Mapping of a user alias number to their address.
		mapping(uint32 => address) aliasToAddress;
		// Mapping of user operator approvals for NFTs.
		mapping(address => mapping(address => bool)) operatorApprovals;
		// Mapping of NFT token approvals to approved operators.
		mapping(uint256 => address) tokenApprovals;
		// Mapping of user allowances for token spenders.
		mapping(address => mapping(address => uint256)) allowance;
		// Mapping of NFT token IDs owned by an address.
		mapping(address => Uint32Map) owned;
		// Even indices: owner aliases. Odd indices: owned indices.
		Uint32Map oo;
		// Mapping of user account AddressData
		mapping(address => AddressData) addressData;
	}

	/// @dev Returns a storage pointer for DN404Storage.
	function _getDN404Storage() internal pure virtual returns (DN404Storage storage $) {
		/// @solidity memory-safe-assembly
		assembly {
			// `uint72(bytes9(keccak256("DN404_STORAGE")))`.
			$.slot := 0xa20d6e21d0e5255308 // Truncate to 9 bytes to reduce bytecode size.
		}
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                         INITIALIZER                        */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Initializes the DN404 contract with an
	/// `initialTokenSupply`, `initialTokenOwner` and `mirror` NFT contract address.
	function _initializeDN404(
		uint256 initialTokenSupply,
		address initialSupplyOwner,
		address mirror
	) internal virtual {
		DN404Storage storage $ = _getDN404Storage();

		if ($.nextTokenId != 0) revert DNAlreadyInitialized();

		if (mirror == address(0)) revert MirrorAddressIsZero();
		_linkMirrorContract(mirror);

		$.nextTokenId = 1;
		$.mirrorERC721 = mirror;

		if (initialTokenSupply > 0) {
			if (initialSupplyOwner == address(0)) revert TransferToZeroAddress();
			if (initialTokenSupply > _MAX_SUPPLY) revert TotalSupplyOverflow();

			$.totalSupply = uint96(initialTokenSupply);
			AddressData storage initialOwnerAddressData = _addressData(initialSupplyOwner);
			initialOwnerAddressData.balance = uint96(initialTokenSupply);

			emit Transfer(address(0), initialSupplyOwner, initialTokenSupply);

			_setSkipNFT(initialSupplyOwner, true);
		}
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*               METADATA FUNCTIONS TO OVERRIDE               */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns the name of the token.
	function name() public view virtual returns (string memory);

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

	/// @dev Returns the Uniform Resource Identifier (URI) for token `id`.
	function tokenURI(uint256 id) public view virtual returns (string memory);

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                      ERC20 OPERATIONS                      */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns the decimals places of the token. Always 18.
	function decimals() public pure returns (uint8) {
		return 18;
	}

	/// @dev Returns the amount of tokens in existence.
	function totalSupply() public view virtual returns (uint256) {
		return uint256(_getDN404Storage().totalSupply);
	}

	/// @dev Returns the amount of tokens owned by `owner`.
	function balanceOf(address owner) public view virtual returns (uint256) {
		return _getDN404Storage().addressData[owner].balance;
	}

	/// @dev Returns the amount of tokens that `spender` can spend on behalf of `owner`.
	function allowance(address owner, address spender) public view returns (uint256) {
		return _getDN404Storage().allowance[owner][spender];
	}

	/// @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
	///
	/// Emits a {Approval} event.
	function approve(address spender, uint256 amount) public virtual returns (bool) {
		DN404Storage storage $ = _getDN404Storage();

		$.allowance[msg.sender][spender] = amount;

		emit Approval(msg.sender, spender, amount);

		return true;
	}

	/// @dev Transfer `amount` tokens from the caller to `to`.
	///
	/// Will burn sender NFTs if balance after transfer is less than
	/// the amount required to support the current NFT balance.
	///
	/// Will mint NFTs to `to` if the recipient's new balance supports
	/// additional NFTs ***AND*** the `to` address's skipNFT flag is
	/// set to false.
	///
	/// Requirements:
	/// - `from` must at least have `amount`.
	///
	/// Emits a {Transfer} event.
	function transfer(address to, uint256 amount) public virtual returns (bool) {
		_transfer(msg.sender, to, amount);
		return true;
	}

	/// @dev Transfers `amount` tokens from `from` to `to`.
	///
	/// Note: Does not update the allowance if it is the maximum uint256 value.
	///
	/// Will burn sender NFTs if balance after transfer is less than
	/// the amount required to support the current NFT balance.
	///
	/// Will mint NFTs to `to` if the recipient's new balance supports
	/// additional NFTs ***AND*** the `to` address's skipNFT flag is
	/// set to false.
	///
	/// Requirements:
	/// - `from` must at least have `amount`.
	/// - The caller must have at least `amount` of allowance to transfer the tokens of `from`.
	///
	/// Emits a {Transfer} event.
	function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
		DN404Storage storage $ = _getDN404Storage();

		uint256 allowed = $.allowance[from][msg.sender];

		if (allowed != type(uint256).max) {
			if (amount > allowed) revert InsufficientAllowance();
			unchecked {
				$.allowance[from][msg.sender] = allowed - amount;
			}
		}

		_transfer(from, to, amount);

		return true;
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                  INTERNAL MINT FUNCTIONS                   */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Mints `amount` tokens to `to`, increasing the total supply.
	///
	/// Will mint NFTs to `to` if the recipient's new balance supports
	/// additional NFTs ***AND*** the `to` address's skipNFT flag is
	/// set to false.
	///
	/// Emits a {Transfer} event.
	function _mint(address to, uint256 amount) internal virtual {
		if (to == address(0)) revert TransferToZeroAddress();

		DN404Storage storage $ = _getDN404Storage();

		AddressData storage toAddressData = _addressData(to);

		unchecked {
			uint256 currentTokenSupply = uint256($.totalSupply) + amount;
			if (amount > _MAX_SUPPLY || currentTokenSupply > _MAX_SUPPLY) {
				revert TotalSupplyOverflow();
			}
			$.totalSupply = uint96(currentTokenSupply);

			uint256 toBalance = toAddressData.balance + amount;
			toAddressData.balance = uint96(toBalance);

			if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) {
				Uint32Map storage toOwned = $.owned[to];
				uint256 toIndex = toAddressData.ownedLength;
				uint256 toEnd = toBalance / _WAD;
				_PackedLogs memory packedLogs = _packedLogsMalloc(_zeroFloorSub(toEnd, toIndex));

				if (packedLogs.logs.length != 0) {
					uint256 maxNFTId = $.totalSupply / _WAD;
					uint32 toAlias = _registerAndResolveAlias(toAddressData, to);
					uint256 id = $.nextTokenId;
					$.totalNFTSupply += uint32(packedLogs.logs.length);
					toAddressData.ownedLength = uint32(toEnd);
					// Mint loop.
					do {
						while (_get($.oo, _ownershipIndex(id)) != 0) {
							if (++id > maxNFTId) id = 1;
						}
						_set(toOwned, toIndex, uint32(id));
						_setOwnerAliasAndOwnedIndex($.oo, id, toAlias, uint32(toIndex++));
						_packedLogsAppend(packedLogs, to, id, 0);
						if (++id > maxNFTId) id = 1;
					} while (toIndex != toEnd);
					$.nextTokenId = uint32(id);
					_packedLogsSend(packedLogs, $.mirrorERC721);
				}
			}
		}
		emit Transfer(address(0), to, amount);
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                  INTERNAL BURN FUNCTIONS                   */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Burns `amount` tokens from `from`, reducing the total supply.
	///
	/// Will burn sender NFTs if balance after transfer is less than
	/// the amount required to support the current NFT balance.
	///
	/// Emits a {Transfer} event.
	function _burn(address from, uint256 amount) internal virtual {
		DN404Storage storage $ = _getDN404Storage();

		AddressData storage fromAddressData = _addressData(from);

		uint256 fromBalance = fromAddressData.balance;
		if (amount > fromBalance) revert InsufficientBalance();

		uint256 currentTokenSupply = $.totalSupply;

		unchecked {
			fromBalance -= amount;
			fromAddressData.balance = uint96(fromBalance);
			currentTokenSupply -= amount;
			$.totalSupply = uint96(currentTokenSupply);

			Uint32Map storage fromOwned = $.owned[from];
			uint256 fromIndex = fromAddressData.ownedLength;
			uint256 nftAmountToBurn = _zeroFloorSub(fromIndex, fromBalance / _WAD);

			if (nftAmountToBurn != 0) {
				$.totalNFTSupply -= uint32(nftAmountToBurn);

				_PackedLogs memory packedLogs = _packedLogsMalloc(nftAmountToBurn);

				uint256 fromEnd = fromIndex - nftAmountToBurn;
				// Burn loop.
				do {
					uint256 id = _get(fromOwned, --fromIndex);
					_setOwnerAliasAndOwnedIndex($.oo, id, 0, 0);
					delete $.tokenApprovals[id];
					_packedLogsAppend(packedLogs, from, id, 1);
				} while (fromIndex != fromEnd);

				fromAddressData.ownedLength = uint32(fromIndex);
				_packedLogsSend(packedLogs, $.mirrorERC721);
			}
		}
		emit Transfer(from, address(0), amount);
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                INTERNAL TRANSFER FUNCTIONS                 */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Moves `amount` of tokens from `from` to `to`.
	///
	/// Will burn sender NFTs if balance after transfer is less than
	/// the amount required to support the current NFT balance.
	///
	/// Will mint NFTs to `to` if the recipient's new balance supports
	/// additional NFTs ***AND*** the `to` address's skipNFT flag is
	/// set to false.
	///
	/// Emits a {Transfer} event.
	function _transfer(address from, address to, uint256 amount) internal virtual {
		if (to == address(0)) revert TransferToZeroAddress();

		DN404Storage storage $ = _getDN404Storage();

		AddressData storage fromAddressData = _addressData(from);
		AddressData storage toAddressData = _addressData(to);

		_TransferTemps memory t;
		t.fromOwnedLength = fromAddressData.ownedLength;
		t.toOwnedLength = toAddressData.ownedLength;
		t.fromBalance = fromAddressData.balance;

		if (amount > t.fromBalance) revert InsufficientBalance();

		unchecked {
			t.fromBalance -= amount;
			fromAddressData.balance = uint96(t.fromBalance);
			toAddressData.balance = uint96(t.toBalance = toAddressData.balance + amount);

			t.nftAmountToBurn = _zeroFloorSub(t.fromOwnedLength, t.fromBalance / _WAD);

			if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) {
				if (from == to) t.toOwnedLength = t.fromOwnedLength - t.nftAmountToBurn;
				t.nftAmountToMint = _zeroFloorSub(t.toBalance / _WAD, t.toOwnedLength);
			}

			_PackedLogs memory packedLogs = _packedLogsMalloc(t.nftAmountToBurn + t.nftAmountToMint);

			if (t.nftAmountToBurn != 0) {
				Uint32Map storage fromOwned = $.owned[from];
				uint256 fromIndex = t.fromOwnedLength;
				uint256 fromEnd = fromIndex - t.nftAmountToBurn;
				$.totalNFTSupply -= uint32(t.nftAmountToBurn);
				fromAddressData.ownedLength = uint32(fromEnd);
				// Burn loop.
				do {
					uint256 id = _get(fromOwned, --fromIndex);
					_setOwnerAliasAndOwnedIndex($.oo, id, 0, 0);
					delete $.tokenApprovals[id];
					_packedLogsAppend(packedLogs, from, id, 1);
				} while (fromIndex != fromEnd);
			}

			if (t.nftAmountToMint != 0) {
				Uint32Map storage toOwned = $.owned[to];
				uint256 toIndex = t.toOwnedLength;
				uint256 toEnd = toIndex + t.nftAmountToMint;
				uint32 toAlias = _registerAndResolveAlias(toAddressData, to);
				uint256 maxNFTId = $.totalSupply / _WAD;
				uint256 id = $.nextTokenId;
				$.totalNFTSupply += uint32(t.nftAmountToMint);
				toAddressData.ownedLength = uint32(toEnd);
				// Mint loop.
				do {
					while (_get($.oo, _ownershipIndex(id)) != 0) {
						if (++id > maxNFTId) id = 1;
					}
					_set(toOwned, toIndex, uint32(id));
					_setOwnerAliasAndOwnedIndex($.oo, id, toAlias, uint32(toIndex++));
					_packedLogsAppend(packedLogs, to, id, 0);
					if (++id > maxNFTId) id = 1;
				} while (toIndex != toEnd);
				$.nextTokenId = uint32(id);
			}

			if (packedLogs.logs.length != 0) {
				_packedLogsSend(packedLogs, $.mirrorERC721);
			}
		}
		emit Transfer(from, to, amount);
	}

	/// @dev Transfers token `id` from `from` to `to`.
	///
	/// Requirements:
	///
	/// - Call must originate from the mirror contract.
	/// - Token `id` must exist.
	/// - `from` must be the owner of the token.
	/// - `to` cannot be the zero address.
	///   `msgSender` must be the owner of the token, or be approved to manage the token.
	///
	/// Emits a {Transfer} event.
	function _transferFromNFT(address from, address to, uint256 id, address msgSender)
		internal
		virtual
	{
		DN404Storage storage $ = _getDN404Storage();

		if (to == address(0)) revert TransferToZeroAddress();

		address owner = $.aliasToAddress[_get($.oo, _ownershipIndex(id))];

		if (from != owner) revert TransferFromIncorrectOwner();

		if (msgSender != from) {
			if (!$.operatorApprovals[from][msgSender]) {
				if (msgSender != $.tokenApprovals[id]) {
					revert TransferCallerNotOwnerNorApproved();
				}
			}
		}

		AddressData storage fromAddressData = _addressData(from);
		AddressData storage toAddressData = _addressData(to);

		fromAddressData.balance -= uint96(_WAD);

		unchecked {
			toAddressData.balance += uint96(_WAD);

			_set($.oo, _ownershipIndex(id), _registerAndResolveAlias(toAddressData, to));
			delete $.tokenApprovals[id];

			uint256 updatedId = _get($.owned[from], --fromAddressData.ownedLength);
			_set($.owned[from], _get($.oo, _ownedIndex(id)), uint32(updatedId));

			uint256 n = toAddressData.ownedLength++;
			_set($.oo, _ownedIndex(updatedId), _get($.oo, _ownedIndex(id)));
			_set($.owned[to], n, uint32(id));
			_set($.oo, _ownedIndex(id), uint32(n));
		}

		emit Transfer(from, to, _WAD);
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                 DATA HITCHHIKING FUNCTIONS                 */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns the auxiliary data for `owner`.
	/// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data.
	/// Auxiliary data can be set for any address, even if it does not have any tokens.
	function _getAux(address owner) internal view virtual returns (uint88) {
		return _getDN404Storage().addressData[owner].aux;
	}

	/// @dev Set the auxiliary data for `owner` to `value`.
	/// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data.
	/// Auxiliary data can be set for any address, even if it does not have any tokens.
	function _setAux(address owner, uint88 value) internal virtual {
		_getDN404Storage().addressData[owner].aux = value;
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                     SKIP NFT FUNCTIONS                     */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns true if account `a` will skip NFT minting on token mints and transfers.
	/// Returns false if account `a` will mint NFTs on token mints and transfers.
	function getSkipNFT(address a) public view virtual returns (bool) {
		AddressData storage d = _getDN404Storage().addressData[a];
		if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) return _hasCode(a);
		return d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0;
	}

	/// @dev Sets the caller's skipNFT flag to `skipNFT`
	///
	/// Emits a {SkipNFTSet} event.
	function setSkipNFT(bool skipNFT) public virtual {
		_setSkipNFT(msg.sender, skipNFT);
	}

	/// @dev Internal function to set account `a` skipNFT flag to `state`
	///
	/// Initializes account `a` AddressData if it is not currently initialized.
	///
	/// Emits a {SkipNFTSet} event.
	function _setSkipNFT(address a, bool state) internal virtual {
		AddressData storage d = _addressData(a);
		if ((d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0) != state) {
			d.flags ^= _ADDRESS_DATA_SKIP_NFT_FLAG;
		}
		emit SkipNFTSet(a, state);
	}

	/// @dev Returns a storage data pointer for account `a` AddressData
	///
	/// Initializes account `a` AddressData if it is not currently initialized.
	function _addressData(address a) internal virtual returns (AddressData storage d) {
		DN404Storage storage $ = _getDN404Storage();
		d = $.addressData[a];

		if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) {
			uint8 flags = _ADDRESS_DATA_INITIALIZED_FLAG;
			if (_hasCode(a)) flags |= _ADDRESS_DATA_SKIP_NFT_FLAG;
			d.flags = flags;
		}
	}

	/// @dev Returns the `addressAlias` of account `to`.
	///
	/// Assigns and registers the next alias if `to` alias was not previously registered.
	function _registerAndResolveAlias(AddressData storage toAddressData, address to)
		internal
		virtual
		returns (uint32 addressAlias)
	{
		DN404Storage storage $ = _getDN404Storage();
		addressAlias = toAddressData.addressAlias;
		if (addressAlias == 0) {
			addressAlias = ++$.numAliases;
			toAddressData.addressAlias = addressAlias;
			$.aliasToAddress[addressAlias] = to;
		}
	}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                     MIRROR OPERATIONS                      */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Returns the address of the mirror NFT contract.
	function mirrorERC721() public view virtual returns (address) {
		return _getDN404Storage().mirrorERC721;
	}

	/// @dev Returns the total NFT supply.
	function _totalNFTSupply() internal view virtual returns (uint256) {
		return _getDN404Storage().totalNFTSupply;
	}

	/// @dev Returns `owner` NFT balance.
	function _balanceOfNFT(address owner) internal view virtual returns (uint256) {
		return _getDN404Storage().addressData[owner].ownedLength;
	}

	/// @dev Returns the owner of token `id`.
	/// Returns the zero address instead of reverting if the token does not exist.
	function _ownerAt(uint256 id) internal view virtual returns (address) {
		DN404Storage storage $ = _getDN404Storage();
		return $.aliasToAddress[_get($.oo, _ownershipIndex(id))];
	}

	/// @dev Returns the owner of token `id`.
	///
	/// Requirements:
	/// - Token `id` must exist.
	function _ownerOf(uint256 id) internal view virtual returns (address) {
		if (!_exists(id)) revert TokenDoesNotExist();
		return _ownerAt(id);
	}

	/// @dev Returns if token `id` exists.
	function _exists(uint256 id) internal view virtual returns (bool) {
		return _ownerAt(id) != address(0);
	}

	/// @dev Returns the account approved to manage token `id`.
	///
	/// Requirements:
	/// - Token `id` must exist.
	function _getApproved(uint256 id) internal view virtual returns (address) {
		if (!_exists(id)) revert TokenDoesNotExist();
		return _getDN404Storage().tokenApprovals[id];
	}

	/// @dev Sets `spender` as the approved account to manage token `id`, using `msgSender`.
	///
	/// Requirements:
	/// - `msgSender` must be the owner or an approved operator for the token owner.
	function _approveNFT(address spender, uint256 id, address msgSender)
		internal
		virtual
		returns (address)
	{
		DN404Storage storage $ = _getDN404Storage();

		address owner = $.aliasToAddress[_get($.oo, _ownershipIndex(id))];

		if (msgSender != owner) {
			if (!$.operatorApprovals[owner][msgSender]) {
				revert ApprovalCallerNotOwnerNorApproved();
			}
		}

		$.tokenApprovals[id] = spender;

		return owner;
	}

	/// @dev Approve or remove the `operator` as an operator for `msgSender`,
	/// without authorization checks.
	function _setApprovalForAll(address operator, bool approved, address msgSender)
		internal
		virtual
	{
		_getDN404Storage().operatorApprovals[msgSender][operator] = approved;
	}

	/// @dev Calls the mirror contract to link it to this contract.
	///
	/// Reverts if the call to the mirror contract reverts.
	function _linkMirrorContract(address mirror) internal virtual {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x00, 0x0f4599e5) // `linkMirrorContract(address)`.
			mstore(0x20, caller())
			if iszero(and(eq(mload(0x00), 1), call(gas(), mirror, 0, 0x1c, 0x24, 0x00, 0x20))) {
				mstore(0x00, 0xd125259c) // `LinkMirrorContractFailed()`.
				revert(0x1c, 0x04)
			}
		}
	}

	/// @dev Fallback modifier to dispatch calls from the mirror NFT contract
	/// to internal functions in this contract.
	modifier dn404Fallback() virtual {
		DN404Storage storage $ = _getDN404Storage();

		uint256 fnSelector = _calldataload(0x00) >> 224;

		// `isApprovedForAll(address,address)`.
		if (fnSelector == 0xe985e9c5) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x44) revert();

			address owner = address(uint160(_calldataload(0x04)));
			address operator = address(uint160(_calldataload(0x24)));

			_return($.operatorApprovals[owner][operator] ? 1 : 0);
		}
		// `ownerOf(uint256)`.
		if (fnSelector == 0x6352211e) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x24) revert();

			uint256 id = _calldataload(0x04);

			_return(uint160(_ownerOf(id)));
		}
		// `transferFromNFT(address,address,uint256,address)`.
		if (fnSelector == 0xe5eb36c8) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x84) revert();

			address from = address(uint160(_calldataload(0x04)));
			address to = address(uint160(_calldataload(0x24)));
			uint256 id = _calldataload(0x44);
			address msgSender = address(uint160(_calldataload(0x64)));

			_transferFromNFT(from, to, id, msgSender);
			_return(1);
		}
		// `setApprovalForAll(address,bool,address)`.
		if (fnSelector == 0x813500fc) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x64) revert();

			address spender = address(uint160(_calldataload(0x04)));
			bool status = _calldataload(0x24) != 0;
			address msgSender = address(uint160(_calldataload(0x44)));

			_setApprovalForAll(spender, status, msgSender);
			_return(1);
		}
		// `approveNFT(address,uint256,address)`.
		if (fnSelector == 0xd10b6e0c) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x64) revert();

			address spender = address(uint160(_calldataload(0x04)));
			uint256 id = _calldataload(0x24);
			address msgSender = address(uint160(_calldataload(0x44)));

			_return(uint160(_approveNFT(spender, id, msgSender)));
		}
		// `getApproved(uint256)`.
		if (fnSelector == 0x081812fc) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x24) revert();

			uint256 id = _calldataload(0x04);

			_return(uint160(_getApproved(id)));
		}
		// `balanceOfNFT(address)`.
		if (fnSelector == 0xf5b100ea) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x24) revert();

			address owner = address(uint160(_calldataload(0x04)));

			_return(_balanceOfNFT(owner));
		}
		// `totalNFTSupply()`.
		if (fnSelector == 0xe2c79281) {
			if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
			if (msg.data.length < 0x04) revert();

			_return(_totalNFTSupply());
		}
		// `implementsDN404()`.
		if (fnSelector == 0xb7a94eb8) {
			_return(1);
		}
		_;
	}

	/// @dev Fallback function for calls from mirror NFT contract.
	fallback() external payable virtual dn404Fallback {}

	receive() external payable virtual {}

	/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
	/*                      PRIVATE HELPERS                       */
	/*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

	/// @dev Struct containing packed log data for `Transfer` events to be
	/// emitted by the mirror NFT contract.
	struct _PackedLogs {
		uint256[] logs;
		uint256 offset;
	}

	/// @dev Initiates memory allocation for packed logs with `n` log items.
	function _packedLogsMalloc(uint256 n) private pure returns (_PackedLogs memory p) {
		/// @solidity memory-safe-assembly
		assembly {
			let logs := add(mload(0x40), 0x40) // Offset by 2 words for `_packedLogsSend`.
			mstore(logs, n)
			let offset := add(0x20, logs)
			mstore(0x40, add(offset, shl(5, n)))
			mstore(p, logs)
			mstore(add(0x20, p), offset)
		}
	}

	/// @dev Adds a packed log item to `p` with address `a`, token `id` and burn flag `burnBit`.
	function _packedLogsAppend(_PackedLogs memory p, address a, uint256 id, uint256 burnBit)
		private
		pure
	{
		/// @solidity memory-safe-assembly
		assembly {
			let offset := mload(add(0x20, p))
			mstore(offset, or(or(shl(96, a), shl(8, id)), burnBit))
			mstore(add(0x20, p), add(offset, 0x20))
		}
	}

	/// @dev Calls the `mirror` NFT contract to emit Transfer events for packed logs `p`.
	function _packedLogsSend(_PackedLogs memory p, address mirror) private {
		/// @solidity memory-safe-assembly
		assembly {
			let logs := mload(p)
			let o := sub(logs, 0x40) // Start of calldata to send.
			mstore(o, 0x263c69d6) // `logTransfer(uint256[])`.
			mstore(add(o, 0x20), 0x20) // Offset of `logs` in the calldata to send.
			let n := add(0x44, shl(5, mload(logs))) // Length of calldata to send.
			if iszero(and(eq(mload(o), 1), call(gas(), mirror, 0, add(o, 0x1c), n, o, 0x20))) {
				revert(o, 0x00)
			}
		}
	}

	/// @dev Struct of temporary variables for transfers.
	struct _TransferTemps {
		uint256 nftAmountToBurn;
		uint256 nftAmountToMint;
		uint256 fromBalance;
		uint256 toBalance;
		uint256 fromOwnedLength;
		uint256 toOwnedLength;
	}

	/// @dev Returns if `a` has bytecode of non-zero length.
	function _hasCode(address a) private view returns (bool result) {
		/// @solidity memory-safe-assembly
		assembly {
			result := extcodesize(a) // Can handle dirty upper bits.
		}
	}

	/// @dev Returns the calldata value at `offset`.
	function _calldataload(uint256 offset) private pure returns (uint256 value) {
		/// @solidity memory-safe-assembly
		assembly {
			value := calldataload(offset)
		}
	}

	/// @dev Executes a return opcode to return `x` and end the current call frame.
	function _return(uint256 x) private pure {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x00, x)
			return(0x00, 0x20)
		}
	}

	/// @dev Returns `max(0, x - y)`.
	function _zeroFloorSub(uint256 x, uint256 y) private pure returns (uint256 z) {
		/// @solidity memory-safe-assembly
		assembly {
			z := mul(gt(x, y), sub(x, y))
		}
	}

	/// @dev Returns `i << 1`.
	function _ownershipIndex(uint256 i) private pure returns (uint256) {
		return i << 1;
	}

	/// @dev Returns `(i << 1) + 1`.
	function _ownedIndex(uint256 i) private pure returns (uint256) {
		unchecked {
			return (i << 1) + 1;
		}
	}

	/// @dev Returns the uint32 value at `index` in `map`.
	function _get(Uint32Map storage map, uint256 index) private view returns (uint32 result) {
		result = uint32(map.map[index >> 3] >> ((index & 7) << 5));
	}

	/// @dev Updates the uint32 value at `index` in `map`.
	function _set(Uint32Map storage map, uint256 index, uint32 value) private {
		/// @solidity memory-safe-assembly
		assembly {
			mstore(0x20, map.slot)
			mstore(0x00, shr(3, index))
			let s := keccak256(0x00, 0x40) // Storage slot.
			let o := shl(5, and(index, 7)) // Storage slot offset (bits).
			let v := sload(s) // Storage slot value.
			let m := 0xffffffff // Value mask.
			sstore(s, xor(v, shl(o, and(m, xor(shr(o, v), value)))))
		}
	}

	/// @dev Sets the owner alias and the owned index together.
	function _setOwnerAliasAndOwnedIndex(
		Uint32Map storage map,
		uint256 id,
		uint32 ownership,
		uint32 ownedIndex
	) private {
		/// @solidity memory-safe-assembly
		assembly {
			let value := or(shl(32, ownedIndex), and(0xffffffff, ownership))
			mstore(0x20, map.slot)
			mstore(0x00, shr(2, id))
			let s := keccak256(0x00, 0x40) // Storage slot.
			let o := shl(6, and(id, 3)) // Storage slot offset (bits).
			let v := sload(s) // Storage slot value.
			let m := 0xffffffffffffffff // Value mask.
			sstore(s, xor(v, shl(o, and(m, xor(shr(o, v), value)))))
		}
	}
}

// File: contracts/dndblocks.sol


pragma solidity ^0.8.4;






contract SimpleDN404 is DN404, Ownable {
	string private _name;
	string private _symbol;
	string private _baseURI;

	constructor(
		string memory name_,
		string memory symbol_,
		uint96 initialTokenSupply,
		address initialSupplyOwner
	) {
		_initializeOwner(msg.sender);

		_name = name_;
		_symbol = symbol_;

		address mirror = address(new DN404Mirror(msg.sender));
		_initializeDN404(initialTokenSupply, initialSupplyOwner, mirror);
	}

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

	function symbol() public view override returns (string memory) {
		return _symbol;
	}

	function tokenURI(uint256 tokenId) public view override returns (string memory result) {
		if (bytes(_baseURI).length != 0) {
			uint256 seed = uint256(keccak256(abi.encodePacked(tokenId, address(this))));
			result = string(abi.encodePacked(_baseURI, LibString.toString(seed),".json"));
		}
	}

	// This allows the owner of the contract to mint more tokens.
	function mint(address to, uint256 amount) public onlyOwner {
		_mint(to, amount);
	}

	function setBaseURI(string calldata baseURI_) public onlyOwner {
		_baseURI = baseURI_;
	}

	function withdraw() public onlyOwner {
		SafeTransferLib.safeTransferAllETH(msg.sender);
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint96","name":"initialTokenSupply","type":"uint96"},{"internalType":"address","name":"initialSupplyOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"DNAlreadyInitialized","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"LinkMirrorContractFailed","type":"error"},{"inputs":[],"name":"MirrorAddressIsZero","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"SenderNotMirror","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TotalSupplyOverflow","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SkipNFTSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"getSkipNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mirrorERC721","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"skipNFT","type":"bool"}],"name":"setSkipNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"result","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":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801562000010575f80fd5b5060405162005d2d38038062005d2d8339818101604052810190620000369190620008a3565b6200004733620000cf60201b60201c565b835f908162000057919062000b87565b50826001908162000069919062000b87565b505f336040516200007a9062000669565b62000086919062000c7c565b604051809103905ff080158015620000a0573d5f803e3d5ffd5b509050620000c4836bffffffffffffffffffffffff168383620001b060201b60201c565b505050505062000cfa565b620000df620004a260201b60201c565b156200015a577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278054156200011b57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a350620001ad565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f620001c1620004a660201b60201c565b90505f815f0160049054906101000a900463ffffffff1663ffffffff161462000216576040517fead4d2e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200027c576040517f39a84a7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200028d82620004b660201b60201c565b6001815f0160046101000a81548163ffffffff021916908363ffffffff16021790555081816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f8411156200049c575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000361576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6b0de0b6b39983494c589bffff841115620003a8576040517fe5cfe95700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83815f01600c6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505f620003ec84620004e760201b60201c565b905084815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055508373ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef876040516200047f919062000ca8565b60405180910390a36200049a846001620005a160201b60201c565b505b50505050565b5f90565b5f68a20d6e21d0e5255308905090565b630f4599e55f523360205260205f6024601c5f855af160015f511416620004e45763d125259c5f526004601cfd5b50565b5f80620004f9620004a660201b60201c565b9050806008015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2091505f6001835f01600b9054906101000a900460ff161660ff16036200059b575f6001905062000570846200065f60201b60201c565b156200057d576002811790505b80835f01600b6101000a81548160ff021916908360ff160217905550505b50919050565b5f620005b383620004e760201b60201c565b90508115155f6002835f01600b9054906101000a900460ff161660ff1614151515146200060a576002815f01600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8273ffffffffffffffffffffffffffffffffffffffff167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d64203938360405162000652919062000cdf565b60405180910390a2505050565b5f813b9050919050565b611723806200460a83390190565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b620006d88262000690565b810181811067ffffffffffffffff82111715620006fa57620006f9620006a0565b5b80604052505050565b5f6200070e62000677565b90506200071c8282620006cd565b919050565b5f67ffffffffffffffff8211156200073e576200073d620006a0565b5b620007498262000690565b9050602081019050919050565b5f5b838110156200077557808201518184015260208101905062000758565b5f8484015250505050565b5f62000796620007908462000721565b62000703565b905082815260208101848484011115620007b557620007b46200068c565b5b620007c284828562000756565b509392505050565b5f82601f830112620007e157620007e062000688565b5b8151620007f384826020860162000780565b91505092915050565b5f6bffffffffffffffffffffffff82169050919050565b6200081e81620007fc565b811462000829575f80fd5b50565b5f815190506200083c8162000813565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200086d8262000842565b9050919050565b6200087f8162000861565b81146200088a575f80fd5b50565b5f815190506200089d8162000874565b92915050565b5f805f8060808587031215620008be57620008bd62000680565b5b5f85015167ffffffffffffffff811115620008de57620008dd62000684565b5b620008ec87828801620007ca565b945050602085015167ffffffffffffffff81111562000910576200090f62000684565b5b6200091e87828801620007ca565b935050604062000931878288016200082c565b925050606062000944878288016200088d565b91505092959194509250565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200099f57607f821691505b602082108103620009b557620009b46200095a565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830262000a197fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620009dc565b62000a258683620009dc565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f62000a6f62000a6962000a638462000a3d565b62000a46565b62000a3d565b9050919050565b5f819050919050565b62000a8a8362000a4f565b62000aa262000a998262000a76565b848454620009e8565b825550505050565b5f90565b62000ab862000aaa565b62000ac581848462000a7f565b505050565b5b8181101562000aec5762000ae05f8262000aae565b60018101905062000acb565b5050565b601f82111562000b3b5762000b0581620009bb565b62000b1084620009cd565b8101602085101562000b20578190505b62000b3862000b2f85620009cd565b83018262000aca565b50505b505050565b5f82821c905092915050565b5f62000b5d5f198460080262000b40565b1980831691505092915050565b5f62000b77838362000b4c565b9150826002028217905092915050565b62000b928262000950565b67ffffffffffffffff81111562000bae5762000bad620006a0565b5b62000bba825462000987565b62000bc782828562000af0565b5f60209050601f83116001811462000bfd575f841562000be8578287015190505b62000bf4858262000b6a565b86555062000c63565b601f19841662000c0d86620009bb565b5f5b8281101562000c365784890151825560018201915060208501945060208101905062000c0f565b8683101562000c56578489015162000c52601f89168262000b4c565b8355505b6001600288020188555050505b505050505050565b62000c768162000861565b82525050565b5f60208201905062000c915f83018462000c6b565b92915050565b62000ca28162000a3d565b82525050565b5f60208201905062000cbd5f83018462000c97565b92915050565b5f8115159050919050565b62000cd98162000cc3565b82525050565b5f60208201905062000cf45f83018462000cce565b92915050565b6139028062000d085f395ff3fe608060405260043610610143575f3560e01c806354d1f13d116100b5578063a9059cbb1161006e578063a9059cbb14610b6c578063c87b56dd14610ba8578063dd62ed3e14610be4578063f04e283e14610c20578063f2fde38b14610c3c578063fee81cf414610c585761014a565b806354d1f13d14610aa057806355f804b314610aaa57806370a0823114610ad2578063715018a614610b0e5780638da5cb5b14610b1857806395d89b4114610b425761014a565b8063274e430b11610107578063274e430b146109aa5780632a6a935d146109e6578063313ce56714610a0e5780633ccfd60b14610a3857806340c10f1914610a4e5780634ef41efc14610a765761014a565b806306fdde03146108d4578063095ea7b3146108fe57806318160ddd1461093a57806323b872dd1461096457806325692962146109a05761014a565b3661014a57005b5f610153610c94565b90505f60e06101615f610ca4565b901c905063e985e9c581036102c457816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101f8576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60445f3690501015610208575f80fd5b5f6102136004610ca4565b90505f6102206024610ca4565b90506102c1846003015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166102b6575f6102b9565b60015b60ff16610cae565b50505b636352211e810361039d57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610357576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60245f3690501015610367575f80fd5b5f6103726004610ca4565b905061039b61038082610cb6565b73ffffffffffffffffffffffffffffffffffffffff16610cae565b505b63e5eb36c8810361048f57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610430576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60845f3690501015610440575f80fd5b5f61044b6004610ca4565b90505f6104586024610ca4565b90505f6104656044610ca4565b90505f6104726064610ca4565b905061048084848484610d06565b61048a6001610cae565b505050505b63813500fc810361057557816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610522576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60645f3690501015610532575f80fd5b5f61053d6004610ca4565b90505f8061054b6024610ca4565b141590505f61055a6044610ca4565b90506105678383836112e1565b6105716001610cae565b5050505b63d10b6e0c810361066c57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610608576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60645f3690501015610618575f80fd5b5f6106236004610ca4565b90505f6106306024610ca4565b90505f61063d6044610ca4565b905061066861064d84848461137e565b73ffffffffffffffffffffffffffffffffffffffff16610cae565b5050505b63081812fc810361074557816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106ff576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60245f369050101561070f575f80fd5b5f61071a6004610ca4565b90506107436107288261152e565b73ffffffffffffffffffffffffffffffffffffffff16610cae565b505b63f5b100ea810361080857816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d8576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60245f36905010156107e8575f80fd5b5f6107f36004610ca4565b9050610806610801826115af565b610cae565b505b63e2c7928181036108bc57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461089b576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045f36905010156108ab575f80fd5b6108bb6108b6611616565b610cae565b5b63b7a94eb881036108d2576108d16001610cae565b5b005b3480156108df575f80fd5b506108e861163d565b6040516108f59190612f93565b60405180910390f35b348015610909575f80fd5b50610924600480360381019061091f9190613048565b6116cc565b60405161093191906130a0565b60405180910390f35b348015610945575f80fd5b5061094e6117c7565b60405161095b91906130c8565b60405180910390f35b34801561096f575f80fd5b5061098a600480360381019061098591906130e1565b6117fe565b60405161099791906130a0565b60405180910390f35b6109a8611983565b005b3480156109b5575f80fd5b506109d060048036038101906109cb9190613131565b6119d4565b6040516109dd91906130a0565b60405180910390f35b3480156109f1575f80fd5b50610a0c6004803603810190610a079190613186565b611a6f565b005b348015610a19575f80fd5b50610a22611a7c565b604051610a2f91906131cc565b60405180910390f35b348015610a43575f80fd5b50610a4c611a84565b005b348015610a59575f80fd5b50610a746004803603810190610a6f9190613048565b611a97565b005b348015610a81575f80fd5b50610a8a611aad565b604051610a9791906131f4565b60405180910390f35b610aa8611ade565b005b348015610ab5575f80fd5b50610ad06004803603810190610acb919061326e565b611b17565b005b348015610add575f80fd5b50610af86004803603810190610af39190613131565b611b35565b604051610b0591906130c8565b60405180910390f35b610b16611bac565b005b348015610b23575f80fd5b50610b2c611bbf565b604051610b3991906131f4565b60405180910390f35b348015610b4d575f80fd5b50610b56611be7565b604051610b639190612f93565b60405180910390f35b348015610b77575f80fd5b50610b926004803603810190610b8d9190613048565b611c77565b604051610b9f91906130a0565b60405180910390f35b348015610bb3575f80fd5b50610bce6004803603810190610bc991906132b9565b611c8d565b604051610bdb9190612f93565b60405180910390f35b348015610bef575f80fd5b50610c0a6004803603810190610c0591906132e4565b611d06565b604051610c1791906130c8565b60405180910390f35b610c3a6004803603810190610c359190613131565b611d91565b005b610c566004803603810190610c519190613131565b611dcf565b005b348015610c63575f80fd5b50610c7e6004803603810190610c799190613131565b611df8565b604051610c8b91906130c8565b60405180910390f35b5f68a20d6e21d0e5255308905090565b5f81359050919050565b805f5260205ff35b5f610cc082611e11565b610cf6576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cff82611e51565b9050919050565b5f610d0f610c94565b90505f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610d76576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816002015f610d9184600701610d8c88611eb8565b611ec5565b63ffffffff1663ffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610e31576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610f8857816003015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610f8757816004015f8581526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610f86576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b5f610f9287611eef565b90505f610f9e87611eef565b9050670de0b6b3a7640000825f0160148282829054906101000a90046bffffffffffffffffffffffff16610fd29190613366565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550670de0b6b3a7640000815f0160148282829054906101000a90046bffffffffffffffffffffffff160192506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506110768460070161106788611eb8565b611071848b611f97565b61208a565b836004015f8781526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f611130856006015f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20845f01601081819054906101000a900463ffffffff166001900391906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16611ec5565b63ffffffff16905061119b856006015f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061118f8760070161118a8b6120bc565b611ec5565b63ffffffff168361208a565b5f825f01601081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff16021790555063ffffffff169050611209866007016111ef846120bc565b611204896007016111ff8d6120bc565b611ec5565b61208a565b611252866006015f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20828a61208a565b611268866007016112628a6120bc565b8361208a565b50508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef670de0b6b3a76400006040516112cf91906130c8565b60405180910390a35050505050505050565b816112ea610c94565b6003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550505050565b5f80611388610c94565b90505f816002015f6113a5846007016113a089611eb8565b611ec5565b63ffffffff1663ffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146114d157816003015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166114d0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b85826004015f8781526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080925050509392505050565b5f61153882611e11565b61156e576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611576610c94565b6004015f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6115b8610c94565b6008015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0160109054906101000a900463ffffffff1663ffffffff169050919050565b5f61161f610c94565b5f0160089054906101000a900463ffffffff1663ffffffff16905090565b60605f805461164b906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611677906133d2565b80156116c25780601f10611699576101008083540402835291602001916116c2565b820191905f5260205f20905b8154815290600101906020018083116116a557829003601f168201915b5050505050905090565b5f806116d6610c94565b905082816005015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516117b491906130c8565b60405180910390a3600191505092915050565b5f6117d0610c94565b5f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905090565b5f80611808610c94565b90505f816005015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461196b57808411156118e9576040517f13be252b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b838103826005015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b6119768686866120cb565b6001925050509392505050565b5f61198c61274a565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f806119de610c94565b6008015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f6001825f01600b9054906101000a900460ff161660ff1603611a4c57611a4483612754565b915050611a6a565b5f6002825f01600b9054906101000a900460ff161660ff1614159150505b919050565b611a79338261275e565b50565b5f6012905090565b611a8c612811565b611a9533612848565b565b611a9f612811565b611aa98282612864565b5050565b5f611ab6610c94565b6001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b611b1f612811565b818160029182611b309291906135d6565b505050565b5f611b3e610c94565b6008015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050919050565b611bb4612811565b611bbd5f612cc8565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b606060018054611bf6906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611c22906133d2565b8015611c6d5780601f10611c4457610100808354040283529160200191611c6d565b820191905f5260205f20905b815481529060010190602001808311611c5057829003601f168201915b5050505050905090565b5f611c833384846120cb565b6001905092915050565b60605f60028054611c9d906133d2565b905014611d01575f8230604051602001611cb8929190613708565b604051602081830303815290604052805190602001205f1c90506002611cdd82612d8e565b604051602001611cee929190613837565b6040516020818303038152906040529150505b919050565b5f611d0f610c94565b6005015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b611d99612811565b63389a75e1600c52805f526020600c208054421115611dbf57636f5e88185f526004601cfd5b5f815550611dcc81612cc8565b50565b611dd7612811565b8060601b611dec57637448fbae5f526004601cfd5b611df581612cc8565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff16611e3283611e51565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b5f80611e5b610c94565b9050806002015f611e7783600701611e7287611eb8565b611ec5565b63ffffffff1663ffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b5f600182901b9050919050565b5f600560078316901b835f015f600385901c81526020019081526020015f2054901c905092915050565b5f80611ef9610c94565b9050806008015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2091505f6001835f01600b9054906101000a900460ff161660ff1603611f91575f60019050611f6784612754565b15611f73576002811790505b80835f01600b6101000a81548160ff021916908360ff160217905550505b50919050565b5f80611fa1610c94565b9050835f01600c9054906101000a900463ffffffff1691505f8263ffffffff160361208357805f015f81819054906101000a900463ffffffff16611fe490613874565b91906101000a81548163ffffffff021916908363ffffffff1602179055915081845f01600c6101000a81548163ffffffff021916908363ffffffff16021790555082816002015f8463ffffffff1663ffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5092915050565b826020528160031c5f5260405f206007831660051b815463ffffffff8482841c188116831b8218845550505050505050565b5f60018083901b019050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612130576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612139610c94565b90505f61214585611eef565b90505f61215185611eef565b905061215b612ec0565b825f0160109054906101000a900463ffffffff1663ffffffff16816080018181525050815f0160109054906101000a900463ffffffff1663ffffffff168160a0018181525050825f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168160400181815250508060400151851115612212576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b848160400181815103915081815250508060400151835f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555084825f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16018160600181815250825f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506122e78160800151670de0b6b3a76400008360400151816122e1576122e061389f565b5b04612ddd565b815f0181815250505f6002835f01600b9054906101000a900460ff161660ff1603612387578573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff160361235357805f01518160800151038160a00181815250505b61237d670de0b6b3a76400008260600151816123725761237161389f565b5b048260a00151612ddd565b8160200181815250505b5f61239a8260200151835f015101612ded565b90505f825f0151146124cd575f856006015f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f836080015190505f845f015182039050845f0151885f0160088282829054906101000a900463ffffffff160392506101000a81548163ffffffff021916908363ffffffff16021790555080875f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b5f612468848460019003945084611ec5565b63ffffffff16905061247f89600701825f80612e1a565b886004015f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556124c1858d836001612e5e565b50808203612456575050505b5f8260200151146126a2575f856006015f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f8360a0015190505f8460200151820190505f612537878c611f97565b90505f670de0b6b3a76400008a5f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168161257b5761257a61389f565b5b0490505f8a5f0160049054906101000a900463ffffffff1663ffffffff16905087602001518b5f0160088282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff16021790555083895f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b5b5f6126108c60070161260b84611eb8565b611ec5565b63ffffffff1614612633578181600101915081111561262e57600190505b6125fa565b61263e86868361208a565b6126538b600701828588806001019950612e1a565b61265f878e835f612e5e565b8181600101915081111561267257600190505b8385036125f957808b5f0160046101000a81548163ffffffff021916908363ffffffff1602179055505050505050505b5f815f015151146126db576126da81866001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612e80565b5b508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8760405161273991906130c8565b60405180910390a350505050505050565b5f6202a300905090565b5f813b9050919050565b5f61276883611eef565b90508115155f6002835f01600b9054906101000a900460ff161660ff1614151515146127be576002815f01600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8273ffffffffffffffffffffffffffffffffffffffff167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d64203938360405161280491906130a0565b60405180910390a2505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314612846576382b429005f526004601cfd5b565b5f385f3847855af16128615763b12d13eb5f526004601cfd5b50565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128c9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6128d2610c94565b90505f6128de84611eef565b90505f83835f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff160190506b0de0b6b39983494c589bffff84118061293457506b0de0b6b39983494c589bffff81115b1561296b576040517fe5cfe95700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80835f01600c6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505f84835f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1601905080835f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505f6002845f01600b9054906101000a900460ff161660ff1603612c5b575f846006015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f845f0160109054906101000a900463ffffffff1663ffffffff1690505f670de0b6b3a76400008481612a9357612a9261389f565b5b0490505f612aa9612aa48385612ddd565b612ded565b90505f815f01515114612c56575f670de0b6b3a7640000895f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1681612af857612af761389f565b5b0490505f612b06898d611f97565b90505f8a5f0160049054906101000a900463ffffffff1663ffffffff169050835f0151518b5f0160088282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff160217905550848a5f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b5b5f612b9a8c600701612b9584611eb8565b611ec5565b63ffffffff1614612bbd5782816001019150811115612bb857600190505b612b84565b612bc887878361208a565b612bdd8b600701828489806001019a50612e1a565b612be9848e835f612e5e565b82816001019150811115612bfc57600190505b848603612b8357808b5f0160046101000a81548163ffffffff021916908363ffffffff160217905550612c52848c6001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612e80565b5050505b505050505b50508373ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051612cba91906130c8565b60405180910390a350505050565b612cd0612ebc565b15612d35577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550612d8b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b60606080604051019050602081016040525f8152805f19835b600115612dc8578184019350600a81066030018453600a8104905080612da7575b50828203602084039350808452505050919050565b5f81830382841102905092915050565b612df5612ef0565b6040805101828152806020018360051b81016040528183528083602001525050919050565b8163ffffffff168160201b17846020528360021c5f5260405f206003851660061b815467ffffffffffffffff8482841c188116831b82188455505050505050505050565b8360200151818360081b8560601b171781526020810185602001525050505050565b81516040810363263c69d68152602080820152815160051b60440160208282601c85015f885af1600183511416612eb5575f82fd5b5050505050565b5f90565b6040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b6040518060400160405280606081526020015f81525090565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612f40578082015181840152602081019050612f25565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612f6582612f09565b612f6f8185612f13565b9350612f7f818560208601612f23565b612f8881612f4b565b840191505092915050565b5f6020820190508181035f830152612fab8184612f5b565b905092915050565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612fe482612fbb565b9050919050565b612ff481612fda565b8114612ffe575f80fd5b50565b5f8135905061300f81612feb565b92915050565b5f819050919050565b61302781613015565b8114613031575f80fd5b50565b5f813590506130428161301e565b92915050565b5f806040838503121561305e5761305d612fb3565b5b5f61306b85828601613001565b925050602061307c85828601613034565b9150509250929050565b5f8115159050919050565b61309a81613086565b82525050565b5f6020820190506130b35f830184613091565b92915050565b6130c281613015565b82525050565b5f6020820190506130db5f8301846130b9565b92915050565b5f805f606084860312156130f8576130f7612fb3565b5b5f61310586828701613001565b935050602061311686828701613001565b925050604061312786828701613034565b9150509250925092565b5f6020828403121561314657613145612fb3565b5b5f61315384828501613001565b91505092915050565b61316581613086565b811461316f575f80fd5b50565b5f813590506131808161315c565b92915050565b5f6020828403121561319b5761319a612fb3565b5b5f6131a884828501613172565b91505092915050565b5f60ff82169050919050565b6131c6816131b1565b82525050565b5f6020820190506131df5f8301846131bd565b92915050565b6131ee81612fda565b82525050565b5f6020820190506132075f8301846131e5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261322e5761322d61320d565b5b8235905067ffffffffffffffff81111561324b5761324a613211565b5b60208301915083600182028301111561326757613266613215565b5b9250929050565b5f806020838503121561328457613283612fb3565b5b5f83013567ffffffffffffffff8111156132a1576132a0612fb7565b5b6132ad85828601613219565b92509250509250929050565b5f602082840312156132ce576132cd612fb3565b5b5f6132db84828501613034565b91505092915050565b5f80604083850312156132fa576132f9612fb3565b5b5f61330785828601613001565b925050602061331885828601613001565b9150509250929050565b5f6bffffffffffffffffffffffff82169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61337082613322565b915061337b83613322565b925082820390506bffffffffffffffffffffffff81111561339f5761339e613339565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806133e957607f821691505b6020821081036133fc576133fb6133a5565b5b50919050565b5f82905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026134957fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261345a565b61349f868361345a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6134da6134d56134d084613015565b6134b7565b613015565b9050919050565b5f819050919050565b6134f3836134c0565b6135076134ff826134e1565b848454613466565b825550505050565b5f90565b61351b61350f565b6135268184846134ea565b505050565b5b818110156135495761353e5f82613513565b60018101905061352c565b5050565b601f82111561358e5761355f81613439565b6135688461344b565b81016020851015613577578190505b61358b6135838561344b565b83018261352b565b50505b505050565b5f82821c905092915050565b5f6135ae5f1984600802613593565b1980831691505092915050565b5f6135c6838361359f565b9150826002028217905092915050565b6135e08383613402565b67ffffffffffffffff8111156135f9576135f861340c565b5b61360382546133d2565b61360e82828561354d565b5f601f83116001811461363b575f8415613629578287013590505b61363385826135bb565b86555061369a565b601f19841661364986613439565b5f5b828110156136705784890135825560018201915060208501945060208101905061364b565b8683101561368d5784890135613689601f89168261359f565b8355505b6001600288020188555050505b50505050505050565b5f819050919050565b6136bd6136b882613015565b6136a3565b82525050565b5f8160601b9050919050565b5f6136d9826136c3565b9050919050565b5f6136ea826136cf565b9050919050565b6137026136fd82612fda565b6136e0565b82525050565b5f61371382856136ac565b60208201915061372382846136f1565b6014820191508190509392505050565b5f81905092915050565b5f8154613749816133d2565b6137538186613733565b9450600182165f811461376d5760018114613782576137b4565b60ff19831686528115158202860193506137b4565b61378b85613439565b5f5b838110156137ac5781548189015260018201915060208101905061378d565b838801955050505b50505092915050565b5f6137c782612f09565b6137d18185613733565b93506137e1818560208601612f23565b80840191505092915050565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000005f82015250565b5f613821600583613733565b915061382c826137ed565b600582019050919050565b5f613842828561373d565b915061384e82846137bd565b915061385982613815565b91508190509392505050565b5f63ffffffff82169050919050565b5f61387e82613865565b915063ffffffff820361389457613893613339565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffdfea2646970667358221220f5c45eb14f8fc8897e626c533ba97f281b3fc2230fdfbcc3ce47a2a57084b85364736f6c63430008180033608060405234801562000010575f80fd5b5060405162001723380380620017238339818101604052810190620000369190620001f9565b80620000476200009f60201b60201c565b6001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200009881620000af60201b60201c565b5062000229565b5f683602298b8c10b01230905090565b620000bf6200019060201b60201c565b156200013a577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805415620000fb57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3506200018d565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f90565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620001c38262000198565b9050919050565b620001d581620001b7565b8114620001e0575f80fd5b50565b5f81519050620001f381620001ca565b92915050565b5f6020828403121562000211576200021062000194565b5b5f6200022084828501620001e3565b91505092915050565b6114ec80620002375f395ff3fe608060405260043610610138575f3560e01c8063715018a6116100aa578063b88d4fde1161006e578063b88d4fde146106a4578063c87b56dd146106cc578063e985e9c514610708578063f04e283e14610744578063f2fde38b14610760578063fee81cf41461077c5761013f565b8063715018a6146105f45780638da5cb5b146105fe57806395d89b411461062857806397e5311c14610652578063a22cb4651461067c5761013f565b806323b872dd116100fc57806323b872dd14610524578063256929621461054c57806342842e0e1461055657806354d1f13d146105725780636352211e1461057c57806370a08231146105b85761013f565b806301ffc9a71461043057806306fdde031461046c578063081812fc14610496578063095ea7b3146104d257806318160ddd146104fa5761013f565b3661013f57005b5f6101486107b8565b90505f60e06101565f6107c8565b901c905063263c69d6810361026a57815f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101ec576040517f363cb31200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602036103d5f3e6004356024018036103d5f3e602081033560051b81018036103d5f3e5b8082146102615781358060601c816001168260a01b60a81c811583028284027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f38a4505050816020019150610210565b60015f5260205ff35b630f4599e5810361042e575f73ffffffffffffffffffffffffffffffffffffffff16826001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461035d57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661030f60046107c8565b73ffffffffffffffffffffffffffffffffffffffff161461035c576040517fc59ec47a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff16825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146103e4576040517fbf656a4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33825f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060015f5260205ff35b005b34801561043b575f80fd5b5061045660048036038101906104519190611062565b6107d2565b60405161046391906110a7565b60405180910390f35b348015610477575f80fd5b506104806107f6565b60405161048d919061114a565b60405180910390f35b3480156104a1575f80fd5b506104bc60048036038101906104b7919061119d565b610849565b6040516104c99190611207565b60405180910390f35b3480156104dd575f80fd5b506104f860048036038101906104f3919061124a565b61088d565b005b348015610505575f80fd5b5061050e61090d565b60405161051b9190611297565b60405180910390f35b34801561052f575f80fd5b5061054a600480360381019061054591906112b0565b610947565b005b6105546109d3565b005b610570600480360381019061056b91906112b0565b610a24565b005b61057a610a5d565b005b348015610587575f80fd5b506105a2600480360381019061059d919061119d565b610a96565b6040516105af9190611207565b60405180910390f35b3480156105c3575f80fd5b506105de60048036038101906105d99190611300565b610ada565b6040516105eb9190611297565b60405180910390f35b6105fc610b20565b005b348015610609575f80fd5b50610612610b33565b60405161061f9190611207565b60405180910390f35b348015610633575f80fd5b5061063c610b5b565b604051610649919061114a565b60405180910390f35b34801561065d575f80fd5b50610666610bae565b6040516106739190611207565b60405180910390f35b348015610687575f80fd5b506106a2600480360381019061069d9190611355565b610c43565b005b3480156106af575f80fd5b506106ca60048036038101906106c591906113f4565b610cc2565b005b3480156106d7575f80fd5b506106f260048036038101906106ed919061119d565b610d32565b6040516106ff919061114a565b60405180910390f35b348015610713575f80fd5b5061072e60048036038101906107299190611478565b610d8b565b60405161073b91906110a7565b60405180910390f35b61075e60048036038101906107599190611300565b610de6565b005b61077a60048036038101906107759190611300565b610e24565b005b348015610787575f80fd5b506107a2600480360381019061079d9190611300565b610e4d565b6040516107af9190611297565b60405180910390f35b5f683602298b8c10b01230905090565b5f81359050919050565b5f8160e01c635b5e139f81146380ac58cd82146301ffc9a783141717915050919050565b60605f610801610bae565b905060405191506306fdde035f525f806004601c845afa610824573d5f833e3d82fd5b60205f803e60205f51833e815160205f5101602084013e815160208301016040525090565b5f80610853610bae565b905063081812fc5f528260205260205f6024601c845afa601f3d111661087f573d5f6040513e3d604051fd5b600c5160601c915050919050565b5f610896610bae565b90508260601b60601c925060405163d10b6e0c5f5283602052826040523360605260205f6064601c34865af1601f3d11166108d3573d5f823e3d81fd5b806040525f6060528284600c5160601c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f38a450505050565b5f80610917610bae565b905063e2c792815f5260205f6004601c845afa601f3d111661093f573d5f6040513e3d604051fd5b5f5191505090565b5f610950610bae565b90508360601b60601c93508260601b60601c925060405163e5eb36c881528460208201528360408201528260608201523360808201526020816084601c840134865af16001825114166109a5573d5f823e3d81fd5b8284867fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f38a45050505050565b5f6109dc610e66565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b610a2f838383610947565b610a3882610e70565b15610a5857610a5783838360405180602001604052805f815250610e7a565b5b505050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f80610aa0610bae565b9050636352211e5f528260205260205f6024601c845afa601f3d1116610acc573d5f6040513e3d604051fd5b600c5160601c915050919050565b5f80610ae4610bae565b90508260601b60601c60205263f5b100ea5f5260205f6024601c845afa601f3d1116610b16573d5f6040513e3d604051fd5b5f51915050919050565b610b28610f04565b610b315f610f3b565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b60605f610b66610bae565b905060405191506395d89b415f525f806004601c845afa610b89573d5f833e3d82fd5b60205f803e60205f51833e815160205f5101602084013e815160208301016040525090565b5f610bb76107b8565b5f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c40576040517f5b2a47ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b90565b5f610c4c610bae565b90508260601b60601c925060405163813500fc5f52836020528215156040523360605260205f6064601c34865af160015f511416610c8c573d5f823e3d81fd5b83337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160206040a3806040525f60605250505050565b610ccd858585610947565b610cd684610e70565b15610d2b57610d2a85858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050610e7a565b5b5050505050565b60605f610d3d610bae565b905060405191508260205263c87b56dd5f525f806024601c845afa610d64573d5f833e3d82fd5b60205f803e60205f51833e815160205f5101602084013e8151602083010160405250919050565b5f80610d95610bae565b9050604051836040528460601b602c526fe985e9c5000000000000000000000000600c5260205f6044601c855afa601f3d1116610dd4573d5f823e3d81fd5b806040525f5115159250505092915050565b610dee610f04565b63389a75e1600c52805f526020600c208054421115610e1457636f5e88185f526004601cfd5b5f815550610e2181610f3b565b50565b610e2c610f04565b8060601b610e4157637448fbae5f526004601cfd5b610e4a81610f3b565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f6202a300905090565b5f813b9050919050565b60405163150b7a028082523360208301528560601b60601c604083015283606083015260808083015282518060a08401528015610ec1578060c08401826020870160045afa505b60208360a48301601c86015f8a5af1610ee3573d15610ee2573d5f843e3d83fd5b5b8160e01b835114610efb5763d1a57ed65f526004601cfd5b50505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610f39576382b429005f526004601cfd5b565b610f43611001565b15610fa8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550610ffe565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f90565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6110418161100d565b811461104b575f80fd5b50565b5f8135905061105c81611038565b92915050565b5f6020828403121561107757611076611005565b5b5f6110848482850161104e565b91505092915050565b5f8115159050919050565b6110a18161108d565b82525050565b5f6020820190506110ba5f830184611098565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156110f75780820151818401526020810190506110dc565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61111c826110c0565b61112681856110ca565b93506111368185602086016110da565b61113f81611102565b840191505092915050565b5f6020820190508181035f8301526111628184611112565b905092915050565b5f819050919050565b61117c8161116a565b8114611186575f80fd5b50565b5f8135905061119781611173565b92915050565b5f602082840312156111b2576111b1611005565b5b5f6111bf84828501611189565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6111f1826111c8565b9050919050565b611201816111e7565b82525050565b5f60208201905061121a5f8301846111f8565b92915050565b611229816111e7565b8114611233575f80fd5b50565b5f8135905061124481611220565b92915050565b5f80604083850312156112605761125f611005565b5b5f61126d85828601611236565b925050602061127e85828601611189565b9150509250929050565b6112918161116a565b82525050565b5f6020820190506112aa5f830184611288565b92915050565b5f805f606084860312156112c7576112c6611005565b5b5f6112d486828701611236565b93505060206112e586828701611236565b92505060406112f686828701611189565b9150509250925092565b5f6020828403121561131557611314611005565b5b5f61132284828501611236565b91505092915050565b6113348161108d565b811461133e575f80fd5b50565b5f8135905061134f8161132b565b92915050565b5f806040838503121561136b5761136a611005565b5b5f61137885828601611236565b925050602061138985828601611341565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b4576113b3611393565b5b8235905067ffffffffffffffff8111156113d1576113d0611397565b5b6020830191508360018202830111156113ed576113ec61139b565b5b9250929050565b5f805f805f6080868803121561140d5761140c611005565b5b5f61141a88828901611236565b955050602061142b88828901611236565b945050604061143c88828901611189565b935050606086013567ffffffffffffffff81111561145d5761145c611009565b5b6114698882890161139f565b92509250509295509295909350565b5f806040838503121561148e5761148d611005565b5b5f61149b85828601611236565b92505060206114ac85828601611236565b915050925092905056fea2646970667358221220782cb316a513ee25aa1d81cce13060f186e99f89ddc377c78224dcd386e2bfbd64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000015e6a0538429d0000000000000000000000000000092c6398ccc4b33c5e82d406a158eb393baf7caf50000000000000000000000000000000000000000000000000000000000000009343034426c6f636b7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009343034426c6f636b730000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405260043610610143575f3560e01c806354d1f13d116100b5578063a9059cbb1161006e578063a9059cbb14610b6c578063c87b56dd14610ba8578063dd62ed3e14610be4578063f04e283e14610c20578063f2fde38b14610c3c578063fee81cf414610c585761014a565b806354d1f13d14610aa057806355f804b314610aaa57806370a0823114610ad2578063715018a614610b0e5780638da5cb5b14610b1857806395d89b4114610b425761014a565b8063274e430b11610107578063274e430b146109aa5780632a6a935d146109e6578063313ce56714610a0e5780633ccfd60b14610a3857806340c10f1914610a4e5780634ef41efc14610a765761014a565b806306fdde03146108d4578063095ea7b3146108fe57806318160ddd1461093a57806323b872dd1461096457806325692962146109a05761014a565b3661014a57005b5f610153610c94565b90505f60e06101615f610ca4565b901c905063e985e9c581036102c457816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101f8576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60445f3690501015610208575f80fd5b5f6102136004610ca4565b90505f6102206024610ca4565b90506102c1846003015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166102b6575f6102b9565b60015b60ff16610cae565b50505b636352211e810361039d57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610357576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60245f3690501015610367575f80fd5b5f6103726004610ca4565b905061039b61038082610cb6565b73ffffffffffffffffffffffffffffffffffffffff16610cae565b505b63e5eb36c8810361048f57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610430576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60845f3690501015610440575f80fd5b5f61044b6004610ca4565b90505f6104586024610ca4565b90505f6104656044610ca4565b90505f6104726064610ca4565b905061048084848484610d06565b61048a6001610cae565b505050505b63813500fc810361057557816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610522576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60645f3690501015610532575f80fd5b5f61053d6004610ca4565b90505f8061054b6024610ca4565b141590505f61055a6044610ca4565b90506105678383836112e1565b6105716001610cae565b5050505b63d10b6e0c810361066c57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610608576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60645f3690501015610618575f80fd5b5f6106236004610ca4565b90505f6106306024610ca4565b90505f61063d6044610ca4565b905061066861064d84848461137e565b73ffffffffffffffffffffffffffffffffffffffff16610cae565b5050505b63081812fc810361074557816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106ff576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60245f369050101561070f575f80fd5b5f61071a6004610ca4565b90506107436107288261152e565b73ffffffffffffffffffffffffffffffffffffffff16610cae565b505b63f5b100ea810361080857816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d8576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60245f36905010156107e8575f80fd5b5f6107f36004610ca4565b9050610806610801826115af565b610cae565b505b63e2c7928181036108bc57816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461089b576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045f36905010156108ab575f80fd5b6108bb6108b6611616565b610cae565b5b63b7a94eb881036108d2576108d16001610cae565b5b005b3480156108df575f80fd5b506108e861163d565b6040516108f59190612f93565b60405180910390f35b348015610909575f80fd5b50610924600480360381019061091f9190613048565b6116cc565b60405161093191906130a0565b60405180910390f35b348015610945575f80fd5b5061094e6117c7565b60405161095b91906130c8565b60405180910390f35b34801561096f575f80fd5b5061098a600480360381019061098591906130e1565b6117fe565b60405161099791906130a0565b60405180910390f35b6109a8611983565b005b3480156109b5575f80fd5b506109d060048036038101906109cb9190613131565b6119d4565b6040516109dd91906130a0565b60405180910390f35b3480156109f1575f80fd5b50610a0c6004803603810190610a079190613186565b611a6f565b005b348015610a19575f80fd5b50610a22611a7c565b604051610a2f91906131cc565b60405180910390f35b348015610a43575f80fd5b50610a4c611a84565b005b348015610a59575f80fd5b50610a746004803603810190610a6f9190613048565b611a97565b005b348015610a81575f80fd5b50610a8a611aad565b604051610a9791906131f4565b60405180910390f35b610aa8611ade565b005b348015610ab5575f80fd5b50610ad06004803603810190610acb919061326e565b611b17565b005b348015610add575f80fd5b50610af86004803603810190610af39190613131565b611b35565b604051610b0591906130c8565b60405180910390f35b610b16611bac565b005b348015610b23575f80fd5b50610b2c611bbf565b604051610b3991906131f4565b60405180910390f35b348015610b4d575f80fd5b50610b56611be7565b604051610b639190612f93565b60405180910390f35b348015610b77575f80fd5b50610b926004803603810190610b8d9190613048565b611c77565b604051610b9f91906130a0565b60405180910390f35b348015610bb3575f80fd5b50610bce6004803603810190610bc991906132b9565b611c8d565b604051610bdb9190612f93565b60405180910390f35b348015610bef575f80fd5b50610c0a6004803603810190610c0591906132e4565b611d06565b604051610c1791906130c8565b60405180910390f35b610c3a6004803603810190610c359190613131565b611d91565b005b610c566004803603810190610c519190613131565b611dcf565b005b348015610c63575f80fd5b50610c7e6004803603810190610c799190613131565b611df8565b604051610c8b91906130c8565b60405180910390f35b5f68a20d6e21d0e5255308905090565b5f81359050919050565b805f5260205ff35b5f610cc082611e11565b610cf6576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cff82611e51565b9050919050565b5f610d0f610c94565b90505f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610d76576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816002015f610d9184600701610d8c88611eb8565b611ec5565b63ffffffff1663ffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610e31576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610f8857816003015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610f8757816004015f8581526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610f86576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b5f610f9287611eef565b90505f610f9e87611eef565b9050670de0b6b3a7640000825f0160148282829054906101000a90046bffffffffffffffffffffffff16610fd29190613366565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550670de0b6b3a7640000815f0160148282829054906101000a90046bffffffffffffffffffffffff160192506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506110768460070161106788611eb8565b611071848b611f97565b61208a565b836004015f8781526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f611130856006015f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20845f01601081819054906101000a900463ffffffff166001900391906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16611ec5565b63ffffffff16905061119b856006015f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2061118f8760070161118a8b6120bc565b611ec5565b63ffffffff168361208a565b5f825f01601081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff16021790555063ffffffff169050611209866007016111ef846120bc565b611204896007016111ff8d6120bc565b611ec5565b61208a565b611252866006015f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20828a61208a565b611268866007016112628a6120bc565b8361208a565b50508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef670de0b6b3a76400006040516112cf91906130c8565b60405180910390a35050505050505050565b816112ea610c94565b6003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550505050565b5f80611388610c94565b90505f816002015f6113a5846007016113a089611eb8565b611ec5565b63ffffffff1663ffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146114d157816003015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166114d0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b85826004015f8781526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080925050509392505050565b5f61153882611e11565b61156e576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611576610c94565b6004015f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6115b8610c94565b6008015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0160109054906101000a900463ffffffff1663ffffffff169050919050565b5f61161f610c94565b5f0160089054906101000a900463ffffffff1663ffffffff16905090565b60605f805461164b906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611677906133d2565b80156116c25780601f10611699576101008083540402835291602001916116c2565b820191905f5260205f20905b8154815290600101906020018083116116a557829003601f168201915b5050505050905090565b5f806116d6610c94565b905082816005015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516117b491906130c8565b60405180910390a3600191505092915050565b5f6117d0610c94565b5f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905090565b5f80611808610c94565b90505f816005015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461196b57808411156118e9576040517f13be252b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b838103826005015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b6119768686866120cb565b6001925050509392505050565b5f61198c61274a565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f806119de610c94565b6008015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f6001825f01600b9054906101000a900460ff161660ff1603611a4c57611a4483612754565b915050611a6a565b5f6002825f01600b9054906101000a900460ff161660ff1614159150505b919050565b611a79338261275e565b50565b5f6012905090565b611a8c612811565b611a9533612848565b565b611a9f612811565b611aa98282612864565b5050565b5f611ab6610c94565b6001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b611b1f612811565b818160029182611b309291906135d6565b505050565b5f611b3e610c94565b6008015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050919050565b611bb4612811565b611bbd5f612cc8565b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b606060018054611bf6906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611c22906133d2565b8015611c6d5780601f10611c4457610100808354040283529160200191611c6d565b820191905f5260205f20905b815481529060010190602001808311611c5057829003601f168201915b5050505050905090565b5f611c833384846120cb565b6001905092915050565b60605f60028054611c9d906133d2565b905014611d01575f8230604051602001611cb8929190613708565b604051602081830303815290604052805190602001205f1c90506002611cdd82612d8e565b604051602001611cee929190613837565b6040516020818303038152906040529150505b919050565b5f611d0f610c94565b6005015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b611d99612811565b63389a75e1600c52805f526020600c208054421115611dbf57636f5e88185f526004601cfd5b5f815550611dcc81612cc8565b50565b611dd7612811565b8060601b611dec57637448fbae5f526004601cfd5b611df581612cc8565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff16611e3283611e51565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b5f80611e5b610c94565b9050806002015f611e7783600701611e7287611eb8565b611ec5565b63ffffffff1663ffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b5f600182901b9050919050565b5f600560078316901b835f015f600385901c81526020019081526020015f2054901c905092915050565b5f80611ef9610c94565b9050806008015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2091505f6001835f01600b9054906101000a900460ff161660ff1603611f91575f60019050611f6784612754565b15611f73576002811790505b80835f01600b6101000a81548160ff021916908360ff160217905550505b50919050565b5f80611fa1610c94565b9050835f01600c9054906101000a900463ffffffff1691505f8263ffffffff160361208357805f015f81819054906101000a900463ffffffff16611fe490613874565b91906101000a81548163ffffffff021916908363ffffffff1602179055915081845f01600c6101000a81548163ffffffff021916908363ffffffff16021790555082816002015f8463ffffffff1663ffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5092915050565b826020528160031c5f5260405f206007831660051b815463ffffffff8482841c188116831b8218845550505050505050565b5f60018083901b019050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612130576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612139610c94565b90505f61214585611eef565b90505f61215185611eef565b905061215b612ec0565b825f0160109054906101000a900463ffffffff1663ffffffff16816080018181525050815f0160109054906101000a900463ffffffff1663ffffffff168160a0018181525050825f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168160400181815250508060400151851115612212576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b848160400181815103915081815250508060400151835f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555084825f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16018160600181815250825f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506122e78160800151670de0b6b3a76400008360400151816122e1576122e061389f565b5b04612ddd565b815f0181815250505f6002835f01600b9054906101000a900460ff161660ff1603612387578573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff160361235357805f01518160800151038160a00181815250505b61237d670de0b6b3a76400008260600151816123725761237161389f565b5b048260a00151612ddd565b8160200181815250505b5f61239a8260200151835f015101612ded565b90505f825f0151146124cd575f856006015f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f836080015190505f845f015182039050845f0151885f0160088282829054906101000a900463ffffffff160392506101000a81548163ffffffff021916908363ffffffff16021790555080875f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b5f612468848460019003945084611ec5565b63ffffffff16905061247f89600701825f80612e1a565b886004015f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556124c1858d836001612e5e565b50808203612456575050505b5f8260200151146126a2575f856006015f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f8360a0015190505f8460200151820190505f612537878c611f97565b90505f670de0b6b3a76400008a5f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168161257b5761257a61389f565b5b0490505f8a5f0160049054906101000a900463ffffffff1663ffffffff16905087602001518b5f0160088282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff16021790555083895f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b5b5f6126108c60070161260b84611eb8565b611ec5565b63ffffffff1614612633578181600101915081111561262e57600190505b6125fa565b61263e86868361208a565b6126538b600701828588806001019950612e1a565b61265f878e835f612e5e565b8181600101915081111561267257600190505b8385036125f957808b5f0160046101000a81548163ffffffff021916908363ffffffff1602179055505050505050505b5f815f015151146126db576126da81866001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612e80565b5b508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8760405161273991906130c8565b60405180910390a350505050505050565b5f6202a300905090565b5f813b9050919050565b5f61276883611eef565b90508115155f6002835f01600b9054906101000a900460ff161660ff1614151515146127be576002815f01600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8273ffffffffffffffffffffffffffffffffffffffff167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d64203938360405161280491906130a0565b60405180910390a2505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314612846576382b429005f526004601cfd5b565b5f385f3847855af16128615763b12d13eb5f526004601cfd5b50565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128c9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6128d2610c94565b90505f6128de84611eef565b90505f83835f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff160190506b0de0b6b39983494c589bffff84118061293457506b0de0b6b39983494c589bffff81115b1561296b576040517fe5cfe95700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80835f01600c6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505f84835f0160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1601905080835f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505f6002845f01600b9054906101000a900460ff161660ff1603612c5b575f846006015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f845f0160109054906101000a900463ffffffff1663ffffffff1690505f670de0b6b3a76400008481612a9357612a9261389f565b5b0490505f612aa9612aa48385612ddd565b612ded565b90505f815f01515114612c56575f670de0b6b3a7640000895f01600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1681612af857612af761389f565b5b0490505f612b06898d611f97565b90505f8a5f0160049054906101000a900463ffffffff1663ffffffff169050835f0151518b5f0160088282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff160217905550848a5f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b5b5f612b9a8c600701612b9584611eb8565b611ec5565b63ffffffff1614612bbd5782816001019150811115612bb857600190505b612b84565b612bc887878361208a565b612bdd8b600701828489806001019a50612e1a565b612be9848e835f612e5e565b82816001019150811115612bfc57600190505b848603612b8357808b5f0160046101000a81548163ffffffff021916908363ffffffff160217905550612c52848c6001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612e80565b5050505b505050505b50508373ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051612cba91906130c8565b60405180910390a350505050565b612cd0612ebc565b15612d35577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550612d8b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b60606080604051019050602081016040525f8152805f19835b600115612dc8578184019350600a81066030018453600a8104905080612da7575b50828203602084039350808452505050919050565b5f81830382841102905092915050565b612df5612ef0565b6040805101828152806020018360051b81016040528183528083602001525050919050565b8163ffffffff168160201b17846020528360021c5f5260405f206003851660061b815467ffffffffffffffff8482841c188116831b82188455505050505050505050565b8360200151818360081b8560601b171781526020810185602001525050505050565b81516040810363263c69d68152602080820152815160051b60440160208282601c85015f885af1600183511416612eb5575f82fd5b5050505050565b5f90565b6040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b6040518060400160405280606081526020015f81525090565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612f40578082015181840152602081019050612f25565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612f6582612f09565b612f6f8185612f13565b9350612f7f818560208601612f23565b612f8881612f4b565b840191505092915050565b5f6020820190508181035f830152612fab8184612f5b565b905092915050565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612fe482612fbb565b9050919050565b612ff481612fda565b8114612ffe575f80fd5b50565b5f8135905061300f81612feb565b92915050565b5f819050919050565b61302781613015565b8114613031575f80fd5b50565b5f813590506130428161301e565b92915050565b5f806040838503121561305e5761305d612fb3565b5b5f61306b85828601613001565b925050602061307c85828601613034565b9150509250929050565b5f8115159050919050565b61309a81613086565b82525050565b5f6020820190506130b35f830184613091565b92915050565b6130c281613015565b82525050565b5f6020820190506130db5f8301846130b9565b92915050565b5f805f606084860312156130f8576130f7612fb3565b5b5f61310586828701613001565b935050602061311686828701613001565b925050604061312786828701613034565b9150509250925092565b5f6020828403121561314657613145612fb3565b5b5f61315384828501613001565b91505092915050565b61316581613086565b811461316f575f80fd5b50565b5f813590506131808161315c565b92915050565b5f6020828403121561319b5761319a612fb3565b5b5f6131a884828501613172565b91505092915050565b5f60ff82169050919050565b6131c6816131b1565b82525050565b5f6020820190506131df5f8301846131bd565b92915050565b6131ee81612fda565b82525050565b5f6020820190506132075f8301846131e5565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261322e5761322d61320d565b5b8235905067ffffffffffffffff81111561324b5761324a613211565b5b60208301915083600182028301111561326757613266613215565b5b9250929050565b5f806020838503121561328457613283612fb3565b5b5f83013567ffffffffffffffff8111156132a1576132a0612fb7565b5b6132ad85828601613219565b92509250509250929050565b5f602082840312156132ce576132cd612fb3565b5b5f6132db84828501613034565b91505092915050565b5f80604083850312156132fa576132f9612fb3565b5b5f61330785828601613001565b925050602061331885828601613001565b9150509250929050565b5f6bffffffffffffffffffffffff82169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61337082613322565b915061337b83613322565b925082820390506bffffffffffffffffffffffff81111561339f5761339e613339565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806133e957607f821691505b6020821081036133fc576133fb6133a5565b5b50919050565b5f82905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026134957fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261345a565b61349f868361345a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6134da6134d56134d084613015565b6134b7565b613015565b9050919050565b5f819050919050565b6134f3836134c0565b6135076134ff826134e1565b848454613466565b825550505050565b5f90565b61351b61350f565b6135268184846134ea565b505050565b5b818110156135495761353e5f82613513565b60018101905061352c565b5050565b601f82111561358e5761355f81613439565b6135688461344b565b81016020851015613577578190505b61358b6135838561344b565b83018261352b565b50505b505050565b5f82821c905092915050565b5f6135ae5f1984600802613593565b1980831691505092915050565b5f6135c6838361359f565b9150826002028217905092915050565b6135e08383613402565b67ffffffffffffffff8111156135f9576135f861340c565b5b61360382546133d2565b61360e82828561354d565b5f601f83116001811461363b575f8415613629578287013590505b61363385826135bb565b86555061369a565b601f19841661364986613439565b5f5b828110156136705784890135825560018201915060208501945060208101905061364b565b8683101561368d5784890135613689601f89168261359f565b8355505b6001600288020188555050505b50505050505050565b5f819050919050565b6136bd6136b882613015565b6136a3565b82525050565b5f8160601b9050919050565b5f6136d9826136c3565b9050919050565b5f6136ea826136cf565b9050919050565b6137026136fd82612fda565b6136e0565b82525050565b5f61371382856136ac565b60208201915061372382846136f1565b6014820191508190509392505050565b5f81905092915050565b5f8154613749816133d2565b6137538186613733565b9450600182165f811461376d5760018114613782576137b4565b60ff19831686528115158202860193506137b4565b61378b85613439565b5f5b838110156137ac5781548189015260018201915060208101905061378d565b838801955050505b50505092915050565b5f6137c782612f09565b6137d18185613733565b93506137e1818560208601612f23565b80840191505092915050565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000005f82015250565b5f613821600583613733565b915061382c826137ed565b600582019050919050565b5f613842828561373d565b915061384e82846137bd565b915061385982613815565b91508190509392505050565b5f63ffffffff82169050919050565b5f61387e82613865565b915063ffffffff820361389457613893613339565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffdfea2646970667358221220f5c45eb14f8fc8897e626c533ba97f281b3fc2230fdfbcc3ce47a2a57084b85364736f6c63430008180033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000015e6a0538429d0000000000000000000000000000092c6398ccc4b33c5e82d406a158eb393baf7caf50000000000000000000000000000000000000000000000000000000000000009343034426c6f636b7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009343034426c6f636b730000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): 404Blocks
Arg [1] : symbol_ (string): 404Blocks
Arg [2] : initialTokenSupply (uint96): 404000000000000000000
Arg [3] : initialSupplyOwner (address): 0x92c6398ccc4b33C5e82D406A158EB393bAF7cAf5

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000000000000000000000000015e6a0538429d00000
Arg [3] : 00000000000000000000000092c6398ccc4b33c5e82d406a158eb393baf7caf5
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 343034426c6f636b730000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [7] : 343034426c6f636b730000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

124732:1295:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116807:22;116832:18;:16;:18::i;:::-;116807:43;;116857:18;116901:3;116878:19;116892:4;116878:13;:19::i;:::-;:26;;116857:47;;116972:10;116958;:24;116954:326;;117008:1;:14;;;;;;;;;;;;116994:28;;:10;:28;;;116990:58;;117031:17;;;;;;;;;;;;;;116990:58;117076:4;117058:8;;:15;;:22;117054:36;;;117082:8;;;117054:36;117098:13;117130:19;117144:4;117130:13;:19::i;:::-;117098:53;;117157:16;117192:19;117206:4;117192:13;:19::i;:::-;117157:56;;117221:53;117229:1;:19;;:26;117249:5;117229:26;;;;;;;;;;;;;;;:36;117256:8;117229:36;;;;;;;;;;;;;;;;;;;;;;;;;:44;;117272:1;117229:44;;;117268:1;117229:44;117221:53;;:7;:53::i;:::-;116984:296;;116954:326;117328:10;117314;:24;117310:220;;117364:1;:14;;;;;;;;;;;;117350:28;;:10;:28;;;117346:58;;117387:17;;;;;;;;;;;;;;117346:58;117432:4;117414:8;;:15;;:22;117410:36;;;117438:8;;;117410:36;117454:10;117467:19;117481:4;117467:13;:19::i;:::-;117454:32;;117494:30;117510:12;117519:2;117510:8;:12::i;:::-;117494:30;;:7;:30::i;:::-;117340:190;117310:220;117610:10;117596;:24;117592:424;;117646:1;:14;;;;;;;;;;;;117632:28;;:10;:28;;;117628:58;;117669:17;;;;;;;;;;;;;;117628:58;117714:4;117696:8;;:15;;:22;117692:36;;;117720:8;;;117692:36;117736:12;117767:19;117781:4;117767:13;:19::i;:::-;117736:52;;117794:10;117823:19;117837:4;117823:13;:19::i;:::-;117794:50;;117850:10;117863:19;117877:4;117863:13;:19::i;:::-;117850:32;;117888:17;117924:19;117938:4;117924:13;:19::i;:::-;117888:57;;117953:41;117970:4;117976:2;117980;117984:9;117953:16;:41::i;:::-;118000:10;118008:1;118000:7;:10::i;:::-;117622:394;;;;117592:424;118087:10;118073;:24;118069:382;;118123:1;:14;;;;;;;;;;;;118109:28;;:10;:28;;;118105:58;;118146:17;;;;;;;;;;;;;;118105:58;118191:4;118173:8;;:15;;:22;118169:36;;;118197:8;;;118169:36;118213:15;118247:19;118261:4;118247:13;:19::i;:::-;118213:55;;118274:11;118311:1;118288:19;118302:4;118288:13;:19::i;:::-;:24;;118274:38;;118318:17;118354:19;118368:4;118354:13;:19::i;:::-;118318:57;;118383:46;118402:7;118411:6;118419:9;118383:18;:46::i;:::-;118435:10;118443:1;118435:7;:10::i;:::-;118099:352;;;118069:382;118518:10;118504;:24;118500:367;;118554:1;:14;;;;;;;;;;;;118540:28;;:10;:28;;;118536:58;;118577:17;;;;;;;;;;;;;;118536:58;118622:4;118604:8;;:15;;:22;118600:36;;;118628:8;;;118600:36;118644:15;118678:19;118692:4;118678:13;:19::i;:::-;118644:55;;118705:10;118718:19;118732:4;118718:13;:19::i;:::-;118705:32;;118743:17;118779:19;118793:4;118779:13;:19::i;:::-;118743:57;;118808:53;118824:35;118836:7;118845:2;118849:9;118824:11;:35::i;:::-;118808:53;;:7;:53::i;:::-;118530:337;;;118500:367;118919:10;118905;:24;118901:224;;118955:1;:14;;;;;;;;;;;;118941:28;;:10;:28;;;118937:58;;118978:17;;;;;;;;;;;;;;118937:58;119023:4;119005:8;;:15;;:22;119001:36;;;119029:8;;;119001:36;119045:10;119058:19;119072:4;119058:13;:19::i;:::-;119045:32;;119085:34;119101:16;119114:2;119101:12;:16::i;:::-;119085:34;;:7;:34::i;:::-;118931:194;118901:224;119178:10;119164;:24;119160:240;;119214:1;:14;;;;;;;;;;;;119200:28;;:10;:28;;;119196:58;;119237:17;;;;;;;;;;;;;;119196:58;119282:4;119264:8;;:15;;:22;119260:36;;;119288:8;;;119260:36;119304:13;119336:19;119350:4;119336:13;:19::i;:::-;119304:53;;119365:29;119373:20;119387:5;119373:13;:20::i;:::-;119365:7;:29::i;:::-;119190:210;119160:240;119448:10;119434;:24;119430:176;;119484:1;:14;;;;;;;;;;;;119470:28;;:10;:28;;;119466:58;;119507:17;;;;;;;;;;;;;;119466:58;119552:4;119534:8;;:15;;:22;119530:36;;;119558:8;;;119530:36;119574:26;119582:17;:15;:17::i;:::-;119574:7;:26::i;:::-;119430:176;119655:10;119641;:24;119637:52;;119673:10;119681:1;119673:7;:10::i;:::-;119637:52;116802:2897;125195:83;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;99013:248;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;98341:117;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;100513:434;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;67552:507;;;:::i;:::-;;111390:261;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111751:91;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;98215:67;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;125931:93;;;;;;;;;;;;;:::i;:::-;;125743:86;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;113683:110;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;68138:391;;;:::i;:::-;;125834:92;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;98521:134;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;67305:93;;;:::i;:::-;;69632:157;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;125283:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;99732:135;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;125375:299;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;98747:142;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;68711:592;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;66954:289;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;69889:356;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;95678:281;95737:22;95882:20;95872:30;;95678:281;:::o;122359:172::-;122420:13;122515:6;122502:20;122493:29;;122359:172;;;:::o;122618:146::-;122730:1;122724:4;122717:15;122750:4;122744;122737:18;114565:148;114626:7;114645:11;114653:2;114645:7;:11::i;:::-;114640:44;;114665:19;;;;;;;;;;;;;;114640:44;114696:12;114705:2;114696:8;:12::i;:::-;114689:19;;114565:148;;;:::o;108677:1279::-;108790:22;108815:18;:16;:18::i;:::-;108790:43;;108858:1;108844:16;;:2;:16;;;108840:52;;108869:23;;;;;;;;;;;;;;108840:52;108899:13;108915:1;:16;;:49;108932:31;108937:1;:4;;108943:19;108959:2;108943:15;:19::i;:::-;108932:4;:31::i;:::-;108915:49;;;;;;;;;;;;;;;;;;;;;;;;;108899:65;;108983:5;108975:13;;:4;:13;;;108971:54;;108997:28;;;;;;;;;;;;;;108971:54;109049:4;109036:17;;:9;:17;;;109032:187;;109066:1;:19;;:25;109086:4;109066:25;;;;;;;;;;;;;;;:36;109092:9;109066:36;;;;;;;;;;;;;;;;;;;;;;;;;109061:153;;109128:1;:16;;:20;109145:2;109128:20;;;;;;;;;;;;;;;;;;;;;109115:33;;:9;:33;;;109111:97;;109165:35;;;;;;;;;;;;;;109111:97;109061:153;109032:187;109225:35;109263:18;109276:4;109263:12;:18::i;:::-;109225:56;;109286:33;109322:16;109335:2;109322:12;:16::i;:::-;109286:52;;93245:8;109345:15;:23;;;:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;93245:8;109407:13;:21;;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109452:76;109457:1;:4;;109463:19;109479:2;109463:15;:19::i;:::-;109484:43;109509:13;109524:2;109484:24;:43::i;:::-;109452:4;:76::i;:::-;109541:1;:16;;:20;109558:2;109541:20;;;;;;;;;;;;109534:27;;;;;;;;;;;109569:17;109589:50;109594:1;:7;;:13;109602:4;109594:13;;;;;;;;;;;;;;;109611:15;:27;;;109609:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109589:50;;:4;:50::i;:::-;109569:70;;;;109645:67;109650:1;:7;;:13;109658:4;109650:13;;;;;;;;;;;;;;;109665:27;109670:1;:4;;109676:15;109688:2;109676:11;:15::i;:::-;109665:4;:27::i;:::-;109645:67;;109701:9;109645:4;:67::i;:::-;109720:9;109732:13;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109720:39;;;;109765:63;109770:1;:4;;109776:22;109788:9;109776:11;:22::i;:::-;109800:27;109805:1;:4;;109811:15;109823:2;109811:11;:15::i;:::-;109800:4;:27::i;:::-;109765:4;:63::i;:::-;109834:32;109839:1;:7;;:11;109847:2;109839:11;;;;;;;;;;;;;;;109852:1;109862:2;109834:4;:32::i;:::-;109872:38;109877:1;:4;;109883:15;109895:2;109883:11;:15::i;:::-;109907:1;109872:4;:38::i;:::-;109391:525;;109942:2;109927:24;;109936:4;109927:24;;;93245:8;109927:24;;;;;;:::i;:::-;;;;;;;;108785:1171;;;;108677:1279;;;;:::o;115928:183::-;116098:8;116038:18;:16;:18::i;:::-;:36;;:47;116075:9;116038:47;;;;;;;;;;;;;;;:57;116086:8;116038:57;;;;;;;;;;;;;;;;:68;;;;;;;;;;;;;;;;;;115928:183;;;:::o;115374:437::-;115478:7;115494:22;115519:18;:16;:18::i;:::-;115494:43;;115544:13;115560:1;:16;;:49;115577:31;115582:1;:4;;115588:19;115604:2;115588:15;:19::i;:::-;115577:4;:31::i;:::-;115560:49;;;;;;;;;;;;;;;;;;;;;;;;;115544:65;;115633:5;115620:18;;:9;:18;;;115616:135;;115651:1;:19;;:26;115671:5;115651:26;;;;;;;;;;;;;;;:37;115678:9;115651:37;;;;;;;;;;;;;;;;;;;;;;;;;115646:100;;115704:35;;;;;;;;;;;;;;115646:100;115616:135;115780:7;115757:1;:16;;:20;115774:2;115757:20;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;115801:5;115794:12;;;;115374:437;;;;;:::o;114992:177::-;115057:7;115076:11;115084:2;115076:7;:11::i;:::-;115071:44;;115096:19;;;;;;;;;;;;;;115071:44;115127:18;:16;:18::i;:::-;:33;;:37;115161:2;115127:37;;;;;;;;;;;;;;;;;;;;;115120:44;;114992:177;;;:::o;114001:144::-;114070:7;114091:18;:16;:18::i;:::-;:30;;:37;114122:5;114091:37;;;;;;;;;;;;;;;:49;;;;;;;;;;;;114084:56;;;;114001:144;;;:::o;113839:117::-;113897:7;113918:18;:16;:18::i;:::-;:33;;;;;;;;;;;;113911:40;;;;113839:117;:::o;125195:83::-;125241:13;125268:5;125261:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125195:83;:::o;99013:248::-;99087:4;99098:22;99123:18;:16;:18::i;:::-;99098:43;;99183:6;99148:1;:11;;:23;99160:10;99148:23;;;;;;;;;;;;;;;:32;99172:7;99148:32;;;;;;;;;;;;;;;:41;;;;99222:7;99201:37;;99210:10;99201:37;;;99231:6;99201:37;;;;;;:::i;:::-;;;;;;;;99252:4;99245:11;;;99013:248;;;;:::o;98341:117::-;98393:7;98422:18;:16;:18::i;:::-;:30;;;;;;;;;;;;98414:39;;98407:46;;98341:117;:::o;100513:434::-;100601:4;100612:22;100637:18;:16;:18::i;:::-;100612:43;;100662:15;100680:1;:11;;:17;100692:4;100680:17;;;;;;;;;;;;;;;:29;100698:10;100680:29;;;;;;;;;;;;;;;;100662:47;;100731:17;100720:7;:28;100716:175;;100769:7;100760:6;:16;100756:52;;;100785:23;;;;;;;;;;;;;;100756:52;100873:6;100863:7;:16;100831:1;:11;;:17;100843:4;100831:17;;;;;;;;;;;;;;;:29;100849:10;100831:29;;;;;;;;;;;;;;;:48;;;;100716:175;100897:27;100907:4;100913:2;100917:6;100897:9;:27::i;:::-;100938:4;100931:11;;;;100513:434;;;;;:::o;67552:507::-;67632:15;67668:28;:26;:28::i;:::-;67650:46;;:15;:46;67632:64;;67826:19;67820:4;67813:33;67865:8;67859:4;67852:22;67910:7;67903:4;67897;67887:21;67880:38;68035:8;67988:45;67985:1;67982;67977:67;67750:300;67552:507::o;111390:261::-;111450:4;111461:21;111485:18;:16;:18::i;:::-;:30;;:33;111516:1;111485:33;;;;;;;;;;;;;;;111461:57;;111571:1;93611:6;111527:1;:7;;;;;;;;;;;;:40;:45;;;111523:69;;111581:11;111590:1;111581:8;:11::i;:::-;111574:18;;;;;111523:69;111645:1;93742:6;111604:1;:7;;;;;;;;;;;;:37;:42;;;;111597:49;;;111390:261;;;;:::o;111751:91::-;111805:32;111817:10;111829:7;111805:11;:32::i;:::-;111751:91;:::o;98215:67::-;98256:5;98275:2;98268:9;;98215:67;:::o;125931:93::-;70621:13;:11;:13::i;:::-;125973:46:::1;126008:10;125973:34;:46::i;:::-;125931:93::o:0;125743:86::-;70621:13;:11;:13::i;:::-;125807:17:::1;125813:2;125817:6;125807:5;:17::i;:::-;125743:86:::0;;:::o;113683:110::-;113736:7;113757:18;:16;:18::i;:::-;:31;;;;;;;;;;;;113750:38;;113683:110;:::o;68138:391::-;68314:19;68308:4;68301:33;68352:8;68346:4;68339:22;68396:1;68389:4;68383;68373:21;68366:32;68511:8;68465:44;68462:1;68459;68454:66;68138:391::o;125834:92::-;70621:13;:11;:13::i;:::-;125913:8:::1;;125902;:19;;;;;;;:::i;:::-;;125834:92:::0;;:::o;98521:134::-;98584:7;98605:18;:16;:18::i;:::-;:30;;:37;98636:5;98605:37;;;;;;;;;;;;;;;:45;;;;;;;;;;;;98598:52;;;;98521:134;;;:::o;67305:93::-;70621:13;:11;:13::i;:::-;67372:21:::1;67390:1;67372:9;:21::i;:::-;67305:93::o:0;69632:157::-;69678:14;69768:11;69762:18;69752:28;;69632:157;:::o;125283:87::-;125331:13;125358:7;125351:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125283:87;:::o;99732:135::-;99802:4;99813:33;99823:10;99835:2;99839:6;99813:9;:33::i;:::-;99858:4;99851:11;;99732:135;;;;:::o;125375:299::-;125440:20;125497:1;125477:8;125471:22;;;;;:::i;:::-;;;:27;125467:203;;125506:12;125556:7;125573:4;125539:40;;;;;;;;;:::i;:::-;;;;;;;;;;;;;125529:51;;;;;;125521:60;;125506:75;;125620:8;125630:24;125649:4;125630:18;:24::i;:::-;125603:60;;;;;;;;;:::i;:::-;;;;;;;;;;;;;125587:77;;125500:170;125467:203;125375:299;;;:::o;98747:142::-;98819:7;98840:18;:16;:18::i;:::-;:28;;:35;98869:5;98840:35;;;;;;;;;;;;;;;:44;98876:7;98840:44;;;;;;;;;;;;;;;;98833:51;;98747:142;;;;:::o;68711:592::-;70621:13;:11;:13::i;:::-;68919:19:::1;68913:4;68906:33;68957:12;68951:4;68944:26;69011:4;69005;68995:21;69101:12;69095:19;69082:11;69079:36;69076:127;;;69136:10;69130:4;69123:24;69192:4;69186;69179:18;69076:127;69264:1;69250:12;69243:23;68853:418;69275:23;69285:12;69275:9;:23::i;:::-;68711:592:::0;:::o;66954:289::-;70621:13;:11;:13::i;:::-;67108:8:::1;67104:2;67100:17;67090:120;;67139:10;67133:4;67126:24;67199:4;67193;67186:18;67090:120;67219:19;67229:8;67219:9;:19::i;:::-;66954:289:::0;:::o;69889:356::-;69988:14;70111:19;70105:4;70098:33;70149:12;70143:4;70136:26;70230:4;70224;70214:21;70208:28;70198:38;;69889:356;;;:::o;114759:109::-;114819:4;114861:1;114837:26;;:12;114846:2;114837:8;:12::i;:::-;:26;;;;114830:33;;114759:109;;;:::o;114275:184::-;114336:7;114350:22;114375:18;:16;:18::i;:::-;114350:43;;114405:1;:16;;:49;114422:31;114427:1;:4;;114433:19;114449:2;114433:15;:19::i;:::-;114422:4;:31::i;:::-;114405:49;;;;;;;;;;;;;;;;;;;;;;;;;114398:56;;;114275:184;;;:::o;123013:90::-;123071:7;123097:1;123092;:6;;123085:13;;123013:90;;;:::o;123318:157::-;123392:13;123467:1;123461;123453:5;:9;123452:16;;123428:3;:7;;:19;123445:1;123436:5;:10;;123428:19;;;;;;;;;;;;:41;;123412:58;;123318:157;;;;:::o;112455:353::-;112514:21;112542:22;112567:18;:16;:18::i;:::-;112542:43;;112594:1;:13;;:16;112608:1;112594:16;;;;;;;;;;;;;;;112590:20;;112665:1;93611:6;112621:1;:7;;;;;;;;;;;;:40;:45;;;112617:187;;112674:11;93611:6;112674:44;;112728:11;112737:1;112728:8;:11::i;:::-;112724:53;;;93742:6;112741:36;;;;112724:53;112793:5;112783:1;:7;;;:15;;;;;;;;;;;;;;;;;;112668:136;112617:187;112537:271;112455:353;;;:::o;112962:394::-;113078:19;113106:22;113131:18;:16;:18::i;:::-;113106:43;;113169:13;:26;;;;;;;;;;;;113154:41;;113220:1;113204:12;:17;;;113200:152;;113246:1;:12;;;113244:14;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;113229:29;;113293:12;113264:13;:26;;;:41;;;;;;;;;;;;;;;;;;113344:2;113311:1;:16;;:30;113328:12;113311:30;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;113200:152;113101:255;112962:394;;;;:::o;123537:458::-;123682:8;123676:4;123669:22;123716:5;123713:1;123709:13;123703:4;123696:27;123753:4;123747;123737:21;123807:1;123800:5;123796:13;123793:1;123789:21;123861:1;123855:8;123900:10;123976:5;123972:1;123969;123965:9;123961:21;123958:1;123954:29;123951:1;123947:37;123944:1;123940:45;123937:1;123930:56;123663:328;;;;123537:458;;;:::o;123143:113::-;123197:7;123245:1;123240;123235;:6;;123234:12;123227:19;;123143:113;;;:::o;105656:2632::-;105757:1;105743:16;;:2;:16;;;105739:52;;105768:23;;;;;;;;;;;;;;105739:52;105798:22;105823:18;:16;:18::i;:::-;105798:43;;105848:35;105886:18;105899:4;105886:12;:18::i;:::-;105848:56;;105909:33;105945:16;105958:2;105945:12;:16::i;:::-;105909:52;;105968:23;;:::i;:::-;106016:15;:27;;;;;;;;;;;;105996:47;;:1;:17;;:47;;;;;106066:13;:25;;;;;;;;;;;;106048:43;;:1;:15;;:43;;;;;106112:15;:23;;;;;;;;;;;;106096:39;;:1;:13;;:39;;;;;106155:1;:13;;;106146:6;:22;106142:56;;;106177:21;;;;;;;;;;;;;;106142:56;106238:6;106221:1;:13;;:23;;;;;;;;;;;106283:1;:13;;;106250:15;:23;;;:47;;;;;;;;;;;;;;;;;;106372:6;106348:13;:21;;;;;;;;;;;;:30;;;106334:1;:11;;:44;;;;106303:13;:21;;;:76;;;;;;;;;;;;;;;;;;106407:54;106421:1;:17;;;93245:8;106440:1;:13;;;:20;;;;;:::i;:::-;;;106407:13;:54::i;:::-;106387:1;:17;;:74;;;;;106526:1;93742:6;106473:13;:19;;;;;;;;;;;;:49;:54;;;106469:222;;106548:2;106540:10;;:4;:10;;;106536:71;;106590:1;:17;;;106570:1;:17;;;:37;106552:1;:15;;:55;;;;;106536:71;106634:50;93245:8;106648:1;:11;;;:18;;;;;:::i;:::-;;;106668:1;:15;;;106634:13;:50::i;:::-;106614:1;:17;;:70;;;;;106469:222;106698:29;106730:56;106768:1;:17;;;106748:1;:17;;;:37;106730:17;:56::i;:::-;106698:88;;106819:1;106798;:17;;;:22;106794:538;;106829:27;106859:1;:7;;:13;106867:4;106859:13;;;;;;;;;;;;;;;106829:43;;106879:17;106899:1;:17;;;106879:37;;106923:15;106953:1;:17;;;106941:9;:29;106923:47;;107004:1;:17;;;106977:1;:16;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107066:7;107029:15;:27;;;:45;;;;;;;;;;;;;;;;;;107100:226;107111:10;107124:28;107129:9;107140:11;;;;;;;107124:4;:28::i;:::-;107111:41;;;;107160:43;107188:1;:4;;107194:2;107198:1;107201;107160:27;:43::i;:::-;107218:1;:16;;:20;107235:2;107218:20;;;;;;;;;;;;107211:27;;;;;;;;;;;107246:42;107264:10;107276:4;107282:2;107286:1;107246:17;:42::i;:::-;107103:193;107317:7;107304:9;:20;107100:226;;106822:510;;;106794:538;107364:1;107343;:17;;;:22;107339:807;;107374:25;107402:1;:7;;:11;107410:2;107402:11;;;;;;;;;;;;;;;107374:39;;107420:15;107438:1;:15;;;107420:33;;107460:13;107486:1;:17;;;107476:7;:27;107460:43;;107510:14;107527:43;107552:13;107567:2;107527:24;:43::i;:::-;107510:60;;107577:16;93245:8;107596:1;:13;;;;;;;;;;;;:20;;;;;;;:::i;:::-;;;107577:39;;107623:10;107636:1;:13;;;;;;;;;;;;107623:26;;;;107683:1;:17;;;107656:1;:16;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107743:5;107708:13;:25;;;:41;;;;;;;;;;;;;;;;;;107775:332;107786:90;107828:1;107793:31;107798:1;:4;;107804:19;107820:2;107804:15;:19::i;:::-;107793:4;:31::i;:::-;:36;;;107786:90;;107851:8;107844:4;;;;;;:15;107840:27;;;107866:1;107861:6;;107840:27;107786:90;;;107883:34;107888:7;107897;107913:2;107883:4;:34::i;:::-;107925:65;107953:1;:4;;107959:2;107963:7;107979:9;;;;;;107925:27;:65::i;:::-;107998:40;108016:10;108028:2;108032;108036:1;107998:17;:40::i;:::-;108057:8;108050:4;;;;;;:15;108046:27;;;108072:1;108067:6;;108046:27;108100:5;108089:7;:16;107775:332;;108136:2;108113:1;:13;;;:26;;;;;;;;;;;;;;;;;;107367:779;;;;;;107339:807;108183:1;108157:10;:15;;;:22;:27;108153:90;;108193:43;108209:10;108221:1;:14;;;;;;;;;;;;108193:15;:43::i;:::-;108153:90;106205:2043;108272:2;108257:26;;108266:4;108257:26;;;108276:6;108257:26;;;;;;:::i;:::-;;;;;;;;105734:2554;;;;105656:2632;;;:::o;66499:103::-;66568:6;66588:9;66581:16;;66499:103;:::o;122116:187::-;122167:11;122260:1;122248:14;122238:24;;122116:187;;;:::o;112043:253::-;112109:21;112133:15;112146:1;112133:12;:15::i;:::-;112109:39;;112205:5;112157:53;;112199:1;93742:6;112158:1;:7;;;;;;;;;;;;:37;:42;;;;112157:53;;;112153:109;;93742:6;112218:1;:7;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112153:109;112282:1;112271:20;;;112285:5;112271:20;;;;;;:::i;:::-;;;;;;;;112104:192;112043:253;;:::o;65983:292::-;66169:11;66163:18;66153:8;66150:32;66140:126;;66204:10;66198:4;66191:24;66255:4;66249;66242:18;66140:126;65983:292::o;3572:343::-;3812:4;3800:10;3794:4;3782:10;3767:13;3763:2;3756:5;3751:66;3741:165;;3839:10;3833:4;3826:24;3895:4;3889;3882:18;3741:165;3572:343;:::o;101486:1676::-;101569:1;101555:16;;:2;:16;;;101551:52;;101580:23;;;;;;;;;;;;;;101551:52;101610:22;101635:18;:16;:18::i;:::-;101610:43;;101660:33;101696:16;101709:2;101696:12;:16::i;:::-;101660:52;;101735:26;101789:6;101772:1;:13;;;;;;;;;;;;101764:22;;:31;101735:60;;93455:25;101805:6;:20;:56;;;;93455:25;101829:18;:32;101805:56;101801:104;;;101877:21;;;;;;;;;;;;;;101801:104;101933:18;101910:1;:13;;;:42;;;;;;;;;;;;;;;;;;101960:17;102004:6;101980:13;:21;;;;;;;;;;;;:30;;;101960:50;;102047:9;102016:13;:21;;;:41;;;;;;;;;;;;;;;;;;102122:1;93742:6;102069:13;:19;;;;;;;;;;;;:49;:54;;;102065:1046;;102132:25;102160:1;:7;;:11;102168:2;102160:11;;;;;;;;;;;;;;;102132:39;;102178:15;102196:13;:25;;;;;;;;;;;;102178:43;;;;102228:13;93245:8;102244:9;:16;;;;;:::i;:::-;;;102228:32;;102267:29;102299:48;102317:29;102331:5;102338:7;102317:13;:29::i;:::-;102299:17;:48::i;:::-;102267:80;;102386:1;102360:10;:15;;;:22;:27;102356:749;;102397:16;93245:8;102416:1;:13;;;;;;;;;;;;:20;;;;;;;:::i;:::-;;;102397:39;;102444:14;102461:43;102486:13;102501:2;102461:24;:43::i;:::-;102444:60;;102512:10;102525:1;:13;;;;;;;;;;;;102512:26;;;;102573:10;:15;;;:22;102546:1;:16;;;:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102639:5;102604:13;:25;;;:41;;;;;;;;;;;;;;;;;;102673:340;102685:92;102727:1;102692:31;102697:1;:4;;102703:19;102719:2;102703:15;:19::i;:::-;102692:4;:31::i;:::-;:36;;;102685:92;;102751:8;102744:4;;;;;;:15;102740:27;;;102766:1;102761:6;;102740:27;102685:92;;;102785:34;102790:7;102799;102815:2;102785:4;:34::i;:::-;102828:65;102856:1;:4;;102862:2;102866:7;102882:9;;;;;;102828:27;:65::i;:::-;102902:40;102920:10;102932:2;102936;102940:1;102902:17;:40::i;:::-;102962:8;102955:4;;;;;;:15;102951:27;;;102977:1;102972:6;;102951:27;103006:5;102995:7;:16;102673:340;;103043:2;103020:1;:13;;;:26;;;;;;;;;;;;;;;;;;103054:43;103070:10;103082:1;:14;;;;;;;;;;;;103054:15;:43::i;:::-;102389:716;;;102356:749;102125:986;;;;102065:1046;101719:1397;;103146:2;103125:32;;103142:1;103125:32;;;103150:6;103125:32;;;;;;:::i;:::-;;;;;;;;101546:1616;;101486:1676;;:::o;65058:870::-;65121:23;:21;:23::i;:::-;65117:807;;;65224:11;65302:8;65298:2;65294:17;65290:2;65286:26;65274:38;;65434:8;65422:9;65416:16;65376:38;65373:1;65370;65365:78;65525:8;65518:16;65513:3;65509:26;65499:8;65496:40;65485:9;65478:59;65200:343;65117:807;;;65632:11;65710:8;65706:2;65702:17;65698:2;65694:26;65682:38;;65842:8;65830:9;65824:16;65784:38;65781:1;65778;65773:78;65904:8;65893:9;65886:27;65608:311;65117:807;65058:870;:::o;17786:1382::-;17842:17;18237:4;18230;18224:11;18220:22;18213:29;;18320:4;18315:3;18311:14;18305:4;18298:28;18385:1;18380:3;18373:14;18471:3;18494:1;18490:6;18679:5;18661:317;18687:1;18661:317;;;18715:1;18710:3;18706:11;18699:18;;18868:2;18862:4;18858:13;18854:2;18850:22;18845:3;18837:36;18938:2;18932:4;18928:13;18920:21;;18957:4;18661:317;18947:25;18661:317;18665:21;19008:3;19003;18999:13;19105:4;19100:3;19096:14;19089:21;;19152:6;19147:3;19140:19;17913:1251;;;17786:1382;;;:::o;122805:174::-;122872:9;122967:1;122964;122960:9;122956:1;122953;122950:8;122946:24;122941:29;;122805:174;;;;:::o;120388:375::-;120448:20;;:::i;:::-;120557:4;120550;120544:11;120540:22;120624:1;120618:4;120611:15;120655:4;120649;120645:15;120697:1;120694;120690:9;120682:6;120678:22;120672:4;120665:36;120716:4;120713:1;120706:15;120747:6;120743:1;120737:4;120733:12;120726:28;120522:237;;120388:375;;;:::o;124062:588::-;124306:9;124294:10;124290:26;124277:10;124273:2;124269:19;124266:51;124335:8;124329:4;124322:22;124369:2;124366:1;124362:10;124356:4;124349:24;124403:4;124397;124387:21;124454:1;124450:2;124446:10;124443:1;124439:18;124508:1;124502:8;124547:18;124631:5;124627:1;124624;124620:9;124616:21;124613:1;124609:29;124606:1;124602:37;124599:1;124595:45;124592:1;124585:56;124247:399;;;;;124062:588;;;;:::o;120863:314::-;121061:1;121055:4;121051:12;121045:19;121115:7;121109:2;121106:1;121102:10;121098:1;121094:2;121090:10;121087:26;121084:39;121076:6;121069:55;121162:4;121154:6;121150:17;121146:1;121140:4;121136:12;121129:39;121025:148;120863:314;;;;:::o;121270:538::-;121417:1;121411:8;121443:4;121437;121433:15;121493:10;121490:1;121483:21;121559:4;121552;121549:1;121545:12;121538:26;121646:4;121640:11;121637:1;121633:19;121627:4;121623:30;121763:4;121760:1;121757;121750:4;121747:1;121743:12;121740:1;121732:6;121725:5;121720:48;121716:1;121712;121706:8;121703:15;121699:70;121689:110;;121788:4;121785:1;121778:15;121689:110;121393:411;;;121270:538;;:::o;63537:78::-;63601:10;63537:78;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:246::-;368:1;378:113;392:6;389:1;386:13;378:113;;;477:1;472:3;468:11;462:18;458:1;453:3;449:11;442:39;414:2;411:1;407:10;402:15;;378:113;;;525:1;516:6;511:3;507:16;500:27;349:184;287:246;;;:::o;539:102::-;580:6;631:2;627:7;622:2;615:5;611:14;607:28;597:38;;539:102;;;:::o;647:377::-;735:3;763:39;796:5;763:39;:::i;:::-;818:71;882:6;877:3;818:71;:::i;:::-;811:78;;898:65;956:6;951:3;944:4;937:5;933:16;898:65;:::i;:::-;988:29;1010:6;988:29;:::i;:::-;983:3;979:39;972:46;;739:285;647:377;;;;:::o;1030:313::-;1143:4;1181:2;1170:9;1166:18;1158:26;;1230:9;1224:4;1220:20;1216:1;1205:9;1201:17;1194:47;1258:78;1331:4;1322:6;1258:78;:::i;:::-;1250:86;;1030:313;;;;:::o;1430:117::-;1539:1;1536;1529:12;1553:117;1662:1;1659;1652:12;1676:126;1713:7;1753:42;1746:5;1742:54;1731:65;;1676:126;;;:::o;1808:96::-;1845:7;1874:24;1892:5;1874:24;:::i;:::-;1863:35;;1808:96;;;:::o;1910:122::-;1983:24;2001:5;1983:24;:::i;:::-;1976:5;1973:35;1963:63;;2022:1;2019;2012:12;1963:63;1910:122;:::o;2038:139::-;2084:5;2122:6;2109:20;2100:29;;2138:33;2165:5;2138:33;:::i;:::-;2038:139;;;;:::o;2183:77::-;2220:7;2249:5;2238:16;;2183:77;;;:::o;2266:122::-;2339:24;2357:5;2339:24;:::i;:::-;2332:5;2329:35;2319:63;;2378:1;2375;2368:12;2319:63;2266:122;:::o;2394:139::-;2440:5;2478:6;2465:20;2456:29;;2494:33;2521:5;2494:33;:::i;:::-;2394:139;;;;:::o;2539:474::-;2607:6;2615;2664:2;2652:9;2643:7;2639:23;2635:32;2632:119;;;2670:79;;:::i;:::-;2632:119;2790:1;2815:53;2860:7;2851:6;2840:9;2836:22;2815:53;:::i;:::-;2805:63;;2761:117;2917:2;2943:53;2988:7;2979:6;2968:9;2964:22;2943:53;:::i;:::-;2933:63;;2888:118;2539:474;;;;;:::o;3019:90::-;3053:7;3096:5;3089:13;3082:21;3071:32;;3019:90;;;:::o;3115:109::-;3196:21;3211:5;3196:21;:::i;:::-;3191:3;3184:34;3115:109;;:::o;3230:210::-;3317:4;3355:2;3344:9;3340:18;3332:26;;3368:65;3430:1;3419:9;3415:17;3406:6;3368:65;:::i;:::-;3230:210;;;;:::o;3446:118::-;3533:24;3551:5;3533:24;:::i;:::-;3528:3;3521:37;3446:118;;:::o;3570:222::-;3663:4;3701:2;3690:9;3686:18;3678:26;;3714:71;3782:1;3771:9;3767:17;3758:6;3714:71;:::i;:::-;3570:222;;;;:::o;3798:619::-;3875:6;3883;3891;3940:2;3928:9;3919:7;3915:23;3911:32;3908:119;;;3946:79;;:::i;:::-;3908:119;4066:1;4091:53;4136:7;4127:6;4116:9;4112:22;4091:53;:::i;:::-;4081:63;;4037:117;4193:2;4219:53;4264:7;4255:6;4244:9;4240:22;4219:53;:::i;:::-;4209:63;;4164:118;4321:2;4347:53;4392:7;4383:6;4372:9;4368:22;4347:53;:::i;:::-;4337:63;;4292:118;3798:619;;;;;:::o;4423:329::-;4482:6;4531:2;4519:9;4510:7;4506:23;4502:32;4499:119;;;4537:79;;:::i;:::-;4499:119;4657:1;4682:53;4727:7;4718:6;4707:9;4703:22;4682:53;:::i;:::-;4672:63;;4628:117;4423:329;;;;:::o;4758:116::-;4828:21;4843:5;4828:21;:::i;:::-;4821:5;4818:32;4808:60;;4864:1;4861;4854:12;4808:60;4758:116;:::o;4880:133::-;4923:5;4961:6;4948:20;4939:29;;4977:30;5001:5;4977:30;:::i;:::-;4880:133;;;;:::o;5019:323::-;5075:6;5124:2;5112:9;5103:7;5099:23;5095:32;5092:119;;;5130:79;;:::i;:::-;5092:119;5250:1;5275:50;5317:7;5308:6;5297:9;5293:22;5275:50;:::i;:::-;5265:60;;5221:114;5019:323;;;;:::o;5348:86::-;5383:7;5423:4;5416:5;5412:16;5401:27;;5348:86;;;:::o;5440:112::-;5523:22;5539:5;5523:22;:::i;:::-;5518:3;5511:35;5440:112;;:::o;5558:214::-;5647:4;5685:2;5674:9;5670:18;5662:26;;5698:67;5762:1;5751:9;5747:17;5738:6;5698:67;:::i;:::-;5558:214;;;;:::o;5778:118::-;5865:24;5883:5;5865:24;:::i;:::-;5860:3;5853:37;5778:118;;:::o;5902:222::-;5995:4;6033:2;6022:9;6018:18;6010:26;;6046:71;6114:1;6103:9;6099:17;6090:6;6046:71;:::i;:::-;5902:222;;;;:::o;6130:117::-;6239:1;6236;6229:12;6253:117;6362:1;6359;6352:12;6376:117;6485:1;6482;6475:12;6513:553;6571:8;6581:6;6631:3;6624:4;6616:6;6612:17;6608:27;6598:122;;6639:79;;:::i;:::-;6598:122;6752:6;6739:20;6729:30;;6782:18;6774:6;6771:30;6768:117;;;6804:79;;:::i;:::-;6768:117;6918:4;6910:6;6906:17;6894:29;;6972:3;6964:4;6956:6;6952:17;6942:8;6938:32;6935:41;6932:128;;;6979:79;;:::i;:::-;6932:128;6513:553;;;;;:::o;7072:529::-;7143:6;7151;7200:2;7188:9;7179:7;7175:23;7171:32;7168:119;;;7206:79;;:::i;:::-;7168:119;7354:1;7343:9;7339:17;7326:31;7384:18;7376:6;7373:30;7370:117;;;7406:79;;:::i;:::-;7370:117;7519:65;7576:7;7567:6;7556:9;7552:22;7519:65;:::i;:::-;7501:83;;;;7297:297;7072:529;;;;;:::o;7607:329::-;7666:6;7715:2;7703:9;7694:7;7690:23;7686:32;7683:119;;;7721:79;;:::i;:::-;7683:119;7841:1;7866:53;7911:7;7902:6;7891:9;7887:22;7866:53;:::i;:::-;7856:63;;7812:117;7607:329;;;;:::o;7942:474::-;8010:6;8018;8067:2;8055:9;8046:7;8042:23;8038:32;8035:119;;;8073:79;;:::i;:::-;8035:119;8193:1;8218:53;8263:7;8254:6;8243:9;8239:22;8218:53;:::i;:::-;8208:63;;8164:117;8320:2;8346:53;8391:7;8382:6;8371:9;8367:22;8346:53;:::i;:::-;8336:63;;8291:118;7942:474;;;;;:::o;8422:109::-;8458:7;8498:26;8491:5;8487:38;8476:49;;8422:109;;;:::o;8537:180::-;8585:77;8582:1;8575:88;8682:4;8679:1;8672:15;8706:4;8703:1;8696:15;8723:216;8762:4;8782:19;8799:1;8782:19;:::i;:::-;8777:24;;8815:19;8832:1;8815:19;:::i;:::-;8810:24;;8858:1;8855;8851:9;8843:17;;8882:26;8876:4;8873:36;8870:62;;;8912:18;;:::i;:::-;8870:62;8723:216;;;;:::o;8945:180::-;8993:77;8990:1;8983:88;9090:4;9087:1;9080:15;9114:4;9111:1;9104:15;9131:320;9175:6;9212:1;9206:4;9202:12;9192:22;;9259:1;9253:4;9249:12;9280:18;9270:81;;9336:4;9328:6;9324:17;9314:27;;9270:81;9398:2;9390:6;9387:14;9367:18;9364:38;9361:84;;9417:18;;:::i;:::-;9361:84;9182:269;9131:320;;;:::o;9457:97::-;9516:6;9544:3;9534:13;;9457:97;;;;:::o;9560:180::-;9608:77;9605:1;9598:88;9705:4;9702:1;9695:15;9729:4;9726:1;9719:15;9746:141;9795:4;9818:3;9810:11;;9841:3;9838:1;9831:14;9875:4;9872:1;9862:18;9854:26;;9746:141;;;:::o;9893:93::-;9930:6;9977:2;9972;9965:5;9961:14;9957:23;9947:33;;9893:93;;;:::o;9992:107::-;10036:8;10086:5;10080:4;10076:16;10055:37;;9992:107;;;;:::o;10105:393::-;10174:6;10224:1;10212:10;10208:18;10247:97;10277:66;10266:9;10247:97;:::i;:::-;10365:39;10395:8;10384:9;10365:39;:::i;:::-;10353:51;;10437:4;10433:9;10426:5;10422:21;10413:30;;10486:4;10476:8;10472:19;10465:5;10462:30;10452:40;;10181:317;;10105:393;;;;;:::o;10504:60::-;10532:3;10553:5;10546:12;;10504:60;;;:::o;10570:142::-;10620:9;10653:53;10671:34;10680:24;10698:5;10680:24;:::i;:::-;10671:34;:::i;:::-;10653:53;:::i;:::-;10640:66;;10570:142;;;:::o;10718:75::-;10761:3;10782:5;10775:12;;10718:75;;;:::o;10799:269::-;10909:39;10940:7;10909:39;:::i;:::-;10970:91;11019:41;11043:16;11019:41;:::i;:::-;11011:6;11004:4;10998:11;10970:91;:::i;:::-;10964:4;10957:105;10875:193;10799:269;;;:::o;11074:73::-;11119:3;11074:73;:::o;11153:189::-;11230:32;;:::i;:::-;11271:65;11329:6;11321;11315:4;11271:65;:::i;:::-;11206:136;11153:189;;:::o;11348:186::-;11408:120;11425:3;11418:5;11415:14;11408:120;;;11479:39;11516:1;11509:5;11479:39;:::i;:::-;11452:1;11445:5;11441:13;11432:22;;11408:120;;;11348:186;;:::o;11540:543::-;11641:2;11636:3;11633:11;11630:446;;;11675:38;11707:5;11675:38;:::i;:::-;11759:29;11777:10;11759:29;:::i;:::-;11749:8;11745:44;11942:2;11930:10;11927:18;11924:49;;;11963:8;11948:23;;11924:49;11986:80;12042:22;12060:3;12042:22;:::i;:::-;12032:8;12028:37;12015:11;11986:80;:::i;:::-;11645:431;;11630:446;11540:543;;;:::o;12089:117::-;12143:8;12193:5;12187:4;12183:16;12162:37;;12089:117;;;;:::o;12212:169::-;12256:6;12289:51;12337:1;12333:6;12325:5;12322:1;12318:13;12289:51;:::i;:::-;12285:56;12370:4;12364;12360:15;12350:25;;12263:118;12212:169;;;;:::o;12386:295::-;12462:4;12608:29;12633:3;12627:4;12608:29;:::i;:::-;12600:37;;12670:3;12667:1;12663:11;12657:4;12654:21;12646:29;;12386:295;;;;:::o;12686:1403::-;12810:44;12850:3;12845;12810:44;:::i;:::-;12919:18;12911:6;12908:30;12905:56;;;12941:18;;:::i;:::-;12905:56;12985:38;13017:4;13011:11;12985:38;:::i;:::-;13070:67;13130:6;13122;13116:4;13070:67;:::i;:::-;13164:1;13193:2;13185:6;13182:14;13210:1;13205:632;;;;13881:1;13898:6;13895:84;;;13954:9;13949:3;13945:19;13932:33;13923:42;;13895:84;14005:67;14065:6;14058:5;14005:67;:::i;:::-;13999:4;13992:81;13854:229;13175:908;;13205:632;13257:4;13253:9;13245:6;13241:22;13291:37;13323:4;13291:37;:::i;:::-;13350:1;13364:215;13378:7;13375:1;13372:14;13364:215;;;13464:9;13459:3;13455:19;13442:33;13434:6;13427:49;13515:1;13507:6;13503:14;13493:24;;13562:2;13551:9;13547:18;13534:31;;13401:4;13398:1;13394:12;13389:17;;13364:215;;;13607:6;13598:7;13595:19;13592:186;;;13672:9;13667:3;13663:19;13650:33;13715:48;13757:4;13749:6;13745:17;13734:9;13715:48;:::i;:::-;13707:6;13700:64;13615:163;13592:186;13824:1;13820;13812:6;13808:14;13804:22;13798:4;13791:36;13212:625;;;13175:908;;12785:1304;;;12686:1403;;;:::o;14095:79::-;14134:7;14163:5;14152:16;;14095:79;;;:::o;14180:157::-;14285:45;14305:24;14323:5;14305:24;:::i;:::-;14285:45;:::i;:::-;14280:3;14273:58;14180:157;;:::o;14343:94::-;14376:8;14424:5;14420:2;14416:14;14395:35;;14343:94;;;:::o;14443:::-;14482:7;14511:20;14525:5;14511:20;:::i;:::-;14500:31;;14443:94;;;:::o;14543:100::-;14582:7;14611:26;14631:5;14611:26;:::i;:::-;14600:37;;14543:100;;;:::o;14649:157::-;14754:45;14774:24;14792:5;14774:24;:::i;:::-;14754:45;:::i;:::-;14749:3;14742:58;14649:157;;:::o;14812:397::-;14952:3;14967:75;15038:3;15029:6;14967:75;:::i;:::-;15067:2;15062:3;15058:12;15051:19;;15080:75;15151:3;15142:6;15080:75;:::i;:::-;15180:2;15175:3;15171:12;15164:19;;15200:3;15193:10;;14812:397;;;;;:::o;15215:148::-;15317:11;15354:3;15339:18;;15215:148;;;;:::o;15393:874::-;15496:3;15533:5;15527:12;15562:36;15588:9;15562:36;:::i;:::-;15614:89;15696:6;15691:3;15614:89;:::i;:::-;15607:96;;15734:1;15723:9;15719:17;15750:1;15745:166;;;;15925:1;15920:341;;;;15712:549;;15745:166;15829:4;15825:9;15814;15810:25;15805:3;15798:38;15891:6;15884:14;15877:22;15869:6;15865:35;15860:3;15856:45;15849:52;;15745:166;;15920:341;15987:38;16019:5;15987:38;:::i;:::-;16047:1;16061:154;16075:6;16072:1;16069:13;16061:154;;;16149:7;16143:14;16139:1;16134:3;16130:11;16123:35;16199:1;16190:7;16186:15;16175:26;;16097:4;16094:1;16090:12;16085:17;;16061:154;;;16244:6;16239:3;16235:16;16228:23;;15927:334;;15712:549;;15500:767;;15393:874;;;;:::o;16273:390::-;16379:3;16407:39;16440:5;16407:39;:::i;:::-;16462:89;16544:6;16539:3;16462:89;:::i;:::-;16455:96;;16560:65;16618:6;16613:3;16606:4;16599:5;16595:16;16560:65;:::i;:::-;16650:6;16645:3;16641:16;16634:23;;16383:280;16273:390;;;;:::o;16669:155::-;16809:7;16805:1;16797:6;16793:14;16786:31;16669:155;:::o;16830:400::-;16990:3;17011:84;17093:1;17088:3;17011:84;:::i;:::-;17004:91;;17104:93;17193:3;17104:93;:::i;:::-;17222:1;17217:3;17213:11;17206:18;;16830:400;;;:::o;17236:695::-;17514:3;17536:92;17624:3;17615:6;17536:92;:::i;:::-;17529:99;;17645:95;17736:3;17727:6;17645:95;:::i;:::-;17638:102;;17757:148;17901:3;17757:148;:::i;:::-;17750:155;;17922:3;17915:10;;17236:695;;;;;:::o;17937:93::-;17973:7;18013:10;18006:5;18002:22;17991:33;;17937:93;;;:::o;18036:175::-;18074:3;18097:23;18114:5;18097:23;:::i;:::-;18088:32;;18142:10;18135:5;18132:21;18129:47;;18156:18;;:::i;:::-;18129:47;18203:1;18196:5;18192:13;18185:20;;18036:175;;;:::o;18217:180::-;18265:77;18262:1;18255:88;18362:4;18359:1;18352:15;18386:4;18383:1;18376:15

Swarm Source

ipfs://782cb316a513ee25aa1d81cce13060f186e99f89ddc377c78224dcd386e2bfbd

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.