608060405234801561001057600080fd5b50612509806100206000396000f3fe60806040526004361061013c5760003560e01c806301ffc9a71461014157806306fdde0314610176578063081812fc14610198578063095ea7b3146101d057806318160ddd146101f257806323b872dd146102165780632a205e3d146102365780632dd0066e1461026b57806340c10f191461028057806342842e0e146102a05780634f558e79146102c057806351905636146102e05780636352211e146102f35780636b59f3fe1461031357806370a08231146103335780638da5cb5b1461035357806395d89b4114610373578063a22cb46514610388578063a5097ebf146103a8578063ab3ffb93146103bd578063b88d4fde146103d0578063c87b56dd146103f0578063d5abeb0114610410578063e8a3d48514610440578063e985e9c514610455578063f235364114610475578063fcb9a25d14610495575b600080fd5b34801561014d57600080fd5b5061016161015c3660046116ac565b6104b5565b60405190151581526020015b60405180910390f35b34801561018257600080fd5b5061018b610507565b60405161016d9190611728565b3480156101a457600080fd5b506101b86101b336600461173b565b610599565b6040516001600160a01b03909116815260200161016d565b3480156101dc57600080fd5b506101f06101eb366004611779565b6105c0565b005b3480156101fe57600080fd5b50610208600b5481565b60405190815260200161016d565b34801561022257600080fd5b506101f06102313660046117a5565b6106db565b34801561024257600080fd5b50610256610251366004611850565b61070c565b6040805192835260208301919091520161016d565b34801561027757600080fd5b5061018b6107b3565b34801561028c57600080fd5b506101f061029b366004611779565b610841565b3480156102ac57600080fd5b506101f06102bb3660046117a5565b61086f565b3480156102cc57600080fd5b506101616102db36600461173b565b61088a565b6101f06102ee3660046118ed565b610895565b3480156102ff57600080fd5b506101b861030e36600461173b565b61092f565b34801561031f57600080fd5b506006546101b8906001600160a01b031681565b34801561033f57600080fd5b5061020861034e3660046119b4565b610964565b34801561035f57600080fd5b506007546101b8906001600160a01b031681565b34801561037f57600080fd5b5061018b6109ea565b34801561039457600080fd5b506101f06103a33660046119d1565b6109f9565b3480156103b457600080fd5b5061018b610a08565b6101f06103cb366004611a4a565b610a15565b3480156103dc57600080fd5b506101f06103eb366004611be2565b610ab2565b3480156103fc57600080fd5b5061018b61040b36600461173b565b610aea565b34801561041c57600080fd5b50600a5461042c9062ffffff1681565b60405162ffffff909116815260200161016d565b34801561044c57600080fd5b5061018b610b3c565b34801561046157600080fd5b50610161610470366004611c61565b610b6d565b34801561048157600080fd5b50610256610490366004611c9a565b610b9b565b3480156104a157600080fd5b506101f06104b0366004611d8a565b610c45565b60006001600160e01b031982166380ac58cd60e01b14806104e657506001600160e01b03198216635b5e139f60e01b145b8061050157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461051690611e84565b80601f016020809104026020016040519081016040528092919081815260200182805461054290611e84565b801561058f5780601f106105645761010080835404028352916020019161058f565b820191906000526020600020905b81548152906001019060200180831161057257829003601f168201915b5050505050905090565b60006105a482610cf6565b506000908152600460205260409020546001600160a01b031690565b60006105cb8261092f565b9050806001600160a01b0316836001600160a01b0316141561063e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061065a575061065a8133610b6d565b6106cc5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610635565b6106d68383610d1e565b505050565b6106e53382610d8c565b6107015760405162461bcd60e51b815260040161063590611ebf565b6106d6838383610deb565b60065460009081906001600160a01b031663a5fd103f8a8a8a8a8a8a8a610731610f75565b6040518963ffffffff1660e01b8152600401610754989796959493929190611fc6565b604080518083038186803b15801561076b57600080fd5b505afa15801561077f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a39190612028565b9150915097509795505050505050565b600980546107c090611e84565b80601f01602080910402602001604051908101604052809291908181526020018280546107ec90611e84565b80156108395780601f1061080e57610100808354040283529160200191610839565b820191906000526020600020905b81548152906001019060200180831161081c57829003601f168201915b505050505081565b6006546001600160a01b0316331461085857600080fd5b6108628282611123565b5050600b80546001019055565b6106d683838360405180602001604052806000815250610ab2565b60006105018261113d565b6001600160a01b03891633146108aa57600080fd5b6006546001600160a01b031663e37a61fa348b8b8b8b8b8b8b8b8b6108cd610f75565b6040518c63ffffffff1660e01b81526004016108f29a9998979695949392919061204c565b6000604051808303818588803b15801561090b57600080fd5b505af115801561091f573d6000803e3d6000fd5b5050505050505050505050505050565b6000818152600260205260408120546001600160a01b0316806105015760405162461bcd60e51b8152600401610635906120ce565b60006001600160a01b0382166109ce5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610635565b506001600160a01b031660009081526003602052604090205490565b60606001805461051690611e84565b610a0433838361115a565b5050565b600880546107c090611e84565b6001600160a01b038a163314610a2a57600080fd5b6006546001600160a01b03166317320c59348c8c8c8c8c8c8c8c8c8c610a4e610f75565b6040518d63ffffffff1660e01b8152600401610a749b9a99989796959493929190612136565b6000604051808303818588803b158015610a8d57600080fd5b505af1158015610aa1573d6000803e3d6000fd5b505050505050505050505050505050565b610abc3383610d8c565b610ad85760405162461bcd60e51b815260040161063590611ebf565b610ae484848484611225565b50505050565b600a5460609062ffffff16610b0157610501610b3c565b610b09611258565b6009610b1484611279565b604051602001610b2693929190612261565b6040516020818303038152906040529050919050565b6060610b46611258565b6008604051602001610b599291906122ba565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60065460009081906001600160a01b031663c7d67e2a8b8b8b8b8b8b8b8b610bc1610f75565b6040518a63ffffffff1660e01b8152600401610be5999897969594939291906122e1565b604080518083038186803b158015610bfc57600080fd5b505afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c349190612028565b915091509850989650505050505050565b600c5460ff1615610c5557600080fd5b610c6781600001518260200151611376565b600c805460ff19166001179055600680546001600160a01b0319908116331790915560a0820151600780546001600160a01b03929092169190921617905560408101518051610cbe916008916020909101906115fd565b5060608101518051610cd8916009916020909101906115fd565b5060800151600a805462ffffff191662ffffff909216919091179055565b610cff8161113d565b610d1b5760405162461bcd60e51b8152600401610635906120ce565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d538261092f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610d988361092f565b9050806001600160a01b0316846001600160a01b03161480610dbf5750610dbf8185610b6d565b80610de35750836001600160a01b0316610dd884610599565b6001600160a01b0316145b949350505050565b826001600160a01b0316610dfe8261092f565b6001600160a01b031614610e625760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610635565b6001600160a01b038216610ec45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610635565b610ecf600082610d1e565b6001600160a01b0383166000908152600360205260408120805460019290610ef8908490612369565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f26908490612380565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206124b483398151915291a4505050565b610fbc6040518060c0016040528060608152602001606081526020016060815260200160608152602001600062ffffff16815260200160006001600160a01b031681525090565b6040518060c00160405280610fcf610507565b8152602001610fdc6109ea565b815260200160088054610fee90611e84565b80601f016020809104026020016040519081016040528092919081815260200182805461101a90611e84565b80156110675780601f1061103c57610100808354040283529160200191611067565b820191906000526020600020905b81548152906001019060200180831161104a57829003601f168201915b505050505081526020016009805461107e90611e84565b80601f01602080910402602001604051908101604052809291908181526020018280546110aa90611e84565b80156110f75780601f106110cc576101008083540402835291602001916110f7565b820191906000526020600020905b8154815290600101906020018083116110da57829003601f168201915b5050509183525050600a5462ffffff1660208201526007546001600160a01b0316604090910152919050565b610a0482826040518060200160405280600081525061139d565b6000908152600260205260409020546001600160a01b0316151590565b816001600160a01b0316836001600160a01b031614156111b85760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610635565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611230848484610deb565b61123c848484846113d0565b610ae45760405162461bcd60e51b815260040161063590612398565b604080518082019091526007815266697066733a2f2f60c81b602082015290565b60608161129d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156112c757806112b1816123ea565b91506112c09050600a8361241b565b91506112a1565b6000816001600160401b038111156112e1576112e1611b2f565b6040519080825280601f01601f19166020018201604052801561130b576020820181803683370190505b5090505b8415610de357611320600183612369565b915061132d600a8661242f565b611338906030612380565b60f81b81838151811061134d5761134d612443565b60200101906001600160f81b031916908160001a90535061136f600a8661241b565b945061130f565b81516113899060009060208501906115fd565b5080516106d69060019060208401906115fd565b6113a783836114dd565b6113b460008484846113d0565b6106d65760405162461bcd60e51b815260040161063590612398565b60006001600160a01b0384163b156114d257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611414903390899088908890600401612459565b602060405180830381600087803b15801561142e57600080fd5b505af192505050801561145e575060408051601f3d908101601f1916820190925261145b91810190612496565b60015b6114b8573d80801561148c576040519150601f19603f3d011682016040523d82523d6000602084013e611491565b606091505b5080516114b05760405162461bcd60e51b815260040161063590612398565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610de3565b506001949350505050565b6001600160a01b0382166115335760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610635565b61153c8161113d565b156115885760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610635565b6001600160a01b03821660009081526003602052604081208054600192906115b1908490612380565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206124b4833981519152908290a45050565b82805461160990611e84565b90600052602060002090601f01602090048101928261162b5760008555611671565b82601f1061164457805160ff1916838001178555611671565b82800160010185558215611671579182015b82811115611671578251825591602001919060010190611656565b5061167d929150611681565b5090565b5b8082111561167d5760008155600101611682565b6001600160e01b031981168114610d1b57600080fd5b6000602082840312156116be57600080fd5b81356116c981611696565b9392505050565b60005b838110156116eb5781810151838201526020016116d3565b83811115610ae45750506000910152565b600081518084526117148160208601602086016116d0565b601f01601f19169290920160200192915050565b6020815260006116c960208301846116fc565b60006020828403121561174d57600080fd5b5035919050565b6001600160a01b0381168114610d1b57600080fd5b803561177481611754565b919050565b6000806040838503121561178c57600080fd5b823561179781611754565b946020939093013593505050565b6000806000606084860312156117ba57600080fd5b83356117c581611754565b925060208401356117d581611754565b929592945050506040919091013590565b803561ffff8116811461177457600080fd5b60008083601f84011261180a57600080fd5b5081356001600160401b0381111561182157600080fd5b60208301915083602082850101111561183957600080fd5b9250929050565b8035801515811461177457600080fd5b600080600080600080600060a0888a03121561186b57600080fd5b611874886117e6565b965060208801356001600160401b038082111561189057600080fd5b61189c8b838c016117f8565b909850965060408a013595508691506118b760608b01611840565b945060808a01359150808211156118cd57600080fd5b506118da8a828b016117f8565b989b979a50959850939692959293505050565b600080600080600080600080600060e08a8c03121561190b57600080fd5b893561191681611754565b985061192460208b016117e6565b975060408a01356001600160401b038082111561194057600080fd5b61194c8d838e016117f8565b909950975060608c0135965060808c0135915061196882611754565b90945060a08b01359061197a82611754565b90935060c08b0135908082111561199057600080fd5b5061199d8c828d016117f8565b915080935050809150509295985092959850929598565b6000602082840312156119c657600080fd5b81356116c981611754565b600080604083850312156119e457600080fd5b82356119ef81611754565b91506119fd60208401611840565b90509250929050565b60008083601f840112611a1857600080fd5b5081356001600160401b03811115611a2f57600080fd5b6020830191508360208260051b850101111561183957600080fd5b60008060008060008060008060008060e08b8d031215611a6957600080fd5b8a35611a7481611754565b9950611a8260208c016117e6565b985060408b01356001600160401b0380821115611a9e57600080fd5b611aaa8e838f016117f8565b909a50985060608d0135915080821115611ac357600080fd5b611acf8e838f01611a06565b909850965060808d01359150611ae482611754565b819550611af360a08e01611769565b945060c08d0135915080821115611b0957600080fd5b50611b168d828e016117f8565b915080935050809150509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715611b6757611b67611b2f565b60405290565b60006001600160401b0380841115611b8757611b87611b2f565b604051601f8501601f19908116603f01168101908282118183101715611baf57611baf611b2f565b81604052809350858152868686011115611bc857600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215611bf857600080fd5b8435611c0381611754565b93506020850135611c1381611754565b92506040850135915060608501356001600160401b03811115611c3557600080fd5b8501601f81018713611c4657600080fd5b611c5587823560208401611b6d565b91505092959194509250565b60008060408385031215611c7457600080fd5b8235611c7f81611754565b91506020830135611c8f81611754565b809150509250929050565b60008060008060008060008060a0898b031215611cb657600080fd5b611cbf896117e6565b975060208901356001600160401b0380821115611cdb57600080fd5b611ce78c838d016117f8565b909950975060408b0135915080821115611d0057600080fd5b611d0c8c838d01611a06565b9097509550859150611d2060608c01611840565b945060808b0135915080821115611d3657600080fd5b50611d438b828c016117f8565b999c989b5096995094979396929594505050565b600082601f830112611d6857600080fd5b6116c983833560208501611b6d565b803562ffffff8116811461177457600080fd5b600060208284031215611d9c57600080fd5b81356001600160401b0380821115611db357600080fd5b9083019060c08286031215611dc757600080fd5b611dcf611b45565b823582811115611dde57600080fd5b611dea87828601611d57565b825250602083013582811115611dff57600080fd5b611e0b87828601611d57565b602083015250604083013582811115611e2357600080fd5b611e2f87828601611d57565b604083015250606083013582811115611e4757600080fd5b611e5387828601611d57565b606083015250611e6560808401611d77565b6080820152611e7660a08401611769565b60a082015295945050505050565b600181811c90821680611e9857607f821691505b60208210811415611eb957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000815160c08452611f4b60c08501826116fc565b905060208301518482036020860152611f6482826116fc565b91505060408301518482036040860152611f7e82826116fc565b91505060608301518482036060860152611f9882826116fc565b60808581015162ffffff169087015260a0948501516001600160a01b03169490950193909352509192915050565b61ffff8916815260c060208201526000611fe460c08301898b611f0d565b87604084015286151560608401528281036080840152612005818688611f0d565b905082810360a08401526120198185611f36565b9b9a5050505050505050505050565b6000806040838503121561203b57600080fd5b505080516020909101519092909150565b6001600160a01b038b8116825261ffff8b1660208301526101006040830181905260009161207d8483018c8e611f0d565b9150896060850152808916608085015280881660a08501525082810360c08401526120a9818688611f0d565b905082810360e08401526120bd8185611f36565b9d9c50505050505050505050505050565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b81835260006001600160fb1b0383111561211957600080fd5b8260051b8083602087013760009401602001938452509192915050565b6001600160a01b038c8116825261ffff8c166020830152610100604083018190526000916121678483018d8f611f0d565b9150838203606085015261217c828b8d612100565b898216608086015290881660a085015283810360c085015290506121a1818688611f0d565b905082810360e08401526121b58185611f36565b9e9d5050505050505050505050505050565b8054600090600181811c90808316806121e157607f831692505b602080841082141561220357634e487b7160e01b600052602260045260246000fd5b818015612217576001811461222857612255565b60ff19861689528489019650612255565b60008881526020902060005b8681101561224d5781548b820152908501908301612234565b505084890196505b50505050505092915050565b600084516122738184602089016116d0565b61227f818401866121c7565b9050602f60f81b8152835161229b8160018401602088016116d0565b64173539b7b760d91b6001929091019182015260060195945050505050565b600083516122cc8184602088016116d0565b6122d8818401856121c7565b95945050505050565b61ffff8a16815260c0602082015260006122ff60c083018a8c611f0d565b828103604084015261231281898b612100565b90508615156060840152828103608084015261232f818688611f0d565b905082810360a08401526123438185611f36565b9c9b505050505050505050505050565b634e487b7160e01b600052601160045260246000fd5b60008282101561237b5761237b612353565b500390565b6000821982111561239357612393612353565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156123fe576123fe612353565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261242a5761242a612405565b500490565b60008261243e5761243e612405565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061248c908301846116fc565b9695505050505050565b6000602082840312156124a857600080fd5b81516116c98161169656feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220c5830aecad869858e12ad93faa9bd96f109dbf6c64adc87bf49859a537b0389c64736f6c63430008090033