{"sources":{"contracts/EmergencyProtectedTimelock.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Timestamp} from \"./types/Timestamp.sol\";\nimport {Duration, Durations} from \"./types/Duration.sol\";\n\nimport {IOwnable} from \"./interfaces/IOwnable.sol\";\nimport {IEmergencyProtectedTimelock} from \"./interfaces/IEmergencyProtectedTimelock.sol\";\n\nimport {ExternalCall} from \"./libraries/ExternalCalls.sol\";\nimport {TimelockState} from \"./libraries/TimelockState.sol\";\nimport {ExecutableProposals} from \"./libraries/ExecutableProposals.sol\";\nimport {EmergencyProtection} from \"./libraries/EmergencyProtection.sol\";\n\n/// @notice Timelock contract facilitating the submission, scheduling, and execution of governance proposals.\n///     It provides time-limited Emergency Protection to prevent the execution of proposals submitted by\n///     a compromised or misbehaving (including those caused by code vulnerabilities) governance entity.\n/// @dev The proposal lifecycle:\n///\n///                                                                MIN_EXECUTION_DELAY and\n///                                         afterSubmitDelay         afterScheduleDelay\n///                                              passed                    passed\n///     ┌──────────┐            ┌───────────┐              ┌───────────┐             ╔══════════╗\n///     │ NotExist ├ submit() ─>│ Submitted ├ schedule() ─>│ Scheduled ├ execute() ─>║ Executed ║\n///     └──────────┘            └────────┬──┘              └──┬────────┘             ╚══════════╝\n///                                  cancelAllNonExecutedProposals()\n///                                      │   ╔═══════════╗    │\n///                                      └──>║ Cancelled ║<───┘\n///                                          ╚═══════════╝\n///\n///     The afterSubmit and afterSchedule delays should be configured appropriately to provide the Emergency Activation\n///     Committee sufficient time to activate Emergency Mode if a malicious proposal has been submitted or was\n///     unexpectedly scheduled for execution due to governance capture or a vulnerability in the governance contract.\n///     While Emergency Mode is active, the execution of proposals is restricted to the Emergency Execution Committee.\ncontract EmergencyProtectedTimelock is IEmergencyProtectedTimelock {\n    using TimelockState for TimelockState.Context;\n    using ExecutableProposals for ExecutableProposals.Context;\n    using EmergencyProtection for EmergencyProtection.Context;\n\n    // ---\n    // Sanity Check Parameters & Immutables\n    // ---\n\n    /// @notice The parameters for the sanity checks.\n    /// @param minExecutionDelay The minimum allowable duration for the combined after-submit and after-schedule delays.\n    /// @param maxAfterSubmitDelay The maximum allowable delay before a submitted proposal can be scheduled for execution.\n    /// @param maxAfterScheduleDelay The maximum allowable delay before a scheduled proposal can be executed.\n    /// @param maxEmergencyModeDuration The maximum time the timelock can remain in emergency mode.\n    /// @param maxEmergencyProtectionDuration The maximum time the emergency protection mechanism can be activated.\n    struct SanityCheckParams {\n        Duration minExecutionDelay;\n        Duration maxAfterSubmitDelay;\n        Duration maxAfterScheduleDelay;\n        Duration maxEmergencyModeDuration;\n        Duration maxEmergencyProtectionDuration;\n    }\n\n    /// @notice Represents the minimum allowed time that must pass between the submission of a proposal and its execution.\n    /// @dev The minimum permissible value for the sum of `afterScheduleDelay` and `afterSubmitDelay`.\n    Duration public immutable MIN_EXECUTION_DELAY;\n\n    /// @notice The upper bound for the delay required before a submitted proposal can be scheduled for execution.\n    Duration public immutable MAX_AFTER_SUBMIT_DELAY;\n\n    /// @notice The upper bound for the delay required before a scheduled proposal can be executed.\n    Duration public immutable MAX_AFTER_SCHEDULE_DELAY;\n\n    /// @notice The upper bound for the time the timelock can remain in emergency mode.\n    Duration public immutable MAX_EMERGENCY_MODE_DURATION;\n\n    /// @notice The upper bound for the time the emergency protection mechanism can be activated.\n    Duration public immutable MAX_EMERGENCY_PROTECTION_DURATION;\n\n    // ---\n    // Aspects\n    // ---\n\n    /// @dev The functionality for managing the state of the timelock.\n    TimelockState.Context internal _timelockState;\n\n    /// @dev The functionality for managing the lifecycle of proposals.\n    ExecutableProposals.Context internal _proposals;\n\n    /// @dev The functionality for managing the emergency protection mechanism.\n    EmergencyProtection.Context internal _emergencyProtection;\n\n    // ---\n    // Constructor\n    // ---\n\n    constructor(\n        SanityCheckParams memory sanityCheckParams,\n        address adminExecutor,\n        Duration afterSubmitDelay,\n        Duration afterScheduleDelay\n    ) {\n        MIN_EXECUTION_DELAY = sanityCheckParams.minExecutionDelay;\n        MAX_AFTER_SUBMIT_DELAY = sanityCheckParams.maxAfterSubmitDelay;\n        MAX_AFTER_SCHEDULE_DELAY = sanityCheckParams.maxAfterScheduleDelay;\n        MAX_EMERGENCY_MODE_DURATION = sanityCheckParams.maxEmergencyModeDuration;\n        MAX_EMERGENCY_PROTECTION_DURATION = sanityCheckParams.maxEmergencyProtectionDuration;\n\n        _timelockState.setAdminExecutor(adminExecutor);\n\n        if (afterSubmitDelay > Durations.ZERO) {\n            _timelockState.setAfterSubmitDelay(afterSubmitDelay, MAX_AFTER_SUBMIT_DELAY);\n        }\n\n        if (afterScheduleDelay > Durations.ZERO) {\n            _timelockState.setAfterScheduleDelay(afterScheduleDelay, MAX_AFTER_SCHEDULE_DELAY);\n        }\n\n        _timelockState.checkExecutionDelay(MIN_EXECUTION_DELAY);\n    }\n\n    // ---\n    // Main Timelock Functionality\n    // ---\n\n    /// @notice Submits a new proposal to execute a series of calls through an executor.\n    /// @param executor The address of the executor contract that will execute the calls.\n    /// @param calls An array of `ExternalCall` structs representing the calls to be executed.\n    /// @return newProposalId The id of the newly created proposal.\n    function submit(address executor, ExternalCall[] calldata calls) external returns (uint256 newProposalId) {\n        _timelockState.checkCallerIsGovernance();\n        newProposalId = _proposals.submit(executor, calls);\n    }\n\n    /// @notice Schedules a proposal for execution after a specified delay.\n    /// @param proposalId The id of the proposal to be scheduled.\n    function schedule(uint256 proposalId) external {\n        _timelockState.checkCallerIsGovernance();\n        _proposals.schedule(proposalId, _timelockState.getAfterSubmitDelay());\n    }\n\n    /// @notice Executes a scheduled proposal.\n    /// @param proposalId The id of the proposal to be executed.\n    function execute(uint256 proposalId) external {\n        _emergencyProtection.checkEmergencyMode({isActive: false});\n        _proposals.execute(proposalId, _timelockState.getAfterScheduleDelay(), MIN_EXECUTION_DELAY);\n    }\n\n    /// @notice Cancels all non-executed proposals, preventing them from being executed in the future.\n    function cancelAllNonExecutedProposals() external {\n        _timelockState.checkCallerIsGovernance();\n        _proposals.cancelAll();\n    }\n\n    // ---\n    // Timelock Management\n    // ---\n\n    /// @notice Updates the address of the governance contract  and cancels all non-executed proposals.\n    /// @param newGovernance The address of the new governance contract to be set.\n    function setGovernance(address newGovernance) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _timelockState.setGovernance(newGovernance);\n        _proposals.cancelAll();\n    }\n\n    /// @notice Sets the delay required to pass from the submission of a proposal before it can be scheduled for execution.\n    ///     Ensures that the new delay value complies with the defined sanity check bounds.\n    /// @param newAfterSubmitDelay The delay required before a submitted proposal can be scheduled.\n    function setAfterSubmitDelay(Duration newAfterSubmitDelay) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _timelockState.setAfterSubmitDelay(newAfterSubmitDelay, MAX_AFTER_SUBMIT_DELAY);\n        _timelockState.checkExecutionDelay(MIN_EXECUTION_DELAY);\n    }\n\n    /// @notice Sets the delay required to pass from the scheduling of a proposal before it can be executed.\n    ///     Ensures that the new delay value complies with the defined sanity check bounds.\n    /// @param newAfterScheduleDelay The delay required before a scheduled proposal can be executed.\n    function setAfterScheduleDelay(Duration newAfterScheduleDelay) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _timelockState.setAfterScheduleDelay(newAfterScheduleDelay, MAX_AFTER_SCHEDULE_DELAY);\n        _timelockState.checkExecutionDelay(MIN_EXECUTION_DELAY);\n    }\n\n    /// @notice Transfers ownership of the executor contract to a new owner.\n    /// @param executor The address of the executor contract.\n    /// @param owner The address of the new owner.\n    function transferExecutorOwnership(address executor, address owner) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        IOwnable(executor).transferOwnership(owner);\n    }\n\n    // ---\n    // Emergency Protection Functionality\n    // ---\n\n    /// @notice Sets the emergency activation committee address.\n    /// @param newEmergencyActivationCommittee The address of the emergency activation committee.\n    function setEmergencyProtectionActivationCommittee(address newEmergencyActivationCommittee) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _emergencyProtection.setEmergencyActivationCommittee(newEmergencyActivationCommittee);\n    }\n\n    /// @notice Sets the emergency execution committee address.\n    /// @param newEmergencyExecutionCommittee The address of the emergency execution committee.\n    function setEmergencyProtectionExecutionCommittee(address newEmergencyExecutionCommittee) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _emergencyProtection.setEmergencyExecutionCommittee(newEmergencyExecutionCommittee);\n    }\n\n    /// @notice Sets the emergency protection end date.\n    /// @param newEmergencyProtectionEndDate The timestamp of the emergency protection end date.\n    function setEmergencyProtectionEndDate(Timestamp newEmergencyProtectionEndDate) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _emergencyProtection.setEmergencyProtectionEndDate(\n            newEmergencyProtectionEndDate, MAX_EMERGENCY_PROTECTION_DURATION\n        );\n    }\n\n    /// @notice Sets the emergency mode duration.\n    /// @param newEmergencyModeDuration The duration of the emergency mode.\n    function setEmergencyModeDuration(Duration newEmergencyModeDuration) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _emergencyProtection.setEmergencyModeDuration(newEmergencyModeDuration, MAX_EMERGENCY_MODE_DURATION);\n    }\n\n    /// @notice Sets the emergency governance address.\n    /// @param newEmergencyGovernance The address of the emergency governance.\n    function setEmergencyGovernance(address newEmergencyGovernance) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _emergencyProtection.setEmergencyGovernance(newEmergencyGovernance);\n    }\n\n    /// @notice Activates the emergency mode.\n    function activateEmergencyMode() external {\n        _emergencyProtection.checkCallerIsEmergencyActivationCommittee();\n        _emergencyProtection.checkEmergencyMode({isActive: false});\n        _emergencyProtection.activateEmergencyMode();\n    }\n\n    /// @notice Executes a proposal during emergency mode.\n    /// @param proposalId The id of the proposal to be executed.\n    function emergencyExecute(uint256 proposalId) external {\n        _emergencyProtection.checkEmergencyMode({isActive: true});\n        _emergencyProtection.checkCallerIsEmergencyExecutionCommittee();\n        _proposals.execute({\n            proposalId: proposalId,\n            afterScheduleDelay: Durations.ZERO,\n            minExecutionDelay: Durations.ZERO\n        });\n    }\n\n    /// @notice Deactivates the emergency mode.\n    function deactivateEmergencyMode() external {\n        _emergencyProtection.checkEmergencyMode({isActive: true});\n        if (!_emergencyProtection.isEmergencyModeDurationPassed()) {\n            _timelockState.checkCallerIsAdminExecutor();\n        }\n        _emergencyProtection.deactivateEmergencyMode();\n        _proposals.cancelAll();\n    }\n\n    /// @notice Resets the system after entering the emergency mode.\n    function emergencyReset() external {\n        _emergencyProtection.checkCallerIsEmergencyExecutionCommittee();\n        _emergencyProtection.checkEmergencyMode({isActive: true});\n        _emergencyProtection.deactivateEmergencyMode();\n\n        _timelockState.setGovernance(_emergencyProtection.emergencyGovernance);\n        _proposals.cancelAll();\n    }\n\n    /// @notice Returns whether the emergency protection is enabled.\n    /// @return isEmergencyProtectionEnabled A boolean indicating whether the emergency protection is enabled.\n    function isEmergencyProtectionEnabled() external view returns (bool) {\n        return _emergencyProtection.isEmergencyProtectionEnabled();\n    }\n\n    /// @notice Returns whether the emergency mode is active.\n    /// @return isEmergencyModeActive A boolean indicating whether the emergency mode is active.\n    function isEmergencyModeActive() external view returns (bool) {\n        return _emergencyProtection.isEmergencyModeActive();\n    }\n\n    /// @notice Returns the details of the emergency protection.\n    /// @return details A struct containing the emergency mode duration, emergency mode ends after, and emergency protection ends after.\n    function getEmergencyProtectionDetails() external view returns (EmergencyProtectionDetails memory details) {\n        return _emergencyProtection.getEmergencyProtectionDetails();\n    }\n\n    /// @notice Returns the address of the emergency governance.\n    /// @return emergencyGovernance The address of the emergency governance.\n    function getEmergencyGovernance() external view returns (address) {\n        return _emergencyProtection.emergencyGovernance;\n    }\n\n    /// @notice Returns the address of the emergency activation committee.\n    /// @return emergencyActivationCommittee The address of the emergency activation committee.\n    function getEmergencyActivationCommittee() external view returns (address) {\n        return _emergencyProtection.emergencyActivationCommittee;\n    }\n\n    /// @notice Returns the address of the emergency execution committee.\n    /// @return emergencyExecutionCommittee The address of the emergency execution committee.\n    function getEmergencyExecutionCommittee() external view returns (address) {\n        return _emergencyProtection.emergencyExecutionCommittee;\n    }\n\n    // ---\n    // Timelock View Methods\n    // ---\n\n    /// @notice Returns the address of the current governance contract.\n    /// @return governance The address of the governance contract.\n    function getGovernance() external view returns (address) {\n        return _timelockState.governance;\n    }\n\n    /// @notice Returns the address of the admin executor.\n    /// @return adminExecutor The address of the admin executor.\n    function getAdminExecutor() external view returns (address) {\n        return _timelockState.adminExecutor;\n    }\n\n    /// @notice Returns the configured delay duration required before a submitted proposal can be scheduled.\n    /// @return afterSubmitDelay The duration of the after-submit delay.\n    function getAfterSubmitDelay() external view returns (Duration) {\n        return _timelockState.getAfterSubmitDelay();\n    }\n\n    /// @notice Returns the configured delay duration required before a scheduled proposal can be executed.\n    /// @return afterScheduleDelay The duration of the after-schedule delay.\n    function getAfterScheduleDelay() external view returns (Duration) {\n        return _timelockState.getAfterScheduleDelay();\n    }\n\n    /// @notice Returns the details of a proposal.\n    /// @param proposalId The id of the proposal.\n    /// @return proposalDetails The Proposal struct containing the details of the proposal.\n    /// @return calls An array of ExternalCall structs representing the sequence of calls to be executed for the proposal.\n    function getProposal(uint256 proposalId)\n        external\n        view\n        returns (ProposalDetails memory proposalDetails, ExternalCall[] memory calls)\n    {\n        proposalDetails = _proposals.getProposalDetails(proposalId);\n        calls = _proposals.getProposalCalls(proposalId);\n    }\n\n    /// @notice Returns information about a proposal, excluding the external calls associated with it.\n    /// @param proposalId The id of the proposal to return information for.\n    /// @return proposalDetails A ProposalDetails struct containing the details of the proposal, with the following data:\n    ///     - `id`: The id of the proposal.\n    ///     - `executor`: The address of the executor responsible for executing the proposal's external calls.\n    ///     - `submittedAt`: The timestamp when the proposal was submitted.\n    ///     - `scheduledAt`: The timestamp when the proposal was scheduled for execution. Equals 0 if the proposal\n    ///            was submitted but not yet scheduled.\n    ///     - `status`: The current status of the proposal. Possible values are:\n    ///         1 - The proposal was submitted but not scheduled.\n    ///         2 - The proposal was submitted and scheduled but not yet executed.\n    ///         3 - The proposal was submitted, scheduled, and executed. This is the final state of the proposal lifecycle.\n    ///         4 - The proposal was cancelled via cancelAllNonExecutedProposals() and cannot be scheduled or executed anymore.\n    ///             This is the final state of the proposal.\n    function getProposalDetails(uint256 proposalId) external view returns (ProposalDetails memory proposalDetails) {\n        return _proposals.getProposalDetails(proposalId);\n    }\n\n    /// @notice Returns the external calls associated with the specified proposal.\n    /// @param proposalId The id of the proposal to return external calls for.\n    /// @return calls An array of ExternalCall structs representing the sequence of calls to be executed for the proposal.\n    function getProposalCalls(uint256 proposalId) external view returns (ExternalCall[] memory calls) {\n        calls = _proposals.getProposalCalls(proposalId);\n    }\n\n    /// @notice Returns the total number of proposals.\n    /// @return count The total number of proposals.\n    function getProposalsCount() external view returns (uint256 count) {\n        count = _proposals.getProposalsCount();\n    }\n\n    /// @notice Checks if a proposal can be executed.\n    /// @param proposalId The id of the proposal.\n    /// @return A boolean indicating if the proposal can be executed.\n    function canExecute(uint256 proposalId) external view returns (bool) {\n        return !_emergencyProtection.isEmergencyModeActive()\n            && _proposals.canExecute(proposalId, _timelockState.getAfterScheduleDelay(), MIN_EXECUTION_DELAY);\n    }\n\n    /// @notice Checks if a proposal can be scheduled.\n    /// @param proposalId The id of the proposal.\n    /// @return A boolean indicating if the proposal can be scheduled.\n    function canSchedule(uint256 proposalId) external view returns (bool) {\n        return _proposals.canSchedule(proposalId, _timelockState.getAfterSubmitDelay());\n    }\n\n    // ---\n    // Admin Executor Methods\n    // ---\n\n    /// @notice Sets the address of the admin executor.\n    /// @param newAdminExecutor The address of the new admin executor.\n    function setAdminExecutor(address newAdminExecutor) external {\n        _timelockState.checkCallerIsAdminExecutor();\n        _timelockState.setAdminExecutor(newAdminExecutor);\n    }\n}\n"},"contracts/types/Timestamp.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\n// ---\n// Type Definition\n// ---\n\ntype Timestamp is uint40;\n\n// ---\n// Assign Global Operations\n// ---\n\nusing {lt as <, lte as <=, eq as ==, neq as !=, gte as >=, gt as >} for Timestamp global;\nusing {isZero, isNotZero, toSeconds} for Timestamp global;\n\n// ---\n// Errors\n// ---\n\nerror TimestampOverflow();\n\n// ---\n// Constants\n// ---\n\n/// @dev The maximum value for a `Timestamp`, corresponding to approximately the year 36812.\nuint40 constant MAX_TIMESTAMP_VALUE = type(uint40).max;\n\n// ---\n// Comparison Operations\n// ---\n\nfunction lt(Timestamp t1, Timestamp t2) pure returns (bool) {\n    return Timestamp.unwrap(t1) < Timestamp.unwrap(t2);\n}\n\nfunction lte(Timestamp t1, Timestamp t2) pure returns (bool) {\n    return Timestamp.unwrap(t1) <= Timestamp.unwrap(t2);\n}\n\nfunction eq(Timestamp t1, Timestamp t2) pure returns (bool) {\n    return Timestamp.unwrap(t1) == Timestamp.unwrap(t2);\n}\n\nfunction neq(Timestamp t1, Timestamp t2) pure returns (bool) {\n    return Timestamp.unwrap(t1) != Timestamp.unwrap(t2);\n}\n\nfunction gte(Timestamp t1, Timestamp t2) pure returns (bool) {\n    return Timestamp.unwrap(t1) >= Timestamp.unwrap(t2);\n}\n\nfunction gt(Timestamp t1, Timestamp t2) pure returns (bool) {\n    return Timestamp.unwrap(t1) > Timestamp.unwrap(t2);\n}\n\n// ---\n// Conversion Operations\n// ---\n\nfunction toSeconds(Timestamp t) pure returns (uint256) {\n    return Timestamp.unwrap(t);\n}\n\n// ---\n// Custom Operations\n// ---\n\nfunction isZero(Timestamp t) pure returns (bool) {\n    return Timestamp.unwrap(t) == 0;\n}\n\nfunction isNotZero(Timestamp t) pure returns (bool) {\n    return Timestamp.unwrap(t) > 0;\n}\n\n// ---\n// Namespaced Helper Methods\n// ---\n\nlibrary Timestamps {\n    Timestamp internal constant ZERO = Timestamp.wrap(0);\n\n    function from(uint256 timestampInSeconds) internal pure returns (Timestamp res) {\n        if (timestampInSeconds > MAX_TIMESTAMP_VALUE) {\n            revert TimestampOverflow();\n        }\n\n        /// @dev Casting `timestampInSeconds` to `uint40` is safe as the check ensures it is less than or equal\n        ///     to `MAX_TIMESTAMP_VALUE`, which fits within the `uint40`.\n        return Timestamp.wrap(uint40(timestampInSeconds));\n    }\n\n    function now() internal view returns (Timestamp res) {\n        /// @dev Skipping the check that `block.timestamp` <= `MAX_TIMESTAMP_VALUE` for gas efficiency.\n        ///      Overflow is possible only after approximately 34,000 years from the Unix epoch.\n        res = Timestamp.wrap(uint40(block.timestamp));\n    }\n\n    function max(Timestamp t1, Timestamp t2) internal pure returns (Timestamp) {\n        return t1 > t2 ? t1 : t2;\n    }\n}\n"},"contracts/types/Duration.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Timestamp, Timestamps} from \"./Timestamp.sol\";\n\n// ---\n// Type Definition\n// ---\n\ntype Duration is uint32;\n\n// ---\n// Assign Global Operations\n// ---\n\nusing {lt as <, lte as <=, eq as ==, neq as !=, gte as >=, gt as >} for Duration global;\nusing {addTo, plusSeconds, minusSeconds, multipliedBy, dividedBy, toSeconds} for Duration global;\nusing {plus as +, minus as -} for Duration global;\n\n// ---\n// Errors\n// ---\n\nerror DivisionByZero();\nerror DurationOverflow();\nerror DurationUnderflow();\n\n// ---\n// Constants\n// ---\n\n/// @dev The maximum possible duration is approximately 136 years (assuming 365 days per year).\nuint32 constant MAX_DURATION_VALUE = type(uint32).max;\n\n// ---\n// Comparison Operations\n// ---\n\nfunction lt(Duration d1, Duration d2) pure returns (bool) {\n    return Duration.unwrap(d1) < Duration.unwrap(d2);\n}\n\nfunction lte(Duration d1, Duration d2) pure returns (bool) {\n    return Duration.unwrap(d1) <= Duration.unwrap(d2);\n}\n\nfunction eq(Duration d1, Duration d2) pure returns (bool) {\n    return Duration.unwrap(d1) == Duration.unwrap(d2);\n}\n\nfunction neq(Duration d1, Duration d2) pure returns (bool) {\n    return Duration.unwrap(d1) != Duration.unwrap(d2);\n}\n\nfunction gte(Duration d1, Duration d2) pure returns (bool) {\n    return Duration.unwrap(d1) >= Duration.unwrap(d2);\n}\n\nfunction gt(Duration d1, Duration d2) pure returns (bool) {\n    return Duration.unwrap(d1) > Duration.unwrap(d2);\n}\n\n// ---\n// Conversion Operations\n// ---\n\nfunction toSeconds(Duration d) pure returns (uint256) {\n    return Duration.unwrap(d);\n}\n\n// ---\n// Arithmetic Operations\n// ---\n\nfunction plus(Duration d1, Duration d2) pure returns (Duration) {\n    unchecked {\n        /// @dev Both `d1.toSeconds()` and `d2.toSeconds()` are <= type(uint32).max. Therefore, their\n        ///      sum is <= type(uint256).max.\n        return Durations.from(d1.toSeconds() + d2.toSeconds());\n    }\n}\n\nfunction minus(Duration d1, Duration d2) pure returns (Duration) {\n    uint256 d1Seconds = d1.toSeconds();\n    uint256 d2Seconds = d2.toSeconds();\n\n    if (d1Seconds < d2Seconds) {\n        revert DurationUnderflow();\n    }\n\n    unchecked {\n        /// @dev Subtraction is safe because `d1Seconds` >= `d2Seconds`.\n        ///      Both `d1Seconds` and `d2Seconds` <= `type(uint32).max`, so the difference fits within `uint32`.\n        return Duration.wrap(uint32(d1Seconds - d2Seconds));\n    }\n}\n\n// ---\n// Custom Operations\n// ---\n\nfunction plusSeconds(Duration d, uint256 secondsToAdd) pure returns (Duration) {\n    return Durations.from(d.toSeconds() + secondsToAdd);\n}\n\nfunction minusSeconds(Duration d, uint256 secondsToSubtract) pure returns (Duration) {\n    uint256 durationSeconds = d.toSeconds();\n\n    if (durationSeconds < secondsToSubtract) {\n        revert DurationUnderflow();\n    }\n\n    unchecked {\n        /// @dev Subtraction is safe because `durationSeconds` >= `secondsToSubtract`.\n        ///      Both `durationSeconds` and `secondsToSubtract` <= `type(uint32).max`,\n        ///      so the difference fits within `uint32`.\n        return Duration.wrap(uint32(durationSeconds - secondsToSubtract));\n    }\n}\n\nfunction dividedBy(Duration d, uint256 divisor) pure returns (Duration) {\n    if (divisor == 0) {\n        revert DivisionByZero();\n    }\n    return Duration.wrap(uint32(d.toSeconds() / divisor));\n}\n\nfunction multipliedBy(Duration d, uint256 multiplicand) pure returns (Duration) {\n    return Durations.from(multiplicand * d.toSeconds());\n}\n\nfunction addTo(Duration d, Timestamp t) pure returns (Timestamp) {\n    unchecked {\n        /// @dev Both `t.toSeconds()` <= `type(uint40).max` and `d.toSeconds()` <= `type(uint32).max`, so their\n        ///      sum fits within `uint256`.\n        return Timestamps.from(t.toSeconds() + d.toSeconds());\n    }\n}\n\n// ---\n// Namespaced Helper Methods\n// ---\n\nlibrary Durations {\n    Duration internal constant ZERO = Duration.wrap(0);\n\n    function from(uint256 durationInSeconds) internal pure returns (Duration res) {\n        if (durationInSeconds > MAX_DURATION_VALUE) {\n            revert DurationOverflow();\n        }\n        /// @dev Casting `durationInSeconds` to `uint32` is safe as the check ensures it is less than or equal\n        ///     to `MAX_DURATION_VALUE`, which fits within the `uint32`.\n        res = Duration.wrap(uint32(durationInSeconds));\n    }\n}\n"},"contracts/interfaces/IOwnable.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\ninterface IOwnable {\n    function transferOwnership(address newOwner) external;\n}\n"},"contracts/interfaces/IEmergencyProtectedTimelock.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {ITimelock} from \"./ITimelock.sol\";\nimport {Duration} from \"../types/Duration.sol\";\nimport {Timestamp} from \"../types/Timestamp.sol\";\n\ninterface IEmergencyProtectedTimelock is ITimelock {\n    struct EmergencyProtectionDetails {\n        Duration emergencyModeDuration;\n        Timestamp emergencyModeEndsAfter;\n        Timestamp emergencyProtectionEndsAfter;\n    }\n\n    function MAX_AFTER_SUBMIT_DELAY() external view returns (Duration);\n    function MAX_AFTER_SCHEDULE_DELAY() external view returns (Duration);\n    function MAX_EMERGENCY_MODE_DURATION() external view returns (Duration);\n    function MAX_EMERGENCY_PROTECTION_DURATION() external view returns (Duration);\n\n    function setEmergencyProtectionActivationCommittee(address newEmergencyActivationCommittee) external;\n    function setEmergencyProtectionExecutionCommittee(address newEmergencyExecutionCommittee) external;\n    function setEmergencyProtectionEndDate(Timestamp newEmergencyProtectionEndDate) external;\n    function setEmergencyModeDuration(Duration newEmergencyModeDuration) external;\n    function setEmergencyGovernance(address newEmergencyGovernance) external;\n\n    function activateEmergencyMode() external;\n    function emergencyExecute(uint256 proposalId) external;\n    function deactivateEmergencyMode() external;\n    function emergencyReset() external;\n    function isEmergencyProtectionEnabled() external view returns (bool);\n    function isEmergencyModeActive() external view returns (bool);\n    function getEmergencyProtectionDetails() external view returns (EmergencyProtectionDetails memory details);\n    function getEmergencyGovernance() external view returns (address emergencyGovernance);\n    function getEmergencyActivationCommittee() external view returns (address committee);\n    function getEmergencyExecutionCommittee() external view returns (address committee);\n}\n"},"contracts/libraries/ExternalCalls.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {IExternalExecutor} from \"../interfaces/IExternalExecutor.sol\";\n\n/// @notice Represents an external call to a specific address with an optional ETH transfer.\n/// @param target The address to call.\n/// @param value The amount of ETH (in wei) to transfer with the call, capped at approximately 7.9 billion ETH.\n/// @param payload The calldata payload sent to the target address.\nstruct ExternalCall {\n    address target;\n    uint96 value;\n    bytes payload;\n}\n\n/// @title External Calls Library\n/// @notice Provides functionality for executing multiple external calls through an `IExternalExecutor` contract.\nlibrary ExternalCalls {\n    /// @notice Executes a series of external calls using the provided executor, which implements the\n    ///     `IExternalExecutor` interface.\n    /// @param calls An array of `ExternalCall` structs, each specifying a call to be executed.\n    /// @param executor The contract responsible for executing each call, conforming to the `IExternalExecutor` interface.\n    function execute(IExternalExecutor executor, ExternalCall[] memory calls) internal {\n        uint256 callsCount = calls.length;\n        for (uint256 i = 0; i < callsCount; ++i) {\n            executor.execute(calls[i].target, calls[i].value, calls[i].payload);\n        }\n    }\n}\n"},"contracts/libraries/TimelockState.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Duration} from \"../types/Duration.sol\";\n\n/// @title Timelock State Library\n/// @dev Library for managing the configuration related to the state of timelock contract.\nlibrary TimelockState {\n    // ---\n    // Errors\n    // ---\n\n    error CallerIsNotGovernance(address caller);\n    error InvalidGovernance(address governance);\n    error CallerIsNotAdminExecutor(address caller);\n    error InvalidAdminExecutor(address adminExecutor);\n    error InvalidExecutionDelay(Duration executionDelay);\n    error InvalidAfterSubmitDelay(Duration afterSubmitDelay);\n    error InvalidAfterScheduleDelay(Duration afterScheduleDelay);\n\n    // ---\n    // Events\n    // ---\n\n    event GovernanceSet(address newGovernance);\n    event AfterSubmitDelaySet(Duration newAfterSubmitDelay);\n    event AfterScheduleDelaySet(Duration newAfterScheduleDelay);\n    event AdminExecutorSet(address newAdminExecutor);\n\n    // ---\n    // Data Types\n    // ---\n\n    struct Context {\n        /// @dev slot0 [0..159]\n        address governance;\n        /// @dev slot0 [160..191]\n        Duration afterSubmitDelay;\n        /// @dev slot0 [192..223]\n        Duration afterScheduleDelay;\n        /// @dev slot1 [0..159]\n        address adminExecutor;\n    }\n\n    // ---\n    // State Management\n    // ---\n\n    /// @notice Sets the governance address.\n    /// @param self The context of the Timelock State library.\n    /// @param newGovernance The new governance address.\n    function setGovernance(Context storage self, address newGovernance) internal {\n        if (newGovernance == address(0) || newGovernance == self.governance) {\n            revert InvalidGovernance(newGovernance);\n        }\n        self.governance = newGovernance;\n        emit GovernanceSet(newGovernance);\n    }\n\n    /// @notice Sets the delay period after a proposal is submitted before it can be scheduled for execution,\n    ///     ensuring new delay does not exceed the maximum allowed duration.\n    /// @param self The context of the Timelock State library.\n    /// @param newAfterSubmitDelay The new after submit delay.\n    /// @param maxAfterSubmitDelay The maximum allowed after submit delay.\n    function setAfterSubmitDelay(\n        Context storage self,\n        Duration newAfterSubmitDelay,\n        Duration maxAfterSubmitDelay\n    ) internal {\n        if (newAfterSubmitDelay > maxAfterSubmitDelay || newAfterSubmitDelay == self.afterSubmitDelay) {\n            revert InvalidAfterSubmitDelay(newAfterSubmitDelay);\n        }\n        self.afterSubmitDelay = newAfterSubmitDelay;\n        emit AfterSubmitDelaySet(newAfterSubmitDelay);\n    }\n\n    /// @notice Sets the delay period after a proposal is scheduled before it can be executed, ensuring\n    ///     the new delay does not exceed the maximum allowed duration.\n    /// @param self The context of the Timelock State library.\n    /// @param newAfterScheduleDelay The new after schedule delay.\n    /// @param maxAfterScheduleDelay The maximum allowed after schedule delay.\n    function setAfterScheduleDelay(\n        Context storage self,\n        Duration newAfterScheduleDelay,\n        Duration maxAfterScheduleDelay\n    ) internal {\n        if (newAfterScheduleDelay > maxAfterScheduleDelay || newAfterScheduleDelay == self.afterScheduleDelay) {\n            revert InvalidAfterScheduleDelay(newAfterScheduleDelay);\n        }\n        self.afterScheduleDelay = newAfterScheduleDelay;\n        emit AfterScheduleDelaySet(newAfterScheduleDelay);\n    }\n\n    /// @notice Sets the admin executor address.\n    /// @dev Reverts if the new admin executor address is zero or the same as the current one.\n    /// @param self The context of the timelock state.\n    /// @param newAdminExecutor The new admin executor address.\n    function setAdminExecutor(Context storage self, address newAdminExecutor) internal {\n        if (newAdminExecutor == address(0) || newAdminExecutor == self.adminExecutor) {\n            revert InvalidAdminExecutor(newAdminExecutor);\n        }\n        self.adminExecutor = newAdminExecutor;\n        emit AdminExecutorSet(newAdminExecutor);\n    }\n\n    // ---\n    // Getters\n    // ---\n\n    /// @notice Retrieves the delay period required after a proposal is submitted before it can be scheduled.\n    /// @param self The context of the Timelock State library.\n    /// @return Duration The current after submit delay.\n    function getAfterSubmitDelay(Context storage self) internal view returns (Duration) {\n        return self.afterSubmitDelay;\n    }\n\n    /// @notice Retrieves the delay period required after a proposal is scheduled before it can be executed.\n    /// @param self The context of the Timelock State library library.\n    /// @return Duration The current after schedule delay.\n    function getAfterScheduleDelay(Context storage self) internal view returns (Duration) {\n        return self.afterScheduleDelay;\n    }\n\n    // ---\n    // Checks\n    // ---\n\n    /// @notice Checks if the caller is the governance address, reverting if not.\n    /// @param self The context of the Timelock State library.\n    function checkCallerIsGovernance(Context storage self) internal view {\n        if (self.governance != msg.sender) {\n            revert CallerIsNotGovernance(msg.sender);\n        }\n    }\n\n    /// @notice Checks that the combined after-submit and after-schedule delays meet the minimum required execution delay.\n    /// @param self The context of the Timelock State library library.\n    /// @param minExecutionDelay The minimum required delay between proposal submission and execution.\n    function checkExecutionDelay(Context storage self, Duration minExecutionDelay) internal view {\n        Duration executionDelay = self.afterScheduleDelay + self.afterSubmitDelay;\n        if (executionDelay < minExecutionDelay) {\n            revert InvalidExecutionDelay(executionDelay);\n        }\n    }\n\n    /// @notice Ensures that the caller is the designated admin executor.\n    /// @param self The context of the calling contract.\n    function checkCallerIsAdminExecutor(Context storage self) internal view {\n        if (self.adminExecutor != msg.sender) {\n            revert CallerIsNotAdminExecutor(msg.sender);\n        }\n    }\n}\n"},"contracts/libraries/ExecutableProposals.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Duration} from \"../types/Duration.sol\";\nimport {Timestamp, Timestamps} from \"../types/Timestamp.sol\";\n\nimport {ITimelock} from \"../interfaces/ITimelock.sol\";\n\nimport {ExternalCall, ExternalCalls, IExternalExecutor} from \"./ExternalCalls.sol\";\n\n/// @notice Describes the lifecycle state of a proposal, defining its current status.\n/// @param NotExist Proposal has not been submitted yet.\n/// @param Submitted Proposal has been successfully submitted but not scheduled yet. This state is\n///     only reachable from NotExist.\n/// @param Scheduled Proposal has been successfully scheduled after submission. This state is only\n///     reachable from Submitted.\n/// @param Executed Proposal has been successfully executed after being scheduled. This state is\n///     only reachable from Scheduled and is the final state of the proposal.\n/// @param Cancelled Proposal was cancelled before execution. Cancelled proposals cannot be scheduled\n///     or executed. This state is only reachable from Submitted or Scheduled and is the final state\n///     of the proposal.\n///     @dev A proposal is considered cancelled if it was not executed and its id is less than\n///         the id of the last submitted proposal at the time the `cancelAll()` method was called.\n///         To check if a proposal is in the `Cancelled` state, use the `_isProposalCancelled()`\n///         view function.\nenum Status {\n    NotExist,\n    Submitted,\n    Scheduled,\n    Executed,\n    Cancelled\n}\n\n/// @title Executable Proposals Library\n/// @notice Manages a collection of proposals with associated external calls stored as Proposal struct.\n///     Proposals are uniquely identified by sequential ids, starting from one.\nlibrary ExecutableProposals {\n    // ---\n    // Data Types\n    // ---\n\n    /// @notice Efficiently stores proposal data within a single EVM slot.\n    /// @param status The current status of the proposal. See `Status` for details.\n    /// @param executor The address of the associated executor used for executing the proposal's calls.\n    /// @param submittedAt The timestamp when the proposal was submitted.\n    /// @param scheduledAt The timestamp when the proposal was scheduled for execution.\n    ///     Equals zero if the proposal hasn't been scheduled yet.\n    struct ProposalData {\n        /// @dev slot 0: [0..7]\n        Status status;\n        /// @dev slot 0: [8..167]\n        address executor;\n        /// @dev slot 0: [168..207]\n        Timestamp submittedAt;\n        /// @dev slot 0: [208..247]\n        Timestamp scheduledAt;\n    }\n\n    /// @notice A struct representing a proposal data with associated external calls.\n    /// @param data Proposal data packed into a struct for efficient loading into memory.\n    /// @param calls List of external calls associated with the proposal\n    struct Proposal {\n        ProposalData data;\n        ExternalCall[] calls;\n    }\n\n    /// @notice The context for the library, storing relevant proposals data.\n    /// @param proposalsCount The total number of proposals submitted so far.\n    /// @param lastCancelledProposalId The id of the most recently cancelled proposal.\n    /// @param proposals A mapping of proposal ids to their corresponding `Proposal` data.\n    struct Context {\n        uint64 proposalsCount;\n        uint64 lastCancelledProposalId;\n        mapping(uint256 proposalId => Proposal) proposals;\n    }\n\n    // ---\n    // Errors\n    // ---\n\n    error EmptyCalls();\n    error UnexpectedProposalStatus(uint256 proposalId, Status status);\n    error AfterSubmitDelayNotPassed(uint256 proposalId);\n    error AfterScheduleDelayNotPassed(uint256 proposalId);\n    error MinExecutionDelayNotPassed(uint256 proposalId);\n\n    // ---\n    // Events\n    // ---\n\n    event ProposalSubmitted(uint256 indexed id, address indexed executor, ExternalCall[] calls);\n    event ProposalScheduled(uint256 indexed id);\n    event ProposalExecuted(uint256 indexed id);\n    event ProposalsCancelledTill(uint256 proposalId);\n\n    // ---\n    // Proposal lifecycle\n    // ---\n\n    /// @notice Submits a new proposal with the specified executor and external calls.\n    /// @param self The context of the Executable Proposal library.\n    /// @param executor The address authorized to execute the proposal.\n    /// @param calls The list of external calls to include in the proposal.\n    /// @return newProposalId The id of the newly submitted proposal.\n    function submit(\n        Context storage self,\n        address executor,\n        ExternalCall[] memory calls\n    ) internal returns (uint256 newProposalId) {\n        if (calls.length == 0) {\n            revert EmptyCalls();\n        }\n\n        /// @dev: proposal ids are one-based. The first item has id = 1\n        newProposalId = ++self.proposalsCount;\n        Proposal storage newProposal = self.proposals[newProposalId];\n\n        newProposal.data.executor = executor;\n        newProposal.data.status = Status.Submitted;\n        newProposal.data.submittedAt = Timestamps.now();\n\n        uint256 callsCount = calls.length;\n        for (uint256 i = 0; i < callsCount; ++i) {\n            newProposal.calls.push(calls[i]);\n        }\n\n        emit ProposalSubmitted(newProposalId, executor, calls);\n    }\n\n    /// @notice Marks a previously submitted proposal as scheduled for execution if the required delay period\n    ///     has passed since submission and the proposal was not cancelled.\n    /// @param self The context of the Executable Proposal library.\n    /// @param proposalId The id of the proposal to schedule.\n    /// @param afterSubmitDelay The required delay duration after submission before the proposal can be scheduled.\n    ///\n    function schedule(Context storage self, uint256 proposalId, Duration afterSubmitDelay) internal {\n        ProposalData memory proposalData = self.proposals[proposalId].data;\n\n        _checkProposalNotCancelled(self, proposalId, proposalData);\n\n        if (proposalData.status != Status.Submitted) {\n            revert UnexpectedProposalStatus(proposalId, proposalData.status);\n        }\n\n        if (afterSubmitDelay.addTo(proposalData.submittedAt) > Timestamps.now()) {\n            revert AfterSubmitDelayNotPassed(proposalId);\n        }\n\n        proposalData.status = Status.Scheduled;\n        proposalData.scheduledAt = Timestamps.now();\n        self.proposals[proposalId].data = proposalData;\n\n        emit ProposalScheduled(proposalId);\n    }\n\n    /// @notice Marks a previously scheduled proposal as executed and runs the associated external calls if the\n    ///     required delay period has passed since scheduling and the proposal has not been cancelled.\n    /// @param self The context of the Executable Proposal library.\n    /// @param proposalId The id of the proposal to execute.\n    /// @param afterScheduleDelay The minimum delay required after scheduling before execution is allowed.\n    /// @param minExecutionDelay The minimum time that must elapse after submission before execution is allowed.\n    function execute(\n        Context storage self,\n        uint256 proposalId,\n        Duration afterScheduleDelay,\n        Duration minExecutionDelay\n    ) internal {\n        Proposal memory proposal = self.proposals[proposalId];\n\n        _checkProposalNotCancelled(self, proposalId, proposal.data);\n\n        if (proposal.data.status != Status.Scheduled) {\n            revert UnexpectedProposalStatus(proposalId, proposal.data.status);\n        }\n\n        if (afterScheduleDelay.addTo(proposal.data.scheduledAt) > Timestamps.now()) {\n            revert AfterScheduleDelayNotPassed(proposalId);\n        }\n\n        if (minExecutionDelay.addTo(proposal.data.submittedAt) > Timestamps.now()) {\n            revert MinExecutionDelayNotPassed(proposalId);\n        }\n\n        self.proposals[proposalId].data.status = Status.Executed;\n\n        ExternalCalls.execute(IExternalExecutor(proposal.data.executor), proposal.calls);\n        emit ProposalExecuted(proposalId);\n    }\n\n    /// @notice Marks all non-executed proposals up to the most recently submitted as cancelled, preventing their execution.\n    /// @param self The context of the Executable Proposal library.\n    function cancelAll(Context storage self) internal {\n        uint64 lastCancelledProposalId = self.proposalsCount;\n        self.lastCancelledProposalId = lastCancelledProposalId;\n        emit ProposalsCancelledTill(lastCancelledProposalId);\n    }\n\n    // ---\n    // Getters\n    // ---\n\n    /// @notice Determines whether a proposal is eligible to be scheduled based on its status and required delay.\n    /// @param self The context of the Executable Proposal library.\n    /// @param proposalId The id of the proposal to check for scheduling eligibility.\n    /// @param afterSubmitDelay The minimum delay required after submission before the proposal can be scheduled.\n    /// @return bool `true` if the proposal is eligible for scheduling, otherwise `false`.\n    function canSchedule(\n        Context storage self,\n        uint256 proposalId,\n        Duration afterSubmitDelay\n    ) internal view returns (bool) {\n        ProposalData memory proposalData = self.proposals[proposalId].data;\n        return proposalId > self.lastCancelledProposalId && proposalData.status == Status.Submitted\n            && Timestamps.now() >= afterSubmitDelay.addTo(proposalData.submittedAt);\n    }\n\n    /// @notice Determines whether a proposal is eligible for execution based on its status and delays requirements.\n    /// @param self The context of the Executable Proposal library.\n    /// @param proposalId The id of the proposal to check for execution eligibility.\n    /// @param afterScheduleDelay The required delay duration after scheduling before the proposal can be executed.\n    /// @param minExecutionDelay The required minimum delay after submission before execution is allowed.\n    /// @return bool `true` if the proposal is eligible for execution, otherwise `false`.\n    function canExecute(\n        Context storage self,\n        uint256 proposalId,\n        Duration afterScheduleDelay,\n        Duration minExecutionDelay\n    ) internal view returns (bool) {\n        Timestamp currentTime = Timestamps.now();\n        ProposalData memory proposalData = self.proposals[proposalId].data;\n\n        return proposalId > self.lastCancelledProposalId && proposalData.status == Status.Scheduled\n            && currentTime >= afterScheduleDelay.addTo(proposalData.scheduledAt)\n            && currentTime >= minExecutionDelay.addTo(proposalData.submittedAt);\n    }\n\n    /// @notice Returns the total count of submitted proposals.\n    /// @param self The context of the Executable Proposal library.\n    /// @return uint256 The number of submitted proposal\n    function getProposalsCount(Context storage self) internal view returns (uint256) {\n        return self.proposalsCount;\n    }\n\n    /// @notice Retrieves detailed information about a specific previously submitted proposal.\n    /// @param self The context of the Executable Proposal library.\n    /// @param proposalId The id of the proposal to retrieve details for.\n    /// @return proposalDetails A struct containing the proposal’s id, executor, submission timestamp,\n    ///      scheduling timestamp and status, if applicable\n    function getProposalDetails(\n        Context storage self,\n        uint256 proposalId\n    ) internal view returns (ITimelock.ProposalDetails memory proposalDetails) {\n        ProposalData memory proposalData = self.proposals[proposalId].data;\n        _checkProposalExists(proposalId, proposalData);\n\n        proposalDetails.id = proposalId;\n        proposalDetails.status =\n            _isProposalCancelled(self, proposalId, proposalData) ? Status.Cancelled : proposalData.status;\n        proposalDetails.executor = address(proposalData.executor);\n        proposalDetails.submittedAt = proposalData.submittedAt;\n        proposalDetails.scheduledAt = proposalData.scheduledAt;\n    }\n\n    /// @notice Retrieves the list of external calls associated with a specific previously submitted proposal.\n    /// @param self The storage context for managing proposals within the Executable Proposal library.\n    /// @param proposalId The id of the proposal to retrieve calls for.\n    /// @return calls An array containing all external calls associated with the specified proposal\n    function getProposalCalls(\n        Context storage self,\n        uint256 proposalId\n    ) internal view returns (ExternalCall[] memory calls) {\n        Proposal memory proposal = self.proposals[proposalId];\n        _checkProposalExists(proposalId, proposal.data);\n        calls = proposal.calls;\n    }\n\n    // ---\n    // Private methods\n    // ---\n\n    function _checkProposalExists(uint256 proposalId, ProposalData memory proposalData) private pure {\n        if (proposalData.status == Status.NotExist) {\n            revert UnexpectedProposalStatus(proposalId, Status.NotExist);\n        }\n    }\n\n    function _checkProposalNotCancelled(\n        Context storage self,\n        uint256 proposalId,\n        ProposalData memory proposalData\n    ) private view {\n        if (_isProposalCancelled(self, proposalId, proposalData)) {\n            revert UnexpectedProposalStatus(proposalId, Status.Cancelled);\n        }\n    }\n\n    function _isProposalCancelled(\n        Context storage self,\n        uint256 proposalId,\n        ProposalData memory proposalData\n    ) private view returns (bool) {\n        return proposalId <= self.lastCancelledProposalId && proposalData.status != Status.Executed;\n    }\n}\n"},"contracts/libraries/EmergencyProtection.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Duration, Durations} from \"../types/Duration.sol\";\nimport {Timestamp, Timestamps} from \"../types/Timestamp.sol\";\n\nimport {IEmergencyProtectedTimelock} from \"../interfaces/IEmergencyProtectedTimelock.sol\";\n\n/// @title Emergency Protection Library\n/// @notice Manages emergency protection functionality, allowing for the activation and deactivation\n///     of emergency mode by designated committees.\nlibrary EmergencyProtection {\n    // ---\n    // Errors\n    // ---\n\n    error CallerIsNotEmergencyActivationCommittee(address caller);\n    error CallerIsNotEmergencyExecutionCommittee(address caller);\n    error EmergencyProtectionExpired(Timestamp protectedTill);\n    error InvalidEmergencyGovernance(address governance);\n    error InvalidEmergencyActivationCommittee(address committee);\n    error InvalidEmergencyExecutionCommittee(address committee);\n    error InvalidEmergencyModeDuration(Duration value);\n    error InvalidEmergencyProtectionEndDate(Timestamp value);\n    error UnexpectedEmergencyModeState(bool state);\n\n    // ---\n    // Events\n    // ---\n\n    event EmergencyModeActivated();\n    event EmergencyModeDeactivated();\n    event EmergencyGovernanceSet(address newEmergencyGovernance);\n    event EmergencyActivationCommitteeSet(address newActivationCommittee);\n    event EmergencyExecutionCommitteeSet(address newExecutionCommittee);\n    event EmergencyModeDurationSet(Duration newEmergencyModeDuration);\n    event EmergencyProtectionEndDateSet(Timestamp newEmergencyProtectionEndDate);\n\n    // ---\n    // Data Types\n    // ---\n\n    /// @notice The context of the Emergency Protection library.\n    /// @param emergencyModeEndsAfter The timestamp indicating when the emergency mode will end.\n    /// @param emergencyActivationCommittee The address of the committee authorized to activate emergency mode.\n    /// @param emergencyProtectionEndsAfter The timestamp indicating when emergency protection will expire.\n    /// @param emergencyExecutionCommittee The address of the committee authorized to execute scheduled proposals\n    ///     or reset governance to the emergency governance while in emergency mode.\n    /// @param emergencyModeDuration The duration for which the emergency mode remains active after activation.\n    /// @param emergencyGovernance The governance address to which control will be transferred if the\n    ///     emergency execution committee initiates a governance reset during emergency mode.\n    struct Context {\n        /// @dev slot0 [0..39]\n        Timestamp emergencyModeEndsAfter;\n        /// @dev slot0 [40..199]\n        address emergencyActivationCommittee;\n        /// @dev slot0 [200..239]\n        Timestamp emergencyProtectionEndsAfter;\n        /// @dev slot1 [0..159]\n        address emergencyExecutionCommittee;\n        /// @dev slot1 [160..191]\n        Duration emergencyModeDuration;\n        /// @dev slot2 [0..159]\n        address emergencyGovernance;\n    }\n\n    // ---\n    // Main Functionality\n    // ---\n\n    /// @notice Activates the emergency mode, if it wasn't activated earlier\n    /// @param self The context of the Emergency Protection library\n    function activateEmergencyMode(Context storage self) internal {\n        Timestamp now_ = Timestamps.now();\n\n        if (now_ > self.emergencyProtectionEndsAfter) {\n            revert EmergencyProtectionExpired(self.emergencyProtectionEndsAfter);\n        }\n\n        self.emergencyModeEndsAfter = self.emergencyModeDuration.addTo(now_);\n        emit EmergencyModeActivated();\n    }\n\n    /// @notice Deactivates the emergency mode, resetting context fields to default (except\n    ///     the emergencyGovernance value).\n    /// @param self The context of the Emergency Protection library\n    function deactivateEmergencyMode(Context storage self) internal {\n        self.emergencyActivationCommittee = address(0);\n        self.emergencyExecutionCommittee = address(0);\n        self.emergencyProtectionEndsAfter = Timestamps.ZERO;\n        self.emergencyModeEndsAfter = Timestamps.ZERO;\n        self.emergencyModeDuration = Durations.ZERO;\n        emit EmergencyModeDeactivated();\n    }\n\n    // ---\n    // Setup Functionality\n    // ---\n\n    /// @notice Sets the emergency governance address.\n    /// @param self The context of the Emergency Protection library\n    /// @param newEmergencyGovernance The new emergency governance address.\n    function setEmergencyGovernance(Context storage self, address newEmergencyGovernance) internal {\n        if (newEmergencyGovernance == self.emergencyGovernance) {\n            revert InvalidEmergencyGovernance(newEmergencyGovernance);\n        }\n        self.emergencyGovernance = newEmergencyGovernance;\n        emit EmergencyGovernanceSet(newEmergencyGovernance);\n    }\n\n    /// @notice Sets the emergency protection end date, ensuring it does not exceed the maximum\n    ///     allowed duration.\n    /// @param self The context of the Emergency Protection library\n    /// @param newEmergencyProtectionEndDate The new emergency protection end date.\n    /// @param maxEmergencyProtectionDuration The maximum duration for the emergency protection.\n    function setEmergencyProtectionEndDate(\n        Context storage self,\n        Timestamp newEmergencyProtectionEndDate,\n        Duration maxEmergencyProtectionDuration\n    ) internal {\n        if (\n            newEmergencyProtectionEndDate > maxEmergencyProtectionDuration.addTo(Timestamps.now())\n                || newEmergencyProtectionEndDate == self.emergencyProtectionEndsAfter\n        ) {\n            revert InvalidEmergencyProtectionEndDate(newEmergencyProtectionEndDate);\n        }\n        self.emergencyProtectionEndsAfter = newEmergencyProtectionEndDate;\n        emit EmergencyProtectionEndDateSet(newEmergencyProtectionEndDate);\n    }\n\n    /// @notice Sets the emergency mode duration, ensuring it does not exceed the maximum\n    ///     allowed duration.\n    /// @param self The context of the Emergency Protection library\n    /// @param newEmergencyModeDuration The new emergency mode duration.\n    /// @param maxEmergencyModeDuration The maximum duration for the emergency mode.\n    function setEmergencyModeDuration(\n        Context storage self,\n        Duration newEmergencyModeDuration,\n        Duration maxEmergencyModeDuration\n    ) internal {\n        if (\n            newEmergencyModeDuration > maxEmergencyModeDuration\n                || newEmergencyModeDuration == self.emergencyModeDuration\n        ) {\n            revert InvalidEmergencyModeDuration(newEmergencyModeDuration);\n        }\n\n        self.emergencyModeDuration = newEmergencyModeDuration;\n        emit EmergencyModeDurationSet(newEmergencyModeDuration);\n    }\n\n    /// @notice Sets the emergency activation committee address.\n    /// @param self The context of the Emergency Protection library\n    /// @param newActivationCommittee The new emergency activation committee address.\n    function setEmergencyActivationCommittee(Context storage self, address newActivationCommittee) internal {\n        if (newActivationCommittee == self.emergencyActivationCommittee) {\n            revert InvalidEmergencyActivationCommittee(newActivationCommittee);\n        }\n        self.emergencyActivationCommittee = newActivationCommittee;\n        emit EmergencyActivationCommitteeSet(newActivationCommittee);\n    }\n\n    /// @notice Sets the emergency execution committee address.\n    /// @param self The context of the Emergency Protection library\n    /// @param newExecutionCommittee The new emergency execution committee address.\n    function setEmergencyExecutionCommittee(Context storage self, address newExecutionCommittee) internal {\n        if (newExecutionCommittee == self.emergencyExecutionCommittee) {\n            revert InvalidEmergencyExecutionCommittee(newExecutionCommittee);\n        }\n        self.emergencyExecutionCommittee = newExecutionCommittee;\n        emit EmergencyExecutionCommitteeSet(newExecutionCommittee);\n    }\n\n    // ---\n    // Checks\n    // ---\n\n    /// @notice Checks if the caller is the emergency activation committee and reverts if not.\n    /// @param self The context of the Emergency Protection library\n    function checkCallerIsEmergencyActivationCommittee(Context storage self) internal view {\n        if (self.emergencyActivationCommittee != msg.sender) {\n            revert CallerIsNotEmergencyActivationCommittee(msg.sender);\n        }\n    }\n\n    /// @notice Checks if the caller is the emergency execution committee and reverts if not.\n    /// @param self The context of the Emergency Protection library\n    function checkCallerIsEmergencyExecutionCommittee(Context storage self) internal view {\n        if (self.emergencyExecutionCommittee != msg.sender) {\n            revert CallerIsNotEmergencyExecutionCommittee(msg.sender);\n        }\n    }\n\n    /// @notice Checks whether the current state of emergency mode matches the expected state (`isActive`),\n    ///     and reverts if there is a mismatch.\n    /// @param self The context of the Emergency Protection library\n    /// @param isActive The expected value of the emergency mode.\n    function checkEmergencyMode(Context storage self, bool isActive) internal view {\n        if (isEmergencyModeActive(self) != isActive) {\n            revert UnexpectedEmergencyModeState(!isActive);\n        }\n    }\n\n    // ---\n    // Getters\n    // ---\n\n    /// @notice Retrieves the details of the emergency protection.\n    /// @param self  The storage reference to the Context struct.\n    /// @return details The struct containing the emergency protection details.\n    function getEmergencyProtectionDetails(Context storage self)\n        internal\n        view\n        returns (IEmergencyProtectedTimelock.EmergencyProtectionDetails memory details)\n    {\n        details.emergencyModeDuration = self.emergencyModeDuration;\n        details.emergencyModeEndsAfter = self.emergencyModeEndsAfter;\n        details.emergencyProtectionEndsAfter = self.emergencyProtectionEndsAfter;\n    }\n\n    /// @notice Checks if the emergency mode is activated\n    /// @param self The context of the Emergency Protection library\n    /// @return bool Whether the emergency mode is activated or not.\n    function isEmergencyModeActive(Context storage self) internal view returns (bool) {\n        return self.emergencyModeEndsAfter.isNotZero();\n    }\n\n    /// @notice Checks if the emergency mode duration has passed.\n    /// @param self The context of the Emergency Protection library\n    /// @return bool Whether the emergency mode duration has passed or not.\n    function isEmergencyModeDurationPassed(Context storage self) internal view returns (bool) {\n        Timestamp endsAfter = self.emergencyModeEndsAfter;\n        return endsAfter.isNotZero() && Timestamps.now() > endsAfter;\n    }\n\n    /// @notice Checks if the emergency protection is enabled.\n    /// @param self The context of the Emergency Protection library\n    /// @return bool Whether the emergency protection is enabled or not.\n    function isEmergencyProtectionEnabled(Context storage self) internal view returns (bool) {\n        return Timestamps.now() <= self.emergencyProtectionEndsAfter || self.emergencyModeEndsAfter.isNotZero();\n    }\n}\n"},"contracts/interfaces/ITimelock.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Duration} from \"../types/Duration.sol\";\nimport {Timestamp} from \"../types/Timestamp.sol\";\n\nimport {ExternalCall} from \"../libraries/ExternalCalls.sol\";\nimport {Status as ProposalStatus} from \"../libraries/ExecutableProposals.sol\";\n\ninterface ITimelock {\n    struct ProposalDetails {\n        uint256 id;\n        address executor;\n        Timestamp submittedAt;\n        Timestamp scheduledAt;\n        ProposalStatus status;\n    }\n\n    function submit(address executor, ExternalCall[] calldata calls) external returns (uint256 newProposalId);\n    function schedule(uint256 proposalId) external;\n    function execute(uint256 proposalId) external;\n    function cancelAllNonExecutedProposals() external;\n\n    function canSchedule(uint256 proposalId) external view returns (bool);\n    function canExecute(uint256 proposalId) external view returns (bool);\n\n    function getAdminExecutor() external view returns (address);\n    function setAdminExecutor(address newAdminExecutor) external;\n    function getGovernance() external view returns (address);\n    function setGovernance(address newGovernance) external;\n\n    function getProposal(uint256 proposalId)\n        external\n        view\n        returns (ProposalDetails memory proposalDetails, ExternalCall[] memory calls);\n    function getProposalDetails(uint256 proposalId) external view returns (ProposalDetails memory proposalDetails);\n    function getProposalCalls(uint256 proposalId) external view returns (ExternalCall[] memory calls);\n    function getProposalsCount() external view returns (uint256 count);\n\n    function getAfterSubmitDelay() external view returns (Duration);\n    function getAfterScheduleDelay() external view returns (Duration);\n    function setAfterSubmitDelay(Duration newAfterSubmitDelay) external;\n    function setAfterScheduleDelay(Duration newAfterScheduleDelay) external;\n    function transferExecutorOwnership(address executor, address owner) external;\n}\n"},"contracts/interfaces/IExternalExecutor.sol":{"content":"// SPDX-FileCopyrightText: 2024 Lido <info@lido.fi>\n// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\ninterface IExternalExecutor {\n    function execute(address target, uint256 value, bytes calldata payload) external payable;\n}\n"}},"metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[{"components":[{"internalType":"Duration","name":"minExecutionDelay","type":"uint32"},{"internalType":"Duration","name":"maxAfterSubmitDelay","type":"uint32"},{"internalType":"Duration","name":"maxAfterScheduleDelay","type":"uint32"},{"internalType":"Duration","name":"maxEmergencyModeDuration","type":"uint32"},{"internalType":"Duration","name":"maxEmergencyProtectionDuration","type":"uint32"}],"internalType":"struct EmergencyProtectedTimelock.SanityCheckParams","name":"sanityCheckParams","type":"tuple"},{"internalType":"address","name":"adminExecutor","type":"address"},{"internalType":"Duration","name":"afterSubmitDelay","type":"uint32"},{"internalType":"Duration","name":"afterScheduleDelay","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"AfterScheduleDelayNotPassed","type":"error"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"AfterSubmitDelayNotPassed","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotAdminExecutor","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotEmergencyActivationCommittee","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotEmergencyExecutionCommittee","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotGovernance","type":"error"},{"inputs":[],"name":"DurationOverflow","type":"error"},{"inputs":[{"internalType":"Timestamp","name":"protectedTill","type":"uint40"}],"name":"EmergencyProtectionExpired","type":"error"},{"inputs":[],"name":"EmptyCalls","type":"error"},{"inputs":[{"internalType":"address","name":"adminExecutor","type":"address"}],"name":"InvalidAdminExecutor","type":"error"},{"inputs":[{"internalType":"Duration","name":"afterScheduleDelay","type":"uint32"}],"name":"InvalidAfterScheduleDelay","type":"error"},{"inputs":[{"internalType":"Duration","name":"afterSubmitDelay","type":"uint32"}],"name":"InvalidAfterSubmitDelay","type":"error"},{"inputs":[{"internalType":"address","name":"committee","type":"address"}],"name":"InvalidEmergencyActivationCommittee","type":"error"},{"inputs":[{"internalType":"address","name":"committee","type":"address"}],"name":"InvalidEmergencyExecutionCommittee","type":"error"},{"inputs":[{"internalType":"address","name":"governance","type":"address"}],"name":"InvalidEmergencyGovernance","type":"error"},{"inputs":[{"internalType":"Duration","name":"value","type":"uint32"}],"name":"InvalidEmergencyModeDuration","type":"error"},{"inputs":[{"internalType":"Timestamp","name":"value","type":"uint40"}],"name":"InvalidEmergencyProtectionEndDate","type":"error"},{"inputs":[{"internalType":"Duration","name":"executionDelay","type":"uint32"}],"name":"InvalidExecutionDelay","type":"error"},{"inputs":[{"internalType":"address","name":"governance","type":"address"}],"name":"InvalidGovernance","type":"error"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"MinExecutionDelayNotPassed","type":"error"},{"inputs":[],"name":"TimestampOverflow","type":"error"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"UnexpectedEmergencyModeState","type":"error"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"},{"internalType":"enum Status","name":"status","type":"uint8"}],"name":"UnexpectedProposalStatus","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAdminExecutor","type":"address"}],"name":"AdminExecutorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"Duration","name":"newAfterScheduleDelay","type":"uint32"}],"name":"AfterScheduleDelaySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"Duration","name":"newAfterSubmitDelay","type":"uint32"}],"name":"AfterSubmitDelaySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newActivationCommittee","type":"address"}],"name":"EmergencyActivationCommitteeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newExecutionCommittee","type":"address"}],"name":"EmergencyExecutionCommitteeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newEmergencyGovernance","type":"address"}],"name":"EmergencyGovernanceSet","type":"event"},{"anonymous":false,"inputs":[],"name":"EmergencyModeActivated","type":"event"},{"anonymous":false,"inputs":[],"name":"EmergencyModeDeactivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"Duration","name":"newEmergencyModeDuration","type":"uint32"}],"name":"EmergencyModeDurationSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"Timestamp","name":"newEmergencyProtectionEndDate","type":"uint40"}],"name":"EmergencyProtectionEndDateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newGovernance","type":"address"}],"name":"GovernanceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ProposalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ProposalScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"},{"internalType":"bytes","name":"payload","type":"bytes"}],"indexed":false,"internalType":"struct ExternalCall[]","name":"calls","type":"tuple[]"}],"name":"ProposalSubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"ProposalsCancelledTill","type":"event"},{"inputs":[],"name":"MAX_AFTER_SCHEDULE_DELAY","outputs":[{"internalType":"Duration","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_AFTER_SUBMIT_DELAY","outputs":[{"internalType":"Duration","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EMERGENCY_MODE_DURATION","outputs":[{"internalType":"Duration","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EMERGENCY_PROTECTION_DURATION","outputs":[{"internalType":"Duration","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_EXECUTION_DELAY","outputs":[{"internalType":"Duration","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateEmergencyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"canExecute","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"canSchedule","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelAllNonExecutedProposals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deactivateEmergencyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"emergencyExecute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyReset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdminExecutor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAfterScheduleDelay","outputs":[{"internalType":"Duration","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAfterSubmitDelay","outputs":[{"internalType":"Duration","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEmergencyActivationCommittee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEmergencyExecutionCommittee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEmergencyGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEmergencyProtectionDetails","outputs":[{"components":[{"internalType":"Duration","name":"emergencyModeDuration","type":"uint32"},{"internalType":"Timestamp","name":"emergencyModeEndsAfter","type":"uint40"},{"internalType":"Timestamp","name":"emergencyProtectionEndsAfter","type":"uint40"}],"internalType":"struct IEmergencyProtectedTimelock.EmergencyProtectionDetails","name":"details","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"getProposal","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"Timestamp","name":"submittedAt","type":"uint40"},{"internalType":"Timestamp","name":"scheduledAt","type":"uint40"},{"internalType":"enum Status","name":"status","type":"uint8"}],"internalType":"struct ITimelock.ProposalDetails","name":"proposalDetails","type":"tuple"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct ExternalCall[]","name":"calls","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"getProposalCalls","outputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct ExternalCall[]","name":"calls","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"getProposalDetails","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"Timestamp","name":"submittedAt","type":"uint40"},{"internalType":"Timestamp","name":"scheduledAt","type":"uint40"},{"internalType":"enum Status","name":"status","type":"uint8"}],"internalType":"struct ITimelock.ProposalDetails","name":"proposalDetails","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getProposalsCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEmergencyModeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEmergencyProtectionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"schedule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdminExecutor","type":"address"}],"name":"setAdminExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"Duration","name":"newAfterScheduleDelay","type":"uint32"}],"name":"setAfterScheduleDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"Duration","name":"newAfterSubmitDelay","type":"uint32"}],"name":"setAfterSubmitDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newEmergencyGovernance","type":"address"}],"name":"setEmergencyGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"Duration","name":"newEmergencyModeDuration","type":"uint32"}],"name":"setEmergencyModeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newEmergencyActivationCommittee","type":"address"}],"name":"setEmergencyProtectionActivationCommittee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"Timestamp","name":"newEmergencyProtectionEndDate","type":"uint40"}],"name":"setEmergencyProtectionEndDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newEmergencyExecutionCommittee","type":"address"}],"name":"setEmergencyProtectionExecutionCommittee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newGovernance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"executor","type":"address"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct ExternalCall[]","name":"calls","type":"tuple[]"}],"name":"submit","outputs":[{"internalType":"uint256","name":"newProposalId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"executor","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"transferExecutorOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"details":"The proposal lifecycle:                                                                MIN_EXECUTION_DELAY and                                         afterSubmitDelay         afterScheduleDelay                                              passed                    passed     ┌──────────┐            ┌───────────┐              ┌───────────┐             ╔══════════╗     │ NotExist ├ submit() ─>│ Submitted ├ schedule() ─>│ Scheduled ├ execute() ─>║ Executed ║     └──────────┘            └────────┬──┘              └──┬────────┘             ╚══════════╝                                  cancelAllNonExecutedProposals()                                      │   ╔═══════════╗    │                                      └──>║ Cancelled ║<───┘                                          ╚═══════════╝     The afterSubmit and afterSchedule delays should be configured appropriately to provide the Emergency Activation     Committee sufficient time to activate Emergency Mode if a malicious proposal has been submitted or was     unexpectedly scheduled for execution due to governance capture or a vulnerability in the governance contract.     While Emergency Mode is active, the execution of proposals is restricted to the Emergency Execution Committee.","kind":"dev","methods":{"canExecute(uint256)":{"params":{"proposalId":"The id of the proposal."},"returns":{"_0":"A boolean indicating if the proposal can be executed."}},"canSchedule(uint256)":{"params":{"proposalId":"The id of the proposal."},"returns":{"_0":"A boolean indicating if the proposal can be scheduled."}},"emergencyExecute(uint256)":{"params":{"proposalId":"The id of the proposal to be executed."}},"execute(uint256)":{"params":{"proposalId":"The id of the proposal to be executed."}},"getAdminExecutor()":{"returns":{"_0":"adminExecutor The address of the admin executor."}},"getAfterScheduleDelay()":{"returns":{"_0":"afterScheduleDelay The duration of the after-schedule delay."}},"getAfterSubmitDelay()":{"returns":{"_0":"afterSubmitDelay The duration of the after-submit delay."}},"getEmergencyActivationCommittee()":{"returns":{"_0":"emergencyActivationCommittee The address of the emergency activation committee."}},"getEmergencyExecutionCommittee()":{"returns":{"_0":"emergencyExecutionCommittee The address of the emergency execution committee."}},"getEmergencyGovernance()":{"returns":{"_0":"emergencyGovernance The address of the emergency governance."}},"getEmergencyProtectionDetails()":{"returns":{"details":"A struct containing the emergency mode duration, emergency mode ends after, and emergency protection ends after."}},"getGovernance()":{"returns":{"_0":"governance The address of the governance contract."}},"getProposal(uint256)":{"params":{"proposalId":"The id of the proposal."},"returns":{"calls":"An array of ExternalCall structs representing the sequence of calls to be executed for the proposal.","proposalDetails":"The Proposal struct containing the details of the proposal."}},"getProposalCalls(uint256)":{"params":{"proposalId":"The id of the proposal to return external calls for."},"returns":{"calls":"An array of ExternalCall structs representing the sequence of calls to be executed for the proposal."}},"getProposalDetails(uint256)":{"params":{"proposalId":"The id of the proposal to return information for."},"returns":{"proposalDetails":"A ProposalDetails struct containing the details of the proposal, with the following data:     - `id`: The id of the proposal.     - `executor`: The address of the executor responsible for executing the proposal's external calls.     - `submittedAt`: The timestamp when the proposal was submitted.     - `scheduledAt`: The timestamp when the proposal was scheduled for execution. Equals 0 if the proposal            was submitted but not yet scheduled.     - `status`: The current status of the proposal. Possible values are:         1 - The proposal was submitted but not scheduled.         2 - The proposal was submitted and scheduled but not yet executed.         3 - The proposal was submitted, scheduled, and executed. This is the final state of the proposal lifecycle.         4 - The proposal was cancelled via cancelAllNonExecutedProposals() and cannot be scheduled or executed anymore.             This is the final state of the proposal."}},"getProposalsCount()":{"returns":{"count":"The total number of proposals."}},"isEmergencyModeActive()":{"returns":{"_0":"isEmergencyModeActive A boolean indicating whether the emergency mode is active."}},"isEmergencyProtectionEnabled()":{"returns":{"_0":"isEmergencyProtectionEnabled A boolean indicating whether the emergency protection is enabled."}},"schedule(uint256)":{"params":{"proposalId":"The id of the proposal to be scheduled."}},"setAdminExecutor(address)":{"params":{"newAdminExecutor":"The address of the new admin executor."}},"setAfterScheduleDelay(uint32)":{"params":{"newAfterScheduleDelay":"The delay required before a scheduled proposal can be executed."}},"setAfterSubmitDelay(uint32)":{"params":{"newAfterSubmitDelay":"The delay required before a submitted proposal can be scheduled."}},"setEmergencyGovernance(address)":{"params":{"newEmergencyGovernance":"The address of the emergency governance."}},"setEmergencyModeDuration(uint32)":{"params":{"newEmergencyModeDuration":"The duration of the emergency mode."}},"setEmergencyProtectionActivationCommittee(address)":{"params":{"newEmergencyActivationCommittee":"The address of the emergency activation committee."}},"setEmergencyProtectionEndDate(uint40)":{"params":{"newEmergencyProtectionEndDate":"The timestamp of the emergency protection end date."}},"setEmergencyProtectionExecutionCommittee(address)":{"params":{"newEmergencyExecutionCommittee":"The address of the emergency execution committee."}},"setGovernance(address)":{"params":{"newGovernance":"The address of the new governance contract to be set."}},"submit(address,(address,uint96,bytes)[])":{"params":{"calls":"An array of `ExternalCall` structs representing the calls to be executed.","executor":"The address of the executor contract that will execute the calls."},"returns":{"newProposalId":"The id of the newly created proposal."}},"transferExecutorOwnership(address,address)":{"params":{"executor":"The address of the executor contract.","owner":"The address of the new owner."}}},"stateVariables":{"MIN_EXECUTION_DELAY":{"details":"The minimum permissible value for the sum of `afterScheduleDelay` and `afterSubmitDelay`."},"_emergencyProtection":{"details":"The functionality for managing the emergency protection mechanism."},"_proposals":{"details":"The functionality for managing the lifecycle of proposals."},"_timelockState":{"details":"The functionality for managing the state of the timelock."}},"version":1},"userdoc":{"kind":"user","methods":{"MAX_AFTER_SCHEDULE_DELAY()":{"notice":"The upper bound for the delay required before a scheduled proposal can be executed."},"MAX_AFTER_SUBMIT_DELAY()":{"notice":"The upper bound for the delay required before a submitted proposal can be scheduled for execution."},"MAX_EMERGENCY_MODE_DURATION()":{"notice":"The upper bound for the time the timelock can remain in emergency mode."},"MAX_EMERGENCY_PROTECTION_DURATION()":{"notice":"The upper bound for the time the emergency protection mechanism can be activated."},"MIN_EXECUTION_DELAY()":{"notice":"Represents the minimum allowed time that must pass between the submission of a proposal and its execution."},"activateEmergencyMode()":{"notice":"Activates the emergency mode."},"canExecute(uint256)":{"notice":"Checks if a proposal can be executed."},"canSchedule(uint256)":{"notice":"Checks if a proposal can be scheduled."},"cancelAllNonExecutedProposals()":{"notice":"Cancels all non-executed proposals, preventing them from being executed in the future."},"deactivateEmergencyMode()":{"notice":"Deactivates the emergency mode."},"emergencyExecute(uint256)":{"notice":"Executes a proposal during emergency mode."},"emergencyReset()":{"notice":"Resets the system after entering the emergency mode."},"execute(uint256)":{"notice":"Executes a scheduled proposal."},"getAdminExecutor()":{"notice":"Returns the address of the admin executor."},"getAfterScheduleDelay()":{"notice":"Returns the configured delay duration required before a scheduled proposal can be executed."},"getAfterSubmitDelay()":{"notice":"Returns the configured delay duration required before a submitted proposal can be scheduled."},"getEmergencyActivationCommittee()":{"notice":"Returns the address of the emergency activation committee."},"getEmergencyExecutionCommittee()":{"notice":"Returns the address of the emergency execution committee."},"getEmergencyGovernance()":{"notice":"Returns the address of the emergency governance."},"getEmergencyProtectionDetails()":{"notice":"Returns the details of the emergency protection."},"getGovernance()":{"notice":"Returns the address of the current governance contract."},"getProposal(uint256)":{"notice":"Returns the details of a proposal."},"getProposalCalls(uint256)":{"notice":"Returns the external calls associated with the specified proposal."},"getProposalDetails(uint256)":{"notice":"Returns information about a proposal, excluding the external calls associated with it."},"getProposalsCount()":{"notice":"Returns the total number of proposals."},"isEmergencyModeActive()":{"notice":"Returns whether the emergency mode is active."},"isEmergencyProtectionEnabled()":{"notice":"Returns whether the emergency protection is enabled."},"schedule(uint256)":{"notice":"Schedules a proposal for execution after a specified delay."},"setAdminExecutor(address)":{"notice":"Sets the address of the admin executor."},"setAfterScheduleDelay(uint32)":{"notice":"Sets the delay required to pass from the scheduling of a proposal before it can be executed.     Ensures that the new delay value complies with the defined sanity check bounds."},"setAfterSubmitDelay(uint32)":{"notice":"Sets the delay required to pass from the submission of a proposal before it can be scheduled for execution.     Ensures that the new delay value complies with the defined sanity check bounds."},"setEmergencyGovernance(address)":{"notice":"Sets the emergency governance address."},"setEmergencyModeDuration(uint32)":{"notice":"Sets the emergency mode duration."},"setEmergencyProtectionActivationCommittee(address)":{"notice":"Sets the emergency activation committee address."},"setEmergencyProtectionEndDate(uint40)":{"notice":"Sets the emergency protection end date."},"setEmergencyProtectionExecutionCommittee(address)":{"notice":"Sets the emergency execution committee address."},"setGovernance(address)":{"notice":"Updates the address of the governance contract  and cancels all non-executed proposals."},"submit(address,(address,uint96,bytes)[])":{"notice":"Submits a new proposal to execute a series of calls through an executor."},"transferExecutorOwnership(address,address)":{"notice":"Transfers ownership of the executor contract to a new owner."}},"notice":"Timelock contract facilitating the submission, scheduling, and execution of governance proposals.     It provides time-limited Emergency Protection to prevent the execution of proposals submitted by     a compromised or misbehaving (including those caused by code vulnerabilities) governance entity.","version":1}},"settings":{"compilationTarget":{"contracts/EmergencyProtectedTimelock.sol":"EmergencyProtectedTimelock"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[":@openzeppelin/=lib/openzeppelin-contracts/",":ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":eth-gas-reporter/=node_modules/eth-gas-reporter/",":forge-std/=lib/forge-std/src/",":hardhat/=node_modules/hardhat/",":kontrol-cheatcodes/=lib/kontrol-cheatcodes/src/",":openzeppelin-contracts/=lib/openzeppelin-contracts/"]},"sources":{"contracts/EmergencyProtectedTimelock.sol":{"keccak256":"0xef4b3b9cee45b59fc9522136047daf0e534b1de864d92d9ed352e4f37cd42d9a","license":"MIT","urls":["bzz-raw://f99aa612b0d302b1f83ce48d1e7878c646a57abe548e63c14c6522769df07cd5","dweb:/ipfs/QmegQcr2H1Bzy6mDBgSLCJgguZHLr2avG2PeNnY7pcPywk"]},"contracts/interfaces/IEmergencyProtectedTimelock.sol":{"keccak256":"0xb4b5183226bca10e9b7f758cb738969fb2cd8e077acd37eb7e17b869c5ed1c1f","license":"MIT","urls":["bzz-raw://1087f5375d437c10400cb921859c60a33401b7f3730b91c32ecdd860e99665cd","dweb:/ipfs/QmPT9HtdBkE8jaU9q4vUvJU6mkPVtncm9ZBFN3xjtULgEi"]},"contracts/interfaces/IExternalExecutor.sol":{"keccak256":"0x9a0d50dc50369e5ca6ddf80403d4072961f97d4a1f7e2e19258af1d0a5cbc180","license":"MIT","urls":["bzz-raw://871653d1aa0096b074e4ef28ec16578aabfe5ab171d8b277ed5a4e68e1971d67","dweb:/ipfs/QmSgsDBW4mHHUcmP9EiESDoN6afEbPMeXFXYoRSKT9KEcJ"]},"contracts/interfaces/IOwnable.sol":{"keccak256":"0xcc633c7c87f553d7036b7a2c29df8cf1f35cd9cf4259d184f15c742008716406","license":"MIT","urls":["bzz-raw://fd10f9487fec7904e914930f7f2b34f3282ce9fbbf3c7ea93eb4ffa32375dad8","dweb:/ipfs/QmdyCNLV3gPFwJ1hUBDkEZxuUK5vXBeSM1a4xTDqQKSz3U"]},"contracts/interfaces/ITimelock.sol":{"keccak256":"0xfa77c2e49eb29091ba2d18131cfc2c634c9ba8d2b17c566a7ddba6d65cdf861e","license":"MIT","urls":["bzz-raw://9b7989deec0b73b97e2125876143e3048de42b2d3ec55f91bf089d59947375be","dweb:/ipfs/QmYr6nLsUrcoUn8rp2sfiVvW32PV4VXxNivk99g7gCXneY"]},"contracts/libraries/EmergencyProtection.sol":{"keccak256":"0x6b35e8152c09db90fd318e54a319cbe308673df68e3d5002960c69687103ba45","license":"MIT","urls":["bzz-raw://f7e6d5a7bd3f2b2526d5514c18ec5907edf592f08c25ad64215d59c896444960","dweb:/ipfs/QmaBH5QAFNxb3WH4tWebrdMx9gdfcxXnZFirHF3px3chr9"]},"contracts/libraries/ExecutableProposals.sol":{"keccak256":"0xcfe5526b60e78b7d23c8132656b6a07fb25659efe0c1f0fa66f30ecfa0194a4e","license":"MIT","urls":["bzz-raw://9fc129f1722608691dc8fa0d4d9625443fd4728a8cd6ad32254fdc8b48763957","dweb:/ipfs/QmTUTNTsrwBVpr9F7jS37M2TXAikaSjGAwJQKGbCcsiyWq"]},"contracts/libraries/ExternalCalls.sol":{"keccak256":"0x7bbc9683164598b9d71bc09c9c31eda65e020fa1b7250791b1d97d504c75b843","license":"MIT","urls":["bzz-raw://268148b3d257ae1db686358c7df7db90a5c084289bdb5845f3e9bc73d7953694","dweb:/ipfs/QmV3Sim6zNfPA3kdv3RRJkAYWb5Q6WquVT1zhqoxikFR1u"]},"contracts/libraries/TimelockState.sol":{"keccak256":"0x6bb2e05ea95b4326d123e9a28acc212eb6f6a8f7ff79b41700fa1f7b1e6574f3","license":"MIT","urls":["bzz-raw://2eaf858360e45bfc65114bacae99b3afffbe141e8da994298543b3e83e59892d","dweb:/ipfs/QmfLQaw2V57LeAmdvBQetQcNPLQSKKAZdb78Mvk2r6Ptkc"]},"contracts/types/Duration.sol":{"keccak256":"0xb83464a2374b4975cc4ed50ff920092fc7e8790ae6aa0e2f996944abbf536a48","license":"MIT","urls":["bzz-raw://15ed6268ddaa1647559097b1d27130dce464913234fdb2fcb1f4e48ab62122f1","dweb:/ipfs/QmU4Xs7Dy5Lrj6JtcqujSbuCdBYLMFp16oHvggsY5csxFo"]},"contracts/types/Timestamp.sol":{"keccak256":"0xd512aa5c5c1c50b75893f54fd302851c20188fe2796fca200ea461d5a8704ecc","license":"MIT","urls":["bzz-raw://9ba2903de958be86bde43232100c1f1ac6bb514e6a0278000b9c3c8d2f247a21","dweb:/ipfs/QmPNfuWUEJ44vjU7xkT9PAUsscmVFNai8RsKAiZ9QG8U2n"]}},"version":1},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.26+commit.8a97fa7a","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/=lib/openzeppelin-contracts/","ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","eth-gas-reporter/=node_modules/eth-gas-reporter/","forge-std/=lib/forge-std/src/","hardhat/=node_modules/hardhat/","kontrol-cheatcodes/=lib/kontrol-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"]},"name":"EmergencyProtectedTimelock","fullyQualifiedName":"contracts/EmergencyProtectedTimelock.sol:EmergencyProtectedTimelock"},"runtimeBytecode":{"onchainBytecode":"0x608060405234801561000f575f80fd5b5060043610610234575f3560e01c806398e527d311610135578063c7f758a8116100b4578063e8d9510a11610079578063e8d9510a14610554578063eda9a08b14610567578063f1b9a79c1461058e578063fe0d94c1146105b5578063ff567515146105c8575f80fd5b8063c7f758a8146104fd578063cc63604a1461051e578063d009601014610531578063ddb2408a14610539578063e88c997e1461054c575f80fd5b8063ab033ea9116100fa578063ab033ea91461045e578063b12a8dbf14610471578063bcbde21214610484578063be1d6dd3146104ab578063c464d580146104be575f80fd5b806398e527d3146103f457806399b20eaf146103fc5780639f69053514610404578063a211a39614610424578063a4c5a5fc14610437575f80fd5b80635a728b45116101c1578063709105d711610186578063709105d71461037457806373ddf4c614610388578063743777c914610399578063787c441e146103c057806389bc65cf146103d3575f80fd5b80635a728b45146102f55780635d5f5564146103085780635f1ff5af1461032d5780636608e2e2146103505780636fbfd40914610361575f80fd5b80632442433b116102075780632442433b14610287578063248946011461029a57806324dbfa0e146102ad578063289b3c0d146102c55780633b4d01a7146102d5575f80fd5b8063021937301461023857806311be2ca01461024257806316388836146102555780631d16fdee1461025d575b5f80fd5b6102406105d0565b005b6102406102503660046120ae565b6105e5565b6102406105fb565b6006546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6102406102953660046120c7565b610632565b6102406102a83660046120ae565b610695565b600454600160281b90046001600160a01b031661026a565b5f546001600160a01b031661026a565b6102e86102e33660046120f8565b6106a9565b60405161027e919061218d565b6102406103033660046120ae565b6106e8565b5f54600160c01b900463ffffffff165b60405163ffffffff909116815260200161027e565b61034061033b3660046120f8565b610701565b604051901515815260200161027e565b6001546001600160a01b031661026a565b61024061036f3660046120f8565b610725565b5f54600160a01b900463ffffffff16610318565b6005546001600160a01b031661026a565b6103187f0000000000000000000000000000000000000000000000000000000005a39a8081565b6102406103ce36600461219b565b610751565b6103e66103e13660046121be565b6107af565b60405190815260200161027e565b6103e66107d8565b6102406107eb565b6104176104123660046120f8565b610818565b60405161027e91906122f8565b61024061043236600461230a565b610825565b6103187f0000000000000000000000000000000000000000000000000000000000278d0081565b61024061046c3660046120ae565b61085a565b61024061047f36600461219b565b610877565b6103187f000000000000000000000000000000000000000000000000000000000003f48081565b6102406104b936600461219b565b6108ab565b6104c66108e0565b60408051825163ffffffff16815260208084015164ffffffffff90811691830191909152928201519092169082015260600161027e565b61051061050b3660046120f8565b610940565b60405161027e92919061232e565b61034061052c3660046120f8565b61098f565b6102406109e6565b6102406105473660046120ae565b610a05565b610340610a19565b6102406105623660046120f8565b610a24565b6103187f00000000000000000000000000000000000000000000000000000000000d2f0081565b6103187f0000000000000000000000000000000000000000000000000000000001e1338081565b6102406105c33660046120f8565b610a47565b610340610a96565b6105d95f610aa1565b6105e36002610ad2565b565b6105ee5f610b38565b6105f85f82610b67565b50565b6106056004610c05565b61061160046001610c34565b61061b6004610c67565b6006546105d9905f906001600160a01b0316610cb6565b61063b5f610b38565b60405163f2fde38b60e01b81526001600160a01b03828116600483015283169063f2fde38b906024015f604051808303815f87803b15801561067b575f80fd5b505af115801561068d573d5f803e3d5ffd5b505050505050565b61069e5f610b38565b6105f8600482610d4c565b6106d76040805160a0810182525f808252602082018190529181018290526060810182905290608082015290565b6106e2600283610de5565b92915050565b6106f15f610b38565b6105f8600482610f1d565b905090565b5f6106e28261071c5f5463ffffffff600160a01b9091041690565b60029190610fa9565b61072e5f610aa1565b6105f8816107485f5463ffffffff600160a01b9091041690565b600291906110a2565b61075a5f610b38565b6107855f827f00000000000000000000000000000000000000000000000000000000000d2f00611297565b6105f85f7f000000000000000000000000000000000000000000000000000000000003f48061133e565b5f6107b95f610aa1565b6107d0846107c784866123b9565b6002919061139b565b949350505050565b5f6106fc6002546001600160401b031690565b6107f760046001610c34565b610801600461152b565b61080e5761080e5f610b38565b6105d96004610c67565b60606106e2600283611553565b61082e5f610b38565b6105f86004827f0000000000000000000000000000000000000000000000000000000005a39a8061171a565b6108635f610b38565b61086d5f82610cb6565b6105f86002610ad2565b6108805f610b38565b6107855f827f0000000000000000000000000000000000000000000000000000000000278d006117c8565b6108b45f610b38565b6105f86004827f0000000000000000000000000000000000000000000000000000000001e13380611866565b604080516060810182525f80825260208201819052918101919091526106fc600460408051606081018252600183015463ffffffff600160a01b909104168152915464ffffffffff8082166020850152600160c81b909104169082015290565b61096e6040805160a0810182525f808252602082018190529181018290526060810182905290608082015290565b606061097b600284610de5565b9150610988600284611553565b9050915091565b5f61099a600461190c565b1580156106e257506106e2826109bc5f5463ffffffff600160c01b9091041690565b600291907f000000000000000000000000000000000000000000000000000000000003f48061191e565b6109f06004611a31565b6109fb60045f610c34565b6105e36004611a64565b610a0e5f610b38565b6105f8600482611b10565b5f6106fc600461190c565b610a3060046001610c34565b610a3a6004610c05565b6105f86002825f80611b9c565b610a5260045f610c34565b6105f881610a6c5f5463ffffffff600160c01b9091041690565b600291907f000000000000000000000000000000000000000000000000000000000003f480611b9c565b5f6106fc6004611e6c565b80546001600160a01b031633146105f8576040516382a9ceaf60e01b81523360048201526024015b60405180910390fd5b80546fffffffffffffffff00000000000000001981166001600160401b03909116600160401b81029190911782556040518181527f3e1ea97f283ced0e88dc14cb33eca5f94bf01dc4e237248f7c30c52eb1f06935906020015b60405180910390a15050565b60018101546001600160a01b031633146105f857604051631b4f93ad60e21b8152336004820152602401610ac9565b6001600160a01b0381161580610b8c575060018201546001600160a01b038281169116145b15610bb557604051636e5baf2560e11b81526001600160a01b0382166004820152602401610ac9565b6001820180546001600160a01b0319166001600160a01b0383169081179091556040519081527fe2fabf06f46334054dd5ad5fcba0092af5a14ad15fa8d0eedace7296272c889090602001610b2c565b60018101546001600160a01b031633146105f85760405163f989a5c560e01b8152336004820152602401610ac9565b801515610c408361190c565b151514610c6357604051633cca947160e01b815281156004820152602401610ac9565b5050565b80546001820180546001600160f01b031990921683556001600160c01b031990911690556040517f70b9dcaceb756943ac1a4f48b8df9ea82fbb012b87e405cba4ed77d1ded0df41905f90a150565b6001600160a01b0381161580610cd8575081546001600160a01b038281169116145b15610d0157604051633a56e4b960e01b81526001600160a01b0382166004820152602401610ac9565b81546001600160a01b0319166001600160a01b03821690811783556040519081527fc73be659241aade67e9a059bcf21494955018b213dbd1179054ccf928b13f3b690602001610b2c565b81546001600160a01b03600160281b909104811690821603610d8c57604051633e2b46a160e01b81526001600160a01b0382166004820152602401610ac9565b815465010000000000600160c81b031916600160281b6001600160a01b0383169081029190911783556040519081527f8b7be8e77254f06ea4758545cc40fb90c7a69de3a56d132eb1ec008791885f6490602001610b2c565b610e136040805160a0810182525f808252602082018190529181018290526060810182905290608082015290565b5f8281526001840160205260408082208151608081019092528054829060ff166004811115610e4457610e4461210f565b6004811115610e5557610e5561210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b909104166060909101529050610e9b8382611ea0565b828252610ea9848483611ed6565b610eb4578051610eb7565b60045b82608001906004811115610ecd57610ecd61210f565b90816004811115610ee057610ee061210f565b9052506020808201516001600160a01b03169083015260408082015164ffffffffff90811691840191909152606091820151169082015292915050565b60028201546001600160a01b0390811690821603610f59576040516302a9b8af60e41b81526001600160a01b0382166004820152602401610ac9565b6002820180546001600160a01b0319166001600160a01b0383169081179091556040519081527f9aa3597f5c17c1c26534ea0fd3fc23c18673406869e895b489ae40c654f689ec90602001610b2c565b5f828152600184016020526040808220815160808101909252805483929190829060ff166004811115610fde57610fde61210f565b6004811115610fef57610fef61210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b9091041660609091015285549091506001600160401b03600160401b909104168411801561105f575060018151600481111561105d5761105d61210f565b145b801561109757506110974261108783604001518663ffffffff16611f1390919063ffffffff16565b64ffffffffff9081169116101590565b9150505b9392505050565b5f8281526001840160205260408082208151608081019092528054829060ff1660048111156110d3576110d361210f565b60048111156110e4576110e461210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b90910416606090910152905061112b848483611f2c565b6001815160048111156111405761114061210f565b146111625780516040516343247f0f60e11b8152610ac9918591600401612500565b61119361118282604001518463ffffffff16611f1390919063ffffffff16565b425b64ffffffffff90811691161190565b156111b457604051631bdcecbb60e11b815260048101849052602401610ac9565b6002815264ffffffffff421660608201525f83815260018581016020526040909120825181548493839160ff1916908360048111156111f5576111f561210f565b02179055506020820151815460408085015160609095015164ffffffffff908116600160d01b0264ffffffffff60d01b1991909616600160a81b0264ffffffffff60a81b196001600160a01b039095166101000294909416610100600160d01b03199093169290921792909217169290921790555183907f8b9c2cfee0d20895490bae51f33d88197032bb221b15e360155508136257569a905f90a250505050565b63ffffffff80821690831611806112be5750825463ffffffff808416600160c01b90920416145b156112e4576040516383a4436560e01b815263ffffffff83166004820152602401610ac9565b825463ffffffff60c01b1916600160c01b63ffffffff84169081029190911784556040519081527f9214d94b10bc969bccc098f5e599c24241c5f4b8d9444cc0bca949b929b36d1d906020015b60405180910390a1505050565b81545f906113629063ffffffff600160c01b8204811691600160a01b900416611f5a565b905063ffffffff80831690821610156113965760405163741890b760e01b815263ffffffff82166004820152602401610ac9565b505050565b5f81515f036113bd57604051633217dafb60e21b815260040160405180910390fd5b835484905f906113d5906001600160401b0316612514565b82546001600160401b0391821661010093840a818102930219909116919091179092555f828152600187810160205260408220805464ffffffffff60a81b196001600160a01b038a1690950260ff19166001600160a81b03199091161790911792909216600160a81b64ffffffffff42160217825584519293509091905b818110156114df57826001018582815181106114715761147161254a565b6020908102919091018101518254600181810185555f948552938390208251938301516001600160601b0316600160a01b026001600160a01b03909416939093176002909102909201918255604081015190928201906114d190826125e1565b505050806001019050611453565b50846001600160a01b0316837f24ae498e7a5643162addf3812fe00ad3706e7c421edc41b033379affcbefc8ec8660405161151a91906122f8565b60405180910390a350509392505050565b80545f9064ffffffffff16801515801561109b575061109b4264ffffffffff80841691161190565b5f818152600183016020526040808220815160c0810183528154606094939192918391908201908390829060ff1660048111156115925761159261210f565b60048111156115a3576115a361210f565b815290546001600160a01b0361010082041660208084019190915264ffffffffff600160a81b83048116604080860191909152600160d01b909304166060909301929092529183526001840180548351818402810184019094528084529382019390915f9084015b828210156116f8575f848152602090819020604080516060810182526002860290920180546001600160a01b0381168452600160a01b90046001600160601b031693830193909352600183018054929392918401916116699061255e565b80601f01602080910402602001604051908101604052809291908181526020018280546116959061255e565b80156116e05780601f106116b7576101008083540402835291602001916116e0565b820191905f5260205f20905b8154815290600101906020018083116116c357829003601f168201915b5050505050815250508152602001906001019061160b565b5050505081525050905061170f83825f0151611ea0565b602001519392505050565b611732826111844263ffffffff8086169190611f1316565b8061174e5750825464ffffffffff808416600160c81b90920416145b1561177557604051630584720b60e21b815264ffffffffff83166004820152602401610ac9565b825464ffffffffff60c81b1916600160c81b64ffffffffff84169081029190911784556040519081527f425ecc1d50391b04779b1bcf8750698447ae9ee09c1e11a9b948b487e3a9396f90602001611331565b63ffffffff80821690831611806117ef5750825463ffffffff808416600160a01b90920416145b1561181557604051637b3c020b60e01b815263ffffffff83166004820152602401610ac9565b825463ffffffff60a01b1916600160a01b63ffffffff84169081029190911784556040519081527f6897dd39f7b772e6097b87dbbf96ad4a8237e76c5df357647ce66fad8c30793690602001611331565b63ffffffff80821690831611806118905750600183015463ffffffff808416600160a01b90920416145b156118b65760405163bd771c4960e01b815263ffffffff83166004820152602401610ac9565b60018301805463ffffffff60a01b1916600160a01b63ffffffff8516908102919091179091556040519081527fef294c08aec73ea2b8536b641fdb21548871c3148dc551d9c02444c76f7c153790602001611331565b80545f9064ffffffffff1615156106e2565b5f8381526001850160205260408082208151608081019092528054429284929091829060ff1660048111156119555761195561210f565b60048111156119665761196661210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b9091041660609091015287549091506001600160401b03600160401b90910416861180156119d657506002815160048111156119d4576119d461210f565b145b80156119fe57506119fe8261108783606001518863ffffffff16611f1390919063ffffffff16565b8015611a265750611a268261108783604001518763ffffffff16611f1390919063ffffffff16565b979650505050505050565b8054600160281b90046001600160a01b031633146105f8576040516346bdb67b60e11b8152336004820152602401610ac9565b80544290600160c81b900464ffffffffff9081169082161115611aac578154604051635ab9e6a560e11b8152600160c81b90910464ffffffffff166004820152602401610ac9565b6001820154611acd9063ffffffff600160a01b9091048116908390611f1316565b825464ffffffffff191664ffffffffff919091161782556040517f9e91804b7b70a36dcecd9afc85507eb02441c485502f58d0e68589aa50b8226a905f90a15050565b60018201546001600160a01b0390811690821603611b4c57604051639272aa9360e01b81526001600160a01b0382166004820152602401610ac9565b6001820180546001600160a01b0319166001600160a01b0383169081179091556040519081527ff5d77eb906cdab925610ee831f2b2a1d45bc12550ea46464627a8ff875c22c0f90602001610b2c565b5f838152600185016020526040808220815160c081018352815490928391908201908390829060ff166004811115611bd657611bd661210f565b6004811115611be757611be761210f565b815290546001600160a01b0361010082041660208084019190915264ffffffffff600160a81b83048116604080860191909152600160d01b909304166060909301929092529183526001840180548351818402810184019094528084529382019390915f9084015b82821015611d3c575f848152602090819020604080516060810182526002860290920180546001600160a01b0381168452600160a01b90046001600160601b03169383019390935260018301805492939291840191611cad9061255e565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd99061255e565b8015611d245780601f10611cfb57610100808354040283529160200191611d24565b820191905f5260205f20905b815481529060010190602001808311611d0757829003601f168201915b50505050508152505081526020019060010190611c4f565b50505050815250509050611d548585835f0151611f2c565b60028151516004811115611d6a57611d6a61210f565b14611d8d578051516040516343247f0f60e11b8152610ac9918691600401612500565b805160600151611dab906111829063ffffffff8087169190611f1316565b15611dcc57604051634ebdded560e01b815260048101859052602401610ac9565b805160400151611dea906111829063ffffffff8086169190611f1316565b15611e0b576040516301bb6a7760e71b815260048101859052602401610ac9565b5f8481526001860160209081526040909120805460ff19166003179055815181015190820151611e3b9190611f72565b60405184907f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f905f90a25050505050565b5f611e8a42835464ffffffffff600160c81b90910481169116111590565b806106e25750815464ffffffffff1615156106e2565b5f81516004811115611eb457611eb461210f565b03610c6357815f6040516343247f0f60e11b8152600401610ac9929190612500565b82545f90600160401b90046001600160401b031683118015906107d05750600382516004811115611f0957611f0961210f565b1415949350505050565b5f61109b63ffffffff841664ffffffffff841601612042565b611f37838383611ed6565b15611396578160046040516343247f0f60e11b8152600401610ac9929190612500565b5f61109b63ffffffff831663ffffffff85160161206d565b80515f5b8181101561203c57836001600160a01b031663b61d27f6848381518110611f9f57611f9f61254a565b60200260200101515f0151858481518110611fbc57611fbc61254a565b602002602001015160200151868581518110611fda57611fda61254a565b6020026020010151604001516040518463ffffffff1660e01b81526004016120049392919061269b565b5f604051808303815f87803b15801561201b575f80fd5b505af115801561202d573d5f803e3d5ffd5b50505050806001019050611f76565b50505050565b5f64ffffffffff8211156120695760405163549a019760e01b815260040160405180910390fd5b5090565b5f63ffffffff821115612069576040516368c2e67360e11b815260040160405180910390fd5b80356001600160a01b03811681146120a9575f80fd5b919050565b5f602082840312156120be575f80fd5b61109b82612093565b5f80604083850312156120d8575f80fd5b6120e183612093565b91506120ef60208401612093565b90509250929050565b5f60208284031215612108575f80fd5b5035919050565b634e487b7160e01b5f52602160045260245ffd5b6005811061213f57634e487b7160e01b5f52602160045260245ffd5b9052565b8051825260018060a01b03602082015116602083015264ffffffffff604082015116604083015264ffffffffff606082015116606083015260808101516113966080840182612123565b60a081016106e28284612143565b5f602082840312156121ab575f80fd5b813563ffffffff8116811461109b575f80fd5b5f805f604084860312156121d0575f80fd5b6121d984612093565b925060208401356001600160401b038111156121f3575f80fd5b8401601f81018613612203575f80fd5b80356001600160401b03811115612218575f80fd5b8660208260051b840101111561222c575f80fd5b939660209190910195509293505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b5f82825180855260208501945060208160051b830101602085015f5b838110156122ec57848303601f19018852815180516001600160a01b031684526020808201516001600160601b0316908501526040908101516060918501829052906122d59085018261223d565b6020998a0199909450929092019150600101612287565b50909695505050505050565b602081525f61109b602083018461226b565b5f6020828403121561231a575f80fd5b813564ffffffffff8116811461109b575f80fd5b6123388184612143565b60c060a08201525f6107d060c083018461226b565b634e487b7160e01b5f52604160045260245ffd5b604051606081016001600160401b03811182821017156123835761238361234d565b60405290565b604051601f8201601f191681016001600160401b03811182821017156123b1576123b161234d565b604052919050565b5f6001600160401b038311156123d1576123d161234d565b8260051b6123e160208201612389565b848152908301906020810190368311156123f9575f80fd5b845b838110156124f65780356001600160401b03811115612418575f80fd5b8601606036829003121561242a575f80fd5b612432612361565b61243b82612093565b815260208201356001600160601b0381168114612456575f80fd5b602082015260408201356001600160401b03811115612473575f80fd5b919091019036601f830112612486575f80fd5b81356001600160401b0381111561249f5761249f61234d565b6124b2601f8201601f1916602001612389565b8181523660208386010111156124c6575f80fd5b816020850160208301375f60208383010152806040840152505080855250506020830192506020810190506123fb565b5095945050505050565b8281526040810161109b6020830184612123565b5f6001600160401b0382166001600160401b03810361254157634e487b7160e01b5f52601160045260245ffd5b60010192915050565b634e487b7160e01b5f52603260045260245ffd5b600181811c9082168061257257607f821691505b60208210810361259057634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561139657805f5260205f20601f840160051c810160208510156125bb5750805b601f840160051c820191505b818110156125da575f81556001016125c7565b5050505050565b81516001600160401b038111156125fa576125fa61234d565b61260e81612608845461255e565b84612596565b6020601f821160018114612640575f83156126295750848201515b5f19600385901b1c1916600184901b1784556125da565b5f84815260208120601f198516915b8281101561266f578785015182556020948501946001909201910161264f565b508482101561268c57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b03841681526001600160601b03831660208201526060604082018190525f906126cd9083018461223d565b9594505050505056fea2646970667358221220beb11eee5f504129f2f659b62f169d071dc9f49c81afae77971c0ec37a22af3f64736f6c634300081a0033","recompiledBytecode":"0x608060405234801561000f575f80fd5b5060043610610234575f3560e01c806398e527d311610135578063c7f758a8116100b4578063e8d9510a11610079578063e8d9510a14610554578063eda9a08b14610567578063f1b9a79c1461058e578063fe0d94c1146105b5578063ff567515146105c8575f80fd5b8063c7f758a8146104fd578063cc63604a1461051e578063d009601014610531578063ddb2408a14610539578063e88c997e1461054c575f80fd5b8063ab033ea9116100fa578063ab033ea91461045e578063b12a8dbf14610471578063bcbde21214610484578063be1d6dd3146104ab578063c464d580146104be575f80fd5b806398e527d3146103f457806399b20eaf146103fc5780639f69053514610404578063a211a39614610424578063a4c5a5fc14610437575f80fd5b80635a728b45116101c1578063709105d711610186578063709105d71461037457806373ddf4c614610388578063743777c914610399578063787c441e146103c057806389bc65cf146103d3575f80fd5b80635a728b45146102f55780635d5f5564146103085780635f1ff5af1461032d5780636608e2e2146103505780636fbfd40914610361575f80fd5b80632442433b116102075780632442433b14610287578063248946011461029a57806324dbfa0e146102ad578063289b3c0d146102c55780633b4d01a7146102d5575f80fd5b8063021937301461023857806311be2ca01461024257806316388836146102555780631d16fdee1461025d575b5f80fd5b6102406105d0565b005b6102406102503660046120ae565b6105e5565b6102406105fb565b6006546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6102406102953660046120c7565b610632565b6102406102a83660046120ae565b610695565b600454600160281b90046001600160a01b031661026a565b5f546001600160a01b031661026a565b6102e86102e33660046120f8565b6106a9565b60405161027e919061218d565b6102406103033660046120ae565b6106e8565b5f54600160c01b900463ffffffff165b60405163ffffffff909116815260200161027e565b61034061033b3660046120f8565b610701565b604051901515815260200161027e565b6001546001600160a01b031661026a565b61024061036f3660046120f8565b610725565b5f54600160a01b900463ffffffff16610318565b6005546001600160a01b031661026a565b6103187f000000000000000000000000000000000000000000000000000000000000000081565b6102406103ce36600461219b565b610751565b6103e66103e13660046121be565b6107af565b60405190815260200161027e565b6103e66107d8565b6102406107eb565b6104176104123660046120f8565b610818565b60405161027e91906122f8565b61024061043236600461230a565b610825565b6103187f000000000000000000000000000000000000000000000000000000000000000081565b61024061046c3660046120ae565b61085a565b61024061047f36600461219b565b610877565b6103187f000000000000000000000000000000000000000000000000000000000000000081565b6102406104b936600461219b565b6108ab565b6104c66108e0565b60408051825163ffffffff16815260208084015164ffffffffff90811691830191909152928201519092169082015260600161027e565b61051061050b3660046120f8565b610940565b60405161027e92919061232e565b61034061052c3660046120f8565b61098f565b6102406109e6565b6102406105473660046120ae565b610a05565b610340610a19565b6102406105623660046120f8565b610a24565b6103187f000000000000000000000000000000000000000000000000000000000000000081565b6103187f000000000000000000000000000000000000000000000000000000000000000081565b6102406105c33660046120f8565b610a47565b610340610a96565b6105d95f610aa1565b6105e36002610ad2565b565b6105ee5f610b38565b6105f85f82610b67565b50565b6106056004610c05565b61061160046001610c34565b61061b6004610c67565b6006546105d9905f906001600160a01b0316610cb6565b61063b5f610b38565b60405163f2fde38b60e01b81526001600160a01b03828116600483015283169063f2fde38b906024015f604051808303815f87803b15801561067b575f80fd5b505af115801561068d573d5f803e3d5ffd5b505050505050565b61069e5f610b38565b6105f8600482610d4c565b6106d76040805160a0810182525f808252602082018190529181018290526060810182905290608082015290565b6106e2600283610de5565b92915050565b6106f15f610b38565b6105f8600482610f1d565b905090565b5f6106e28261071c5f5463ffffffff600160a01b9091041690565b60029190610fa9565b61072e5f610aa1565b6105f8816107485f5463ffffffff600160a01b9091041690565b600291906110a2565b61075a5f610b38565b6107855f827f0000000000000000000000000000000000000000000000000000000000000000611297565b6105f85f7f000000000000000000000000000000000000000000000000000000000000000061133e565b5f6107b95f610aa1565b6107d0846107c784866123b9565b6002919061139b565b949350505050565b5f6106fc6002546001600160401b031690565b6107f760046001610c34565b610801600461152b565b61080e5761080e5f610b38565b6105d96004610c67565b60606106e2600283611553565b61082e5f610b38565b6105f86004827f000000000000000000000000000000000000000000000000000000000000000061171a565b6108635f610b38565b61086d5f82610cb6565b6105f86002610ad2565b6108805f610b38565b6107855f827f00000000000000000000000000000000000000000000000000000000000000006117c8565b6108b45f610b38565b6105f86004827f0000000000000000000000000000000000000000000000000000000000000000611866565b604080516060810182525f80825260208201819052918101919091526106fc600460408051606081018252600183015463ffffffff600160a01b909104168152915464ffffffffff8082166020850152600160c81b909104169082015290565b61096e6040805160a0810182525f808252602082018190529181018290526060810182905290608082015290565b606061097b600284610de5565b9150610988600284611553565b9050915091565b5f61099a600461190c565b1580156106e257506106e2826109bc5f5463ffffffff600160c01b9091041690565b600291907f000000000000000000000000000000000000000000000000000000000000000061191e565b6109f06004611a31565b6109fb60045f610c34565b6105e36004611a64565b610a0e5f610b38565b6105f8600482611b10565b5f6106fc600461190c565b610a3060046001610c34565b610a3a6004610c05565b6105f86002825f80611b9c565b610a5260045f610c34565b6105f881610a6c5f5463ffffffff600160c01b9091041690565b600291907f0000000000000000000000000000000000000000000000000000000000000000611b9c565b5f6106fc6004611e6c565b80546001600160a01b031633146105f8576040516382a9ceaf60e01b81523360048201526024015b60405180910390fd5b80546fffffffffffffffff00000000000000001981166001600160401b03909116600160401b81029190911782556040518181527f3e1ea97f283ced0e88dc14cb33eca5f94bf01dc4e237248f7c30c52eb1f06935906020015b60405180910390a15050565b60018101546001600160a01b031633146105f857604051631b4f93ad60e21b8152336004820152602401610ac9565b6001600160a01b0381161580610b8c575060018201546001600160a01b038281169116145b15610bb557604051636e5baf2560e11b81526001600160a01b0382166004820152602401610ac9565b6001820180546001600160a01b0319166001600160a01b0383169081179091556040519081527fe2fabf06f46334054dd5ad5fcba0092af5a14ad15fa8d0eedace7296272c889090602001610b2c565b60018101546001600160a01b031633146105f85760405163f989a5c560e01b8152336004820152602401610ac9565b801515610c408361190c565b151514610c6357604051633cca947160e01b815281156004820152602401610ac9565b5050565b80546001820180546001600160f01b031990921683556001600160c01b031990911690556040517f70b9dcaceb756943ac1a4f48b8df9ea82fbb012b87e405cba4ed77d1ded0df41905f90a150565b6001600160a01b0381161580610cd8575081546001600160a01b038281169116145b15610d0157604051633a56e4b960e01b81526001600160a01b0382166004820152602401610ac9565b81546001600160a01b0319166001600160a01b03821690811783556040519081527fc73be659241aade67e9a059bcf21494955018b213dbd1179054ccf928b13f3b690602001610b2c565b81546001600160a01b03600160281b909104811690821603610d8c57604051633e2b46a160e01b81526001600160a01b0382166004820152602401610ac9565b815465010000000000600160c81b031916600160281b6001600160a01b0383169081029190911783556040519081527f8b7be8e77254f06ea4758545cc40fb90c7a69de3a56d132eb1ec008791885f6490602001610b2c565b610e136040805160a0810182525f808252602082018190529181018290526060810182905290608082015290565b5f8281526001840160205260408082208151608081019092528054829060ff166004811115610e4457610e4461210f565b6004811115610e5557610e5561210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b909104166060909101529050610e9b8382611ea0565b828252610ea9848483611ed6565b610eb4578051610eb7565b60045b82608001906004811115610ecd57610ecd61210f565b90816004811115610ee057610ee061210f565b9052506020808201516001600160a01b03169083015260408082015164ffffffffff90811691840191909152606091820151169082015292915050565b60028201546001600160a01b0390811690821603610f59576040516302a9b8af60e41b81526001600160a01b0382166004820152602401610ac9565b6002820180546001600160a01b0319166001600160a01b0383169081179091556040519081527f9aa3597f5c17c1c26534ea0fd3fc23c18673406869e895b489ae40c654f689ec90602001610b2c565b5f828152600184016020526040808220815160808101909252805483929190829060ff166004811115610fde57610fde61210f565b6004811115610fef57610fef61210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b9091041660609091015285549091506001600160401b03600160401b909104168411801561105f575060018151600481111561105d5761105d61210f565b145b801561109757506110974261108783604001518663ffffffff16611f1390919063ffffffff16565b64ffffffffff9081169116101590565b9150505b9392505050565b5f8281526001840160205260408082208151608081019092528054829060ff1660048111156110d3576110d361210f565b60048111156110e4576110e461210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b90910416606090910152905061112b848483611f2c565b6001815160048111156111405761114061210f565b146111625780516040516343247f0f60e11b8152610ac9918591600401612500565b61119361118282604001518463ffffffff16611f1390919063ffffffff16565b425b64ffffffffff90811691161190565b156111b457604051631bdcecbb60e11b815260048101849052602401610ac9565b6002815264ffffffffff421660608201525f83815260018581016020526040909120825181548493839160ff1916908360048111156111f5576111f561210f565b02179055506020820151815460408085015160609095015164ffffffffff908116600160d01b0264ffffffffff60d01b1991909616600160a81b0264ffffffffff60a81b196001600160a01b039095166101000294909416610100600160d01b03199093169290921792909217169290921790555183907f8b9c2cfee0d20895490bae51f33d88197032bb221b15e360155508136257569a905f90a250505050565b63ffffffff80821690831611806112be5750825463ffffffff808416600160c01b90920416145b156112e4576040516383a4436560e01b815263ffffffff83166004820152602401610ac9565b825463ffffffff60c01b1916600160c01b63ffffffff84169081029190911784556040519081527f9214d94b10bc969bccc098f5e599c24241c5f4b8d9444cc0bca949b929b36d1d906020015b60405180910390a1505050565b81545f906113629063ffffffff600160c01b8204811691600160a01b900416611f5a565b905063ffffffff80831690821610156113965760405163741890b760e01b815263ffffffff82166004820152602401610ac9565b505050565b5f81515f036113bd57604051633217dafb60e21b815260040160405180910390fd5b835484905f906113d5906001600160401b0316612514565b82546001600160401b0391821661010093840a818102930219909116919091179092555f828152600187810160205260408220805464ffffffffff60a81b196001600160a01b038a1690950260ff19166001600160a81b03199091161790911792909216600160a81b64ffffffffff42160217825584519293509091905b818110156114df57826001018582815181106114715761147161254a565b6020908102919091018101518254600181810185555f948552938390208251938301516001600160601b0316600160a01b026001600160a01b03909416939093176002909102909201918255604081015190928201906114d190826125e1565b505050806001019050611453565b50846001600160a01b0316837f24ae498e7a5643162addf3812fe00ad3706e7c421edc41b033379affcbefc8ec8660405161151a91906122f8565b60405180910390a350509392505050565b80545f9064ffffffffff16801515801561109b575061109b4264ffffffffff80841691161190565b5f818152600183016020526040808220815160c0810183528154606094939192918391908201908390829060ff1660048111156115925761159261210f565b60048111156115a3576115a361210f565b815290546001600160a01b0361010082041660208084019190915264ffffffffff600160a81b83048116604080860191909152600160d01b909304166060909301929092529183526001840180548351818402810184019094528084529382019390915f9084015b828210156116f8575f848152602090819020604080516060810182526002860290920180546001600160a01b0381168452600160a01b90046001600160601b031693830193909352600183018054929392918401916116699061255e565b80601f01602080910402602001604051908101604052809291908181526020018280546116959061255e565b80156116e05780601f106116b7576101008083540402835291602001916116e0565b820191905f5260205f20905b8154815290600101906020018083116116c357829003601f168201915b5050505050815250508152602001906001019061160b565b5050505081525050905061170f83825f0151611ea0565b602001519392505050565b611732826111844263ffffffff8086169190611f1316565b8061174e5750825464ffffffffff808416600160c81b90920416145b1561177557604051630584720b60e21b815264ffffffffff83166004820152602401610ac9565b825464ffffffffff60c81b1916600160c81b64ffffffffff84169081029190911784556040519081527f425ecc1d50391b04779b1bcf8750698447ae9ee09c1e11a9b948b487e3a9396f90602001611331565b63ffffffff80821690831611806117ef5750825463ffffffff808416600160a01b90920416145b1561181557604051637b3c020b60e01b815263ffffffff83166004820152602401610ac9565b825463ffffffff60a01b1916600160a01b63ffffffff84169081029190911784556040519081527f6897dd39f7b772e6097b87dbbf96ad4a8237e76c5df357647ce66fad8c30793690602001611331565b63ffffffff80821690831611806118905750600183015463ffffffff808416600160a01b90920416145b156118b65760405163bd771c4960e01b815263ffffffff83166004820152602401610ac9565b60018301805463ffffffff60a01b1916600160a01b63ffffffff8516908102919091179091556040519081527fef294c08aec73ea2b8536b641fdb21548871c3148dc551d9c02444c76f7c153790602001611331565b80545f9064ffffffffff1615156106e2565b5f8381526001850160205260408082208151608081019092528054429284929091829060ff1660048111156119555761195561210f565b60048111156119665761196661210f565b815290546001600160a01b03610100820416602083015264ffffffffff600160a81b820481166040840152600160d01b9091041660609091015287549091506001600160401b03600160401b90910416861180156119d657506002815160048111156119d4576119d461210f565b145b80156119fe57506119fe8261108783606001518863ffffffff16611f1390919063ffffffff16565b8015611a265750611a268261108783604001518763ffffffff16611f1390919063ffffffff16565b979650505050505050565b8054600160281b90046001600160a01b031633146105f8576040516346bdb67b60e11b8152336004820152602401610ac9565b80544290600160c81b900464ffffffffff9081169082161115611aac578154604051635ab9e6a560e11b8152600160c81b90910464ffffffffff166004820152602401610ac9565b6001820154611acd9063ffffffff600160a01b9091048116908390611f1316565b825464ffffffffff191664ffffffffff919091161782556040517f9e91804b7b70a36dcecd9afc85507eb02441c485502f58d0e68589aa50b8226a905f90a15050565b60018201546001600160a01b0390811690821603611b4c57604051639272aa9360e01b81526001600160a01b0382166004820152602401610ac9565b6001820180546001600160a01b0319166001600160a01b0383169081179091556040519081527ff5d77eb906cdab925610ee831f2b2a1d45bc12550ea46464627a8ff875c22c0f90602001610b2c565b5f838152600185016020526040808220815160c081018352815490928391908201908390829060ff166004811115611bd657611bd661210f565b6004811115611be757611be761210f565b815290546001600160a01b0361010082041660208084019190915264ffffffffff600160a81b83048116604080860191909152600160d01b909304166060909301929092529183526001840180548351818402810184019094528084529382019390915f9084015b82821015611d3c575f848152602090819020604080516060810182526002860290920180546001600160a01b0381168452600160a01b90046001600160601b03169383019390935260018301805492939291840191611cad9061255e565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd99061255e565b8015611d245780601f10611cfb57610100808354040283529160200191611d24565b820191905f5260205f20905b815481529060010190602001808311611d0757829003601f168201915b50505050508152505081526020019060010190611c4f565b50505050815250509050611d548585835f0151611f2c565b60028151516004811115611d6a57611d6a61210f565b14611d8d578051516040516343247f0f60e11b8152610ac9918691600401612500565b805160600151611dab906111829063ffffffff8087169190611f1316565b15611dcc57604051634ebdded560e01b815260048101859052602401610ac9565b805160400151611dea906111829063ffffffff8086169190611f1316565b15611e0b576040516301bb6a7760e71b815260048101859052602401610ac9565b5f8481526001860160209081526040909120805460ff19166003179055815181015190820151611e3b9190611f72565b60405184907f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f905f90a25050505050565b5f611e8a42835464ffffffffff600160c81b90910481169116111590565b806106e25750815464ffffffffff1615156106e2565b5f81516004811115611eb457611eb461210f565b03610c6357815f6040516343247f0f60e11b8152600401610ac9929190612500565b82545f90600160401b90046001600160401b031683118015906107d05750600382516004811115611f0957611f0961210f565b1415949350505050565b5f61109b63ffffffff841664ffffffffff841601612042565b611f37838383611ed6565b15611396578160046040516343247f0f60e11b8152600401610ac9929190612500565b5f61109b63ffffffff831663ffffffff85160161206d565b80515f5b8181101561203c57836001600160a01b031663b61d27f6848381518110611f9f57611f9f61254a565b60200260200101515f0151858481518110611fbc57611fbc61254a565b602002602001015160200151868581518110611fda57611fda61254a565b6020026020010151604001516040518463ffffffff1660e01b81526004016120049392919061269b565b5f604051808303815f87803b15801561201b575f80fd5b505af115801561202d573d5f803e3d5ffd5b50505050806001019050611f76565b50505050565b5f64ffffffffff8211156120695760405163549a019760e01b815260040160405180910390fd5b5090565b5f63ffffffff821115612069576040516368c2e67360e11b815260040160405180910390fd5b80356001600160a01b03811681146120a9575f80fd5b919050565b5f602082840312156120be575f80fd5b61109b82612093565b5f80604083850312156120d8575f80fd5b6120e183612093565b91506120ef60208401612093565b90509250929050565b5f60208284031215612108575f80fd5b5035919050565b634e487b7160e01b5f52602160045260245ffd5b6005811061213f57634e487b7160e01b5f52602160045260245ffd5b9052565b8051825260018060a01b03602082015116602083015264ffffffffff604082015116604083015264ffffffffff606082015116606083015260808101516113966080840182612123565b60a081016106e28284612143565b5f602082840312156121ab575f80fd5b813563ffffffff8116811461109b575f80fd5b5f805f604084860312156121d0575f80fd5b6121d984612093565b925060208401356001600160401b038111156121f3575f80fd5b8401601f81018613612203575f80fd5b80356001600160401b03811115612218575f80fd5b8660208260051b840101111561222c575f80fd5b939660209190910195509293505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b5f82825180855260208501945060208160051b830101602085015f5b838110156122ec57848303601f19018852815180516001600160a01b031684526020808201516001600160601b0316908501526040908101516060918501829052906122d59085018261223d565b6020998a0199909450929092019150600101612287565b50909695505050505050565b602081525f61109b602083018461226b565b5f6020828403121561231a575f80fd5b813564ffffffffff8116811461109b575f80fd5b6123388184612143565b60c060a08201525f6107d060c083018461226b565b634e487b7160e01b5f52604160045260245ffd5b604051606081016001600160401b03811182821017156123835761238361234d565b60405290565b604051601f8201601f191681016001600160401b03811182821017156123b1576123b161234d565b604052919050565b5f6001600160401b038311156123d1576123d161234d565b8260051b6123e160208201612389565b848152908301906020810190368311156123f9575f80fd5b845b838110156124f65780356001600160401b03811115612418575f80fd5b8601606036829003121561242a575f80fd5b612432612361565b61243b82612093565b815260208201356001600160601b0381168114612456575f80fd5b602082015260408201356001600160401b03811115612473575f80fd5b919091019036601f830112612486575f80fd5b81356001600160401b0381111561249f5761249f61234d565b6124b2601f8201601f1916602001612389565b8181523660208386010111156124c6575f80fd5b816020850160208301375f60208383010152806040840152505080855250506020830192506020810190506123fb565b5095945050505050565b8281526040810161109b6020830184612123565b5f6001600160401b0382166001600160401b03810361254157634e487b7160e01b5f52601160045260245ffd5b60010192915050565b634e487b7160e01b5f52603260045260245ffd5b600181811c9082168061257257607f821691505b60208210810361259057634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561139657805f5260205f20601f840160051c810160208510156125bb5750805b601f840160051c820191505b818110156125da575f81556001016125c7565b5050505050565b81516001600160401b038111156125fa576125fa61234d565b61260e81612608845461255e565b84612596565b6020601f821160018114612640575f83156126295750848201515b5f19600385901b1c1916600184901b1784556125da565b5f84815260208120601f198516915b8281101561266f578785015182556020948501946001909201910161264f565b508482101561268c57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b03841681526001600160601b03831660208201526060604082018190525f906126cd9083018461223d565b9594505050505056fea2646970667358221220beb11eee5f504129f2f659b62f169d071dc9f49c81afae77971c0ec37a22af3f64736f6c634300081a0033","sourceMap":"2564:17867:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7551:139;;;:::i;:::-;;20249:180;;;;;;:::i;:::-;;:::i;13088:351::-;;;:::i;14603:130::-;14686:40;;-1:-1:-1;;;;;14686:40:0;14603:130;;;-1:-1:-1;;;;;547:32:11;;;529:51;;517:2;502:18;14603:130:0;;;;;;;;9533:190;;;;;;:::i;:::-;;:::i;9957:256::-;;;;;;:::i;:::-;;:::i;14910:148::-;15002:20;:49;-1:-1:-1;;;15002:49:0;;-1:-1:-1;;;;;15002:49:0;14910:148;;15575:106;15623:7;15649:25;-1:-1:-1;;;;;15649:25:0;15575:106;;18422:176;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;11607:210::-;;;;;;:::i;:::-;;:::i;16426:128::-;16482:8;4924:23:8;-1:-1:-1;;;4924:23:8;;;;16426:128:0;;;2340:10:11;2328:23;;;2310:42;;2298:2;2283:18;16426:128:0;2136:222:11;19897:166:0;;;;;;:::i;:::-;;:::i;:::-;;;2528:14:11;;2521:22;2503:41;;2491:2;2476:18;19897:166:0;2363:187:11;15811:112:0;15888:28;;-1:-1:-1;;;;;15888:28:0;15811:112;;6919:183;;;;;;:::i;:::-;;:::i;16111:124::-;16165:8;4548:21:8;-1:-1:-1;;;4548:21:8;;;;16111:124:0;16426:128;15232:146;15323:48;;-1:-1:-1;;;;;15323:48:0;15232:146;;4601:59;;;;;9045:292;;;;;;:::i;:::-;;:::i;6548:223::-;;;;;;:::i;:::-;;:::i;:::-;;;3733:25:11;;;3721:2;3706:18;6548:223:0;3587:177:11;19165:122:0;;;:::i;12671:342::-;;;:::i;18889:162::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;10790:297::-;;;;;;:::i;:::-;;:::i;4143:48::-;;;;;7933:200;;;;;;:::i;:::-;;:::i;8455:282::-;;;;;;:::i;:::-;;:::i;3976:45::-;;;;;11219:248;;;;;;:::i;:::-;;:::i;14272:183::-;;;:::i;:::-;;;;5858:13:11;;5873:10;5854:30;5836:49;;5945:4;5933:17;;;5927:24;5953:12;5923:43;;;5901:20;;;5894:73;;;;6015:17;;;6009:24;6005:43;;;5983:20;;;5976:73;5824:2;5809:18;14272:183:0;5604:451:11;16876:294:0;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;19467:248::-;;;;;;:::i;:::-;;:::i;11869:245::-;;;:::i;10379:252::-;;;;;;:::i;:::-;;:::i;13934:130::-;;;:::i;12244:373::-;;;;;;:::i;:::-;;:::i;4298:50::-;;;;;4443:53;;;;;7220:222;;;;;;:::i;:::-;;:::i;13625:144::-;;;:::i;7551:139::-;7611:40;:14;:38;:40::i;:::-;7661:22;:10;:20;:22::i;:::-;7551:139::o;20249:180::-;20320:43;:14;:41;:43::i;:::-;20373:49;:14;20405:16;20373:31;:49::i;:::-;20249:180;:::o;13088:351::-;13133:63;:20;:61;:63::i;:::-;13206:57;:20;13257:4;13206:39;:57::i;:::-;13273:46;:20;:44;:46::i;:::-;13359:40;;13330:70;;13359:40;;-1:-1:-1;;;;;13359:40:0;13330:28;:70::i;9533:190::-;9620:43;:14;:41;:43::i;:::-;9673;;-1:-1:-1;;;9673:43:0;;-1:-1:-1;;;;;547:32:11;;;9673:43:0;;;529:51:11;9673:36:0;;;;;502:18:11;;9673:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9533:190;;:::o;9957:256::-;10068:43;:14;:41;:43::i;:::-;10121:85;:20;10174:31;10121:52;:85::i;18422:176::-;18493:38;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18493:38:0;18550:41;:10;18580;18550:29;:41::i;:::-;18543:48;18422:176;-1:-1:-1;;18422:176:0:o;11607:210::-;11690:43;:14;:41;:43::i;:::-;11743:67;:20;11787:22;11743:43;:67::i;16509:38::-;16502:45;;16426:128;:::o;19897:166::-;19961:4;19984:72;20007:10;20019:36;:14;4548:21:8;;-1:-1:-1;;;4548:21:8;;;;;4447:129;20019:36:0;19984:10;;:72;:22;:72::i;6919:183::-;6976:40;:14;:38;:40::i;:::-;7026:69;7046:10;7058:36;:14;4548:21:8;;-1:-1:-1;;;4548:21:8;;;;;4447:129;7058:36:0;7026:10;;:69;:19;:69::i;9045:292::-;9127:43;:14;:41;:43::i;:::-;9180:85;:14;9217:21;9240:24;9180:36;:85::i;:::-;9275:55;:14;9310:19;9275:34;:55::i;6548:223::-;6631:21;6664:40;:14;:38;:40::i;:::-;6730:34;6748:8;6730:34;6758:5;;6730:34;:::i;:::-;:10;;:34;:17;:34::i;:::-;6714:50;6548:223;-1:-1:-1;;;;6548:223:0:o;19165:122::-;19217:13;19250:30;:10;10865:19:6;-1:-1:-1;;;;;10865:19:6;;10767:124;12671:342:0;12725:57;:20;12776:4;12725:39;:57::i;:::-;12797:52;:20;:50;:52::i;:::-;12792:127;;12865:43;:14;:41;:43::i;:::-;12928:46;:20;:44;:46::i;18889:162::-;18958:27;19005:39;:10;19033;19005:27;:39::i;10790:297::-;10889:43;:14;:41;:43::i;:::-;10942:138;:20;11006:29;11037:33;10942:50;:138::i;7933:200::-;7998:43;:14;:41;:43::i;:::-;8051;:14;8080:13;8051:28;:43::i;:::-;8104:22;:10;:20;:22::i;8455:282::-;8533:43;:14;:41;:43::i;:::-;8586:79;:14;8621:19;8642:22;8586:34;:79::i;11219:248::-;11307:43;:14;:41;:43::i;:::-;11360:100;:20;11406:24;11432:27;11360:45;:100::i;14272:183::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;14396:52:0;:20;-1:-1:-1;;;;;;;;9862:26:5;;;;;-1:-1:-1;;;9862:26:5;;;;9830:58;;9931:27;;;;;;-1:-1:-1;;;9898:60:5;-1:-1:-1;;;10007:33:5;;;;-1:-1:-1;;;9968:72:5;-1:-1:-1;9637:410:5;16876:294:0;16964:38;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16964:38:0;17004:27;17065:41;:10;17095;17065:29;:41::i;:::-;17047:59;-1:-1:-1;17124:39:0;:10;17152;17124:27;:39::i;:::-;17116:47;;16876:294;;;:::o;19467:248::-;19530:4;19554:44;:20;:42;:44::i;:::-;19553:45;:155;;;;;19614:94;19636:10;19648:38;:14;4924:23:8;;-1:-1:-1;;;4924:23:8;;;;;4821:133;19648:38:0;19614:10;;:94;19688:19;19614:21;:94::i;11869:245::-;11921:64;:20;:62;:64::i;:::-;11995:58;:20;12046:5;11995:39;:58::i;:::-;12063:44;:20;:42;:44::i;10379:252::-;10488:43;:14;:41;:43::i;:::-;10541:83;:20;10593:30;10541:51;:83::i;13934:130::-;13990:4;14013:44;:20;:42;:44::i;12244:373::-;12309:57;:20;12360:4;12309:39;:57::i;:::-;12376:63;:20;:61;:63::i;:::-;12449:161;:10;12494;4007:1:9;;12449:18:0;:161::i;7220:222::-;7276:58;:20;7327:5;7276:39;:58::i;:::-;7344:91;7363:10;7375:38;:14;4924:23:8;;-1:-1:-1;;;4924:23:8;;;;;4821:133;7375:38:0;7344:10;;:91;7415:19;7344:18;:91::i;13625:144::-;13688:4;13711:51;:20;:49;:51::i;5142:185:8:-;5225:15;;-1:-1:-1;;;;;5225:15:8;5244:10;5225:29;5221:100;;5277:33;;-1:-1:-1;;;5277:33:8;;5299:10;5277:33;;;529:51:11;502:18;;5277:33:8;;;;;;;;8223:245:6;8316:19;;-1:-1:-1;;8345:54:6;;-1:-1:-1;;;;;8316:19:6;;;-1:-1:-1;;;8345:54:6;;;;;;;;8414:47;;9356:50:11;;;8414:47:6;;9344:2:11;9329:18;8414:47:6;;;;;;;;8273:195;8223:245;:::o;6068:194:8:-;6154:18;;;;-1:-1:-1;;;;;6154:18:8;6176:10;6154:32;6150:106;;6209:36;;-1:-1:-1;;;6209:36:8;;6234:10;6209:36;;;529:51:11;502:18;;6209:36:8;383:203:11;3830:343:8;-1:-1:-1;;;;;3927:30:8;;;;:72;;-1:-1:-1;3981:18:8;;;;-1:-1:-1;;;;;3961:38:8;;;3981:18;;3961:38;3927:72;3923:148;;;4022:38;;-1:-1:-1;;;4022:38:8;;-1:-1:-1;;;;;547:32:11;;4022:38:8;;;529:51:11;502:18;;4022:38:8;383:203:11;3923:148:8;4080:18;;;:37;;-1:-1:-1;;;;;;4080:37:8;-1:-1:-1;;;;;4080:37:8;;;;;;;;4132:34;;529:51:11;;;4132:34:8;;517:2:11;502:18;4132:34:8;383:203:11;8637:236:5;8737:32;;;;-1:-1:-1;;;;;8737:32:5;8773:10;8737:46;8733:134;;8806:50;;-1:-1:-1;;;8806:50:5;;8845:10;8806:50;;;529:51:11;502:18;;8806:50:5;383:203:11;9169:211:5;9293:8;9262:39;;:27;9284:4;9262:21;:27::i;:::-;:39;;;9258:116;;9324:39;;-1:-1:-1;;;9324:39:5;;9353:9;;9324:39;;;2503:41:11;2476:18;;9324:39:5;2363:187:11;9258:116:5;9169:211;;:::o;3817:392::-;3891:46;;-1:-1:-1;3947:32:5;;:45;;-1:-1:-1;;;;;;4063:45:5;;;;;-1:-1:-1;;;;;;4118:43:5;;;;;4176:26;;;;3935:1;;4176:26;3817:392;:::o;1550:310:8:-;-1:-1:-1;;;;;1641:27:8;;;;:63;;-1:-1:-1;1689:15:8;;-1:-1:-1;;;;;1672:32:8;;;1689:15;;1672:32;1641:63;1637:133;;;1727:32;;-1:-1:-1;;;1727:32:8;;-1:-1:-1;;;;;547:32:11;;1727::8;;;529:51:11;502:18;;1727:32:8;383:203:11;1637:133:8;1779:31;;-1:-1:-1;;;;;;1779:31:8;-1:-1:-1;;;;;1779:31:8;;;;;;;1825:28;;529:51:11;;;1825:28:8;;517:2:11;502:18;1825:28:8;383:203:11;6984:414:5;7128:33;;-1:-1:-1;;;;;;;;7128:33:5;;;;;7102:59;;;;7098:156;;7184:59;;-1:-1:-1;;;7184:59:5;;-1:-1:-1;;;;;547:32:11;;7184:59:5;;;529:51:11;502:18;;7184:59:5;383:203:11;7098:156:5;7263:58;;-1:-1:-1;;;;;;7263:58:5;-1:-1:-1;;;;;;;;7263:58:5;;;;;;;;;;;7336:55;;529:51:11;;;7336:55:5;;517:2:11;502:18;7336:55:5;383:203:11;11299:681:6;11414:48;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11414:48:6;11474:32;11509:26;;;:14;;;:26;;;;;;11474:66;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;11474:66:6;;;;;;;;;-1:-1:-1;;;11474:66:6;;;;;;;;-1:-1:-1;;;11474:66:6;;;;;;;;;;-1:-1:-1;11550:46:6;11571:10;11474:66;11550:20;:46::i;:::-;11607:31;;;11685:52;11706:4;11628:10;11724:12;11685:20;:52::i;:::-;:93;;11759:19;;11685:93;;;11740:16;11685:93;11648:15;:22;;:130;;;;;;;;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;11823:21:6;;;;;-1:-1:-1;;;;;11788:57:6;:24;;;:57;11885:24;;;;;11855:54;;;;:27;;;:54;;;;11949:24;;;;;11919:54;:27;;;:54;11788:15;11299:681;-1:-1:-1;;11299:681:6:o;4464:369:5:-;4599:24;;;;-1:-1:-1;;;;;4599:24:5;;;4573:50;;;;4569:138;;4646:50;;-1:-1:-1;;;4646:50:5;;-1:-1:-1;;;;;547:32:11;;4646:50:5;;;529:51:11;502:18;;4646:50:5;383:203:11;4569:138:5;4716:24;;;:49;;-1:-1:-1;;;;;;4716:49:5;-1:-1:-1;;;;;4716:49:5;;;;;;;;4780:46;;529:51:11;;;4780:46:5;;517:2:11;502:18;4780:46:5;383:203:11;8985:417:6;9128:4;9179:26;;;:14;;;:26;;;;;;9144:66;;;;;;;;;;9128:4;;9144:66;9179:26;9144:66;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;9144:66:6;;;;;;;;;-1:-1:-1;;;9144:66:6;;;;;;;;-1:-1:-1;;;9144:66:6;;;;;;;;;9240:28;;9144:66;;-1:-1:-1;;;;;;;;;9240:28:6;;;;9227:41;;:84;;;;-1:-1:-1;9295:16:6;9272:19;;:39;;;;;;;;:::i;:::-;;9227:84;:168;;;;-1:-1:-1;9327:68:6;2584:15:10;9347:48:6;9370:12;:24;;;9347:16;:22;;;;:48;;;;:::i;:::-;1197:44:10;;;;;;;;;1123:121;9327:68:6;9220:175;;;8985:417;;;;;;:::o;5745:747::-;5851:32;5886:26;;;:14;;;:26;;;;;;5851:66;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;5851:66:6;;;;;;;;;-1:-1:-1;;;5851:66:6;;;;;;;;-1:-1:-1;;;5851:66:6;;;;;;;;;;-1:-1:-1;5928:58:6;5955:4;5961:10;5851:66;5928:26;:58::i;:::-;6024:16;6001:19;;:39;;;;;;;;:::i;:::-;;5997:134;;6100:19;;6063:57;;-1:-1:-1;;;6063:57:6;;;;6088:10;;6063:57;;;:::i;5997:134::-;6145:67;:48;6168:12;:24;;;6145:16;:22;;;;:48;;;;:::i;:::-;2584:15:10;6196:16:6;1319:43:10;;;;;;;;1246:119;6145:67:6;6141:142;;;6235:37;;-1:-1:-1;;;6235:37:6;;;;;3733:25:11;;;3706:18;;6235:37:6;3587:177:11;6141:142:6;6315:16;6293:38;;6341:43;2584:15:10;6341:43:6;:24;;;:43;-1:-1:-1;6394:26:6;;;:14;;;;:26;;;;;;:46;;;;6293:12;;6394:26;;-1:-1:-1;;6394:46:6;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;6394:46:6;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6394:46:6;-1:-1:-1;;;;6394:46:6;;;;-1:-1:-1;;;6394:46:6;-1:-1:-1;;;;;;;;;6394:46:6;;;;;;;;;-1:-1:-1;;;;;;6394:46:6;;;;;;;;;;;;;;;;;;6456:29;6474:10;;6456:29;;6394:46;;6456:29;5841:651;5745:747;;;:::o;3090:471:8:-;1493:41:9;;;;;;;;3260:97:8;;;-1:-1:-1;3334:23:8;;;1137:42:9;;;-1:-1:-1;;;3334:23:8;;;;1137:42:9;3309:48:8;3256:183;;;3380:48;;-1:-1:-1;;;3380:48:8;;2340:10:11;2328:23;;3380:48:8;;;2310:42:11;2283:18;;3380:48:8;2136:222:11;3256:183:8;3448:47;;-1:-1:-1;;;;3448:47:8;-1:-1:-1;;;3448:47:8;;;;;;;;;;;;3510:44;;2310:42:11;;;3510:44:8;;2298:2:11;2283:18;3510:44:8;;;;;;;;3090:471;;;:::o;5630:301::-;5759:23;;5733;;5759:47;;:23;-1:-1:-1;;;5759:23:8;;;;;-1:-1:-1;;;5785:21:8;;;5759:47;:::i;:::-;5733:73;-1:-1:-1;901:41:9;;;;;;;;5816:109:8;;;5877:37;;-1:-1:-1;;;5877:37:8;;2340:10:11;2328:23;;5877:37:8;;;2310:42:11;2283:18;;5877:37:8;2136:222:11;5816:109:8;5723:208;5630:301;;:::o;4499:801:6:-;4632:21;4669:5;:12;4685:1;4669:17;4665:67;;4709:12;;-1:-1:-1;;;4709:12:6;;;;;;;;;;;4665:67;4830:21;;4832:4;;:19;;4830:21;;-1:-1:-1;;;;;4830:21:6;;:::i;:::-;;;-1:-1:-1;;;;;4830:21:6;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4892:29:6;;;-1:-1:-1;4892:14:6;;;:29;;;;;4932:36;;-1:-1:-1;;;;;;;;;4932:36:6;;;;;-1:-1:-1;;4978:42:6;-1:-1:-1;;;;;;4978:42:6;;;;;;;5030:47;;;;-1:-1:-1;;;5030:47:6;2584:15:10;5030:47:6;;;;;5109:12;;4830:21;;-1:-1:-1;4892:29:6;;5109:12;5131:98;5155:10;5151:1;:14;5131:98;;;5186:11;:17;;5209:5;5215:1;5209:8;;;;;;;;:::i;:::-;;;;;;;;;;;;5186:32;;;;;;;;-1:-1:-1;5186:32:6;;;;;;;;;;;;;-1:-1:-1;;;;;5186:32:6;-1:-1:-1;;;5186:32:6;-1:-1:-1;;;;;5186:32:6;;;;;;;;;;;;;;;;;;;;;5209:8;;5186:32;;;;;;;:::i;:::-;;;;5167:3;;;;;5131:98;;;;5277:8;-1:-1:-1;;;;;5244:49:6;5262:13;5244:49;5287:5;5244:49;;;;;;:::i;:::-;;;;;;;;4655:645;;4499:801;;;;;:::o;10609:226:5:-;10731:27;;10693:4;;10731:27;;1691:23:10;;;10775:53:5;;;;-1:-1:-1;10800:28:5;2584:15:10;1319:43;;;;;;;;1246:119;12372:301:6;12524:24;12551:26;;;:14;;;:26;;;;;;12524:53;;;;;;;;;12485:27;;12524:24;:53;;12551:26;12524:53;;;;;;12551:26;;12524:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;12524:53:6;;;;;;;;;;;;;-1:-1:-1;;;12524:53:6;;;;;;;;;;;;-1:-1:-1;;;12524:53:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12524:53:6;;;;-1:-1:-1;;;12524:53:6;;-1:-1:-1;;;;;12524:53:6;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12587:47;12608:10;12620:8;:13;;;12587:20;:47::i;:::-;12652:14;;;;12372:301;-1:-1:-1;;;12372:301:6:o;5214:644:5:-;5423:86;:29;5455:54;2584:15:10;5455:36:5;;;;;:54;:36;:54;:::i;5423:86::-;:172;;;-1:-1:-1;5562:33:5;;;951:44:10;;;-1:-1:-1;;;5562:33:5;;;;951:44:10;5529:66:5;5406:296;;;5627:64;;-1:-1:-1;;;5627:64:5;;12841:12:11;12829:25;;5627:64:5;;;12811:44:11;12784:18;;5627:64:5;12636:225:11;5406:296:5;5711:65;;-1:-1:-1;;;;5711:65:5;-1:-1:-1;;;5711:65:5;;;;;;;;;;;;5791:60;;12811:44:11;;;5791:60:5;;12799:2:11;12784:18;5791:60:5;12636:225:11;2254:445:8;1493:41:9;;;;;;;;2418:89:8;;;-1:-1:-1;2486:21:8;;;1137:42:9;;;-1:-1:-1;;;2486:21:8;;;;1137:42:9;2463:44:8;2414:171;;;2530:44;;-1:-1:-1;;;2530:44:8;;2340:10:11;2328:23;;2530:44:8;;;2310:42:11;2283:18;;2530:44:8;2136:222:11;2414:171:8;2594:43;;-1:-1:-1;;;;2594:43:8;-1:-1:-1;;;2594:43:8;;;;;;;;;;;;2652:40;;2310:42:11;;;2652:40:8;;2298:2:11;2283:18;2652:40:8;2136:222:11;6210:549:5;1493:41:9;;;;;;;;6402:125:5;;;-1:-1:-1;6501:26:5;;;;;1137:42:9;;;-1:-1:-1;;;6501:26:5;;;;1137:42:9;6473:54:5;6385:239;;;6559:54;;-1:-1:-1;;;6559:54:5;;2340:10:11;2328:23;;6559:54:5;;;2310:42:11;2283:18;;6559:54:5;2136:222:11;6385:239:5;6634:26;;;:53;;-1:-1:-1;;;;6634:53:5;-1:-1:-1;;;6634:53:5;;;;;;;;;;;;;6702:50;;2310:42:11;;;6702:50:5;;2298:2:11;2283:18;6702:50:5;2136:222:11;10248:145:5;10347:27;;10324:4;;10347:27;;1691:23:10;;10347:39:5;1626:91:10;9990:582:6;10170:4;10271:26;;;:14;;;:26;;;;;;10236:66;;;;;;;;;;2584:15:10;;10170:4:6;;10236:66;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;10236:66:6;;;;;;;;;-1:-1:-1;;;10236:66:6;;;;;;;;-1:-1:-1;;;10236:66:6;;;;;;;;;10333:28;;10236:66;;-1:-1:-1;;;;;;;;;10333:28:6;;;;10320:41;;:84;;;;-1:-1:-1;10388:16:6;10365:19;;:39;;;;;;;;:::i;:::-;;10320:84;:165;;;;;10420:65;:11;10435:50;10460:12;:24;;;10435:18;:24;;;;:50;;;;:::i;10420:65::-;10320:245;;;;;10501:64;:11;10516:49;10540:12;:24;;;10516:17;:23;;;;:49;;;;:::i;10501:64::-;10313:252;9990:582;-1:-1:-1;;;;;;;9990:582:6:o;8230:239:5:-;8331:33;;-1:-1:-1;;;8331:33:5;;-1:-1:-1;;;;;8331:33:5;8368:10;8331:47;8327:136;;8401:51;;-1:-1:-1;;;8401:51:5;;8441:10;8401:51;;;529::11;502:18;;8401:51:5;383:203:11;3228:379:5;3355:33;;2584:15:10;;-1:-1:-1;;;3355:33:5;;;;;;1319:43:10;;;;3344:139:5;;;3438:33;;3411:61;;-1:-1:-1;;;3411:61:5;;-1:-1:-1;;;3438:33:5;;;;;3411:61;;;12811:44:11;12784:18;;3411:61:5;12636:225:11;3344:139:5;3523:26;;;;:38;;:26;-1:-1:-1;;;3523:26:5;;;;;;3556:4;;3523:32;:38;:::i;:::-;3493:68;;-1:-1:-1;;3493:68:5;;;;;;;;;3576:24;;;;-1:-1:-1;;3576:24:5;3290:317;3228:379;:::o;7620:404::-;7761:32;;;;-1:-1:-1;;;;;7761:32:5;;;7736:57;;;;7732:152;;7816:57;;-1:-1:-1;;;7816:57:5;;-1:-1:-1;;;;;547:32:11;;7816:57:5;;;529:51:11;502:18;;7816:57:5;383:203:11;7732:152:5;7893:32;;;:56;;-1:-1:-1;;;;;;7893:56:5;-1:-1:-1;;;;;7893:56:5;;;;;;;;7964:53;;529:51:11;;;7964:53:5;;517:2:11;502:18;7964:53:5;383:203:11;7062:962:6;7235:24;7262:26;;;:14;;;:26;;;;;;7235:53;;;;;;;;;;;;;;;;;7262:26;;7235:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;7235:53:6;;;;;;;;;;;;;-1:-1:-1;;;7235:53:6;;;;;;;;;;;;-1:-1:-1;;;7235:53:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7235:53:6;;;;-1:-1:-1;;;7235:53:6;;-1:-1:-1;;;;;7235:53:6;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7299:59;7326:4;7332:10;7344:8;:13;;;7299:26;:59::i;:::-;7397:16;7373:13;;:20;:40;;;;;;;;:::i;:::-;;7369:136;;7473:13;;:20;7436:58;;-1:-1:-1;;;7436:58:6;;;;7461:10;;7436:58;;;:::i;7369:136::-;7544:13;;:25;;;7519:70;;:51;;:24;;;;;7544:25;7519:24;:51;:::i;:70::-;7515:147;;;7612:39;;-1:-1:-1;;;7612:39:6;;;;;3733:25:11;;;3706:18;;7612:39:6;3587:177:11;7515:147:6;7700:13;;:25;;;7676:69;;:50;;:23;;;;;7700:25;7676:23;:50;:::i;:69::-;7672:145;;;7768:38;;-1:-1:-1;;;7768:38:6;;;;;3733:25:11;;;3706:18;;7768:38:6;3587:177:11;7672:145:6;7827:26;;;;:14;;;:26;;;;;;;;:56;;-1:-1:-1;;7827:56:6;7868:15;7827:56;;;7934:13;;:22;;;7959:14;;;;7894:80;;7934:22;7894:21;:80::i;:::-;7989:28;;8006:10;;7989:28;;;;;7225:799;7062:962;;;;:::o;11045:209:5:-;11128:4;11151:53;2584:15:10;11171:33:5;;;-1:-1:-1;;;11171:33:5;;;;;829:44:10;;;;;755:121;11151:53:5;:96;;;-1:-1:-1;11208:27:5;;;;1691:23:10;;11208:39:5;1626:91:10;12725:242:6;12859:15;12836:19;;:38;;;;;;;;:::i;:::-;;12832:129;;12922:10;12934:15;12897:53;;-1:-1:-1;;;12897:53:6;;;;;;;;;:::i;13294:272::-;13489:28;;13452:4;;-1:-1:-1;;;13489:28:6;;-1:-1:-1;;;;;13489:28:6;13475:42;;;;;:84;;-1:-1:-1;13544:15:6;13521:19;;:38;;;;;;;;:::i;:::-;;;;13294:272;-1:-1:-1;;;;13294:272:6:o;3580:309:9:-;3634:9;3834:46;3866:11;;;3850;;;:29;3834:15;:46::i;12973:315:6:-;13142:52;13163:4;13169:10;13181:12;13142:20;:52::i;:::-;13138:144;;;13242:10;13254:16;13217:54;;-1:-1:-1;;;13217:54:6;;;;;;;;;:::i;1709:301:9:-;1763:8;1954:47;1986:12;;;1969;;;:31;1954:14;:47::i;1115:275:7:-;1229:12;;1208:18;1251:133;1275:10;1271:1;:14;1251:133;;;1306:8;-1:-1:-1;;;;;1306:16:7;;1323:5;1329:1;1323:8;;;;;;;;:::i;:::-;;;;;;;:15;;;1340:5;1346:1;1340:8;;;;;;;;:::i;:::-;;;;;;;:14;;;1356:5;1362:1;1356:8;;;;;;;;:::i;:::-;;;;;;;:16;;;1306:67;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1287:3;;;;;1251:133;;;;1198:192;1115:275;;:::o;1847:439:10:-;1912:13;575:16;1941:40;;1937:97;;;2004:19;;-1:-1:-1;;;2004:19:10;;;;;;;;;;;1937:97;-1:-1:-1;2259:18:10;1847:439::o;4016:428:9:-;4080:12;771:16;4108:38;;4104:94;;;4169:18;;-1:-1:-1;;;4169:18:9;;;;;;;;;;;14:173:11;82:20;;-1:-1:-1;;;;;131:31:11;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;591:260::-;659:6;667;720:2;708:9;699:7;695:23;691:32;688:52;;;736:1;733;726:12;688:52;759:29;778:9;759:29;:::i;:::-;749:39;;807:38;841:2;830:9;826:18;807:38;:::i;:::-;797:48;;591:260;;;;;:::o;856:180::-;915:6;968:2;956:9;947:7;943:23;939:32;936:52;;;984:1;981;974:12;936:52;-1:-1:-1;1007:23:11;;856:180;-1:-1:-1;856:180:11:o;1041:127::-;1102:10;1097:3;1093:20;1090:1;1083:31;1133:4;1130:1;1123:15;1157:4;1154:1;1147:15;1173:234;1251:1;1244:5;1241:12;1231:143;;1296:10;1291:3;1287:20;1284:1;1277:31;1331:4;1328:1;1321:15;1359:4;1356:1;1349:15;1231:143;1383:18;;1173:234::o;1412:445::-;1499:5;1493:12;1488:3;1481:25;1584:1;1580;1575:3;1571:11;1567:19;1559:4;1552:5;1548:16;1542:23;1538:49;1531:4;1526:3;1522:14;1515:73;1649:12;1641:4;1634:5;1630:16;1624:23;1620:42;1613:4;1608:3;1604:14;1597:66;1724:12;1716:4;1709:5;1705:16;1699:23;1695:42;1688:4;1683:3;1679:14;1672:66;1784:4;1777:5;1773:16;1767:23;1799:52;1845:4;1840:3;1836:14;1822:12;1799:52;:::i;1862:269::-;2060:3;2045:19;;2073:52;2049:9;2107:6;2073:52;:::i;2555:306::-;2643:6;2696:2;2684:9;2675:7;2671:23;2667:32;2664:52;;;2712:1;2709;2702:12;2664:52;2751:9;2738:23;2801:10;2794:5;2790:22;2783:5;2780:33;2770:61;;2827:1;2824;2817:12;2866:716;2993:6;3001;3009;3062:2;3050:9;3041:7;3037:23;3033:32;3030:52;;;3078:1;3075;3068:12;3030:52;3101:29;3120:9;3101:29;:::i;:::-;3091:39;;3181:2;3170:9;3166:18;3153:32;-1:-1:-1;;;;;3200:6:11;3197:30;3194:50;;;3240:1;3237;3230:12;3194:50;3263:22;;3316:4;3308:13;;3304:27;-1:-1:-1;3294:55:11;;3345:1;3342;3335:12;3294:55;3385:2;3372:16;-1:-1:-1;;;;;3403:6:11;3400:30;3397:50;;;3443:1;3440;3433:12;3397:50;3496:7;3491:2;3481:6;3478:1;3474:14;3470:2;3466:23;3462:32;3459:45;3456:65;;;3517:1;3514;3507:12;3456:65;2866:716;;3548:2;3540:11;;;;;-1:-1:-1;3570:6:11;;-1:-1:-1;;;2866:716:11:o;3769:288::-;3810:3;3848:5;3842:12;3875:6;3870:3;3863:19;3931:6;3924:4;3917:5;3913:16;3906:4;3901:3;3897:14;3891:47;3983:1;3976:4;3967:6;3962:3;3958:16;3954:27;3947:38;4046:4;4039:2;4035:7;4030:2;4022:6;4018:15;4014:29;4009:3;4005:39;4001:50;3994:57;;;3769:288;;;;:::o;4062:885::-;4127:3;4158;4190:5;4184:12;4217:6;4212:3;4205:19;4249:4;4244:3;4240:14;4233:21;;4307:4;4297:6;4294:1;4290:14;4283:5;4279:26;4275:37;4346:4;4339:5;4335:16;4369:1;4379:542;4393:6;4390:1;4387:13;4379:542;;;4458:16;;;-1:-1:-1;;4454:30:11;4442:43;;4508:13;;4551:9;;-1:-1:-1;;;;;4547:35:11;4534:49;;4638:4;4630:13;;;4624:20;-1:-1:-1;;;;;4620:53:11;4603:15;;;4596:78;4721:4;4713:13;;;4707:20;4764:4;4747:15;;;4740:29;;;4707:20;4790:47;;4821:15;;4707:20;4790:47;:::i;:::-;4872:4;4897:14;;;;4782:55;;-1:-1:-1;4860:17:11;;;;;-1:-1:-1;4415:1:11;4408:9;4379:542;;;-1:-1:-1;4937:4:11;;4062:885;-1:-1:-1;;;;;;4062:885:11:o;4952:333::-;5191:2;5180:9;5173:21;5154:4;5211:68;5275:2;5264:9;5260:18;5252:6;5211:68;:::i;5290:309::-;5379:6;5432:2;5420:9;5411:7;5407:23;5403:32;5400:52;;;5448:1;5445;5438:12;5400:52;5487:9;5474:23;5537:12;5530:5;5526:24;5519:5;5516:35;5506:63;;5565:1;5562;5555:12;6060:498;6373:52;6415:9;6407:6;6373:52;:::i;:::-;6462:3;6456;6445:9;6441:19;6434:32;6354:4;6483:69;6547:3;6536:9;6532:19;6524:6;6483:69;:::i;6563:127::-;6624:10;6619:3;6615:20;6612:1;6605:31;6655:4;6652:1;6645:15;6679:4;6676:1;6669:15;6695:253;6767:2;6761:9;6809:4;6797:17;;-1:-1:-1;;;;;6829:34:11;;6865:22;;;6826:62;6823:88;;;6891:18;;:::i;:::-;6927:2;6920:22;6695:253;:::o;6953:275::-;7024:2;7018:9;7089:2;7070:13;;-1:-1:-1;;7066:27:11;7054:40;;-1:-1:-1;;;;;7109:34:11;;7145:22;;;7106:62;7103:88;;;7171:18;;:::i;:::-;7207:2;7200:22;6953:275;;-1:-1:-1;6953:275:11:o;7233:1973::-;7411:9;-1:-1:-1;;;;;7441:6:11;7438:30;7435:56;;;7471:18;;:::i;:::-;7517:6;7514:1;7510:14;7544:30;7568:4;7564:2;7560:13;7544:30;:::i;:::-;7608:19;;;7680:14;;;;7652:4;7643:14;;;7717;7706:26;;7703:46;;;7745:1;7742;7735:12;7703:46;7769:5;7783:1390;7799:6;7794:3;7791:15;7783:1390;;;7887:3;7874:17;-1:-1:-1;;;;;7910:11:11;7907:35;7904:55;;;7955:1;7952;7945:12;7904:55;7982:23;;8050:4;8029:14;8025:23;;;8021:34;8018:54;;;8068:1;8065;8058:12;8018:54;8100:22;;:::i;:::-;8151;8170:2;8151:22;:::i;:::-;8142:7;8135:39;8223:4;8219:2;8215:13;8202:27;-1:-1:-1;;;;;8268:7:11;8264:40;8255:7;8252:53;8242:81;;8319:1;8316;8309:12;8242:81;8356:4;8343:18;;8336:35;8419:2;8411:11;;8398:25;-1:-1:-1;;;;;8439:30:11;;8436:50;;;8482:1;8479;8472:12;8436:50;8509:15;;;;;8566:14;8559:4;8551:13;;8547:34;8537:62;;8595:1;8592;8585:12;8537:62;8641:2;8628:16;-1:-1:-1;;;;;8663:8:11;8660:32;8657:58;;;8695:18;;:::i;:::-;8743:61;8792:2;8767:19;;-1:-1:-1;;8763:33:11;8798:4;8759:44;8743:61;:::i;:::-;8833:8;8824:7;8817:25;8891:14;8884:4;8873:8;8869:2;8865:17;8861:28;8858:48;8855:68;;;8919:1;8916;8909:12;8855:68;8984:8;8977:4;8973:2;8969:13;8962:4;8953:7;8949:18;8936:57;9048:1;9041:4;9030:8;9021:7;9017:22;9013:33;9006:44;9088:7;9083:2;9074:7;9070:16;9063:33;;;9121:7;9116:3;9109:20;;;9158:4;9153:3;9149:14;9142:21;;7825:4;7820:3;7816:14;7809:21;;7783:1390;;;-1:-1:-1;9195:5:11;7233:1973;-1:-1:-1;;;;;7233:1973:11:o;9417:273::-;9600:25;;;9588:2;9573:18;;9634:50;9680:2;9665:18;;9657:6;9634:50;:::i;9695:301::-;9733:3;-1:-1:-1;;;;;9770:5:11;9766:30;-1:-1:-1;;;;;9811:7:11;9808:31;9805:154;;9881:10;9876:3;9872:20;9869:1;9862:31;9916:4;9913:1;9906:15;9944:4;9941:1;9934:15;9805:154;9988:1;9975:15;;9695:301;-1:-1:-1;;9695:301:11:o;10001:127::-;10062:10;10057:3;10053:20;10050:1;10043:31;10093:4;10090:1;10083:15;10117:4;10114:1;10107:15;10133:380;10212:1;10208:12;;;;10255;;;10276:61;;10330:4;10322:6;10318:17;10308:27;;10276:61;10383:2;10375:6;10372:14;10352:18;10349:38;10346:161;;10429:10;10424:3;10420:20;10417:1;10410:31;10464:4;10461:1;10454:15;10492:4;10489:1;10482:15;10346:161;;10133:380;;;:::o;10643:517::-;10744:2;10739:3;10736:11;10733:421;;;10780:5;10777:1;10770:16;10824:4;10821:1;10811:18;10894:2;10882:10;10878:19;10875:1;10871:27;10865:4;10861:38;10930:4;10918:10;10915:20;10912:47;;;-1:-1:-1;10953:4:11;10912:47;11008:2;11003:3;10999:12;10996:1;10992:20;10986:4;10982:31;10972:41;;11063:81;11081:2;11074:5;11071:13;11063:81;;;11140:1;11126:16;;11107:1;11096:13;11063:81;;;11067:3;;10643:517;;;:::o;11336:1295::-;11460:3;11454:10;-1:-1:-1;;;;;11479:6:11;11476:30;11473:56;;;11509:18;;:::i;:::-;11538:96;11627:6;11587:38;11619:4;11613:11;11587:38;:::i;:::-;11581:4;11538:96;:::i;:::-;11683:4;11714:2;11703:14;;11731:1;11726:648;;;;12418:1;12435:6;12432:89;;;-1:-1:-1;12487:19:11;;;12481:26;12432:89;-1:-1:-1;;11293:1:11;11289:11;;;11285:24;11281:29;11271:40;11317:1;11313:11;;;11268:57;12534:81;;11696:929;;11726:648;10590:1;10583:14;;;10627:4;10614:18;;-1:-1:-1;;11762:20:11;;;11879:222;11893:7;11890:1;11887:14;11879:222;;;11975:19;;;11969:26;11954:42;;12082:4;12067:20;;;;12035:1;12023:14;;;;11909:12;11879:222;;;11883:3;12129:6;12120:7;12117:19;12114:201;;;12190:19;;;12184:26;-1:-1:-1;;12273:1:11;12269:14;;;12285:3;12265:24;12261:37;12257:42;12242:58;12227:74;;12114:201;-1:-1:-1;;;;12361:1:11;12345:14;;;12341:22;12328:36;;-1:-1:-1;11336:1295:11:o;12866:417::-;-1:-1:-1;;;;;13068:32:11;;13050:51;;-1:-1:-1;;;;;13137:39:11;;13132:2;13117:18;;13110:67;13213:2;13208;13193:18;;13186:30;;;-1:-1:-1;;13233:44:11;;13258:18;;13250:6;13233:44;:::i;:::-;13225:52;12866:417;-1:-1:-1;;;;;12866:417:11:o","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220beb11eee5f504129f2f659b62f169d071dc9f49c81afae77971c0ec37a22af3f64736f6c634300081a0033","offset":9943}},"immutableReferences":{"54":[{"start":1161,"length":32},{"start":1931,"length":32},{"start":2498,"length":32},{"start":2674,"length":32}],"58":[{"start":1084,"length":32},{"start":2183,"length":32}],"62":[{"start":1388,"length":32},{"start":1889,"length":32}],"66":[{"start":1427,"length":32},{"start":2236,"length":32}],"70":[{"start":926,"length":32},{"start":2102,"length":32}]},"transformations":[{"id":"54","type":"replace","offset":1161,"reason":"immutable"},{"id":"54","type":"replace","offset":1931,"reason":"immutable"},{"id":"54","type":"replace","offset":2498,"reason":"immutable"},{"id":"54","type":"replace","offset":2674,"reason":"immutable"},{"id":"58","type":"replace","offset":1084,"reason":"immutable"},{"id":"58","type":"replace","offset":2183,"reason":"immutable"},{"id":"62","type":"replace","offset":1388,"reason":"immutable"},{"id":"62","type":"replace","offset":1889,"reason":"immutable"},{"id":"66","type":"replace","offset":1427,"reason":"immutable"},{"id":"66","type":"replace","offset":2236,"reason":"immutable"},{"id":"70","type":"replace","offset":926,"reason":"immutable"},{"id":"70","type":"replace","offset":2102,"reason":"immutable"}],"transformationValues":{"immutables":{"54":"0x000000000000000000000000000000000000000000000000000000000003f480","58":"0x0000000000000000000000000000000000000000000000000000000000278d00","62":"0x00000000000000000000000000000000000000000000000000000000000d2f00","66":"0x0000000000000000000000000000000000000000000000000000000001e13380","70":"0x0000000000000000000000000000000000000000000000000000000005a39a80"}}},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"deployment":{"transactionHash":"0x76d724c5fc4322160be33e7ae621f5d0a0ad8eaca106ae5441734f7bf2e5f831","blockNumber":"22537921","transactionIndex":"36","deployer":"0x93B17aBA1DcACd259dF82dc58A7E582F456E5C0B"},"matchId":"6388255","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2025-05-25T21:41:57Z","match":"exact_match","chainId":"1","address":"0xCE0425301C85c5Ea2A0873A2dEe44d78E02D2316"}