6080604052348015600f57600080fd5b506122fb8061001f6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063862440e2116100de578063bdb6665311610097578063e985e9c511610071578063e985e9c51461033e578063f242432a14610399578063f2fde38b146103ac578063f43bea06146103bf57600080fd5b8063bdb6665314610305578063c4d66de814610318578063c87b56dd1461032b57600080fd5b8063862440e2146102815780638da5cb5b1461029457806395d89b41146102c45780639c205513146102cc578063a22cb465146102df578063bd0b0d16146102f257600080fd5b80632eb2c2d6116101305780632eb2c2d6146102065780634e1273f4146102195780635c975abb146102395780635d1439bb1461024657806363b0e66a1461024e578063715018a61461027957600080fd5b8062fdd58e1461017757806301ffc9a71461019d57806306fdde03146101c05780630e89341c146101d557806316c38b3c146101e85780632c4e591b146101fd575b600080fd5b61018a61018536600461192e565b6103d2565b6040519081526020015b60405180910390f35b6101b06101ab36600461196e565b610409565b6040519015158152602001610194565b6101c8610459565b60405161019491906119e2565b6101c86101e33660046119f5565b6104e7565b6101fb6101f6366004611a1c565b6105ac565b005b61018a60045481565b6101fb610214366004611b85565b6105c7565b61022c610227366004611c38565b610621565b6040516101949190611d3b565b6003546101b09060ff1681565b6101fb6106ed565b600054610261906001600160a01b031681565b6040516001600160a01b039091168152602001610194565b6101fb610829565b6101fb61028f366004611d4e565b61083b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b0316610261565b6101c861089b565b6101fb6102da366004611d8a565b6108a8565b6101fb6102ed366004611dc6565b610add565b6101fb610300366004611dfd565b610aec565b6101fb610313366004611e18565b610bbf565b6101fb610326366004611dfd565b610c46565b6101c86103393660046119f5565b610e50565b6101b061034c366004611e54565b6001600160a01b0391821660009081527f88be536d5240c274a3b1d3a1be54482fd9caa294f08c62a7cde569f49a3c45016020908152604080832093909416825291909152205460ff1690565b6101fb6103a7366004611e70565b610e69565b6101fb6103ba366004611dfd565b610eb3565b6101fb6103cd366004611ec8565b610ef1565b60008181526000805160206122a6833981519152602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061043a57506001600160e01b031982166303a24d0760e21b145b8061040357506301ffc9a760e01b6001600160e01b0319831614610403565b6001805461046690611f17565b80601f016020809104026020016040519081016040528092919081815260200182805461049290611f17565b80156104df5780601f106104b4576101008083540402835291602001916104df565b820191906000526020600020905b8154815290600101906020018083116104c257829003601f168201915b505050505081565b7f88be536d5240c274a3b1d3a1be54482fd9caa294f08c62a7cde569f49a3c450280546060916000805160206122a68339815191529161052690611f17565b80601f016020809104026020016040519081016040528092919081815260200182805461055290611f17565b801561059f5780601f106105745761010080835404028352916020019161059f565b820191906000526020600020905b81548152906001019060200180831161058257829003601f168201915b5050505050915050919050565b6105b4610fa6565b6003805460ff1916911515919091179055565b6001600160a01b038516158015906105e757506001600160a01b03841615155b1561060d5760405162461bcd60e51b815260040161060490611f51565b60405180910390fd5b61061a8585858585611001565b5050505050565b606081518351146106525781518351604051635b05999160e01b815260048101929092526024820152604401610604565b600083516001600160401b0381111561066d5761066d611a39565b604051908082528060200260200182016040528015610696578160200160208202803683370190505b50905060005b84518110156106e5576020808202860101516106c0906020808402870101516103d2565b8282815181106106d2576106d2611fc3565b602090810291909101015260010161069c565b509392505050565b6001610703336004546103e86101859190611fef565b1061075e5760405162461bcd60e51b815260206004820152602560248201527f596f75206861766520616c7265616479206d696e746564207468652066696e616044820152641b0813919560da1b6064820152608401610604565b60015b60045481116107fb57600061077633836103d2565b116107e95760405162461bcd60e51b815260206004820152603f60248201527f596f75206e65656420746f206f776e20616c6c2074686520546f6b656e20494460448201527f7320746f206d696e74207468652066696e616c206365727469666963617465006064820152608401610604565b806107f381612002565b915050610761565b50610827336004546103e86108109190611fef565b600160405180602001604052806000815250611061565b565b610831610fa6565b61082760006110be565b610843610fa6565b6000828152600560205260409020819061085d8282612062565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8260405161088e91906119e2565b60405180910390a2505050565b6002805461046690611f17565b60035461ffff83169060ff16156109015760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610604565b806000036109475760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b88191bd95cdb89dd08195e1a5cdd606a1b6044820152606401610604565b61095133826103d2565b156109aa5760405162461bcd60e51b8152602060048201526024808201527f596f7520616c7265616479206f776e206120746f6b656e2077697468207468696044820152631cc8125160e21b6064820152608401610604565b60008361ffff161180156109c457506004548361ffff1611155b610a025760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a590819d85b59481251608a1b6044820152606401610604565b60005460405162357fb760e01b815261ffff851660048201526001600160a01b0384811660248301523360448301529091169062357fb790606401602060405180830381865afa158015610a5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e9190612120565b610ab85760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d0819985a5b195960aa1b6044820152606401610604565b610ad8338461ffff16600160405180602001604052806000815250611061565b505050565b610ae833838361112f565b5050565b610af4610fa6565b6001600160a01b038116610b3c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610604565b600080546001600160a01b0319166001600160a01b0383169081179091556040805163b11db03960e01b8152905163b11db039916004808201926020929091908290030181865afa158015610b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb9919061213d565b60045550565b610bc7610fa6565b600081905080600560006004546103e8610be19190611fef565b81526020019081526020016000209081610bfb9190612062565b50600454610c0b906103e8611fef565b7f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051610c3a91906119e2565b60405180910390a25050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b0316600081158015610c8b5750825b90506000826001600160401b03166001148015610ca75750303b155b905081158015610cb5575080155b15610cd35760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610cfd57845460ff60401b1916600160401b1785555b610d15604051806020016040528060008152506111d7565b610d1e336111e8565b6003805460ff1916905560408051808201909152600d81526c14dbdb1a591a5d1e545d595cdd609a1b6020820152600190610d599082612062565b506040805180820190915260038152621454d560ea1b6020820152600290610d819082612062565b50600080546001600160a01b0319166001600160a01b0388169081179091556040805163b11db03960e01b8152905163b11db039916004808201926020929091908290030181865afa158015610ddb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dff919061213d565b6004558315610e4857845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6005602052600090815260409020805461046690611f17565b6001600160a01b03851615801590610e8957506001600160a01b03841615155b15610ea65760405162461bcd60e51b815260040161060490611f51565b61061a85858585856111f9565b610ebb610fa6565b6001600160a01b038116610ee557604051631e4fbdf760e01b815260006004820152602401610604565b610eee816110be565b50565b610ef9610fa6565b6000610f058484612156565b905060005b8181101561061a57600083610f1e87611287565b604051602001610f2f929190612169565b60408051601f198184030181529181526000888152600560205220909150610f578282612062565b50857f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051610f8891906119e2565b60405180910390a285610f9a81612002565b96505050600101610f0a565b33610fd87f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146108275760405163118cdaa760e01b8152336004820152602401610604565b6001600160a01b03841661102b57604051632bfa23e760e11b815260006004820152602401610604565b6001600160a01b03851661105457604051626a0d4560e21b815260006004820152602401610604565b61061a8585858585611319565b6001600160a01b03841661108b57604051632bfa23e760e11b815260006004820152602401610604565b60408051600180825260208201869052818301908152606082018590526080820190925290610e48600087848487611319565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6000805160206122a68339815191526001600160a01b0383166111675760405162ced3e160e81b815260006004820152602401610604565b6001600160a01b038481166000818152600184016020908152604080832094881680845294825291829020805460ff191687151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a350505050565b6111df61136c565b610eee816113b5565b6111f061136c565b610eee816113c6565b6001600160a01b03841661122357604051632bfa23e760e11b815260006004820152602401610604565b6001600160a01b03851661124c57604051626a0d4560e21b815260006004820152602401610604565b6040805160018082526020820186905281830190815260608201859052608082019092529061127e8787848487611319565b50505050505050565b60606000611294836113ce565b60010190506000816001600160401b038111156112b3576112b3611a39565b6040519080825280601f01601f1916602001820160405280156112dd576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846112e757509392505050565b611325858585856114a6565b6001600160a01b0384161561061a578251339060010361135e57602084810151908401516113578389898585896116cb565b5050610e48565b610e488187878787876117ef565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661082757604051631afcd79f60e31b815260040160405180910390fd5b6113bd61136c565b610eee816118d8565b610ebb61136c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061140d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611439576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061145757662386f26fc10000830492506010015b6305f5e100831061146f576305f5e100830492506008015b612710831061148357612710830492506004015b60648310611495576064830492506002015b600a83106104035760010192915050565b805182516000805160206122a683398151915291146114e55782518251604051635b05999160e01b815260048101929092526024820152604401610604565b3360005b84518110156115eb576020818102868101820151908601909101516001600160a01b0389161561159c576000828152602086815260408083206001600160a01b038d16845290915290205481811015611575576040516303dee4c560e01b81526001600160a01b038b166004820152602481018290526044810183905260648101849052608401610604565b6000838152602087815260408083206001600160a01b038e16845290915290209082900390555b6001600160a01b038816156115e1576000828152602086815260408083206001600160a01b038c168452909152812080548392906115db908490611fef565b90915550505b50506001016114e9565b50835160010361166c5760208401516000906020850151909150866001600160a01b0316886001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161165d929190918252602082015260400190565b60405180910390a45050610e48565b846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516116bb9291906121b7565b60405180910390a4505050505050565b6001600160a01b0384163b15610e485760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061170f90899089908890889088906004016121e5565b6020604051808303816000875af192505050801561174a575060408051601f3d908101601f191682019092526117479181019061222a565b60015b6117b3573d808015611778576040519150601f19603f3d011682016040523d82523d6000602084013e61177d565b606091505b5080516000036117ab57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610604565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461127e57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610604565b6001600160a01b0384163b15610e485760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906118339089908990889088908890600401612247565b6020604051808303816000875af192505050801561186e575060408051601f3d908101601f1916820190925261186b9181019061222a565b60015b61189c573d808015611778576040519150601f19603f3d011682016040523d82523d6000602084013e61177d565b6001600160e01b0319811663bc197c8160e01b1461127e57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610604565b6000805160206122a68339815191527f88be536d5240c274a3b1d3a1be54482fd9caa294f08c62a7cde569f49a3c4502610ad88382612062565b80356001600160a01b038116811461192957600080fd5b919050565b6000806040838503121561194157600080fd5b61194a83611912565b946020939093013593505050565b6001600160e01b031981168114610eee57600080fd5b60006020828403121561198057600080fd5b813561198b81611958565b9392505050565b60005b838110156119ad578181015183820152602001611995565b50506000910152565b600081518084526119ce816020860160208601611992565b601f01601f19169290920160200192915050565b60208152600061198b60208301846119b6565b600060208284031215611a0757600080fd5b5035919050565b8015158114610eee57600080fd5b600060208284031215611a2e57600080fd5b813561198b81611a0e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611a7757611a77611a39565b604052919050565b60006001600160401b03821115611a9857611a98611a39565b5060051b60200190565b600082601f830112611ab357600080fd5b8135611ac6611ac182611a7f565b611a4f565b8082825260208201915060208360051b860101925085831115611ae857600080fd5b602085015b83811015611b05578035835260209283019201611aed565b5095945050505050565b600082601f830112611b2057600080fd5b8135602083016000806001600160401b03841115611b4057611b40611a39565b50601f8301601f1916602001611b5581611a4f565b915050828152858383011115611b6a57600080fd5b82826020830137600092810160200192909252509392505050565b600080600080600060a08688031215611b9d57600080fd5b611ba686611912565b9450611bb460208701611912565b935060408601356001600160401b03811115611bcf57600080fd5b611bdb88828901611aa2565b93505060608601356001600160401b03811115611bf757600080fd5b611c0388828901611aa2565b92505060808601356001600160401b03811115611c1f57600080fd5b611c2b88828901611b0f565b9150509295509295909350565b60008060408385031215611c4b57600080fd5b82356001600160401b03811115611c6157600080fd5b8301601f81018513611c7257600080fd5b8035611c80611ac182611a7f565b8082825260208201915060208360051b850101925087831115611ca257600080fd5b6020840193505b82841015611ccb57611cba84611912565b825260209384019390910190611ca9565b945050505060208301356001600160401b03811115611ce957600080fd5b611cf585828601611aa2565b9150509250929050565b600081518084526020840193506020830160005b82811015611d31578151865260209586019590910190600101611d13565b5093949350505050565b60208152600061198b6020830184611cff565b60008060408385031215611d6157600080fd5b8235915060208301356001600160401b03811115611d7e57600080fd5b611cf585828601611b0f565b60008060408385031215611d9d57600080fd5b823561ffff81168114611daf57600080fd5b9150611dbd60208401611912565b90509250929050565b60008060408385031215611dd957600080fd5b611de283611912565b91506020830135611df281611a0e565b809150509250929050565b600060208284031215611e0f57600080fd5b61198b82611912565b600060208284031215611e2a57600080fd5b81356001600160401b03811115611e4057600080fd5b611e4c84828501611b0f565b949350505050565b60008060408385031215611e6757600080fd5b611daf83611912565b600080600080600060a08688031215611e8857600080fd5b611e9186611912565b9450611e9f60208701611912565b9350604086013592506060860135915060808601356001600160401b03811115611c1f57600080fd5b600080600060608486031215611edd57600080fd5b833592506020840135915060408401356001600160401b03811115611f0157600080fd5b611f0d86828701611b0f565b9150509250925092565b600181811c90821680611f2b57607f821691505b602082108103611f4b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252604c908201527f4e6f6e5472616e7366657261626c65455243313135353a205472616e7366657260408201527f73206265747765656e206e6f6e2d7a65726f206164647265737365732061726560608201526b081b9bdd08185b1b1bddd95960a21b608082015260a00190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561040357610403611fd9565b60006001820161201457612014611fd9565b5060010190565b601f821115610ad857806000526020600020601f840160051c810160208510156120425750805b601f840160051c820191505b8181101561061a576000815560010161204e565b81516001600160401b0381111561207b5761207b611a39565b61208f816120898454611f17565b8461201b565b6020601f8211600181146120c357600083156120ab5750848201515b600019600385901b1c1916600184901b17845561061a565b600084815260208120601f198516915b828110156120f357878501518255602094850194600190920191016120d3565b50848210156121115786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b60006020828403121561213257600080fd5b815161198b81611a0e565b60006020828403121561214f57600080fd5b5051919050565b8181038181111561040357610403611fd9565b6000835161217b818460208801611992565b602f60f81b9083019081528351612199816001840160208801611992565b64173539b7b760d91b60019290910191820152600601949350505050565b6040815260006121ca6040830185611cff565b82810360208401526121dc8185611cff565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061221f908301846119b6565b979650505050505050565b60006020828403121561223c57600080fd5b815161198b81611958565b6001600160a01b0386811682528516602082015260a06040820181905260009061227390830186611cff565b82810360608401526122858186611cff565b9050828103608084015261229981856119b6565b9897505050505050505056fe88be536d5240c274a3b1d3a1be54482fd9caa294f08c62a7cde569f49a3c4500a2646970667358221220b2d1baf381cbdb78b53c5e609786c7bbb803cf88df21091fff5c5c53489227b864736f6c634300081c0033