0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80636827e7641161010f578063ba9a7a56116100a2578063d505accf11610071578063d505accf146105c4578063d6d788c314610615578063dd62ed3e14610638578063fff6cae914610666576101e5565b8063ba9a7a5614610586578063bc25cf771461058e578063c45a0155146105b4578063d21220a7146105bc576101e5565b80637ecebe00116100de5780637ecebe00146104ed57806389afcb441461051357806395d89b4114610552578063a9059cbb1461055a576101e5565b80636827e764146104915780636a6278421461049957806370a08231146104bf5780637464fc3d146104e5576101e5565b806323b872dd11610187578063485cc95511610156578063485cc9551461043257806354cf2aeb146104605780635909c0d5146104815780635a3d549314610489576101e5565b806323b872dd146103ce57806330adf81f14610404578063313ce5671461040c5780633644e5151461042a576101e5565b80630902f1ac116101c35780630902f1ac14610318578063095ea7b3146103505780630dfe16811461039057806318160ddd146103b4576101e5565b8063022c0d9f146101ea57806303c150b01461027857806306fdde031461029b575b600080fd5b6102766004803603608081101561020057600080fd5b8135916020810135916001600160a01b03604083013516919081019060808101606082013564010000000081111561023757600080fd5b82018360208201111561024957600080fd5b8035906020019184600183028401116401000000008311171561026b57600080fd5b50909250905061066e565b005b6102766004803603602081101561028e57600080fd5b503563ffffffff16610bc7565b6102a3610cef565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102dd5781810151838201526020016102c5565b50505050905090810190601f16801561030a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610320610d17565b604080516001600160701b03948516815292909316602083015263ffffffff168183015290519081900360600190f35b61037c6004803603604081101561036657600080fd5b506001600160a01b038135169060200135610d41565b604080519115158252519081900360200190f35b610398610d58565b604080516001600160a01b039092168252519081900360200190f35b6103bc610d67565b60408051918252519081900360200190f35b61037c600480360360608110156103e457600080fd5b506001600160a01b03813581169160208101359091169060400135610d6d565b6103bc610e07565b610414610e2b565b6040805160ff9092168252519081900360200190f35b6103bc610e30565b6102766004803603604081101561044857600080fd5b506001600160a01b0381358116916020013516610e36565b610468610eb9565b6040805163ffffffff9092168252519081900360200190f35b6103bc610ec5565b6103bc610ecb565b610468610ed1565b6103bc600480360360208110156104af57600080fd5b50356001600160a01b0316610ee5565b6103bc600480360360208110156104d557600080fd5b50356001600160a01b03166111e4565b6103bc6111f6565b6103bc6004803603602081101561050357600080fd5b50356001600160a01b03166111fc565b6105396004803603602081101561052957600080fd5b50356001600160a01b031661120e565b6040805192835260208301919091528051918290030190f35b6102a36115b3565b61037c6004803603604081101561057057600080fd5b506001600160a01b0381351690602001356115d6565b6103bc6115e3565b610276600480360360208110156105a457600080fd5b50356001600160a01b03166115e9565b610398611753565b610398611762565b610276600480360360e08110156105da57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611771565b6102766004803603602081101561062b57600080fd5b503563ffffffff16611972565b6103bc6004803603604081101561064e57600080fd5b506001600160a01b0381358116916020013516611a8e565b610276611aab565b600d546001146106b8576040805162461bcd60e51b815260206004820152601060248201526f109958dbd4185a5c8e881313d0d2d15160821b604482015290519081900360640190fd5b6000600d55841515806106cb5750600084115b6107065760405162461bcd60e51b815260040180806020018281038252602481526020018061251d6024913960400191505060405180910390fd5b600080610711610d17565b5091509150816001600160701b0316871080156107365750806001600160701b031686105b610787576040805162461bcd60e51b815260206004820181905260248201527f4265636f506169723a20494e53554646494349454e545f4c4951554944495459604482015290519081900360640190fd5b60065460075460009182916001600160a01b039182169190811690891682148015906107c55750806001600160a01b0316896001600160a01b031614155b61080d576040805162461bcd60e51b81526020600482015260146024820152734265636f506169723a20494e56414c49445f544f60601b604482015290519081900360640190fd5b8a1561081e5761081e828a8d611c0c565b891561082f5761082f818a8c611c0c565b86156108ea57886001600160a01b03166379af2fe8338d8d8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156108d157600080fd5b505af11580156108e5573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561093057600080fd5b505afa158015610944573d6000803e3d6000fd5b505050506040513d602081101561095a57600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b1580156109a657600080fd5b505afa1580156109ba573d6000803e3d6000fd5b505050506040513d60208110156109d057600080fd5b5051925060009150506001600160701b0385168a900383116109f3576000610a02565b89856001600160701b03160383035b9050600089856001600160701b0316038311610a1f576000610a2e565b89856001600160701b03160383035b90506000821180610a3f5750600081115b610a7a5760405162461bcd60e51b81526004018080602001828103825260238152602001806125416023913960400191505060405180910390fd5b600c5463ffffffff90811690600090610ab990610a9b9086908590611da616565b610aad886103e863ffffffff611da616565b9063ffffffff611e0916565b90506000610ad0610a9b858563ffffffff611da616565b9050610b01620f4240610af56001600160701b038c8116908c1663ffffffff611da616565b9063ffffffff611da616565b610b11838363ffffffff611da616565b1015610b52576040805162461bcd60e51b815260206004820152600b60248201526a4265636f537761703a204b60a81b604482015290519081900360640190fd5b505050610b6184848888611e59565b60408051838152602081018390528082018d9052606081018c905290516001600160a01b038b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600d55505050505050505050565b60008163ffffffff1611610c1b576040805162461bcd60e51b815260206004820152601660248201527504265636f506169723a206c6f776572207468656e20360541b604482015290519081900360640190fd5b6005546001600160a01b03163314610c70576040805162461bcd60e51b81526020600482015260136024820152722132b1b7a830b4b91d102327a92124a22222a760691b604482015290519081900360640190fd5b6101f48163ffffffff161115610cc7576040805162461bcd60e51b81526020600482015260176024820152764265636f506169723a20464f5242494444454e5f46454560481b604482015290519081900360640190fd5b600c805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b6040518060400160405280600c81526020016b4265636f53776170204c507360a01b81525081565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610d4e33848461201d565b5060015b92915050565b6006546001600160a01b031681565b60005481565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610df2576001600160a01b0384166000908152600260209081526040808320338452909152902054610dcd908363ffffffff611e0916565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610dfd84848461207f565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b6005546001600160a01b03163314610e8b576040805162461bcd60e51b81526020600482015260136024820152722132b1b7a830b4b91d102327a92124a22222a760691b604482015290519081900360640190fd5b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b600c5463ffffffff1681565b60095481565b600a5481565b600c54640100000000900463ffffffff1681565b6000600d54600114610f31576040805162461bcd60e51b815260206004820152601060248201526f109958dbd4185a5c8e881313d0d2d15160821b604482015290519081900360640190fd5b6000600d81905580610f41610d17565b50600654604080516370a0823160e01b815230600482015290519395509193506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015610f9557600080fd5b505afa158015610fa9573d6000803e3d6000fd5b505050506040513d6020811015610fbf57600080fd5b5051600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561101257600080fd5b505afa158015611026573d6000803e3d6000fd5b505050506040513d602081101561103c57600080fd5b50519050600061105b836001600160701b03871663ffffffff611e0916565b90506000611078836001600160701b03871663ffffffff611e0916565b905060006110868787612139565b600054909150806110c3576110af6103e8610aad6110aa878763ffffffff611da616565b6122aa565b98506110be60006103e86122fc565b611112565b61110f6001600160701b0389166110e0868463ffffffff611da616565b816110e757fe5b046001600160701b038916611102868563ffffffff611da616565b8161110957fe5b04612392565b98505b600089116111515760405162461bcd60e51b81526004018080602001828103825260278152602001806124cf6027913960400191505060405180910390fd5b61115b8a8a6122fc565b61116786868a8a611e59565b811561119757600854611193906001600160701b0380821691600160701b90041663ffffffff611da616565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600d5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600d5460011461125b576040805162461bcd60e51b815260206004820152601060248201526f109958dbd4185a5c8e881313d0d2d15160821b604482015290519081900360640190fd5b6000600d8190558061126b610d17565b50600654600754604080516370a0823160e01b815230600482015290519496509294506001600160a01b039182169391169160009184916370a08231916024808301926020929190829003018186803b1580156112c757600080fd5b505afa1580156112db573d6000803e3d6000fd5b505050506040513d60208110156112f157600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b15801561133f57600080fd5b505afa158015611353573d6000803e3d6000fd5b505050506040513d602081101561136957600080fd5b5051306000908152600160205260408120549192506113888888612139565b6000549091508061139f848763ffffffff611da616565b816113a657fe5b049a50806113ba848663ffffffff611da616565b816113c157fe5b04995060008b1180156113d4575060008a115b61140f5760405162461bcd60e51b81526004018080602001828103825260278152602001806124f66027913960400191505060405180910390fd5b61141930846123aa565b611424878d8d611c0c565b61142f868d8c611c0c565b604080516370a0823160e01b815230600482015290516001600160a01b038916916370a08231916024808301926020929190829003018186803b15801561147557600080fd5b505afa158015611489573d6000803e3d6000fd5b505050506040513d602081101561149f57600080fd5b5051604080516370a0823160e01b815230600482015290519196506001600160a01b038816916370a0823191602480820192602092909190829003018186803b1580156114eb57600080fd5b505afa1580156114ff573d6000803e3d6000fd5b505050506040513d602081101561151557600080fd5b5051935061152585858b8b611e59565b811561155557600854611551906001600160701b0380821691600160701b90041663ffffffff611da616565b600b555b604080518c8152602081018c905281516001600160a01b038f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600d81905550915091565b6040518060400160405280600781526020016604265636f2d4c560cc1b81525081565b6000610d4e33848461207f565b6103e881565b600d54600114611633576040805162461bcd60e51b815260206004820152601060248201526f109958dbd4185a5c8e881313d0d2d15160821b604482015290519081900360640190fd5b6000600d55600654600754600854604080516370a0823160e01b815230600482015290516001600160a01b0394851694909316926116e292859287926116dd926001600160701b03169185916370a0823191602480820192602092909190829003018186803b1580156116a557600080fd5b505afa1580156116b9573d6000803e3d6000fd5b505050506040513d60208110156116cf57600080fd5b50519063ffffffff611e0916565b611c0c565b600854604080516370a0823160e01b8152306004820152905161174992849287926116dd92600160701b90046001600160701b0316916001600160a01b038616916370a0823191602480820192602092909190829003018186803b1580156116a557600080fd5b50506001600d5550565b6005546001600160a01b031681565b6007546001600160a01b031681565b428410156117ba576040805162461bcd60e51b8152602060048201526011602482015270109958dbd4ddd85c0e8811561412549151607a1b604482015290519081900360640190fd5b6003546001600160a01b0380891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa1580156118d5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061190b5750886001600160a01b0316816001600160a01b0316145b61195c576040805162461bcd60e51b815260206004820152601b60248201527f4265636f537761703a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b61196789898961201d565b505050505050505050565b60008163ffffffff16116119c6576040805162461bcd60e51b815260206004820152601660248201527504265636f506169723a206c6f776572207468656e20360541b604482015290519081900360640190fd5b6005546001600160a01b03163314611a1b576040805162461bcd60e51b81526020600482015260136024820152722132b1b7a830b4b91d102327a92124a22222a760691b604482015290519081900360640190fd5b6103e88163ffffffff161115611a72576040805162461bcd60e51b81526020600482015260176024820152764265636f506169723a20464f5242494444454e5f46454560481b604482015290519081900360640190fd5b600c805463ffffffff191663ffffffff92909216919091179055565b600260209081526000928352604080842090915290825290205481565b600d54600114611af5576040805162461bcd60e51b815260206004820152601060248201526f109958dbd4185a5c8e881313d0d2d15160821b604482015290519081900360640190fd5b6000600d55600654604080516370a0823160e01b81523060048201529051611c05926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611b4657600080fd5b505afa158015611b5a573d6000803e3d6000fd5b505050506040513d6020811015611b7057600080fd5b5051600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611bbd57600080fd5b505afa158015611bd1573d6000803e3d6000fd5b505050506040513d6020811015611be757600080fd5b50516008546001600160701b0380821691600160701b900416611e59565b6001600d55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b60208310611cb95780518252601f199092019160209182019101611c9a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611d1b576040519150601f19603f3d011682016040523d82523d6000602084013e611d20565b606091505b5091509150818015611d4e575080511580611d4e5750808060200190516020811015611d4b57600080fd5b50515b611d9f576040805162461bcd60e51b815260206004820152601960248201527f4265636f506169723a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b5050505050565b6000811580611dc157505080820282828281611dbe57fe5b04145b610d52576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820382811115610d52576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6001600160701b038411801590611e7757506001600160701b038311155b611ebd576040805162461bcd60e51b81526020600482015260126024820152714265636f537761703a204f564552464c4f5760701b604482015290519081900360640190fd5b60085463ffffffff42811691600160e01b90048116820390811615801590611eed57506001600160701b03841615155b8015611f0157506001600160701b03831615155b15611f72578063ffffffff16611f2f85611f1a86612448565b6001600160e01b03169063ffffffff61245a16565b600980546001600160e01b03929092169290920201905563ffffffff8116611f5a84611f1a87612448565b600a80546001600160e01b0392909216929092020190555b600880546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166000908152600160205260409020546120a8908263ffffffff611e0916565b6001600160a01b0380851660009081526001602052604080822093909355908416815220546120dd908263ffffffff61247f16565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561218a57600080fd5b505afa15801561219e573d6000803e3d6000fd5b505050506040513d60208110156121b457600080fd5b5051600b546001600160a01b0382161580159450919250906122965780156122915760006121f76110aa6001600160701b0388811690881663ffffffff611da616565b90506000612204836122aa565b90508082111561228e576000612232612223848463ffffffff611e0916565b6000549063ffffffff611da616565b600c5490915060009061226a90849061225e90879063ffffffff640100000000909104811690611da616565b9063ffffffff61247f16565b9050600081838161227757fe5b049050801561228a5761228a87826122fc565b5050505b50505b6122a2565b80156122a2576000600b555b505092915050565b600060038211156122ed575080600160028204015b818110156122e7578091506002818285816122d657fe5b0401816122df57fe5b0490506122bf565b506122f7565b81156122f7575060015b919050565b60005461230f908263ffffffff61247f16565b60009081556001600160a01b03831681526001602052604090205461233a908263ffffffff61247f16565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008183106123a157816123a3565b825b9392505050565b6001600160a01b0382166000908152600160205260409020546123d3908263ffffffff611e0916565b6001600160a01b03831660009081526001602052604081209190915554612400908263ffffffff611e0916565b60009081556040805183815290516001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b0384168161247757fe5b049392505050565b80820182811015610d52576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fdfe4265636f506169723a20494e53554646494349454e545f4c49515549444954595f4d494e5445444265636f506169723a20494e53554646494349454e545f4c49515549444954595f4255524e45444265636f506169723a20494e53554646494349454e545f4f55545055545f414d4f554e544265636f506169723a20494e53554646494349454e545f494e5055545f414d4f554e54a265627a7a723158200f2bd961c4850d7aeccdfbe7a2422cdd710e299e9091da31a5d73b364817a81664736f6c63430005100032